RTEMS 4.11
Annotated Report
Sun Dec 23 03:08:01 2012

080037e0 <IMFS_dump_directory>:                                       
 */                                                                   
static void IMFS_dump_directory(                                      
  IMFS_jnode_t  *the_directory,                                       
  int            level                                                
)                                                                     
{                                                                     
 80037e0:	37 9c ff c0 	addi sp,sp,-64                                 
 80037e4:	5b 8b 00 40 	sw (sp+64),r11                                 
 80037e8:	5b 8c 00 3c 	sw (sp+60),r12                                 
 80037ec:	5b 8d 00 38 	sw (sp+56),r13                                 
 80037f0:	5b 8e 00 34 	sw (sp+52),r14                                 
 80037f4:	5b 8f 00 30 	sw (sp+48),r15                                 
 80037f8:	5b 90 00 2c 	sw (sp+44),r16                                 
 80037fc:	5b 91 00 28 	sw (sp+40),r17                                 
 8003800:	5b 92 00 24 	sw (sp+36),r18                                 
 8003804:	5b 93 00 20 	sw (sp+32),r19                                 
 8003808:	5b 94 00 1c 	sw (sp+28),r20                                 
 800380c:	5b 95 00 18 	sw (sp+24),r21                                 
 8003810:	5b 96 00 14 	sw (sp+20),r22                                 
 8003814:	5b 97 00 10 	sw (sp+16),r23                                 
 8003818:	5b 98 00 0c 	sw (sp+12),r24                                 
 800381c:	5b 99 00 08 	sw (sp+8),r25                                  
 8003820:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003824:	78 0b 08 02 	mvhi r11,0x802                                 
 8003828:	39 6b 52 28 	ori r11,r11,0x5228                             
        the_node = the_node->next ) {                                 
                                                                      
    the_jnode = (IMFS_jnode_t *) the_node;                            
                                                                      
    for ( i=0 ; i<=level ; i++ )                                      
      fprintf(stdout, "...." );                                       
 800382c:	78 15 08 02 	mvhi r21,0x802                                 
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
      return;                                                         
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", IMFS_type( the_jnode ) );     
 8003830:	78 14 08 02 	mvhi r20,0x802                                 
)                                                                     
{                                                                     
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
  switch( IMFS_type( the_jnode ) ) {                                  
 8003834:	78 13 08 02 	mvhi r19,0x802                                 
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", IMFS_type( the_jnode ) );     
      return;                                                         
  }                                                                   
  puts("");                                                           
 8003838:	78 12 08 02 	mvhi r18,0x802                                 
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
 800383c:	78 11 08 02 	mvhi r17,0x802                                 
    case IMFS_HARD_LINK:                                              
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
 8003840:	78 0d 08 02 	mvhi r13,0x802                                 
        the_jnode->info.file.indirect,                                
        the_jnode->info.file.doubly_indirect,                         
        the_jnode->info.file.triply_indirect                          
      );                                                              
#else                                                                 
      fprintf(stdout, " (file %" PRId32 ")",                          
 8003844:	78 10 08 02 	mvhi r16,0x802                                 
      fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",           
        the_jnode->info.device.major, the_jnode->info.device.minor ); 
      break;                                                          
                                                                      
    case IMFS_LINEAR_FILE:                                            
      fprintf(stdout, " (file %" PRId32 " %p)",                       
 8003848:	78 0f 08 02 	mvhi r15,0x802                                 
    case IMFS_DIRECTORY:                                              
      fprintf(stdout, "/" );                                          
      break;                                                          
                                                                      
    case IMFS_DEVICE:                                                 
      fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",           
 800384c:	78 0e 08 02 	mvhi r14,0x802                                 
 */                                                                   
static void IMFS_dump_directory(                                      
  IMFS_jnode_t  *the_directory,                                       
  int            level                                                
)                                                                     
{                                                                     
 8003850:	b8 40 c0 00 	mv r24,r2                                      
}                                                                     
                                                                      
int IMFS_memfile_maximum_size( void )                                 
{                                                                     
  return IMFS_MEMFILE_MAXIMUM_SIZE;                                   
}                                                                     
 8003854:	28 2c 00 50 	lw r12,(r1+80)                                 
RTEMS_INLINE_ROUTINE bool _Chain_Is_tail(                             
  const Chain_Control *the_chain,                                     
  const Chain_Node    *the_node                                       
)                                                                     
{                                                                     
  return (the_node == _Chain_Immutable_tail( the_chain ));            
 8003858:	34 39 00 54 	addi r25,r1,84                                 
        the_node = the_node->next ) {                                 
                                                                      
    the_jnode = (IMFS_jnode_t *) the_node;                            
                                                                      
    for ( i=0 ; i<=level ; i++ )                                      
      fprintf(stdout, "...." );                                       
 800385c:	3a b5 29 1c 	ori r21,r21,0x291c                             
 8003860:	b9 60 b8 00 	mv r23,r11                                     
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
      return;                                                         
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", IMFS_type( the_jnode ) );     
 8003864:	3a 94 29 7c 	ori r20,r20,0x297c                             
)                                                                     
{                                                                     
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
  switch( IMFS_type( the_jnode ) ) {                                  
 8003868:	3a 73 2a 00 	ori r19,r19,0x2a00                             
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", IMFS_type( the_jnode ) );     
      return;                                                         
  }                                                                   
  puts("");                                                           
 800386c:	3a 52 24 ec 	ori r18,r18,0x24ec                             
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
 8003870:	3a 31 29 68 	ori r17,r17,0x2968                             
    case IMFS_HARD_LINK:                                              
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
 8003874:	39 ad 29 54 	ori r13,r13,0x2954                             
        the_jnode->info.file.indirect,                                
        the_jnode->info.file.doubly_indirect,                         
        the_jnode->info.file.triply_indirect                          
      );                                                              
#else                                                                 
      fprintf(stdout, " (file %" PRId32 ")",                          
 8003878:	3a 10 29 48 	ori r16,r16,0x2948                             
      fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",           
        the_jnode->info.device.major, the_jnode->info.device.minor ); 
      break;                                                          
                                                                      
    case IMFS_LINEAR_FILE:                                            
      fprintf(stdout, " (file %" PRId32 " %p)",                       
 800387c:	39 ef 29 38 	ori r15,r15,0x2938                             
    case IMFS_DIRECTORY:                                              
      fprintf(stdout, "/" );                                          
      break;                                                          
                                                                      
    case IMFS_DEVICE:                                                 
      fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",           
 8003880:	39 ce 29 24 	ori r14,r14,0x2924                             
  IMFS_assert( level >= 0 );                                          
  IMFS_assert( IMFS_is_directory( the_directory ) );                  
                                                                      
  the_chain = &the_directory->info.directory.Entries;                 
                                                                      
  for ( the_node = rtems_chain_first( the_chain );                    
 8003884:	e0 00 00 43 	bi 8003990 <IMFS_dump_directory+0x1b0>         
        !rtems_chain_is_tail( the_chain, the_node );                  
        the_node = the_node->next ) {                                 
                                                                      
    the_jnode = (IMFS_jnode_t *) the_node;                            
                                                                      
    for ( i=0 ; i<=level ; i++ )                                      
 8003888:	34 16 00 00 	mvi r22,0                                      
 800388c:	e0 00 00 06 	bi 80038a4 <IMFS_dump_directory+0xc4>          
      fprintf(stdout, "...." );                                       
 8003890:	29 62 00 00 	lw r2,(r11+0)                                  
 8003894:	ba a0 08 00 	mv r1,r21                                      
        !rtems_chain_is_tail( the_chain, the_node );                  
        the_node = the_node->next ) {                                 
                                                                      
    the_jnode = (IMFS_jnode_t *) the_node;                            
                                                                      
    for ( i=0 ; i<=level ; i++ )                                      
 8003898:	36 d6 00 01 	addi r22,r22,1                                 
      fprintf(stdout, "...." );                                       
 800389c:	28 42 00 08 	lw r2,(r2+8)                                   
 80038a0:	f8 00 32 cb 	calli 80103cc <fputs>                          
        !rtems_chain_is_tail( the_chain, the_node );                  
        the_node = the_node->next ) {                                 
                                                                      
    the_jnode = (IMFS_jnode_t *) the_node;                            
                                                                      
    for ( i=0 ; i<=level ; i++ )                                      
 80038a4:	4f 16 ff fb 	bge r24,r22,8003890 <IMFS_dump_directory+0xb0> 
  IMFS_jnode_t *the_jnode                                             
)                                                                     
{                                                                     
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
 80038a8:	2a e2 00 00 	lw r2,(r23+0)                                  
 80038ac:	35 81 00 0c 	addi r1,r12,12                                 
 80038b0:	28 42 00 08 	lw r2,(r2+8)                                   
 80038b4:	f8 00 32 c6 	calli 80103cc <fputs>                          
  rtems_chain_extract_unprotected( &node->Node );                     
}                                                                     
                                                                      
static inline IMFS_jnode_types_t IMFS_type( const IMFS_jnode_t *node )
{                                                                     
  return node->control->imfs_type;                                    
 80038b8:	29 81 00 4c 	lw r1,(r12+76)                                 
 80038bc:	28 23 00 00 	lw r3,(r1+0)                                   
  switch( IMFS_type( the_jnode ) ) {                                  
 80038c0:	34 01 00 06 	mvi r1,6                                       
 80038c4:	54 61 00 25 	bgu r3,r1,8003958 <IMFS_dump_directory+0x178>  <== NEVER TAKEN
 80038c8:	b8 60 08 00 	mv r1,r3                                       
 80038cc:	34 02 00 02 	mvi r2,2                                       
 80038d0:	f8 00 75 07 	calli 8020cec <__ashlsi3>                      
 80038d4:	b6 61 08 00 	add r1,r19,r1                                  
 80038d8:	28 21 00 00 	lw r1,(r1+0)                                   
 80038dc:	c0 20 00 00 	b r1                                           
    case IMFS_DIRECTORY:                                              
      fprintf(stdout, "/" );                                          
 80038e0:	29 62 00 00 	lw r2,(r11+0)                                  
 80038e4:	34 01 00 2f 	mvi r1,47                                      
 80038e8:	28 42 00 08 	lw r2,(r2+8)                                   
 80038ec:	f8 00 32 74 	calli 80102bc <fputc>                          
 80038f0:	e0 00 00 1f 	bi 800396c <IMFS_dump_directory+0x18c>         
      break;                                                          
                                                                      
    case IMFS_DEVICE:                                                 
      fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",           
 80038f4:	29 61 00 00 	lw r1,(r11+0)                                  
 80038f8:	b9 c0 10 00 	mv r2,r14                                      
 80038fc:	28 21 00 08 	lw r1,(r1+8)                                   
 8003900:	e0 00 00 04 	bi 8003910 <IMFS_dump_directory+0x130>         
        the_jnode->info.device.major, the_jnode->info.device.minor ); 
      break;                                                          
                                                                      
    case IMFS_LINEAR_FILE:                                            
      fprintf(stdout, " (file %" PRId32 " %p)",                       
 8003904:	29 61 00 00 	lw r1,(r11+0)                                  
 8003908:	b9 e0 10 00 	mv r2,r15                                      
 800390c:	28 21 00 08 	lw r1,(r1+8)                                   
 8003910:	29 83 00 50 	lw r3,(r12+80)                                 
 8003914:	29 84 00 54 	lw r4,(r12+84)                                 
 8003918:	f8 00 32 42 	calli 8010220 <fprintf>                        
 800391c:	e0 00 00 14 	bi 800396c <IMFS_dump_directory+0x18c>         
        the_jnode->info.file.indirect,                                
        the_jnode->info.file.doubly_indirect,                         
        the_jnode->info.file.triply_indirect                          
      );                                                              
#else                                                                 
      fprintf(stdout, " (file %" PRId32 ")",                          
 8003920:	29 61 00 00 	lw r1,(r11+0)                                  
 8003924:	29 83 00 50 	lw r3,(r12+80)                                 
 8003928:	ba 00 10 00 	mv r2,r16                                      
 800392c:	28 21 00 08 	lw r1,(r1+8)                                   
 8003930:	f8 00 32 3c 	calli 8010220 <fprintf>                        
 8003934:	e0 00 00 0e 	bi 800396c <IMFS_dump_directory+0x18c>         
    case IMFS_HARD_LINK:                                              
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
 8003938:	29 62 00 00 	lw r2,(r11+0)                                  
 800393c:	b9 a0 08 00 	mv r1,r13                                      
 8003940:	e0 00 00 03 	bi 800394c <IMFS_dump_directory+0x16c>         
      return;                                                         
                                                                      
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
 8003944:	29 62 00 00 	lw r2,(r11+0)                                  
 8003948:	ba 20 08 00 	mv r1,r17                                      
 800394c:	28 42 00 08 	lw r2,(r2+8)                                   
 8003950:	f8 00 32 9f 	calli 80103cc <fputs>                          
 8003954:	e0 00 00 08 	bi 8003974 <IMFS_dump_directory+0x194>         
      return;                                                         
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", IMFS_type( the_jnode ) );     
 8003958:	2a e1 00 00 	lw r1,(r23+0)                                  <== NOT EXECUTED
 800395c:	ba 80 10 00 	mv r2,r20                                      <== NOT EXECUTED
 8003960:	28 21 00 08 	lw r1,(r1+8)                                   <== NOT EXECUTED
 8003964:	f8 00 32 2f 	calli 8010220 <fprintf>                        <== NOT EXECUTED
 8003968:	e0 00 00 03 	bi 8003974 <IMFS_dump_directory+0x194>         <== NOT EXECUTED
      return;                                                         
  }                                                                   
  puts("");                                                           
 800396c:	ba 40 08 00 	mv r1,r18                                      
 8003970:	f8 00 3a 26 	calli 8012208 <puts>                           
}                                                                     
                                                                      
static inline bool IMFS_is_directory( const IMFS_jnode_t *node )      
{                                                                     
  return node->control->imfs_type == IMFS_DIRECTORY;                  
 8003974:	29 81 00 4c 	lw r1,(r12+76)                                 
    the_jnode = (IMFS_jnode_t *) the_node;                            
                                                                      
    for ( i=0 ; i<=level ; i++ )                                      
      fprintf(stdout, "...." );                                       
    IMFS_print_jnode( the_jnode );                                    
    if ( IMFS_is_directory( the_jnode ) )                             
 8003978:	28 21 00 00 	lw r1,(r1+0)                                   
 800397c:	5c 20 00 04 	bne r1,r0,800398c <IMFS_dump_directory+0x1ac>  
      IMFS_dump_directory( the_jnode, level + 1 );                    
 8003980:	b9 80 08 00 	mv r1,r12                                      
 8003984:	37 02 00 01 	addi r2,r24,1                                  
 8003988:	fb ff ff 96 	calli 80037e0 <IMFS_dump_directory>            
                                                                      
  the_chain = &the_directory->info.directory.Entries;                 
                                                                      
  for ( the_node = rtems_chain_first( the_chain );                    
        !rtems_chain_is_tail( the_chain, the_node );                  
        the_node = the_node->next ) {                                 
 800398c:	29 8c 00 00 	lw r12,(r12+0)                                 
  IMFS_assert( level >= 0 );                                          
  IMFS_assert( IMFS_is_directory( the_directory ) );                  
                                                                      
  the_chain = &the_directory->info.directory.Entries;                 
                                                                      
  for ( the_node = rtems_chain_first( the_chain );                    
 8003990:	5d 99 ff be 	bne r12,r25,8003888 <IMFS_dump_directory+0xa8> 
      fprintf(stdout, "...." );                                       
    IMFS_print_jnode( the_jnode );                                    
    if ( IMFS_is_directory( the_jnode ) )                             
      IMFS_dump_directory( the_jnode, level + 1 );                    
  }                                                                   
}                                                                     
 8003994:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003998:	2b 8b 00 40 	lw r11,(sp+64)                                 
 800399c:	2b 8c 00 3c 	lw r12,(sp+60)                                 
 80039a0:	2b 8d 00 38 	lw r13,(sp+56)                                 
 80039a4:	2b 8e 00 34 	lw r14,(sp+52)                                 
 80039a8:	2b 8f 00 30 	lw r15,(sp+48)                                 
 80039ac:	2b 90 00 2c 	lw r16,(sp+44)                                 
 80039b0:	2b 91 00 28 	lw r17,(sp+40)                                 
 80039b4:	2b 92 00 24 	lw r18,(sp+36)                                 
 80039b8:	2b 93 00 20 	lw r19,(sp+32)                                 
 80039bc:	2b 94 00 1c 	lw r20,(sp+28)                                 
 80039c0:	2b 95 00 18 	lw r21,(sp+24)                                 
 80039c4:	2b 96 00 14 	lw r22,(sp+20)                                 
 80039c8:	2b 97 00 10 	lw r23,(sp+16)                                 
 80039cc:	2b 98 00 0c 	lw r24,(sp+12)                                 
 80039d0:	2b 99 00 08 	lw r25,(sp+8)                                  
 80039d4:	37 9c 00 40 	addi sp,sp,64                                  
 80039d8:	c3 a0 00 00 	ret                                            
                                                                      

0800806c <IMFS_eval_token>: rtems_filesystem_eval_path_context_t *ctx, void *arg, const char *token, size_t tokenlen ) {
 800806c:	37 9c ff e0 	addi sp,sp,-32                                 
 8008070:	5b 8b 00 20 	sw (sp+32),r11                                 
 8008074:	5b 8c 00 1c 	sw (sp+28),r12                                 
 8008078:	5b 8d 00 18 	sw (sp+24),r13                                 
 800807c:	5b 8e 00 14 	sw (sp+20),r14                                 
 8008080:	5b 8f 00 10 	sw (sp+16),r15                                 
 8008084:	5b 90 00 0c 	sw (sp+12),r16                                 
 8008088:	5b 91 00 08 	sw (sp+8),r17                                  
 800808c:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_filesystem_eval_path_generic_status status =                  
    RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;                          
  rtems_filesystem_location_info_t *currentloc =                      
    rtems_filesystem_eval_path_get_currentloc( ctx );                 
  IMFS_jnode_t *dir = currentloc->node_access;                        
 8008090:	28 2d 00 20 	lw r13,(r1+32)                                 
  rtems_filesystem_eval_path_context_t *ctx,                          
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
 8008094:	b8 60 78 00 	mv r15,r3                                      
 8008098:	b8 80 80 00 	mv r16,r4                                      
  rtems_filesystem_eval_path_generic_status status =                  
    RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;                          
  rtems_filesystem_location_info_t *currentloc =                      
    rtems_filesystem_eval_path_get_currentloc( ctx );                 
  IMFS_jnode_t *dir = currentloc->node_access;                        
  bool access_ok = rtems_filesystem_eval_path_check_access(           
 800809c:	29 a3 00 30 	lw r3,(r13+48)                                 
 80080a0:	2d a4 00 3c 	lhu r4,(r13+60)                                
 80080a4:	2d a5 00 3e 	lhu r5,(r13+62)                                
 80080a8:	34 02 00 01 	mvi r2,1                                       
  rtems_filesystem_eval_path_context_t *ctx,                          
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
 80080ac:	b8 20 60 00 	mv r12,r1                                      
  rtems_filesystem_eval_path_generic_status status =                  
    RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;                          
  rtems_filesystem_location_info_t *currentloc =                      
    rtems_filesystem_eval_path_get_currentloc( ctx );                 
  IMFS_jnode_t *dir = currentloc->node_access;                        
  bool access_ok = rtems_filesystem_eval_path_check_access(           
 80080b0:	f8 00 03 43 	calli 8008dbc <rtems_filesystem_eval_path_check_access>
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_generic_status status =                  
 80080b4:	34 0e 00 01 	mvi r14,1                                      
    dir->st_mode,                                                     
    dir->st_uid,                                                      
    dir->st_gid                                                       
  );                                                                  
                                                                      
  if ( access_ok ) {                                                  
 80080b8:	44 20 00 46 	be r1,r0,80081d0 <IMFS_eval_token+0x164>       
static inline bool rtems_filesystem_is_current_directory(             
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 1 && token [0] == '.';                           
 80080bc:	5e 0e 00 50 	bne r16,r14,80081fc <IMFS_eval_token+0x190>    
 80080c0:	41 e2 00 00 	lbu r2,(r15+0)                                 
 80080c4:	34 01 00 2e 	mvi r1,46                                      
 80080c8:	5c 41 00 4f 	bne r2,r1,8008204 <IMFS_eval_token+0x198>      
 80080cc:	e0 00 00 15 	bi 8008120 <IMFS_eval_token+0xb4>              
static inline bool rtems_filesystem_is_parent_directory(              
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 2 && token [0] == '.' && token [1] == '.';       
 80080d0:	41 e1 00 00 	lbu r1,(r15+0)                                 
 80080d4:	34 02 00 2e 	mvi r2,46                                      
 80080d8:	5c 22 00 4b 	bne r1,r2,8008204 <IMFS_eval_token+0x198>      
 80080dc:	41 e2 00 01 	lbu r2,(r15+1)                                 
 80080e0:	5c 41 00 49 	bne r2,r1,8008204 <IMFS_eval_token+0x198>      <== NEVER TAKEN
{                                                                     
  if ( rtems_filesystem_is_current_directory( token, tokenlen ) ) {   
    return dir;                                                       
  } else {                                                            
    if ( rtems_filesystem_is_parent_directory( token, tokenlen ) ) {  
      return dir->Parent;                                             
 80080e4:	29 ab 00 08 	lw r11,(r13+8)                                 
 80080e8:	e0 00 00 0f 	bi 8008124 <IMFS_eval_token+0xb8>              
      rtems_chain_node *current = rtems_chain_first( entries );       
      rtems_chain_node *tail = rtems_chain_tail( entries );           
                                                                      
      while ( current != tail ) {                                     
        IMFS_jnode_t *entry = (IMFS_jnode_t *) current;               
        bool match = strncmp( entry->name, token, tokenlen ) == 0     
 80080ec:	35 c1 00 0c 	addi r1,r14,12                                 
 80080f0:	b9 e0 10 00 	mv r2,r15                                      
 80080f4:	ba 00 18 00 	mv r3,r16                                      
      rtems_chain_control *entries = &dir->info.directory.Entries;    
      rtems_chain_node *current = rtems_chain_first( entries );       
      rtems_chain_node *tail = rtems_chain_tail( entries );           
                                                                      
      while ( current != tail ) {                                     
        IMFS_jnode_t *entry = (IMFS_jnode_t *) current;               
 80080f8:	b9 c0 58 00 	mv r11,r14                                     
        bool match = strncmp( entry->name, token, tokenlen ) == 0     
 80080fc:	f8 00 14 38 	calli 800d1dc <strncmp>                        
          && entry->name [tokenlen] == '\0';                          
 8008100:	5c 20 00 44 	bne r1,r0,8008210 <IMFS_eval_token+0x1a4>      
 8008104:	b5 d0 10 00 	add r2,r14,r16                                 
 8008108:	40 42 00 0c 	lbu r2,(r2+12)                                 
 800810c:	44 41 00 06 	be r2,r1,8008124 <IMFS_eval_token+0xb8>        
 8008110:	e0 00 00 40 	bi 8008210 <IMFS_eval_token+0x1a4>             
    } else {                                                          
      rtems_chain_control *entries = &dir->info.directory.Entries;    
      rtems_chain_node *current = rtems_chain_first( entries );       
      rtems_chain_node *tail = rtems_chain_tail( entries );           
                                                                      
      while ( current != tail ) {                                     
 8008114:	5d d1 ff f6 	bne r14,r17,80080ec <IMFS_eval_token+0x80>     
            rtems_filesystem_eval_path_restart( ctx, fs_root_ptr );   
          }                                                           
        }                                                             
      }                                                               
    } else {                                                          
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY;           
 8008118:	34 0e 00 02 	mvi r14,2                                      
 800811c:	e0 00 00 2d 	bi 80081d0 <IMFS_eval_token+0x164>             
static inline bool rtems_filesystem_is_current_directory(             
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 1 && token [0] == '.';                           
 8008120:	b9 a0 58 00 	mv r11,r13                                     
 8008124:	34 0e 00 02 	mvi r14,2                                      
  );                                                                  
                                                                      
  if ( access_ok ) {                                                  
    IMFS_jnode_t *entry = IMFS_search_in_directory( dir, token, tokenlen );
                                                                      
    if ( entry != NULL ) {                                            
 8008128:	45 60 00 2a 	be r11,r0,80081d0 <IMFS_eval_token+0x164>      
  rtems_chain_extract_unprotected( &node->Node );                     
}                                                                     
                                                                      
static inline IMFS_jnode_types_t IMFS_type( const IMFS_jnode_t *node )
{                                                                     
  return node->control->imfs_type;                                    
 800812c:	29 61 00 4c 	lw r1,(r11+76)                                 
      bool terminal = !rtems_filesystem_eval_path_has_path( ctx );    
 8008130:	29 83 00 04 	lw r3,(r12+4)                                  
};                                                                    
                                                                      
void IMFS_eval_path( rtems_filesystem_eval_path_context_t *ctx )      
{                                                                     
  rtems_filesystem_eval_path_generic( ctx, NULL, &IMFS_eval_config ); 
}                                                                     
 8008134:	29 82 00 10 	lw r2,(r12+16)                                 
 8008138:	28 21 00 00 	lw r1,(r1+0)                                   
                                                                      
static inline void rtems_filesystem_eval_path_clear_token(            
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  ctx->tokenlen = 0;                                                  
 800813c:	59 80 00 0c 	sw (r12+12),r0                                 
                                                                      
  if ( access_ok ) {                                                  
    IMFS_jnode_t *entry = IMFS_search_in_directory( dir, token, tokenlen );
                                                                      
    if ( entry != NULL ) {                                            
      bool terminal = !rtems_filesystem_eval_path_has_path( ctx );    
 8008140:	64 63 00 00 	cmpei r3,r3,0                                  
      bool follow_sym_link = (eval_flags & RTEMS_FS_FOLLOW_SYM_LINK) != 0;
      IMFS_jnode_types_t type = IMFS_type( entry );                   
                                                                      
      rtems_filesystem_eval_path_clear_token( ctx );                  
                                                                      
      if ( type == IMFS_HARD_LINK && (follow_hard_link || !terminal)) {
 8008144:	5c 2e 00 06 	bne r1,r14,800815c <IMFS_eval_token+0xf0>      
    IMFS_jnode_t *entry = IMFS_search_in_directory( dir, token, tokenlen );
                                                                      
    if ( entry != NULL ) {                                            
      bool terminal = !rtems_filesystem_eval_path_has_path( ctx );    
      int eval_flags = rtems_filesystem_eval_path_get_flags( ctx );   
      bool follow_hard_link = (eval_flags & RTEMS_FS_FOLLOW_HARD_LINK) != 0;
 8008148:	20 42 00 08 	andi r2,r2,0x8                                 
      bool follow_sym_link = (eval_flags & RTEMS_FS_FOLLOW_SYM_LINK) != 0;
      IMFS_jnode_types_t type = IMFS_type( entry );                   
                                                                      
      rtems_filesystem_eval_path_clear_token( ctx );                  
                                                                      
      if ( type == IMFS_HARD_LINK && (follow_hard_link || !terminal)) {
 800814c:	5c 40 00 02 	bne r2,r0,8008154 <IMFS_eval_token+0xe8>       
 8008150:	5c 62 00 32 	bne r3,r2,8008218 <IMFS_eval_token+0x1ac>      <== ALWAYS TAKEN
        entry = entry->info.hard_link.link_node;                      
 8008154:	29 6b 00 50 	lw r11,(r11+80)                                
 8008158:	e0 00 00 30 	bi 8008218 <IMFS_eval_token+0x1ac>             
      }                                                               
                                                                      
      if ( type == IMFS_SYM_LINK && (follow_sym_link || !terminal)) { 
 800815c:	34 04 00 03 	mvi r4,3                                       
 8008160:	5c 24 00 0d 	bne r1,r4,8008194 <IMFS_eval_token+0x128>      
                                                                      
    if ( entry != NULL ) {                                            
      bool terminal = !rtems_filesystem_eval_path_has_path( ctx );    
      int eval_flags = rtems_filesystem_eval_path_get_flags( ctx );   
      bool follow_hard_link = (eval_flags & RTEMS_FS_FOLLOW_HARD_LINK) != 0;
      bool follow_sym_link = (eval_flags & RTEMS_FS_FOLLOW_SYM_LINK) != 0;
 8008164:	20 41 00 10 	andi r1,r2,0x10                                
                                                                      
      if ( type == IMFS_HARD_LINK && (follow_hard_link || !terminal)) {
        entry = entry->info.hard_link.link_node;                      
      }                                                               
                                                                      
      if ( type == IMFS_SYM_LINK && (follow_sym_link || !terminal)) { 
 8008168:	5c 20 00 02 	bne r1,r0,8008170 <IMFS_eval_token+0x104>      
 800816c:	5c 61 00 2b 	bne r3,r1,8008218 <IMFS_eval_token+0x1ac>      
        const char *target = entry->info.sym_link.name;               
 8008170:	29 6b 00 50 	lw r11,(r11+80)                                
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_generic_status status =                  
 8008174:	34 0e 00 01 	mvi r14,1                                      
      }                                                               
                                                                      
      if ( type == IMFS_SYM_LINK && (follow_sym_link || !terminal)) { 
        const char *target = entry->info.sym_link.name;               
                                                                      
        rtems_filesystem_eval_path_recursive( ctx, target, strlen( target ) );
 8008178:	b9 60 08 00 	mv r1,r11                                      
 800817c:	f8 00 13 e9 	calli 800d120 <strlen>                         
 8008180:	b8 20 18 00 	mv r3,r1                                       
 8008184:	b9 60 10 00 	mv r2,r11                                      
 8008188:	b9 80 08 00 	mv r1,r12                                      
 800818c:	fb ff ea 97 	calli 8002be8 <rtems_filesystem_eval_path_recursive>
                                                                      
      if ( type == IMFS_HARD_LINK && (follow_hard_link || !terminal)) {
        entry = entry->info.hard_link.link_node;                      
      }                                                               
                                                                      
      if ( type == IMFS_SYM_LINK && (follow_sym_link || !terminal)) { 
 8008190:	e0 00 00 10 	bi 80081d0 <IMFS_eval_token+0x164>             
  IMFS_jnode_types_t type                                             
)                                                                     
{                                                                     
  rtems_filesystem_global_location_t **fs_root_ptr = NULL;            
                                                                      
  if ( type == IMFS_DIRECTORY ) {                                     
 8008194:	5c 20 00 21 	bne r1,r0,8008218 <IMFS_eval_token+0x1ac>      
    if ( node->info.directory.mt_fs != NULL ) {                       
 8008198:	29 62 00 5c 	lw r2,(r11+92)                                 
 800819c:	44 41 00 1f 	be r2,r1,8008218 <IMFS_eval_token+0x1ac>       
                                                                      
          if ( !terminal ) {                                          
            status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE;     
          }                                                           
        } else {                                                      
          access_ok = rtems_filesystem_eval_path_check_access(        
 80081a0:	29 63 00 30 	lw r3,(r11+48)                                 
 80081a4:	2d 64 00 3c 	lhu r4,(r11+60)                                
 80081a8:	2d 65 00 3e 	lhu r5,(r11+62)                                
{                                                                     
  rtems_filesystem_global_location_t **fs_root_ptr = NULL;            
                                                                      
  if ( type == IMFS_DIRECTORY ) {                                     
    if ( node->info.directory.mt_fs != NULL ) {                       
      fs_root_ptr = &node->info.directory.mt_fs->mt_fs_root;          
 80081ac:	34 4d 00 24 	addi r13,r2,36                                 
                                                                      
          if ( !terminal ) {                                          
            status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE;     
          }                                                           
        } else {                                                      
          access_ok = rtems_filesystem_eval_path_check_access(        
 80081b0:	b9 80 08 00 	mv r1,r12                                      
 80081b4:	34 02 00 01 	mvi r2,1                                       
 80081b8:	f8 00 03 01 	calli 8008dbc <rtems_filesystem_eval_path_check_access>
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_generic_status status =                  
 80081bc:	34 0e 00 01 	mvi r14,1                                      
            RTEMS_FS_PERMS_EXEC,                                      
            entry->st_mode,                                           
            entry->st_uid,                                            
            entry->st_gid                                             
          );                                                          
          if ( access_ok ) {                                          
 80081c0:	44 20 00 04 	be r1,r0,80081d0 <IMFS_eval_token+0x164>       <== NEVER TAKEN
            rtems_filesystem_eval_path_restart( ctx, fs_root_ptr );   
 80081c4:	b9 80 08 00 	mv r1,r12                                      
 80081c8:	b9 a0 10 00 	mv r2,r13                                      
 80081cc:	fb ff ea 63 	calli 8002b58 <rtems_filesystem_eval_path_restart>
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY;           
    }                                                                 
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
 80081d0:	b9 c0 08 00 	mv r1,r14                                      
 80081d4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80081d8:	2b 8b 00 20 	lw r11,(sp+32)                                 
 80081dc:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 80081e0:	2b 8d 00 18 	lw r13,(sp+24)                                 
 80081e4:	2b 8e 00 14 	lw r14,(sp+20)                                 
 80081e8:	2b 8f 00 10 	lw r15,(sp+16)                                 
 80081ec:	2b 90 00 0c 	lw r16,(sp+12)                                 
 80081f0:	2b 91 00 08 	lw r17,(sp+8)                                  
 80081f4:	37 9c 00 20 	addi sp,sp,32                                  
 80081f8:	c3 a0 00 00 	ret                                            
static inline bool rtems_filesystem_is_parent_directory(              
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 2 && token [0] == '.' && token [1] == '.';       
 80081fc:	34 01 00 02 	mvi r1,2                                       
 8008200:	46 01 ff b4 	be r16,r1,80080d0 <IMFS_eval_token+0x64>       
};                                                                    
                                                                      
void IMFS_eval_path( rtems_filesystem_eval_path_context_t *ctx )      
{                                                                     
  rtems_filesystem_eval_path_generic( ctx, NULL, &IMFS_eval_config ); 
}                                                                     
 8008204:	29 ae 00 50 	lw r14,(r13+80)                                
    if ( rtems_filesystem_is_parent_directory( token, tokenlen ) ) {  
      return dir->Parent;                                             
    } else {                                                          
      rtems_chain_control *entries = &dir->info.directory.Entries;    
      rtems_chain_node *current = rtems_chain_first( entries );       
      rtems_chain_node *tail = rtems_chain_tail( entries );           
 8008208:	35 b1 00 54 	addi r17,r13,84                                
 800820c:	e3 ff ff c2 	bi 8008114 <IMFS_eval_token+0xa8>              
};                                                                    
                                                                      
void IMFS_eval_path( rtems_filesystem_eval_path_context_t *ctx )      
{                                                                     
  rtems_filesystem_eval_path_generic( ctx, NULL, &IMFS_eval_config ); 
}                                                                     
 8008210:	29 ce 00 00 	lw r14,(r14+0)                                 
 8008214:	e3 ff ff c0 	bi 8008114 <IMFS_eval_token+0xa8>              
      } else {                                                        
        rtems_filesystem_global_location_t **fs_root_ptr =            
          IMFS_is_mount_point( entry, type );                         
                                                                      
        if ( fs_root_ptr == NULL ) {                                  
          --dir->reference_count;                                     
 8008218:	2d a1 00 34 	lhu r1,(r13+52)                                
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_generic_status status =                  
 800821c:	b8 60 70 00 	mv r14,r3                                      
      } else {                                                        
        rtems_filesystem_global_location_t **fs_root_ptr =            
          IMFS_is_mount_point( entry, type );                         
                                                                      
        if ( fs_root_ptr == NULL ) {                                  
          --dir->reference_count;                                     
 8008220:	34 21 ff ff 	addi r1,r1,-1                                  
 8008224:	0d a1 00 34 	sh (r13+52),r1                                 
          ++entry->reference_count;                                   
 8008228:	2d 61 00 34 	lhu r1,(r11+52)                                
 800822c:	34 21 00 01 	addi r1,r1,1                                   
 8008230:	0d 61 00 34 	sh (r11+52),r1                                 
                                                                      
static inline void IMFS_Set_handlers( rtems_filesystem_location_info_t *loc )
{                                                                     
  IMFS_jnode_t *node = (IMFS_jnode_t *) loc->node_access;             
                                                                      
  loc->handlers = node->control->handlers;                            
 8008234:	29 61 00 4c 	lw r1,(r11+76)                                 
          currentloc->node_access = entry;                            
 8008238:	59 8b 00 20 	sw (r12+32),r11                                
 800823c:	28 21 00 04 	lw r1,(r1+4)                                   
 8008240:	59 81 00 28 	sw (r12+40),r1                                 
 8008244:	e3 ff ff e3 	bi 80081d0 <IMFS_eval_token+0x164>             
                                                                      

08001790 <IMFS_fifo_write>: static ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) {
 8001790:	37 9c ff ec 	addi sp,sp,-20                                 
 8001794:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8001798:	5b 8c 00 08 	sw (sp+8),r12                                  
 800179c:	5b 9d 00 04 	sw (sp+4),ra                                   
  IMFS_jnode_t *jnode = iop->pathinfo.node_access;                    
 80017a0:	28 2c 00 14 	lw r12,(r1+20)                                 
static ssize_t IMFS_fifo_write(                                       
  rtems_libio_t *iop,                                                 
  const void    *buffer,                                              
  size_t         count                                                
)                                                                     
{                                                                     
 80017a4:	b8 20 20 00 	mv r4,r1                                       
  IMFS_jnode_t *jnode = iop->pathinfo.node_access;                    
                                                                      
  int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop);        
 80017a8:	29 81 00 50 	lw r1,(r12+80)                                 
 80017ac:	f8 00 23 cf 	calli 800a6e8 <pipe_write>                     
 80017b0:	b8 20 58 00 	mv r11,r1                                      
  if (err > 0) {                                                      
 80017b4:	4c 01 00 08 	bge r0,r1,80017d4 <IMFS_fifo_write+0x44>       
    IMFS_mtime_ctime_update(jnode);                                   
 80017b8:	37 81 00 10 	addi r1,sp,16                                  
 80017bc:	34 02 00 00 	mvi r2,0                                       
 80017c0:	f8 00 03 d6 	calli 8002718 <gettimeofday>                   
 80017c4:	2b 81 00 10 	lw r1,(sp+16)                                  
 80017c8:	59 81 00 44 	sw (r12+68),r1                                 
 80017cc:	59 81 00 48 	sw (r12+72),r1                                 
 80017d0:	e0 00 00 06 	bi 80017e8 <IMFS_fifo_write+0x58>              
  }                                                                   
                                                                      
  IMFS_FIFO_RETURN(err);                                              
 80017d4:	44 20 00 05 	be r1,r0,80017e8 <IMFS_fifo_write+0x58>        <== NEVER TAKEN
 80017d8:	c8 0b 58 00 	sub r11,r0,r11                                 
 80017dc:	f8 00 2e 46 	calli 800d0f4 <__errno>                        
 80017e0:	58 2b 00 00 	sw (r1+0),r11                                  
 80017e4:	34 0b ff ff 	mvi r11,-1                                     
}                                                                     
 80017e8:	b9 60 08 00 	mv r1,r11                                      
 80017ec:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80017f0:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80017f4:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80017f8:	37 9c 00 14 	addi sp,sp,20                                  
 80017fc:	c3 a0 00 00 	ret                                            
                                                                      

080082bc <IMFS_fsunmount>: ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) void IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) {
 80082bc:	37 9c ff d8 	addi sp,sp,-40                                 
 80082c0:	5b 8b 00 10 	sw (sp+16),r11                                 
 80082c4:	5b 8c 00 0c 	sw (sp+12),r12                                 
 80082c8:	5b 8d 00 08 	sw (sp+8),r13                                  
 80082cc:	5b 9d 00 04 	sw (sp+4),ra                                   
   /*                                                                 
    * Traverse tree that starts at the mt_fs_root and deallocate memory
    * associated memory space                                         
    */                                                                
                                                                      
   loc = temp_mt_entry->mt_fs_root->location;                         
 80082d0:	28 21 00 24 	lw r1,(r1+36)                                  
     next = jnode->Parent;                                            
     loc.node_access = (void *)jnode;                                 
     IMFS_Set_handlers( &loc );                                       
                                                                      
     if ( !IMFS_is_directory( jnode ) || jnode_has_no_children( jnode ) ) {
        result = IMFS_rmnod( NULL, &loc );                            
 80082d4:	37 8c 00 14 	addi r12,sp,20                                 
   /*                                                                 
    * Traverse tree that starts at the mt_fs_root and deallocate memory
    * associated memory space                                         
    */                                                                
                                                                      
   loc = temp_mt_entry->mt_fs_root->location;                         
 80082d8:	28 2b 00 08 	lw r11,(r1+8)                                  
 80082dc:	28 26 00 00 	lw r6,(r1+0)                                   
 80082e0:	28 25 00 04 	lw r5,(r1+4)                                   
 80082e4:	28 24 00 0c 	lw r4,(r1+12)                                  
 80082e8:	28 23 00 10 	lw r3,(r1+16)                                  
 80082ec:	28 22 00 14 	lw r2,(r1+20)                                  
 80082f0:	5b 86 00 14 	sw (sp+20),r6                                  
 80082f4:	5b 85 00 18 	sw (sp+24),r5                                  
 80082f8:	5b 8b 00 1c 	sw (sp+28),r11                                 
 80082fc:	5b 84 00 20 	sw (sp+32),r4                                  
 8008300:	5b 83 00 24 	sw (sp+36),r3                                  
 8008304:	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->location.node_access = NULL;            
 8008308:	58 20 00 08 	sw (r1+8),r0                                   
 800830c:	29 61 00 4c 	lw r1,(r11+76)                                 
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
 8008310:	29 6d 00 08 	lw r13,(r11+8)                                 
     loc.node_access = (void *)jnode;                                 
 8008314:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8008318:	28 22 00 04 	lw r2,(r1+4)                                   
     IMFS_Set_handlers( &loc );                                       
                                                                      
     if ( !IMFS_is_directory( jnode ) || jnode_has_no_children( jnode ) ) {
 800831c:	28 21 00 00 	lw r1,(r1+0)                                   
 8008320:	5b 82 00 24 	sw (sp+36),r2                                  
 8008324:	5c 20 00 04 	bne r1,r0,8008334 <IMFS_fsunmount+0x78>        
 8008328:	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 );                            
 800832c:	35 61 00 54 	addi r1,r11,84                                 
 8008330:	5c 41 00 0c 	bne r2,r1,8008360 <IMFS_fsunmount+0xa4>        
        result = IMFS_rmnod( NULL, &loc );                            
 8008334:	34 01 00 00 	mvi r1,0                                       
 8008338:	b9 80 10 00 	mv r2,r12                                      
 800833c:	fb ff e3 0e 	calli 8000f74 <IMFS_rmnod>                     
        if ( result != 0 )                                            
 8008340:	44 20 00 05 	be r1,r0,8008354 <IMFS_fsunmount+0x98>         <== ALWAYS TAKEN
	  rtems_fatal_error_occurred( 0xdeadbeef );                          
 8008344:	78 02 08 01 	mvhi r2,0x801                                  <== NOT EXECUTED
 8008348:	38 42 b9 84 	ori r2,r2,0xb984                               <== NOT EXECUTED
 800834c:	28 41 00 00 	lw r1,(r2+0)                                   <== NOT EXECUTED
 8008350:	fb ff ef 12 	calli 8003f98 <rtems_fatal_error_occurred>     <== NOT EXECUTED
        IMFS_node_destroy( jnode );                                   
 8008354:	b9 60 08 00 	mv r1,r11                                      
 8008358:	fb ff e2 24 	calli 8000be8 <IMFS_node_destroy>              
        jnode = next;                                                 
 800835c:	b9 a0 58 00 	mv r11,r13                                     
     }                                                                
     if ( jnode != NULL ) {                                           
 8008360:	45 60 00 09 	be r11,r0,8008384 <IMFS_fsunmount+0xc8>        
  return node->control->imfs_type;                                    
}                                                                     
                                                                      
static inline bool IMFS_is_directory( const IMFS_jnode_t *node )      
{                                                                     
  return node->control->imfs_type == IMFS_DIRECTORY;                  
 8008364:	29 61 00 4c 	lw r1,(r11+76)                                 
       if ( IMFS_is_directory( jnode ) ) {                            
 8008368:	28 21 00 00 	lw r1,(r1+0)                                   
 800836c:	5c 20 ff e8 	bne r1,r0,800830c <IMFS_fsunmount+0x50>        <== NEVER TAKEN
         if ( jnode_has_children( jnode ) )                           
           jnode = jnode_get_first_child( jnode );                    
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
}                                                                     
 8008370:	29 61 00 50 	lw r1,(r11+80)                                 
 8008374:	35 62 00 54 	addi r2,r11,84                                 
        IMFS_node_destroy( jnode );                                   
        jnode = next;                                                 
     }                                                                
     if ( jnode != NULL ) {                                           
       if ( IMFS_is_directory( jnode ) ) {                            
         if ( jnode_has_children( jnode ) )                           
 8008378:	44 22 ff e5 	be r1,r2,800830c <IMFS_fsunmount+0x50>         
           jnode = jnode_get_first_child( jnode );                    
 800837c:	b8 20 58 00 	mv r11,r1                                      
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
 8008380:	5c 20 ff e3 	bne r1,r0,800830c <IMFS_fsunmount+0x50>        <== ALWAYS TAKEN
}                                                                     
 8008384:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8008388:	2b 8b 00 10 	lw r11,(sp+16)                                 
 800838c:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8008390:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8008394:	37 9c 00 28 	addi sp,sp,40                                  
 8008398:	c3 a0 00 00 	ret                                            
                                                                      

08000a8c <IMFS_initialize_support>: int IMFS_initialize_support( rtems_filesystem_mount_table_entry_t *mt_entry, const rtems_filesystem_operations_table *op_table, const IMFS_node_control *const node_controls [IMFS_TYPE_COUNT] ) {
 8000a8c:	37 9c ff ec 	addi sp,sp,-20                                 
 8000a90:	5b 8b 00 14 	sw (sp+20),r11                                 
 8000a94:	5b 8c 00 10 	sw (sp+16),r12                                 
 8000a98:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8000a9c:	5b 8e 00 08 	sw (sp+8),r14                                  
 8000aa0:	5b 9d 00 04 	sw (sp+4),ra                                   
 8000aa4:	b8 20 68 00 	mv r13,r1                                      
 8000aa8:	b8 40 70 00 	mv r14,r2                                      
  static int imfs_instance;                                           
                                                                      
  int rv = 0;                                                         
  IMFS_fs_info_t *fs_info = calloc( 1, sizeof( *fs_info ) );          
 8000aac:	34 01 00 01 	mvi r1,1                                       
 8000ab0:	34 02 00 24 	mvi r2,36                                      
int IMFS_initialize_support(                                          
  rtems_filesystem_mount_table_entry_t *mt_entry,                     
  const rtems_filesystem_operations_table *op_table,                  
  const IMFS_node_control *const node_controls [IMFS_TYPE_COUNT]      
)                                                                     
{                                                                     
 8000ab4:	b8 60 58 00 	mv r11,r3                                      
  static int imfs_instance;                                           
                                                                      
  int rv = 0;                                                         
  IMFS_fs_info_t *fs_info = calloc( 1, sizeof( *fs_info ) );          
 8000ab8:	f8 00 01 d7 	calli 8001214 <calloc>                         
 8000abc:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  if ( fs_info != NULL ) {                                            
 8000ac0:	44 20 00 2d 	be r1,r0,8000b74 <IMFS_initialize_support+0xe8>
    IMFS_jnode_t *root_node;                                          
                                                                      
    fs_info->instance = imfs_instance++;                              
 8000ac4:	78 03 08 01 	mvhi r3,0x801                                  
 8000ac8:	38 63 d7 18 	ori r3,r3,0xd718                               
 8000acc:	28 62 00 00 	lw r2,(r3+0)                                   
 8000ad0:	58 22 00 00 	sw (r1+0),r2                                   
 8000ad4:	34 42 00 01 	addi r2,r2,1                                   
 8000ad8:	58 62 00 00 	sw (r3+0),r2                                   
    memcpy(                                                           
 8000adc:	29 62 00 00 	lw r2,(r11+0)                                  
 8000ae0:	29 66 00 10 	lw r6,(r11+16)                                 
 8000ae4:	29 65 00 14 	lw r5,(r11+20)                                 
 8000ae8:	29 64 00 18 	lw r4,(r11+24)                                 
 8000aec:	29 69 00 04 	lw r9,(r11+4)                                  
 8000af0:	29 68 00 08 	lw r8,(r11+8)                                  
 8000af4:	29 67 00 0c 	lw r7,(r11+12)                                 
      fs_info->node_controls,                                         
 8000af8:	34 23 00 08 	addi r3,r1,8                                   
                                                                      
  if ( fs_info != NULL ) {                                            
    IMFS_jnode_t *root_node;                                          
                                                                      
    fs_info->instance = imfs_instance++;                              
    memcpy(                                                           
 8000afc:	58 22 00 08 	sw (r1+8),r2                                   
 8000b00:	58 66 00 10 	sw (r3+16),r6                                  
 8000b04:	58 65 00 14 	sw (r3+20),r5                                  
 8000b08:	58 64 00 18 	sw (r3+24),r4                                  
 8000b0c:	58 69 00 04 	sw (r3+4),r9                                   
 8000b10:	58 68 00 08 	sw (r3+8),r8                                   
 8000b14:	58 67 00 0c 	sw (r3+12),r7                                  
      fs_info->node_controls,                                         
      node_controls,                                                  
      sizeof( fs_info->node_controls )                                
    );                                                                
                                                                      
    root_node = IMFS_allocate_node(                                   
 8000b18:	78 03 08 01 	mvhi r3,0x801                                  
 8000b1c:	38 63 b3 2c 	ori r3,r3,0xb32c                               
 8000b20:	34 04 00 00 	mvi r4,0                                       
 8000b24:	34 05 41 ed 	mvi r5,16877                                   
 8000b28:	34 06 00 00 	mvi r6,0                                       
 8000b2c:	f8 00 1c f3 	calli 8007ef8 <IMFS_allocate_node>             
      "",                                                             
      0,                                                              
      (S_IFDIR | 0755),                                               
      NULL                                                            
    );                                                                
    if ( root_node != NULL ) {                                        
 8000b30:	44 20 00 11 	be r1,r0,8000b74 <IMFS_initialize_support+0xe8><== NEVER TAKEN
      mt_entry->fs_info = fs_info;                                    
      mt_entry->ops = op_table;                                       
      mt_entry->pathconf_limits_and_options = &IMFS_LIMITS_AND_OPTIONS;
 8000b34:	78 02 08 01 	mvhi r2,0x801                                  
 8000b38:	38 42 bb dc 	ori r2,r2,0xbbdc                               
 8000b3c:	59 a2 00 2c 	sw (r13+44),r2                                 
      mt_entry->mt_fs_root->location.node_access = root_node;         
 8000b40:	29 a2 00 24 	lw r2,(r13+36)                                 
      0,                                                              
      (S_IFDIR | 0755),                                               
      NULL                                                            
    );                                                                
    if ( root_node != NULL ) {                                        
      mt_entry->fs_info = fs_info;                                    
 8000b44:	59 ac 00 08 	sw (r13+8),r12                                 
      mt_entry->ops = op_table;                                       
 8000b48:	59 ae 00 0c 	sw (r13+12),r14                                
      mt_entry->pathconf_limits_and_options = &IMFS_LIMITS_AND_OPTIONS;
      mt_entry->mt_fs_root->location.node_access = root_node;         
 8000b4c:	58 41 00 08 	sw (r2+8),r1                                   
                                                                      
static inline void IMFS_Set_handlers( rtems_filesystem_location_info_t *loc )
{                                                                     
  IMFS_jnode_t *node = (IMFS_jnode_t *) loc->node_access;             
                                                                      
  loc->handlers = node->control->handlers;                            
 8000b50:	28 21 00 4c 	lw r1,(r1+76)                                  
    errno = ENOMEM;                                                   
    rv = -1;                                                          
  }                                                                   
                                                                      
  if ( rv == 0 ) {                                                    
    IMFS_determine_bytes_per_block(                                   
 8000b54:	34 0c 00 06 	mvi r12,6                                      
 8000b58:	28 21 00 04 	lw r1,(r1+4)                                   
 8000b5c:	58 41 00 10 	sw (r2+16),r1                                  
 8000b60:	78 01 08 01 	mvhi r1,0x801                                  
 8000b64:	38 21 d0 14 	ori r1,r1,0xd014                               
 8000b68:	28 2b 00 00 	lw r11,(r1+0)                                  
  int bit_mask;                                                       
                                                                      
  /*                                                                  
   * check, whether requested bytes per block is valid                
   */                                                                 
  for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
 8000b6c:	34 01 00 10 	mvi r1,16                                      
 8000b70:	e0 00 00 06 	bi 8000b88 <IMFS_initialize_support+0xfc>      
    } else {                                                          
      errno = ENOMEM;                                                 
      rv = -1;                                                        
    }                                                                 
  } else {                                                            
    errno = ENOMEM;                                                   
 8000b74:	f8 00 2b 26 	calli 800b80c <__errno>                        
 8000b78:	34 02 00 0c 	mvi r2,12                                      
 8000b7c:	58 22 00 00 	sw (r1+0),r2                                   
 8000b80:	34 01 ff ff 	mvi r1,-1                                      
 8000b84:	e0 00 00 0c 	bi 8000bb4 <IMFS_initialize_support+0x128>     
                                                                      
  /*                                                                  
   * check, whether requested bytes per block is valid                
   */                                                                 
  for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
    if (bit_mask == requested_bytes_per_block) {                      
 8000b88:	44 2b 00 07 	be r1,r11,8000ba4 <IMFS_initialize_support+0x118>
      is_valid = true;                                                
      break;                                                          
    }                                                                 
    if(bit_mask > requested_bytes_per_block)                          
 8000b8c:	48 2b 00 05 	bg r1,r11,8000ba0 <IMFS_initialize_support+0x114>
  int bit_mask;                                                       
                                                                      
  /*                                                                  
   * check, whether requested bytes per block is valid                
   */                                                                 
  for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
 8000b90:	34 02 00 01 	mvi r2,1                                       
 8000b94:	35 8c ff ff 	addi r12,r12,-1                                
 8000b98:	f8 00 65 a8 	calli 801a238 <__ashlsi3>                      
 8000b9c:	5d 80 ff fb 	bne r12,r0,8000b88 <IMFS_initialize_support+0xfc><== ALWAYS TAKEN
    if(bit_mask > requested_bytes_per_block)                          
      break;                                                          
  }                                                                   
  *dest_bytes_per_block = ((is_valid)                                 
			   ? requested_bytes_per_block                                     
			   : default_bytes_per_block);                                     
 8000ba0:	34 0b 00 80 	mvi r11,128                                    
      break;                                                          
    }                                                                 
    if(bit_mask > requested_bytes_per_block)                          
      break;                                                          
  }                                                                   
  *dest_bytes_per_block = ((is_valid)                                 
 8000ba4:	78 01 08 01 	mvhi r1,0x801                                  
 8000ba8:	38 21 d7 14 	ori r1,r1,0xd714                               
 8000bac:	58 2b 00 00 	sw (r1+0),r11                                  
  const IMFS_node_control *const node_controls [IMFS_TYPE_COUNT]      
)                                                                     
{                                                                     
  static int imfs_instance;                                           
                                                                      
  int rv = 0;                                                         
 8000bb0:	34 01 00 00 	mvi r1,0                                       
      IMFS_MEMFILE_DEFAULT_BYTES_PER_BLOCK                            
    );                                                                
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 8000bb4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8000bb8:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8000bbc:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8000bc0:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8000bc4:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8000bc8:	37 9c 00 14 	addi sp,sp,20                                  
 8000bcc:	c3 a0 00 00 	ret                                            
                                                                      

08002cf8 <IMFS_make_generic_node>: const char *path, mode_t mode, const IMFS_node_control *node_control, void *context ) {
 8002cf8:	37 9c ff 98 	addi sp,sp,-104                                
 8002cfc:	5b 8b 00 18 	sw (sp+24),r11                                 
 8002d00:	5b 8c 00 14 	sw (sp+20),r12                                 
 8002d04:	5b 8d 00 10 	sw (sp+16),r13                                 
 8002d08:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8002d0c:	5b 8f 00 08 	sw (sp+8),r15                                  
 8002d10:	5b 9d 00 04 	sw (sp+4),ra                                   
  int rv = 0;                                                         
                                                                      
  mode &= ~rtems_filesystem_umask;                                    
 8002d14:	78 05 08 01 	mvhi r5,0x801                                  
 8002d18:	38 a5 91 7c 	ori r5,r5,0x917c                               
  const char *path,                                                   
  mode_t mode,                                                        
  const IMFS_node_control *node_control,                              
  void *context                                                       
)                                                                     
{                                                                     
 8002d1c:	b8 20 38 00 	mv r7,r1                                       
  int rv = 0;                                                         
                                                                      
  mode &= ~rtems_filesystem_umask;                                    
 8002d20:	28 a1 00 00 	lw r1,(r5+0)                                   
  const char *path,                                                   
  mode_t mode,                                                        
  const IMFS_node_control *node_control,                              
  void *context                                                       
)                                                                     
{                                                                     
 8002d24:	b8 60 58 00 	mv r11,r3                                      
 8002d28:	b8 80 78 00 	mv r15,r4                                      
  int rv = 0;                                                         
                                                                      
  mode &= ~rtems_filesystem_umask;                                    
 8002d2c:	28 2e 00 08 	lw r14,(r1+8)                                  
                                                                      
  switch (mode & S_IFMT) {                                            
 8002d30:	34 01 20 00 	mvi r1,8192                                    
  void *context                                                       
)                                                                     
{                                                                     
  int rv = 0;                                                         
                                                                      
  mode &= ~rtems_filesystem_umask;                                    
 8002d34:	a5 c0 70 00 	not r14,r14                                    
 8002d38:	a0 4e 70 00 	and r14,r2,r14                                 
                                                                      
  switch (mode & S_IFMT) {                                            
 8002d3c:	21 c6 f0 00 	andi r6,r14,0xf000                             
 8002d40:	44 c1 00 08 	be r6,r1,8002d60 <IMFS_make_generic_node+0x68> 
 8002d44:	54 c1 00 03 	bgu r6,r1,8002d50 <IMFS_make_generic_node+0x58><== ALWAYS TAKEN
 8002d48:	34 01 10 00 	mvi r1,4096                                    <== NOT EXECUTED
 8002d4c:	e0 00 00 04 	bi 8002d5c <IMFS_make_generic_node+0x64>       <== NOT EXECUTED
 8002d50:	34 01 60 00 	mvi r1,24576                                   
 8002d54:	44 c1 00 03 	be r6,r1,8002d60 <IMFS_make_generic_node+0x68> 
 8002d58:	34 21 20 00 	addi r1,r1,8192                                
 8002d5c:	5c c1 00 2b 	bne r6,r1,8002e08 <IMFS_make_generic_node+0x110><== ALWAYS TAKEN
      rv = -1;                                                        
      break;                                                          
  }                                                                   
                                                                      
  if ( rv == 0 ) {                                                    
    if ( node_control->imfs_type == IMFS_GENERIC ) {                  
 8002d60:	29 62 00 00 	lw r2,(r11+0)                                  
 8002d64:	34 01 00 07 	mvi r1,7                                       
 8002d68:	5c 41 00 28 	bne r2,r1,8002e08 <IMFS_make_generic_node+0x110>
      rtems_filesystem_eval_path_context_t ctx;                       
      int eval_flags = RTEMS_FS_FOLLOW_LINK                           
        | RTEMS_FS_MAKE                                               
        | RTEMS_FS_EXCLUSIVE;                                         
      const rtems_filesystem_location_info_t *currentloc =            
        rtems_filesystem_eval_path_start( &ctx, path, eval_flags );   
 8002d6c:	37 8c 00 1c 	addi r12,sp,28                                 
    if ( node_control->imfs_type == IMFS_GENERIC ) {                  
      rtems_filesystem_eval_path_context_t ctx;                       
      int eval_flags = RTEMS_FS_FOLLOW_LINK                           
        | RTEMS_FS_MAKE                                               
        | RTEMS_FS_EXCLUSIVE;                                         
      const rtems_filesystem_location_info_t *currentloc =            
 8002d70:	b9 80 08 00 	mv r1,r12                                      
 8002d74:	b8 e0 10 00 	mv r2,r7                                       
 8002d78:	34 03 00 78 	mvi r3,120                                     
 8002d7c:	f8 00 08 71 	calli 8004f40 <rtems_filesystem_eval_path_start>
 8002d80:	b8 20 68 00 	mv r13,r1                                      
        rtems_filesystem_eval_path_start( &ctx, path, eval_flags );   
                                                                      
      if ( IMFS_is_imfs_instance( currentloc ) ) {                    
 8002d84:	fb ff ff c8 	calli 8002ca4 <IMFS_is_imfs_instance>          
 8002d88:	44 20 00 19 	be r1,r0,8002dec <IMFS_make_generic_node+0xf4> 
        IMFS_types_union info;                                        
        IMFS_jnode_t *new_node;                                       
                                                                      
        info.generic.context = context;                               
        new_node = IMFS_create_node_with_control(                     
 8002d8c:	2b 83 00 24 	lw r3,(sp+36)                                  
 8002d90:	2b 84 00 28 	lw r4,(sp+40)                                  
 8002d94:	b9 60 10 00 	mv r2,r11                                      
 8002d98:	b9 a0 08 00 	mv r1,r13                                      
 8002d9c:	b9 c0 28 00 	mv r5,r14                                      
 8002da0:	37 86 00 54 	addi r6,sp,84                                  
                                                                      
      if ( IMFS_is_imfs_instance( currentloc ) ) {                    
        IMFS_types_union info;                                        
        IMFS_jnode_t *new_node;                                       
                                                                      
        info.generic.context = context;                               
 8002da4:	5b 8f 00 54 	sw (sp+84),r15                                 
        new_node = IMFS_create_node_with_control(                     
 8002da8:	f8 00 28 c3 	calli 800d0b4 <IMFS_create_node_with_control>  
          IMFS_jnode_t *parent = currentloc->node_access;             
                                                                      
          IMFS_update_ctime( parent );                                
          IMFS_update_mtime( parent );                                
        } else {                                                      
          rv = -1;                                                    
 8002dac:	34 0b ff ff 	mvi r11,-1                                     
          rtems_filesystem_eval_path_get_tokenlen( &ctx ),            
          mode,                                                       
          &info                                                       
        );                                                            
                                                                      
        if ( new_node != NULL ) {                                     
 8002db0:	44 20 00 13 	be r1,r0,8002dfc <IMFS_make_generic_node+0x104>
          IMFS_jnode_t *parent = currentloc->node_access;             
                                                                      
          IMFS_update_ctime( parent );                                
 8002db4:	37 8c 00 64 	addi r12,sp,100                                
 8002db8:	34 02 00 00 	mvi r2,0                                       
 8002dbc:	b9 80 08 00 	mv r1,r12                                      
          mode,                                                       
          &info                                                       
        );                                                            
                                                                      
        if ( new_node != NULL ) {                                     
          IMFS_jnode_t *parent = currentloc->node_access;             
 8002dc0:	29 ab 00 08 	lw r11,(r13+8)                                 
                                                                      
          IMFS_update_ctime( parent );                                
 8002dc4:	f8 00 02 2e 	calli 800367c <gettimeofday>                   
 8002dc8:	2b 81 00 64 	lw r1,(sp+100)                                 
          IMFS_update_mtime( parent );                                
 8002dcc:	34 02 00 00 	mvi r2,0                                       
        );                                                            
                                                                      
        if ( new_node != NULL ) {                                     
          IMFS_jnode_t *parent = currentloc->node_access;             
                                                                      
          IMFS_update_ctime( parent );                                
 8002dd0:	59 61 00 48 	sw (r11+72),r1                                 
          IMFS_update_mtime( parent );                                
 8002dd4:	b9 80 08 00 	mv r1,r12                                      
 8002dd8:	f8 00 02 29 	calli 800367c <gettimeofday>                   
 8002ddc:	2b 81 00 64 	lw r1,(sp+100)                                 
 8002de0:	59 61 00 44 	sw (r11+68),r1                                 
 8002de4:	34 0b 00 00 	mvi r11,0                                      
 8002de8:	e0 00 00 05 	bi 8002dfc <IMFS_make_generic_node+0x104>      
        } else {                                                      
          rv = -1;                                                    
        }                                                             
      } else {                                                        
        rtems_filesystem_eval_path_error( &ctx, ENOTSUP );            
 8002dec:	b9 80 08 00 	mv r1,r12                                      
 8002df0:	34 02 00 86 	mvi r2,134                                     
 8002df4:	f8 00 07 8b 	calli 8004c20 <rtems_filesystem_eval_path_error>
        rv = -1;                                                      
 8002df8:	34 0b ff ff 	mvi r11,-1                                     
      }                                                               
                                                                      
      rtems_filesystem_eval_path_cleanup( &ctx );                     
 8002dfc:	37 81 00 1c 	addi r1,sp,28                                  
 8002e00:	f8 00 08 9d 	calli 8005074 <rtems_filesystem_eval_path_cleanup>
 8002e04:	e0 00 00 05 	bi 8002e18 <IMFS_make_generic_node+0x120>      
    } else {                                                          
      errno = EINVAL;                                                 
 8002e08:	f8 00 39 12 	calli 8011250 <__errno>                        
 8002e0c:	34 02 00 16 	mvi r2,22                                      
 8002e10:	58 22 00 00 	sw (r1+0),r2                                   
      rv = -1;                                                        
 8002e14:	34 0b ff ff 	mvi r11,-1                                     
    }                                                                 
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 8002e18:	b9 60 08 00 	mv r1,r11                                      
 8002e1c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002e20:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8002e24:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8002e28:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8002e2c:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8002e30:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8002e34:	37 9c 00 68 	addi sp,sp,104                                 
 8002e38:	c3 a0 00 00 	ret                                            
                                                                      

0800a8a4 <IMFS_memfile_extend>: MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, bool zero_fill, off_t new_length ) {
 800a8a4:	37 9c ff d0 	addi sp,sp,-48                                 
 800a8a8:	5b 8b 00 28 	sw (sp+40),r11                                 
 800a8ac:	5b 8c 00 24 	sw (sp+36),r12                                 
 800a8b0:	5b 8d 00 20 	sw (sp+32),r13                                 
 800a8b4:	5b 8e 00 1c 	sw (sp+28),r14                                 
 800a8b8:	5b 8f 00 18 	sw (sp+24),r15                                 
 800a8bc:	5b 90 00 14 	sw (sp+20),r16                                 
 800a8c0:	5b 91 00 10 	sw (sp+16),r17                                 
 800a8c4:	5b 92 00 0c 	sw (sp+12),r18                                 
 800a8c8:	5b 93 00 08 	sw (sp+8),r19                                  
 800a8cc:	5b 9d 00 04 	sw (sp+4),ra                                   
    IMFS_assert( IMFS_type( the_jnode ) == IMFS_MEMORY_FILE );        
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
 800a8d0:	78 0e 08 01 	mvhi r14,0x801                                 
 800a8d4:	39 ce d7 14 	ori r14,r14,0xd714                             
 800a8d8:	29 cb 00 00 	lw r11,(r14+0)                                 
MEMFILE_STATIC int IMFS_memfile_extend(                               
   IMFS_jnode_t  *the_jnode,                                          
   bool           zero_fill,                                          
   off_t          new_length                                          
)                                                                     
{                                                                     
 800a8dc:	b8 20 60 00 	mv r12,r1                                      
 800a8e0:	20 52 00 ff 	andi r18,r2,0xff                               
    IMFS_assert( IMFS_type( the_jnode ) == IMFS_MEMORY_FILE );        
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
 800a8e4:	b9 60 08 00 	mv r1,r11                                      
 800a8e8:	34 02 00 02 	mvi r2,2                                       
MEMFILE_STATIC int IMFS_memfile_extend(                               
   IMFS_jnode_t  *the_jnode,                                          
   bool           zero_fill,                                          
   off_t          new_length                                          
)                                                                     
{                                                                     
 800a8ec:	b8 60 68 00 	mv r13,r3                                      
    IMFS_assert( IMFS_type( the_jnode ) == IMFS_MEMORY_FILE );        
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
 800a8f0:	f8 00 3e a0 	calli 801a370 <__lshrsi3>                      
 800a8f4:	b8 20 78 00 	mv r15,r1                                      
 800a8f8:	b9 e0 10 00 	mv r2,r15                                      
 800a8fc:	34 21 00 01 	addi r1,r1,1                                   
 800a900:	f8 00 3e c3 	calli 801a40c <__mulsi3>                       
 800a904:	b9 e0 10 00 	mv r2,r15                                      
 800a908:	34 21 00 01 	addi r1,r1,1                                   
 800a90c:	f8 00 3e c0 	calli 801a40c <__mulsi3>                       
 800a910:	34 21 ff ff 	addi r1,r1,-1                                  
 800a914:	b9 60 10 00 	mv r2,r11                                      
 800a918:	f8 00 3e bd 	calli 801a40c <__mulsi3>                       
 800a91c:	54 2d 00 04 	bgu r1,r13,800a92c <IMFS_memfile_extend+0x88>  
    rtems_set_errno_and_return_minus_one( EFBIG );                    
 800a920:	f8 00 03 bb 	calli 800b80c <__errno>                        
 800a924:	34 02 00 1b 	mvi r2,27                                      
 800a928:	e0 00 00 2a 	bi 800a9d0 <IMFS_memfile_extend+0x12c>         
                                                                      
  /*                                                                  
   *  Verify new file size is actually larger than current size       
   */                                                                 
  if ( new_length <= the_jnode->info.file.size )                      
 800a92c:	29 8f 00 50 	lw r15,(r12+80)                                
    return 0;                                                         
 800a930:	34 04 00 00 	mvi r4,0                                       
    rtems_set_errno_and_return_minus_one( EFBIG );                    
                                                                      
  /*                                                                  
   *  Verify new file size is actually larger than current size       
   */                                                                 
  if ( new_length <= the_jnode->info.file.size )                      
 800a934:	4d ed 00 39 	bge r15,r13,800aa18 <IMFS_memfile_extend+0x174><== NEVER TAKEN
    return 0;                                                         
                                                                      
  /*                                                                  
   *  Calculate the number of range of blocks to allocate             
   */                                                                 
  new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;             
 800a938:	b9 60 10 00 	mv r2,r11                                      
 800a93c:	b9 a0 08 00 	mv r1,r13                                      
 800a940:	f8 00 3e bf 	calli 801a43c <__divsi3>                       
  old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
 800a944:	b9 60 10 00 	mv r2,r11                                      
    return 0;                                                         
                                                                      
  /*                                                                  
   *  Calculate the number of range of blocks to allocate             
   */                                                                 
  new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;             
 800a948:	b8 20 88 00 	mv r17,r1                                      
  old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
 800a94c:	b9 e0 08 00 	mv r1,r15                                      
 800a950:	f8 00 3e bb 	calli 801a43c <__divsi3>                       
  offset = the_jnode->info.file.size - old_blocks * IMFS_MEMFILE_BYTES_PER_BLOCK;
 800a954:	b9 60 10 00 	mv r2,r11                                      
                                                                      
  /*                                                                  
   *  Calculate the number of range of blocks to allocate             
   */                                                                 
  new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;             
  old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
 800a958:	b8 20 80 00 	mv r16,r1                                      
  offset = the_jnode->info.file.size - old_blocks * IMFS_MEMFILE_BYTES_PER_BLOCK;
 800a95c:	f8 00 3e ac 	calli 801a40c <__mulsi3>                       
 800a960:	c9 e1 78 00 	sub r15,r15,r1                                 
                                                                      
  /*                                                                  
   *  Now allocate each of those blocks.                              
   */                                                                 
  for ( block=old_blocks ; block<=new_blocks ; block++ ) {            
 800a964:	ba 00 58 00 	mv r11,r16                                     
 800a968:	e0 00 00 1e 	bi 800a9e0 <IMFS_memfile_extend+0x13c>         
    if ( !IMFS_memfile_addblock( the_jnode, block ) ) {               
 800a96c:	b9 80 08 00 	mv r1,r12                                      
 800a970:	b9 60 10 00 	mv r2,r11                                      
 800a974:	fb ff ff 29 	calli 800a618 <IMFS_memfile_addblock>          
 800a978:	b8 20 18 00 	mv r3,r1                                       
 800a97c:	5c 20 00 12 	bne r1,r0,800a9c4 <IMFS_memfile_extend+0x120>  
       if ( zero_fill ) {                                             
 800a980:	46 41 00 17 	be r18,r1,800a9dc <IMFS_memfile_extend+0x138>  
          size_t count = IMFS_MEMFILE_BYTES_PER_BLOCK - offset;       
          block_p *block_ptr =                                        
 800a984:	b9 60 10 00 	mv r2,r11                                      
 800a988:	b9 80 08 00 	mv r1,r12                                      
   *  Now allocate each of those blocks.                              
   */                                                                 
  for ( block=old_blocks ; block<=new_blocks ; block++ ) {            
    if ( !IMFS_memfile_addblock( the_jnode, block ) ) {               
       if ( zero_fill ) {                                             
          size_t count = IMFS_MEMFILE_BYTES_PER_BLOCK - offset;       
 800a98c:	29 d3 00 00 	lw r19,(r14+0)                                 
          block_p *block_ptr =                                        
 800a990:	fb ff fd fa 	calli 800a178 <IMFS_memfile_get_block_pointer> 
            IMFS_memfile_get_block_pointer( the_jnode, block, 0 );    
                                                                      
          memset( &(*block_ptr) [offset], 0, count);                  
 800a994:	28 24 00 00 	lw r4,(r1+0)                                   
   *  Now allocate each of those blocks.                              
   */                                                                 
  for ( block=old_blocks ; block<=new_blocks ; block++ ) {            
    if ( !IMFS_memfile_addblock( the_jnode, block ) ) {               
       if ( zero_fill ) {                                             
          size_t count = IMFS_MEMFILE_BYTES_PER_BLOCK - offset;       
 800a998:	ca 6f 98 00 	sub r19,r19,r15                                
          block_p *block_ptr =                                        
            IMFS_memfile_get_block_pointer( the_jnode, block, 0 );    
                                                                      
          memset( &(*block_ptr) [offset], 0, count);                  
 800a99c:	34 02 00 00 	mvi r2,0                                       
 800a9a0:	b4 8f 08 00 	add r1,r4,r15                                  
 800a9a4:	ba 60 18 00 	mv r3,r19                                      
 800a9a8:	f8 00 06 d4 	calli 800c4f8 <memset>                         
          offset = 0;                                                 
 800a9ac:	34 0f 00 00 	mvi r15,0                                      
 800a9b0:	e0 00 00 0b 	bi 800a9dc <IMFS_memfile_extend+0x138>         
       }                                                              
    } else {                                                          
       for ( ; block>=old_blocks ; block-- ) {                        
         IMFS_memfile_remove_block( the_jnode, block );               
 800a9b4:	b9 60 10 00 	mv r2,r11                                      
 800a9b8:	b9 80 08 00 	mv r1,r12                                      
 800a9bc:	fb ff ff ae 	calli 800a874 <IMFS_memfile_remove_block>      
                                                                      
          memset( &(*block_ptr) [offset], 0, count);                  
          offset = 0;                                                 
       }                                                              
    } else {                                                          
       for ( ; block>=old_blocks ; block-- ) {                        
 800a9c0:	35 6b ff ff 	addi r11,r11,-1                                
 800a9c4:	51 70 ff fc 	bgeu r11,r16,800a9b4 <IMFS_memfile_extend+0x110>
         IMFS_memfile_remove_block( the_jnode, block );               
       }                                                              
       rtems_set_errno_and_return_minus_one( ENOSPC );                
 800a9c8:	f8 00 03 91 	calli 800b80c <__errno>                        
 800a9cc:	34 02 00 1c 	mvi r2,28                                      
 800a9d0:	58 22 00 00 	sw (r1+0),r2                                   
 800a9d4:	34 04 ff ff 	mvi r4,-1                                      
 800a9d8:	e0 00 00 10 	bi 800aa18 <IMFS_memfile_extend+0x174>         
  offset = the_jnode->info.file.size - old_blocks * IMFS_MEMFILE_BYTES_PER_BLOCK;
                                                                      
  /*                                                                  
   *  Now allocate each of those blocks.                              
   */                                                                 
  for ( block=old_blocks ; block<=new_blocks ; block++ ) {            
 800a9dc:	35 6b 00 01 	addi r11,r11,1                                 
 800a9e0:	52 2b ff e3 	bgeu r17,r11,800a96c <IMFS_memfile_extend+0xc8>
  /*                                                                  
   *  Set the new length of the file.                                 
   */                                                                 
  the_jnode->info.file.size = new_length;                             
                                                                      
  IMFS_update_ctime(the_jnode);                                       
 800a9e4:	37 8b 00 2c 	addi r11,sp,44                                 
 800a9e8:	34 02 00 00 	mvi r2,0                                       
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new length of the file.                                 
   */                                                                 
  the_jnode->info.file.size = new_length;                             
 800a9ec:	59 8d 00 50 	sw (r12+80),r13                                
                                                                      
  IMFS_update_ctime(the_jnode);                                       
 800a9f0:	b9 60 08 00 	mv r1,r11                                      
 800a9f4:	fb ff db 06 	calli 800160c <gettimeofday>                   
 800a9f8:	2b 81 00 2c 	lw r1,(sp+44)                                  
  IMFS_update_mtime(the_jnode);                                       
 800a9fc:	34 02 00 00 	mvi r2,0                                       
  /*                                                                  
   *  Set the new length of the file.                                 
   */                                                                 
  the_jnode->info.file.size = new_length;                             
                                                                      
  IMFS_update_ctime(the_jnode);                                       
 800aa00:	59 81 00 48 	sw (r12+72),r1                                 
  IMFS_update_mtime(the_jnode);                                       
 800aa04:	b9 60 08 00 	mv r1,r11                                      
 800aa08:	fb ff db 01 	calli 800160c <gettimeofday>                   
 800aa0c:	2b 81 00 2c 	lw r1,(sp+44)                                  
  return 0;                                                           
 800aa10:	34 04 00 00 	mvi r4,0                                       
   *  Set the new length of the file.                                 
   */                                                                 
  the_jnode->info.file.size = new_length;                             
                                                                      
  IMFS_update_ctime(the_jnode);                                       
  IMFS_update_mtime(the_jnode);                                       
 800aa14:	59 81 00 44 	sw (r12+68),r1                                 
  return 0;                                                           
}                                                                     
 800aa18:	b8 80 08 00 	mv r1,r4                                       
 800aa1c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800aa20:	2b 8b 00 28 	lw r11,(sp+40)                                 
 800aa24:	2b 8c 00 24 	lw r12,(sp+36)                                 
 800aa28:	2b 8d 00 20 	lw r13,(sp+32)                                 
 800aa2c:	2b 8e 00 1c 	lw r14,(sp+28)                                 
 800aa30:	2b 8f 00 18 	lw r15,(sp+24)                                 
 800aa34:	2b 90 00 14 	lw r16,(sp+20)                                 
 800aa38:	2b 91 00 10 	lw r17,(sp+16)                                 
 800aa3c:	2b 92 00 0c 	lw r18,(sp+12)                                 
 800aa40:	2b 93 00 08 	lw r19,(sp+8)                                  
 800aa44:	37 9c 00 30 	addi sp,sp,48                                  
 800aa48:	c3 a0 00 00 	ret                                            
                                                                      

0800a178 <IMFS_memfile_get_block_pointer>: #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) {
 800a178:	37 9c ff e0 	addi sp,sp,-32                                 
 800a17c:	5b 8b 00 20 	sw (sp+32),r11                                 
 800a180:	5b 8c 00 1c 	sw (sp+28),r12                                 
 800a184:	5b 8d 00 18 	sw (sp+24),r13                                 
 800a188:	5b 8e 00 14 	sw (sp+20),r14                                 
 800a18c:	5b 8f 00 10 	sw (sp+16),r15                                 
 800a190:	5b 90 00 0c 	sw (sp+12),r16                                 
 800a194:	5b 91 00 08 	sw (sp+8),r17                                  
 800a198:	5b 9d 00 04 	sw (sp+4),ra                                   
 800a19c:	b8 20 68 00 	mv r13,r1                                      
  my_block = block;                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
 800a1a0:	78 01 08 01 	mvhi r1,0x801                                  
 800a1a4:	38 21 d7 14 	ori r1,r1,0xd714                               
 800a1a8:	28 21 00 00 	lw r1,(r1+0)                                   
#endif                                                                
   IMFS_jnode_t   *the_jnode,                                         
   unsigned int    block,                                             
   int             malloc_it                                          
)                                                                     
{                                                                     
 800a1ac:	b8 40 70 00 	mv r14,r2                                      
  my_block = block;                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
 800a1b0:	34 02 00 02 	mvi r2,2                                       
#endif                                                                
   IMFS_jnode_t   *the_jnode,                                         
   unsigned int    block,                                             
   int             malloc_it                                          
)                                                                     
{                                                                     
 800a1b4:	b8 60 78 00 	mv r15,r3                                      
  my_block = block;                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
 800a1b8:	f8 00 40 6e 	calli 801a370 <__lshrsi3>                      
 800a1bc:	b8 20 60 00 	mv r12,r1                                      
 800a1c0:	34 21 ff ff 	addi r1,r1,-1                                  
 800a1c4:	55 c1 00 12 	bgu r14,r1,800a20c <IMFS_memfile_get_block_pointer+0x94>
    p = info->indirect;                                               
 800a1c8:	29 ac 00 54 	lw r12,(r13+84)                                
                                                                      
    if ( malloc_it ) {                                                
 800a1cc:	45 e0 00 0c 	be r15,r0,800a1fc <IMFS_memfile_get_block_pointer+0x84>
                                                                      
      if ( !p ) {                                                     
 800a1d0:	5d 80 00 05 	bne r12,r0,800a1e4 <IMFS_memfile_get_block_pointer+0x6c>
        p = memfile_alloc_block();                                    
 800a1d4:	fb ff ff d9 	calli 800a138 <memfile_alloc_block>            
        if ( !p )                                                     
           return 0;                                                  
 800a1d8:	34 0b 00 00 	mvi r11,0                                      
                                                                      
    if ( malloc_it ) {                                                
                                                                      
      if ( !p ) {                                                     
        p = memfile_alloc_block();                                    
        if ( !p )                                                     
 800a1dc:	44 2c 00 81 	be r1,r12,800a3e0 <IMFS_memfile_get_block_pointer+0x268><== NEVER TAKEN
           return 0;                                                  
        info->indirect = p;                                           
 800a1e0:	59 a1 00 54 	sw (r13+84),r1                                 
      }                                                               
      return &info->indirect[ my_block ];                             
 800a1e4:	b9 c0 08 00 	mv r1,r14                                      
 800a1e8:	34 02 00 02 	mvi r2,2                                       
 800a1ec:	f8 00 40 13 	calli 801a238 <__ashlsi3>                      
 800a1f0:	29 ab 00 54 	lw r11,(r13+84)                                
 800a1f4:	b5 61 58 00 	add r11,r11,r1                                 
 800a1f8:	e0 00 00 7a 	bi 800a3e0 <IMFS_memfile_get_block_pointer+0x268>
    }                                                                 
                                                                      
    if ( !p )                                                         
      return 0;                                                       
 800a1fc:	34 0b 00 00 	mvi r11,0                                      
                                                                      
    return &info->indirect[ my_block ];                               
 800a200:	b9 c0 08 00 	mv r1,r14                                      
        info->indirect = p;                                           
      }                                                               
      return &info->indirect[ my_block ];                             
    }                                                                 
                                                                      
    if ( !p )                                                         
 800a204:	5d 8b 00 74 	bne r12,r11,800a3d4 <IMFS_memfile_get_block_pointer+0x25c><== ALWAYS TAKEN
 800a208:	e0 00 00 76 	bi 800a3e0 <IMFS_memfile_get_block_pointer+0x268><== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Is the block number in the doubly indirect portion?             
   */                                                                 
                                                                      
  if ( my_block <= LAST_DOUBLY_INDIRECT ) {                           
 800a20c:	35 81 00 01 	addi r1,r12,1                                  
 800a210:	b9 80 10 00 	mv r2,r12                                      
 800a214:	f8 00 40 7e 	calli 801a40c <__mulsi3>                       
 800a218:	b8 20 80 00 	mv r16,r1                                      
 800a21c:	34 21 ff ff 	addi r1,r1,-1                                  
 800a220:	55 c1 00 2b 	bgu r14,r1,800a2cc <IMFS_memfile_get_block_pointer+0x154>
    my_block -= FIRST_DOUBLY_INDIRECT;                                
 800a224:	c9 cc 70 00 	sub r14,r14,r12                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
 800a228:	b9 80 10 00 	mv r2,r12                                      
 800a22c:	b9 c0 08 00 	mv r1,r14                                      
 800a230:	f8 00 40 ec 	calli 801a5e0 <__umodsi3>                      
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
 800a234:	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;                     
 800a238:	b8 20 80 00 	mv r16,r1                                      
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
 800a23c:	b9 c0 08 00 	mv r1,r14                                      
 800a240:	f8 00 40 d8 	calli 801a5a0 <__udivsi3>                      
 800a244:	b8 20 70 00 	mv r14,r1                                      
                                                                      
    p = info->doubly_indirect;                                        
 800a248:	29 ac 00 58 	lw r12,(r13+88)                                
    if ( malloc_it ) {                                                
 800a24c:	45 e0 00 17 	be r15,r0,800a2a8 <IMFS_memfile_get_block_pointer+0x130>
                                                                      
      if ( !p ) {                                                     
 800a250:	5d 80 00 06 	bne r12,r0,800a268 <IMFS_memfile_get_block_pointer+0xf0>
        p = memfile_alloc_block();                                    
 800a254:	fb ff ff b9 	calli 800a138 <memfile_alloc_block>            
 800a258:	b8 20 60 00 	mv r12,r1                                      
        if ( !p )                                                     
           return 0;                                                  
 800a25c:	34 0b 00 00 	mvi r11,0                                      
    p = info->doubly_indirect;                                        
    if ( malloc_it ) {                                                
                                                                      
      if ( !p ) {                                                     
        p = memfile_alloc_block();                                    
        if ( !p )                                                     
 800a260:	44 20 00 60 	be r1,r0,800a3e0 <IMFS_memfile_get_block_pointer+0x268><== NEVER TAKEN
           return 0;                                                  
        info->doubly_indirect = p;                                    
 800a264:	59 a1 00 58 	sw (r13+88),r1                                 
      }                                                               
                                                                      
      p1 = (block_p *)p[ doubly ];                                    
 800a268:	b9 c0 08 00 	mv r1,r14                                      
 800a26c:	34 02 00 02 	mvi r2,2                                       
 800a270:	f8 00 3f f2 	calli 801a238 <__ashlsi3>                      
 800a274:	b5 81 60 00 	add r12,r12,r1                                 
 800a278:	29 8d 00 00 	lw r13,(r12+0)                                 
      if ( !p1 ) {                                                    
 800a27c:	5d a0 00 06 	bne r13,r0,800a294 <IMFS_memfile_get_block_pointer+0x11c>
        p1 = memfile_alloc_block();                                   
 800a280:	fb ff ff ae 	calli 800a138 <memfile_alloc_block>            
 800a284:	b8 20 68 00 	mv r13,r1                                      
        if ( !p1 )                                                    
           return 0;                                                  
 800a288:	34 0b 00 00 	mvi r11,0                                      
      }                                                               
                                                                      
      p1 = (block_p *)p[ doubly ];                                    
      if ( !p1 ) {                                                    
        p1 = memfile_alloc_block();                                   
        if ( !p1 )                                                    
 800a28c:	44 20 00 55 	be r1,r0,800a3e0 <IMFS_memfile_get_block_pointer+0x268><== NEVER TAKEN
           return 0;                                                  
        p[ doubly ] = (block_p) p1;                                   
 800a290:	59 81 00 00 	sw (r12+0),r1                                  
      }                                                               
                                                                      
      return (block_p *)&p1[ singly ];                                
 800a294:	ba 00 08 00 	mv r1,r16                                      
 800a298:	34 02 00 02 	mvi r2,2                                       
 800a29c:	f8 00 3f e7 	calli 801a238 <__ashlsi3>                      
 800a2a0:	b5 a1 58 00 	add r11,r13,r1                                 
 800a2a4:	e0 00 00 4f 	bi 800a3e0 <IMFS_memfile_get_block_pointer+0x268>
    }                                                                 
                                                                      
    if ( !p )                                                         
      return 0;                                                       
 800a2a8:	34 0b 00 00 	mvi r11,0                                      
      }                                                               
                                                                      
      return (block_p *)&p1[ singly ];                                
    }                                                                 
                                                                      
    if ( !p )                                                         
 800a2ac:	45 8b 00 4d 	be r12,r11,800a3e0 <IMFS_memfile_get_block_pointer+0x268><== NEVER TAKEN
      return 0;                                                       
                                                                      
    p = (block_p *)p[ doubly ];                                       
 800a2b0:	34 02 00 02 	mvi r2,2                                       
 800a2b4:	f8 00 3f e1 	calli 801a238 <__ashlsi3>                      
 800a2b8:	b5 81 08 00 	add r1,r12,r1                                  
 800a2bc:	28 2c 00 00 	lw r12,(r1+0)                                  
    if ( !p )                                                         
      return 0;                                                       
                                                                      
    return (block_p *)&p[ singly ];                                   
 800a2c0:	ba 00 08 00 	mv r1,r16                                      
                                                                      
    if ( !p )                                                         
      return 0;                                                       
                                                                      
    p = (block_p *)p[ doubly ];                                       
    if ( !p )                                                         
 800a2c4:	5d 80 00 44 	bne r12,r0,800a3d4 <IMFS_memfile_get_block_pointer+0x25c><== ALWAYS TAKEN
 800a2c8:	e0 00 00 46 	bi 800a3e0 <IMFS_memfile_get_block_pointer+0x268><== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the triply indirect portion?             
   */                                                                 
  if ( my_block <= LAST_TRIPLY_INDIRECT ) {                           
 800a2cc:	36 01 00 01 	addi r1,r16,1                                  
 800a2d0:	b9 80 10 00 	mv r2,r12                                      
 800a2d4:	f8 00 40 4e 	calli 801a40c <__mulsi3>                       
 800a2d8:	34 21 ff ff 	addi r1,r1,-1                                  
  }                                                                   
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
 800a2dc:	34 0b 00 00 	mvi r11,0                                      
  }                                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the triply indirect portion?             
   */                                                                 
  if ( my_block <= LAST_TRIPLY_INDIRECT ) {                           
 800a2e0:	55 c1 00 40 	bgu r14,r1,800a3e0 <IMFS_memfile_get_block_pointer+0x268><== NEVER TAKEN
    my_block -= FIRST_TRIPLY_INDIRECT;                                
 800a2e4:	c9 d0 70 00 	sub r14,r14,r16                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
 800a2e8:	b9 80 10 00 	mv r2,r12                                      
 800a2ec:	b9 c0 08 00 	mv r1,r14                                      
 800a2f0:	f8 00 40 bc 	calli 801a5e0 <__umodsi3>                      
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
 800a2f4:	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;                     
 800a2f8:	b8 20 88 00 	mv r17,r1                                      
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
 800a2fc:	b9 c0 08 00 	mv r1,r14                                      
 800a300:	f8 00 40 a8 	calli 801a5a0 <__udivsi3>                      
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
 800a304:	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;                     
 800a308:	b8 20 70 00 	mv r14,r1                                      
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
 800a30c:	f8 00 40 a5 	calli 801a5a0 <__udivsi3>                      
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
 800a310:	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;                       
 800a314:	b8 20 80 00 	mv r16,r1                                      
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
 800a318:	b9 c0 08 00 	mv r1,r14                                      
 800a31c:	f8 00 40 b1 	calli 801a5e0 <__umodsi3>                      
 800a320:	b8 20 70 00 	mv r14,r1                                      
                                                                      
    p = info->triply_indirect;                                        
 800a324:	29 ac 00 5c 	lw r12,(r13+92)                                
                                                                      
    if ( malloc_it ) {                                                
 800a328:	45 e0 00 1d 	be r15,r0,800a39c <IMFS_memfile_get_block_pointer+0x224>
      if ( !p ) {                                                     
 800a32c:	5d 80 00 05 	bne r12,r0,800a340 <IMFS_memfile_get_block_pointer+0x1c8>
        p = memfile_alloc_block();                                    
 800a330:	fb ff ff 82 	calli 800a138 <memfile_alloc_block>            
 800a334:	b8 20 60 00 	mv r12,r1                                      
        if ( !p )                                                     
 800a338:	44 20 00 2a 	be r1,r0,800a3e0 <IMFS_memfile_get_block_pointer+0x268><== NEVER TAKEN
           return 0;                                                  
        info->triply_indirect = p;                                    
 800a33c:	59 a1 00 5c 	sw (r13+92),r1                                 
      }                                                               
                                                                      
      p1 = (block_p *) p[ triply ];                                   
 800a340:	ba 00 08 00 	mv r1,r16                                      
 800a344:	34 02 00 02 	mvi r2,2                                       
 800a348:	f8 00 3f bc 	calli 801a238 <__ashlsi3>                      
 800a34c:	b5 81 60 00 	add r12,r12,r1                                 
 800a350:	29 8d 00 00 	lw r13,(r12+0)                                 
      if ( !p1 ) {                                                    
 800a354:	5d a0 00 06 	bne r13,r0,800a36c <IMFS_memfile_get_block_pointer+0x1f4>
        p1 = memfile_alloc_block();                                   
 800a358:	fb ff ff 78 	calli 800a138 <memfile_alloc_block>            
 800a35c:	b8 20 68 00 	mv r13,r1                                      
        if ( !p1 )                                                    
           return 0;                                                  
 800a360:	34 0b 00 00 	mvi r11,0                                      
      }                                                               
                                                                      
      p1 = (block_p *) p[ triply ];                                   
      if ( !p1 ) {                                                    
        p1 = memfile_alloc_block();                                   
        if ( !p1 )                                                    
 800a364:	44 20 00 1f 	be r1,r0,800a3e0 <IMFS_memfile_get_block_pointer+0x268><== NEVER TAKEN
           return 0;                                                  
        p[ triply ] = (block_p) p1;                                   
 800a368:	59 81 00 00 	sw (r12+0),r1                                  
      }                                                               
                                                                      
      p2 = (block_p *)p1[ doubly ];                                   
 800a36c:	b9 c0 08 00 	mv r1,r14                                      
 800a370:	34 02 00 02 	mvi r2,2                                       
 800a374:	f8 00 3f b1 	calli 801a238 <__ashlsi3>                      
 800a378:	b5 a1 68 00 	add r13,r13,r1                                 
 800a37c:	29 ac 00 00 	lw r12,(r13+0)                                 
      if ( !p2 ) {                                                    
 800a380:	5d 80 00 14 	bne r12,r0,800a3d0 <IMFS_memfile_get_block_pointer+0x258>
        p2 = memfile_alloc_block();                                   
 800a384:	fb ff ff 6d 	calli 800a138 <memfile_alloc_block>            
 800a388:	b8 20 60 00 	mv r12,r1                                      
        if ( !p2 )                                                    
           return 0;                                                  
 800a38c:	34 0b 00 00 	mvi r11,0                                      
      }                                                               
                                                                      
      p2 = (block_p *)p1[ doubly ];                                   
      if ( !p2 ) {                                                    
        p2 = memfile_alloc_block();                                   
        if ( !p2 )                                                    
 800a390:	44 20 00 14 	be r1,r0,800a3e0 <IMFS_memfile_get_block_pointer+0x268><== NEVER TAKEN
           return 0;                                                  
        p1[ doubly ] = (block_p) p2;                                  
 800a394:	59 a1 00 00 	sw (r13+0),r1                                  
 800a398:	e0 00 00 0e 	bi 800a3d0 <IMFS_memfile_get_block_pointer+0x258>
      }                                                               
      return (block_p *)&p2[ singly ];                                
    }                                                                 
                                                                      
    if ( !p )                                                         
 800a39c:	45 8b 00 11 	be r12,r11,800a3e0 <IMFS_memfile_get_block_pointer+0x268><== NEVER TAKEN
      return 0;                                                       
                                                                      
    p1 = (block_p *) p[ triply ];                                     
 800a3a0:	ba 00 08 00 	mv r1,r16                                      
 800a3a4:	34 02 00 02 	mvi r2,2                                       
 800a3a8:	f8 00 3f a4 	calli 801a238 <__ashlsi3>                      
 800a3ac:	b5 81 08 00 	add r1,r12,r1                                  
 800a3b0:	28 2c 00 00 	lw r12,(r1+0)                                  
    if ( !p1 )                                                        
 800a3b4:	45 80 00 0b 	be r12,r0,800a3e0 <IMFS_memfile_get_block_pointer+0x268><== NEVER TAKEN
      return 0;                                                       
                                                                      
    p2 = (block_p *)p1[ doubly ];                                     
 800a3b8:	b9 c0 08 00 	mv r1,r14                                      
 800a3bc:	34 02 00 02 	mvi r2,2                                       
 800a3c0:	f8 00 3f 9e 	calli 801a238 <__ashlsi3>                      
 800a3c4:	b5 81 08 00 	add r1,r12,r1                                  
 800a3c8:	28 2c 00 00 	lw r12,(r1+0)                                  
    if ( !p2 )                                                        
 800a3cc:	45 80 00 05 	be r12,r0,800a3e0 <IMFS_memfile_get_block_pointer+0x268><== NEVER TAKEN
      return 0;                                                       
                                                                      
    return (block_p *)&p2[ singly ];                                  
 800a3d0:	ba 20 08 00 	mv r1,r17                                      
 800a3d4:	34 02 00 02 	mvi r2,2                                       
 800a3d8:	f8 00 3f 98 	calli 801a238 <__ashlsi3>                      
 800a3dc:	b5 81 58 00 	add r11,r12,r1                                 
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
}                                                                     
 800a3e0:	b9 60 08 00 	mv r1,r11                                      
 800a3e4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a3e8:	2b 8b 00 20 	lw r11,(sp+32)                                 
 800a3ec:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 800a3f0:	2b 8d 00 18 	lw r13,(sp+24)                                 
 800a3f4:	2b 8e 00 14 	lw r14,(sp+20)                                 
 800a3f8:	2b 8f 00 10 	lw r15,(sp+16)                                 
 800a3fc:	2b 90 00 0c 	lw r16,(sp+12)                                 
 800a400:	2b 91 00 08 	lw r17,(sp+8)                                  
 800a404:	37 9c 00 20 	addi sp,sp,32                                  
 800a408:	c3 a0 00 00 	ret                                            
                                                                      

0800a40c <IMFS_memfile_read>: IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) {
 800a40c:	37 9c ff d4 	addi sp,sp,-44                                 
 800a410:	5b 8b 00 24 	sw (sp+36),r11                                 
 800a414:	5b 8c 00 20 	sw (sp+32),r12                                 
 800a418:	5b 8d 00 1c 	sw (sp+28),r13                                 
 800a41c:	5b 8e 00 18 	sw (sp+24),r14                                 
 800a420:	5b 8f 00 14 	sw (sp+20),r15                                 
 800a424:	5b 90 00 10 	sw (sp+16),r16                                 
 800a428:	5b 91 00 0c 	sw (sp+12),r17                                 
 800a42c:	5b 92 00 08 	sw (sp+8),r18                                  
 800a430:	5b 9d 00 04 	sw (sp+4),ra                                   
 800a434:	b8 20 58 00 	mv r11,r1                                      
  rtems_chain_extract_unprotected( &node->Node );                     
}                                                                     
                                                                      
static inline IMFS_jnode_types_t IMFS_type( const IMFS_jnode_t *node )
{                                                                     
  return node->control->imfs_type;                                    
 800a438:	28 21 00 4c 	lw r1,(r1+76)                                  
 800a43c:	b8 40 70 00 	mv r14,r2                                      
 800a440:	b8 60 80 00 	mv r16,r3                                      
   *  Linear files (as created from a tar file are easier to handle   
   *  than block files).                                              
   */                                                                 
  my_length = length;                                                 
                                                                      
  if ( IMFS_type( the_jnode ) == IMFS_LINEAR_FILE ) {                 
 800a444:	28 22 00 00 	lw r2,(r1+0)                                   
 800a448:	34 01 00 05 	mvi r1,5                                       
 800a44c:	5c 41 00 0b 	bne r2,r1,800a478 <IMFS_memfile_read+0x6c>     
    unsigned char  *file_ptr;                                         
                                                                      
    file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;    
                                                                      
    if (my_length > (the_jnode->info.linearfile.size - start))        
 800a450:	29 6d 00 50 	lw r13,(r11+80)                                
 800a454:	c9 ae 68 00 	sub r13,r13,r14                                
   *  Linear files (as created from a tar file are easier to handle   
   *  than block files).                                              
   */                                                                 
  my_length = length;                                                 
                                                                      
  if ( IMFS_type( the_jnode ) == IMFS_LINEAR_FILE ) {                 
 800a458:	50 8d 00 02 	bgeu r4,r13,800a460 <IMFS_memfile_read+0x54>   <== ALWAYS TAKEN
 800a45c:	b8 80 68 00 	mv r13,r4                                      <== 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);                        
 800a460:	29 62 00 54 	lw r2,(r11+84)                                 
 800a464:	ba 00 08 00 	mv r1,r16                                      
 800a468:	b9 a0 18 00 	mv r3,r13                                      
 800a46c:	b4 4e 10 00 	add r2,r2,r14                                  
 800a470:	f8 00 07 e1 	calli 800c3f4 <memcpy>                         
 800a474:	e0 00 00 46 	bi 800a58c <IMFS_memfile_read+0x180>           
  /*                                                                  
   *  If the last byte we are supposed to read is past the end of this
   *  in memory file, then shorten the length to read.                
   */                                                                 
  last_byte = start + length;                                         
  if ( last_byte > the_jnode->info.file.size )                        
 800a478:	29 61 00 50 	lw r1,(r11+80)                                 
                                                                      
  /*                                                                  
   *  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;                                         
 800a47c:	b4 8e 10 00 	add r2,r4,r14                                  
  if ( last_byte > the_jnode->info.file.size )                        
 800a480:	b8 80 60 00 	mv r12,r4                                      
 800a484:	50 22 00 02 	bgeu r1,r2,800a48c <IMFS_memfile_read+0x80>    
    my_length = the_jnode->info.file.size - start;                    
 800a488:	c8 2e 60 00 	sub r12,r1,r14                                 
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
 800a48c:	78 01 08 01 	mvhi r1,0x801                                  
 800a490:	38 21 d7 14 	ori r1,r1,0xd714                               
 800a494:	28 32 00 00 	lw r18,(r1+0)                                  
 800a498:	b9 c0 08 00 	mv r1,r14                                      
  unsigned int         last_byte;                                     
  unsigned int         copied;                                        
  unsigned int         start_offset;                                  
  unsigned char       *dest;                                          
                                                                      
  dest = destination;                                                 
 800a49c:	ba 00 78 00 	mv r15,r16                                     
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
 800a4a0:	ba 40 10 00 	mv r2,r18                                      
 800a4a4:	f8 00 40 16 	calli 801a4fc <__modsi3>                       
 800a4a8:	b8 20 88 00 	mv r17,r1                                      
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
 800a4ac:	ba 40 10 00 	mv r2,r18                                      
 800a4b0:	b9 c0 08 00 	mv r1,r14                                      
 800a4b4:	f8 00 3f e2 	calli 801a43c <__divsi3>                       
 800a4b8:	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;                                                         
 800a4bc:	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 )  {                                              
 800a4c0:	46 20 00 12 	be r17,r0,800a508 <IMFS_memfile_read+0xfc>     
    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 );
 800a4c4:	b9 60 08 00 	mv r1,r11                                      
 800a4c8:	b9 c0 10 00 	mv r2,r14                                      
 800a4cc:	34 03 00 00 	mvi r3,0                                       
 800a4d0:	fb ff ff 2a 	calli 800a178 <IMFS_memfile_get_block_pointer> 
    if ( !block_ptr )                                                 
 800a4d4:	44 20 00 33 	be r1,r0,800a5a0 <IMFS_memfile_read+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;            
 800a4d8:	ca 51 90 00 	sub r18,r18,r17                                
 800a4dc:	b9 80 68 00 	mv r13,r12                                     
 800a4e0:	52 4c 00 02 	bgeu r18,r12,800a4e8 <IMFS_memfile_read+0xdc>  
 800a4e4:	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 );           
 800a4e8:	28 22 00 00 	lw r2,(r1+0)                                   
 800a4ec:	b9 a0 18 00 	mv r3,r13                                      
 800a4f0:	ba 00 08 00 	mv r1,r16                                      
 800a4f4:	b4 51 10 00 	add r2,r2,r17                                  
 800a4f8:	f8 00 07 bf 	calli 800c3f4 <memcpy>                         
    dest += to_copy;                                                  
 800a4fc:	b6 0d 78 00 	add r15,r16,r13                                
    block++;                                                          
 800a500:	35 ce 00 01 	addi r14,r14,1                                 
    my_length -= to_copy;                                             
 800a504:	c9 8d 60 00 	sub r12,r12,r13                                
  }                                                                   
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
 800a508:	78 01 08 01 	mvhi r1,0x801                                  
 800a50c:	38 21 d7 14 	ori r1,r1,0xd714                               
 800a510:	28 30 00 00 	lw r16,(r1+0)                                  
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
 800a514:	b8 20 88 00 	mv r17,r1                                      
 800a518:	e0 00 00 0f 	bi 800a554 <IMFS_memfile_read+0x148>           
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
 800a51c:	b9 c0 10 00 	mv r2,r14                                      
 800a520:	b9 60 08 00 	mv r1,r11                                      
 800a524:	34 03 00 00 	mvi r3,0                                       
 800a528:	fb ff ff 14 	calli 800a178 <IMFS_memfile_get_block_pointer> 
 800a52c:	b8 20 10 00 	mv r2,r1                                       
    if ( !block_ptr )                                                 
 800a530:	44 20 00 1c 	be r1,r0,800a5a0 <IMFS_memfile_read+0x194>     <== NEVER TAKEN
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], to_copy );                      
 800a534:	28 42 00 00 	lw r2,(r2+0)                                   
 800a538:	b9 e0 08 00 	mv r1,r15                                      
 800a53c:	ba 00 18 00 	mv r3,r16                                      
 800a540:	f8 00 07 ad 	calli 800c3f4 <memcpy>                         
    dest += to_copy;                                                  
 800a544:	b5 f0 78 00 	add r15,r15,r16                                
    block++;                                                          
 800a548:	35 ce 00 01 	addi r14,r14,1                                 
    my_length -= to_copy;                                             
 800a54c:	c9 90 60 00 	sub r12,r12,r16                                
    copied += to_copy;                                                
 800a550:	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 ) {               
 800a554:	2a 21 00 00 	lw r1,(r17+0)                                  
 800a558:	51 81 ff f1 	bgeu r12,r1,800a51c <IMFS_memfile_read+0x110>  
  /*                                                                  
   *  Phase 3: possibly the first part of one block                   
   */                                                                 
  IMFS_assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );            
                                                                      
  if ( my_length ) {                                                  
 800a55c:	45 80 00 0c 	be r12,r0,800a58c <IMFS_memfile_read+0x180>    
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
 800a560:	b9 c0 10 00 	mv r2,r14                                      
 800a564:	b9 60 08 00 	mv r1,r11                                      
 800a568:	34 03 00 00 	mvi r3,0                                       
 800a56c:	fb ff ff 03 	calli 800a178 <IMFS_memfile_get_block_pointer> 
 800a570:	b8 20 10 00 	mv r2,r1                                       
    if ( !block_ptr )                                                 
 800a574:	44 20 00 0b 	be r1,r0,800a5a0 <IMFS_memfile_read+0x194>     <== NEVER TAKEN
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], my_length );                    
 800a578:	28 42 00 00 	lw r2,(r2+0)                                   
 800a57c:	b9 e0 08 00 	mv r1,r15                                      
 800a580:	b9 80 18 00 	mv r3,r12                                      
 800a584:	f8 00 07 9c 	calli 800c3f4 <memcpy>                         
    copied += my_length;                                              
 800a588:	b5 8d 68 00 	add r13,r12,r13                                
  }                                                                   
                                                                      
  IMFS_update_atime( the_jnode );                                     
 800a58c:	37 81 00 28 	addi r1,sp,40                                  
 800a590:	34 02 00 00 	mvi r2,0                                       
 800a594:	fb ff dc 1e 	calli 800160c <gettimeofday>                   
 800a598:	2b 81 00 28 	lw r1,(sp+40)                                  
 800a59c:	59 61 00 40 	sw (r11+64),r1                                 
                                                                      
  return copied;                                                      
}                                                                     
 800a5a0:	b9 a0 08 00 	mv r1,r13                                      
 800a5a4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a5a8:	2b 8b 00 24 	lw r11,(sp+36)                                 
 800a5ac:	2b 8c 00 20 	lw r12,(sp+32)                                 
 800a5b0:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 800a5b4:	2b 8e 00 18 	lw r14,(sp+24)                                 
 800a5b8:	2b 8f 00 14 	lw r15,(sp+20)                                 
 800a5bc:	2b 90 00 10 	lw r16,(sp+16)                                 
 800a5c0:	2b 91 00 0c 	lw r17,(sp+12)                                 
 800a5c4:	2b 92 00 08 	lw r18,(sp+8)                                  
 800a5c8:	37 9c 00 2c 	addi sp,sp,44                                  
 800a5cc:	c3 a0 00 00 	ret                                            
                                                                      

0800a708 <IMFS_memfile_remove>: * is better to stick to simple, easy to understand algorithms. */ IMFS_jnode_t *IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) {
 800a708:	37 9c ff e0 	addi sp,sp,-32                                 
 800a70c:	5b 8b 00 20 	sw (sp+32),r11                                 
 800a710:	5b 8c 00 1c 	sw (sp+28),r12                                 
 800a714:	5b 8d 00 18 	sw (sp+24),r13                                 
 800a718:	5b 8e 00 14 	sw (sp+20),r14                                 
 800a71c:	5b 8f 00 10 	sw (sp+16),r15                                 
 800a720:	5b 90 00 0c 	sw (sp+12),r16                                 
 800a724:	5b 91 00 08 	sw (sp+8),r17                                  
 800a728:	5b 9d 00 04 	sw (sp+4),ra                                   
 800a72c:	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;                                 
 800a730:	78 01 08 01 	mvhi r1,0x801                                  
 800a734:	38 21 d7 14 	ori r1,r1,0xd714                               
 800a738:	28 21 00 00 	lw r1,(r1+0)                                   
 800a73c:	34 02 00 02 	mvi r2,2                                       
 800a740:	f8 00 3f 0c 	calli 801a370 <__lshrsi3>                      
 800a744:	b8 20 60 00 	mv r12,r1                                      
   *    + doubly indirect                                             
   *    + triply indirect                                             
   */                                                                 
  info = &the_jnode->info.file;                                       
                                                                      
  if ( info->indirect ) {                                             
 800a748:	29 61 00 54 	lw r1,(r11+84)                                 
 800a74c:	44 20 00 04 	be r1,r0,800a75c <IMFS_memfile_remove+0x54>    
    memfile_free_blocks_in_table( &info->indirect, to_free );         
 800a750:	35 61 00 54 	addi r1,r11,84                                 
 800a754:	b9 80 10 00 	mv r2,r12                                      
 800a758:	fb ff ff d0 	calli 800a698 <memfile_free_blocks_in_table>   
  }                                                                   
                                                                      
  if ( info->doubly_indirect ) {                                      
 800a75c:	29 61 00 58 	lw r1,(r11+88)                                 
 800a760:	44 20 00 15 	be r1,r0,800a7b4 <IMFS_memfile_remove+0xac>    
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
 800a764:	78 0d 08 01 	mvhi r13,0x801                                 
                                                                      
  if ( info->indirect ) {                                             
    memfile_free_blocks_in_table( &info->indirect, to_free );         
  }                                                                   
                                                                      
  if ( info->doubly_indirect ) {                                      
 800a768:	34 0f 00 00 	mvi r15,0                                      
 800a76c:	34 0e 00 00 	mvi r14,0                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
 800a770:	39 ad d7 14 	ori r13,r13,0xd714                             
 800a774:	e0 00 00 09 	bi 800a798 <IMFS_memfile_remove+0x90>          
      if ( info->doubly_indirect[i] ) {                               
 800a778:	29 61 00 58 	lw r1,(r11+88)                                 
 800a77c:	b4 2f 08 00 	add r1,r1,r15                                  
 800a780:	28 22 00 00 	lw r2,(r1+0)                                   
 800a784:	44 40 00 03 	be r2,r0,800a790 <IMFS_memfile_remove+0x88>    <== NEVER TAKEN
        memfile_free_blocks_in_table(                                 
 800a788:	b9 80 10 00 	mv r2,r12                                      
 800a78c:	fb ff ff c3 	calli 800a698 <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++ ) {                  
 800a790:	35 ce 00 01 	addi r14,r14,1                                 
 800a794:	35 ef 00 04 	addi r15,r15,4                                 
 800a798:	29 a1 00 00 	lw r1,(r13+0)                                  
 800a79c:	34 02 00 02 	mvi r2,2                                       
 800a7a0:	f8 00 3e f4 	calli 801a370 <__lshrsi3>                      
 800a7a4:	54 2e ff f5 	bgu r1,r14,800a778 <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 );  
 800a7a8:	35 61 00 58 	addi r1,r11,88                                 
 800a7ac:	b9 80 10 00 	mv r2,r12                                      
 800a7b0:	fb ff ff ba 	calli 800a698 <memfile_free_blocks_in_table>   
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
 800a7b4:	29 61 00 5c 	lw r1,(r11+92)                                 
 800a7b8:	44 20 00 24 	be r1,r0,800a848 <IMFS_memfile_remove+0x140>   
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
 800a7bc:	78 0e 08 01 	mvhi r14,0x801                                 
    }                                                                 
    memfile_free_blocks_in_table( &info->doubly_indirect, to_free );  
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
 800a7c0:	34 0f 00 00 	mvi r15,0                                      
 800a7c4:	34 10 00 00 	mvi r16,0                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
 800a7c8:	39 ce d7 14 	ori r14,r14,0xd714                             
 800a7cc:	e0 00 00 18 	bi 800a82c <IMFS_memfile_remove+0x124>         
      p = (block_p *) info->triply_indirect[i];                       
 800a7d0:	29 61 00 5c 	lw r1,(r11+92)                                 
 800a7d4:	b4 2f 08 00 	add r1,r1,r15                                  
 800a7d8:	28 2d 00 00 	lw r13,(r1+0)                                  
      if ( !p )  /* ensure we have a valid pointer */                 
 800a7dc:	45 a0 00 18 	be r13,r0,800a83c <IMFS_memfile_remove+0x134>  <== NEVER TAKEN
 800a7e0:	34 11 00 00 	mvi r17,0                                      
 800a7e4:	e0 00 00 08 	bi 800a804 <IMFS_memfile_remove+0xfc>          
         break;                                                       
      for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {                
        if ( p[j] ) {                                                 
 800a7e8:	29 a1 00 00 	lw r1,(r13+0)                                  
 800a7ec:	44 20 00 04 	be r1,r0,800a7fc <IMFS_memfile_remove+0xf4>    <== NEVER TAKEN
          memfile_free_blocks_in_table( (block_p **)&p[j], to_free);  
 800a7f0:	b9 a0 08 00 	mv r1,r13                                      
 800a7f4:	b9 80 10 00 	mv r2,r12                                      
 800a7f8:	fb ff ff a8 	calli 800a698 <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++ ) {                
 800a7fc:	36 31 00 01 	addi r17,r17,1                                 
 800a800:	35 ad 00 04 	addi r13,r13,4                                 
 800a804:	29 c1 00 00 	lw r1,(r14+0)                                  
 800a808:	34 02 00 02 	mvi r2,2                                       
 800a80c:	f8 00 3e d9 	calli 801a370 <__lshrsi3>                      
 800a810:	54 31 ff f6 	bgu r1,r17,800a7e8 <IMFS_memfile_remove+0xe0>  
        if ( p[j] ) {                                                 
          memfile_free_blocks_in_table( (block_p **)&p[j], to_free);  
        }                                                             
      }                                                               
      memfile_free_blocks_in_table(                                   
 800a814:	29 61 00 5c 	lw r1,(r11+92)                                 
 800a818:	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++ ) {                  
 800a81c:	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(                                   
 800a820:	b4 2f 08 00 	add r1,r1,r15                                  
 800a824:	fb ff ff 9d 	calli 800a698 <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++ ) {                  
 800a828:	35 ef 00 04 	addi r15,r15,4                                 
 800a82c:	29 c1 00 00 	lw r1,(r14+0)                                  
 800a830:	34 02 00 02 	mvi r2,2                                       
 800a834:	f8 00 3e cf 	calli 801a370 <__lshrsi3>                      
 800a838:	54 30 ff e6 	bgu r1,r16,800a7d0 <IMFS_memfile_remove+0xc8>  
        }                                                             
      }                                                               
      memfile_free_blocks_in_table(                                   
        (block_p **)&info->triply_indirect[i], to_free );             
    }                                                                 
    memfile_free_blocks_in_table(                                     
 800a83c:	35 61 00 5c 	addi r1,r11,92                                 
 800a840:	b9 80 10 00 	mv r2,r12                                      
 800a844:	fb ff ff 95 	calli 800a698 <memfile_free_blocks_in_table>   
        (block_p **)&info->triply_indirect, to_free );                
  }                                                                   
                                                                      
  return the_jnode;                                                   
}                                                                     
 800a848:	b9 60 08 00 	mv r1,r11                                      
 800a84c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a850:	2b 8b 00 20 	lw r11,(sp+32)                                 
 800a854:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 800a858:	2b 8d 00 18 	lw r13,(sp+24)                                 
 800a85c:	2b 8e 00 14 	lw r14,(sp+20)                                 
 800a860:	2b 8f 00 10 	lw r15,(sp+16)                                 
 800a864:	2b 90 00 0c 	lw r16,(sp+12)                                 
 800a868:	2b 91 00 08 	lw r17,(sp+8)                                  
 800a86c:	37 9c 00 20 	addi sp,sp,32                                  
 800a870:	c3 a0 00 00 	ret                                            
                                                                      

0800aa4c <IMFS_memfile_write>: IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) {
 800aa4c:	37 9c ff d0 	addi sp,sp,-48                                 
 800aa50:	5b 8b 00 28 	sw (sp+40),r11                                 
 800aa54:	5b 8c 00 24 	sw (sp+36),r12                                 
 800aa58:	5b 8d 00 20 	sw (sp+32),r13                                 
 800aa5c:	5b 8e 00 1c 	sw (sp+28),r14                                 
 800aa60:	5b 8f 00 18 	sw (sp+24),r15                                 
 800aa64:	5b 90 00 14 	sw (sp+20),r16                                 
 800aa68:	5b 91 00 10 	sw (sp+16),r17                                 
 800aa6c:	5b 92 00 0c 	sw (sp+12),r18                                 
 800aa70:	5b 93 00 08 	sw (sp+8),r19                                  
 800aa74:	5b 9d 00 04 	sw (sp+4),ra                                   
 800aa78:	b8 40 60 00 	mv r12,r2                                      
 800aa7c:	b8 60 88 00 	mv r17,r3                                      
  /*                                                                  
   *  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;                                      
 800aa80:	b4 82 18 00 	add r3,r4,r2                                   
  if ( last_byte > the_jnode->info.file.size ) {                      
 800aa84:	28 22 00 50 	lw r2,(r1+80)                                  
   IMFS_jnode_t          *the_jnode,                                  
   off_t                  start,                                      
   const unsigned char   *source,                                     
   unsigned int           length                                      
)                                                                     
{                                                                     
 800aa88:	b8 20 70 00 	mv r14,r1                                      
 800aa8c:	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;                                      
  if ( last_byte > the_jnode->info.file.size ) {                      
 800aa90:	50 43 00 05 	bgeu r2,r3,800aaa4 <IMFS_memfile_write+0x58>   
    bool zero_fill = start > the_jnode->info.file.size;               
                                                                      
    status = IMFS_memfile_extend( the_jnode, zero_fill, last_byte );  
 800aa94:	e9 82 10 00 	cmpg r2,r12,r2                                 
 800aa98:	fb ff ff 83 	calli 800a8a4 <IMFS_memfile_extend>            
 800aa9c:	b8 20 28 00 	mv r5,r1                                       
    if ( status )                                                     
 800aaa0:	5c 20 00 48 	bne r1,r0,800abc0 <IMFS_memfile_write+0x174>   
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
 800aaa4:	78 01 08 01 	mvhi r1,0x801                                  
 800aaa8:	38 21 d7 14 	ori r1,r1,0xd714                               
 800aaac:	28 33 00 00 	lw r19,(r1+0)                                  
 800aab0:	b9 80 08 00 	mv r1,r12                                      
  unsigned int         last_byte;                                     
  unsigned int         start_offset;                                  
  int                  copied;                                        
  const unsigned char *src;                                           
                                                                      
  src = source;                                                       
 800aab4:	ba 20 78 00 	mv r15,r17                                     
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
 800aab8:	ba 60 10 00 	mv r2,r19                                      
 800aabc:	f8 00 3e 90 	calli 801a4fc <__modsi3>                       
 800aac0:	b8 20 90 00 	mv r18,r1                                      
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
 800aac4:	ba 60 10 00 	mv r2,r19                                      
 800aac8:	b9 80 08 00 	mv r1,r12                                      
 800aacc:	f8 00 3e 5c 	calli 801a43c <__divsi3>                       
 800aad0:	b8 20 68 00 	mv r13,r1                                      
  if ( start_offset )  {                                              
 800aad4:	ba 00 60 00 	mv r12,r16                                     
    status = IMFS_memfile_extend( the_jnode, zero_fill, last_byte );  
    if ( status )                                                     
      return status;                                                  
  }                                                                   
                                                                      
  copied = 0;                                                         
 800aad8:	34 0b 00 00 	mvi r11,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 )  {                                              
 800aadc:	46 40 00 12 	be r18,r0,800ab24 <IMFS_memfile_write+0xd8>    
    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 );
 800aae0:	b9 c0 08 00 	mv r1,r14                                      
 800aae4:	b9 a0 10 00 	mv r2,r13                                      
 800aae8:	34 03 00 00 	mvi r3,0                                       
 800aaec:	fb ff fd a3 	calli 800a178 <IMFS_memfile_get_block_pointer> 
    if ( !block_ptr )                                                 
      return copied;                                                  
 800aaf0:	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 )                                                 
 800aaf4:	44 20 00 33 	be r1,r0,800abc0 <IMFS_memfile_write+0x174>    <== 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;            
 800aaf8:	ca 72 58 00 	sub r11,r19,r18                                
 800aafc:	52 0b 00 02 	bgeu r16,r11,800ab04 <IMFS_memfile_write+0xb8> 
 800ab00:	ba 00 58 00 	mv r11,r16                                     
        block,                                                        
        to_copy,                                                      
        src                                                           
      );                                                              
    #endif                                                            
    memcpy( &(*block_ptr)[ start_offset ], src, to_copy );            
 800ab04:	28 21 00 00 	lw r1,(r1+0)                                   
 800ab08:	ba 20 10 00 	mv r2,r17                                      
 800ab0c:	b9 60 18 00 	mv r3,r11                                      
 800ab10:	b4 32 08 00 	add r1,r1,r18                                  
 800ab14:	f8 00 06 38 	calli 800c3f4 <memcpy>                         
    src += to_copy;                                                   
 800ab18:	b6 2b 78 00 	add r15,r17,r11                                
    block++;                                                          
 800ab1c:	35 ad 00 01 	addi r13,r13,1                                 
    my_length -= to_copy;                                             
 800ab20:	ca 0b 60 00 	sub r12,r16,r11                                
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
 800ab24:	78 01 08 01 	mvhi r1,0x801                                  
 800ab28:	38 21 d7 14 	ori r1,r1,0xd714                               
 800ab2c:	28 30 00 00 	lw r16,(r1+0)                                  
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
 800ab30:	b8 20 88 00 	mv r17,r1                                      
 800ab34:	e0 00 00 0e 	bi 800ab6c <IMFS_memfile_write+0x120>          
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
 800ab38:	b9 c0 08 00 	mv r1,r14                                      
 800ab3c:	b9 a0 10 00 	mv r2,r13                                      
 800ab40:	34 03 00 00 	mvi r3,0                                       
 800ab44:	fb ff fd 8d 	calli 800a178 <IMFS_memfile_get_block_pointer> 
    if ( !block_ptr )                                                 
 800ab48:	44 20 00 1d 	be r1,r0,800abbc <IMFS_memfile_write+0x170>    <== 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 );                       
 800ab4c:	28 21 00 00 	lw r1,(r1+0)                                   
 800ab50:	b9 e0 10 00 	mv r2,r15                                      
 800ab54:	ba 00 18 00 	mv r3,r16                                      
 800ab58:	f8 00 06 27 	calli 800c3f4 <memcpy>                         
    src += to_copy;                                                   
 800ab5c:	b5 f0 78 00 	add r15,r15,r16                                
    block++;                                                          
 800ab60:	35 ad 00 01 	addi r13,r13,1                                 
    my_length -= to_copy;                                             
 800ab64:	c9 90 60 00 	sub r12,r12,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(                            
 800ab68:	b5 70 58 00 	add r11,r11,r16                                
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
 800ab6c:	2a 21 00 00 	lw r1,(r17+0)                                  
 800ab70:	51 81 ff f2 	bgeu r12,r1,800ab38 <IMFS_memfile_write+0xec>  
   *  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 ) {                                                  
 800ab74:	45 80 00 0c 	be r12,r0,800aba4 <IMFS_memfile_write+0x158>   
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
 800ab78:	b9 c0 08 00 	mv r1,r14                                      
 800ab7c:	b9 a0 10 00 	mv r2,r13                                      
 800ab80:	34 03 00 00 	mvi r3,0                                       
 800ab84:	fb ff fd 7d 	calli 800a178 <IMFS_memfile_get_block_pointer> 
    if ( !block_ptr )                                                 
 800ab88:	b9 60 28 00 	mv r5,r11                                      
 800ab8c:	44 20 00 0d 	be r1,r0,800abc0 <IMFS_memfile_write+0x174>    <== 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 );                     
 800ab90:	28 21 00 00 	lw r1,(r1+0)                                   
 800ab94:	b9 e0 10 00 	mv r2,r15                                      
 800ab98:	b9 80 18 00 	mv r3,r12                                      
 800ab9c:	f8 00 06 16 	calli 800c3f4 <memcpy>                         
    my_length = 0;                                                    
    copied += to_copy;                                                
 800aba0:	b5 6c 58 00 	add r11,r11,r12                                
  }                                                                   
                                                                      
  IMFS_mtime_ctime_update( the_jnode );                               
 800aba4:	37 81 00 2c 	addi r1,sp,44                                  
 800aba8:	34 02 00 00 	mvi r2,0                                       
 800abac:	fb ff da 98 	calli 800160c <gettimeofday>                   
 800abb0:	2b 81 00 2c 	lw r1,(sp+44)                                  
 800abb4:	59 c1 00 44 	sw (r14+68),r1                                 
 800abb8:	59 c1 00 48 	sw (r14+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 )                                                 
 800abbc:	b9 60 28 00 	mv r5,r11                                      
  }                                                                   
                                                                      
  IMFS_mtime_ctime_update( the_jnode );                               
                                                                      
  return copied;                                                      
}                                                                     
 800abc0:	b8 a0 08 00 	mv r1,r5                                       
 800abc4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800abc8:	2b 8b 00 28 	lw r11,(sp+40)                                 
 800abcc:	2b 8c 00 24 	lw r12,(sp+36)                                 
 800abd0:	2b 8d 00 20 	lw r13,(sp+32)                                 
 800abd4:	2b 8e 00 1c 	lw r14,(sp+28)                                 
 800abd8:	2b 8f 00 18 	lw r15,(sp+24)                                 
 800abdc:	2b 90 00 14 	lw r16,(sp+20)                                 
 800abe0:	2b 91 00 10 	lw r17,(sp+16)                                 
 800abe4:	2b 92 00 0c 	lw r18,(sp+12)                                 
 800abe8:	2b 93 00 08 	lw r19,(sp+8)                                  
 800abec:	37 9c 00 30 	addi sp,sp,48                                  
 800abf0:	c3 a0 00 00 	ret                                            
                                                                      

08000cdc <IMFS_mknod>: const char *name, size_t namelen, mode_t mode, dev_t dev ) {
 8000cdc:	37 9c ff d0 	addi sp,sp,-48                                 
 8000ce0:	5b 8b 00 18 	sw (sp+24),r11                                 
 8000ce4:	5b 8c 00 14 	sw (sp+20),r12                                 
 8000ce8:	5b 8d 00 10 	sw (sp+16),r13                                 
 8000cec:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8000cf0:	5b 8f 00 08 	sw (sp+8),r15                                  
 8000cf4:	5b 9d 00 04 	sw (sp+4),ra                                   
 8000cf8:	b8 20 58 00 	mv r11,r1                                      
  dev_t dev,                                                          
  IMFS_jnode_types_t *type,                                           
  IMFS_types_union *info                                              
)                                                                     
{                                                                     
  if ( S_ISDIR( mode ) ) {                                            
 8000cfc:	20 87 f0 00 	andi r7,r4,0xf000                              
 8000d00:	34 01 40 00 	mvi r1,16384                                   
  const char *name,                                                   
  size_t namelen,                                                     
  mode_t mode,                                                        
  dev_t dev                                                           
)                                                                     
{                                                                     
 8000d04:	b8 40 70 00 	mv r14,r2                                      
 8000d08:	b8 60 68 00 	mv r13,r3                                      
 8000d0c:	b8 80 60 00 	mv r12,r4                                      
  IMFS_jnode_types_t *type,                                           
  IMFS_types_union *info                                              
)                                                                     
{                                                                     
  if ( S_ISDIR( mode ) ) {                                            
    *type = IMFS_DIRECTORY;                                           
 8000d10:	34 08 00 00 	mvi r8,0                                       
  dev_t dev,                                                          
  IMFS_jnode_types_t *type,                                           
  IMFS_types_union *info                                              
)                                                                     
{                                                                     
  if ( S_ISDIR( mode ) ) {                                            
 8000d14:	44 e1 00 11 	be r7,r1,8000d58 <IMFS_mknod+0x7c>             
    *type = IMFS_DIRECTORY;                                           
  } else if ( S_ISREG( mode ) ) {                                     
 8000d18:	34 21 40 00 	addi r1,r1,16384                               
 8000d1c:	44 e1 00 0c 	be r7,r1,8000d4c <IMFS_mknod+0x70>             
    *type = IMFS_MEMORY_FILE;                                         
  } else if ( S_ISBLK( mode ) || S_ISCHR( mode ) ) {                  
 8000d20:	64 e2 20 00 	cmpei r2,r7,8192                               
 8000d24:	64 e1 60 00 	cmpei r1,r7,24576                              
 8000d28:	b8 41 08 00 	or r1,r2,r1                                    
 8000d2c:	44 20 00 05 	be r1,r0,8000d40 <IMFS_mknod+0x64>             
    *type = IMFS_DEVICE;                                              
    rtems_filesystem_split_dev_t(                                     
 8000d30:	5b 85 00 1c 	sw (sp+28),r5                                  
 8000d34:	5b 86 00 20 	sw (sp+32),r6                                  
  if ( S_ISDIR( mode ) ) {                                            
    *type = IMFS_DIRECTORY;                                           
  } else if ( S_ISREG( mode ) ) {                                     
    *type = IMFS_MEMORY_FILE;                                         
  } else if ( S_ISBLK( mode ) || S_ISCHR( mode ) ) {                  
    *type = IMFS_DEVICE;                                              
 8000d38:	34 08 00 01 	mvi r8,1                                       
 8000d3c:	e0 00 00 07 	bi 8000d58 <IMFS_mknod+0x7c>                   
    rtems_filesystem_split_dev_t(                                     
      dev,                                                            
      info->device.major,                                             
      info->device.minor                                              
    );                                                                
  } else if (S_ISFIFO( mode )) {                                      
 8000d40:	34 01 10 00 	mvi r1,4096                                    
 8000d44:	5c e1 00 05 	bne r7,r1,8000d58 <IMFS_mknod+0x7c>            <== NEVER TAKEN
 8000d48:	e0 00 00 03 	bi 8000d54 <IMFS_mknod+0x78>                   
)                                                                     
{                                                                     
  if ( S_ISDIR( mode ) ) {                                            
    *type = IMFS_DIRECTORY;                                           
  } else if ( S_ISREG( mode ) ) {                                     
    *type = IMFS_MEMORY_FILE;                                         
 8000d4c:	34 08 00 04 	mvi r8,4                                       
 8000d50:	e0 00 00 02 	bi 8000d58 <IMFS_mknod+0x7c>                   
      dev,                                                            
      info->device.major,                                             
      info->device.minor                                              
    );                                                                
  } else if (S_ISFIFO( mode )) {                                      
    *type = IMFS_FIFO;                                                
 8000d54:	34 08 00 06 	mvi r8,6                                       
  mode_t mode,                                                        
  const IMFS_types_union *info                                        
)                                                                     
{                                                                     
  const IMFS_fs_info_t *fs_info =                                     
    (const IMFS_fs_info_t *) parentloc->mt_entry->fs_info;            
 8000d58:	29 61 00 14 	lw r1,(r11+20)                                 
                                                                      
  return IMFS_create_node_with_control(                               
 8000d5c:	34 02 00 02 	mvi r2,2                                       
 8000d60:	28 2f 00 08 	lw r15,(r1+8)                                  
 8000d64:	35 01 00 02 	addi r1,r8,2                                   
 8000d68:	f8 00 65 34 	calli 801a238 <__ashlsi3>                      
 8000d6c:	b5 e1 28 00 	add r5,r15,r1                                  
 8000d70:	28 a2 00 00 	lw r2,(r5+0)                                   
 8000d74:	b9 60 08 00 	mv r1,r11                                      
 8000d78:	b9 c0 18 00 	mv r3,r14                                      
 8000d7c:	b9 a0 20 00 	mv r4,r13                                      
 8000d80:	b9 80 28 00 	mv r5,r12                                      
 8000d84:	37 86 00 1c 	addi r6,sp,28                                  
 8000d88:	f8 00 1c a0 	calli 8008008 <IMFS_create_node_with_control>  
    IMFS_jnode_t *parent = parentloc->node_access;                    
                                                                      
    IMFS_update_ctime( parent );                                      
    IMFS_update_mtime( parent );                                      
  } else {                                                            
    rv = -1;                                                          
 8000d8c:	34 02 ff ff 	mvi r2,-1                                      
  IMFS_jnode_t *new_node;                                             
                                                                      
  get_type_and_info_by_mode_and_dev( mode, dev, &type, &info );       
                                                                      
  new_node = IMFS_create_node( parentloc, type, name, namelen, mode, &info );
  if ( new_node != NULL ) {                                           
 8000d90:	44 20 00 0e 	be r1,r0,8000dc8 <IMFS_mknod+0xec>             
    IMFS_jnode_t *parent = parentloc->node_access;                    
                                                                      
    IMFS_update_ctime( parent );                                      
 8000d94:	37 8c 00 2c 	addi r12,sp,44                                 
 8000d98:	34 02 00 00 	mvi r2,0                                       
 8000d9c:	b9 80 08 00 	mv r1,r12                                      
                                                                      
  get_type_and_info_by_mode_and_dev( mode, dev, &type, &info );       
                                                                      
  new_node = IMFS_create_node( parentloc, type, name, namelen, mode, &info );
  if ( new_node != NULL ) {                                           
    IMFS_jnode_t *parent = parentloc->node_access;                    
 8000da0:	29 6b 00 08 	lw r11,(r11+8)                                 
                                                                      
    IMFS_update_ctime( parent );                                      
 8000da4:	f8 00 02 1a 	calli 800160c <gettimeofday>                   
 8000da8:	2b 81 00 2c 	lw r1,(sp+44)                                  
    IMFS_update_mtime( parent );                                      
 8000dac:	34 02 00 00 	mvi r2,0                                       
                                                                      
  new_node = IMFS_create_node( parentloc, type, name, namelen, mode, &info );
  if ( new_node != NULL ) {                                           
    IMFS_jnode_t *parent = parentloc->node_access;                    
                                                                      
    IMFS_update_ctime( parent );                                      
 8000db0:	59 61 00 48 	sw (r11+72),r1                                 
    IMFS_update_mtime( parent );                                      
 8000db4:	b9 80 08 00 	mv r1,r12                                      
 8000db8:	f8 00 02 15 	calli 800160c <gettimeofday>                   
 8000dbc:	2b 81 00 2c 	lw r1,(sp+44)                                  
  size_t namelen,                                                     
  mode_t mode,                                                        
  dev_t dev                                                           
)                                                                     
{                                                                     
  int rv = 0;                                                         
 8000dc0:	34 02 00 00 	mvi r2,0                                       
  new_node = IMFS_create_node( parentloc, type, name, namelen, mode, &info );
  if ( new_node != NULL ) {                                           
    IMFS_jnode_t *parent = parentloc->node_access;                    
                                                                      
    IMFS_update_ctime( parent );                                      
    IMFS_update_mtime( parent );                                      
 8000dc4:	59 61 00 44 	sw (r11+68),r1                                 
  } else {                                                            
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 8000dc8:	b8 40 08 00 	mv r1,r2                                       
 8000dcc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8000dd0:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8000dd4:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8000dd8:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8000ddc:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8000de0:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8000de4:	37 9c 00 30 	addi sp,sp,48                                  
 8000de8:	c3 a0 00 00 	ret                                            
                                                                      

08000dec <IMFS_mount>: #endif #include "imfs.h" int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) {
 8000dec:	37 9c ff fc 	addi sp,sp,-4                                  
 8000df0:	5b 9d 00 04 	sw (sp+4),ra                                   
  int rv = 0;                                                         
  IMFS_jnode_t *node = mt_entry->mt_point_node->location.node_access; 
 8000df4:	28 22 00 20 	lw r2,(r1+32)                                  
 8000df8:	28 42 00 08 	lw r2,(r2+8)                                   
  return node->control->imfs_type;                                    
}                                                                     
                                                                      
static inline bool IMFS_is_directory( const IMFS_jnode_t *node )      
{                                                                     
  return node->control->imfs_type == IMFS_DIRECTORY;                  
 8000dfc:	28 43 00 4c 	lw r3,(r2+76)                                  
                                                                      
  if ( IMFS_is_directory( node ) ) {                                  
 8000e00:	28 63 00 00 	lw r3,(r3+0)                                   
 8000e04:	5c 60 00 09 	bne r3,r0,8000e28 <IMFS_mount+0x3c>            
    if ( node->info.directory.mt_fs == NULL ) {                       
 8000e08:	28 44 00 5c 	lw r4,(r2+92)                                  
 8000e0c:	5c 83 00 04 	bne r4,r3,8000e1c <IMFS_mount+0x30>            <== NEVER TAKEN
      node->info.directory.mt_fs = mt_entry;                          
 8000e10:	58 41 00 5c 	sw (r2+92),r1                                  
                                                                      
#include "imfs.h"                                                     
                                                                      
int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry )      
{                                                                     
  int rv = 0;                                                         
 8000e14:	34 01 00 00 	mvi r1,0                                       
 8000e18:	e0 00 00 08 	bi 8000e38 <IMFS_mount+0x4c>                   
                                                                      
  if ( IMFS_is_directory( node ) ) {                                  
    if ( node->info.directory.mt_fs == NULL ) {                       
      node->info.directory.mt_fs = mt_entry;                          
    } else {                                                          
      errno = EBUSY;                                                  
 8000e1c:	f8 00 2a 7c 	calli 800b80c <__errno>                        <== NOT EXECUTED
 8000e20:	34 02 00 10 	mvi r2,16                                      <== NOT EXECUTED
 8000e24:	e0 00 00 03 	bi 8000e30 <IMFS_mount+0x44>                   <== NOT EXECUTED
      rv = -1;                                                        
    }                                                                 
  } else {                                                            
    errno = ENOTDIR;                                                  
 8000e28:	f8 00 2a 79 	calli 800b80c <__errno>                        
 8000e2c:	34 02 00 14 	mvi r2,20                                      
 8000e30:	58 22 00 00 	sw (r1+0),r2                                   
    rv = -1;                                                          
 8000e34:	34 01 ff ff 	mvi r1,-1                                      
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 8000e38:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8000e3c:	37 9c 00 04 	addi sp,sp,4                                   
 8000e40:	c3 a0 00 00 	ret                                            
                                                                      

08008430 <IMFS_node_remove_directory>: } static IMFS_jnode_t *IMFS_node_remove_directory( IMFS_jnode_t *node ) {
 8008430:	37 9c ff fc 	addi sp,sp,-4                                  
 8008434:	5b 9d 00 04 	sw (sp+4),ra                                   
  if ( !rtems_chain_is_empty( &node->info.directory.Entries ) ) {     
 8008438:	28 23 00 50 	lw r3,(r1+80)                                  
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 800843c:	34 22 00 54 	addi r2,r1,84                                  
 8008440:	44 62 00 04 	be r3,r2,8008450 <IMFS_node_remove_directory+0x20>
    errno = ENOTEMPTY;                                                
 8008444:	f8 00 0c f2 	calli 800b80c <__errno>                        
 8008448:	34 02 00 5a 	mvi r2,90                                      
 800844c:	e0 00 00 05 	bi 8008460 <IMFS_node_remove_directory+0x30>   
    node = NULL;                                                      
  } else if ( IMFS_is_mount_point( node ) ) {                         
 8008450:	28 22 00 5c 	lw r2,(r1+92)                                  
 8008454:	44 40 00 05 	be r2,r0,8008468 <IMFS_node_remove_directory+0x38><== ALWAYS TAKEN
    errno = EBUSY;                                                    
 8008458:	f8 00 0c ed 	calli 800b80c <__errno>                        <== NOT EXECUTED
 800845c:	34 02 00 10 	mvi r2,16                                      <== NOT EXECUTED
 8008460:	58 22 00 00 	sw (r1+0),r2                                   
    node = NULL;                                                      
 8008464:	34 01 00 00 	mvi r1,0                                       
  }                                                                   
                                                                      
  return node;                                                        
}                                                                     
 8008468:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800846c:	37 9c 00 04 	addi sp,sp,4                                   
 8008470:	c3 a0 00 00 	ret                                            
                                                                      

08000e44 <IMFS_node_type>: rtems_filesystem_node_types_t IMFS_node_type( const rtems_filesystem_location_info_t *loc ) { const IMFS_jnode_t *node = loc->node_access;
 8000e44:	28 21 00 08 	lw r1,(r1+8)                                   
  IMFS_jnode_types_t imfs_type = IMFS_type( node );                   
  rtems_filesystem_node_types_t type;                                 
                                                                      
  switch ( imfs_type ) {                                              
 8000e48:	34 03 00 02 	mvi r3,2                                       
  rtems_chain_extract_unprotected( &node->Node );                     
}                                                                     
                                                                      
static inline IMFS_jnode_types_t IMFS_type( const IMFS_jnode_t *node )
{                                                                     
  return node->control->imfs_type;                                    
 8000e4c:	28 22 00 4c 	lw r2,(r1+76)                                  
 8000e50:	28 42 00 00 	lw r2,(r2+0)                                   
 8000e54:	44 43 00 05 	be r2,r3,8000e68 <IMFS_node_type+0x24>         
 8000e58:	34 03 00 05 	mvi r3,5                                       
    case IMFS_HARD_LINK:                                              
      type = IMFS_type( node->info.hard_link.link_node );             
      break;                                                          
    case IMFS_LINEAR_FILE:                                            
      type = RTEMS_FILESYSTEM_MEMORY_FILE;                            
 8000e5c:	34 01 00 04 	mvi r1,4                                       
{                                                                     
  const IMFS_jnode_t *node = loc->node_access;                        
  IMFS_jnode_types_t imfs_type = IMFS_type( node );                   
  rtems_filesystem_node_types_t type;                                 
                                                                      
  switch ( imfs_type ) {                                              
 8000e60:	5c 43 00 06 	bne r2,r3,8000e78 <IMFS_node_type+0x34>        <== ALWAYS TAKEN
 8000e64:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
      type = imfs_type;                                               
      break;                                                          
  }                                                                   
                                                                      
  return type;                                                        
}                                                                     
 8000e68:	28 21 00 50 	lw r1,(r1+80)                                  
 8000e6c:	28 21 00 4c 	lw r1,(r1+76)                                  
 8000e70:	28 21 00 00 	lw r1,(r1+0)                                   
  rtems_filesystem_node_types_t type;                                 
                                                                      
  switch ( imfs_type ) {                                              
    case IMFS_HARD_LINK:                                              
      type = IMFS_type( node->info.hard_link.link_node );             
      break;                                                          
 8000e74:	c3 a0 00 00 	ret                                            
 8000e78:	b8 40 08 00 	mv r1,r2                                       
      type = imfs_type;                                               
      break;                                                          
  }                                                                   
                                                                      
  return type;                                                        
}                                                                     
 8000e7c:	c3 a0 00 00 	ret                                            
                                                                      

08000eb0 <IMFS_rename>: const rtems_filesystem_location_info_t *oldloc, const rtems_filesystem_location_info_t *newparentloc, const char *name, size_t namelen ) {
 8000eb0:	37 9c ff e8 	addi sp,sp,-24                                 
 8000eb4:	5b 8b 00 10 	sw (sp+16),r11                                 
 8000eb8:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8000ebc:	5b 8d 00 08 	sw (sp+8),r13                                  
 8000ec0:	5b 9d 00 04 	sw (sp+4),ra                                   
  int rv = 0;                                                         
  IMFS_jnode_t *node = oldloc->node_access;                           
 8000ec4:	28 4b 00 08 	lw r11,(r2+8)                                  
  const rtems_filesystem_location_info_t *oldloc,                     
  const rtems_filesystem_location_info_t *newparentloc,               
  const char *name,                                                   
  size_t namelen                                                      
)                                                                     
{                                                                     
 8000ec8:	b8 a0 68 00 	mv r13,r5                                      
  int rv = 0;                                                         
  IMFS_jnode_t *node = oldloc->node_access;                           
  IMFS_jnode_t *new_parent = newparentloc->node_access;               
 8000ecc:	28 6c 00 08 	lw r12,(r3+8)                                  
  /*                                                                  
   * FIXME: Due to insufficient checks we can create inaccessible nodes with
   * this operation.                                                  
   */                                                                 
                                                                      
  if ( node->Parent != NULL ) {                                       
 8000ed0:	29 61 00 08 	lw r1,(r11+8)                                  
 8000ed4:	44 20 00 1e 	be r1,r0,8000f4c <IMFS_rename+0x9c>            <== NEVER TAKEN
    if ( namelen < IMFS_NAME_MAX ) {                                  
 8000ed8:	34 01 00 1f 	mvi r1,31                                      
 8000edc:	54 a1 00 19 	bgu r5,r1,8000f40 <IMFS_rename+0x90>           <== NEVER TAKEN
      memcpy( node->name, name, namelen );                            
 8000ee0:	b8 80 10 00 	mv r2,r4                                       
 8000ee4:	b8 a0 18 00 	mv r3,r5                                       
 8000ee8:	35 61 00 0c 	addi r1,r11,12                                 
 8000eec:	f8 00 2d 42 	calli 800c3f4 <memcpy>                         
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
 8000ef0:	29 62 00 00 	lw r2,(r11+0)                                  
  previous       = the_node->previous;                                
 8000ef4:	29 61 00 04 	lw r1,(r11+4)                                  
      node->name [namelen] = '\0';                                    
 8000ef8:	b5 6d 68 00 	add r13,r11,r13                                
 8000efc:	31 a0 00 0c 	sb (r13+12),r0                                 
  next->previous = previous;                                          
 8000f00:	58 41 00 04 	sw (r2+4),r1                                   
  previous->next = next;                                              
 8000f04:	58 22 00 00 	sw (r1+0),r2                                   
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
 8000f08:	29 81 00 58 	lw r1,(r12+88)                                 
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(                  
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
 8000f0c:	35 82 00 54 	addi r2,r12,84                                 
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
 8000f10:	59 62 00 00 	sw (r11+0),r2                                  
static inline void IMFS_add_to_directory(                             
  IMFS_jnode_t *dir,                                                  
  IMFS_jnode_t *node                                                  
)                                                                     
{                                                                     
  node->Parent = dir;                                                 
 8000f14:	59 6c 00 08 	sw (r11+8),r12                                 
  tail->previous = the_node;                                          
  old_last->next = the_node;                                          
 8000f18:	58 2b 00 00 	sw (r1+0),r11                                  
  the_node->previous = old_last;                                      
 8000f1c:	59 61 00 04 	sw (r11+4),r1                                  
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
  tail->previous = the_node;                                          
 8000f20:	59 8b 00 58 	sw (r12+88),r11                                
                                                                      
      IMFS_remove_from_directory( node );                             
      IMFS_add_to_directory( new_parent, node );                      
      IMFS_update_ctime( node );                                      
 8000f24:	37 81 00 14 	addi r1,sp,20                                  
 8000f28:	34 02 00 00 	mvi r2,0                                       
 8000f2c:	f8 00 01 b8 	calli 800160c <gettimeofday>                   
 8000f30:	2b 81 00 14 	lw r1,(sp+20)                                  
 8000f34:	59 61 00 48 	sw (r11+72),r1                                 
  const rtems_filesystem_location_info_t *newparentloc,               
  const char *name,                                                   
  size_t namelen                                                      
)                                                                     
{                                                                     
  int rv = 0;                                                         
 8000f38:	34 01 00 00 	mvi r1,0                                       
 8000f3c:	e0 00 00 08 	bi 8000f5c <IMFS_rename+0xac>                  
                                                                      
      IMFS_remove_from_directory( node );                             
      IMFS_add_to_directory( new_parent, node );                      
      IMFS_update_ctime( node );                                      
    } else {                                                          
      errno = ENAMETOOLONG;                                           
 8000f40:	f8 00 2a 33 	calli 800b80c <__errno>                        <== NOT EXECUTED
 8000f44:	34 02 00 5b 	mvi r2,91                                      <== NOT EXECUTED
 8000f48:	e0 00 00 03 	bi 8000f54 <IMFS_rename+0xa4>                  <== NOT EXECUTED
      rv = -1;                                                        
    }                                                                 
  } else {                                                            
    errno = EINVAL;                                                   
 8000f4c:	f8 00 2a 30 	calli 800b80c <__errno>                        <== NOT EXECUTED
 8000f50:	34 02 00 16 	mvi r2,22                                      <== NOT EXECUTED
 8000f54:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
    rv = -1;                                                          
 8000f58:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 8000f5c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8000f60:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8000f64:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8000f68:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8000f6c:	37 9c 00 18 	addi sp,sp,24                                  
 8000f70:	c3 a0 00 00 	ret                                            
                                                                      

0800106c <IMFS_unmount>: #endif #include "imfs.h" int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) {
 800106c:	37 9c ff fc 	addi sp,sp,-4                                  
 8001070:	5b 9d 00 04 	sw (sp+4),ra                                   
  int rv = 0;                                                         
  IMFS_jnode_t *node = mt_entry->mt_point_node->location.node_access; 
 8001074:	28 22 00 20 	lw r2,(r1+32)                                  
 8001078:	28 42 00 08 	lw r2,(r2+8)                                   
  return node->control->imfs_type;                                    
}                                                                     
                                                                      
static inline bool IMFS_is_directory( const IMFS_jnode_t *node )      
{                                                                     
  return node->control->imfs_type == IMFS_DIRECTORY;                  
 800107c:	28 43 00 4c 	lw r3,(r2+76)                                  
                                                                      
  if ( IMFS_is_directory( node ) ) {                                  
 8001080:	28 63 00 00 	lw r3,(r3+0)                                   
 8001084:	5c 60 00 09 	bne r3,r0,80010a8 <IMFS_unmount+0x3c>          <== NEVER TAKEN
    if ( node->info.directory.mt_fs == mt_entry ) {                   
 8001088:	28 43 00 5c 	lw r3,(r2+92)                                  
 800108c:	5c 61 00 04 	bne r3,r1,800109c <IMFS_unmount+0x30>          <== NEVER TAKEN
      node->info.directory.mt_fs = NULL;                              
 8001090:	58 40 00 5c 	sw (r2+92),r0                                  
                                                                      
#include "imfs.h"                                                     
                                                                      
int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry )    
{                                                                     
  int rv = 0;                                                         
 8001094:	34 01 00 00 	mvi r1,0                                       
 8001098:	e0 00 00 08 	bi 80010b8 <IMFS_unmount+0x4c>                 
                                                                      
  if ( IMFS_is_directory( node ) ) {                                  
    if ( node->info.directory.mt_fs == mt_entry ) {                   
      node->info.directory.mt_fs = NULL;                              
    } else {                                                          
      errno = EINVAL;                                                 
 800109c:	f8 00 29 dc 	calli 800b80c <__errno>                        <== NOT EXECUTED
 80010a0:	34 02 00 16 	mvi r2,22                                      <== NOT EXECUTED
 80010a4:	e0 00 00 03 	bi 80010b0 <IMFS_unmount+0x44>                 <== NOT EXECUTED
      rv = -1;                                                        
    }                                                                 
  } else {                                                            
    errno = ENOTDIR;                                                  
 80010a8:	f8 00 29 d9 	calli 800b80c <__errno>                        <== NOT EXECUTED
 80010ac:	34 02 00 14 	mvi r2,20                                      <== NOT EXECUTED
 80010b0:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
    rv = -1;                                                          
 80010b4:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 80010b8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80010bc:	37 9c 00 04 	addi sp,sp,4                                   
 80010c0:	c3 a0 00 00 	ret                                            
                                                                      

08001850 <RTEMS_Malloc_Initialize>: void RTEMS_Malloc_Initialize( const Heap_Area *areas, size_t area_count, Heap_Initialization_or_extend_handler extend ) {
 8001850:	37 9c ff e4 	addi sp,sp,-28                                 
 8001854:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8001858:	5b 8c 00 18 	sw (sp+24),r12                                 
 800185c:	5b 8d 00 14 	sw (sp+20),r13                                 
 8001860:	5b 8e 00 10 	sw (sp+16),r14                                 
 8001864:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8001868:	5b 90 00 08 	sw (sp+8),r16                                  
 800186c:	5b 9d 00 04 	sw (sp+4),ra                                   
  Heap_Control *heap = RTEMS_Malloc_Heap;                             
 8001870:	78 04 08 01 	mvhi r4,0x801                                  
 8001874:	38 84 d0 54 	ori r4,r4,0xd054                               
 8001878:	28 8e 00 00 	lw r14,(r4+0)                                  
                                                                      
  if ( !rtems_configuration_get_unified_work_area() ) {               
 800187c:	78 04 08 01 	mvhi r4,0x801                                  
 8001880:	38 84 b2 0c 	ori r4,r4,0xb20c                               
void RTEMS_Malloc_Initialize(                                         
  const Heap_Area *areas,                                             
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
 8001884:	b8 40 78 00 	mv r15,r2                                      
  Heap_Control *heap = RTEMS_Malloc_Heap;                             
                                                                      
  if ( !rtems_configuration_get_unified_work_area() ) {               
 8001888:	40 82 00 31 	lbu r2,(r4+49)                                 
void RTEMS_Malloc_Initialize(                                         
  const Heap_Area *areas,                                             
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
 800188c:	b8 60 80 00 	mv r16,r3                                      
  Heap_Control *heap = RTEMS_Malloc_Heap;                             
                                                                      
  if ( !rtems_configuration_get_unified_work_area() ) {               
 8001890:	5c 40 00 17 	bne r2,r0,80018ec <RTEMS_Malloc_Initialize+0x9c>
 8001894:	78 0b 08 00 	mvhi r11,0x800                                 
 8001898:	b8 20 60 00 	mv r12,r1                                      
 800189c:	34 0d 00 00 	mvi r13,0                                      
 80018a0:	39 6b 4b d0 	ori r11,r11,0x4bd0                             
 80018a4:	e0 00 00 0a 	bi 80018cc <RTEMS_Malloc_Initialize+0x7c>      
    uintptr_t page_size = CPU_HEAP_ALIGNMENT;                         
    size_t i;                                                         
                                                                      
    for (i = 0; i < area_count; ++i) {                                
      const Heap_Area *area = &areas [i];                             
      uintptr_t space_available = (*init_or_extend)(                  
 80018a8:	29 82 00 00 	lw r2,(r12+0)                                  
 80018ac:	29 83 00 04 	lw r3,(r12+4)                                  
 80018b0:	b9 c0 08 00 	mv r1,r14                                      
 80018b4:	34 04 00 04 	mvi r4,4                                       
 80018b8:	d9 60 00 00 	call r11                                       
        area->begin,                                                  
        area->size,                                                   
        page_size                                                     
      );                                                              
                                                                      
      if ( space_available > 0 ) {                                    
 80018bc:	44 20 00 02 	be r1,r0,80018c4 <RTEMS_Malloc_Initialize+0x74><== NEVER TAKEN
        init_or_extend = extend;                                      
 80018c0:	ba 00 58 00 	mv r11,r16                                     
  if ( !rtems_configuration_get_unified_work_area() ) {               
    Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
    uintptr_t page_size = CPU_HEAP_ALIGNMENT;                         
    size_t i;                                                         
                                                                      
    for (i = 0; i < area_count; ++i) {                                
 80018c4:	35 ad 00 01 	addi r13,r13,1                                 
 80018c8:	35 8c 00 08 	addi r12,r12,8                                 
 80018cc:	55 ed ff f7 	bgu r15,r13,80018a8 <RTEMS_Malloc_Initialize+0x58>
      if ( space_available > 0 ) {                                    
        init_or_extend = extend;                                      
      }                                                               
    }                                                                 
                                                                      
    if ( init_or_extend == _Heap_Initialize ) {                       
 80018d0:	78 02 08 00 	mvhi r2,0x800                                  
 80018d4:	38 42 4b d0 	ori r2,r2,0x4bd0                               
 80018d8:	5d 62 00 05 	bne r11,r2,80018ec <RTEMS_Malloc_Initialize+0x9c>
      _Internal_error_Occurred(                                       
 80018dc:	34 01 00 00 	mvi r1,0                                       
 80018e0:	34 02 00 01 	mvi r2,1                                       
 80018e4:	34 03 00 17 	mvi r3,23                                      
 80018e8:	f8 00 0d 6a 	calli 8004e90 <_Internal_error_Occurred>       
  }                                                                   
                                                                      
  /*                                                                  
   *  If configured, initialize the statistics support                
   */                                                                 
  if ( rtems_malloc_statistics_helpers != NULL ) {                    
 80018ec:	78 02 08 01 	mvhi r2,0x801                                  
 80018f0:	38 42 d7 0c 	ori r2,r2,0xd70c                               
 80018f4:	28 41 00 00 	lw r1,(r2+0)                                   
 80018f8:	44 20 00 03 	be r1,r0,8001904 <RTEMS_Malloc_Initialize+0xb4>
    (*rtems_malloc_statistics_helpers->initialize)();                 
 80018fc:	28 21 00 00 	lw r1,(r1+0)                                   
 8001900:	d8 20 00 00 	call r1                                        
  }                                                                   
                                                                      
  MSBUMP( space_available, _Protected_heap_Get_size( heap ) );        
 8001904:	78 0b 08 01 	mvhi r11,0x801                                 
 8001908:	39 6b d7 b0 	ori r11,r11,0xd7b0                             
 800190c:	29 6c 00 00 	lw r12,(r11+0)                                 
 8001910:	b9 c0 08 00 	mv r1,r14                                      
 8001914:	f8 00 10 29 	calli 80059b8 <_Protected_heap_Get_size>       
 8001918:	b4 2c 08 00 	add r1,r1,r12                                  
 800191c:	59 61 00 00 	sw (r11+0),r1                                  
}                                                                     
 8001920:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001924:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8001928:	2b 8c 00 18 	lw r12,(sp+24)                                 
 800192c:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8001930:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8001934:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8001938:	2b 90 00 08 	lw r16,(sp+8)                                  
 800193c:	37 9c 00 1c 	addi sp,sp,28                                  
 8001940:	c3 a0 00 00 	ret                                            
                                                                      

080203ec <Stack_check_Dump_threads_usage>: static rtems_printk_plugin_t print_handler; static void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) {
 80203ec:	37 9c ff d4 	addi sp,sp,-44                                 
 80203f0:	5b 8b 00 24 	sw (sp+36),r11                                 
 80203f4:	5b 8c 00 20 	sw (sp+32),r12                                 
 80203f8:	5b 8d 00 1c 	sw (sp+28),r13                                 
 80203fc:	5b 8e 00 18 	sw (sp+24),r14                                 
 8020400:	5b 8f 00 14 	sw (sp+20),r15                                 
 8020404:	5b 90 00 10 	sw (sp+16),r16                                 
 8020408:	5b 91 00 0c 	sw (sp+12),r17                                 
 802040c:	5b 92 00 08 	sw (sp+8),r18                                  
 8020410:	5b 9d 00 04 	sw (sp+4),ra                                   
 8020414:	b8 20 68 00 	mv r13,r1                                      
                                                                      
  /*                                                                  
   *  Obtain interrupt stack information                              
   */                                                                 
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if (the_thread == (Thread_Control *) -1) {                        
 8020418:	34 01 ff ff 	mvi r1,-1                                      
 802041c:	5d a1 00 08 	bne r13,r1,802043c <Stack_check_Dump_threads_usage+0x50>
      if (!Stack_check_Interrupt_stack.area)                          
 8020420:	78 0c 08 06 	mvhi r12,0x806                                 
 8020424:	39 8c 83 44 	ori r12,r12,0x8344                             
 8020428:	29 81 00 04 	lw r1,(r12+4)                                  
        return;                                                       
      stack = &Stack_check_Interrupt_stack;                           
      the_thread = 0;                                                 
      current = 0;                                                    
 802042c:	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;                                                 
 8020430:	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)                          
 8020434:	5c 20 00 04 	bne r1,r0,8020444 <Stack_check_Dump_threads_usage+0x58><== ALWAYS TAKEN
 8020438:	e0 00 00 54 	bi 8020588 <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 );
 802043c:	29 b0 01 00 	lw r16,(r13+256)                               
      the_thread = 0;                                                 
      current = 0;                                                    
    } else                                                            
  #endif                                                              
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
 8020440:	35 ac 00 b0 	addi r12,r13,176                               
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
    }                                                                 
                                                                      
  low  = Stack_check_usable_stack_start(stack);                       
  size = Stack_check_usable_stack_size(stack);                        
 8020444:	29 8f 00 00 	lw r15,(r12+0)                                 
{                                                                     
  const uint32_t   *base, *ebase;                                     
  uint32_t   length;                                                  
                                                                      
  base = s;                                                           
  length = n/4;                                                       
 8020448:	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);                       
 802044c:	29 8b 00 04 	lw r11,(r12+4)                                 
  size = Stack_check_usable_stack_size(stack);                        
 8020450:	35 ef ff f0 	addi r15,r15,-16                               
{                                                                     
  const uint32_t   *base, *ebase;                                     
  uint32_t   length;                                                  
                                                                      
  base = s;                                                           
  length = n/4;                                                       
 8020454:	b9 e0 08 00 	mv r1,r15                                      
 8020458:	f8 00 db ff 	calli 8057454 <__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++)                 
 802045c:	34 02 00 02 	mvi r2,2                                       
 8020460:	fb ff 7f 66 	calli 80001f8 <__ashlsi3>                      
      if (*base != U32_PATTERN)                                       
 8020464:	78 03 08 05 	mvhi r3,0x805                                  
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
    }                                                                 
                                                                      
  low  = Stack_check_usable_stack_start(stack);                       
 8020468:	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)                                       
 802046c:	38 63 d4 b0 	ori r3,r3,0xd4b0                               
    /*                                                                
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
 8020470:	35 6b 00 20 	addi r11,r11,32                                
    for (ebase = base + length; base < ebase; base++)                 
 8020474:	b5 61 08 00 	add r1,r11,r1                                  
      if (*base != U32_PATTERN)                                       
 8020478:	28 62 00 00 	lw r2,(r3+0)                                   
 802047c:	e0 00 00 04 	bi 802048c <Stack_check_Dump_threads_usage+0xa0>
 8020480:	29 63 00 00 	lw r3,(r11+0)                                  
 8020484:	5c 62 00 05 	bne r3,r2,8020498 <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++)                 
 8020488:	35 6b 00 04 	addi r11,r11,4                                 
 802048c:	54 2b ff fd 	bgu r1,r11,8020480 <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;                                                         
 8020490:	34 0e 00 00 	mvi r14,0                                      <== NOT EXECUTED
 8020494:	e0 00 00 05 	bi 80204a8 <Stack_check_Dump_threads_usage+0xbc><== NOT EXECUTED
 8020498:	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 )                                              
 802049c:	45 60 00 03 	be r11,r0,80204a8 <Stack_check_Dump_threads_usage+0xbc><== NEVER TAKEN
    used = Stack_check_Calculate_used( low, size, high_water_mark );  
 80204a0:	b6 2f 70 00 	add r14,r17,r15                                
 80204a4:	c9 cb 70 00 	sub r14,r14,r11                                
 80204a8:	78 04 08 06 	mvhi r4,0x806                                  
 80204ac:	78 02 08 06 	mvhi r2,0x806                                  
 80204b0:	38 84 79 d4 	ori r4,r4,0x79d4                               
 80204b4:	38 42 79 d0 	ori r2,r2,0x79d0                               
  else                                                                
    used = 0;                                                         
                                                                      
                                                                      
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if ( the_thread )                                                 
 80204b8:	45 a0 00 0f 	be r13,r0,80204f4 <Stack_check_Dump_threads_usage+0x108>
  #endif                                                              
    {                                                                 
      (*print_handler)(                                               
 80204bc:	29 ab 00 08 	lw r11,(r13+8)                                 
 80204c0:	28 52 00 00 	lw r18,(r2+0)                                  
 80204c4:	37 83 00 28 	addi r3,sp,40                                  
 80204c8:	b9 60 08 00 	mv r1,r11                                      
 80204cc:	34 02 00 05 	mvi r2,5                                       
 80204d0:	28 91 00 00 	lw r17,(r4+0)                                  
 80204d4:	fb ff ac 9a 	calli 800b73c <rtems_object_get_name>          
 80204d8:	78 02 08 05 	mvhi r2,0x805                                  
 80204dc:	b8 20 20 00 	mv r4,r1                                       
 80204e0:	38 42 d3 24 	ori r2,r2,0xd324                               
 80204e4:	ba 40 08 00 	mv r1,r18                                      
 80204e8:	b9 60 18 00 	mv r3,r11                                      
 80204ec:	da 20 00 00 	call r17                                       
 80204f0:	e0 00 00 07 	bi 802050c <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 );
 80204f4:	28 41 00 00 	lw r1,(r2+0)                                   
 80204f8:	28 84 00 00 	lw r4,(r4+0)                                   
 80204fc:	78 02 08 05 	mvhi r2,0x805                                  
 8020500:	38 42 d3 34 	ori r2,r2,0xd334                               
 8020504:	34 03 ff ff 	mvi r3,-1                                      
 8020508:	d8 80 00 00 	call r4                                        
                                                                      
  (*print_handler)(                                                   
    print_context,                                                    
    " %010p - %010p %010p  %8" PRId32 "   ",                          
    stack->area,                                                      
    stack->area + stack->size - 1,                                    
 802050c:	29 84 00 00 	lw r4,(r12+0)                                  
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
      }                                                               
    #endif                                                            
                                                                      
  (*print_handler)(                                                   
 8020510:	78 0b 08 06 	mvhi r11,0x806                                 
 8020514:	78 0d 08 06 	mvhi r13,0x806                                 
    print_context,                                                    
    " %010p - %010p %010p  %8" PRId32 "   ",                          
    stack->area,                                                      
    stack->area + stack->size - 1,                                    
 8020518:	29 83 00 04 	lw r3,(r12+4)                                  
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
      }                                                               
    #endif                                                            
                                                                      
  (*print_handler)(                                                   
 802051c:	39 6b 79 d4 	ori r11,r11,0x79d4                             
 8020520:	39 ad 79 d0 	ori r13,r13,0x79d0                             
 8020524:	29 67 00 00 	lw r7,(r11+0)                                  
 8020528:	29 a1 00 00 	lw r1,(r13+0)                                  
    print_context,                                                    
    " %010p - %010p %010p  %8" PRId32 "   ",                          
    stack->area,                                                      
    stack->area + stack->size - 1,                                    
 802052c:	34 84 ff ff 	addi r4,r4,-1                                  
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
      }                                                               
    #endif                                                            
                                                                      
  (*print_handler)(                                                   
 8020530:	78 02 08 05 	mvhi r2,0x805                                  
 8020534:	38 42 d3 44 	ori r2,r2,0xd344                               
 8020538:	b4 64 20 00 	add r4,r3,r4                                   
 802053c:	ba 00 28 00 	mv r5,r16                                      
 8020540:	b9 e0 30 00 	mv r6,r15                                      
 8020544:	d8 e0 00 00 	call r7                                        
    stack->area + stack->size - 1,                                    
    current,                                                          
    size                                                              
  );                                                                  
                                                                      
  if (Stack_check_Initialized == 0) {                                 
 8020548:	78 01 08 06 	mvhi r1,0x806                                  
 802054c:	38 21 79 d8 	ori r1,r1,0x79d8                               
 8020550:	28 21 00 00 	lw r1,(r1+0)                                   
 8020554:	5c 20 00 07 	bne r1,r0,8020570 <Stack_check_Dump_threads_usage+0x184><== ALWAYS TAKEN
    (*print_handler)( print_context, "Unavailable\n" );               
 8020558:	29 63 00 00 	lw r3,(r11+0)                                  <== NOT EXECUTED
 802055c:	29 a1 00 00 	lw r1,(r13+0)                                  <== NOT EXECUTED
 8020560:	78 02 08 05 	mvhi r2,0x805                                  <== NOT EXECUTED
 8020564:	38 42 d3 64 	ori r2,r2,0xd364                               <== NOT EXECUTED
 8020568:	d8 60 00 00 	call r3                                        <== NOT EXECUTED
 802056c:	e0 00 00 07 	bi 8020588 <Stack_check_Dump_threads_usage+0x19c><== NOT EXECUTED
  } else {                                                            
    (*print_handler)( print_context, "%8" PRId32 "\n", used );        
 8020570:	29 64 00 00 	lw r4,(r11+0)                                  
 8020574:	29 a1 00 00 	lw r1,(r13+0)                                  
 8020578:	78 02 08 05 	mvhi r2,0x805                                  
 802057c:	38 42 d3 74 	ori r2,r2,0xd374                               
 8020580:	b9 c0 18 00 	mv r3,r14                                      
 8020584:	d8 80 00 00 	call r4                                        
  }                                                                   
                                                                      
                                                                      
}                                                                     
 8020588:	2b 9d 00 04 	lw ra,(sp+4)                                   
 802058c:	2b 8b 00 24 	lw r11,(sp+36)                                 
 8020590:	2b 8c 00 20 	lw r12,(sp+32)                                 
 8020594:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 8020598:	2b 8e 00 18 	lw r14,(sp+24)                                 
 802059c:	2b 8f 00 14 	lw r15,(sp+20)                                 
 80205a0:	2b 90 00 10 	lw r16,(sp+16)                                 
 80205a4:	2b 91 00 0c 	lw r17,(sp+12)                                 
 80205a8:	2b 92 00 08 	lw r18,(sp+8)                                  
 80205ac:	37 9c 00 2c 	addi sp,sp,44                                  
 80205b0:	c3 a0 00 00 	ret                                            
                                                                      

080206c0 <Stack_check_report_blown_task>: Thread_Control *running, bool pattern_ok ) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE; void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok) {
 80206c0:	37 9c ff d0 	addi sp,sp,-48                                 
 80206c4:	5b 8b 00 10 	sw (sp+16),r11                                 
 80206c8:	5b 8c 00 0c 	sw (sp+12),r12                                 
 80206cc:	5b 8d 00 08 	sw (sp+8),r13                                  
 80206d0:	5b 9d 00 04 	sw (sp+4),ra                                   
 80206d4:	b8 20 58 00 	mv r11,r1                                      
  Stack_Control *stack = &running->Start.Initial_stack;               
  void          *pattern_area = Stack_check_Get_pattern(stack);       
 80206d8:	28 2c 00 b4 	lw r12,(r1+180)                                
  char           name[32];                                            
                                                                      
  printk("BLOWN STACK!!!\n");                                         
 80206dc:	78 01 08 05 	mvhi r1,0x805                                  
 80206e0:	38 21 d3 7c 	ori r1,r1,0xd37c                               
  Thread_Control *running,                                            
  bool pattern_ok                                                     
) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;                                 
                                                                      
void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok)
{                                                                     
 80206e4:	20 4d 00 ff 	andi r13,r2,0xff                               
  Stack_Control *stack = &running->Start.Initial_stack;               
  void          *pattern_area = Stack_check_Get_pattern(stack);       
  char           name[32];                                            
                                                                      
  printk("BLOWN STACK!!!\n");                                         
 80206e8:	fb ff 86 49 	calli 800200c <printk>                         
  printk("task control block: 0x%08" PRIxPTR "\n", running);          
 80206ec:	78 01 08 05 	mvhi r1,0x805                                  
 80206f0:	38 21 d3 8c 	ori r1,r1,0xd38c                               
 80206f4:	b9 60 10 00 	mv r2,r11                                      
 80206f8:	fb ff 86 45 	calli 800200c <printk>                         
  printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id);   
 80206fc:	29 62 00 08 	lw r2,(r11+8)                                  
 8020700:	78 01 08 05 	mvhi r1,0x805                                  
 8020704:	38 21 d3 a8 	ori r1,r1,0xd3a8                               
 8020708:	fb ff 86 41 	calli 800200c <printk>                         
  printk(                                                             
 802070c:	29 62 00 0c 	lw r2,(r11+12)                                 
 8020710:	78 01 08 05 	mvhi r1,0x805                                  
 8020714:	38 21 d3 bc 	ori r1,r1,0xd3bc                               
 8020718:	fb ff 86 3d 	calli 800200c <printk>                         
    "task name: 0x%08" PRIx32 "\n",                                   
    running->Object.name.name_u32                                     
  );                                                                  
  printk(                                                             
 802071c:	29 61 00 08 	lw r1,(r11+8)                                  
 8020720:	37 83 00 14 	addi r3,sp,20                                  
 8020724:	34 02 00 20 	mvi r2,32                                      
 8020728:	fb ff ac 05 	calli 800b73c <rtems_object_get_name>          
 802072c:	b8 20 10 00 	mv r2,r1                                       
 8020730:	78 01 08 05 	mvhi r1,0x805                                  
 8020734:	38 21 d3 d0 	ori r1,r1,0xd3d0                               
 8020738:	fb ff 86 35 	calli 800200c <printk>                         
  );                                                                  
  printk(                                                             
    "task stack area (%lu Bytes): 0x%08" PRIxPTR " .. 0x%08" PRIxPTR "\n",
    (unsigned long) stack->size,                                      
    stack->area,                                                      
    ((char *) stack->area + stack->size)                              
 802073c:	29 63 00 b4 	lw r3,(r11+180)                                
 8020740:	29 62 00 b0 	lw r2,(r11+176)                                
  );                                                                  
  printk(                                                             
    "task name string: %s\n",                                         
    rtems_object_get_name(running->Object.id, sizeof(name), name)     
  );                                                                  
  printk(                                                             
 8020744:	78 01 08 05 	mvhi r1,0x805                                  
 8020748:	38 21 d3 e8 	ori r1,r1,0xd3e8                               
 802074c:	b4 62 20 00 	add r4,r3,r2                                   
 8020750:	fb ff 86 2f 	calli 800200c <printk>                         
    "task stack area (%lu Bytes): 0x%08" PRIxPTR " .. 0x%08" PRIxPTR "\n",
    (unsigned long) stack->size,                                      
    stack->area,                                                      
    ((char *) stack->area + stack->size)                              
  );                                                                  
  if (!pattern_ok) {                                                  
 8020754:	5d a0 00 07 	bne r13,r0,8020770 <Stack_check_report_blown_task+0xb0><== NEVER TAKEN
    printk(                                                           
 8020758:	78 01 08 05 	mvhi r1,0x805                                  
 802075c:	38 21 d4 18 	ori r1,r1,0xd418                               
 8020760:	34 02 00 10 	mvi r2,16                                      
 8020764:	35 83 00 08 	addi r3,r12,8                                  
 8020768:	35 84 00 18 	addi r4,r12,24                                 
 802076c:	fb ff 86 28 	calli 800200c <printk>                         
          rtems_configuration_get_user_multiprocessing_table()->node  
      );                                                              
    }                                                                 
  #endif                                                              
                                                                      
  rtems_fatal(                                                        
 8020770:	29 62 00 0c 	lw r2,(r11+12)                                 
 8020774:	34 01 00 09 	mvi r1,9                                       
 8020778:	fb ff 8c 04 	calli 8003788 <rtems_fatal>                    
                                                                      

080041c8 <_API_extensions_Add_post_switch>: */ RTEMS_INLINE_ROUTINE bool _Chain_Is_node_off_chain( const Chain_Node *node ) { return (node->next == NULL) && (node->previous == NULL);
 80041c8:	28 22 00 00 	lw r2,(r1+0)                                   
 80041cc:	5c 40 00 0c 	bne r2,r0,80041fc <_API_extensions_Add_post_switch+0x34>
 80041d0:	28 23 00 04 	lw r3,(r1+4)                                   
 80041d4:	5c 62 00 0a 	bne r3,r2,80041fc <_API_extensions_Add_post_switch+0x34><== NEVER TAKEN
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
 80041d8:	78 02 08 01 	mvhi r2,0x801                                  
 80041dc:	38 42 d9 50 	ori r2,r2,0xd950                               
 80041e0:	28 44 00 08 	lw r4,(r2+8)                                   
                                                                      
  the_node->next = tail;                                              
 80041e4:	78 03 08 01 	mvhi r3,0x801                                  
 80041e8:	38 63 d9 54 	ori r3,r3,0xd954                               
 80041ec:	58 23 00 00 	sw (r1+0),r3                                   
  tail->previous = the_node;                                          
 80041f0:	58 41 00 08 	sw (r2+8),r1                                   
  old_last->next = the_node;                                          
 80041f4:	58 81 00 00 	sw (r4+0),r1                                   
  the_node->previous = old_last;                                      
 80041f8:	58 24 00 04 	sw (r1+4),r4                                   
 80041fc:	c3 a0 00 00 	ret                                            
                                                                      

0800e1d0 <_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 ) {
 800e1d0:	37 9c ff e8 	addi sp,sp,-24                                 
 800e1d4:	5b 8b 00 18 	sw (sp+24),r11                                 
 800e1d8:	5b 8c 00 14 	sw (sp+20),r12                                 
 800e1dc:	5b 8d 00 10 	sw (sp+16),r13                                 
 800e1e0:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800e1e4:	5b 8f 00 08 	sw (sp+8),r15                                  
 800e1e8:	5b 9d 00 04 	sw (sp+4),ra                                   
 800e1ec:	b8 20 58 00 	mv r11,r1                                      
  size_t message_buffering_required = 0;                              
  size_t allocated_message_size;                                      
                                                                      
  the_message_queue->maximum_pending_messages   = maximum_pending_messages;
  the_message_queue->number_of_pending_messages = 0;                  
 800e1f0:	58 20 00 48 	sw (r1+72),r0                                  
  the_message_queue->maximum_message_size       = maximum_message_size;
 800e1f4:	58 24 00 4c 	sw (r1+76),r4                                  
)                                                                     
{                                                                     
  size_t message_buffering_required = 0;                              
  size_t allocated_message_size;                                      
                                                                      
  the_message_queue->maximum_pending_messages   = maximum_pending_messages;
 800e1f8:	59 63 00 44 	sw (r11+68),r3                                 
  /*                                                                  
   * Check if allocated_message_size is aligned to uintptr-size boundary.
   * If not, it will increase allocated_message_size to multiplicity of pointer
   * size.                                                            
   */                                                                 
  if (allocated_message_size & (sizeof(uintptr_t) - 1)) {             
 800e1fc:	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                 
)                                                                     
{                                                                     
 800e200:	b8 40 78 00 	mv r15,r2                                      
 800e204:	b8 60 68 00 	mv r13,r3                                      
  /*                                                                  
   * Check if allocated_message_size is aligned to uintptr-size boundary.
   * If not, it will increase allocated_message_size to multiplicity of pointer
   * size.                                                            
   */                                                                 
  if (allocated_message_size & (sizeof(uintptr_t) - 1)) {             
 800e208:	b8 80 28 00 	mv r5,r4                                       
 800e20c:	44 20 00 06 	be r1,r0,800e224 <_CORE_message_queue_Initialize+0x54>
    allocated_message_size += sizeof(uintptr_t);                      
 800e210:	34 85 00 04 	addi r5,r4,4                                   
    allocated_message_size &= ~(sizeof(uintptr_t) - 1);               
 800e214:	34 01 ff fc 	mvi r1,-4                                      
 800e218:	a0 a1 28 00 	and r5,r5,r1                                   
  /*                                                                  
   * Check for an overflow. It can occur while increasing allocated_message_size
   * to multiplicity of uintptr_t above.                              
   */                                                                 
  if (allocated_message_size < maximum_message_size)                  
    return false;                                                     
 800e21c:	34 0c 00 00 	mvi r12,0                                      
                                                                      
  /*                                                                  
   * Check for an overflow. It can occur while increasing allocated_message_size
   * to multiplicity of uintptr_t above.                              
   */                                                                 
  if (allocated_message_size < maximum_message_size)                  
 800e220:	54 85 00 1f 	bgu r4,r5,800e29c <_CORE_message_queue_Initialize+0xcc>
                                                                      
  /*                                                                  
   *  Calculate how much total memory is required for message buffering and
   *  check for overflow on the multiplication.                       
   */                                                                 
  if ( !size_t_mult32_with_overflow(                                  
 800e224:	34 ae 00 10 	addi r14,r5,16                                 
  size_t  a,                                                          
  size_t  b,                                                          
  size_t *c                                                           
)                                                                     
{                                                                     
  long long x = (long long)a*b;                                       
 800e228:	34 01 00 00 	mvi r1,0                                       
 800e22c:	b9 c0 10 00 	mv r2,r14                                      
 800e230:	34 03 00 00 	mvi r3,0                                       
 800e234:	b9 a0 20 00 	mv r4,r13                                      
 800e238:	f8 00 42 8e 	calli 801ec70 <__muldi3>                       
   */                                                                 
  if ( !size_t_mult32_with_overflow(                                  
        (size_t) maximum_pending_messages,                            
        allocated_message_size + sizeof(CORE_message_queue_Buffer_control),
        &message_buffering_required ) )                               
    return false;                                                     
 800e23c:	34 0c 00 00 	mvi r12,0                                      
  size_t *c                                                           
)                                                                     
{                                                                     
  long long x = (long long)a*b;                                       
                                                                      
  if ( x > SIZE_MAX )                                                 
 800e240:	48 20 00 17 	bg r1,r0,800e29c <_CORE_message_queue_Initialize+0xcc>
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
     _Workspace_Allocate( message_buffering_required );               
 800e244:	b8 40 08 00 	mv r1,r2                                       
 800e248:	f8 00 0e 70 	calli 8011c08 <_Workspace_Allocate>            
    return false;                                                     
                                                                      
  /*                                                                  
   *  Attempt to allocate the message memory                          
   */                                                                 
  the_message_queue->message_buffers = (CORE_message_queue_Buffer *)  
 800e24c:	59 61 00 5c 	sw (r11+92),r1                                 
     _Workspace_Allocate( message_buffering_required );               
 800e250:	b8 20 28 00 	mv r5,r1                                       
                                                                      
  if (the_message_queue->message_buffers == 0)                        
 800e254:	44 20 00 12 	be r1,r0,800e29c <_CORE_message_queue_Initialize+0xcc><== NEVER TAKEN
                                                                      
  /*                                                                  
   *  Initialize the pool of inactive messages, pending messages,     
   *  and set of waiting threads.                                     
   */                                                                 
  _Chain_Initialize (                                                 
 800e258:	b8 a0 10 00 	mv r2,r5                                       
 800e25c:	35 61 00 60 	addi r1,r11,96                                 
 800e260:	b9 a0 18 00 	mv r3,r13                                      
 800e264:	b9 c0 20 00 	mv r4,r14                                      
 800e268:	fb ff ff cd 	calli 800e19c <_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 );                        
 800e26c:	35 61 00 54 	addi r1,r11,84                                 
                                                                      
  head->next = tail;                                                  
 800e270:	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 );                        
 800e274:	35 61 00 50 	addi r1,r11,80                                 
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
 800e278:	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;                                              
 800e27c:	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(                                           
 800e280:	29 e2 00 00 	lw r2,(r15+0)                                  
 800e284:	b9 60 08 00 	mv r1,r11                                      
 800e288:	34 03 00 80 	mvi r3,128                                     
 800e28c:	64 42 00 01 	cmpei r2,r2,1                                  
 800e290:	34 04 00 06 	mvi r4,6                                       
 800e294:	f8 00 0b d0 	calli 80111d4 <_Thread_queue_Initialize>       
       THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO,
    STATES_WAITING_FOR_MESSAGE,                                       
    CORE_MESSAGE_QUEUE_STATUS_TIMEOUT                                 
  );                                                                  
                                                                      
  return true;                                                        
 800e298:	34 0c 00 01 	mvi r12,1                                      
}                                                                     
 800e29c:	b9 80 08 00 	mv r1,r12                                      
 800e2a0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800e2a4:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800e2a8:	2b 8c 00 14 	lw r12,(sp+20)                                 
 800e2ac:	2b 8d 00 10 	lw r13,(sp+16)                                 
 800e2b0:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800e2b4:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800e2b8:	37 9c 00 18 	addi sp,sp,24                                  
 800e2bc:	c3 a0 00 00 	ret                                            
                                                                      

0800e2c0 <_CORE_message_queue_Seize>: void *buffer, size_t *size_p, bool wait, Watchdog_Interval timeout ) {
 800e2c0:	37 9c ff f4 	addi sp,sp,-12                                 
 800e2c4:	5b 8b 00 0c 	sw (sp+12),r11                                 
 800e2c8:	5b 8c 00 08 	sw (sp+8),r12                                  
 800e2cc:	5b 9d 00 04 	sw (sp+4),ra                                   
  ISR_Level                          level;                           
  CORE_message_queue_Buffer_control *the_message;                     
  Thread_Control                    *executing;                       
                                                                      
  executing = _Thread_Executing;                                      
 800e2d0:	78 07 08 02 	mvhi r7,0x802                                  
 800e2d4:	38 e7 7b 80 	ori r7,r7,0x7b80                               
 800e2d8:	28 e7 00 10 	lw r7,(r7+16)                                  
  void                            *buffer,                            
  size_t                          *size_p,                            
  bool                             wait,                              
  Watchdog_Interval                timeout                            
)                                                                     
{                                                                     
 800e2dc:	b8 20 58 00 	mv r11,r1                                      
 800e2e0:	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; 
 800e2e4:	58 e0 00 34 	sw (r7+52),r0                                  
  void                            *buffer,                            
  size_t                          *size_p,                            
  bool                             wait,                              
  Watchdog_Interval                timeout                            
)                                                                     
{                                                                     
 800e2e8:	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 );                                              
 800e2ec:	90 00 40 00 	rcsr r8,IE                                     
 800e2f0:	34 03 ff fe 	mvi r3,-2                                      
 800e2f4:	a1 03 18 00 	and r3,r8,r3                                   
 800e2f8:	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 );   
}                                                                     
 800e2fc:	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 );                            
 800e300:	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))                                   
 800e304:	45 83 00 07 	be r12,r3,800e320 <_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;                            
 800e308:	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 );                        
 800e30c:	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;                                             
 800e310:	59 63 00 50 	sw (r11+80),r3                                 
  new_first->previous = head;                                         
 800e314:	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 ) {                                        
 800e318:	5d 80 00 04 	bne r12,r0,800e328 <_CORE_message_queue_Seize+0x68><== ALWAYS TAKEN
 800e31c:	e0 00 00 13 	bi 800e368 <_CORE_message_queue_Seize+0xa8>    <== NOT EXECUTED
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
    return _Chain_Get_first_unprotected(the_chain);                   
  else                                                                
    return NULL;                                                      
 800e320:	34 0c 00 00 	mvi r12,0                                      
 800e324:	e0 00 00 11 	bi 800e368 <_CORE_message_queue_Seize+0xa8>    
    the_message_queue->number_of_pending_messages -= 1;               
 800e328:	29 62 00 48 	lw r2,(r11+72)                                 
 800e32c:	34 42 ff ff 	addi r2,r2,-1                                  
 800e330:	59 62 00 48 	sw (r11+72),r2                                 
    _ISR_Enable( level );                                             
 800e334:	d0 08 00 00 	wcsr IE,r8                                     
                                                                      
    *size_p = the_message->Contents.size;                             
    _Thread_Executing->Wait.count =                                   
 800e338:	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;                             
 800e33c:	29 83 00 08 	lw r3,(r12+8)                                  
    _Thread_Executing->Wait.count =                                   
 800e340:	38 42 7b 80 	ori r2,r2,0x7b80                               
 800e344:	28 42 00 10 	lw r2,(r2+16)                                  
  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;                             
 800e348:	58 83 00 00 	sw (r4+0),r3                                   
    _Thread_Executing->Wait.count =                                   
 800e34c:	58 40 00 24 	sw (r2+36),r0                                  
  const void *source,                                                 
  void       *destination,                                            
  size_t      size                                                    
)                                                                     
{                                                                     
  memcpy(destination, source, size);                                  
 800e350:	35 82 00 0c 	addi r2,r12,12                                 
 800e354:	f8 00 20 cf 	calli 8016690 <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 );
 800e358:	35 61 00 60 	addi r1,r11,96                                 
 800e35c:	b9 80 10 00 	mv r2,r12                                      
 800e360:	fb ff ff 74 	calli 800e130 <_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;                                                         
 800e364:	e0 00 00 12 	bi 800e3ac <_CORE_message_queue_Seize+0xec>    
      return;                                                         
    }                                                                 
    #endif                                                            
  }                                                                   
                                                                      
  if ( !wait ) {                                                      
 800e368:	5c ac 00 05 	bne r5,r12,800e37c <_CORE_message_queue_Seize+0xbc>
    _ISR_Enable( level );                                             
 800e36c:	d0 08 00 00 	wcsr IE,r8                                     
    executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT;
 800e370:	34 01 00 04 	mvi r1,4                                       
 800e374:	58 e1 00 34 	sw (r7+52),r1                                  
    return;                                                           
 800e378:	e0 00 00 0d 	bi 800e3ac <_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;
 800e37c:	34 03 00 01 	mvi r3,1                                       
 800e380:	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;             
 800e384:	58 eb 00 44 	sw (r7+68),r11                                 
  executing->Wait.id = id;                                            
 800e388:	58 e2 00 20 	sw (r7+32),r2                                  
  executing->Wait.return_argument_second.mutable_object = buffer;     
 800e38c:	58 e1 00 2c 	sw (r7+44),r1                                  
  executing->Wait.return_argument = size_p;                           
 800e390:	58 e4 00 28 	sw (r7+40),r4                                  
  /* Wait.count will be filled in with the message priority */        
  _ISR_Enable( level );                                               
 800e394:	d0 08 00 00 	wcsr IE,r8                                     
                                                                      
  _Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );   
 800e398:	78 03 08 01 	mvhi r3,0x801                                  
 800e39c:	b9 60 08 00 	mv r1,r11                                      
 800e3a0:	b8 c0 10 00 	mv r2,r6                                       
 800e3a4:	38 63 13 14 	ori r3,r3,0x1314                               
 800e3a8:	f8 00 0a a4 	calli 8010e38 <_Thread_queue_Enqueue_with_handler>
}                                                                     
 800e3ac:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800e3b0:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 800e3b4:	2b 8c 00 08 	lw r12,(sp+8)                                  
 800e3b8:	37 9c 00 0c 	addi sp,sp,12                                  
 800e3bc:	c3 a0 00 00 	ret                                            
                                                                      

080047e0 <_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 ) {
 80047e0:	37 9c ff f8 	addi sp,sp,-8                                  
 80047e4:	5b 8b 00 08 	sw (sp+8),r11                                  
 80047e8:	5b 9d 00 04 	sw (sp+4),ra                                   
 80047ec:	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)) ) {
 80047f0:	f8 00 08 80 	calli 80069f0 <_Thread_queue_Dequeue>          
{                                                                     
  Thread_Control *the_thread;                                         
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
 80047f4:	34 02 00 00 	mvi r2,0                                       
                                                                      
  if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) {
 80047f8:	5c 20 00 0d 	bne r1,r0,800482c <_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 );                                            
 80047fc:	90 00 08 00 	rcsr r1,IE                                     
 8004800:	34 02 ff fe 	mvi r2,-2                                      
 8004804:	a0 22 10 00 	and r2,r1,r2                                   
 8004808:	d0 02 00 00 	wcsr IE,r2                                     
      if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
 800480c:	29 63 00 48 	lw r3,(r11+72)                                 
 8004810:	29 64 00 40 	lw r4,(r11+64)                                 
        the_semaphore->count += 1;                                    
      else                                                            
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
 8004814:	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 )
 8004818:	50 64 00 04 	bgeu r3,r4,8004828 <_CORE_semaphore_Surrender+0x48><== NEVER TAKEN
        the_semaphore->count += 1;                                    
 800481c:	34 63 00 01 	addi r3,r3,1                                   
 8004820:	59 63 00 48 	sw (r11+72),r3                                 
{                                                                     
  Thread_Control *the_thread;                                         
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
 8004824:	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 );                                             
 8004828:	d0 01 00 00 	wcsr IE,r1                                     
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
 800482c:	b8 40 08 00 	mv r1,r2                                       
 8004830:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004834:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8004838:	37 9c 00 08 	addi sp,sp,8                                   
 800483c:	c3 a0 00 00 	ret                                            
                                                                      

08009174 <_Event_Surrender>: rtems_event_set event_in, Event_Control *event, Thread_blocking_operation_States *sync_state, States_Control wait_state ) {
 8009174:	37 9c ff f4 	addi sp,sp,-12                                 
 8009178:	5b 8b 00 0c 	sw (sp+12),r11                                 
 800917c:	5b 8c 00 08 	sw (sp+8),r12                                  
 8009180:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_event_set pending_events;                                     
  rtems_event_set event_condition;                                    
  rtems_event_set seized_events;                                      
  rtems_option    option_set;                                         
                                                                      
  option_set = the_thread->Wait.option;                               
 8009184:	28 2a 00 30 	lw r10,(r1+48)                                 
  rtems_event_set                   event_in,                         
  Event_Control                    *event,                            
  Thread_blocking_operation_States *sync_state,                       
  States_Control                    wait_state                        
)                                                                     
{                                                                     
 8009188:	b8 20 58 00 	mv r11,r1                                      
  rtems_event_set seized_events;                                      
  rtems_option    option_set;                                         
                                                                      
  option_set = the_thread->Wait.option;                               
                                                                      
  _ISR_Disable( level );                                              
 800918c:	90 00 08 00 	rcsr r1,IE                                     
 8009190:	34 09 ff fe 	mvi r9,-2                                      
 8009194:	a0 29 48 00 	and r9,r1,r9                                   
 8009198:	d0 09 00 00 	wcsr IE,r9                                     
RTEMS_INLINE_ROUTINE void _Event_sets_Post(                           
  rtems_event_set  the_new_events,                                    
  rtems_event_set *the_event_set                                      
)                                                                     
{                                                                     
  *the_event_set |= the_new_events;                                   
 800919c:	28 66 00 00 	lw r6,(r3+0)                                   
  _Event_sets_Post( event_in, &event->pending_events );               
  pending_events  = event->pending_events;                            
  event_condition = the_thread->Wait.count;                           
 80091a0:	29 68 00 24 	lw r8,(r11+36)                                 
 80091a4:	b8 46 10 00 	or r2,r2,r6                                    
 80091a8:	58 62 00 00 	sw (r3+0),r2                                   
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 );                    
 80091ac:	a0 48 30 00 	and r6,r2,r8                                   
  seized_events = _Event_sets_Get( pending_events, event_condition ); 
                                                                      
  /*                                                                  
   *  No events were seized in this operation                         
   */                                                                 
  if ( _Event_sets_Is_empty( seized_events ) ) {                      
 80091b0:	44 c0 00 35 	be r6,r0,8009284 <_Event_Surrender+0x110>      
                                                                      
  /*                                                                  
   *  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() &&                                       
 80091b4:	78 07 08 01 	mvhi r7,0x801                                  
 80091b8:	38 e7 da 60 	ori r7,r7,0xda60                               
 80091bc:	28 ec 00 08 	lw r12,(r7+8)                                  
 80091c0:	45 80 00 13 	be r12,r0,800920c <_Event_Surrender+0x98>      
 80091c4:	28 e7 00 10 	lw r7,(r7+16)                                  
 80091c8:	5d 67 00 11 	bne r11,r7,800920c <_Event_Surrender+0x98>     
       _Thread_Is_executing( the_thread ) &&                          
       ((*sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||         
 80091cc:	28 8c 00 00 	lw r12,(r4+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 ) &&                          
 80091d0:	34 07 00 01 	mvi r7,1                                       
       ((*sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||         
 80091d4:	35 8c ff ff 	addi r12,r12,-1                                
  /*                                                                  
   *  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 ) &&                          
 80091d8:	55 87 00 0d 	bgu r12,r7,800920c <_Event_Surrender+0x98>     
       ((*sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||         
        (*sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
    if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
 80091dc:	44 c8 00 03 	be r6,r8,80091e8 <_Event_Surrender+0x74>       
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Options_Is_any (                           
  rtems_option option_set                                             
)                                                                     
{                                                                     
   return (option_set & RTEMS_EVENT_ANY) ? true : false;              
 80091e0:	21 4a 00 02 	andi r10,r10,0x2                               
 80091e4:	45 40 00 28 	be r10,r0,8009284 <_Event_Surrender+0x110>     <== 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) );                            
 80091e8:	a4 c0 28 00 	not r5,r6                                      
 80091ec:	a0 a2 10 00 	and r2,r5,r2                                   
      event->pending_events = _Event_sets_Clear(                      
 80091f0:	58 62 00 00 	sw (r3+0),r2                                   
        pending_events,                                               
        seized_events                                                 
      );                                                              
      the_thread->Wait.count = 0;                                     
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 80091f4:	29 62 00 28 	lw r2,(r11+40)                                 
    if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
      event->pending_events = _Event_sets_Clear(                      
        pending_events,                                               
        seized_events                                                 
      );                                                              
      the_thread->Wait.count = 0;                                     
 80091f8:	59 60 00 24 	sw (r11+36),r0                                 
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 80091fc:	58 46 00 00 	sw (r2+0),r6                                   
      *sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;              
 8009200:	34 02 00 03 	mvi r2,3                                       
 8009204:	58 82 00 00 	sw (r4+0),r2                                   
 8009208:	e0 00 00 1f 	bi 8009284 <_Event_Surrender+0x110>            
RTEMS_INLINE_ROUTINE bool _States_Are_set (                           
  States_Control the_states,                                          
  States_Control mask                                                 
)                                                                     
{                                                                     
   return ( (the_states & mask) != STATES_READY);                     
 800920c:	29 64 00 10 	lw r4,(r11+16)                                 
 8009210:	a0 a4 28 00 	and r5,r5,r4                                   
  }                                                                   
                                                                      
  /*                                                                  
   *  Otherwise, this is a normal send to another thread              
   */                                                                 
  if ( _States_Are_set( the_thread->current_state, wait_state ) ) {   
 8009214:	44 a0 00 1c 	be r5,r0,8009284 <_Event_Surrender+0x110>      
    if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
 8009218:	44 c8 00 03 	be r6,r8,8009224 <_Event_Surrender+0xb0>       
 800921c:	21 4a 00 02 	andi r10,r10,0x2                               
 8009220:	45 40 00 19 	be r10,r0,8009284 <_Event_Surrender+0x110>     <== NEVER TAKEN
 8009224:	a4 c0 20 00 	not r4,r6                                      
 8009228:	a0 82 10 00 	and r2,r4,r2                                   
      event->pending_events = _Event_sets_Clear(                      
 800922c:	58 62 00 00 	sw (r3+0),r2                                   
        pending_events,                                               
        seized_events                                                 
      );                                                              
      the_thread->Wait.count = 0;                                     
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 8009230:	29 62 00 28 	lw r2,(r11+40)                                 
    if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
      event->pending_events = _Event_sets_Clear(                      
        pending_events,                                               
        seized_events                                                 
      );                                                              
      the_thread->Wait.count = 0;                                     
 8009234:	59 60 00 24 	sw (r11+36),r0                                 
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
 8009238:	58 46 00 00 	sw (r2+0),r6                                   
                                                                      
      _ISR_Flash( level );                                            
 800923c:	d0 01 00 00 	wcsr IE,r1                                     
 8009240:	d0 09 00 00 	wcsr IE,r9                                     
                                                                      
      if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {             
 8009244:	29 63 00 50 	lw r3,(r11+80)                                 
 8009248:	34 02 00 02 	mvi r2,2                                       
 800924c:	44 62 00 03 	be r3,r2,8009258 <_Event_Surrender+0xe4>       
        _ISR_Enable( level );                                         
 8009250:	d0 01 00 00 	wcsr IE,r1                                     
 8009254:	e0 00 00 06 	bi 800926c <_Event_Surrender+0xf8>             
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(                       
  Watchdog_Control *the_watchdog                                      
)                                                                     
{                                                                     
                                                                      
  the_watchdog->state = WATCHDOG_REMOVE_IT;                           
 8009258:	34 02 00 03 	mvi r2,3                                       
 800925c:	59 62 00 50 	sw (r11+80),r2                                 
        _Thread_Unblock( the_thread );                                
      } else {                                                        
        _Watchdog_Deactivate( &the_thread->Timer );                   
        _ISR_Enable( level );                                         
 8009260:	d0 01 00 00 	wcsr IE,r1                                     
        (void) _Watchdog_Remove( &the_thread->Timer );                
 8009264:	35 61 00 48 	addi r1,r11,72                                 
 8009268:	fb ff f9 03 	calli 8007674 <_Watchdog_Remove>               
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
 800926c:	78 03 08 01 	mvhi r3,0x801                                  
 8009270:	38 63 bb ac 	ori r3,r3,0xbbac                               
 8009274:	28 62 00 00 	lw r2,(r3+0)                                   
 8009278:	b9 60 08 00 	mv r1,r11                                      
 800927c:	f8 00 02 c6 	calli 8009d94 <_Thread_Clear_state>            
 8009280:	e0 00 00 02 	bi 8009288 <_Event_Surrender+0x114>            
        _Thread_Unblock( the_thread );                                
      }                                                               
      return;                                                         
    }                                                                 
  }                                                                   
  _ISR_Enable( level );                                               
 8009284:	d0 01 00 00 	wcsr IE,r1                                     
}                                                                     
 8009288:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800928c:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8009290:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8009294:	37 9c 00 0c 	addi sp,sp,12                                  
 8009298:	c3 a0 00 00 	ret                                            
                                                                      

0800db2c <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *arg ) {
 800db2c:	37 9c ff f4 	addi sp,sp,-12                                 
 800db30:	5b 8b 00 08 	sw (sp+8),r11                                  
 800db34:	5b 9d 00 04 	sw (sp+4),ra                                   
 800db38:	b8 40 58 00 	mv r11,r2                                      
  ISR_Level                         level;                            
  Thread_blocking_operation_States *sync_state;                       
                                                                      
  sync_state = arg;                                                   
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 800db3c:	37 82 00 0c 	addi r2,sp,12                                  
 800db40:	fb ff e7 89 	calli 8007964 <_Thread_Get>                    
  switch ( location ) {                                               
 800db44:	2b 82 00 0c 	lw r2,(sp+12)                                  
 800db48:	5c 40 00 1b 	bne r2,r0,800dbb4 <_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 );                                          
 800db4c:	90 00 10 00 	rcsr r2,IE                                     
 800db50:	34 03 ff fe 	mvi r3,-2                                      
 800db54:	a0 43 18 00 	and r3,r2,r3                                   
 800db58:	d0 03 00 00 	wcsr IE,r3                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
 800db5c:	78 03 08 01 	mvhi r3,0x801                                  
 800db60:	38 63 9a 80 	ori r3,r3,0x9a80                               
            return;                                                   
          }                                                           
        #endif                                                        
                                                                      
        the_thread->Wait.count = 0;                                   
        if ( _Thread_Is_executing( the_thread ) ) {                   
 800db64:	28 63 00 10 	lw r3,(r3+16)                                  
            _ISR_Enable( level );                                     
            return;                                                   
          }                                                           
        #endif                                                        
                                                                      
        the_thread->Wait.count = 0;                                   
 800db68:	58 20 00 24 	sw (r1+36),r0                                  
        if ( _Thread_Is_executing( the_thread ) ) {                   
 800db6c:	5c 23 00 06 	bne r1,r3,800db84 <_Event_Timeout+0x58>        
          if ( *sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
 800db70:	29 64 00 00 	lw r4,(r11+0)                                  
 800db74:	34 03 00 01 	mvi r3,1                                       
 800db78:	5c 83 00 03 	bne r4,r3,800db84 <_Event_Timeout+0x58>        
            *sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;          
 800db7c:	34 03 00 02 	mvi r3,2                                       
 800db80:	59 63 00 00 	sw (r11+0),r3                                  
        }                                                             
                                                                      
        the_thread->Wait.return_code = RTEMS_TIMEOUT;                 
 800db84:	34 03 00 06 	mvi r3,6                                       
 800db88:	58 23 00 34 	sw (r1+52),r3                                  
      _ISR_Enable( level );                                           
 800db8c:	d0 02 00 00 	wcsr IE,r2                                     
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
 800db90:	78 03 08 01 	mvhi r3,0x801                                  
 800db94:	38 63 7a 40 	ori r3,r3,0x7a40                               
 800db98:	28 62 00 00 	lw r2,(r3+0)                                   
 800db9c:	f8 00 04 a0 	calli 800ee1c <_Thread_Clear_state>            
   *                                                                  
   * This routine decrements the thread dispatch level.               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_decrement_disable_level(void)
  {                                                                   
    uint32_t level = _Thread_Dispatch_disable_level;                  
 800dba0:	78 01 08 01 	mvhi r1,0x801                                  
 800dba4:	38 21 99 00 	ori r1,r1,0x9900                               
 800dba8:	28 22 00 00 	lw r2,(r1+0)                                   
                                                                      
    --level;                                                          
 800dbac:	34 42 ff ff 	addi r2,r2,-1                                  
    _Thread_Dispatch_disable_level = level;                           
 800dbb0:	58 22 00 00 	sw (r1+0),r2                                   
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
}                                                                     
 800dbb4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800dbb8:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800dbbc:	37 9c 00 0c 	addi sp,sp,12                                  
 800dbc0:	c3 a0 00 00 	ret                                            
                                                                      

08009a94 <_Heap_Free>: return do_free; } #endif bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr ) {
 8009a94:	37 9c ff f4 	addi sp,sp,-12                                 
 8009a98:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8009a9c:	5b 8c 00 08 	sw (sp+8),r12                                  
 8009aa0:	5b 9d 00 04 	sw (sp+4),ra                                   
 8009aa4:	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;                                                      
 8009aa8:	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 ) {                                    
 8009aac:	44 40 00 73 	be r2,r0,8009c78 <_Heap_Free+0x1e4>            
 8009ab0:	34 4c ff f8 	addi r12,r2,-8                                 
 8009ab4:	b8 40 08 00 	mv r1,r2                                       
 8009ab8:	29 62 00 10 	lw r2,(r11+16)                                 
 8009abc:	f8 00 42 c9 	calli 801a5e0 <__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           
 8009ac0:	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);                                        
 8009ac4:	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;             
 8009ac8:	34 01 00 00 	mvi r1,0                                       
 8009acc:	54 e3 00 03 	bgu r7,r3,8009ad8 <_Heap_Free+0x44>            
 8009ad0:	29 61 00 24 	lw r1,(r11+36)                                 
 8009ad4:	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 ) ) {                     
 8009ad8:	b8 20 10 00 	mv r2,r1                                       
    return false;                                                     
 8009adc:	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 ) ) {                     
 8009ae0:	44 40 00 66 	be r2,r0,8009c78 <_Heap_Free+0x1e4>            
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 8009ae4:	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;                
 8009ae8:	34 04 ff fe 	mvi r4,-2                                      
 8009aec:	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);                 
 8009af0:	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;             
 8009af4:	54 e2 00 03 	bgu r7,r2,8009b00 <_Heap_Free+0x6c>            <== NEVER TAKEN
 8009af8:	29 61 00 24 	lw r1,(r11+36)                                 
 8009afc:	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 ) ) {                
 8009b00:	b8 20 28 00 	mv r5,r1                                       
    return false;                                                     
 8009b04:	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 ) ) {                
 8009b08:	44 a0 00 5c 	be r5,r0,8009c78 <_Heap_Free+0x1e4>            <== NEVER TAKEN
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 8009b0c:	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;                 
 8009b10:	20 a8 00 01 	andi r8,r5,0x1                                 
    return false;                                                     
  }                                                                   
                                                                      
  _Heap_Protection_block_check( heap, next_block );                   
                                                                      
  if ( !_Heap_Is_prev_used( next_block ) ) {                          
 8009b14:	45 00 00 59 	be r8,r0,8009c78 <_Heap_Free+0x1e4>            
  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                       
 8009b18:	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;                
 8009b1c:	34 01 ff fe 	mvi r1,-2                                      
 8009b20:	a0 a1 28 00 	and r5,r5,r1                                   
    && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
 8009b24:	34 08 00 00 	mvi r8,0                                       
 8009b28:	45 22 00 05 	be r9,r2,8009b3c <_Heap_Free+0xa8>             
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
 8009b2c:	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;                 
 8009b30:	28 28 00 04 	lw r8,(r1+4)                                   
 8009b34:	21 08 00 01 	andi r8,r8,0x1                                 
                                                                      
    return do_free;                                                   
  }                                                                   
#endif                                                                
                                                                      
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )          
 8009b38:	65 08 00 00 	cmpei r8,r8,0                                  
 8009b3c:	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                       
 8009b40:	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 ) ) {                               
 8009b44:	5c c0 00 24 	bne r6,r0,8009bd4 <_Heap_Free+0x140>           
    uintptr_t const prev_size = block->prev_size;                     
 8009b48:	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;             
 8009b4c:	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);                 
 8009b50:	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;             
 8009b54:	54 e3 00 02 	bgu r7,r3,8009b5c <_Heap_Free+0xc8>            <== NEVER TAKEN
 8009b58:	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 ) ) {              
 8009b5c:	b8 20 38 00 	mv r7,r1                                       
      _HAssert( false );                                              
      return( false );                                                
 8009b60:	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 ) ) {              
 8009b64:	44 e0 00 45 	be r7,r0,8009c78 <_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;                 
 8009b68:	28 67 00 04 	lw r7,(r3+4)                                   
 8009b6c:	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) ) {                        
 8009b70:	44 e0 00 42 	be r7,r0,8009c78 <_Heap_Free+0x1e4>            <== NEVER TAKEN
      _HAssert( false );                                              
      return( false );                                                
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
 8009b74:	45 00 00 0f 	be r8,r0,8009bb0 <_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;                                     
 8009b78:	28 41 00 08 	lw r1,(r2+8)                                   
  Heap_Block *prev = block->prev;                                     
 8009b7c:	28 42 00 0c 	lw r2,(r2+12)                                  
      uintptr_t const size = block_size + prev_size + next_block_size;
 8009b80:	b4 85 28 00 	add r5,r4,r5                                   
 8009b84:	b4 a6 30 00 	add r6,r5,r6                                   
                                                                      
  prev->next = next;                                                  
 8009b88:	58 41 00 08 	sw (r2+8),r1                                   
  next->prev = prev;                                                  
 8009b8c:	58 22 00 0c 	sw (r1+12),r2                                  
      _Heap_Free_list_remove( next_block );                           
      stats->free_blocks -= 1;                                        
 8009b90:	29 61 00 38 	lw r1,(r11+56)                                 
 8009b94:	34 21 ff ff 	addi r1,r1,-1                                  
 8009b98:	59 61 00 38 	sw (r11+56),r1                                 
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
 8009b9c:	38 c1 00 01 	ori r1,r6,0x1                                  
 8009ba0:	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;                                   
 8009ba4:	b4 66 18 00 	add r3,r3,r6                                   
 8009ba8:	58 66 00 00 	sw (r3+0),r6                                   
 8009bac:	e0 00 00 29 	bi 8009c50 <_Heap_Free+0x1bc>                  
    } else {                      /* coalesce prev */                 
      uintptr_t const size = block_size + prev_size;                  
 8009bb0:	b4 86 30 00 	add r6,r4,r6                                   
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
 8009bb4:	38 c1 00 01 	ori r1,r6,0x1                                  
 8009bb8:	58 61 00 04 	sw (r3+4),r1                                   
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
 8009bbc:	28 43 00 04 	lw r3,(r2+4)                                   
 8009bc0:	34 01 ff fe 	mvi r1,-2                                      
      next_block->prev_size = size;                                   
 8009bc4:	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;             
 8009bc8:	a0 61 08 00 	and r1,r3,r1                                   
 8009bcc:	58 41 00 04 	sw (r2+4),r1                                   
 8009bd0:	e0 00 00 20 	bi 8009c50 <_Heap_Free+0x1bc>                  
      next_block->prev_size = size;                                   
    }                                                                 
  } else if ( next_is_free ) {    /* coalesce next */                 
 8009bd4:	45 00 00 0d 	be r8,r0,8009c08 <_Heap_Free+0x174>            
    uintptr_t const size = block_size + next_block_size;              
 8009bd8:	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;                                 
 8009bdc:	28 45 00 08 	lw r5,(r2+8)                                   
  Heap_Block *prev = old_block->prev;                                 
 8009be0:	28 42 00 0c 	lw r2,(r2+12)                                  
                                                                      
  new_block->next = next;                                             
 8009be4:	58 65 00 08 	sw (r3+8),r5                                   
  new_block->prev = prev;                                             
 8009be8:	58 62 00 0c 	sw (r3+12),r2                                  
                                                                      
  next->prev = new_block;                                             
  prev->next = new_block;                                             
 8009bec:	58 43 00 08 	sw (r2+8),r3                                   
    _Heap_Free_list_replace( next_block, block );                     
    block->size_and_flag = size | HEAP_PREV_BLOCK_USED;               
 8009bf0:	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;                                             
 8009bf4:	58 a3 00 0c 	sw (r5+12),r3                                  
 8009bf8:	58 62 00 04 	sw (r3+4),r2                                   
    next_block  = _Heap_Block_at( block, size );                      
    next_block->prev_size = size;                                     
 8009bfc:	b4 61 18 00 	add r3,r3,r1                                   
 8009c00:	58 61 00 00 	sw (r3+0),r1                                   
 8009c04:	e0 00 00 13 	bi 8009c50 <_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;                              
 8009c08:	29 61 00 08 	lw r1,(r11+8)                                  
                                                                      
  new_block->next = next;                                             
  new_block->prev = block_before;                                     
 8009c0c:	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;                               
 8009c10:	58 44 00 00 	sw (r2+0),r4                                   
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = block_before->next;                              
                                                                      
  new_block->next = next;                                             
 8009c14:	58 61 00 08 	sw (r3+8),r1                                   
  new_block->prev = block_before;                                     
  block_before->next = new_block;                                     
  next->prev = new_block;                                             
 8009c18:	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;         
 8009c1c:	38 81 00 01 	ori r1,r4,0x1                                  
 8009c20:	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;                                     
 8009c24:	59 63 00 08 	sw (r11+8),r3                                  
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
 8009c28:	28 43 00 04 	lw r3,(r2+4)                                   
 8009c2c:	34 01 ff fe 	mvi r1,-2                                      
 8009c30:	a0 61 08 00 	and r1,r3,r1                                   
 8009c34:	58 41 00 04 	sw (r2+4),r1                                   
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
 8009c38:	29 61 00 38 	lw r1,(r11+56)                                 
    if ( stats->max_free_blocks < stats->free_blocks ) {              
 8009c3c:	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;                                             
 8009c40:	34 21 00 01 	addi r1,r1,1                                   
 8009c44:	59 61 00 38 	sw (r11+56),r1                                 
    if ( stats->max_free_blocks < stats->free_blocks ) {              
 8009c48:	50 41 00 02 	bgeu r2,r1,8009c50 <_Heap_Free+0x1bc>          
      stats->max_free_blocks = stats->free_blocks;                    
 8009c4c:	59 61 00 3c 	sw (r11+60),r1                                 
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
 8009c50:	29 61 00 40 	lw r1,(r11+64)                                 
 8009c54:	34 21 ff ff 	addi r1,r1,-1                                  
 8009c58:	59 61 00 40 	sw (r11+64),r1                                 
  ++stats->frees;                                                     
 8009c5c:	29 61 00 50 	lw r1,(r11+80)                                 
 8009c60:	34 21 00 01 	addi r1,r1,1                                   
 8009c64:	59 61 00 50 	sw (r11+80),r1                                 
  stats->free_size += block_size;                                     
 8009c68:	29 61 00 30 	lw r1,(r11+48)                                 
 8009c6c:	b4 24 20 00 	add r4,r1,r4                                   
 8009c70:	59 64 00 30 	sw (r11+48),r4                                 
                                                                      
  return( true );                                                     
 8009c74:	34 01 00 01 	mvi r1,1                                       
}                                                                     
 8009c78:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009c7c:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8009c80:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8009c84:	37 9c 00 0c 	addi sp,sp,12                                  
 8009c88:	c3 a0 00 00 	ret                                            
                                                                      

08006d84 <_Heap_Greedy_allocate>: Heap_Block *_Heap_Greedy_allocate( Heap_Control *heap, const uintptr_t *block_sizes, size_t block_count ) {
 8006d84:	37 9c ff e4 	addi sp,sp,-28                                 
 8006d88:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8006d8c:	5b 8c 00 18 	sw (sp+24),r12                                 
 8006d90:	5b 8d 00 14 	sw (sp+20),r13                                 
 8006d94:	5b 8e 00 10 	sw (sp+16),r14                                 
 8006d98:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8006d9c:	5b 90 00 08 	sw (sp+8),r16                                  
 8006da0:	5b 9d 00 04 	sw (sp+4),ra                                   
  Heap_Block *allocated_blocks = NULL;                                
  Heap_Block *blocks = NULL;                                          
  Heap_Block *current;                                                
  size_t i;                                                           
                                                                      
  for (i = 0; i < block_count; ++i) {                                 
 8006da4:	34 0b 00 00 	mvi r11,0                                      
Heap_Block *_Heap_Greedy_allocate(                                    
  Heap_Control *heap,                                                 
  const uintptr_t *block_sizes,                                       
  size_t block_count                                                  
)                                                                     
{                                                                     
 8006da8:	b8 20 68 00 	mv r13,r1                                      
 8006dac:	b8 60 78 00 	mv r15,r3                                      
  Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );    
 8006db0:	b8 40 70 00 	mv r14,r2                                      
  Heap_Block *allocated_blocks = NULL;                                
 8006db4:	34 0c 00 00 	mvi r12,0                                      
  Heap_Block *blocks = NULL;                                          
  Heap_Block *current;                                                
  size_t i;                                                           
                                                                      
  for (i = 0; i < block_count; ++i) {                                 
 8006db8:	e0 00 00 0f 	bi 8006df4 <_Heap_Greedy_allocate+0x70>        
 * @brief See _Heap_Allocate_aligned_with_boundary() with alignment and
 * boundary equals zero.                                              
 */                                                                   
RTEMS_INLINE_ROUTINE void *_Heap_Allocate( Heap_Control *heap, uintptr_t size )
{                                                                     
  return _Heap_Allocate_aligned_with_boundary( heap, size, 0, 0 );    
 8006dbc:	29 c2 00 00 	lw r2,(r14+0)                                  
 8006dc0:	b9 a0 08 00 	mv r1,r13                                      
 8006dc4:	34 03 00 00 	mvi r3,0                                       
 8006dc8:	34 04 00 00 	mvi r4,0                                       
 8006dcc:	f8 00 20 66 	calli 800ef64 <_Heap_Allocate_aligned_with_boundary>
    void *next = _Heap_Allocate( heap, block_sizes [i] );             
                                                                      
    if ( next != NULL ) {                                             
 8006dd0:	44 20 00 07 	be r1,r0,8006dec <_Heap_Greedy_allocate+0x68>  <== NEVER TAKEN
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
 8006dd4:	29 a2 00 10 	lw r2,(r13+16)                                 
 8006dd8:	34 30 ff f8 	addi r16,r1,-8                                 
 8006ddc:	f8 00 41 79 	calli 80173c0 <__umodsi3>                      
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
 8006de0:	ca 01 08 00 	sub r1,r16,r1                                  
      Heap_Block *next_block = _Heap_Block_of_alloc_area(             
        (uintptr_t) next,                                             
        heap->page_size                                               
      );                                                              
                                                                      
      next_block->next = allocated_blocks;                            
 8006de4:	58 2c 00 08 	sw (r1+8),r12                                  
 8006de8:	b8 20 60 00 	mv r12,r1                                      
  Heap_Block *allocated_blocks = NULL;                                
  Heap_Block *blocks = NULL;                                          
  Heap_Block *current;                                                
  size_t i;                                                           
                                                                      
  for (i = 0; i < block_count; ++i) {                                 
 8006dec:	35 6b 00 01 	addi r11,r11,1                                 
 8006df0:	35 ce 00 04 	addi r14,r14,4                                 
 8006df4:	55 eb ff f2 	bgu r15,r11,8006dbc <_Heap_Greedy_allocate+0x38>
 8006df8:	34 0e 00 00 	mvi r14,0                                      
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{                                                                     
  return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;                
 8006dfc:	34 0f ff fe 	mvi r15,-2                                     
 8006e00:	e0 00 00 0a 	bi 8006e28 <_Heap_Greedy_allocate+0xa4>        
 8006e04:	29 64 00 04 	lw r4,(r11+4)                                  
      allocated_blocks = next_block;                                  
    }                                                                 
  }                                                                   
                                                                      
  while ( (current = _Heap_Free_list_first( heap )) != free_list_tail ) {
    _Heap_Block_allocate(                                             
 8006e08:	b9 a0 08 00 	mv r1,r13                                      
 8006e0c:	b9 60 10 00 	mv r2,r11                                      
 8006e10:	a1 e4 20 00 	and r4,r15,r4                                  
 8006e14:	35 63 00 08 	addi r3,r11,8                                  
 8006e18:	34 84 ff f8 	addi r4,r4,-8                                  
 8006e1c:	f8 00 01 09 	calli 8007240 <_Heap_Block_allocate>           
      current,                                                        
      _Heap_Alloc_area_of_block( current ),                           
      _Heap_Block_size( current ) - HEAP_BLOCK_HEADER_SIZE            
    );                                                                
                                                                      
    current->next = blocks;                                           
 8006e20:	59 6e 00 08 	sw (r11+8),r14                                 
 8006e24:	b9 60 70 00 	mv r14,r11                                     
    Heap_Block *current = blocks;                                     
                                                                      
    blocks = blocks->next;                                            
    _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( current ) );
  }                                                                   
}                                                                     
 8006e28:	29 ab 00 08 	lw r11,(r13+8)                                 
      next_block->next = allocated_blocks;                            
      allocated_blocks = next_block;                                  
    }                                                                 
  }                                                                   
                                                                      
  while ( (current = _Heap_Free_list_first( heap )) != free_list_tail ) {
 8006e2c:	5d 6d ff f6 	bne r11,r13,8006e04 <_Heap_Greedy_allocate+0x80>
 8006e30:	e0 00 00 06 	bi 8006e48 <_Heap_Greedy_allocate+0xc4>        
    blocks = current;                                                 
  }                                                                   
                                                                      
  while ( allocated_blocks != NULL ) {                                
    current = allocated_blocks;                                       
    allocated_blocks = allocated_blocks->next;                        
 8006e34:	29 8b 00 08 	lw r11,(r12+8)                                 
    _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( current ) );
 8006e38:	35 82 00 08 	addi r2,r12,8                                  
 8006e3c:	b9 a0 08 00 	mv r1,r13                                      
 8006e40:	f8 00 20 cf 	calli 800f17c <_Heap_Free>                     
    blocks = current;                                                 
  }                                                                   
                                                                      
  while ( allocated_blocks != NULL ) {                                
    current = allocated_blocks;                                       
    allocated_blocks = allocated_blocks->next;                        
 8006e44:	b9 60 60 00 	mv r12,r11                                     
                                                                      
    current->next = blocks;                                           
    blocks = current;                                                 
  }                                                                   
                                                                      
  while ( allocated_blocks != NULL ) {                                
 8006e48:	5d 80 ff fb 	bne r12,r0,8006e34 <_Heap_Greedy_allocate+0xb0>
    allocated_blocks = allocated_blocks->next;                        
    _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( current ) );
  }                                                                   
                                                                      
  return blocks;                                                      
}                                                                     
 8006e4c:	b9 c0 08 00 	mv r1,r14                                      
 8006e50:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006e54:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8006e58:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8006e5c:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8006e60:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8006e64:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8006e68:	2b 90 00 08 	lw r16,(sp+8)                                  
 8006e6c:	37 9c 00 1c 	addi sp,sp,28                                  
 8006e70:	c3 a0 00 00 	ret                                            
                                                                      

0800f974 <_Heap_Iterate>: void _Heap_Iterate( Heap_Control *heap, Heap_Block_visitor visitor, void *visitor_arg ) {
 800f974:	37 9c ff e8 	addi sp,sp,-24                                 
 800f978:	5b 8b 00 18 	sw (sp+24),r11                                 
 800f97c:	5b 8c 00 14 	sw (sp+20),r12                                 
 800f980:	5b 8d 00 10 	sw (sp+16),r13                                 
 800f984:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800f988:	5b 8f 00 08 	sw (sp+8),r15                                  
 800f98c:	5b 9d 00 04 	sw (sp+4),ra                                   
 800f990:	b8 20 28 00 	mv r5,r1                                       
 800f994:	b8 40 78 00 	mv r15,r2                                      
 800f998:	b8 60 70 00 	mv r14,r3                                      
  Heap_Block *current = heap->first_block;                            
 800f99c:	28 21 00 20 	lw r1,(r1+32)                                  
  Heap_Block *end = heap->last_block;                                 
 800f9a0:	28 ad 00 24 	lw r13,(r5+36)                                 
 800f9a4:	34 0c ff fe 	mvi r12,-2                                     
 800f9a8:	e0 00 00 0a 	bi 800f9d0 <_Heap_Iterate+0x5c>                
 800f9ac:	28 22 00 04 	lw r2,(r1+4)                                   
  while ( !stop && current != end ) {                                 
    uintptr_t size = _Heap_Block_size( current );                     
    Heap_Block *next = _Heap_Block_at( current, size );               
    bool used = _Heap_Is_prev_used( next );                           
                                                                      
    stop = (*visitor)( current, size, used, visitor_arg );            
 800f9b0:	b9 c0 20 00 	mv r4,r14                                      
 800f9b4:	a1 82 10 00 	and r2,r12,r2                                  
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
 800f9b8:	b4 22 58 00 	add r11,r1,r2                                  
  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;                 
 800f9bc:	29 63 00 04 	lw r3,(r11+4)                                  
 800f9c0:	20 63 00 01 	andi r3,r3,0x1                                 
 800f9c4:	d9 e0 00 00 	call r15                                       
{                                                                     
  Heap_Block *current = heap->first_block;                            
  Heap_Block *end = heap->last_block;                                 
  bool stop = false;                                                  
                                                                      
  while ( !stop && current != end ) {                                 
 800f9c8:	5c 20 00 03 	bne r1,r0,800f9d4 <_Heap_Iterate+0x60>         <== NEVER TAKEN
 800f9cc:	b9 60 08 00 	mv r1,r11                                      
 800f9d0:	5c 2d ff f7 	bne r1,r13,800f9ac <_Heap_Iterate+0x38>        
                                                                      
    stop = (*visitor)( current, size, used, visitor_arg );            
                                                                      
    current = next;                                                   
  }                                                                   
}                                                                     
 800f9d4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800f9d8:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800f9dc:	2b 8c 00 14 	lw r12,(sp+20)                                 
 800f9e0:	2b 8d 00 10 	lw r13,(sp+16)                                 
 800f9e4:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800f9e8:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800f9ec:	37 9c 00 18 	addi sp,sp,24                                  
 800f9f0:	c3 a0 00 00 	ret                                            
                                                                      

0801aefc <_Heap_Size_of_alloc_area>: bool _Heap_Size_of_alloc_area( Heap_Control *heap, void *alloc_begin_ptr, uintptr_t *alloc_size ) {
 801aefc:	37 9c ff ec 	addi sp,sp,-20                                 
 801af00:	5b 8b 00 14 	sw (sp+20),r11                                 
 801af04:	5b 8c 00 10 	sw (sp+16),r12                                 
 801af08:	5b 8d 00 0c 	sw (sp+12),r13                                 
 801af0c:	5b 8e 00 08 	sw (sp+8),r14                                  
 801af10:	5b 9d 00 04 	sw (sp+4),ra                                   
 801af14:	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);                                 
 801af18:	34 4e ff f8 	addi r14,r2,-8                                 
 801af1c:	b8 40 08 00 	mv r1,r2                                       
 801af20:	b8 40 60 00 	mv r12,r2                                      
 801af24:	29 62 00 10 	lw r2,(r11+16)                                 
 801af28:	b8 60 68 00 	mv r13,r3                                      
 801af2c:	fb ff fd ad 	calli 801a5e0 <__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           
 801af30:	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);                                        
 801af34:	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;             
 801af38:	34 01 00 00 	mvi r1,0                                       
 801af3c:	54 44 00 03 	bgu r2,r4,801af48 <_Heap_Size_of_alloc_area+0x4c>
 801af40:	29 61 00 24 	lw r1,(r11+36)                                 
 801af44:	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 ) ) {                     
 801af48:	b8 20 18 00 	mv r3,r1                                       
    return false;                                                     
 801af4c:	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 ) ) {                     
 801af50:	44 60 00 13 	be r3,r0,801af9c <_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;                
 801af54:	28 83 00 04 	lw r3,(r4+4)                                   
 801af58:	34 01 ff fe 	mvi r1,-2                                      
 801af5c:	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);                 
 801af60:	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;             
 801af64:	34 01 00 00 	mvi r1,0                                       
 801af68:	54 44 00 03 	bgu r2,r4,801af74 <_Heap_Size_of_alloc_area+0x78><== NEVER TAKEN
 801af6c:	29 61 00 24 	lw r1,(r11+36)                                 
 801af70:	f0 24 08 00 	cmpgeu r1,r1,r4                                
  }                                                                   
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if (                                                                
 801af74:	b8 20 10 00 	mv r2,r1                                       
    !_Heap_Is_block_in_heap( heap, next_block )                       
      || !_Heap_Is_prev_used( next_block )                            
  ) {                                                                 
    return false;                                                     
 801af78:	34 01 00 00 	mvi r1,0                                       
  }                                                                   
                                                                      
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if (                                                                
 801af7c:	44 40 00 08 	be r2,r0,801af9c <_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;                 
 801af80:	28 82 00 04 	lw r2,(r4+4)                                   
 801af84:	20 42 00 01 	andi r2,r2,0x1                                 
    !_Heap_Is_block_in_heap( heap, next_block )                       
      || !_Heap_Is_prev_used( next_block )                            
 801af88:	44 40 00 05 	be r2,r0,801af9c <_Heap_Size_of_alloc_area+0xa0><== NEVER TAKEN
  ) {                                                                 
    return false;                                                     
  }                                                                   
                                                                      
  *alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin;
 801af8c:	c8 8c 20 00 	sub r4,r4,r12                                  
 801af90:	34 84 00 04 	addi r4,r4,4                                   
 801af94:	59 a4 00 00 	sw (r13+0),r4                                  
                                                                      
  return true;                                                        
 801af98:	34 01 00 01 	mvi r1,1                                       
}                                                                     
 801af9c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801afa0:	2b 8b 00 14 	lw r11,(sp+20)                                 
 801afa4:	2b 8c 00 10 	lw r12,(sp+16)                                 
 801afa8:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 801afac:	2b 8e 00 08 	lw r14,(sp+8)                                  
 801afb0:	37 9c 00 14 	addi sp,sp,20                                  
 801afb4:	c3 a0 00 00 	ret                                            
                                                                      

08005484 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) {
 8005484:	37 9c ff a0 	addi sp,sp,-96                                 
 8005488:	5b 8b 00 50 	sw (sp+80),r11                                 
 800548c:	5b 8c 00 4c 	sw (sp+76),r12                                 
 8005490:	5b 8d 00 48 	sw (sp+72),r13                                 
 8005494:	5b 8e 00 44 	sw (sp+68),r14                                 
 8005498:	5b 8f 00 40 	sw (sp+64),r15                                 
 800549c:	5b 90 00 3c 	sw (sp+60),r16                                 
 80054a0:	5b 91 00 38 	sw (sp+56),r17                                 
 80054a4:	5b 92 00 34 	sw (sp+52),r18                                 
 80054a8:	5b 93 00 30 	sw (sp+48),r19                                 
 80054ac:	5b 94 00 2c 	sw (sp+44),r20                                 
 80054b0:	5b 95 00 28 	sw (sp+40),r21                                 
 80054b4:	5b 96 00 24 	sw (sp+36),r22                                 
 80054b8:	5b 97 00 20 	sw (sp+32),r23                                 
 80054bc:	5b 98 00 1c 	sw (sp+28),r24                                 
 80054c0:	5b 99 00 18 	sw (sp+24),r25                                 
 80054c4:	5b 9b 00 14 	sw (sp+20),fp                                  
 80054c8:	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;                      
 80054cc:	78 0d 08 00 	mvhi r13,0x800                                 
bool _Heap_Walk(                                                      
  Heap_Control *heap,                                                 
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
 80054d0:	20 63 00 ff 	andi r3,r3,0xff                                
 80054d4:	b8 20 60 00 	mv r12,r1                                      
 80054d8:	b8 40 70 00 	mv r14,r2                                      
  uintptr_t const page_size = heap->page_size;                        
 80054dc:	28 33 00 10 	lw r19,(r1+16)                                 
  uintptr_t const min_block_size = heap->min_block_size;              
 80054e0:	28 35 00 14 	lw r21,(r1+20)                                 
  Heap_Block *const first_block = heap->first_block;                  
 80054e4:	28 34 00 20 	lw r20,(r1+32)                                 
  Heap_Block *const last_block = heap->last_block;                    
 80054e8:	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;                      
 80054ec:	39 ad 53 ec 	ori r13,r13,0x53ec                             
 80054f0:	44 60 00 03 	be r3,r0,80054fc <_Heap_Walk+0x78>             
 80054f4:	78 0d 08 00 	mvhi r13,0x800                                 
 80054f8:	39 ad 54 10 	ori r13,r13,0x5410                             
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
 80054fc:	78 03 08 01 	mvhi r3,0x801                                  
 8005500:	38 63 5a 74 	ori r3,r3,0x5a74                               
 8005504:	28 67 00 00 	lw r7,(r3+0)                                   
 8005508:	34 02 00 03 	mvi r2,3                                       
    return true;                                                      
 800550c:	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() ) ) {                
 8005510:	5c e2 01 08 	bne r7,r2,8005930 <_Heap_Walk+0x4ac>           
  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)(                                                         
 8005514:	29 81 00 08 	lw r1,(r12+8)                                  
 8005518:	29 86 00 18 	lw r6,(r12+24)                                 
 800551c:	29 87 00 1c 	lw r7,(r12+28)                                 
 8005520:	5b 81 00 08 	sw (sp+8),r1                                   
 8005524:	29 81 00 0c 	lw r1,(r12+12)                                 
 8005528:	78 03 08 01 	mvhi r3,0x801                                  
 800552c:	5b 96 00 04 	sw (sp+4),r22                                  
 8005530:	5b 81 00 0c 	sw (sp+12),r1                                  
 8005534:	34 02 00 00 	mvi r2,0                                       
 8005538:	b9 c0 08 00 	mv r1,r14                                      
 800553c:	38 63 34 78 	ori r3,r3,0x3478                               
 8005540:	ba 60 20 00 	mv r4,r19                                      
 8005544:	ba a0 28 00 	mv r5,r21                                      
 8005548:	ba 80 40 00 	mv r8,r20                                      
 800554c:	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 ) {                                             
 8005550:	5e 60 00 06 	bne r19,r0,8005568 <_Heap_Walk+0xe4>           
    (*printer)( source, true, "page size is zero\n" );                
 8005554:	78 03 08 01 	mvhi r3,0x801                                  
 8005558:	b9 c0 08 00 	mv r1,r14                                      
 800555c:	34 02 00 01 	mvi r2,1                                       
 8005560:	38 63 35 0c 	ori r3,r3,0x350c                               
 8005564:	e0 00 00 25 	bi 80055f8 <_Heap_Walk+0x174>                  
)                                                                     
{                                                                     
#if (CPU_ALIGNMENT == 0)                                              
    return true;                                                      
#else                                                                 
    return (((uintptr_t)address % CPU_ALIGNMENT) == 0);               
 8005568:	22 6f 00 03 	andi r15,r19,0x3                               
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Addresses_Is_aligned( (void *) page_size ) ) {               
 800556c:	45 e0 00 07 	be r15,r0,8005588 <_Heap_Walk+0x104>           
    (*printer)(                                                       
 8005570:	78 03 08 01 	mvhi r3,0x801                                  
 8005574:	b9 c0 08 00 	mv r1,r14                                      
 8005578:	34 02 00 01 	mvi r2,1                                       
 800557c:	38 63 35 20 	ori r3,r3,0x3520                               
 8005580:	ba 60 20 00 	mv r4,r19                                      
 8005584:	e0 00 01 04 	bi 8005994 <_Heap_Walk+0x510>                  
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
 8005588:	ba a0 08 00 	mv r1,r21                                      
 800558c:	ba 60 10 00 	mv r2,r19                                      
 8005590:	fb ff ed 86 	calli 8000ba8 <__umodsi3>                      
 8005594:	b8 20 58 00 	mv r11,r1                                      
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {             
 8005598:	44 2f 00 07 	be r1,r15,80055b4 <_Heap_Walk+0x130>           
    (*printer)(                                                       
 800559c:	78 03 08 01 	mvhi r3,0x801                                  
 80055a0:	b9 c0 08 00 	mv r1,r14                                      
 80055a4:	34 02 00 01 	mvi r2,1                                       
 80055a8:	38 63 35 40 	ori r3,r3,0x3540                               
 80055ac:	ba a0 20 00 	mv r4,r21                                      
 80055b0:	e0 00 00 f9 	bi 8005994 <_Heap_Walk+0x510>                  
 80055b4:	36 81 00 08 	addi r1,r20,8                                  
 80055b8:	ba 60 10 00 	mv r2,r19                                      
 80055bc:	fb ff ed 7b 	calli 8000ba8 <__umodsi3>                      
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
 80055c0:	44 2b 00 07 	be r1,r11,80055dc <_Heap_Walk+0x158>           
    !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
  ) {                                                                 
    (*printer)(                                                       
 80055c4:	78 03 08 01 	mvhi r3,0x801                                  
 80055c8:	b9 c0 08 00 	mv r1,r14                                      
 80055cc:	34 02 00 01 	mvi r2,1                                       
 80055d0:	38 63 35 64 	ori r3,r3,0x3564                               
 80055d4:	ba 80 20 00 	mv r4,r20                                      
 80055d8:	e0 00 00 ef 	bi 8005994 <_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;                 
 80055dc:	2a 82 00 04 	lw r2,(r20+4)                                  
 80055e0:	20 42 00 01 	andi r2,r2,0x1                                 
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( first_block ) ) {                         
 80055e4:	5c 41 00 07 	bne r2,r1,8005600 <_Heap_Walk+0x17c>           
    (*printer)(                                                       
 80055e8:	78 03 08 01 	mvhi r3,0x801                                  
 80055ec:	b9 c0 08 00 	mv r1,r14                                      
 80055f0:	34 02 00 01 	mvi r2,1                                       
 80055f4:	38 63 35 98 	ori r3,r3,0x3598                               
 80055f8:	d9 a0 00 00 	call r13                                       
 80055fc:	e0 00 00 40 	bi 80056fc <_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;                
 8005600:	2a cf 00 04 	lw r15,(r22+4)                                 
 8005604:	34 02 ff fe 	mvi r2,-2                                      
 8005608:	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);                 
 800560c:	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;                 
 8005610:	29 e2 00 04 	lw r2,(r15+4)                                  
 8005614:	20 42 00 01 	andi r2,r2,0x1                                 
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( _Heap_Is_free( last_block ) ) {                                
 8005618:	5c 41 00 06 	bne r2,r1,8005630 <_Heap_Walk+0x1ac>           
    (*printer)(                                                       
 800561c:	78 03 08 01 	mvhi r3,0x801                                  
 8005620:	b9 c0 08 00 	mv r1,r14                                      
 8005624:	34 02 00 01 	mvi r2,1                                       
 8005628:	38 63 35 c8 	ori r3,r3,0x35c8                               
 800562c:	e3 ff ff f3 	bi 80055f8 <_Heap_Walk+0x174>                  
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
 8005630:	45 f4 00 06 	be r15,r20,8005648 <_Heap_Walk+0x1c4>          
    _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block
  ) {                                                                 
    (*printer)(                                                       
 8005634:	78 03 08 01 	mvhi r3,0x801                                  
 8005638:	b9 c0 08 00 	mv r1,r14                                      
 800563c:	34 02 00 01 	mvi r2,1                                       
 8005640:	38 63 35 e0 	ori r3,r3,0x35e0                               
 8005644:	e3 ff ff ed 	bi 80055f8 <_Heap_Walk+0x174>                  
  int source,                                                         
  Heap_Walk_printer printer,                                          
  Heap_Control *heap                                                  
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
 8005648:	29 92 00 10 	lw r18,(r12+16)                                
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 800564c:	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 );
 8005650:	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;                
 8005654:	34 11 ff fe 	mvi r17,-2                                     
 8005658:	e0 00 00 2d 	bi 800570c <_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;             
 800565c:	29 83 00 20 	lw r3,(r12+32)                                 
 8005660:	34 01 00 00 	mvi r1,0                                       
 8005664:	54 6b 00 03 	bgu r3,r11,8005670 <_Heap_Walk+0x1ec>          
 8005668:	29 81 00 24 	lw r1,(r12+36)                                 
 800566c:	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 ) ) {              
 8005670:	5c 20 00 06 	bne r1,r0,8005688 <_Heap_Walk+0x204>           
      (*printer)(                                                     
 8005674:	78 03 08 01 	mvhi r3,0x801                                  
 8005678:	b9 c0 08 00 	mv r1,r14                                      
 800567c:	34 02 00 01 	mvi r2,1                                       
 8005680:	38 63 36 10 	ori r3,r3,0x3610                               
 8005684:	e0 00 00 14 	bi 80056d4 <_Heap_Walk+0x250>                  
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
 8005688:	35 61 00 08 	addi r1,r11,8                                  
 800568c:	ba 40 10 00 	mv r2,r18                                      
 8005690:	fb ff ed 46 	calli 8000ba8 <__umodsi3>                      
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if (                                                              
 8005694:	44 20 00 06 	be r1,r0,80056ac <_Heap_Walk+0x228>            
      !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
    ) {                                                               
      (*printer)(                                                     
 8005698:	78 03 08 01 	mvhi r3,0x801                                  
 800569c:	b9 c0 08 00 	mv r1,r14                                      
 80056a0:	34 02 00 01 	mvi r2,1                                       
 80056a4:	38 63 36 30 	ori r3,r3,0x3630                               
 80056a8:	e0 00 00 0b 	bi 80056d4 <_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;                
 80056ac:	29 63 00 04 	lw r3,(r11+4)                                  
 80056b0:	a2 23 18 00 	and r3,r17,r3                                  
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 80056b4:	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;                 
 80056b8:	28 63 00 04 	lw r3,(r3+4)                                   
 80056bc:	20 63 00 01 	andi r3,r3,0x1                                 
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
 80056c0:	44 61 00 07 	be r3,r1,80056dc <_Heap_Walk+0x258>            
      (*printer)(                                                     
 80056c4:	78 03 08 01 	mvhi r3,0x801                                  
 80056c8:	b9 c0 08 00 	mv r1,r14                                      
 80056cc:	34 02 00 01 	mvi r2,1                                       
 80056d0:	38 63 36 60 	ori r3,r3,0x3660                               
 80056d4:	b9 60 20 00 	mv r4,r11                                      
 80056d8:	e0 00 00 af 	bi 8005994 <_Heap_Walk+0x510>                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( free_block->prev != prev_block ) {                           
 80056dc:	29 65 00 0c 	lw r5,(r11+12)                                 
 80056e0:	44 b0 00 09 	be r5,r16,8005704 <_Heap_Walk+0x280>           
      (*printer)(                                                     
 80056e4:	78 03 08 01 	mvhi r3,0x801                                  
 80056e8:	b9 c0 08 00 	mv r1,r14                                      
 80056ec:	34 02 00 01 	mvi r2,1                                       
 80056f0:	38 63 36 7c 	ori r3,r3,0x367c                               
 80056f4:	b9 60 20 00 	mv r4,r11                                      
 80056f8:	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;                                                     
 80056fc:	34 03 00 00 	mvi r3,0                                       
 8005700:	e0 00 00 8c 	bi 8005930 <_Heap_Walk+0x4ac>                  
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    prev_block = free_block;                                          
    free_block = free_block->next;                                    
 8005704:	b9 60 80 00 	mv r16,r11                                     
 8005708:	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 ) {                            
 800570c:	5d 6c ff d4 	bne r11,r12,800565c <_Heap_Walk+0x1d8>         
 8005710:	e0 00 00 03 	bi 800571c <_Heap_Walk+0x298>                  
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
 8005714:	ba 20 78 00 	mv r15,r17                                     
 8005718:	e0 00 00 15 	bi 800576c <_Heap_Walk+0x2e8>                  
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
 800571c:	78 01 08 01 	mvhi r1,0x801                                  
 8005720:	38 21 38 2c 	ori r1,r1,0x382c                               
 8005724:	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)(                                                     
 8005728:	78 01 08 01 	mvhi r1,0x801                                  
 800572c:	38 21 38 14 	ori r1,r1,0x3814                               
 8005730:	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)(                                                         
 8005734:	78 01 08 01 	mvhi r1,0x801                                  
 8005738:	38 21 34 40 	ori r1,r1,0x3440                               
 800573c:	5b 81 00 5c 	sw (sp+92),r1                                  
 8005740:	78 01 08 01 	mvhi r1,0x801                                  
 8005744:	38 21 34 5c 	ori r1,r1,0x345c                               
 8005748:	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)" : "")          
 800574c:	78 17 08 01 	mvhi r23,0x801                                 
 8005750:	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)" : ""),         
 8005754:	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)(                                                         
 8005758:	5b 81 00 60 	sw (sp+96),r1                                  
 800575c:	3b 7b 37 70 	ori fp,fp,0x3770                               
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
 8005760:	3a f7 37 e0 	ori r23,r23,0x37e0                             
 8005764:	3b 39 34 6c 	ori r25,r25,0x346c                             
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
 8005768:	3b 18 34 50 	ori r24,r24,0x3450                             
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 800576c:	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;                
 8005770:	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;             
 8005774:	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;                
 8005778:	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);                 
 800577c:	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;             
 8005780:	34 06 00 00 	mvi r6,0                                       
 8005784:	54 91 00 03 	bgu r4,r17,8005790 <_Heap_Walk+0x30c>          <== NEVER TAKEN
 8005788:	29 86 00 24 	lw r6,(r12+36)                                 
 800578c:	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 ) ) {              
 8005790:	5c c0 00 06 	bne r6,r0,80057a8 <_Heap_Walk+0x324>           
      (*printer)(                                                     
 8005794:	78 03 08 01 	mvhi r3,0x801                                  
 8005798:	b9 c0 08 00 	mv r1,r14                                      
 800579c:	34 02 00 01 	mvi r2,1                                       
 80057a0:	38 63 36 b0 	ori r3,r3,0x36b0                               
 80057a4:	e0 00 00 1f 	bi 8005820 <_Heap_Walk+0x39c>                  
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
 80057a8:	ba 00 08 00 	mv r1,r16                                      
 80057ac:	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;               
 80057b0:	fd f6 58 00 	cmpne r11,r15,r22                              
 80057b4:	fb ff ec fd 	calli 8000ba8 <__umodsi3>                      
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
 80057b8:	44 20 00 09 	be r1,r0,80057dc <_Heap_Walk+0x358>            
 80057bc:	45 60 00 08 	be r11,r0,80057dc <_Heap_Walk+0x358>           
      (*printer)(                                                     
 80057c0:	78 03 08 01 	mvhi r3,0x801                                  
 80057c4:	b9 c0 08 00 	mv r1,r14                                      
 80057c8:	34 02 00 01 	mvi r2,1                                       
 80057cc:	38 63 36 e0 	ori r3,r3,0x36e0                               
 80057d0:	b9 e0 20 00 	mv r4,r15                                      
 80057d4:	ba 00 28 00 	mv r5,r16                                      
 80057d8:	e3 ff ff c8 	bi 80056f8 <_Heap_Walk+0x274>                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( block_size < min_block_size && is_not_last_block ) {         
 80057dc:	52 15 00 0b 	bgeu r16,r21,8005808 <_Heap_Walk+0x384>        
 80057e0:	45 60 00 0a 	be r11,r0,8005808 <_Heap_Walk+0x384>           <== NEVER TAKEN
      (*printer)(                                                     
 80057e4:	78 03 08 01 	mvhi r3,0x801                                  
 80057e8:	b9 c0 08 00 	mv r1,r14                                      
 80057ec:	34 02 00 01 	mvi r2,1                                       
 80057f0:	38 63 37 10 	ori r3,r3,0x3710                               
 80057f4:	b9 e0 20 00 	mv r4,r15                                      
 80057f8:	ba 00 28 00 	mv r5,r16                                      
 80057fc:	ba a0 30 00 	mv r6,r21                                      
 8005800:	d9 a0 00 00 	call r13                                       
 8005804:	e3 ff ff be 	bi 80056fc <_Heap_Walk+0x278>                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( next_block_begin <= block_begin && is_not_last_block ) {     
 8005808:	56 2f 00 09 	bgu r17,r15,800582c <_Heap_Walk+0x3a8>         
 800580c:	45 60 00 08 	be r11,r0,800582c <_Heap_Walk+0x3a8>           
      (*printer)(                                                     
 8005810:	78 03 08 01 	mvhi r3,0x801                                  
 8005814:	b9 c0 08 00 	mv r1,r14                                      
 8005818:	34 02 00 01 	mvi r2,1                                       
 800581c:	38 63 37 3c 	ori r3,r3,0x373c                               
 8005820:	b9 e0 20 00 	mv r4,r15                                      
 8005824:	ba 20 28 00 	mv r5,r17                                      
 8005828:	e3 ff ff b4 	bi 80056f8 <_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;                 
 800582c:	2a 24 00 04 	lw r4,(r17+4)                                  
 8005830:	22 52 00 01 	andi r18,r18,0x1                               
 8005834:	20 84 00 01 	andi r4,r4,0x1                                 
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
 8005838:	5c 80 00 2d 	bne r4,r0,80058ec <_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 ?                                 
 800583c:	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)(                                                         
 8005840:	29 85 00 08 	lw r5,(r12+8)                                  
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 8005844:	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)(                                                         
 8005848:	2b 87 00 5c 	lw r7,(sp+92)                                  
 800584c:	44 c5 00 04 	be r6,r5,800585c <_Heap_Walk+0x3d8>            
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
 8005850:	ba e0 38 00 	mv r7,r23                                      
 8005854:	5c cc 00 02 	bne r6,r12,800585c <_Heap_Walk+0x3d8>          
 8005858:	bb 00 38 00 	mv r7,r24                                      
    block->next,                                                      
    block->next == last_free_block ?                                  
 800585c:	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)(                                                         
 8005860:	2b 89 00 60 	lw r9,(sp+96)                                  
 8005864:	45 04 00 04 	be r8,r4,8005874 <_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)" : "")          
 8005868:	ba e0 48 00 	mv r9,r23                                      
 800586c:	5d 0c 00 02 	bne r8,r12,8005874 <_Heap_Walk+0x3f0>          
 8005870:	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)(                                                         
 8005874:	5b 89 00 04 	sw (sp+4),r9                                   
 8005878:	b9 c0 08 00 	mv r1,r14                                      
 800587c:	34 02 00 00 	mvi r2,0                                       
 8005880:	bb 60 18 00 	mv r3,fp                                       
 8005884:	b9 e0 20 00 	mv r4,r15                                      
 8005888:	ba 00 28 00 	mv r5,r16                                      
 800588c:	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 ) {                        
 8005890:	2a 26 00 00 	lw r6,(r17+0)                                  
 8005894:	46 06 00 0a 	be r16,r6,80058bc <_Heap_Walk+0x438>           
    (*printer)(                                                       
 8005898:	78 03 08 01 	mvhi r3,0x801                                  
 800589c:	b9 c0 08 00 	mv r1,r14                                      
 80058a0:	34 02 00 01 	mvi r2,1                                       
 80058a4:	38 63 37 a8 	ori r3,r3,0x37a8                               
 80058a8:	b9 e0 20 00 	mv r4,r15                                      
 80058ac:	ba 00 28 00 	mv r5,r16                                      
 80058b0:	ba 20 38 00 	mv r7,r17                                      
 80058b4:	d9 a0 00 00 	call r13                                       
 80058b8:	e3 ff ff 91 	bi 80056fc <_Heap_Walk+0x278>                  
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !prev_used ) {                                                 
 80058bc:	5e 40 00 06 	bne r18,r0,80058d4 <_Heap_Walk+0x450>          
    (*printer)(                                                       
 80058c0:	78 03 08 01 	mvhi r3,0x801                                  
 80058c4:	b9 c0 08 00 	mv r1,r14                                      
 80058c8:	34 02 00 01 	mvi r2,1                                       
 80058cc:	38 63 37 e4 	ori r3,r3,0x37e4                               
 80058d0:	e0 00 00 30 	bi 8005990 <_Heap_Walk+0x50c>                  
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
 80058d4:	29 85 00 08 	lw r5,(r12+8)                                  
 80058d8:	e0 00 00 03 	bi 80058e4 <_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 ) {                                      
 80058dc:	44 af 00 13 	be r5,r15,8005928 <_Heap_Walk+0x4a4>           
      return true;                                                    
    }                                                                 
    free_block = free_block->next;                                    
 80058e0:	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 ) {                            
 80058e4:	5c ac ff fe 	bne r5,r12,80058dc <_Heap_Walk+0x458>          
 80058e8:	e0 00 00 26 	bi 8005980 <_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) {                                           
 80058ec:	46 40 00 08 	be r18,r0,800590c <_Heap_Walk+0x488>           
      (*printer)(                                                     
 80058f0:	2b 83 00 58 	lw r3,(sp+88)                                  
 80058f4:	b9 c0 08 00 	mv r1,r14                                      
 80058f8:	34 02 00 00 	mvi r2,0                                       
 80058fc:	b9 e0 20 00 	mv r4,r15                                      
 8005900:	ba 00 28 00 	mv r5,r16                                      
 8005904:	d9 a0 00 00 	call r13                                       
 8005908:	e0 00 00 08 	bi 8005928 <_Heap_Walk+0x4a4>                  
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
 800590c:	2b 83 00 54 	lw r3,(sp+84)                                  
 8005910:	29 e6 00 00 	lw r6,(r15+0)                                  
 8005914:	b9 c0 08 00 	mv r1,r14                                      
 8005918:	34 02 00 00 	mvi r2,0                                       
 800591c:	b9 e0 20 00 	mv r4,r15                                      
 8005920:	ba 00 28 00 	mv r5,r16                                      
 8005924:	d9 a0 00 00 	call r13                                       
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
 8005928:	5e 91 ff 7b 	bne r20,r17,8005714 <_Heap_Walk+0x290>         
                                                                      
  return true;                                                        
 800592c:	34 03 00 01 	mvi r3,1                                       
}                                                                     
 8005930:	b8 60 08 00 	mv r1,r3                                       
 8005934:	2b 9d 00 10 	lw ra,(sp+16)                                  
 8005938:	2b 8b 00 50 	lw r11,(sp+80)                                 
 800593c:	2b 8c 00 4c 	lw r12,(sp+76)                                 
 8005940:	2b 8d 00 48 	lw r13,(sp+72)                                 
 8005944:	2b 8e 00 44 	lw r14,(sp+68)                                 
 8005948:	2b 8f 00 40 	lw r15,(sp+64)                                 
 800594c:	2b 90 00 3c 	lw r16,(sp+60)                                 
 8005950:	2b 91 00 38 	lw r17,(sp+56)                                 
 8005954:	2b 92 00 34 	lw r18,(sp+52)                                 
 8005958:	2b 93 00 30 	lw r19,(sp+48)                                 
 800595c:	2b 94 00 2c 	lw r20,(sp+44)                                 
 8005960:	2b 95 00 28 	lw r21,(sp+40)                                 
 8005964:	2b 96 00 24 	lw r22,(sp+36)                                 
 8005968:	2b 97 00 20 	lw r23,(sp+32)                                 
 800596c:	2b 98 00 1c 	lw r24,(sp+28)                                 
 8005970:	2b 99 00 18 	lw r25,(sp+24)                                 
 8005974:	2b 9b 00 14 	lw fp,(sp+20)                                  
 8005978:	37 9c 00 60 	addi sp,sp,96                                  
 800597c:	c3 a0 00 00 	ret                                            
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {                 
    (*printer)(                                                       
 8005980:	78 03 08 01 	mvhi r3,0x801                                  
 8005984:	b9 c0 08 00 	mv r1,r14                                      
 8005988:	34 02 00 01 	mvi r2,1                                       
 800598c:	38 63 38 54 	ori r3,r3,0x3854                               
 8005990:	b9 e0 20 00 	mv r4,r15                                      
 8005994:	d9 a0 00 00 	call r13                                       
 8005998:	e3 ff ff 59 	bi 80056fc <_Heap_Walk+0x278>                  
                                                                      

08003fb0 <_IO_Manager_initialization>: #include <rtems/score/wkspace.h> #include <string.h> void _IO_Manager_initialization(void) {
 8003fb0:	37 9c ff e8 	addi sp,sp,-24                                 
 8003fb4:	5b 8b 00 18 	sw (sp+24),r11                                 
 8003fb8:	5b 8c 00 14 	sw (sp+20),r12                                 
 8003fbc:	5b 8d 00 10 	sw (sp+16),r13                                 
 8003fc0:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8003fc4:	5b 8f 00 08 	sw (sp+8),r15                                  
 8003fc8:	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      = rtems_configuration_get_device_driver_table();  
 8003fcc:	78 01 08 01 	mvhi r1,0x801                                  
 8003fd0:	38 21 b2 0c 	ori r1,r1,0xb20c                               
  drivers_in_table  = rtems_configuration_get_number_of_device_drivers();
 8003fd4:	28 2d 00 38 	lw r13,(r1+56)                                 
  number_of_drivers = rtems_configuration_get_maximum_drivers();      
 8003fd8:	28 2b 00 34 	lw r11,(r1+52)                                 
  uint32_t                    index;                                  
  rtems_driver_address_table *driver_table;                           
  uint32_t                    drivers_in_table;                       
  uint32_t                    number_of_drivers;                      
                                                                      
  driver_table      = rtems_configuration_get_device_driver_table();  
 8003fdc:	28 2e 00 3c 	lw r14,(r1+60)                                 
                                                                      
  /*                                                                  
   *  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 )                        
 8003fe0:	51 ab 00 03 	bgeu r13,r11,8003fec <_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 ) {                      
 8003fe4:	5d 6d 00 0a 	bne r11,r13,800400c <_IO_Manager_initialization+0x5c><== ALWAYS TAKEN
 8003fe8:	e0 00 00 02 	bi 8003ff0 <_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 )                        
 8003fec:	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;                          
 8003ff0:	78 01 08 01 	mvhi r1,0x801                                  
 8003ff4:	38 21 db 34 	ori r1,r1,0xdb34                               
 8003ff8:	58 2e 00 00 	sw (r1+0),r14                                  
    _IO_Number_of_drivers = number_of_drivers;                        
 8003ffc:	78 01 08 01 	mvhi r1,0x801                                  
 8004000:	38 21 db 30 	ori r1,r1,0xdb30                               
 8004004:	58 2b 00 00 	sw (r1+0),r11                                  
    return;                                                           
 8004008:	e0 00 00 27 	bi 80040a4 <_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 )  
 800400c:	34 02 00 01 	mvi r2,1                                       
 8004010:	b9 60 08 00 	mv r1,r11                                      
 8004014:	f8 00 58 89 	calli 801a238 <__ashlsi3>                      
 8004018:	34 02 00 03 	mvi r2,3                                       
 800401c:	b4 2b 08 00 	add r1,r1,r11                                  
 8004020:	f8 00 58 86 	calli 801a238 <__ashlsi3>                      
 8004024:	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(                             
 8004028:	f8 00 0e 5c 	calli 8007998 <_Workspace_Allocate_or_fatal_error>
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
 800402c:	78 02 08 01 	mvhi r2,0x801                                  
 8004030:	38 42 db 30 	ori r2,r2,0xdb30                               
  /*                                                                  
   *  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 *)           
 8004034:	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;                          
 8004038:	58 4b 00 00 	sw (r2+0),r11                                  
                                                                      
  memset(                                                             
 800403c:	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 *)           
 8004040:	39 8c db 34 	ori r12,r12,0xdb34                             
      _Workspace_Allocate_or_fatal_error(                             
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
                                                                      
  memset(                                                             
 8004044:	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 *)           
 8004048:	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(                                                             
 800404c:	f8 00 21 2b 	calli 800c4f8 <memset>                         
    _IO_Driver_address_table, 0,                                      
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
 8004050:	34 03 00 00 	mvi r3,0                                       
 8004054:	34 04 00 00 	mvi r4,0                                       
 8004058:	e0 00 00 12 	bi 80040a0 <_IO_Manager_initialization+0xf0>   
    _IO_Driver_address_table[index] = driver_table[index];            
 800405c:	29 82 00 00 	lw r2,(r12+0)                                  
#include <rtems/score/thread.h>                                       
#include <rtems/score/wkspace.h>                                      
                                                                      
#include <string.h>                                                   
                                                                      
void _IO_Manager_initialization(void)                                 
 8004060:	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];            
 8004064:	28 29 00 00 	lw r9,(r1+0)                                   
 8004068:	28 28 00 04 	lw r8,(r1+4)                                   
 800406c:	28 27 00 08 	lw r7,(r1+8)                                   
 8004070:	28 26 00 0c 	lw r6,(r1+12)                                  
 8004074:	28 25 00 10 	lw r5,(r1+16)                                  
 8004078:	28 21 00 14 	lw r1,(r1+20)                                  
 800407c:	b4 43 10 00 	add r2,r2,r3                                   
 8004080:	58 49 00 00 	sw (r2+0),r9                                   
 8004084:	58 48 00 04 	sw (r2+4),r8                                   
 8004088:	58 47 00 08 	sw (r2+8),r7                                   
 800408c:	58 46 00 0c 	sw (r2+12),r6                                  
 8004090:	58 45 00 10 	sw (r2+16),r5                                  
 8004094:	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++ )              
 8004098:	34 84 00 01 	addi r4,r4,1                                   
 800409c:	34 63 00 18 	addi r3,r3,24                                  
 80040a0:	55 a4 ff ef 	bgu r13,r4,800405c <_IO_Manager_initialization+0xac>
    _IO_Driver_address_table[index] = driver_table[index];            
}                                                                     
 80040a4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80040a8:	2b 8b 00 18 	lw r11,(sp+24)                                 
 80040ac:	2b 8c 00 14 	lw r12,(sp+20)                                 
 80040b0:	2b 8d 00 10 	lw r13,(sp+16)                                 
 80040b4:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 80040b8:	2b 8f 00 08 	lw r15,(sp+8)                                  
 80040bc:	37 9c 00 18 	addi sp,sp,24                                  
 80040c0:	c3 a0 00 00 	ret                                            
                                                                      

08004f80 <_Objects_Allocate>: #endif Objects_Control *_Objects_Allocate( Objects_Information *information ) {
 8004f80:	37 9c ff ec 	addi sp,sp,-20                                 
 8004f84:	5b 8b 00 14 	sw (sp+20),r11                                 
 8004f88:	5b 8c 00 10 	sw (sp+16),r12                                 
 8004f8c:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8004f90:	5b 8e 00 08 	sw (sp+8),r14                                  
 8004f94:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004f98:	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 )                                       
 8004f9c:	28 21 00 18 	lw r1,(r1+24)                                  
    return NULL;                                                      
 8004fa0:	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 )                                       
 8004fa4:	44 20 00 1e 	be r1,r0,800501c <_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 );
 8004fa8:	35 6d 00 20 	addi r13,r11,32                                
 8004fac:	b9 a0 08 00 	mv r1,r13                                      
 8004fb0:	fb ff fd 03 	calli 80043bc <_Chain_Get>                     
 8004fb4:	b8 20 60 00 	mv r12,r1                                      
 8004fb8:	b8 20 70 00 	mv r14,r1                                      
                                                                      
  if ( information->auto_extend ) {                                   
 8004fbc:	41 61 00 12 	lbu r1,(r11+18)                                
 8004fc0:	44 20 00 17 	be r1,r0,800501c <_Objects_Allocate+0x9c>      
    /*                                                                
     *  If the list is empty then we are out of objects and need to   
     *  extend information base.                                      
     */                                                               
                                                                      
    if ( !the_object ) {                                              
 8004fc4:	5d 80 00 07 	bne r12,r0,8004fe0 <_Objects_Allocate+0x60>    
      _Objects_Extend_information( information );                     
 8004fc8:	b9 60 08 00 	mv r1,r11                                      
 8004fcc:	f8 00 00 1c 	calli 800503c <_Objects_Extend_information>    
      the_object =  (Objects_Control *) _Chain_Get( &information->Inactive );
 8004fd0:	b9 a0 08 00 	mv r1,r13                                      
 8004fd4:	fb ff fc fa 	calli 80043bc <_Chain_Get>                     
 8004fd8:	b8 20 60 00 	mv r12,r1                                      
    }                                                                 
                                                                      
    if ( the_object ) {                                               
 8004fdc:	44 2e 00 10 	be r1,r14,800501c <_Objects_Allocate+0x9c>     
      uint32_t   block;                                               
                                                                      
      block = (uint32_t) _Objects_Get_index( the_object->id ) -       
 8004fe0:	2d 82 00 0a 	lhu r2,(r12+10)                                
 8004fe4:	2d 61 00 0a 	lhu r1,(r11+10)                                
              _Objects_Get_index( information->minimum_id );          
      block /= information->allocation_size;                          
 8004fe8:	c8 41 08 00 	sub r1,r2,r1                                   
 8004fec:	2d 62 00 14 	lhu r2,(r11+20)                                
 8004ff0:	f8 00 55 6c 	calli 801a5a0 <__udivsi3>                      
                                                                      
      information->inactive_per_block[ block ]--;                     
 8004ff4:	34 02 00 02 	mvi r2,2                                       
 8004ff8:	f8 00 54 90 	calli 801a238 <__ashlsi3>                      
 8004ffc:	29 62 00 30 	lw r2,(r11+48)                                 
 8005000:	b4 41 08 00 	add r1,r2,r1                                   
 8005004:	28 22 00 00 	lw r2,(r1+0)                                   
 8005008:	34 42 ff ff 	addi r2,r2,-1                                  
 800500c:	58 22 00 00 	sw (r1+0),r2                                   
      information->inactive--;                                        
 8005010:	2d 61 00 2c 	lhu r1,(r11+44)                                
 8005014:	34 21 ff ff 	addi r1,r1,-1                                  
 8005018:	0d 61 00 2c 	sh (r11+44),r1                                 
    );                                                                
  }                                                                   
#endif                                                                
                                                                      
  return the_object;                                                  
}                                                                     
 800501c:	b9 80 08 00 	mv r1,r12                                      
 8005020:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005024:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8005028:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800502c:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8005030:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8005034:	37 9c 00 14 	addi sp,sp,20                                  
 8005038:	c3 a0 00 00 	ret                                            
                                                                      

08005470 <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint16_t the_class ) {
 8005470:	37 9c ff ec 	addi sp,sp,-20                                 
 8005474:	5b 8b 00 14 	sw (sp+20),r11                                 
 8005478:	5b 8c 00 10 	sw (sp+16),r12                                 
 800547c:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8005480:	5b 8e 00 08 	sw (sp+8),r14                                  
 8005484:	5b 9d 00 04 	sw (sp+4),ra                                   
 8005488:	20 4c ff ff 	andi r12,r2,0xffff                             
 800548c:	b8 20 70 00 	mv r14,r1                                      
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
    return NULL;                                                      
 8005490:	34 0b 00 00 	mvi r11,0                                      
)                                                                     
{                                                                     
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
 8005494:	45 80 00 16 	be r12,r0,80054ec <_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 );      
 8005498:	f8 00 11 fd 	calli 8009c8c <_Objects_API_maximum_class>     
  if ( the_class_api_maximum == 0 )                                   
 800549c:	44 20 00 14 	be r1,r0,80054ec <_Objects_Get_information+0x7c>
    return NULL;                                                      
                                                                      
  if ( the_class > (uint32_t) the_class_api_maximum )                 
 80054a0:	55 81 00 13 	bgu r12,r1,80054ec <_Objects_Get_information+0x7c>
    return NULL;                                                      
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
 80054a4:	78 0d 08 01 	mvhi r13,0x801                                 
 80054a8:	b9 c0 08 00 	mv r1,r14                                      
 80054ac:	34 02 00 02 	mvi r2,2                                       
 80054b0:	39 ad d8 7c 	ori r13,r13,0xd87c                             
 80054b4:	f8 00 53 61 	calli 801a238 <__ashlsi3>                      
 80054b8:	b5 a1 08 00 	add r1,r13,r1                                  
 80054bc:	28 2d 00 00 	lw r13,(r1+0)                                  
 80054c0:	45 a0 00 0b 	be r13,r0,80054ec <_Objects_Get_information+0x7c><== NEVER TAKEN
    return NULL;                                                      
                                                                      
  info = _Objects_Information_table[ the_api ][ the_class ];          
 80054c4:	b9 80 08 00 	mv r1,r12                                      
 80054c8:	34 02 00 02 	mvi r2,2                                       
 80054cc:	f8 00 53 5b 	calli 801a238 <__ashlsi3>                      
 80054d0:	b5 a1 08 00 	add r1,r13,r1                                  
 80054d4:	28 2b 00 00 	lw r11,(r1+0)                                  
  if ( !info )                                                        
 80054d8:	45 60 00 05 	be r11,r0,80054ec <_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 )                                         
 80054dc:	2d 61 00 10 	lhu r1,(r11+16)                                
      return NULL;                                                    
 80054e0:	7c 21 00 00 	cmpnei r1,r1,0                                 
 80054e4:	c8 01 08 00 	sub r1,r0,r1                                   
 80054e8:	a1 61 58 00 	and r11,r11,r1                                 
  #endif                                                              
                                                                      
  return info;                                                        
}                                                                     
 80054ec:	b9 60 08 00 	mv r1,r11                                      
 80054f0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80054f4:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80054f8:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80054fc:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8005500:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8005504:	37 9c 00 14 	addi sp,sp,20                                  
 8005508:	c3 a0 00 00 	ret                                            
                                                                      

08018840 <_Objects_Get_no_protection>: Objects_Control *_Objects_Get_no_protection( Objects_Information *information, Objects_Id id, Objects_Locations *location ) {
 8018840:	37 9c ff f4 	addi sp,sp,-12                                 
 8018844:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8018848:	5b 8c 00 08 	sw (sp+8),r12                                  
 801884c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8018850:	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;                           
 8018854:	28 21 00 08 	lw r1,(r1+8)                                   
Objects_Control *_Objects_Get_no_protection(                          
  Objects_Information *information,                                   
  Objects_Id           id,                                            
  Objects_Locations   *location                                       
)                                                                     
{                                                                     
 8018858:	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;                           
 801885c:	c8 41 08 00 	sub r1,r2,r1                                   
                                                                      
  if ( information->maximum >= index ) {                              
 8018860:	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;                           
 8018864:	34 21 00 01 	addi r1,r1,1                                   
                                                                      
  if ( information->maximum >= index ) {                              
 8018868:	54 22 00 09 	bgu r1,r2,801888c <_Objects_Get_no_protection+0x4c>
    if ( (the_object = information->local_table[ index ]) != NULL ) { 
 801886c:	28 8c 00 1c 	lw r12,(r4+28)                                 
 8018870:	34 02 00 02 	mvi r2,2                                       
 8018874:	fb ff d6 33 	calli 800e140 <__ashlsi3>                      
 8018878:	b5 81 08 00 	add r1,r12,r1                                  
 801887c:	28 21 00 00 	lw r1,(r1+0)                                   
 8018880:	44 20 00 03 	be r1,r0,801888c <_Objects_Get_no_protection+0x4c><== NEVER TAKEN
      *location = OBJECTS_LOCAL;                                      
 8018884:	59 60 00 00 	sw (r11+0),r0                                  
      return the_object;                                              
 8018888:	e0 00 00 04 	bi 8018898 <_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;                                          
 801888c:	34 01 00 01 	mvi r1,1                                       
 8018890:	59 61 00 00 	sw (r11+0),r1                                  
  return NULL;                                                        
 8018894:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 8018898:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801889c:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80188a0:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80188a4:	37 9c 00 0c 	addi sp,sp,12                                  
 80188a8:	c3 a0 00 00 	ret                                            
                                                                      

0800a404 <_Objects_Id_to_name>: Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( Objects_Id id, Objects_Name *name ) {
 800a404:	37 9c ff e8 	addi sp,sp,-24                                 
 800a408:	5b 8b 00 14 	sw (sp+20),r11                                 
 800a40c:	5b 8c 00 10 	sw (sp+16),r12                                 
 800a410:	5b 8d 00 0c 	sw (sp+12),r13                                 
 800a414:	5b 8e 00 08 	sw (sp+8),r14                                  
 800a418:	5b 9d 00 04 	sw (sp+4),ra                                   
 800a41c:	b8 40 70 00 	mv r14,r2                                      
                                                                      
  /*                                                                  
   *  Caller is trusted for name != NULL.                             
   */                                                                 
                                                                      
  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
 800a420:	b8 20 58 00 	mv r11,r1                                      
 800a424:	5c 20 00 05 	bne r1,r0,800a438 <_Objects_Id_to_name+0x34>   
 800a428:	78 01 08 03 	mvhi r1,0x803                                  
 800a42c:	38 21 03 80 	ori r1,r1,0x380                                
 800a430:	28 21 00 10 	lw r1,(r1+16)                                  
 800a434:	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);
 800a438:	34 02 00 18 	mvi r2,24                                      
 800a43c:	b9 60 08 00 	mv r1,r11                                      
 800a440:	f8 00 7b ee 	calli 80293f8 <__lshrsi3>                      
 800a444:	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 )                      
 800a448:	34 23 ff ff 	addi r3,r1,-1                                  
 800a44c:	34 02 00 02 	mvi r2,2                                       
                                                                      
  the_api = _Objects_Get_API( tmpId );                                
  if ( !_Objects_Is_api_valid( the_api ) )                            
    return OBJECTS_INVALID_ID;                                        
 800a450:	34 0d 00 03 	mvi r13,3                                      
 800a454:	54 62 00 12 	bgu r3,r2,800a49c <_Objects_Id_to_name+0x98>   
 800a458:	e0 00 00 19 	bi 800a4bc <_Objects_Id_to_name+0xb8>          
 */                                                                   
RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class(                     
  Objects_Id id                                                       
)                                                                     
{                                                                     
  return (uint32_t)                                                   
 800a45c:	34 02 00 1b 	mvi r2,27                                      
 800a460:	b9 60 08 00 	mv r1,r11                                      
 800a464:	f8 00 7b e5 	calli 80293f8 <__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 ];   
 800a468:	34 02 00 02 	mvi r2,2                                       
 800a46c:	f8 00 7b 95 	calli 80292c0 <__ashlsi3>                      
 800a470:	b5 81 08 00 	add r1,r12,r1                                  
 800a474:	28 21 00 00 	lw r1,(r1+0)                                   
  if ( !information )                                                 
 800a478:	44 20 00 09 	be r1,r0,800a49c <_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 ); 
 800a47c:	b9 60 10 00 	mv r2,r11                                      
 800a480:	37 83 00 18 	addi r3,sp,24                                  
 800a484:	fb ff ff ba 	calli 800a36c <_Objects_Get>                   
  if ( !the_object )                                                  
 800a488:	44 20 00 05 	be r1,r0,800a49c <_Objects_Id_to_name+0x98>    
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
 800a48c:	28 21 00 0c 	lw r1,(r1+12)                                  
  _Thread_Enable_dispatch();                                          
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
 800a490:	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;                                           
 800a494:	59 c1 00 00 	sw (r14+0),r1                                  
  _Thread_Enable_dispatch();                                          
 800a498:	f8 00 04 4e 	calli 800b5d0 <_Thread_Enable_dispatch>        
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
}                                                                     
 800a49c:	b9 a0 08 00 	mv r1,r13                                      
 800a4a0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a4a4:	2b 8b 00 14 	lw r11,(sp+20)                                 
 800a4a8:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800a4ac:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800a4b0:	2b 8e 00 08 	lw r14,(sp+8)                                  
 800a4b4:	37 9c 00 18 	addi sp,sp,24                                  
 800a4b8:	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 ] )                       
 800a4bc:	78 0c 08 03 	mvhi r12,0x803                                 
 800a4c0:	34 02 00 02 	mvi r2,2                                       
 800a4c4:	39 8c 01 54 	ori r12,r12,0x154                              
 800a4c8:	f8 00 7b 7e 	calli 80292c0 <__ashlsi3>                      
 800a4cc:	b5 81 08 00 	add r1,r12,r1                                  
 800a4d0:	28 2c 00 00 	lw r12,(r1+0)                                  
 800a4d4:	5d 80 ff e2 	bne r12,r0,800a45c <_Objects_Id_to_name+0x58>  
 800a4d8:	e3 ff ff f1 	bi 800a49c <_Objects_Id_to_name+0x98>          
                                                                      

08006310 <_RBTree_Extract_unprotected>: */ void _RBTree_Extract_unprotected( RBTree_Control *the_rbtree, RBTree_Node *the_node ) {
 8006310:	37 9c ff e4 	addi sp,sp,-28                                 
 8006314:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8006318:	5b 8c 00 18 	sw (sp+24),r12                                 
 800631c:	5b 8d 00 14 	sw (sp+20),r13                                 
 8006320:	5b 8e 00 10 	sw (sp+16),r14                                 
 8006324:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8006328:	5b 90 00 08 	sw (sp+8),r16                                  
 800632c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006330:	b8 20 70 00 	mv r14,r1                                      
 8006334:	b8 40 58 00 	mv r11,r2                                      
  RBTree_Node *leaf, *target;                                         
  RBTree_Color victim_color;                                          
  RBTree_Direction dir;                                               
                                                                      
  if (!the_node) return;                                              
 8006338:	44 40 00 53 	be r2,r0,8006484 <_RBTree_Extract_unprotected+0x174>
                                                                      
  /* check if min needs to be updated */                              
  if (the_node == the_rbtree->first[RBT_LEFT]) {                      
 800633c:	28 21 00 08 	lw r1,(r1+8)                                   
 8006340:	5c 41 00 05 	bne r2,r1,8006354 <_RBTree_Extract_unprotected+0x44>
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Successor_unprotected(      
  const RBTree_Node *node                                             
)                                                                     
{                                                                     
  return _RBTree_Next_unprotected( node, RBT_RIGHT );                 
 8006344:	b8 40 08 00 	mv r1,r2                                       
 8006348:	34 02 00 01 	mvi r2,1                                       
 800634c:	f8 00 01 36 	calli 8006824 <_RBTree_Next_unprotected>       
    RBTree_Node *next;                                                
    next = _RBTree_Successor_unprotected(the_node);                   
    the_rbtree->first[RBT_LEFT] = next;                               
 8006350:	59 c1 00 08 	sw (r14+8),r1                                  
  }                                                                   
                                                                      
  /* Check if max needs to be updated. min=max for 1 element trees so 
   * do not use else if here. */                                      
  if (the_node == the_rbtree->first[RBT_RIGHT]) {                     
 8006354:	29 c1 00 0c 	lw r1,(r14+12)                                 
 8006358:	5d 61 00 05 	bne r11,r1,800636c <_RBTree_Extract_unprotected+0x5c>
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Predecessor_unprotected(    
  const RBTree_Node *node                                             
)                                                                     
{                                                                     
  return _RBTree_Next_unprotected( node, RBT_LEFT );                  
 800635c:	b9 60 08 00 	mv r1,r11                                      
 8006360:	34 02 00 00 	mvi r2,0                                       
 8006364:	f8 00 01 30 	calli 8006824 <_RBTree_Next_unprotected>       
    RBTree_Node *previous;                                            
    previous = _RBTree_Predecessor_unprotected(the_node);             
    the_rbtree->first[RBT_RIGHT] = previous;                          
 8006368:	59 c1 00 0c 	sw (r14+12),r1                                 
   * either max in node->child[RBT_LEFT] or min in node->child[RBT_RIGHT],
   * and replace the_node with the target node. This maintains the binary
   * search tree property, but may violate the red-black properties.  
   */                                                                 
                                                                      
  if (the_node->child[RBT_LEFT] && the_node->child[RBT_RIGHT]) {      
 800636c:	29 6c 00 04 	lw r12,(r11+4)                                 
 8006370:	29 6d 00 08 	lw r13,(r11+8)                                 
 8006374:	45 80 00 2b 	be r12,r0,8006420 <_RBTree_Extract_unprotected+0x110>
 8006378:	5d a0 00 03 	bne r13,r0,8006384 <_RBTree_Extract_unprotected+0x74>
 800637c:	e0 00 00 2b 	bi 8006428 <_RBTree_Extract_unprotected+0x118> 
    target = the_node->child[RBT_LEFT]; /* find max in node->child[RBT_LEFT] */
    while (target->child[RBT_RIGHT]) target = target->child[RBT_RIGHT];
 8006380:	b8 20 60 00 	mv r12,r1                                      
 8006384:	29 81 00 08 	lw r1,(r12+8)                                  
 8006388:	5c 20 ff fe 	bne r1,r0,8006380 <_RBTree_Extract_unprotected+0x70>
     * target's position (target is the right child of target->parent)
     * when target vacates it. if there is no child, then target->parent
     * should become NULL. This may cause the coloring to be violated.
     * For now we store the color of the node being deleted in victim_color.
     */                                                               
    leaf = target->child[RBT_LEFT];                                   
 800638c:	29 8d 00 04 	lw r13,(r12+4)                                 
    if(leaf) {                                                        
 8006390:	45 a1 00 04 	be r13,r1,80063a0 <_RBTree_Extract_unprotected+0x90>
      leaf->parent = target->parent;                                  
 8006394:	29 81 00 00 	lw r1,(r12+0)                                  
 8006398:	59 a1 00 00 	sw (r13+0),r1                                  
 800639c:	e0 00 00 03 	bi 80063a8 <_RBTree_Extract_unprotected+0x98>  
    } else {                                                          
      /* fix the tree here if the child is a null leaf. */            
      _RBTree_Extract_validate_unprotected(target);                   
 80063a0:	b9 80 08 00 	mv r1,r12                                      
 80063a4:	fb ff ff 70 	calli 8006164 <_RBTree_Extract_validate_unprotected>
    }                                                                 
    victim_color = target->color;                                     
    dir = target != target->parent->child[0];                         
 80063a8:	29 90 00 00 	lw r16,(r12+0)                                 
    target->parent->child[dir] = leaf;                                
 80063ac:	34 02 00 02 	mvi r2,2                                       
      leaf->parent = target->parent;                                  
    } else {                                                          
      /* fix the tree here if the child is a null leaf. */            
      _RBTree_Extract_validate_unprotected(target);                   
    }                                                                 
    victim_color = target->color;                                     
 80063b0:	29 8f 00 0c 	lw r15,(r12+12)                                
    dir = target != target->parent->child[0];                         
 80063b4:	2a 01 00 04 	lw r1,(r16+4)                                  
    target->parent->child[dir] = leaf;                                
 80063b8:	fd 81 08 00 	cmpne r1,r12,r1                                
 80063bc:	fb ff ea 52 	calli 8000d04 <__ashlsi3>                      
 80063c0:	b6 01 08 00 	add r1,r16,r1                                  
                                                                      
    /* now replace the_node with target */                            
    dir = the_node != the_node->parent->child[0];                     
 80063c4:	29 70 00 00 	lw r16,(r11+0)                                 
      /* fix the tree here if the child is a null leaf. */            
      _RBTree_Extract_validate_unprotected(target);                   
    }                                                                 
    victim_color = target->color;                                     
    dir = target != target->parent->child[0];                         
    target->parent->child[dir] = leaf;                                
 80063c8:	58 2d 00 04 	sw (r1+4),r13                                  
                                                                      
    /* now replace the_node with target */                            
    dir = the_node != the_node->parent->child[0];                     
    the_node->parent->child[dir] = target;                            
 80063cc:	34 02 00 02 	mvi r2,2                                       
    victim_color = target->color;                                     
    dir = target != target->parent->child[0];                         
    target->parent->child[dir] = leaf;                                
                                                                      
    /* now replace the_node with target */                            
    dir = the_node != the_node->parent->child[0];                     
 80063d0:	2a 01 00 04 	lw r1,(r16+4)                                  
    the_node->parent->child[dir] = target;                            
 80063d4:	fd 61 08 00 	cmpne r1,r11,r1                                
 80063d8:	fb ff ea 4b 	calli 8000d04 <__ashlsi3>                      
 80063dc:	b6 01 08 00 	add r1,r16,r1                                  
 80063e0:	58 2c 00 04 	sw (r1+4),r12                                  
                                                                      
    /* set target's new children to the original node's children */   
    target->child[RBT_RIGHT] = the_node->child[RBT_RIGHT];            
 80063e4:	29 61 00 08 	lw r1,(r11+8)                                  
 80063e8:	59 81 00 08 	sw (r12+8),r1                                  
    if (the_node->child[RBT_RIGHT])                                   
 80063ec:	29 61 00 08 	lw r1,(r11+8)                                  
 80063f0:	44 20 00 02 	be r1,r0,80063f8 <_RBTree_Extract_unprotected+0xe8><== NEVER TAKEN
      the_node->child[RBT_RIGHT]->parent = target;                    
 80063f4:	58 2c 00 00 	sw (r1+0),r12                                  
    target->child[RBT_LEFT] = the_node->child[RBT_LEFT];              
 80063f8:	29 61 00 04 	lw r1,(r11+4)                                  
 80063fc:	59 81 00 04 	sw (r12+4),r1                                  
    if (the_node->child[RBT_LEFT])                                    
 8006400:	29 61 00 04 	lw r1,(r11+4)                                  
 8006404:	44 20 00 02 	be r1,r0,800640c <_RBTree_Extract_unprotected+0xfc>
      the_node->child[RBT_LEFT]->parent = target;                     
 8006408:	58 2c 00 00 	sw (r1+0),r12                                  
    /* finally, update the parent node and recolor. target has completely
     * replaced the_node, and target's child has moved up the tree if needed.
     * the_node is no longer part of the tree, although it has valid pointers
     * still.                                                         
     */                                                               
    target->parent = the_node->parent;                                
 800640c:	29 61 00 00 	lw r1,(r11+0)                                  
 8006410:	59 81 00 00 	sw (r12+0),r1                                  
    target->color = the_node->color;                                  
 8006414:	29 61 00 0c 	lw r1,(r11+12)                                 
 8006418:	59 81 00 0c 	sw (r12+12),r1                                 
 800641c:	e0 00 00 11 	bi 8006460 <_RBTree_Extract_unprotected+0x150> 
     * violated. We will fix it later.                                
     * For now we store the color of the node being deleted in victim_color.
     */                                                               
    leaf = the_node->child[RBT_LEFT] ?                                
              the_node->child[RBT_LEFT] : the_node->child[RBT_RIGHT]; 
    if( leaf ) {                                                      
 8006420:	5d ac 00 03 	bne r13,r12,800642c <_RBTree_Extract_unprotected+0x11c>
 8006424:	e0 00 00 05 	bi 8006438 <_RBTree_Extract_unprotected+0x128> 
   * either max in node->child[RBT_LEFT] or min in node->child[RBT_RIGHT],
   * and replace the_node with the target node. This maintains the binary
   * search tree property, but may violate the red-black properties.  
   */                                                                 
                                                                      
  if (the_node->child[RBT_LEFT] && the_node->child[RBT_RIGHT]) {      
 8006428:	b9 80 68 00 	mv r13,r12                                     
     * For now we store the color of the node being deleted in victim_color.
     */                                                               
    leaf = the_node->child[RBT_LEFT] ?                                
              the_node->child[RBT_LEFT] : the_node->child[RBT_RIGHT]; 
    if( leaf ) {                                                      
      leaf->parent = the_node->parent;                                
 800642c:	29 61 00 00 	lw r1,(r11+0)                                  
 8006430:	59 a1 00 00 	sw (r13+0),r1                                  
 8006434:	e0 00 00 03 	bi 8006440 <_RBTree_Extract_unprotected+0x130> 
    } else {                                                          
      /* fix the tree here if the child is a null leaf. */            
      _RBTree_Extract_validate_unprotected(the_node);                 
 8006438:	b9 60 08 00 	mv r1,r11                                      
 800643c:	fb ff ff 4a 	calli 8006164 <_RBTree_Extract_validate_unprotected>
    }                                                                 
    victim_color = the_node->color;                                   
                                                                      
    /* remove the_node from the tree */                               
    dir = the_node != the_node->parent->child[0];                     
 8006440:	29 6c 00 00 	lw r12,(r11+0)                                 
    the_node->parent->child[dir] = leaf;                              
 8006444:	34 02 00 02 	mvi r2,2                                       
      leaf->parent = the_node->parent;                                
    } else {                                                          
      /* fix the tree here if the child is a null leaf. */            
      _RBTree_Extract_validate_unprotected(the_node);                 
    }                                                                 
    victim_color = the_node->color;                                   
 8006448:	29 6f 00 0c 	lw r15,(r11+12)                                
                                                                      
    /* remove the_node from the tree */                               
    dir = the_node != the_node->parent->child[0];                     
 800644c:	29 81 00 04 	lw r1,(r12+4)                                  
    the_node->parent->child[dir] = leaf;                              
 8006450:	fd 61 08 00 	cmpne r1,r11,r1                                
 8006454:	fb ff ea 2c 	calli 8000d04 <__ashlsi3>                      
 8006458:	b5 81 08 00 	add r1,r12,r1                                  
 800645c:	58 2d 00 04 	sw (r1+4),r13                                  
  /* fix coloring. leaf has moved up the tree. The color of the deleted
   * node is in victim_color. There are two cases:                    
   *   1. Deleted a red node, its child must be black. Nothing must be done.
   *   2. Deleted a black node, its child must be red. Paint child black.
   */                                                                 
  if (victim_color == RBT_BLACK) { /* eliminate case 1 */             
 8006460:	5d e0 00 03 	bne r15,r0,800646c <_RBTree_Extract_unprotected+0x15c>
    if (leaf) {                                                       
 8006464:	45 af 00 02 	be r13,r15,800646c <_RBTree_Extract_unprotected+0x15c>
      leaf->color = RBT_BLACK; /* case 2 */                           
 8006468:	59 a0 00 0c 	sw (r13+12),r0                                 
                                                                      
  /* Wipe the_node */                                                 
  _RBTree_Set_off_rbtree(the_node);                                   
                                                                      
  /* set root to black, if it exists */                               
  if (the_rbtree->root) the_rbtree->root->color = RBT_BLACK;          
 800646c:	29 c1 00 04 	lw r1,(r14+4)                                  
 */                                                                   
RTEMS_INLINE_ROUTINE void _RBTree_Set_off_rbtree(                     
    RBTree_Node *node                                                 
    )                                                                 
{                                                                     
  node->parent = node->child[RBT_LEFT] = node->child[RBT_RIGHT] = NULL;
 8006470:	59 60 00 08 	sw (r11+8),r0                                  
 8006474:	59 60 00 04 	sw (r11+4),r0                                  
 8006478:	59 60 00 00 	sw (r11+0),r0                                  
 800647c:	44 20 00 02 	be r1,r0,8006484 <_RBTree_Extract_unprotected+0x174>
 8006480:	58 20 00 0c 	sw (r1+12),r0                                  
}                                                                     
 8006484:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006488:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 800648c:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8006490:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8006494:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8006498:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 800649c:	2b 90 00 08 	lw r16,(sp+8)                                  
 80064a0:	37 9c 00 1c 	addi sp,sp,28                                  
 80064a4:	c3 a0 00 00 	ret                                            
                                                                      

08006f44 <_RBTree_Initialize>: void *starting_address, size_t number_nodes, size_t node_size, bool is_unique ) {
 8006f44:	37 9c ff ec 	addi sp,sp,-20                                 
 8006f48:	5b 8b 00 14 	sw (sp+20),r11                                 
 8006f4c:	5b 8c 00 10 	sw (sp+16),r12                                 
 8006f50:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8006f54:	5b 8e 00 08 	sw (sp+8),r14                                  
 8006f58:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006f5c:	b8 20 58 00 	mv r11,r1                                      
 8006f60:	b8 80 68 00 	mv r13,r4                                      
 8006f64:	b8 a0 70 00 	mv r14,r5                                      
 8006f68:	20 c6 00 ff 	andi r6,r6,0xff                                
  size_t      count;                                                  
  RBTree_Node *next;                                                  
                                                                      
  /* TODO: Error message? */                                          
  if (!the_rbtree) return;                                            
 8006f6c:	44 20 00 0f 	be r1,r0,8006fa8 <_RBTree_Initialize+0x64>     <== NEVER TAKEN
    RBTree_Control          *the_rbtree,                              
    RBTree_Compare_function  compare_function,                        
    bool                     is_unique                                
    )                                                                 
{                                                                     
  the_rbtree->permanent_null   = NULL;                                
 8006f70:	58 20 00 00 	sw (r1+0),r0                                   
  the_rbtree->root             = NULL;                                
 8006f74:	58 20 00 04 	sw (r1+4),r0                                   
  the_rbtree->first[0]         = NULL;                                
 8006f78:	58 20 00 08 	sw (r1+8),r0                                   
  the_rbtree->first[1]         = NULL;                                
 8006f7c:	58 20 00 0c 	sw (r1+12),r0                                  
  the_rbtree->compare_function = compare_function;                    
 8006f80:	58 22 00 10 	sw (r1+16),r2                                  
  the_rbtree->is_unique        = is_unique;                           
 8006f84:	30 26 00 14 	sb (r1+20),r6                                  
                                                                      
  /* could do sanity checks here */                                   
  _RBTree_Initialize_empty(the_rbtree, compare_function, is_unique);  
                                                                      
  count = number_nodes;                                               
  next  = starting_address;                                           
 8006f88:	b8 60 60 00 	mv r12,r3                                      
  while ( count-- ) {                                                 
 8006f8c:	e0 00 00 06 	bi 8006fa4 <_RBTree_Initialize+0x60>           
    _RBTree_Insert_unprotected(the_rbtree, next);                     
 8006f90:	b9 80 10 00 	mv r2,r12                                      
 8006f94:	b9 60 08 00 	mv r1,r11                                      
 8006f98:	fb ff ff 22 	calli 8006c20 <_RBTree_Insert_unprotected>     
#include <rtems/system.h>                                             
#include <rtems/score/address.h>                                      
#include <rtems/score/rbtree.h>                                       
#include <rtems/score/isr.h>                                          
                                                                      
void _RBTree_Initialize(                                              
 8006f9c:	b5 8e 60 00 	add r12,r12,r14                                
 8006fa0:	35 ad ff ff 	addi r13,r13,-1                                
  /* could do sanity checks here */                                   
  _RBTree_Initialize_empty(the_rbtree, compare_function, is_unique);  
                                                                      
  count = number_nodes;                                               
  next  = starting_address;                                           
  while ( count-- ) {                                                 
 8006fa4:	5d a0 ff fb 	bne r13,r0,8006f90 <_RBTree_Initialize+0x4c>   
    _RBTree_Insert_unprotected(the_rbtree, next);                     
    next           = (RBTree_Node *)                                  
                        _Addresses_Add_offset( (void *) next, node_size );
  }                                                                   
}                                                                     
 8006fa8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006fac:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8006fb0:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8006fb4:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8006fb8:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8006fbc:	37 9c 00 14 	addi sp,sp,20                                  
 8006fc0:	c3 a0 00 00 	ret                                            
                                                                      

08006590 <_RBTree_Insert_unprotected>: */ RBTree_Node *_RBTree_Insert_unprotected( RBTree_Control *the_rbtree, RBTree_Node *the_node ) {
 8006590:	37 9c ff e8 	addi sp,sp,-24                                 
 8006594:	5b 8b 00 18 	sw (sp+24),r11                                 
 8006598:	5b 8c 00 14 	sw (sp+20),r12                                 
 800659c:	5b 8d 00 10 	sw (sp+16),r13                                 
 80065a0:	5b 8e 00 0c 	sw (sp+12),r14                                 
 80065a4:	5b 8f 00 08 	sw (sp+8),r15                                  
 80065a8:	5b 9d 00 04 	sw (sp+4),ra                                   
  if(!the_node) return (RBTree_Node*)-1;                              
 80065ac:	34 0d ff ff 	mvi r13,-1                                     
 */                                                                   
RBTree_Node *_RBTree_Insert_unprotected(                              
    RBTree_Control *the_rbtree,                                       
    RBTree_Node *the_node                                             
    )                                                                 
{                                                                     
 80065b0:	b8 20 60 00 	mv r12,r1                                      
 80065b4:	b8 40 58 00 	mv r11,r2                                      
  if(!the_node) return (RBTree_Node*)-1;                              
 80065b8:	44 40 00 5a 	be r2,r0,8006720 <_RBTree_Insert_unprotected+0x190>
                                                                      
  RBTree_Node *iter_node = the_rbtree->root;                          
 80065bc:	28 2d 00 04 	lw r13,(r1+4)                                  
  int compare_result;                                                 
                                                                      
  if (!iter_node) { /* special case: first node inserted */           
 80065c0:	b9 a0 78 00 	mv r15,r13                                     
 80065c4:	5d a0 00 2d 	bne r13,r0,8006678 <_RBTree_Insert_unprotected+0xe8>
    the_node->color = RBT_BLACK;                                      
 80065c8:	58 40 00 0c 	sw (r2+12),r0                                  
    the_rbtree->root = the_node;                                      
 80065cc:	59 82 00 04 	sw (r12+4),r2                                  
    the_rbtree->first[0] = the_rbtree->first[1] = the_node;           
 80065d0:	59 82 00 0c 	sw (r12+12),r2                                 
 80065d4:	59 82 00 08 	sw (r12+8),r2                                  
    the_node->parent = (RBTree_Node *) the_rbtree;                    
 80065d8:	59 61 00 00 	sw (r11+0),r1                                  
    the_node->child[RBT_LEFT] = the_node->child[RBT_RIGHT] = NULL;    
 80065dc:	58 40 00 08 	sw (r2+8),r0                                   
 80065e0:	58 40 00 04 	sw (r2+4),r0                                   
 80065e4:	e0 00 00 4f 	bi 8006720 <_RBTree_Insert_unprotected+0x190>  
  } else {                                                            
    /* typical binary search tree insert, descend tree to leaf and insert */
    while (iter_node) {                                               
      compare_result = the_rbtree->compare_function(the_node, iter_node);
      if ( the_rbtree->is_unique && _RBTree_Is_equal( compare_result ) )
 80065e8:	44 20 00 4e 	be r1,r0,8006720 <_RBTree_Insert_unprotected+0x190>
        return iter_node;                                             
      RBTree_Direction dir = !_RBTree_Is_lesser( compare_result );    
 80065ec:	34 02 00 1f 	mvi r2,31                                      
 80065f0:	a4 20 08 00 	not r1,r1                                      
 80065f4:	fb ff e9 eb 	calli 8000da0 <__lshrsi3>                      
      if (!iter_node->child[dir]) {                                   
 80065f8:	34 02 00 02 	mvi r2,2                                       
    /* typical binary search tree insert, descend tree to leaf and insert */
    while (iter_node) {                                               
      compare_result = the_rbtree->compare_function(the_node, iter_node);
      if ( the_rbtree->is_unique && _RBTree_Is_equal( compare_result ) )
        return iter_node;                                             
      RBTree_Direction dir = !_RBTree_Is_lesser( compare_result );    
 80065fc:	b8 20 70 00 	mv r14,r1                                      
      if (!iter_node->child[dir]) {                                   
 8006600:	fb ff e9 c1 	calli 8000d04 <__ashlsi3>                      
 8006604:	b5 a1 08 00 	add r1,r13,r1                                  
 8006608:	28 2d 00 04 	lw r13,(r1+4)                                  
 800660c:	34 22 00 04 	addi r2,r1,4                                   
 8006610:	5d a0 00 19 	bne r13,r0,8006674 <_RBTree_Insert_unprotected+0xe4>
        the_node->child[RBT_LEFT] = the_node->child[RBT_RIGHT] = NULL;
 8006614:	59 60 00 08 	sw (r11+8),r0                                  
 8006618:	59 60 00 04 	sw (r11+4),r0                                  
        the_node->color = RBT_RED;                                    
 800661c:	34 01 00 01 	mvi r1,1                                       
 8006620:	59 61 00 0c 	sw (r11+12),r1                                 
        iter_node->child[dir] = the_node;                             
 8006624:	58 4b 00 00 	sw (r2+0),r11                                  
        the_node->parent = iter_node;                                 
 8006628:	59 6f 00 00 	sw (r11+0),r15                                 
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_First(                      
  const RBTree_Control *the_rbtree,                                   
  RBTree_Direction dir                                                
)                                                                     
{                                                                     
  return the_rbtree->first[dir];                                      
 800662c:	34 02 00 02 	mvi r2,2                                       
 8006630:	35 c1 00 02 	addi r1,r14,2                                  
 8006634:	fb ff e9 b4 	calli 8000d04 <__ashlsi3>                      
 8006638:	b5 81 10 00 	add r2,r12,r1                                  
        /* update min/max */                                          
        compare_result = the_rbtree->compare_function(                
 800663c:	29 83 00 10 	lw r3,(r12+16)                                 
 8006640:	28 42 00 00 	lw r2,(r2+0)                                   
 8006644:	b9 60 08 00 	mv r1,r11                                      
 8006648:	d8 60 00 00 	call r3                                        
            the_node,                                                 
            _RBTree_First(the_rbtree, dir)                            
        );                                                            
        if ( (!dir && _RBTree_Is_lesser(compare_result)) ||           
 800664c:	5d cd 00 03 	bne r14,r13,8006658 <_RBTree_Insert_unprotected+0xc8>
 8006650:	49 a1 00 03 	bg r13,r1,800665c <_RBTree_Insert_unprotected+0xcc>
 8006654:	e0 00 00 2b 	bi 8006700 <_RBTree_Insert_unprotected+0x170>  
              (dir && _RBTree_Is_greater(compare_result)) ) {         
 8006658:	4c 01 00 2a 	bge r0,r1,8006700 <_RBTree_Insert_unprotected+0x170>
          the_rbtree->first[dir] = the_node;                          
 800665c:	35 c1 00 02 	addi r1,r14,2                                  
 8006660:	34 02 00 02 	mvi r2,2                                       
 8006664:	fb ff e9 a8 	calli 8000d04 <__ashlsi3>                      
 8006668:	b5 81 08 00 	add r1,r12,r1                                  
 800666c:	58 2b 00 00 	sw (r1+0),r11                                  
 8006670:	e0 00 00 24 	bi 8006700 <_RBTree_Insert_unprotected+0x170>  
    while (iter_node) {                                               
      compare_result = the_rbtree->compare_function(the_node, iter_node);
      if ( the_rbtree->is_unique && _RBTree_Is_equal( compare_result ) )
        return iter_node;                                             
      RBTree_Direction dir = !_RBTree_Is_lesser( compare_result );    
      if (!iter_node->child[dir]) {                                   
 8006674:	b9 a0 78 00 	mv r15,r13                                     
    the_node->parent = (RBTree_Node *) the_rbtree;                    
    the_node->child[RBT_LEFT] = the_node->child[RBT_RIGHT] = NULL;    
  } else {                                                            
    /* typical binary search tree insert, descend tree to leaf and insert */
    while (iter_node) {                                               
      compare_result = the_rbtree->compare_function(the_node, iter_node);
 8006678:	29 83 00 10 	lw r3,(r12+16)                                 
 800667c:	b9 a0 10 00 	mv r2,r13                                      
 8006680:	b9 60 08 00 	mv r1,r11                                      
 8006684:	d8 60 00 00 	call r3                                        
      if ( the_rbtree->is_unique && _RBTree_Is_equal( compare_result ) )
 8006688:	41 82 00 14 	lbu r2,(r12+20)                                
 800668c:	5c 40 ff d7 	bne r2,r0,80065e8 <_RBTree_Insert_unprotected+0x58>
 8006690:	e3 ff ff d7 	bi 80065ec <_RBTree_Insert_unprotected+0x5c>   
)                                                                     
{                                                                     
  if(!the_node) return NULL;                                          
  if(!(the_node->parent)) return NULL;                                
  if(!(the_node->parent->parent)) return NULL;                        
  if(!(the_node->parent->parent->parent)) return NULL;                
 8006694:	29 82 00 00 	lw r2,(r12+0)                                  
 8006698:	44 40 00 2b 	be r2,r0,8006744 <_RBTree_Insert_unprotected+0x1b4><== NEVER TAKEN
{                                                                     
  if(!the_node) return NULL;                                          
  if(!(the_node->parent)) return NULL;                                
  if(!(the_node->parent->parent)) return NULL;                        
                                                                      
  if(the_node == the_node->parent->child[RBT_LEFT])                   
 800669c:	29 82 00 04 	lw r2,(r12+4)                                  
 80066a0:	5c 22 00 02 	bne r1,r2,80066a8 <_RBTree_Insert_unprotected+0x118>
    return the_node->parent->child[RBT_RIGHT];                        
 80066a4:	29 82 00 08 	lw r2,(r12+8)                                  
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RBTree_Is_red(                             
    const RBTree_Node *the_node                                       
    )                                                                 
{                                                                     
  return (the_node && the_node->color == RBT_RED);                    
 80066a8:	44 40 00 27 	be r2,r0,8006744 <_RBTree_Insert_unprotected+0x1b4>
 80066ac:	28 43 00 0c 	lw r3,(r2+12)                                  
 80066b0:	5c 6e 00 25 	bne r3,r14,8006744 <_RBTree_Insert_unprotected+0x1b4>
    u = _RBTree_Parent_sibling(the_node);                             
    g = the_node->parent->parent;                                     
                                                                      
    /* if uncle is red, repaint uncle/parent black and grandparent red */
    if(_RBTree_Is_red(u)) {                                           
      the_node->parent->color = RBT_BLACK;                            
 80066b4:	58 20 00 0c 	sw (r1+12),r0                                  
      u->color = RBT_BLACK;                                           
 80066b8:	58 40 00 0c 	sw (r2+12),r0                                  
      g->color = RBT_RED;                                             
 80066bc:	59 8e 00 0c 	sw (r12+12),r14                                
 80066c0:	b9 80 58 00 	mv r11,r12                                     
 80066c4:	e0 00 00 10 	bi 8006704 <_RBTree_Insert_unprotected+0x174>  
      RBTree_Direction dir = the_node != the_node->parent->child[0];  
      RBTree_Direction pdir = the_node->parent != g->child[0];        
                                                                      
      /* ensure node is on the same branch direction as parent */     
      if (dir != pdir) {                                              
        _RBTree_Rotate(the_node->parent, pdir);                       
 80066c8:	b9 e0 10 00 	mv r2,r15                                      
 80066cc:	fb ff ff 84 	calli 80064dc <_RBTree_Rotate>                 
        the_node = the_node->child[pdir];                             
 80066d0:	b9 e0 08 00 	mv r1,r15                                      
 80066d4:	34 02 00 02 	mvi r2,2                                       
 80066d8:	fb ff e9 8b 	calli 8000d04 <__ashlsi3>                      
 80066dc:	b5 61 08 00 	add r1,r11,r1                                  
 80066e0:	28 2b 00 04 	lw r11,(r1+4)                                  
      }                                                               
      the_node->parent->color = RBT_BLACK;                            
 80066e4:	29 61 00 00 	lw r1,(r11+0)                                  
      g->color = RBT_RED;                                             
                                                                      
      /* now rotate grandparent in the other branch direction (toward uncle) */
      _RBTree_Rotate(g, (1-pdir));                                    
 80066e8:	c9 cf 10 00 	sub r2,r14,r15                                 
      /* ensure node is on the same branch direction as parent */     
      if (dir != pdir) {                                              
        _RBTree_Rotate(the_node->parent, pdir);                       
        the_node = the_node->child[pdir];                             
      }                                                               
      the_node->parent->color = RBT_BLACK;                            
 80066ec:	58 20 00 0c 	sw (r1+12),r0                                  
      g->color = RBT_RED;                                             
 80066f0:	59 8e 00 0c 	sw (r12+12),r14                                
                                                                      
      /* now rotate grandparent in the other branch direction (toward uncle) */
      _RBTree_Rotate(g, (1-pdir));                                    
 80066f4:	b9 80 08 00 	mv r1,r12                                      
 80066f8:	fb ff ff 79 	calli 80064dc <_RBTree_Rotate>                 
 80066fc:	e0 00 00 02 	bi 8006704 <_RBTree_Insert_unprotected+0x174>  
 8006700:	34 0e 00 01 	mvi r14,1                                      
                                                                      
  _ISR_Disable( level );                                              
  return_node = _RBTree_Insert_unprotected( tree, node );             
  _ISR_Enable( level );                                               
  return return_node;                                                 
}                                                                     
 8006704:	29 61 00 00 	lw r1,(r11+0)                                  
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Parent(                     
  const RBTree_Node *the_node                                         
)                                                                     
{                                                                     
  if (!the_node->parent->parent) return NULL;                         
 8006708:	28 2c 00 00 	lw r12,(r1+0)                                  
 800670c:	45 80 00 04 	be r12,r0,800671c <_RBTree_Insert_unprotected+0x18c>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RBTree_Is_red(                             
    const RBTree_Node *the_node                                       
    )                                                                 
{                                                                     
  return (the_node && the_node->color == RBT_RED);                    
 8006710:	28 22 00 0c 	lw r2,(r1+12)                                  
 8006714:	5c 4e 00 03 	bne r2,r14,8006720 <_RBTree_Insert_unprotected+0x190>
 8006718:	e3 ff ff df 	bi 8006694 <_RBTree_Insert_unprotected+0x104>  
                                                                      
      /* now rotate grandparent in the other branch direction (toward uncle) */
      _RBTree_Rotate(g, (1-pdir));                                    
    }                                                                 
  }                                                                   
  if(!the_node->parent->parent) the_node->color = RBT_BLACK;          
 800671c:	59 60 00 0c 	sw (r11+12),r0                                 
                                                                      
    /* verify red-black properties */                                 
    _RBTree_Validate_insert_unprotected(the_node);                    
  }                                                                   
  return (RBTree_Node*)0;                                             
}                                                                     
 8006720:	b9 a0 08 00 	mv r1,r13                                      
 8006724:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006728:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800672c:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8006730:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8006734:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8006738:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800673c:	37 9c 00 18 	addi sp,sp,24                                  
 8006740:	c3 a0 00 00 	ret                                            
      u->color = RBT_BLACK;                                           
      g->color = RBT_RED;                                             
      the_node = g;                                                   
    } else { /* if uncle is black */                                  
      RBTree_Direction dir = the_node != the_node->parent->child[0];  
      RBTree_Direction pdir = the_node->parent != g->child[0];        
 8006744:	29 8f 00 04 	lw r15,(r12+4)                                 
      the_node->parent->color = RBT_BLACK;                            
      u->color = RBT_BLACK;                                           
      g->color = RBT_RED;                                             
      the_node = g;                                                   
    } else { /* if uncle is black */                                  
      RBTree_Direction dir = the_node != the_node->parent->child[0];  
 8006748:	28 22 00 04 	lw r2,(r1+4)                                   
      RBTree_Direction pdir = the_node->parent != g->child[0];        
 800674c:	fc 2f 78 00 	cmpne r15,r1,r15                               
      the_node->parent->color = RBT_BLACK;                            
      u->color = RBT_BLACK;                                           
      g->color = RBT_RED;                                             
      the_node = g;                                                   
    } else { /* if uncle is black */                                  
      RBTree_Direction dir = the_node != the_node->parent->child[0];  
 8006750:	fd 62 10 00 	cmpne r2,r11,r2                                
      RBTree_Direction pdir = the_node->parent != g->child[0];        
                                                                      
      /* ensure node is on the same branch direction as parent */     
      if (dir != pdir) {                                              
 8006754:	5c 4f ff dd 	bne r2,r15,80066c8 <_RBTree_Insert_unprotected+0x138>
 8006758:	e3 ff ff e3 	bi 80066e4 <_RBTree_Insert_unprotected+0x154>  
                                                                      

08006790 <_RBTree_Iterate_unprotected>: const RBTree_Control *rbtree, RBTree_Direction dir, RBTree_Visitor visitor, void *visitor_arg ) {
 8006790:	37 9c ff e8 	addi sp,sp,-24                                 
 8006794:	5b 8b 00 18 	sw (sp+24),r11                                 
 8006798:	5b 8c 00 14 	sw (sp+20),r12                                 
 800679c:	5b 8d 00 10 	sw (sp+16),r13                                 
 80067a0:	5b 8e 00 0c 	sw (sp+12),r14                                 
 80067a4:	5b 8f 00 08 	sw (sp+8),r15                                  
 80067a8:	5b 9d 00 04 	sw (sp+4),ra                                   
 80067ac:	b8 40 60 00 	mv r12,r2                                      
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Direction _RBTree_Opposite_direction(     
  RBTree_Direction the_dir                                            
)                                                                     
{                                                                     
  return (RBTree_Direction) !((int) the_dir);                         
 80067b0:	64 42 00 00 	cmpei r2,r2,0                                  
 80067b4:	b8 20 58 00 	mv r11,r1                                      
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_First(                      
  const RBTree_Control *the_rbtree,                                   
  RBTree_Direction dir                                                
)                                                                     
{                                                                     
  return the_rbtree->first[dir];                                      
 80067b8:	34 41 00 02 	addi r1,r2,2                                   
 80067bc:	34 02 00 02 	mvi r2,2                                       
 80067c0:	b8 60 70 00 	mv r14,r3                                      
 80067c4:	b8 80 68 00 	mv r13,r4                                      
 80067c8:	fb ff e9 4f 	calli 8000d04 <__ashlsi3>                      
 80067cc:	b5 61 08 00 	add r1,r11,r1                                  
 80067d0:	28 2b 00 00 	lw r11,(r1+0)                                  
 80067d4:	e0 00 00 0b 	bi 8006800 <_RBTree_Iterate_unprotected+0x70>  
  RBTree_Direction opp_dir = _RBTree_Opposite_direction( dir );       
  const RBTree_Node *current = _RBTree_First( rbtree, opp_dir );      
  bool stop = false;                                                  
                                                                      
  while ( !stop && current != NULL ) {                                
    stop = (*visitor)( current, dir, visitor_arg );                   
 80067d8:	b9 60 08 00 	mv r1,r11                                      
 80067dc:	b9 80 10 00 	mv r2,r12                                      
 80067e0:	b9 a0 18 00 	mv r3,r13                                      
 80067e4:	d9 c0 00 00 	call r14                                       
 80067e8:	b8 20 78 00 	mv r15,r1                                      
                                                                      
    current = _RBTree_Next_unprotected( current, dir );               
 80067ec:	b9 80 10 00 	mv r2,r12                                      
 80067f0:	b9 60 08 00 	mv r1,r11                                      
 80067f4:	f8 00 00 0c 	calli 8006824 <_RBTree_Next_unprotected>       
 80067f8:	b8 20 58 00 	mv r11,r1                                      
{                                                                     
  RBTree_Direction opp_dir = _RBTree_Opposite_direction( dir );       
  const RBTree_Node *current = _RBTree_First( rbtree, opp_dir );      
  bool stop = false;                                                  
                                                                      
  while ( !stop && current != NULL ) {                                
 80067fc:	5d e0 00 02 	bne r15,r0,8006804 <_RBTree_Iterate_unprotected+0x74><== NEVER TAKEN
 8006800:	5d 60 ff f6 	bne r11,r0,80067d8 <_RBTree_Iterate_unprotected+0x48>
    stop = (*visitor)( current, dir, visitor_arg );                   
                                                                      
    current = _RBTree_Next_unprotected( current, dir );               
  }                                                                   
}                                                                     
 8006804:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006808:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800680c:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8006810:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8006814:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8006818:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800681c:	37 9c 00 18 	addi sp,sp,24                                  
 8006820:	c3 a0 00 00 	ret                                            
                                                                      

08006084 <_RBTree_Sibling>: * exists, and NULL if not. */ RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Sibling( const RBTree_Node *the_node ) {
 8006084:	b8 20 18 00 	mv r3,r1                                       
  if(!the_node) return NULL;                                          
 8006088:	34 01 00 00 	mvi r1,0                                       
 800608c:	44 60 00 08 	be r3,r0,80060ac <_RBTree_Sibling+0x28>        
  if(!(the_node->parent)) return NULL;                                
 8006090:	28 62 00 00 	lw r2,(r3+0)                                   
 8006094:	44 40 00 06 	be r2,r0,80060ac <_RBTree_Sibling+0x28>        <== NEVER TAKEN
  if(!(the_node->parent->parent)) return NULL;                        
 8006098:	28 44 00 00 	lw r4,(r2+0)                                   
 800609c:	44 80 00 04 	be r4,r0,80060ac <_RBTree_Sibling+0x28>        
                                                                      
  if(the_node == the_node->parent->child[RBT_LEFT])                   
 80060a0:	28 41 00 04 	lw r1,(r2+4)                                   
 80060a4:	5c 61 00 02 	bne r3,r1,80060ac <_RBTree_Sibling+0x28>       
    return the_node->parent->child[RBT_RIGHT];                        
 80060a8:	28 41 00 08 	lw r1,(r2+8)                                   
  else                                                                
    return the_node->parent->child[RBT_LEFT];                         
}                                                                     
 80060ac:	c3 a0 00 00 	ret                                            
                                                                      

08004afc <_RTEMS_signal_Post_switch_hook>: #include <rtems/score/thread.h> #include <rtems/score/apiext.h> #include <rtems/rtems/tasks.h> static void _RTEMS_signal_Post_switch_hook( Thread_Control *executing ) {
 8004afc:	37 9c ff f0 	addi sp,sp,-16                                 
 8004b00:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8004b04:	5b 8c 00 08 	sw (sp+8),r12                                  
 8004b08:	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 ];                
 8004b0c:	28 2b 01 14 	lw r11,(r1+276)                                
  if ( !api )                                                         
 8004b10:	45 60 00 1a 	be r11,r0,8004b78 <_RTEMS_signal_Post_switch_hook+0x7c><== NEVER TAKEN
   *  Signal Processing                                               
   */                                                                 
                                                                      
  asr = &api->Signal;                                                 
                                                                      
  _ISR_Disable( level );                                              
 8004b14:	90 00 08 00 	rcsr r1,IE                                     
 8004b18:	34 02 ff fe 	mvi r2,-2                                      
 8004b1c:	a0 22 10 00 	and r2,r1,r2                                   
 8004b20:	d0 02 00 00 	wcsr IE,r2                                     
    signal_set = asr->signals_posted;                                 
 8004b24:	29 6c 00 14 	lw r12,(r11+20)                                
    asr->signals_posted = 0;                                          
 8004b28:	59 60 00 14 	sw (r11+20),r0                                 
  _ISR_Enable( level );                                               
 8004b2c:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
 8004b30:	45 80 00 12 	be r12,r0,8004b78 <_RTEMS_signal_Post_switch_hook+0x7c>
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
 8004b34:	29 61 00 1c 	lw r1,(r11+28)                                 
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
 8004b38:	37 83 00 10 	addi r3,sp,16                                  
 8004b3c:	38 02 ff ff 	mvu r2,0xffff                                  
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
 8004b40:	34 21 00 01 	addi r1,r1,1                                   
 8004b44:	59 61 00 1c 	sw (r11+28),r1                                 
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
 8004b48:	29 61 00 10 	lw r1,(r11+16)                                 
 8004b4c:	f8 00 01 27 	calli 8004fe8 <rtems_task_mode>                
                                                                      
  (*asr->handler)( signal_set );                                      
 8004b50:	29 62 00 0c 	lw r2,(r11+12)                                 
 8004b54:	b9 80 08 00 	mv r1,r12                                      
 8004b58:	d8 40 00 00 	call r2                                        
                                                                      
  asr->nest_level -= 1;                                               
 8004b5c:	29 61 00 1c 	lw r1,(r11+28)                                 
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
 8004b60:	38 02 ff ff 	mvu r2,0xffff                                  
 8004b64:	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;                                               
 8004b68:	34 21 ff ff 	addi r1,r1,-1                                  
 8004b6c:	59 61 00 1c 	sw (r11+28),r1                                 
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
 8004b70:	2b 81 00 10 	lw r1,(sp+16)                                  
 8004b74:	f8 00 01 1d 	calli 8004fe8 <rtems_task_mode>                
                                                                      
}                                                                     
 8004b78:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004b7c:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8004b80:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8004b84:	37 9c 00 10 	addi sp,sp,16                                  
 8004b88:	c3 a0 00 00 	ret                                            
                                                                      

08033188 <_Rate_monotonic_Get_status>: bool _Rate_monotonic_Get_status( Rate_monotonic_Control *the_period, Rate_monotonic_Period_time_t *wall_since_last_period, Thread_CPU_usage_t *cpu_since_last_period ) {
 8033188:	37 9c ff e4 	addi sp,sp,-28                                 
 803318c:	5b 8b 00 14 	sw (sp+20),r11                                 
 8033190:	5b 8c 00 10 	sw (sp+16),r12                                 
 8033194:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8033198:	5b 8e 00 08 	sw (sp+8),r14                                  
 803319c:	5b 9d 00 04 	sw (sp+4),ra                                   
 80331a0:	b8 40 70 00 	mv r14,r2                                      
 */                                                                   
static inline void _TOD_Get_uptime(                                   
  Timestamp_Control *time                                             
)                                                                     
{                                                                     
  _TOD_Get_with_nanoseconds( time, &_TOD.uptime );                    
 80331a4:	78 02 08 06 	mvhi r2,0x806                                  
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    Timestamp_Control        uptime;                                  
  #endif                                                              
    Thread_Control          *owning_thread = the_period->owner;       
 80331a8:	28 2c 00 40 	lw r12,(r1+64)                                 
bool _Rate_monotonic_Get_status(                                      
  Rate_monotonic_Control        *the_period,                          
  Rate_monotonic_Period_time_t  *wall_since_last_period,              
  Thread_CPU_usage_t            *cpu_since_last_period                
)                                                                     
{                                                                     
 80331ac:	b8 20 58 00 	mv r11,r1                                      
 80331b0:	38 42 7f 48 	ori r2,r2,0x7f48                               
 80331b4:	37 81 00 18 	addi r1,sp,24                                  
 80331b8:	b8 60 68 00 	mv r13,r3                                      
 80331bc:	fb ff 43 83 	calli 8003fc8 <_TOD_Get_with_nanoseconds>      
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
 80331c0:	29 61 00 54 	lw r1,(r11+84)                                 
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 80331c4:	2b 85 00 1c 	lw r5,(sp+28)                                  
 80331c8:	29 62 00 50 	lw r2,(r11+80)                                 
 80331cc:	2b 83 00 18 	lw r3,(sp+24)                                  
 80331d0:	c8 a1 08 00 	sub r1,r5,r1                                   
 80331d4:	f4 25 20 00 	cmpgu r4,r1,r5                                 
 80331d8:	c8 62 10 00 	sub r2,r3,r2                                   
 80331dc:	c8 44 10 00 	sub r2,r2,r4                                   
 80331e0:	59 c2 00 00 	sw (r14+0),r2                                  
   *  Determine cpu usage since period initiated.                     
   */                                                                 
  used = owning_thread->cpu_time_used;                                
                                                                      
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    if (owning_thread == _Thread_Executing) {                         
 80331e4:	78 02 08 06 	mvhi r2,0x806                                  
 80331e8:	38 42 81 40 	ori r2,r2,0x8140                               
 80331ec:	28 47 00 10 	lw r7,(r2+16)                                  
 80331f0:	59 c1 00 04 	sw (r14+4),r1                                  
  #endif                                                              
                                                                      
  /*                                                                  
   *  Determine cpu usage since period initiated.                     
   */                                                                 
  used = owning_thread->cpu_time_used;                                
 80331f4:	29 86 00 80 	lw r6,(r12+128)                                
 80331f8:	29 84 00 84 	lw r4,(r12+132)                                
      if (used < the_period->cpu_usage_period_initiated)              
        return false;                                                 
                                                                      
      *cpu_since_last_period = used - the_period->cpu_usage_period_initiated;
  #endif                                                              
  return true;                                                        
 80331fc:	34 01 00 01 	mvi r1,1                                       
   *  Determine cpu usage since period initiated.                     
   */                                                                 
  used = owning_thread->cpu_time_used;                                
                                                                      
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    if (owning_thread == _Thread_Executing) {                         
 8033200:	5d 87 00 19 	bne r12,r7,8033264 <_Rate_monotonic_Get_status+0xdc>
static inline void _Timestamp64_implementation_Add_to(                
  Timestamp64_Control       *_time,                                   
  const Timestamp64_Control *_add                                     
)                                                                     
{                                                                     
  *_time += *_add;                                                    
 8033204:	28 41 00 24 	lw r1,(r2+36)                                  
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
 8033208:	b4 85 28 00 	add r5,r4,r5                                   
 803320c:	b4 c3 18 00 	add r3,r6,r3                                   
 8033210:	f4 85 20 00 	cmpgu r4,r4,r5                                 
static inline void _Timestamp64_implementation_Add_to(                
  Timestamp64_Control       *_time,                                   
  const Timestamp64_Control *_add                                     
)                                                                     
{                                                                     
  *_time += *_add;                                                    
 8033214:	28 46 00 20 	lw r6,(r2+32)                                  
 8033218:	c8 a1 08 00 	sub r1,r5,r1                                   
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
 803321c:	b4 83 20 00 	add r4,r4,r3                                   
static inline void _Timestamp64_implementation_Add_to(                
  Timestamp64_Control       *_time,                                   
  const Timestamp64_Control *_add                                     
)                                                                     
{                                                                     
  *_time += *_add;                                                    
 8033220:	f4 25 28 00 	cmpgu r5,r1,r5                                 
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8033224:	29 62 00 48 	lw r2,(r11+72)                                 
 8033228:	c8 86 20 00 	sub r4,r4,r6                                   
 803322c:	c8 85 20 00 	sub r4,r4,r5                                   
 8033230:	29 63 00 4c 	lw r3,(r11+76)                                 
                                                                      
      /*                                                              
       *  The cpu usage info was reset while executing.  Can't        
       *  determine a status.                                         
       */                                                             
      if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated))
 8033234:	48 44 00 0b 	bg r2,r4,8033260 <_Rate_monotonic_Get_status+0xd8><== NEVER TAKEN
 8033238:	5c 44 00 02 	bne r2,r4,8033240 <_Rate_monotonic_Get_status+0xb8>
 803323c:	54 61 00 09 	bgu r3,r1,8033260 <_Rate_monotonic_Get_status+0xd8>
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
 8033240:	c8 23 18 00 	sub r3,r1,r3                                   
 8033244:	f4 61 08 00 	cmpgu r1,r3,r1                                 
 8033248:	c8 82 10 00 	sub r2,r4,r2                                   
 803324c:	c8 41 08 00 	sub r1,r2,r1                                   
 8033250:	59 a1 00 00 	sw (r13+0),r1                                  
 8033254:	59 a3 00 04 	sw (r13+4),r3                                  
      if (used < the_period->cpu_usage_period_initiated)              
        return false;                                                 
                                                                      
      *cpu_since_last_period = used - the_period->cpu_usage_period_initiated;
  #endif                                                              
  return true;                                                        
 8033258:	34 01 00 01 	mvi r1,1                                       
 803325c:	e0 00 00 02 	bi 8033264 <_Rate_monotonic_Get_status+0xdc>   
      /*                                                              
       *  The cpu usage info was reset while executing.  Can't        
       *  determine a status.                                         
       */                                                             
      if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated))
        return false;                                                 
 8033260:	34 01 00 00 	mvi r1,0                                       
        return false;                                                 
                                                                      
      *cpu_since_last_period = used - the_period->cpu_usage_period_initiated;
  #endif                                                              
  return true;                                                        
}                                                                     
 8033264:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8033268:	2b 8b 00 14 	lw r11,(sp+20)                                 
 803326c:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8033270:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8033274:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8033278:	37 9c 00 1c 	addi sp,sp,28                                  
 803327c:	c3 a0 00 00 	ret                                            
                                                                      

08033650 <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) {
 8033650:	37 9c ff f4 	addi sp,sp,-12                                 
 8033654:	5b 8b 00 08 	sw (sp+8),r11                                  
 8033658:	5b 9d 00 04 	sw (sp+4),ra                                   
 803365c:	b8 20 10 00 	mv r2,r1                                       
 8033660:	78 01 08 06 	mvhi r1,0x806                                  
 8033664:	38 21 83 d0 	ori r1,r1,0x83d0                               
 8033668:	37 83 00 0c 	addi r3,sp,12                                  
 803366c:	fb ff 45 7a 	calli 8004c54 <_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 ) {                                               
 8033670:	2b 82 00 0c 	lw r2,(sp+12)                                  
 8033674:	b8 20 58 00 	mv r11,r1                                      
 8033678:	5c 40 00 22 	bne r2,r0,8033700 <_Rate_monotonic_Timeout+0xb0><== NEVER TAKEN
                                                                      
    case OBJECTS_LOCAL:                                               
      the_thread = the_period->owner;                                 
 803367c:	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);                   
 8033680:	28 23 00 10 	lw r3,(r1+16)                                  
 8033684:	20 63 40 00 	andi r3,r3,0x4000                              
      if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
 8033688:	44 62 00 09 	be r3,r2,80336ac <_Rate_monotonic_Timeout+0x5c>
 803368c:	28 23 00 20 	lw r3,(r1+32)                                  
 8033690:	29 62 00 08 	lw r2,(r11+8)                                  
 8033694:	5c 62 00 06 	bne r3,r2,80336ac <_Rate_monotonic_Timeout+0x5c>
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
 8033698:	78 03 08 05 	mvhi r3,0x805                                  
 803369c:	38 63 7f 7c 	ori r3,r3,0x7f7c                               
 80336a0:	28 62 00 00 	lw r2,(r3+0)                                   
 80336a4:	fb ff 63 a7 	calli 800c540 <_Thread_Clear_state>            
 80336a8:	e0 00 00 06 	bi 80336c0 <_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 ) {
 80336ac:	29 62 00 38 	lw r2,(r11+56)                                 
 80336b0:	34 01 00 01 	mvi r1,1                                       
 80336b4:	5c 41 00 0c 	bne r2,r1,80336e4 <_Rate_monotonic_Timeout+0x94>
        the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING;    
 80336b8:	34 01 00 03 	mvi r1,3                                       
 80336bc:	59 61 00 38 	sw (r11+56),r1                                 
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
 80336c0:	b9 60 08 00 	mv r1,r11                                      
 80336c4:	fb ff ff 39 	calli 80333a8 <_Rate_monotonic_Initiate_statistics>
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 80336c8:	29 61 00 3c 	lw r1,(r11+60)                                 
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 80336cc:	35 62 00 10 	addi r2,r11,16                                 
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 80336d0:	59 61 00 1c 	sw (r11+28),r1                                 
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 80336d4:	78 01 08 06 	mvhi r1,0x806                                  
 80336d8:	38 21 80 58 	ori r1,r1,0x8058                               
 80336dc:	fb ff 4c c8 	calli 80069fc <_Watchdog_Insert>               
 80336e0:	e0 00 00 03 	bi 80336ec <_Rate_monotonic_Timeout+0x9c>      
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
      } else                                                          
        the_period->state = RATE_MONOTONIC_EXPIRED;                   
 80336e4:	34 01 00 04 	mvi r1,4                                       
 80336e8:	59 61 00 38 	sw (r11+56),r1                                 
   *                                                                  
   * This routine decrements the thread dispatch level.               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_decrement_disable_level(void)
  {                                                                   
    uint32_t level = _Thread_Dispatch_disable_level;                  
 80336ec:	78 01 08 06 	mvhi r1,0x806                                  
 80336f0:	38 21 7f c0 	ori r1,r1,0x7fc0                               
 80336f4:	28 22 00 00 	lw r2,(r1+0)                                   
                                                                      
    --level;                                                          
 80336f8:	34 42 ff ff 	addi r2,r2,-1                                  
    _Thread_Dispatch_disable_level = level;                           
 80336fc:	58 22 00 00 	sw (r1+0),r2                                   
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
}                                                                     
 8033700:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8033704:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8033708:	37 9c 00 0c 	addi sp,sp,12                                  
 803370c:	c3 a0 00 00 	ret                                            
                                                                      

08033280 <_Rate_monotonic_Update_statistics>: } static void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) {
 8033280:	37 9c ff e8 	addi sp,sp,-24                                 
 8033284:	5b 8b 00 08 	sw (sp+8),r11                                  
 8033288:	5b 9d 00 04 	sw (sp+4),ra                                   
 803328c:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  /*                                                                  
   *  Update the counts.                                              
   */                                                                 
  stats = &the_period->Statistics;                                    
  stats->count++;                                                     
 8033290:	28 21 00 58 	lw r1,(r1+88)                                  
                                                                      
  if ( the_period->state == RATE_MONOTONIC_EXPIRED )                  
 8033294:	29 62 00 38 	lw r2,(r11+56)                                 
                                                                      
  /*                                                                  
   *  Update the counts.                                              
   */                                                                 
  stats = &the_period->Statistics;                                    
  stats->count++;                                                     
 8033298:	34 21 00 01 	addi r1,r1,1                                   
 803329c:	59 61 00 58 	sw (r11+88),r1                                 
                                                                      
  if ( the_period->state == RATE_MONOTONIC_EXPIRED )                  
 80332a0:	34 01 00 04 	mvi r1,4                                       
 80332a4:	5c 41 00 04 	bne r2,r1,80332b4 <_Rate_monotonic_Update_statistics+0x34>
    stats->missed_count++;                                            
 80332a8:	29 61 00 5c 	lw r1,(r11+92)                                 
 80332ac:	34 21 00 01 	addi r1,r1,1                                   
 80332b0:	59 61 00 5c 	sw (r11+92),r1                                 
                                                                      
  /*                                                                  
   *  Grab status for time statistics.                                
   */                                                                 
  valid_status =                                                      
 80332b4:	b9 60 08 00 	mv r1,r11                                      
 80332b8:	37 82 00 0c 	addi r2,sp,12                                  
 80332bc:	37 83 00 14 	addi r3,sp,20                                  
 80332c0:	fb ff ff b2 	calli 8033188 <_Rate_monotonic_Get_status>     
    _Rate_monotonic_Get_status( the_period, &since_last_period, &executed );
  if (!valid_status)                                                  
 80332c4:	44 20 00 35 	be r1,r0,8033398 <_Rate_monotonic_Update_statistics+0x118><== NEVER TAKEN
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 80332c8:	2b 82 00 18 	lw r2,(sp+24)                                  
static inline void _Timestamp64_implementation_Add_to(                
  Timestamp64_Control       *_time,                                   
  const Timestamp64_Control *_add                                     
)                                                                     
{                                                                     
  *_time += *_add;                                                    
 80332cc:	29 63 00 74 	lw r3,(r11+116)                                
 80332d0:	29 64 00 70 	lw r4,(r11+112)                                
 80332d4:	2b 81 00 14 	lw r1,(sp+20)                                  
 80332d8:	b4 43 18 00 	add r3,r2,r3                                   
 80332dc:	f4 43 28 00 	cmpgu r5,r2,r3                                 
 80332e0:	b4 24 20 00 	add r4,r1,r4                                   
 80332e4:	59 63 00 74 	sw (r11+116),r3                                
   *  Update CPU time                                                 
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Add_to( &stats->total_cpu_time, &executed );           
                                                                      
    if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) )    
 80332e8:	29 63 00 60 	lw r3,(r11+96)                                 
 80332ec:	b4 a4 20 00 	add r4,r5,r4                                   
 80332f0:	59 64 00 70 	sw (r11+112),r4                                
 80332f4:	48 61 00 05 	bg r3,r1,8033308 <_Rate_monotonic_Update_statistics+0x88>
 80332f8:	5c 61 00 06 	bne r3,r1,8033310 <_Rate_monotonic_Update_statistics+0x90><== NEVER TAKEN
 80332fc:	29 63 00 64 	lw r3,(r11+100)                                
 8033300:	54 62 00 02 	bgu r3,r2,8033308 <_Rate_monotonic_Update_statistics+0x88>
 8033304:	e0 00 00 03 	bi 8033310 <_Rate_monotonic_Update_statistics+0x90>
      stats->min_cpu_time = executed;                                 
 8033308:	59 61 00 60 	sw (r11+96),r1                                 
 803330c:	59 62 00 64 	sw (r11+100),r2                                
                                                                      
    if ( _Timestamp_Greater_than( &executed, &stats->max_cpu_time ) ) 
 8033310:	29 63 00 68 	lw r3,(r11+104)                                
 8033314:	48 23 00 05 	bg r1,r3,8033328 <_Rate_monotonic_Update_statistics+0xa8><== NEVER TAKEN
 8033318:	5c 61 00 06 	bne r3,r1,8033330 <_Rate_monotonic_Update_statistics+0xb0><== NEVER TAKEN
 803331c:	29 63 00 6c 	lw r3,(r11+108)                                
 8033320:	54 43 00 02 	bgu r2,r3,8033328 <_Rate_monotonic_Update_statistics+0xa8>
 8033324:	e0 00 00 03 	bi 8033330 <_Rate_monotonic_Update_statistics+0xb0>
      stats->max_cpu_time = executed;                                 
 8033328:	59 61 00 68 	sw (r11+104),r1                                
 803332c:	59 62 00 6c 	sw (r11+108),r2                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 8033330:	2b 82 00 10 	lw r2,(sp+16)                                  
 8033334:	29 63 00 8c 	lw r3,(r11+140)                                
 8033338:	29 64 00 88 	lw r4,(r11+136)                                
 803333c:	2b 81 00 0c 	lw r1,(sp+12)                                  
 8033340:	b4 43 18 00 	add r3,r2,r3                                   
 8033344:	f4 43 28 00 	cmpgu r5,r2,r3                                 
 8033348:	b4 24 20 00 	add r4,r1,r4                                   
 803334c:	59 63 00 8c 	sw (r11+140),r3                                
   *  Update Wall time                                                
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Add_to( &stats->total_wall_time, &since_last_period ); 
                                                                      
    if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) )
 8033350:	29 63 00 78 	lw r3,(r11+120)                                
 8033354:	b4 a4 20 00 	add r4,r5,r4                                   
 8033358:	59 64 00 88 	sw (r11+136),r4                                
 803335c:	48 61 00 05 	bg r3,r1,8033370 <_Rate_monotonic_Update_statistics+0xf0>
 8033360:	5c 61 00 06 	bne r3,r1,8033378 <_Rate_monotonic_Update_statistics+0xf8><== NEVER TAKEN
 8033364:	29 63 00 7c 	lw r3,(r11+124)                                
 8033368:	54 62 00 02 	bgu r3,r2,8033370 <_Rate_monotonic_Update_statistics+0xf0>
 803336c:	e0 00 00 03 	bi 8033378 <_Rate_monotonic_Update_statistics+0xf8>
      stats->min_wall_time = since_last_period;                       
 8033370:	59 61 00 78 	sw (r11+120),r1                                
 8033374:	59 62 00 7c 	sw (r11+124),r2                                
                                                                      
    if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) )
 8033378:	29 63 00 80 	lw r3,(r11+128)                                
 803337c:	48 23 00 05 	bg r1,r3,8033390 <_Rate_monotonic_Update_statistics+0x110><== NEVER TAKEN
 8033380:	5c 61 00 06 	bne r3,r1,8033398 <_Rate_monotonic_Update_statistics+0x118><== NEVER TAKEN
 8033384:	29 63 00 84 	lw r3,(r11+132)                                
 8033388:	54 43 00 02 	bgu r2,r3,8033390 <_Rate_monotonic_Update_statistics+0x110>
 803338c:	e0 00 00 03 	bi 8033398 <_Rate_monotonic_Update_statistics+0x118>
      stats->max_wall_time = since_last_period;                       
 8033390:	59 61 00 80 	sw (r11+128),r1                                
 8033394:	59 62 00 84 	sw (r11+132),r2                                
      stats->min_wall_time = since_last_period;                       
                                                                      
    if ( since_last_period > stats->max_wall_time )                   
      stats->max_wall_time = since_last_period;                       
  #endif                                                              
}                                                                     
 8033398:	2b 9d 00 04 	lw ra,(sp+4)                                   
 803339c:	2b 8b 00 08 	lw r11,(sp+8)                                  
 80333a0:	37 9c 00 18 	addi sp,sp,24                                  
 80333a4:	c3 a0 00 00 	ret                                            
                                                                      

08006720 <_Scheduler_CBS_Allocate>: #include <rtems/score/wkspace.h> void *_Scheduler_CBS_Allocate( Thread_Control *the_thread ) {
 8006720:	37 9c ff f8 	addi sp,sp,-8                                  
 8006724:	5b 8b 00 08 	sw (sp+8),r11                                  
 8006728:	5b 9d 00 04 	sw (sp+4),ra                                   
 800672c:	b8 20 58 00 	mv r11,r1                                      
  void *sched;                                                        
  Scheduler_CBS_Per_thread *schinfo;                                  
                                                                      
  sched = _Workspace_Allocate(sizeof(Scheduler_CBS_Per_thread));      
 8006730:	34 01 00 1c 	mvi r1,28                                      
 8006734:	f8 00 07 ac 	calli 80085e4 <_Workspace_Allocate>            
  if ( sched ) {                                                      
 8006738:	44 20 00 06 	be r1,r0,8006750 <_Scheduler_CBS_Allocate+0x30><== NEVER TAKEN
    the_thread->scheduler_info = sched;                               
 800673c:	59 61 00 88 	sw (r11+136),r1                                
    schinfo = (Scheduler_CBS_Per_thread *)(the_thread->scheduler_info);
    schinfo->edf_per_thread.thread = the_thread;                      
    schinfo->edf_per_thread.queue_state = SCHEDULER_EDF_QUEUE_STATE_NEVER_HAS_BEEN;
 8006740:	34 02 00 02 	mvi r2,2                                       
                                                                      
  sched = _Workspace_Allocate(sizeof(Scheduler_CBS_Per_thread));      
  if ( sched ) {                                                      
    the_thread->scheduler_info = sched;                               
    schinfo = (Scheduler_CBS_Per_thread *)(the_thread->scheduler_info);
    schinfo->edf_per_thread.thread = the_thread;                      
 8006744:	58 2b 00 00 	sw (r1+0),r11                                  
    schinfo->edf_per_thread.queue_state = SCHEDULER_EDF_QUEUE_STATE_NEVER_HAS_BEEN;
 8006748:	58 22 00 14 	sw (r1+20),r2                                  
    schinfo->cbs_server = NULL;                                       
 800674c:	58 20 00 18 	sw (r1+24),r0                                  
  }                                                                   
                                                                      
  return sched;                                                       
}                                                                     
 8006750:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006754:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8006758:	37 9c 00 08 	addi sp,sp,8                                   
 800675c:	c3 a0 00 00 	ret                                            
                                                                      

08007e80 <_Scheduler_CBS_Budget_callout>: Scheduler_CBS_Server **_Scheduler_CBS_Server_list; void _Scheduler_CBS_Budget_callout( Thread_Control *the_thread ) {
 8007e80:	37 9c ff f4 	addi sp,sp,-12                                 
 8007e84:	5b 8b 00 08 	sw (sp+8),r11                                  
 8007e88:	5b 9d 00 04 	sw (sp+4),ra                                   
 8007e8c:	b8 20 58 00 	mv r11,r1                                      
  Priority_Control          new_priority;                             
  Scheduler_CBS_Per_thread *sched_info;                               
  Scheduler_CBS_Server_id   server_id;                                
                                                                      
  /* Put violating task to background until the end of period. */     
  new_priority = the_thread->Start.initial_priority;                  
 8007e90:	28 22 00 ac 	lw r2,(r1+172)                                 
  if ( the_thread->real_priority != new_priority )                    
 8007e94:	28 21 00 18 	lw r1,(r1+24)                                  
 8007e98:	44 22 00 02 	be r1,r2,8007ea0 <_Scheduler_CBS_Budget_callout+0x20><== NEVER TAKEN
    the_thread->real_priority = new_priority;                         
 8007e9c:	59 62 00 18 	sw (r11+24),r2                                 
  if ( the_thread->current_priority != new_priority )                 
 8007ea0:	29 61 00 14 	lw r1,(r11+20)                                 
 8007ea4:	44 22 00 04 	be r1,r2,8007eb4 <_Scheduler_CBS_Budget_callout+0x34><== NEVER TAKEN
    _Thread_Change_priority(the_thread, new_priority, true);          
 8007ea8:	b9 60 08 00 	mv r1,r11                                      
 8007eac:	34 03 00 01 	mvi r3,1                                       
 8007eb0:	f8 00 01 a7 	calli 800854c <_Thread_Change_priority>        
                                                                      
  /* Invoke callback function if any. */                              
  sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
 8007eb4:	29 6b 00 88 	lw r11,(r11+136)                               
  if ( sched_info->cbs_server->cbs_budget_overrun ) {                 
 8007eb8:	29 61 00 18 	lw r1,(r11+24)                                 
 8007ebc:	28 22 00 0c 	lw r2,(r1+12)                                  
 8007ec0:	44 40 00 08 	be r2,r0,8007ee0 <_Scheduler_CBS_Budget_callout+0x60><== NEVER TAKEN
    _Scheduler_CBS_Get_server_id(                                     
 8007ec4:	28 21 00 00 	lw r1,(r1+0)                                   
 8007ec8:	37 82 00 0c 	addi r2,sp,12                                  
 8007ecc:	fb ff ff d9 	calli 8007e30 <_Scheduler_CBS_Get_server_id>   
        sched_info->cbs_server->task_id,                              
        &server_id                                                    
    );                                                                
    sched_info->cbs_server->cbs_budget_overrun( server_id );          
 8007ed0:	29 61 00 18 	lw r1,(r11+24)                                 
 8007ed4:	28 22 00 0c 	lw r2,(r1+12)                                  
 8007ed8:	2b 81 00 0c 	lw r1,(sp+12)                                  
 8007edc:	d8 40 00 00 	call r2                                        
  }                                                                   
}                                                                     
 8007ee0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8007ee4:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8007ee8:	37 9c 00 0c 	addi sp,sp,12                                  
 8007eec:	c3 a0 00 00 	ret                                            
                                                                      

08007950 <_Scheduler_CBS_Create_server>: int _Scheduler_CBS_Create_server ( Scheduler_CBS_Parameters *params, Scheduler_CBS_Budget_overrun budget_overrun_callback, rtems_id *server_id ) {
 8007950:	37 9c ff e8 	addi sp,sp,-24                                 
 8007954:	5b 8b 00 18 	sw (sp+24),r11                                 
 8007958:	5b 8c 00 14 	sw (sp+20),r12                                 
 800795c:	5b 8d 00 10 	sw (sp+16),r13                                 
 8007960:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8007964:	5b 8f 00 08 	sw (sp+8),r15                                  
 8007968:	5b 9d 00 04 	sw (sp+4),ra                                   
 800796c:	b8 20 58 00 	mv r11,r1                                      
  unsigned int i;                                                     
  Scheduler_CBS_Server *the_server;                                   
                                                                      
  if ( params->budget <= 0 ||                                         
 8007970:	28 21 00 04 	lw r1,(r1+4)                                   
int _Scheduler_CBS_Create_server (                                    
  Scheduler_CBS_Parameters     *params,                               
  Scheduler_CBS_Budget_overrun  budget_overrun_callback,              
  rtems_id                     *server_id                             
)                                                                     
{                                                                     
 8007974:	b8 40 70 00 	mv r14,r2                                      
 8007978:	b8 60 68 00 	mv r13,r3                                      
                                                                      
  if ( params->budget <= 0 ||                                         
       params->deadline <= 0 ||                                       
       params->budget >= SCHEDULER_EDF_PRIO_MSB ||                    
       params->deadline >= SCHEDULER_EDF_PRIO_MSB )                   
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
 800797c:	34 04 ff ee 	mvi r4,-18                                     
)                                                                     
{                                                                     
  unsigned int i;                                                     
  Scheduler_CBS_Server *the_server;                                   
                                                                      
  if ( params->budget <= 0 ||                                         
 8007980:	4c 01 00 2c 	bge r0,r1,8007a30 <_Scheduler_CBS_Create_server+0xe0>
 8007984:	29 61 00 00 	lw r1,(r11+0)                                  
 8007988:	4c 01 00 2a 	bge r0,r1,8007a30 <_Scheduler_CBS_Create_server+0xe0>
       params->deadline <= 0 ||                                       
       params->budget >= SCHEDULER_EDF_PRIO_MSB ||                    
       params->deadline >= SCHEDULER_EDF_PRIO_MSB )                   
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
                                                                      
  for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {              
 800798c:	78 01 08 02 	mvhi r1,0x802                                  
 8007990:	38 21 10 18 	ori r1,r1,0x1018                               
 8007994:	28 23 00 00 	lw r3,(r1+0)                                   
 8007998:	78 01 08 02 	mvhi r1,0x802                                  
 800799c:	38 21 1b 28 	ori r1,r1,0x1b28                               
 80079a0:	28 24 00 00 	lw r4,(r1+0)                                   
    if ( !_Scheduler_CBS_Server_list[i] )                             
 80079a4:	34 01 00 00 	mvi r1,0                                       
 80079a8:	e0 00 00 05 	bi 80079bc <_Scheduler_CBS_Create_server+0x6c> 
 80079ac:	28 82 00 00 	lw r2,(r4+0)                                   
 80079b0:	34 84 00 04 	addi r4,r4,4                                   
 80079b4:	44 40 00 03 	be r2,r0,80079c0 <_Scheduler_CBS_Create_server+0x70>
       params->deadline <= 0 ||                                       
       params->budget >= SCHEDULER_EDF_PRIO_MSB ||                    
       params->deadline >= SCHEDULER_EDF_PRIO_MSB )                   
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
                                                                      
  for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {              
 80079b8:	34 21 00 01 	addi r1,r1,1                                   
 80079bc:	54 61 ff fc 	bgu r3,r1,80079ac <_Scheduler_CBS_Create_server+0x5c>
    if ( !_Scheduler_CBS_Server_list[i] )                             
      break;                                                          
  }                                                                   
                                                                      
  if ( i == _Scheduler_CBS_Maximum_servers )                          
    return SCHEDULER_CBS_ERROR_FULL;                                  
 80079c0:	34 04 ff e6 	mvi r4,-26                                     
  for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {              
    if ( !_Scheduler_CBS_Server_list[i] )                             
      break;                                                          
  }                                                                   
                                                                      
  if ( i == _Scheduler_CBS_Maximum_servers )                          
 80079c4:	44 23 00 1b 	be r1,r3,8007a30 <_Scheduler_CBS_Create_server+0xe0>
    return SCHEDULER_CBS_ERROR_FULL;                                  
                                                                      
  *server_id = i;                                                     
  _Scheduler_CBS_Server_list[*server_id] = (Scheduler_CBS_Server *)   
 80079c8:	78 0c 08 02 	mvhi r12,0x802                                 
 80079cc:	34 02 00 02 	mvi r2,2                                       
 80079d0:	39 8c 1b 28 	ori r12,r12,0x1b28                             
  }                                                                   
                                                                      
  if ( i == _Scheduler_CBS_Maximum_servers )                          
    return SCHEDULER_CBS_ERROR_FULL;                                  
                                                                      
  *server_id = i;                                                     
 80079d4:	59 a1 00 00 	sw (r13+0),r1                                  
  _Scheduler_CBS_Server_list[*server_id] = (Scheduler_CBS_Server *)   
 80079d8:	fb ff e7 71 	calli 800179c <__ashlsi3>                      
 80079dc:	29 8f 00 00 	lw r15,(r12+0)                                 
 80079e0:	b5 e1 78 00 	add r15,r15,r1                                 
    _Workspace_Allocate( sizeof(Scheduler_CBS_Server) );              
 80079e4:	34 01 00 10 	mvi r1,16                                      
 80079e8:	f8 00 09 01 	calli 8009dec <_Workspace_Allocate>            
                                                                      
  if ( i == _Scheduler_CBS_Maximum_servers )                          
    return SCHEDULER_CBS_ERROR_FULL;                                  
                                                                      
  *server_id = i;                                                     
  _Scheduler_CBS_Server_list[*server_id] = (Scheduler_CBS_Server *)   
 80079ec:	59 e1 00 00 	sw (r15+0),r1                                  
    _Workspace_Allocate( sizeof(Scheduler_CBS_Server) );              
  the_server = _Scheduler_CBS_Server_list[*server_id];                
 80079f0:	29 a1 00 00 	lw r1,(r13+0)                                  
 80079f4:	29 8c 00 00 	lw r12,(r12+0)                                 
 80079f8:	34 02 00 02 	mvi r2,2                                       
 80079fc:	fb ff e7 68 	calli 800179c <__ashlsi3>                      
 8007a00:	b5 81 08 00 	add r1,r12,r1                                  
 8007a04:	28 21 00 00 	lw r1,(r1+0)                                   
  if ( !the_server )                                                  
    return SCHEDULER_CBS_ERROR_NO_MEMORY;                             
 8007a08:	34 04 ff ef 	mvi r4,-17                                     
                                                                      
  *server_id = i;                                                     
  _Scheduler_CBS_Server_list[*server_id] = (Scheduler_CBS_Server *)   
    _Workspace_Allocate( sizeof(Scheduler_CBS_Server) );              
  the_server = _Scheduler_CBS_Server_list[*server_id];                
  if ( !the_server )                                                  
 8007a0c:	44 20 00 09 	be r1,r0,8007a30 <_Scheduler_CBS_Create_server+0xe0><== NEVER TAKEN
    return SCHEDULER_CBS_ERROR_NO_MEMORY;                             
                                                                      
  the_server->parameters = *params;                                   
 8007a10:	29 62 00 00 	lw r2,(r11+0)                                  
  the_server->task_id = -1;                                           
  the_server->cbs_budget_overrun = budget_overrun_callback;           
  return SCHEDULER_CBS_OK;                                            
 8007a14:	34 04 00 00 	mvi r4,0                                       
    _Workspace_Allocate( sizeof(Scheduler_CBS_Server) );              
  the_server = _Scheduler_CBS_Server_list[*server_id];                
  if ( !the_server )                                                  
    return SCHEDULER_CBS_ERROR_NO_MEMORY;                             
                                                                      
  the_server->parameters = *params;                                   
 8007a18:	58 22 00 04 	sw (r1+4),r2                                   
 8007a1c:	29 62 00 04 	lw r2,(r11+4)                                  
  the_server->task_id = -1;                                           
  the_server->cbs_budget_overrun = budget_overrun_callback;           
 8007a20:	58 2e 00 0c 	sw (r1+12),r14                                 
    _Workspace_Allocate( sizeof(Scheduler_CBS_Server) );              
  the_server = _Scheduler_CBS_Server_list[*server_id];                
  if ( !the_server )                                                  
    return SCHEDULER_CBS_ERROR_NO_MEMORY;                             
                                                                      
  the_server->parameters = *params;                                   
 8007a24:	58 22 00 08 	sw (r1+8),r2                                   
  the_server->task_id = -1;                                           
 8007a28:	34 02 ff ff 	mvi r2,-1                                      
 8007a2c:	58 22 00 00 	sw (r1+0),r2                                   
  the_server->cbs_budget_overrun = budget_overrun_callback;           
  return SCHEDULER_CBS_OK;                                            
}                                                                     
 8007a30:	b8 80 08 00 	mv r1,r4                                       
 8007a34:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8007a38:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8007a3c:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8007a40:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8007a44:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8007a48:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8007a4c:	37 9c 00 18 	addi sp,sp,24                                  
 8007a50:	c3 a0 00 00 	ret                                            
                                                                      

08007b04 <_Scheduler_CBS_Detach_thread>: int _Scheduler_CBS_Detach_thread ( Scheduler_CBS_Server_id server_id, rtems_id task_id ) {
 8007b04:	37 9c ff e8 	addi sp,sp,-24                                 
 8007b08:	5b 8b 00 14 	sw (sp+20),r11                                 
 8007b0c:	5b 8c 00 10 	sw (sp+16),r12                                 
 8007b10:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8007b14:	5b 8e 00 08 	sw (sp+8),r14                                  
 8007b18:	5b 9d 00 04 	sw (sp+4),ra                                   
 8007b1c:	b8 20 68 00 	mv r13,r1                                      
 8007b20:	b8 40 60 00 	mv r12,r2                                      
  Objects_Locations location;                                         
  Thread_Control *the_thread;                                         
  Scheduler_CBS_Per_thread *sched_info;                               
                                                                      
  the_thread = _Thread_Get(task_id, &location);                       
 8007b24:	b8 40 08 00 	mv r1,r2                                       
 8007b28:	37 82 00 18 	addi r2,sp,24                                  
 8007b2c:	f8 00 03 f7 	calli 8008b08 <_Thread_Get>                    
 8007b30:	b8 20 58 00 	mv r11,r1                                      
  /* The routine _Thread_Get may disable dispatch and not enable again. */
  if ( the_thread ) {                                                 
 8007b34:	44 20 00 02 	be r1,r0,8007b3c <_Scheduler_CBS_Detach_thread+0x38>
    _Thread_Enable_dispatch();                                        
 8007b38:	f8 00 03 e8 	calli 8008ad8 <_Thread_Enable_dispatch>        
  }                                                                   
                                                                      
  if ( server_id >= _Scheduler_CBS_Maximum_servers )                  
 8007b3c:	78 03 08 02 	mvhi r3,0x802                                  
 8007b40:	38 63 10 18 	ori r3,r3,0x1018                               
 8007b44:	28 61 00 00 	lw r1,(r3+0)                                   
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
 8007b48:	34 03 ff ee 	mvi r3,-18                                     
  /* The routine _Thread_Get may disable dispatch and not enable again. */
  if ( the_thread ) {                                                 
    _Thread_Enable_dispatch();                                        
  }                                                                   
                                                                      
  if ( server_id >= _Scheduler_CBS_Maximum_servers )                  
 8007b4c:	51 a1 00 1a 	bgeu r13,r1,8007bb4 <_Scheduler_CBS_Detach_thread+0xb0>
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
  if ( !the_thread )                                                  
 8007b50:	45 60 00 19 	be r11,r0,8007bb4 <_Scheduler_CBS_Detach_thread+0xb0>
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
  /* Server is not valid. */                                          
  if ( !_Scheduler_CBS_Server_list[server_id] )                       
 8007b54:	78 03 08 02 	mvhi r3,0x802                                  
 8007b58:	38 63 1b 28 	ori r3,r3,0x1b28                               
 8007b5c:	28 6e 00 00 	lw r14,(r3+0)                                  
 8007b60:	b9 a0 08 00 	mv r1,r13                                      
 8007b64:	34 02 00 02 	mvi r2,2                                       
 8007b68:	fb ff e7 0d 	calli 800179c <__ashlsi3>                      
 8007b6c:	b5 c1 08 00 	add r1,r14,r1                                  
 8007b70:	28 24 00 00 	lw r4,(r1+0)                                   
    return SCHEDULER_CBS_ERROR_NOSERVER;                              
 8007b74:	34 03 ff e7 	mvi r3,-25                                     
  if ( server_id >= _Scheduler_CBS_Maximum_servers )                  
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
  if ( !the_thread )                                                  
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
  /* Server is not valid. */                                          
  if ( !_Scheduler_CBS_Server_list[server_id] )                       
 8007b78:	44 80 00 0f 	be r4,r0,8007bb4 <_Scheduler_CBS_Detach_thread+0xb0>
    return SCHEDULER_CBS_ERROR_NOSERVER;                              
  /* Thread and server are not attached. */                           
  if ( _Scheduler_CBS_Server_list[server_id]->task_id != task_id )    
 8007b7c:	28 81 00 00 	lw r1,(r4+0)                                   
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
 8007b80:	34 03 ff ee 	mvi r3,-18                                     
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
  /* Server is not valid. */                                          
  if ( !_Scheduler_CBS_Server_list[server_id] )                       
    return SCHEDULER_CBS_ERROR_NOSERVER;                              
  /* Thread and server are not attached. */                           
  if ( _Scheduler_CBS_Server_list[server_id]->task_id != task_id )    
 8007b84:	5c 2c 00 0c 	bne r1,r12,8007bb4 <_Scheduler_CBS_Detach_thread+0xb0><== NEVER TAKEN
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
                                                                      
  _Scheduler_CBS_Server_list[server_id]->task_id = -1;                
 8007b88:	34 01 ff ff 	mvi r1,-1                                      
 8007b8c:	58 81 00 00 	sw (r4+0),r1                                   
  sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
  sched_info->cbs_server = NULL;                                      
 8007b90:	29 61 00 88 	lw r1,(r11+136)                                
                                                                      
  the_thread->budget_algorithm = the_thread->Start.budget_algorithm;  
  the_thread->budget_callout   = the_thread->Start.budget_callout;    
  the_thread->is_preemptible   = the_thread->Start.is_preemptible;    
                                                                      
  return SCHEDULER_CBS_OK;                                            
 8007b94:	34 03 00 00 	mvi r3,0                                       
  if ( _Scheduler_CBS_Server_list[server_id]->task_id != task_id )    
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
                                                                      
  _Scheduler_CBS_Server_list[server_id]->task_id = -1;                
  sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
  sched_info->cbs_server = NULL;                                      
 8007b98:	58 20 00 18 	sw (r1+24),r0                                  
                                                                      
  the_thread->budget_algorithm = the_thread->Start.budget_algorithm;  
 8007b9c:	29 61 00 a0 	lw r1,(r11+160)                                
 8007ba0:	59 61 00 78 	sw (r11+120),r1                                
  the_thread->budget_callout   = the_thread->Start.budget_callout;    
 8007ba4:	29 61 00 a4 	lw r1,(r11+164)                                
 8007ba8:	59 61 00 7c 	sw (r11+124),r1                                
  the_thread->is_preemptible   = the_thread->Start.is_preemptible;    
 8007bac:	41 61 00 9c 	lbu r1,(r11+156)                               
 8007bb0:	31 61 00 70 	sb (r11+112),r1                                
                                                                      
  return SCHEDULER_CBS_OK;                                            
}                                                                     
 8007bb4:	b8 60 08 00 	mv r1,r3                                       
 8007bb8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8007bbc:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8007bc0:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8007bc4:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8007bc8:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8007bcc:	37 9c 00 18 	addi sp,sp,24                                  
 8007bd0:	c3 a0 00 00 	ret                                            
                                                                      

08007ef0 <_Scheduler_CBS_Initialize>: int _Scheduler_CBS_Initialize(void) {
 8007ef0:	37 9c ff f8 	addi sp,sp,-8                                  
 8007ef4:	5b 8b 00 08 	sw (sp+8),r11                                  
 8007ef8:	5b 9d 00 04 	sw (sp+4),ra                                   
  unsigned int i;                                                     
  _Scheduler_CBS_Server_list = (Scheduler_CBS_Server **) _Workspace_Allocate(
      _Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) );
 8007efc:	78 0b 08 02 	mvhi r11,0x802                                 
 8007f00:	39 6b 10 18 	ori r11,r11,0x1018                             
 8007f04:	29 61 00 00 	lw r1,(r11+0)                                  
 8007f08:	34 02 00 02 	mvi r2,2                                       
 8007f0c:	fb ff e6 24 	calli 800179c <__ashlsi3>                      
}                                                                     
                                                                      
int _Scheduler_CBS_Initialize(void)                                   
{                                                                     
  unsigned int i;                                                     
  _Scheduler_CBS_Server_list = (Scheduler_CBS_Server **) _Workspace_Allocate(
 8007f10:	f8 00 07 b7 	calli 8009dec <_Workspace_Allocate>            
 8007f14:	78 02 08 02 	mvhi r2,0x802                                  
 8007f18:	38 42 1b 28 	ori r2,r2,0x1b28                               
 8007f1c:	58 41 00 00 	sw (r2+0),r1                                   
      _Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) );
  if ( !_Scheduler_CBS_Server_list )                                  
    return SCHEDULER_CBS_ERROR_NO_MEMORY;                             
 8007f20:	34 02 ff ef 	mvi r2,-17                                     
int _Scheduler_CBS_Initialize(void)                                   
{                                                                     
  unsigned int i;                                                     
  _Scheduler_CBS_Server_list = (Scheduler_CBS_Server **) _Workspace_Allocate(
      _Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) );
  if ( !_Scheduler_CBS_Server_list )                                  
 8007f24:	44 20 00 09 	be r1,r0,8007f48 <_Scheduler_CBS_Initialize+0x58><== NEVER TAKEN
    return SCHEDULER_CBS_ERROR_NO_MEMORY;                             
  for (i = 0; i<_Scheduler_CBS_Maximum_servers; i++) {                
 8007f28:	29 63 00 00 	lw r3,(r11+0)                                  
 8007f2c:	34 02 00 00 	mvi r2,0                                       
 8007f30:	e0 00 00 04 	bi 8007f40 <_Scheduler_CBS_Initialize+0x50>    
    _Scheduler_CBS_Server_list[i] = NULL;                             
 8007f34:	58 20 00 00 	sw (r1+0),r0                                   
  unsigned int i;                                                     
  _Scheduler_CBS_Server_list = (Scheduler_CBS_Server **) _Workspace_Allocate(
      _Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) );
  if ( !_Scheduler_CBS_Server_list )                                  
    return SCHEDULER_CBS_ERROR_NO_MEMORY;                             
  for (i = 0; i<_Scheduler_CBS_Maximum_servers; i++) {                
 8007f38:	34 42 00 01 	addi r2,r2,1                                   
 8007f3c:	34 21 00 04 	addi r1,r1,4                                   
 8007f40:	54 62 ff fd 	bgu r3,r2,8007f34 <_Scheduler_CBS_Initialize+0x44>
    _Scheduler_CBS_Server_list[i] = NULL;                             
  }                                                                   
  return SCHEDULER_CBS_OK;                                            
 8007f44:	34 02 00 00 	mvi r2,0                                       
}                                                                     
 8007f48:	b8 40 08 00 	mv r1,r2                                       
 8007f4c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8007f50:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8007f54:	37 9c 00 08 	addi sp,sp,8                                   
 8007f58:	c3 a0 00 00 	ret                                            
                                                                      

08006760 <_Scheduler_CBS_Release_job>: void _Scheduler_CBS_Release_job( Thread_Control *the_thread, uint32_t deadline ) {
 8006760:	37 9c ff fc 	addi sp,sp,-4                                  
 8006764:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006768:	b8 40 20 00 	mv r4,r2                                       
  Priority_Control new_priority;                                      
  Scheduler_CBS_Per_thread *sched_info =                              
    (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;          
  Scheduler_CBS_Server *serv_info =                                   
    (Scheduler_CBS_Server *) sched_info->cbs_server;                  
 800676c:	28 22 00 88 	lw r2,(r1+136)                                 
)                                                                     
{                                                                     
  Priority_Control new_priority;                                      
  Scheduler_CBS_Per_thread *sched_info =                              
    (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;          
  Scheduler_CBS_Server *serv_info =                                   
 8006770:	28 43 00 18 	lw r3,(r2+24)                                  
    (Scheduler_CBS_Server *) sched_info->cbs_server;                  
                                                                      
  if (deadline) {                                                     
 8006774:	44 80 00 13 	be r4,r0,80067c0 <_Scheduler_CBS_Release_job+0x60>
 8006778:	78 02 08 01 	mvhi r2,0x801                                  
 800677c:	38 42 fa 30 	ori r2,r2,0xfa30                               
    /* Initializing or shifting deadline. */                          
    if (serv_info)                                                    
 8006780:	44 60 00 09 	be r3,r0,80067a4 <_Scheduler_CBS_Release_job+0x44>
      new_priority = (_Watchdog_Ticks_since_boot + serv_info->parameters.deadline)
 8006784:	28 64 00 04 	lw r4,(r3+4)                                   
 8006788:	28 42 00 00 	lw r2,(r2+0)                                   
 800678c:	78 05 08 01 	mvhi r5,0x801                                  
 8006790:	38 a5 d9 a0 	ori r5,r5,0xd9a0                               
 8006794:	b4 44 10 00 	add r2,r2,r4                                   
 8006798:	28 a4 00 00 	lw r4,(r5+0)                                   
 800679c:	a0 44 10 00 	and r2,r2,r4                                   
 80067a0:	e0 00 00 0a 	bi 80067c8 <_Scheduler_CBS_Release_job+0x68>   
        & ~SCHEDULER_EDF_PRIO_MSB;                                    
    else                                                              
      new_priority = (_Watchdog_Ticks_since_boot + deadline)          
 80067a4:	28 42 00 00 	lw r2,(r2+0)                                   
 80067a8:	b4 82 10 00 	add r2,r4,r2                                   
 80067ac:	78 04 08 01 	mvhi r4,0x801                                  
 80067b0:	38 84 d9 a0 	ori r4,r4,0xd9a0                               
 80067b4:	28 83 00 00 	lw r3,(r4+0)                                   
 80067b8:	a0 43 10 00 	and r2,r2,r3                                   
 80067bc:	e0 00 00 05 	bi 80067d0 <_Scheduler_CBS_Release_job+0x70>   
        & ~SCHEDULER_EDF_PRIO_MSB;                                    
  }                                                                   
  else {                                                              
    /* Switch back to background priority. */                         
    new_priority = the_thread->Start.initial_priority;                
 80067c0:	28 22 00 ac 	lw r2,(r1+172)                                 
  }                                                                   
                                                                      
  /* Budget replenishment for the next job. */                        
  if (serv_info)                                                      
 80067c4:	44 64 00 03 	be r3,r4,80067d0 <_Scheduler_CBS_Release_job+0x70><== NEVER TAKEN
    the_thread->cpu_time_budget = serv_info->parameters.budget;       
 80067c8:	28 63 00 08 	lw r3,(r3+8)                                   
 80067cc:	58 23 00 74 	sw (r1+116),r3                                 
                                                                      
  the_thread->real_priority = new_priority;                           
 80067d0:	58 22 00 18 	sw (r1+24),r2                                  
  _Thread_Change_priority(the_thread, new_priority, true);            
 80067d4:	34 03 00 01 	mvi r3,1                                       
 80067d8:	f8 00 01 3b 	calli 8006cc4 <_Thread_Change_priority>        
}                                                                     
 80067dc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80067e0:	37 9c 00 04 	addi sp,sp,4                                   
 80067e4:	c3 a0 00 00 	ret                                            
                                                                      

080067e8 <_Scheduler_CBS_Unblock>: #include <rtems/score/schedulercbs.h> void _Scheduler_CBS_Unblock( Thread_Control *the_thread ) {
 80067e8:	37 9c ff ec 	addi sp,sp,-20                                 
 80067ec:	5b 8b 00 14 	sw (sp+20),r11                                 
 80067f0:	5b 8c 00 10 	sw (sp+16),r12                                 
 80067f4:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80067f8:	5b 8e 00 08 	sw (sp+8),r14                                  
 80067fc:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006800:	b8 20 58 00 	mv r11,r1                                      
  Scheduler_CBS_Per_thread *sched_info;                               
  Scheduler_CBS_Server *serv_info;                                    
  Priority_Control new_priority;                                      
                                                                      
  _Scheduler_EDF_Enqueue(the_thread);                                 
 8006804:	f8 00 00 4d 	calli 8006938 <_Scheduler_EDF_Enqueue>         
  /* TODO: flash critical section? */                                 
                                                                      
  sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
  serv_info = (Scheduler_CBS_Server *) sched_info->cbs_server;        
 8006808:	29 61 00 88 	lw r1,(r11+136)                                
 800680c:	28 2c 00 18 	lw r12,(r1+24)                                 
   * Late unblock rule for deadline-driven tasks. The remaining time to
   * deadline must be sufficient to serve the remaining computation time
   * without increased utilization of this task. It might cause a deadline
   * miss of another task.                                            
   */                                                                 
  if (serv_info) {                                                    
 8006810:	45 80 00 15 	be r12,r0,8006864 <_Scheduler_CBS_Unblock+0x7c>
    time_t deadline = serv_info->parameters.deadline;                 
    time_t budget = serv_info->parameters.budget;                     
    time_t deadline_left = the_thread->cpu_time_budget;               
    time_t budget_left = the_thread->real_priority -                  
 8006814:	78 01 08 01 	mvhi r1,0x801                                  
 8006818:	38 21 fa 30 	ori r1,r1,0xfa30                               
 800681c:	28 21 00 00 	lw r1,(r1+0)                                   
 8006820:	29 6d 00 18 	lw r13,(r11+24)                                
                           _Watchdog_Ticks_since_boot;                
                                                                      
    if ( deadline*budget_left > budget*deadline_left ) {              
 8006824:	29 82 00 04 	lw r2,(r12+4)                                  
 8006828:	c9 a1 08 00 	sub r1,r13,r1                                  
 800682c:	fb ff e8 e9 	calli 8000bd0 <__mulsi3>                       
 8006830:	b8 20 70 00 	mv r14,r1                                      
 8006834:	29 82 00 08 	lw r2,(r12+8)                                  
 8006838:	29 61 00 74 	lw r1,(r11+116)                                
 800683c:	fb ff e8 e5 	calli 8000bd0 <__mulsi3>                       
 8006840:	4c 2e 00 09 	bge r1,r14,8006864 <_Scheduler_CBS_Unblock+0x7c>
      /* Put late unblocked task to background until the end of period. */
      new_priority = the_thread->Start.initial_priority;              
 8006844:	29 62 00 ac 	lw r2,(r11+172)                                
      if ( the_thread->real_priority != new_priority )                
 8006848:	45 a2 00 02 	be r13,r2,8006850 <_Scheduler_CBS_Unblock+0x68>
        the_thread->real_priority = new_priority;                     
 800684c:	59 62 00 18 	sw (r11+24),r2                                 
      if ( the_thread->current_priority != new_priority )             
 8006850:	29 61 00 14 	lw r1,(r11+20)                                 
 8006854:	44 22 00 04 	be r1,r2,8006864 <_Scheduler_CBS_Unblock+0x7c> 
        _Thread_Change_priority(the_thread, new_priority, true);      
 8006858:	b9 60 08 00 	mv r1,r11                                      
 800685c:	34 03 00 01 	mvi r3,1                                       
 8006860:	f8 00 01 19 	calli 8006cc4 <_Thread_Change_priority>        
   *    a context switch.                                             
   *  Pseudo-ISR case:                                                
   *    Even if the thread isn't preemptible, if the new heir is      
   *    a pseudo-ISR system task, we need to do a context switch.     
   */                                                                 
  if ( _Scheduler_Is_priority_higher_than( the_thread->current_priority,
 8006864:	78 0c 08 01 	mvhi r12,0x801                                 
 8006868:	39 8c fa c0 	ori r12,r12,0xfac0                             
 800686c:	29 82 00 14 	lw r2,(r12+20)                                 
 8006870:	78 01 08 01 	mvhi r1,0x801                                  
 8006874:	38 21 f0 1c 	ori r1,r1,0xf01c                               
 8006878:	28 23 00 30 	lw r3,(r1+48)                                  
 800687c:	28 42 00 14 	lw r2,(r2+20)                                  
 8006880:	29 61 00 14 	lw r1,(r11+20)                                 
 8006884:	d8 60 00 00 	call r3                                        
 8006888:	4c 01 00 0b 	bge r0,r1,80068b4 <_Scheduler_CBS_Unblock+0xcc>
       _Thread_Heir->current_priority)) {                             
    _Thread_Heir = the_thread;                                        
    if ( _Thread_Executing->is_preemptible ||                         
 800688c:	29 81 00 10 	lw r1,(r12+16)                                 
   *    Even if the thread isn't preemptible, if the new heir is      
   *    a pseudo-ISR system task, we need to do a context switch.     
   */                                                                 
  if ( _Scheduler_Is_priority_higher_than( the_thread->current_priority,
       _Thread_Heir->current_priority)) {                             
    _Thread_Heir = the_thread;                                        
 8006890:	59 8b 00 14 	sw (r12+20),r11                                
    if ( _Thread_Executing->is_preemptible ||                         
 8006894:	40 21 00 70 	lbu r1,(r1+112)                                
 8006898:	5c 20 00 03 	bne r1,r0,80068a4 <_Scheduler_CBS_Unblock+0xbc>
 800689c:	29 62 00 14 	lw r2,(r11+20)                                 
 80068a0:	5c 41 00 05 	bne r2,r1,80068b4 <_Scheduler_CBS_Unblock+0xcc><== ALWAYS TAKEN
         the_thread->current_priority == 0 )                          
      _Thread_Dispatch_necessary = true;                              
 80068a4:	78 01 08 01 	mvhi r1,0x801                                  
 80068a8:	38 21 fa c0 	ori r1,r1,0xfac0                               
 80068ac:	34 02 00 01 	mvi r2,1                                       
 80068b0:	30 22 00 0c 	sb (r1+12),r2                                  
  }                                                                   
}                                                                     
 80068b4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80068b8:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80068bc:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80068c0:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 80068c4:	2b 8e 00 08 	lw r14,(sp+8)                                  
 80068c8:	37 9c 00 14 	addi sp,sp,20                                  
 80068cc:	c3 a0 00 00 	ret                                            
                                                                      

08006720 <_Scheduler_EDF_Allocate>: #include <rtems/score/wkspace.h> void *_Scheduler_EDF_Allocate( Thread_Control *the_thread ) {
 8006720:	37 9c ff f8 	addi sp,sp,-8                                  
 8006724:	5b 8b 00 08 	sw (sp+8),r11                                  
 8006728:	5b 9d 00 04 	sw (sp+4),ra                                   
 800672c:	b8 20 58 00 	mv r11,r1                                      
  void *sched;                                                        
  Scheduler_EDF_Per_thread *schinfo;                                  
                                                                      
  sched = _Workspace_Allocate( sizeof(Scheduler_EDF_Per_thread) );    
 8006730:	34 01 00 18 	mvi r1,24                                      
 8006734:	f8 00 07 81 	calli 8008538 <_Workspace_Allocate>            
                                                                      
  if ( sched ) {                                                      
 8006738:	44 20 00 05 	be r1,r0,800674c <_Scheduler_EDF_Allocate+0x2c><== NEVER TAKEN
    the_thread->scheduler_info = sched;                               
 800673c:	59 61 00 88 	sw (r11+136),r1                                
    schinfo = (Scheduler_EDF_Per_thread *)(the_thread->scheduler_info);
    schinfo->thread = the_thread;                                     
    schinfo->queue_state = SCHEDULER_EDF_QUEUE_STATE_NEVER_HAS_BEEN;  
 8006740:	34 02 00 02 	mvi r2,2                                       
  sched = _Workspace_Allocate( sizeof(Scheduler_EDF_Per_thread) );    
                                                                      
  if ( sched ) {                                                      
    the_thread->scheduler_info = sched;                               
    schinfo = (Scheduler_EDF_Per_thread *)(the_thread->scheduler_info);
    schinfo->thread = the_thread;                                     
 8006744:	58 2b 00 00 	sw (r1+0),r11                                  
    schinfo->queue_state = SCHEDULER_EDF_QUEUE_STATE_NEVER_HAS_BEEN;  
 8006748:	58 22 00 14 	sw (r1+20),r2                                  
  }                                                                   
                                                                      
  return sched;                                                       
}                                                                     
 800674c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006750:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8006754:	37 9c 00 08 	addi sp,sp,8                                   
 8006758:	c3 a0 00 00 	ret                                            
                                                                      

08006968 <_Scheduler_EDF_Unblock>: #include <rtems/score/scheduleredf.h> void _Scheduler_EDF_Unblock( Thread_Control *the_thread ) {
 8006968:	37 9c ff f4 	addi sp,sp,-12                                 
 800696c:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8006970:	5b 8c 00 08 	sw (sp+8),r12                                  
 8006974:	5b 9d 00 04 	sw (sp+4),ra                                   
   *    a context switch.                                             
   *  Pseudo-ISR case:                                                
   *    Even if the thread isn't preemptible, if the new heir is      
   *    a pseudo-ISR system task, we need to do a context switch.     
   */                                                                 
  if ( _Scheduler_Is_priority_lower_than(                             
 8006978:	78 0b 08 01 	mvhi r11,0x801                                 
#include <rtems/score/scheduleredf.h>                                 
                                                                      
void _Scheduler_EDF_Unblock(                                          
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
 800697c:	b8 20 60 00 	mv r12,r1                                      
   *    a context switch.                                             
   *  Pseudo-ISR case:                                                
   *    Even if the thread isn't preemptible, if the new heir is      
   *    a pseudo-ISR system task, we need to do a context switch.     
   */                                                                 
  if ( _Scheduler_Is_priority_lower_than(                             
 8006980:	39 6b fa c0 	ori r11,r11,0xfac0                             
                                                                      
void _Scheduler_EDF_Unblock(                                          
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  _Scheduler_EDF_Enqueue(the_thread);                                 
 8006984:	fb ff ff 90 	calli 80067c4 <_Scheduler_EDF_Enqueue>         
   *    a context switch.                                             
   *  Pseudo-ISR case:                                                
   *    Even if the thread isn't preemptible, if the new heir is      
   *    a pseudo-ISR system task, we need to do a context switch.     
   */                                                                 
  if ( _Scheduler_Is_priority_lower_than(                             
 8006988:	29 62 00 14 	lw r2,(r11+20)                                 
 800698c:	78 01 08 01 	mvhi r1,0x801                                  
 8006990:	38 21 f0 18 	ori r1,r1,0xf018                               
 8006994:	28 23 00 30 	lw r3,(r1+48)                                  
 8006998:	28 41 00 14 	lw r1,(r2+20)                                  
 800699c:	29 82 00 14 	lw r2,(r12+20)                                 
 80069a0:	d8 60 00 00 	call r3                                        
 80069a4:	4c 20 00 0b 	bge r1,r0,80069d0 <_Scheduler_EDF_Unblock+0x68>
         _Thread_Heir->current_priority,                              
         the_thread->current_priority )) {                            
    _Thread_Heir = the_thread;                                        
    if ( _Thread_Executing->is_preemptible ||                         
 80069a8:	29 61 00 10 	lw r1,(r11+16)                                 
   *    a pseudo-ISR system task, we need to do a context switch.     
   */                                                                 
  if ( _Scheduler_Is_priority_lower_than(                             
         _Thread_Heir->current_priority,                              
         the_thread->current_priority )) {                            
    _Thread_Heir = the_thread;                                        
 80069ac:	59 6c 00 14 	sw (r11+20),r12                                
    if ( _Thread_Executing->is_preemptible ||                         
 80069b0:	40 21 00 70 	lbu r1,(r1+112)                                
 80069b4:	5c 20 00 03 	bne r1,r0,80069c0 <_Scheduler_EDF_Unblock+0x58>
 80069b8:	29 82 00 14 	lw r2,(r12+20)                                 
 80069bc:	5c 41 00 05 	bne r2,r1,80069d0 <_Scheduler_EDF_Unblock+0x68><== ALWAYS TAKEN
         the_thread->current_priority == 0 )                          
      _Thread_Dispatch_necessary = true;                              
 80069c0:	78 01 08 01 	mvhi r1,0x801                                  
 80069c4:	38 21 fa c0 	ori r1,r1,0xfac0                               
 80069c8:	34 02 00 01 	mvi r2,1                                       
 80069cc:	30 22 00 0c 	sb (r1+12),r2                                  
  }                                                                   
}                                                                     
 80069d0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80069d4:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80069d8:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80069dc:	37 9c 00 0c 	addi sp,sp,12                                  
 80069e0:	c3 a0 00 00 	ret                                            
                                                                      

08005a10 <_Scheduler_priority_Block>: #include <rtems/score/thread.h> void _Scheduler_priority_Block( Thread_Control *the_thread ) {
 8005a10:	37 9c ff ec 	addi sp,sp,-20                                 
 8005a14:	5b 8b 00 14 	sw (sp+20),r11                                 
 8005a18:	5b 8c 00 10 	sw (sp+16),r12                                 
 8005a1c:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8005a20:	5b 8e 00 08 	sw (sp+8),r14                                  
 8005a24:	5b 9d 00 04 	sw (sp+4),ra                                   
 8005a28:	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;
 8005a2c:	28 21 00 88 	lw r1,(r1+136)                                 
  ready      = sched_info->ready_chain;                               
 8005a30:	28 22 00 00 	lw r2,(r1+0)                                   
                                                                      
  if ( _Chain_Has_only_one_node( ready ) ) {                          
 8005a34:	28 44 00 00 	lw r4,(r2+0)                                   
 8005a38:	28 43 00 08 	lw r3,(r2+8)                                   
 8005a3c:	5c 83 00 12 	bne r4,r3,8005a84 <_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 );                        
 8005a40:	34 43 00 04 	addi r3,r2,4                                   
                                                                      
  head->next = tail;                                                  
 8005a44:	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;          
 8005a48:	28 23 00 04 	lw r3,(r1+4)                                   
  head->previous = NULL;                                              
 8005a4c:	58 40 00 04 	sw (r2+4),r0                                   
  tail->previous = head;                                              
 8005a50:	58 42 00 08 	sw (r2+8),r2                                   
 8005a54:	2c 24 00 0e 	lhu r4,(r1+14)                                 
 8005a58:	2c 62 00 00 	lhu r2,(r3+0)                                  
 8005a5c:	a0 44 10 00 	and r2,r2,r4                                   
 8005a60:	0c 62 00 00 	sh (r3+0),r2                                   
  if ( *the_priority_map->minor == 0 )                                
 8005a64:	5c 40 00 0c 	bne r2,r0,8005a94 <_Scheduler_priority_Block+0x84>
    _Priority_Major_bit_map &= the_priority_map->block_major;         
 8005a68:	78 02 08 01 	mvhi r2,0x801                                  
 8005a6c:	38 42 da a0 	ori r2,r2,0xdaa0                               
 8005a70:	2c 43 00 00 	lhu r3,(r2+0)                                  
 8005a74:	2c 21 00 0c 	lhu r1,(r1+12)                                 
 8005a78:	a0 23 08 00 	and r1,r1,r3                                   
 8005a7c:	0c 41 00 00 	sh (r2+0),r1                                   
 8005a80:	e0 00 00 05 	bi 8005a94 <_Scheduler_priority_Block+0x84>    
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
 8005a84:	29 82 00 00 	lw r2,(r12+0)                                  
  previous       = the_node->previous;                                
 8005a88:	29 81 00 04 	lw r1,(r12+4)                                  
  next->previous = previous;                                          
 8005a8c:	58 41 00 04 	sw (r2+4),r1                                   
  previous->next = next;                                              
 8005a90:	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 );                              
 8005a94:	78 01 08 01 	mvhi r1,0x801                                  
 8005a98:	38 21 da 60 	ori r1,r1,0xda60                               
  _Scheduler_priority_Ready_queue_extract( the_thread );              
                                                                      
  /* TODO: flash critical section? */                                 
                                                                      
  if ( _Thread_Is_heir( the_thread ) )                                
 8005a9c:	28 21 00 14 	lw r1,(r1+20)                                  
 8005aa0:	5d 81 00 3b 	bne r12,r1,8005b8c <_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                          
 8005aa4:	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 );         
 8005aa8:	78 02 08 01 	mvhi r2,0x801                                  
 8005aac:	38 21 d0 18 	ori r1,r1,0xd018                               
 8005ab0:	38 42 da a0 	ori r2,r2,0xdaa0                               
 *                                                                    
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
 8005ab4:	28 2e 00 00 	lw r14,(r1+0)                                  
 8005ab8:	2c 41 00 00 	lhu r1,(r2+0)                                  
 8005abc:	78 0b 08 01 	mvhi r11,0x801                                 
 8005ac0:	34 02 00 ff 	mvi r2,255                                     
 8005ac4:	20 21 ff ff 	andi r1,r1,0xffff                              
 8005ac8:	39 6b ba 48 	ori r11,r11,0xba48                             
 8005acc:	54 22 00 05 	bgu r1,r2,8005ae0 <_Scheduler_priority_Block+0xd0>
 8005ad0:	b5 61 58 00 	add r11,r11,r1                                 
 8005ad4:	41 6d 00 00 	lbu r13,(r11+0)                                
 8005ad8:	35 ad 00 08 	addi r13,r13,8                                 
 8005adc:	e0 00 00 05 	bi 8005af0 <_Scheduler_priority_Block+0xe0>    
 8005ae0:	34 02 00 08 	mvi r2,8                                       
 8005ae4:	f8 00 52 23 	calli 801a370 <__lshrsi3>                      
 8005ae8:	b5 61 58 00 	add r11,r11,r1                                 
 8005aec:	41 6d 00 00 	lbu r13,(r11+0)                                
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
 8005af0:	34 02 00 01 	mvi r2,1                                       
 8005af4:	78 0b 08 01 	mvhi r11,0x801                                 
 8005af8:	b9 a0 08 00 	mv r1,r13                                      
 8005afc:	f8 00 51 cf 	calli 801a238 <__ashlsi3>                      
 8005b00:	39 6b da c0 	ori r11,r11,0xdac0                             
 8005b04:	b5 61 58 00 	add r11,r11,r1                                 
 8005b08:	2d 62 00 00 	lhu r2,(r11+0)                                 
 8005b0c:	34 01 00 ff 	mvi r1,255                                     
 8005b10:	78 0b 08 01 	mvhi r11,0x801                                 
 8005b14:	39 6b ba 48 	ori r11,r11,0xba48                             
 8005b18:	54 41 00 05 	bgu r2,r1,8005b2c <_Scheduler_priority_Block+0x11c>
 8005b1c:	b5 62 58 00 	add r11,r11,r2                                 
 8005b20:	41 6b 00 00 	lbu r11,(r11+0)                                
 8005b24:	35 6b 00 08 	addi r11,r11,8                                 
 8005b28:	e0 00 00 06 	bi 8005b40 <_Scheduler_priority_Block+0x130>   
 8005b2c:	b8 40 08 00 	mv r1,r2                                       
 8005b30:	34 02 00 08 	mvi r2,8                                       
 8005b34:	f8 00 52 0f 	calli 801a370 <__lshrsi3>                      
 8005b38:	b5 61 58 00 	add r11,r11,r1                                 
 8005b3c:	41 6b 00 00 	lbu r11,(r11+0)                                
                                                                      
  return (_Priority_Bits_index( major ) << 4) +                       
 8005b40:	34 02 00 04 	mvi r2,4                                       
 8005b44:	b9 a0 08 00 	mv r1,r13                                      
 8005b48:	f8 00 51 bc 	calli 801a238 <__ashlsi3>                      
 8005b4c:	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 ] ) )                
 8005b50:	34 02 00 01 	mvi r2,1                                       
 8005b54:	b9 60 08 00 	mv r1,r11                                      
 8005b58:	f8 00 51 b8 	calli 801a238 <__ashlsi3>                      
 8005b5c:	34 02 00 02 	mvi r2,2                                       
 8005b60:	b4 2b 08 00 	add r1,r1,r11                                  
 8005b64:	f8 00 51 b5 	calli 801a238 <__ashlsi3>                      
 8005b68:	b5 c1 08 00 	add r1,r14,r1                                  
     _Scheduler_priority_Schedule_body();                             
                                                                      
  if ( _Thread_Is_executing( the_thread ) )                           
    _Thread_Dispatch_necessary = true;                                
                                                                      
}                                                                     
 8005b6c:	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 );                            
 8005b70:	34 21 00 04 	addi r1,r1,4                                   
    return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
                                                                      
  return NULL;                                                        
 8005b74:	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 ] ) )                
 8005b78:	44 61 00 02 	be r3,r1,8005b80 <_Scheduler_priority_Block+0x170><== NEVER TAKEN
    return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
 8005b7c:	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(               
 8005b80:	78 01 08 01 	mvhi r1,0x801                                  
 8005b84:	38 21 da 60 	ori r1,r1,0xda60                               
 8005b88:	58 22 00 14 	sw (r1+20),r2                                  
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
 8005b8c:	78 01 08 01 	mvhi r1,0x801                                  
 8005b90:	38 21 da 60 	ori r1,r1,0xda60                               
  /* TODO: flash critical section? */                                 
                                                                      
  if ( _Thread_Is_heir( the_thread ) )                                
     _Scheduler_priority_Schedule_body();                             
                                                                      
  if ( _Thread_Is_executing( the_thread ) )                           
 8005b94:	28 22 00 10 	lw r2,(r1+16)                                  
 8005b98:	5d 82 00 03 	bne r12,r2,8005ba4 <_Scheduler_priority_Block+0x194>
    _Thread_Dispatch_necessary = true;                                
 8005b9c:	34 02 00 01 	mvi r2,1                                       
 8005ba0:	30 22 00 0c 	sb (r1+12),r2                                  
                                                                      
}                                                                     
 8005ba4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005ba8:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8005bac:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8005bb0:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8005bb4:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8005bb8:	37 9c 00 14 	addi sp,sp,20                                  
 8005bbc:	c3 a0 00 00 	ret                                            
                                                                      

08005da0 <_Scheduler_priority_Schedule>: #include <rtems/system.h> #include <rtems/score/scheduler.h> #include <rtems/score/schedulerpriority.h> void _Scheduler_priority_Schedule(void) {
 8005da0:	37 9c ff f0 	addi sp,sp,-16                                 
 8005da4:	5b 8b 00 10 	sw (sp+16),r11                                 
 8005da8:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8005dac:	5b 8d 00 08 	sw (sp+8),r13                                  
 8005db0:	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                          
 8005db4:	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 );         
 8005db8:	78 02 08 01 	mvhi r2,0x801                                  
 8005dbc:	38 21 d0 18 	ori r1,r1,0xd018                               
 8005dc0:	38 42 da a0 	ori r2,r2,0xdaa0                               
 *                                                                    
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
 8005dc4:	28 2d 00 00 	lw r13,(r1+0)                                  
 8005dc8:	2c 41 00 00 	lhu r1,(r2+0)                                  
 8005dcc:	78 0b 08 01 	mvhi r11,0x801                                 
 8005dd0:	34 02 00 ff 	mvi r2,255                                     
 8005dd4:	20 21 ff ff 	andi r1,r1,0xffff                              
 8005dd8:	39 6b ba 48 	ori r11,r11,0xba48                             
 8005ddc:	54 22 00 05 	bgu r1,r2,8005df0 <_Scheduler_priority_Schedule+0x50>
 8005de0:	b5 61 58 00 	add r11,r11,r1                                 
 8005de4:	41 6c 00 00 	lbu r12,(r11+0)                                
 8005de8:	35 8c 00 08 	addi r12,r12,8                                 
 8005dec:	e0 00 00 05 	bi 8005e00 <_Scheduler_priority_Schedule+0x60> 
 8005df0:	34 02 00 08 	mvi r2,8                                       
 8005df4:	f8 00 51 5f 	calli 801a370 <__lshrsi3>                      
 8005df8:	b5 61 58 00 	add r11,r11,r1                                 
 8005dfc:	41 6c 00 00 	lbu r12,(r11+0)                                
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
 8005e00:	34 02 00 01 	mvi r2,1                                       
 8005e04:	78 0b 08 01 	mvhi r11,0x801                                 
 8005e08:	b9 80 08 00 	mv r1,r12                                      
 8005e0c:	f8 00 51 0b 	calli 801a238 <__ashlsi3>                      
 8005e10:	39 6b da c0 	ori r11,r11,0xdac0                             
 8005e14:	b5 61 58 00 	add r11,r11,r1                                 
 8005e18:	2d 62 00 00 	lhu r2,(r11+0)                                 
 8005e1c:	34 01 00 ff 	mvi r1,255                                     
 8005e20:	78 0b 08 01 	mvhi r11,0x801                                 
 8005e24:	39 6b ba 48 	ori r11,r11,0xba48                             
 8005e28:	54 41 00 05 	bgu r2,r1,8005e3c <_Scheduler_priority_Schedule+0x9c>
 8005e2c:	b5 62 58 00 	add r11,r11,r2                                 
 8005e30:	41 6b 00 00 	lbu r11,(r11+0)                                
 8005e34:	35 6b 00 08 	addi r11,r11,8                                 
 8005e38:	e0 00 00 06 	bi 8005e50 <_Scheduler_priority_Schedule+0xb0> 
 8005e3c:	b8 40 08 00 	mv r1,r2                                       
 8005e40:	34 02 00 08 	mvi r2,8                                       
 8005e44:	f8 00 51 4b 	calli 801a370 <__lshrsi3>                      
 8005e48:	b5 61 58 00 	add r11,r11,r1                                 
 8005e4c:	41 6b 00 00 	lbu r11,(r11+0)                                
                                                                      
  return (_Priority_Bits_index( major ) << 4) +                       
 8005e50:	34 02 00 04 	mvi r2,4                                       
 8005e54:	b9 80 08 00 	mv r1,r12                                      
 8005e58:	f8 00 50 f8 	calli 801a238 <__ashlsi3>                      
 8005e5c:	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 ] ) )                
 8005e60:	34 02 00 01 	mvi r2,1                                       
 8005e64:	b9 60 08 00 	mv r1,r11                                      
 8005e68:	f8 00 50 f4 	calli 801a238 <__ashlsi3>                      
 8005e6c:	34 02 00 02 	mvi r2,2                                       
 8005e70:	b4 2b 08 00 	add r1,r1,r11                                  
 8005e74:	f8 00 50 f1 	calli 801a238 <__ashlsi3>                      
 8005e78:	b5 a1 08 00 	add r1,r13,r1                                  
  _Scheduler_priority_Schedule_body();                                
}                                                                     
 8005e7c:	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 );                            
 8005e80:	34 21 00 04 	addi r1,r1,4                                   
    return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
                                                                      
  return NULL;                                                        
 8005e84:	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 ] ) )                
 8005e88:	44 61 00 02 	be r3,r1,8005e90 <_Scheduler_priority_Schedule+0xf0><== NEVER TAKEN
    return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
 8005e8c:	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(               
 8005e90:	78 01 08 01 	mvhi r1,0x801                                  
 8005e94:	38 21 da 60 	ori r1,r1,0xda60                               
 8005e98:	58 22 00 14 	sw (r1+20),r2                                  
 8005e9c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005ea0:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8005ea4:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8005ea8:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8005eac:	37 9c 00 10 	addi sp,sp,16                                  
 8005eb0:	c3 a0 00 00 	ret                                            
                                                                      

08004c04 <_TOD_Validate>: }; bool _TOD_Validate( const rtems_time_of_day *the_tod ) {
 8004c04:	37 9c ff f0 	addi sp,sp,-16                                 
 8004c08:	5b 8b 00 10 	sw (sp+16),r11                                 
 8004c0c:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8004c10:	5b 8d 00 08 	sw (sp+8),r13                                  
 8004c14:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004c18:	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();                 
 8004c1c:	78 01 08 01 	mvhi r1,0x801                                  
 8004c20:	38 21 d6 90 	ori r1,r1,0xd690                               
 8004c24:	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;                                                    
 8004c28:	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)                                  ||                  
 8004c2c:	45 60 00 22 	be r11,r0,8004cb4 <_TOD_Validate+0xb0>         <== NEVER TAKEN
)                                                                     
{                                                                     
  uint32_t   days_in_month;                                           
  uint32_t   ticks_per_second;                                        
                                                                      
  ticks_per_second = TOD_MICROSECONDS_PER_SECOND /                    
 8004c30:	78 03 08 01 	mvhi r3,0x801                                  
 8004c34:	38 63 da 10 	ori r3,r3,0xda10                               
 8004c38:	28 61 00 00 	lw r1,(r3+0)                                   
 8004c3c:	f8 00 5f 4f 	calli 801c978 <__udivsi3>                      
	    rtems_configuration_get_microseconds_per_tick();                 
  if ((!the_tod)                                  ||                  
 8004c40:	29 62 00 18 	lw r2,(r11+24)                                 
 8004c44:	50 41 00 1c 	bgeu r2,r1,8004cb4 <_TOD_Validate+0xb0>        
      (the_tod->ticks  >= ticks_per_second)       ||                  
 8004c48:	29 62 00 14 	lw r2,(r11+20)                                 
 8004c4c:	34 01 00 3b 	mvi r1,59                                      
 8004c50:	54 41 00 19 	bgu r2,r1,8004cb4 <_TOD_Validate+0xb0>         
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
 8004c54:	29 62 00 10 	lw r2,(r11+16)                                 
 8004c58:	54 41 00 17 	bgu r2,r1,8004cb4 <_TOD_Validate+0xb0>         
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
 8004c5c:	29 62 00 0c 	lw r2,(r11+12)                                 
 8004c60:	34 01 00 17 	mvi r1,23                                      
 8004c64:	54 41 00 14 	bgu r2,r1,8004cb4 <_TOD_Validate+0xb0>         
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
      (the_tod->month  == 0)                      ||                  
 8004c68:	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)      ||                  
 8004c6c:	44 20 00 12 	be r1,r0,8004cb4 <_TOD_Validate+0xb0>          <== NEVER TAKEN
      (the_tod->month  == 0)                      ||                  
 8004c70:	34 02 00 0c 	mvi r2,12                                      
 8004c74:	54 22 00 10 	bgu r1,r2,8004cb4 <_TOD_Validate+0xb0>         
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
 8004c78:	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)    ||                  
 8004c7c:	34 03 07 c3 	mvi r3,1987                                    
 8004c80:	50 62 00 0d 	bgeu r3,r2,8004cb4 <_TOD_Validate+0xb0>        
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
      (the_tod->day    == 0) )                                        
 8004c84:	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)          ||                  
 8004c88:	45 a0 00 0b 	be r13,r0,8004cb4 <_TOD_Validate+0xb0>         <== NEVER TAKEN
 8004c8c:	78 0b 08 01 	mvhi r11,0x801                                 
      (the_tod->day    == 0) )                                        
     return false;                                                    
                                                                      
  if ( (the_tod->year % 4) == 0 )                                     
 8004c90:	20 42 00 03 	andi r2,r2,0x3                                 
 8004c94:	39 6b e3 98 	ori r11,r11,0xe398                             
 8004c98:	5c 40 00 02 	bne r2,r0,8004ca0 <_TOD_Validate+0x9c>         
    days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];       
 8004c9c:	34 21 00 0d 	addi r1,r1,13                                  
  else                                                                
    days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];       
 8004ca0:	34 02 00 02 	mvi r2,2                                       
 8004ca4:	fb ff f1 7b 	calli 8001290 <__ashlsi3>                      
 8004ca8:	b5 61 08 00 	add r1,r11,r1                                  
 8004cac:	28 2c 00 00 	lw r12,(r1+0)                                  
const uint32_t   _TOD_Days_per_month[ 2 ][ 13 ] = {                   
  { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 },              
  { 0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }               
};                                                                    
                                                                      
bool _TOD_Validate(                                                   
 8004cb0:	f1 8d 60 00 	cmpgeu r12,r12,r13                             
                                                                      
  if ( the_tod->day > days_in_month )                                 
    return false;                                                     
                                                                      
  return true;                                                        
}                                                                     
 8004cb4:	b9 80 08 00 	mv r1,r12                                      
 8004cb8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004cbc:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8004cc0:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8004cc4:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8004cc8:	37 9c 00 10 	addi sp,sp,16                                  
 8004ccc:	c3 a0 00 00 	ret                                            
                                                                      

0800614c <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) {
 800614c:	37 9c ff e8 	addi sp,sp,-24                                 
 8006150:	5b 8b 00 18 	sw (sp+24),r11                                 
 8006154:	5b 8c 00 14 	sw (sp+20),r12                                 
 8006158:	5b 8d 00 10 	sw (sp+16),r13                                 
 800615c:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8006160:	5b 8f 00 08 	sw (sp+8),r15                                  
 8006164:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006168:	b8 20 58 00 	mv r11,r1                                      
  States_Control state, original_state;                               
                                                                      
  /*                                                                  
   * Save original state                                              
   */                                                                 
  original_state = the_thread->current_state;                         
 800616c:	28 2f 00 10 	lw r15,(r1+16)                                 
void _Thread_Change_priority(                                         
  Thread_Control   *the_thread,                                       
  Priority_Control  new_priority,                                     
  bool              prepend_it                                        
)                                                                     
{                                                                     
 8006170:	b8 40 60 00 	mv r12,r2                                      
 8006174:	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 );                                
 8006178:	f8 00 03 e6 	calli 8007110 <_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 )                  
 800617c:	29 61 00 14 	lw r1,(r11+20)                                 
 8006180:	44 2c 00 04 	be r1,r12,8006190 <_Thread_Change_priority+0x44>
    _Thread_Set_priority( the_thread, new_priority );                 
 8006184:	b9 60 08 00 	mv r1,r11                                      
 8006188:	b9 80 10 00 	mv r2,r12                                      
 800618c:	f8 00 03 c1 	calli 8007090 <_Thread_Set_priority>           
                                                                      
  _ISR_Disable( level );                                              
 8006190:	90 00 60 00 	rcsr r12,IE                                    
 8006194:	34 0d ff fe 	mvi r13,-2                                     
 8006198:	a1 8d 68 00 	and r13,r12,r13                                
 800619c:	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;                                  
 80061a0:	29 61 00 10 	lw r1,(r11+16)                                 
  if ( state != STATES_TRANSIENT ) {                                  
 80061a4:	34 03 00 04 	mvi r3,4                                       
 80061a8:	21 e2 00 04 	andi r2,r15,0x4                                
 80061ac:	44 23 00 0f 	be r1,r3,80061e8 <_Thread_Change_priority+0x9c>
    /* Only clear the transient state if it wasn't set already */     
    if ( ! _States_Is_transient( original_state ) )                   
 80061b0:	5c 40 00 04 	bne r2,r0,80061c0 <_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);                         
 80061b4:	34 02 ff fb 	mvi r2,-5                                      
 80061b8:	a0 22 10 00 	and r2,r1,r2                                   
      the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
 80061bc:	59 62 00 10 	sw (r11+16),r2                                 
    _ISR_Enable( level );                                             
 80061c0:	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);              
 80061c4:	78 03 08 01 	mvhi r3,0x801                                  
 80061c8:	38 63 bb a4 	ori r3,r3,0xbba4                               
 80061cc:	28 62 00 00 	lw r2,(r3+0)                                   
 80061d0:	a0 22 08 00 	and r1,r1,r2                                   
    if ( _States_Is_waiting_on_thread_queue( state ) ) {              
 80061d4:	44 20 00 1f 	be r1,r0,8006250 <_Thread_Change_priority+0x104>
      _Thread_queue_Requeue( the_thread->Wait.queue, the_thread );    
 80061d8:	29 61 00 44 	lw r1,(r11+68)                                 
 80061dc:	b9 60 10 00 	mv r2,r11                                      
 80061e0:	f8 00 03 77 	calli 8006fbc <_Thread_queue_Requeue>          
 80061e4:	e0 00 00 1b 	bi 8006250 <_Thread_Change_priority+0x104>     
    }                                                                 
    return;                                                           
  }                                                                   
                                                                      
  /* Only clear the transient state if it wasn't set already */       
  if ( ! _States_Is_transient( original_state ) ) {                   
 80061e8:	5c 40 00 0a 	bne r2,r0,8006210 <_Thread_Change_priority+0xc4><== NEVER TAKEN
 80061ec:	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 );
 80061f0:	59 60 00 10 	sw (r11+16),r0                                 
 80061f4:	38 21 d0 18 	ori r1,r1,0xd018                               
                                                                      
    if ( prepend_it )                                                 
 80061f8:	45 c2 00 03 	be r14,r2,8006204 <_Thread_Change_priority+0xb8>
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue_first(                   
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  _Scheduler.Operations.enqueue_first( the_thread );                  
 80061fc:	28 22 00 28 	lw r2,(r1+40)                                  
 8006200:	e0 00 00 02 	bi 8006208 <_Thread_Change_priority+0xbc>      
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue(                         
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  _Scheduler.Operations.enqueue( the_thread );                        
 8006204:	28 22 00 24 	lw r2,(r1+36)                                  
 8006208:	b9 60 08 00 	mv r1,r11                                      
 800620c:	d8 40 00 00 	call r2                                        
      _Scheduler_Enqueue_first( the_thread );                         
    else                                                              
      _Scheduler_Enqueue( the_thread );                               
  }                                                                   
                                                                      
  _ISR_Flash( level );                                                
 8006210:	d0 0c 00 00 	wcsr IE,r12                                    
 8006214:	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();                                   
 8006218:	78 01 08 01 	mvhi r1,0x801                                  
 800621c:	38 21 d0 18 	ori r1,r1,0xd018                               
 8006220:	28 21 00 08 	lw r1,(r1+8)                                   
 8006224:	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 );                       
 8006228:	78 01 08 01 	mvhi r1,0x801                                  
 800622c:	38 21 da 60 	ori r1,r1,0xda60                               
 8006230:	28 22 00 10 	lw r2,(r1+16)                                  
   *  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() &&                       
 8006234:	28 23 00 14 	lw r3,(r1+20)                                  
 8006238:	44 43 00 05 	be r2,r3,800624c <_Thread_Change_priority+0x100>
 800623c:	40 42 00 70 	lbu r2,(r2+112)                                
 8006240:	44 40 00 03 	be r2,r0,800624c <_Thread_Change_priority+0x100>
       _Thread_Executing->is_preemptible )                            
    _Thread_Dispatch_necessary = true;                                
 8006244:	34 02 00 01 	mvi r2,1                                       
 8006248:	30 22 00 0c 	sb (r1+12),r2                                  
  _ISR_Enable( level );                                               
 800624c:	d0 0c 00 00 	wcsr IE,r12                                    
}                                                                     
 8006250:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006254:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8006258:	2b 8c 00 14 	lw r12,(sp+20)                                 
 800625c:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8006260:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8006264:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8006268:	37 9c 00 18 	addi sp,sp,24                                  
 800626c:	c3 a0 00 00 	ret                                            
                                                                      

0800c8a4 <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) {
 800c8a4:	37 9c ff f8 	addi sp,sp,-8                                  
 800c8a8:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 800c8ac:	37 82 00 08 	addi r2,sp,8                                   
 800c8b0:	f8 00 00 99 	calli 800cb14 <_Thread_Get>                    
  switch ( location ) {                                               
 800c8b4:	2b 82 00 08 	lw r2,(sp+8)                                   
 800c8b8:	5c 40 00 0a 	bne r2,r0,800c8e0 <_Thread_Delay_ended+0x3c>   <== NEVER TAKEN
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_Clear_state(                                            
 800c8bc:	78 03 08 02 	mvhi r3,0x802                                  
 800c8c0:	38 63 5f d0 	ori r3,r3,0x5fd0                               
 800c8c4:	28 62 00 00 	lw r2,(r3+0)                                   
 800c8c8:	fb ff ff 6d 	calli 800c67c <_Thread_Clear_state>            
   *                                                                  
   * This routine decrements the thread dispatch level.               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_decrement_disable_level(void)
  {                                                                   
    uint32_t level = _Thread_Dispatch_disable_level;                  
 800c8cc:	78 01 08 02 	mvhi r1,0x802                                  
 800c8d0:	38 21 8a 00 	ori r1,r1,0x8a00                               
 800c8d4:	28 22 00 00 	lw r2,(r1+0)                                   
                                                                      
    --level;                                                          
 800c8d8:	34 42 ff ff 	addi r2,r2,-1                                  
    _Thread_Dispatch_disable_level = level;                           
 800c8dc:	58 22 00 00 	sw (r1+0),r2                                   
          | STATES_INTERRUPTIBLE_BY_SIGNAL                            
      );                                                              
      _Thread_Unnest_dispatch();                                      
      break;                                                          
  }                                                                   
}                                                                     
 800c8e0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800c8e4:	37 9c 00 08 	addi sp,sp,8                                   
 800c8e8:	c3 a0 00 00 	ret                                            
                                                                      

0800643c <_Thread_Dispatch>: #if defined(RTEMS_SMP) #include <rtems/score/smp.h> #endif void _Thread_Dispatch( void ) {
 800643c:	37 9c ff c0 	addi sp,sp,-64                                 
 8006440:	5b 8b 00 38 	sw (sp+56),r11                                 
 8006444:	5b 8c 00 34 	sw (sp+52),r12                                 
 8006448:	5b 8d 00 30 	sw (sp+48),r13                                 
 800644c:	5b 8e 00 2c 	sw (sp+44),r14                                 
 8006450:	5b 8f 00 28 	sw (sp+40),r15                                 
 8006454:	5b 90 00 24 	sw (sp+36),r16                                 
 8006458:	5b 91 00 20 	sw (sp+32),r17                                 
 800645c:	5b 92 00 1c 	sw (sp+28),r18                                 
 8006460:	5b 93 00 18 	sw (sp+24),r19                                 
 8006464:	5b 94 00 14 	sw (sp+20),r20                                 
 8006468:	5b 95 00 10 	sw (sp+16),r21                                 
 800646c:	5b 96 00 0c 	sw (sp+12),r22                                 
 8006470:	5b 97 00 08 	sw (sp+8),r23                                  
 8006474:	5b 9d 00 04 	sw (sp+4),ra                                   
  #endif                                                              
                                                                      
  /*                                                                  
   *  Now determine if we need to perform a dispatch on the current CPU.
   */                                                                 
  executing   = _Thread_Executing;                                    
 8006478:	78 01 08 01 	mvhi r1,0x801                                  
 800647c:	38 21 da 60 	ori r1,r1,0xda60                               
 8006480:	28 2c 00 10 	lw r12,(r1+16)                                 
  _ISR_Disable( level );                                              
 8006484:	90 00 18 00 	rcsr r3,IE                                     
 8006488:	34 01 ff fe 	mvi r1,-2                                      
 800648c:	a0 61 08 00 	and r1,r3,r1                                   
 8006490:	d0 01 00 00 	wcsr IE,r1                                     
  while ( _Thread_Dispatch_necessary == true ) {                      
 8006494:	78 0b 08 01 	mvhi r11,0x801                                 
   * This routine sets thread dispatch level to the                   
   * value passed in.                                                 
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_set_disable_level(uint32_t value)
  {                                                                   
    _Thread_Dispatch_disable_level = value;                           
 8006498:	78 14 08 01 	mvhi r20,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;            
 800649c:	78 0f 08 01 	mvhi r15,0x801                                 
 */                                                                   
static inline void _TOD_Get_uptime(                                   
  Timestamp_Control *time                                             
)                                                                     
{                                                                     
  _TOD_Get_with_nanoseconds( time, &_TOD.uptime );                    
 80064a0:	78 13 08 01 	mvhi r19,0x801                                 
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
 80064a4:	78 12 08 01 	mvhi r18,0x801                                 
  #ifdef RTEMS_SMP                                                    
    _Thread_Unnest_dispatch();                                        
  #endif                                                              
                                                                      
  _API_extensions_Run_post_switch( executing );                       
}                                                                     
 80064a8:	78 11 08 01 	mvhi r17,0x801                                 
{                                                                     
  const Chain_Control *chain = &_User_extensions_Switches_list;       
  const Chain_Node    *tail = _Chain_Immutable_tail( chain );         
  const Chain_Node    *node = _Chain_Immutable_first( chain );        
                                                                      
  while ( node != tail ) {                                            
 80064ac:	78 10 08 01 	mvhi r16,0x801                                 
  /*                                                                  
   *  Now determine if we need to perform a dispatch on the current CPU.
   */                                                                 
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
 80064b0:	39 6b da 60 	ori r11,r11,0xda60                             
 80064b4:	3a 94 d8 e0 	ori r20,r20,0xd8e0                             
 80064b8:	34 15 00 01 	mvi r21,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;            
 80064bc:	39 ef d8 78 	ori r15,r15,0xd878                             
    _ISR_Enable( level );                                             
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
 80064c0:	37 97 00 3c 	addi r23,sp,60                                 
 80064c4:	3a 73 d8 68 	ori r19,r19,0xd868                             
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
 80064c8:	3a 52 d9 4c 	ori r18,r18,0xd94c                             
  #ifdef RTEMS_SMP                                                    
    _Thread_Unnest_dispatch();                                        
  #endif                                                              
                                                                      
  _API_extensions_Run_post_switch( executing );                       
}                                                                     
 80064cc:	3a 31 d1 a0 	ori r17,r17,0xd1a0                             
 80064d0:	3a 10 d1 a4 	ori r16,r16,0xd1a4                             
#endif                                                                
#endif                                                                
                                                                      
    executing = _Thread_Executing;                                    
                                                                      
    _ISR_Disable( level );                                            
 80064d4:	34 16 ff fe 	mvi r22,-2                                     
  /*                                                                  
   *  Now determine if we need to perform a dispatch on the current CPU.
   */                                                                 
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
 80064d8:	e0 00 00 35 	bi 80065ac <_Thread_Dispatch+0x170>            
    heir = _Thread_Heir;                                              
 80064dc:	29 6d 00 14 	lw r13,(r11+20)                                
 80064e0:	5a 95 00 00 	sw (r20+0),r21                                 
    #ifndef RTEMS_SMP                                                 
      _Thread_Dispatch_set_disable_level( 1 );                        
    #endif                                                            
    _Thread_Dispatch_necessary = false;                               
 80064e4:	31 60 00 0c 	sb (r11+12),r0                                 
    _Thread_Executing = heir;                                         
 80064e8:	59 6d 00 10 	sw (r11+16),r13                                
    /*                                                                
     *  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 )                                          
 80064ec:	45 ac 00 33 	be r13,r12,80065b8 <_Thread_Dispatch+0x17c>    
     */                                                               
#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 )
 80064f0:	29 a1 00 78 	lw r1,(r13+120)                                
 80064f4:	5c 35 00 03 	bne r1,r21,8006500 <_Thread_Dispatch+0xc4>     
      heir->cpu_time_budget = _Thread_Ticks_per_timeslice;            
 80064f8:	29 e1 00 00 	lw r1,(r15+0)                                  
 80064fc:	59 a1 00 74 	sw (r13+116),r1                                
                                                                      
    _ISR_Enable( level );                                             
 8006500:	d0 03 00 00 	wcsr IE,r3                                     
 8006504:	ba 60 10 00 	mv r2,r19                                      
 8006508:	ba e0 08 00 	mv r1,r23                                      
 800650c:	fb ff f8 cd 	calli 8004840 <_TOD_Get_with_nanoseconds>      
  #ifdef RTEMS_SMP                                                    
    _Thread_Unnest_dispatch();                                        
  #endif                                                              
                                                                      
  _API_extensions_Run_post_switch( executing );                       
}                                                                     
 8006510:	2b 83 00 40 	lw r3,(sp+64)                                  
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
 8006514:	29 82 00 84 	lw r2,(r12+132)                                
 8006518:	29 85 00 80 	lw r5,(r12+128)                                
 800651c:	2b 81 00 3c 	lw r1,(sp+60)                                  
 8006520:	b4 62 10 00 	add r2,r3,r2                                   
 8006524:	f4 62 20 00 	cmpgu r4,r3,r2                                 
 8006528:	b4 25 28 00 	add r5,r1,r5                                   
 800652c:	b4 85 28 00 	add r5,r4,r5                                   
static inline void _Timestamp64_implementation_Add_to(                
  Timestamp64_Control       *_time,                                   
  const Timestamp64_Control *_add                                     
)                                                                     
{                                                                     
  *_time += *_add;                                                    
 8006530:	29 64 00 24 	lw r4,(r11+36)                                 
 8006534:	29 66 00 20 	lw r6,(r11+32)                                 
 8006538:	c8 44 20 00 	sub r4,r2,r4                                   
 800653c:	f4 82 10 00 	cmpgu r2,r4,r2                                 
 8006540:	c8 a6 28 00 	sub r5,r5,r6                                   
 8006544:	c8 a2 10 00 	sub r2,r5,r2                                   
 8006548:	59 82 00 80 	sw (r12+128),r2                                
 800654c:	59 84 00 84 	sw (r12+132),r4                                
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
        _Thread_Time_of_last_context_switch = uptime;                 
 8006550:	59 63 00 24 	sw (r11+36),r3                                 
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
 8006554:	2a 43 00 00 	lw r3,(r18+0)                                  
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
        _Thread_Time_of_last_context_switch = uptime;                 
 8006558:	59 61 00 20 	sw (r11+32),r1                                 
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
 800655c:	44 60 00 05 	be r3,r0,8006570 <_Thread_Dispatch+0x134>      <== NEVER TAKEN
      executing->libc_reent = *_Thread_libc_reent;                    
 8006560:	28 61 00 00 	lw r1,(r3+0)                                   
 8006564:	59 81 01 10 	sw (r12+272),r1                                
      *_Thread_libc_reent = heir->libc_reent;                         
 8006568:	29 a1 01 10 	lw r1,(r13+272)                                
 800656c:	58 61 00 00 	sw (r3+0),r1                                   
  #ifdef RTEMS_SMP                                                    
    _Thread_Unnest_dispatch();                                        
  #endif                                                              
                                                                      
  _API_extensions_Run_post_switch( executing );                       
}                                                                     
 8006570:	2a 2e 00 00 	lw r14,(r17+0)                                 
 8006574:	e0 00 00 06 	bi 800658c <_Thread_Dispatch+0x150>            
    const User_extensions_Switch_control *extension =                 
      (const User_extensions_Switch_control *) node;                  
                                                                      
    (*extension->thread_switch)( executing, heir );                   
 8006578:	29 c3 00 08 	lw r3,(r14+8)                                  
 800657c:	b9 80 08 00 	mv r1,r12                                      
 8006580:	b9 a0 10 00 	mv r2,r13                                      
 8006584:	d8 60 00 00 	call r3                                        
 8006588:	29 ce 00 00 	lw r14,(r14+0)                                 
{                                                                     
  const Chain_Control *chain = &_User_extensions_Switches_list;       
  const Chain_Node    *tail = _Chain_Immutable_tail( chain );         
  const Chain_Node    *node = _Chain_Immutable_first( chain );        
                                                                      
  while ( node != tail ) {                                            
 800658c:	5d d0 ff fb 	bne r14,r16,8006578 <_Thread_Dispatch+0x13c>   
    if ( executing->fp_context != NULL )                              
      _Context_Save_fp( &executing->fp_context );                     
#endif                                                                
#endif                                                                
                                                                      
    _Context_Switch( &executing->Registers, &heir->Registers );       
 8006590:	35 81 00 bc 	addi r1,r12,188                                
 8006594:	35 a2 00 bc 	addi r2,r13,188                                
 8006598:	f8 00 05 0f 	calli 80079d4 <_CPU_Context_switch>            
    if ( executing->fp_context != NULL )                              
      _Context_Restore_fp( &executing->fp_context );                  
#endif                                                                
#endif                                                                
                                                                      
    executing = _Thread_Executing;                                    
 800659c:	29 6c 00 10 	lw r12,(r11+16)                                
                                                                      
    _ISR_Disable( level );                                            
 80065a0:	90 00 18 00 	rcsr r3,IE                                     
 80065a4:	a0 76 08 00 	and r1,r3,r22                                  
 80065a8:	d0 01 00 00 	wcsr IE,r1                                     
  /*                                                                  
   *  Now determine if we need to perform a dispatch on the current CPU.
   */                                                                 
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
 80065ac:	41 61 00 0c 	lbu r1,(r11+12)                                
 80065b0:	20 21 00 ff 	andi r1,r1,0xff                                
 80065b4:	5c 20 ff ca 	bne r1,r0,80064dc <_Thread_Dispatch+0xa0>      
 80065b8:	78 01 08 01 	mvhi r1,0x801                                  
 80065bc:	38 21 d8 e0 	ori r1,r1,0xd8e0                               
 80065c0:	58 20 00 00 	sw (r1+0),r0                                   
post_switch:                                                          
  #ifndef RTEMS_SMP                                                   
    _Thread_Dispatch_set_disable_level( 0 );                          
  #endif                                                              
                                                                      
  _ISR_Enable( level );                                               
 80065c4:	d0 03 00 00 	wcsr IE,r3                                     
  #ifdef RTEMS_SMP                                                    
    _Thread_Unnest_dispatch();                                        
  #endif                                                              
                                                                      
  _API_extensions_Run_post_switch( executing );                       
}                                                                     
 80065c8:	78 01 08 01 	mvhi r1,0x801                                  
 80065cc:	38 21 d9 50 	ori r1,r1,0xd950                               
{                                                                     
  const Chain_Control *chain = &_API_extensions_Post_switch_list;     
  const Chain_Node    *tail = _Chain_Immutable_tail( chain );         
  const Chain_Node    *node = _Chain_Immutable_first( chain );        
                                                                      
  while ( node != tail ) {                                            
 80065d0:	78 0d 08 01 	mvhi r13,0x801                                 
 80065d4:	28 2b 00 00 	lw r11,(r1+0)                                  
 80065d8:	39 ad d9 54 	ori r13,r13,0xd954                             
 80065dc:	e0 00 00 05 	bi 80065f0 <_Thread_Dispatch+0x1b4>            
    const API_extensions_Post_switch_control *post_switch =           
      (const API_extensions_Post_switch_control *) node;              
                                                                      
    (*post_switch->hook)( executing );                                
 80065e0:	29 62 00 08 	lw r2,(r11+8)                                  
 80065e4:	b9 80 08 00 	mv r1,r12                                      
 80065e8:	d8 40 00 00 	call r2                                        
 80065ec:	29 6b 00 00 	lw r11,(r11+0)                                 
{                                                                     
  const Chain_Control *chain = &_API_extensions_Post_switch_list;     
  const Chain_Node    *tail = _Chain_Immutable_tail( chain );         
  const Chain_Node    *node = _Chain_Immutable_first( chain );        
                                                                      
  while ( node != tail ) {                                            
 80065f0:	5d 6d ff fc 	bne r11,r13,80065e0 <_Thread_Dispatch+0x1a4>   
 80065f4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80065f8:	2b 8b 00 38 	lw r11,(sp+56)                                 
 80065fc:	2b 8c 00 34 	lw r12,(sp+52)                                 
 8006600:	2b 8d 00 30 	lw r13,(sp+48)                                 
 8006604:	2b 8e 00 2c 	lw r14,(sp+44)                                 
 8006608:	2b 8f 00 28 	lw r15,(sp+40)                                 
 800660c:	2b 90 00 24 	lw r16,(sp+36)                                 
 8006610:	2b 91 00 20 	lw r17,(sp+32)                                 
 8006614:	2b 92 00 1c 	lw r18,(sp+28)                                 
 8006618:	2b 93 00 18 	lw r19,(sp+24)                                 
 800661c:	2b 94 00 14 	lw r20,(sp+20)                                 
 8006620:	2b 95 00 10 	lw r21,(sp+16)                                 
 8006624:	2b 96 00 0c 	lw r22,(sp+12)                                 
 8006628:	2b 97 00 08 	lw r23,(sp+8)                                  
 800662c:	37 9c 00 40 	addi sp,sp,64                                  
 8006630:	c3 a0 00 00 	ret                                            
                                                                      

0800b644 <_Thread_Handler>: #define INIT_NAME __main #define EXECUTE_GLOBAL_CONSTRUCTORS #endif void _Thread_Handler( void ) {
 800b644:	37 9c ff f4 	addi sp,sp,-12                                 
 800b648:	5b 8b 00 0c 	sw (sp+12),r11                                 
 800b64c:	5b 8c 00 08 	sw (sp+8),r12                                  
 800b650:	5b 9d 00 04 	sw (sp+4),ra                                   
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    static bool doneConstructors;                                     
    bool doCons;                                                      
  #endif                                                              
                                                                      
  executing = _Thread_Executing;                                      
 800b654:	78 01 08 01 	mvhi r1,0x801                                  
 800b658:	38 21 da 60 	ori r1,r1,0xda60                               
 800b65c:	28 2b 00 10 	lw r11,(r1+16)                                 
                                                                      
  /*                                                                  
   * have to put level into a register for those cpu's that use       
   * inline asm here                                                  
   */                                                                 
  level = executing->Start.isr_level;                                 
 800b660:	29 61 00 a8 	lw r1,(r11+168)                                
  _ISR_Set_level(level);                                              
 800b664:	64 21 00 00 	cmpei r1,r1,0                                  
 800b668:	d0 01 00 00 	wcsr IE,r1                                     
      doCons = !doneConstructors                                      
        && _Objects_Get_API( executing->Object.id ) != OBJECTS_INTERNAL_API;
      if (doCons)                                                     
        doneConstructors = true;                                      
    #else                                                             
      doCons = !doneConstructors;                                     
 800b66c:	78 01 08 01 	mvhi r1,0x801                                  
 800b670:	38 21 d7 2c 	ori r1,r1,0xd72c                               
 800b674:	40 2c 00 00 	lbu r12,(r1+0)                                 
      doneConstructors = true;                                        
 800b678:	34 02 00 01 	mvi r2,1                                       
 800b67c:	30 22 00 00 	sb (r1+0),r2                                   
  );                                                                  
}                                                                     
                                                                      
static inline void _User_extensions_Thread_begin( Thread_Control *executing )
{                                                                     
  _User_extensions_Iterate(                                           
 800b680:	78 02 08 00 	mvhi r2,0x800                                  
 800b684:	b9 60 08 00 	mv r1,r11                                      
 800b688:	38 42 73 3c 	ori r2,r2,0x733c                               
 800b68c:	fb ff ef 48 	calli 80073ac <_User_extensions_Iterate>       
  _User_extensions_Thread_begin( executing );                         
                                                                      
  /*                                                                  
   *  At this point, the dispatch disable level BETTER be 1.          
   */                                                                 
  _Thread_Enable_dispatch();                                          
 800b690:	fb ff eb e9 	calli 8006634 <_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 (doCons) /* && (volatile void *)_init) */ {                    
 800b694:	5d 80 00 02 	bne r12,r0,800b69c <_Thread_Handler+0x58>      
      INIT_NAME ();                                                   
 800b698:	fb ff d2 5a 	calli 8000000 <RamBase>                        
        _Thread_Enable_dispatch();                                    
      #endif                                                          
    }                                                                 
 #endif                                                               
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
 800b69c:	29 61 00 90 	lw r1,(r11+144)                                
 800b6a0:	5c 20 00 05 	bne r1,r0,800b6b4 <_Thread_Handler+0x70>       <== NEVER TAKEN
    executing->Wait.return_argument =                                 
      (*(Thread_Entry_numeric) executing->Start.entry_point)(         
 800b6a4:	29 62 00 8c 	lw r2,(r11+140)                                
 800b6a8:	29 61 00 98 	lw r1,(r11+152)                                
 800b6ac:	d8 40 00 00 	call r2                                        
      #endif                                                          
    }                                                                 
 #endif                                                               
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
    executing->Wait.return_argument =                                 
 800b6b0:	59 61 00 28 	sw (r11+40),r1                                 
  }                                                                   
}                                                                     
                                                                      
static inline void _User_extensions_Thread_exitted( Thread_Control *executing )
{                                                                     
  _User_extensions_Iterate(                                           
 800b6b4:	78 02 08 00 	mvhi r2,0x800                                  
 800b6b8:	b9 60 08 00 	mv r1,r11                                      
 800b6bc:	38 42 73 5c 	ori r2,r2,0x735c                               
 800b6c0:	fb ff ef 3b 	calli 80073ac <_User_extensions_Iterate>       
   *  able to fit in a (void *).                                      
   */                                                                 
                                                                      
  _User_extensions_Thread_exitted( executing );                       
                                                                      
  _Internal_error_Occurred(                                           
 800b6c4:	34 01 00 00 	mvi r1,0                                       
 800b6c8:	34 02 00 01 	mvi r2,1                                       
 800b6cc:	34 03 00 05 	mvi r3,5                                       
 800b6d0:	fb ff e5 f0 	calli 8004e90 <_Internal_error_Occurred>       
                                                                      

0800693c <_Thread_Handler_initialization>: #if defined(RTEMS_SMP) #include <rtems/bspsmp.h> #endif void _Thread_Handler_initialization(void) {
 800693c:	37 9c ff f4 	addi sp,sp,-12                                 
 8006940:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8006944:	5b 8c 00 08 	sw (sp+8),r12                                  
 8006948:	5b 9d 00 04 	sw (sp+4),ra                                   
  uint32_t ticks_per_timeslice =                                      
 800694c:	78 01 08 01 	mvhi r1,0x801                                  
 8006950:	38 21 b2 0c 	ori r1,r1,0xb20c                               
  #if defined(RTEMS_MULTIPROCESSING)                                  
    uint32_t maximum_proxies =                                        
      _Configuration_MP_table->maximum_proxies;                       
  #endif                                                              
                                                                      
  if ( rtems_configuration_get_stack_allocate_hook() == NULL ||       
 8006954:	28 23 00 28 	lw r3,(r1+40)                                  
  #include <rtems/bspsmp.h>                                           
#endif                                                                
                                                                      
void _Thread_Handler_initialization(void)                             
{                                                                     
  uint32_t ticks_per_timeslice =                                      
 8006958:	28 2b 00 14 	lw r11,(r1+20)                                 
    rtems_configuration_get_ticks_per_timeslice();                    
  uint32_t maximum_extensions =                                       
 800695c:	28 2c 00 08 	lw r12,(r1+8)                                  
    rtems_configuration_get_maximum_extensions();                     
  rtems_stack_allocate_init_hook stack_allocate_init_hook =           
 8006960:	28 22 00 24 	lw r2,(r1+36)                                  
  #if defined(RTEMS_MULTIPROCESSING)                                  
    uint32_t maximum_proxies =                                        
      _Configuration_MP_table->maximum_proxies;                       
  #endif                                                              
                                                                      
  if ( rtems_configuration_get_stack_allocate_hook() == NULL ||       
 8006964:	44 60 00 03 	be r3,r0,8006970 <_Thread_Handler_initialization+0x34><== NEVER TAKEN
 8006968:	28 23 00 2c 	lw r3,(r1+44)                                  
 800696c:	5c 60 00 05 	bne r3,r0,8006980 <_Thread_Handler_initialization+0x44>
       rtems_configuration_get_stack_free_hook() == NULL)             
    _Internal_error_Occurred(                                         
 8006970:	34 01 00 00 	mvi r1,0                                       
 8006974:	34 02 00 01 	mvi r2,1                                       
 8006978:	34 03 00 0e 	mvi r3,14                                      
 800697c:	fb ff f9 45 	calli 8004e90 <_Internal_error_Occurred>       
      INTERNAL_ERROR_CORE,                                            
      true,                                                           
      INTERNAL_ERROR_BAD_STACK_HOOK                                   
    );                                                                
                                                                      
  if ( stack_allocate_init_hook != NULL )                             
 8006980:	44 40 00 03 	be r2,r0,800698c <_Thread_Handler_initialization+0x50>
    (*stack_allocate_init_hook)( rtems_configuration_get_stack_space_size() );
 8006984:	28 21 00 04 	lw r1,(r1+4)                                   
 8006988:	d8 40 00 00 	call r2                                        
                                                                      
  _Thread_Dispatch_necessary = false;                                 
 800698c:	78 01 08 01 	mvhi r1,0x801                                  
 8006990:	38 21 da 60 	ori r1,r1,0xda60                               
 8006994:	30 20 00 0c 	sb (r1+12),r0                                  
  _Thread_Executing         = NULL;                                   
 8006998:	58 20 00 10 	sw (r1+16),r0                                  
  _Thread_Heir              = NULL;                                   
 800699c:	58 20 00 14 	sw (r1+20),r0                                  
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )        
  _Thread_Allocated_fp      = NULL;                                   
#endif                                                                
                                                                      
  _Thread_Maximum_extensions = maximum_extensions;                    
 80069a0:	78 01 08 01 	mvhi r1,0x801                                  
 80069a4:	38 21 d9 5c 	ori r1,r1,0xd95c                               
 80069a8:	58 2c 00 00 	sw (r1+0),r12                                  
                                                                      
  _Thread_Ticks_per_timeslice  = ticks_per_timeslice;                 
 80069ac:	78 01 08 01 	mvhi r1,0x801                                  
 80069b0:	38 21 d8 78 	ori r1,r1,0xd878                               
 80069b4:	58 2b 00 00 	sw (r1+0),r11                                  
  #if defined(RTEMS_MULTIPROCESSING)                                  
    if ( _System_state_Is_multiprocessing )                           
      maximum_internal_threads += 1;                                  
  #endif                                                              
                                                                      
  _Objects_Initialize_information(                                    
 80069b8:	78 01 08 01 	mvhi r1,0x801                                  
 80069bc:	38 21 d9 d0 	ori r1,r1,0xd9d0                               
 80069c0:	34 02 00 01 	mvi r2,1                                       
 80069c4:	34 03 00 01 	mvi r3,1                                       
 80069c8:	34 04 00 01 	mvi r4,1                                       
 80069cc:	34 05 01 28 	mvi r5,296                                     
 80069d0:	34 06 00 00 	mvi r6,0                                       
 80069d4:	34 07 00 08 	mvi r7,8                                       
 80069d8:	fb ff fb 1d 	calli 800564c <_Objects_Initialize_information>
      false,                      /* true if this is a global object class */
      NULL                        /* Proxy extraction support callout */
    #endif                                                            
  );                                                                  
                                                                      
}                                                                     
 80069dc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80069e0:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80069e4:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80069e8:	37 9c 00 0c 	addi sp,sp,12                                  
 80069ec:	c3 a0 00 00 	ret                                            
                                                                      

08006c80 <_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 ) {
 8006c80:	37 9c ff cc 	addi sp,sp,-52                                 
 8006c84:	5b 8b 00 34 	sw (sp+52),r11                                 
 8006c88:	5b 8c 00 30 	sw (sp+48),r12                                 
 8006c8c:	5b 8d 00 2c 	sw (sp+44),r13                                 
 8006c90:	5b 8e 00 28 	sw (sp+40),r14                                 
 8006c94:	5b 8f 00 24 	sw (sp+36),r15                                 
 8006c98:	5b 90 00 20 	sw (sp+32),r16                                 
 8006c9c:	5b 91 00 1c 	sw (sp+28),r17                                 
 8006ca0:	5b 92 00 18 	sw (sp+24),r18                                 
 8006ca4:	5b 93 00 14 	sw (sp+20),r19                                 
 8006ca8:	5b 94 00 10 	sw (sp+16),r20                                 
 8006cac:	5b 95 00 0c 	sw (sp+12),r21                                 
 8006cb0:	5b 96 00 08 	sw (sp+8),r22                                  
 8006cb4:	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;                        
 8006cb8:	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                                       
)                                                                     
{                                                                     
 8006cbc:	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 );                        
 8006cc0:	34 41 00 3c 	addi r1,r2,60                                  
                                                                      
  head->next = tail;                                                  
 8006cc4:	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 );                        
 8006cc8:	34 41 00 38 	addi r1,r2,56                                  
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
 8006ccc:	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;                                              
 8006cd0:	58 40 00 3c 	sw (r2+60),r0                                  
 8006cd4:	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);      
 8006cd8:	ba 00 08 00 	mv r1,r16                                      
 8006cdc:	34 02 00 06 	mvi r2,6                                       
 8006ce0:	b8 60 a8 00 	mv r21,r3                                      
 8006ce4:	f8 00 4d a3 	calli 801a370 <__lshrsi3>                      
 8006ce8:	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;                         
 8006cec:	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 );      
 8006cf0:	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;                             
 8006cf4:	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;                         
 8006cf8:	3a 52 d0 d8 	ori r18,r18,0xd0d8                             
                                                                      
  _ISR_Disable( level );                                              
 8006cfc:	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 ) )                  
 8006d00:	5c 20 00 2e 	bne r1,r0,8006db8 <_Thread_queue_Enqueue_priority+0x138>
    goto restart_reverse_search;                                      
                                                                      
restart_forward_search:                                               
  search_priority = PRIORITY_MINIMUM - 1;                             
  _ISR_Disable( level );                                              
 8006d04:	34 14 ff fe 	mvi r20,-2                                     
 8006d08:	90 00 78 00 	rcsr r15,IE                                    
 8006d0c:	a1 f4 90 00 	and r18,r15,r20                                
 8006d10:	d0 12 00 00 	wcsr IE,r18                                    
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  *level_p = level;                                                   
  return the_thread_queue->sync_state;                                
}                                                                     
 8006d14:	34 02 00 01 	mvi r2,1                                       
 8006d18:	b9 c0 08 00 	mv r1,r14                                      
 8006d1c:	f8 00 4d 47 	calli 801a238 <__ashlsi3>                      
 8006d20:	b4 2e 08 00 	add r1,r1,r14                                  
 8006d24:	34 02 00 02 	mvi r2,2                                       
 8006d28:	f8 00 4d 44 	calli 801a238 <__ashlsi3>                      
 8006d2c:	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 );          
 8006d30:	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;                             
 8006d34:	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 ) ) {  
 8006d38:	e0 00 00 0b 	bi 8006d64 <_Thread_queue_Enqueue_priority+0xe4>
    search_priority = search_thread->current_priority;                
 8006d3c:	29 71 00 14 	lw r17,(r11+20)                                
    if ( priority <= search_priority )                                
 8006d40:	52 30 00 12 	bgeu r17,r16,8006d88 <_Thread_queue_Enqueue_priority+0x108>
      break;                                                          
    search_priority = search_thread->current_priority;                
    if ( priority <= search_priority )                                
      break;                                                          
#endif                                                                
    _ISR_Flash( level );                                              
 8006d44:	d0 0f 00 00 	wcsr IE,r15                                    
 8006d48:	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);                     
 8006d4c:	29 61 00 10 	lw r1,(r11+16)                                 
 8006d50:	a2 61 08 00 	and r1,r19,r1                                  
    if ( !_States_Are_set( search_thread->current_state, block_state) ) {
 8006d54:	5c 20 00 03 	bne r1,r0,8006d60 <_Thread_queue_Enqueue_priority+0xe0><== ALWAYS TAKEN
      _ISR_Enable( level );                                           
 8006d58:	d0 0f 00 00 	wcsr IE,r15                                    <== NOT EXECUTED
      goto restart_forward_search;                                    
 8006d5c:	e3 ff ff eb 	bi 8006d08 <_Thread_queue_Enqueue_priority+0x88><== NOT EXECUTED
    }                                                                 
    search_thread =                                                   
       (Thread_Control *)search_thread->Object.Node.next;             
 8006d60:	29 6b 00 00 	lw r11,(r11+0)                                 
RTEMS_INLINE_ROUTINE bool _Chain_Is_tail(                             
  const Chain_Control *the_chain,                                     
  const Chain_Node    *the_node                                       
)                                                                     
{                                                                     
  return (the_node == _Chain_Immutable_tail( the_chain ));            
 8006d64:	34 02 00 01 	mvi r2,1                                       
 8006d68:	b9 c0 08 00 	mv r1,r14                                      
 8006d6c:	f8 00 4d 33 	calli 801a238 <__ashlsi3>                      
 8006d70:	b4 2e 08 00 	add r1,r1,r14                                  
 8006d74:	34 02 00 02 	mvi r2,2                                       
 8006d78:	f8 00 4d 30 	calli 801a238 <__ashlsi3>                      
 8006d7c:	b5 a1 08 00 	add r1,r13,r1                                  
 8006d80:	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 ) ) {  
 8006d84:	5d 61 ff ee 	bne r11,r1,8006d3c <_Thread_queue_Enqueue_priority+0xbc>
    }                                                                 
    search_thread =                                                   
       (Thread_Control *)search_thread->Object.Node.next;             
  }                                                                   
                                                                      
  if ( the_thread_queue->sync_state !=                                
 8006d88:	29 a3 00 30 	lw r3,(r13+48)                                 
 8006d8c:	34 02 00 01 	mvi r2,1                                       
 8006d90:	b9 e0 08 00 	mv r1,r15                                      
 8006d94:	5c 62 00 3f 	bne r3,r2,8006e90 <_Thread_queue_Enqueue_priority+0x210><== NEVER TAKEN
       THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )                   
    goto synchronize;                                                 
                                                                      
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
 8006d98:	59 a0 00 30 	sw (r13+48),r0                                 
                                                                      
  if ( priority == search_priority )                                  
 8006d9c:	46 11 00 36 	be r16,r17,8006e74 <_Thread_queue_Enqueue_priority+0x1f4>
    goto equal_priority;                                              
                                                                      
  search_node   = (Chain_Node *) search_thread;                       
  previous_node = search_node->previous;                              
 8006da0:	29 61 00 04 	lw r1,(r11+4)                                  
  the_node      = (Chain_Node *) the_thread;                          
                                                                      
  the_node->next         = search_node;                               
 8006da4:	59 8b 00 00 	sw (r12+0),r11                                 
  the_node->previous     = previous_node;                             
 8006da8:	59 81 00 04 	sw (r12+4),r1                                  
  previous_node->next    = the_node;                                  
 8006dac:	58 2c 00 00 	sw (r1+0),r12                                  
  search_node->previous  = the_node;                                  
 8006db0:	59 6c 00 04 	sw (r11+4),r12                                 
 8006db4:	e0 00 00 2c 	bi 8006e64 <_Thread_queue_Enqueue_priority+0x1e4>
  the_thread->Wait.queue = the_thread_queue;                          
  _ISR_Enable( level );                                               
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
                                                                      
restart_reverse_search:                                               
  search_priority     = PRIORITY_MAXIMUM + 1;                         
 8006db8:	42 51 00 00 	lbu r17,(r18+0)                                
 8006dbc:	36 31 00 01 	addi r17,r17,1                                 
                                                                      
  _ISR_Disable( level );                                              
 8006dc0:	90 00 78 00 	rcsr r15,IE                                    
 8006dc4:	a1 f6 a0 00 	and r20,r15,r22                                
 8006dc8:	d0 14 00 00 	wcsr IE,r20                                    
   *                                                                  
   *  WARNING! Returning with interrupts disabled!                    
   */                                                                 
  *level_p = level;                                                   
  return the_thread_queue->sync_state;                                
}                                                                     
 8006dcc:	34 02 00 01 	mvi r2,1                                       
 8006dd0:	b9 c0 08 00 	mv r1,r14                                      
 8006dd4:	f8 00 4d 19 	calli 801a238 <__ashlsi3>                      
 8006dd8:	b4 2e 08 00 	add r1,r1,r14                                  
 8006ddc:	34 02 00 02 	mvi r2,2                                       
 8006de0:	f8 00 4d 16 	calli 801a238 <__ashlsi3>                      
 8006de4:	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 );           
 8006de8:	28 2b 00 08 	lw r11,(r1+8)                                  
  while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {  
 8006dec:	e0 00 00 0b 	bi 8006e18 <_Thread_queue_Enqueue_priority+0x198>
    search_priority = search_thread->current_priority;                
 8006df0:	29 71 00 14 	lw r17,(r11+20)                                
    if ( priority >= search_priority )                                
 8006df4:	52 11 00 11 	bgeu r16,r17,8006e38 <_Thread_queue_Enqueue_priority+0x1b8>
      break;                                                          
    search_priority = search_thread->current_priority;                
    if ( priority >= search_priority )                                
      break;                                                          
#endif                                                                
    _ISR_Flash( level );                                              
 8006df8:	d0 0f 00 00 	wcsr IE,r15                                    
 8006dfc:	d0 14 00 00 	wcsr IE,r20                                    
 8006e00:	29 61 00 10 	lw r1,(r11+16)                                 
 8006e04:	a2 61 08 00 	and r1,r19,r1                                  
    if ( !_States_Are_set( search_thread->current_state, block_state) ) {
 8006e08:	5c 20 00 03 	bne r1,r0,8006e14 <_Thread_queue_Enqueue_priority+0x194>
      _ISR_Enable( level );                                           
 8006e0c:	d0 0f 00 00 	wcsr IE,r15                                    
      goto restart_reverse_search;                                    
 8006e10:	e3 ff ff ea 	bi 8006db8 <_Thread_queue_Enqueue_priority+0x138>
    }                                                                 
    search_thread = (Thread_Control *)                                
                         search_thread->Object.Node.previous;         
 8006e14:	29 6b 00 04 	lw r11,(r11+4)                                 
RTEMS_INLINE_ROUTINE bool _Chain_Is_head(                             
  const Chain_Control *the_chain,                                     
  const Chain_Node    *the_node                                       
)                                                                     
{                                                                     
  return (the_node == _Chain_Immutable_head( the_chain ));            
 8006e18:	34 02 00 01 	mvi r2,1                                       
 8006e1c:	b9 c0 08 00 	mv r1,r14                                      
 8006e20:	f8 00 4d 06 	calli 801a238 <__ashlsi3>                      
 8006e24:	b4 2e 08 00 	add r1,r1,r14                                  
 8006e28:	34 02 00 02 	mvi r2,2                                       
 8006e2c:	f8 00 4d 03 	calli 801a238 <__ashlsi3>                      
 8006e30:	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 ) ) {  
 8006e34:	5d 61 ff ef 	bne r11,r1,8006df0 <_Thread_queue_Enqueue_priority+0x170>
    }                                                                 
    search_thread = (Thread_Control *)                                
                         search_thread->Object.Node.previous;         
  }                                                                   
                                                                      
  if ( the_thread_queue->sync_state !=                                
 8006e38:	29 a3 00 30 	lw r3,(r13+48)                                 
 8006e3c:	34 02 00 01 	mvi r2,1                                       
 8006e40:	b9 e0 08 00 	mv r1,r15                                      
 8006e44:	5c 62 00 13 	bne r3,r2,8006e90 <_Thread_queue_Enqueue_priority+0x210><== NEVER TAKEN
       THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )                   
    goto synchronize;                                                 
                                                                      
  the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
 8006e48:	59 a0 00 30 	sw (r13+48),r0                                 
                                                                      
  if ( priority == search_priority )                                  
 8006e4c:	46 11 00 0a 	be r16,r17,8006e74 <_Thread_queue_Enqueue_priority+0x1f4>
    goto equal_priority;                                              
                                                                      
  search_node = (Chain_Node *) search_thread;                         
  next_node   = search_node->next;                                    
 8006e50:	29 61 00 00 	lw r1,(r11+0)                                  
  the_node    = (Chain_Node *) the_thread;                            
                                                                      
  the_node->next          = next_node;                                
  the_node->previous      = search_node;                              
 8006e54:	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;                                
 8006e58:	59 81 00 00 	sw (r12+0),r1                                  
  the_node->previous      = search_node;                              
  search_node->next       = the_node;                                 
 8006e5c:	59 6c 00 00 	sw (r11+0),r12                                 
  next_node->previous    = the_node;                                  
 8006e60:	58 2c 00 04 	sw (r1+4),r12                                  
  the_thread->Wait.queue = the_thread_queue;                          
 8006e64:	59 8d 00 44 	sw (r12+68),r13                                
  _ISR_Enable( level );                                               
 8006e68:	d0 0f 00 00 	wcsr IE,r15                                    
  return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;                  
 8006e6c:	34 01 00 01 	mvi r1,1                                       
 8006e70:	e0 00 00 0a 	bi 8006e98 <_Thread_queue_Enqueue_priority+0x218>
                                                                      
equal_priority:               /* add at end of priority group */      
  search_node   = _Chain_Tail( &search_thread->Wait.Block2n );        
  previous_node = search_node->previous;                              
 8006e74:	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 );        
 8006e78:	35 62 00 3c 	addi r2,r11,60                                 
  previous_node = search_node->previous;                              
  the_node      = (Chain_Node *) the_thread;                          
                                                                      
  the_node->next         = search_node;                               
 8006e7c:	59 82 00 00 	sw (r12+0),r2                                  
  the_node->previous     = previous_node;                             
 8006e80:	59 81 00 04 	sw (r12+4),r1                                  
  previous_node->next    = the_node;                                  
 8006e84:	58 2c 00 00 	sw (r1+0),r12                                  
  search_node->previous  = the_node;                                  
 8006e88:	59 6c 00 40 	sw (r11+64),r12                                
 8006e8c:	e3 ff ff f6 	bi 8006e64 <_Thread_queue_Enqueue_priority+0x1e4>
   *  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;                                                   
 8006e90:	5a a1 00 00 	sw (r21+0),r1                                  <== NOT EXECUTED
  return the_thread_queue->sync_state;                                
 8006e94:	29 a1 00 30 	lw r1,(r13+48)                                 <== NOT EXECUTED
}                                                                     
 8006e98:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006e9c:	2b 8b 00 34 	lw r11,(sp+52)                                 
 8006ea0:	2b 8c 00 30 	lw r12,(sp+48)                                 
 8006ea4:	2b 8d 00 2c 	lw r13,(sp+44)                                 
 8006ea8:	2b 8e 00 28 	lw r14,(sp+40)                                 
 8006eac:	2b 8f 00 24 	lw r15,(sp+36)                                 
 8006eb0:	2b 90 00 20 	lw r16,(sp+32)                                 
 8006eb4:	2b 91 00 1c 	lw r17,(sp+28)                                 
 8006eb8:	2b 92 00 18 	lw r18,(sp+24)                                 
 8006ebc:	2b 93 00 14 	lw r19,(sp+20)                                 
 8006ec0:	2b 94 00 10 	lw r20,(sp+16)                                 
 8006ec4:	2b 95 00 0c 	lw r21,(sp+12)                                 
 8006ec8:	2b 96 00 08 	lw r22,(sp+8)                                  
 8006ecc:	37 9c 00 34 	addi sp,sp,52                                  
 8006ed0:	c3 a0 00 00 	ret                                            
                                                                      

08006fbc <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) {
 8006fbc:	37 9c ff ec 	addi sp,sp,-20                                 
 8006fc0:	5b 8b 00 10 	sw (sp+16),r11                                 
 8006fc4:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8006fc8:	5b 8d 00 08 	sw (sp+8),r13                                  
 8006fcc:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006fd0:	b8 20 58 00 	mv r11,r1                                      
 8006fd4:	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 )                                            
 8006fd8:	44 20 00 19 	be r1,r0,800703c <_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 ) {
 8006fdc:	28 22 00 34 	lw r2,(r1+52)                                  
 8006fe0:	34 01 00 01 	mvi r1,1                                       
 8006fe4:	5c 41 00 16 	bne r2,r1,800703c <_Thread_queue_Requeue+0x80> <== NEVER TAKEN
    Thread_queue_Control *tq = the_thread_queue;                      
    ISR_Level             level;                                      
    ISR_Level             level_ignored;                              
                                                                      
    _ISR_Disable( level );                                            
 8006fe8:	90 00 68 00 	rcsr r13,IE                                    
 8006fec:	34 01 ff fe 	mvi r1,-2                                      
 8006ff0:	a1 a1 08 00 	and r1,r13,r1                                  
 8006ff4:	d0 01 00 00 	wcsr IE,r1                                     
 8006ff8:	78 03 08 01 	mvhi r3,0x801                                  
 8006ffc:	38 63 bb a4 	ori r3,r3,0xbba4                               
 8007000:	29 82 00 10 	lw r2,(r12+16)                                 
 8007004:	28 61 00 00 	lw r1,(r3+0)                                   
 8007008:	a0 41 08 00 	and r1,r2,r1                                   
    if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
 800700c:	44 20 00 0b 	be r1,r0,8007038 <_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;
 8007010:	34 01 00 01 	mvi r1,1                                       
 8007014:	59 61 00 30 	sw (r11+48),r1                                 
      _Thread_queue_Enter_critical_section( tq );                     
      _Thread_queue_Extract_priority_helper( tq, the_thread, true );  
 8007018:	b9 80 10 00 	mv r2,r12                                      
 800701c:	b9 60 08 00 	mv r1,r11                                      
 8007020:	34 03 00 01 	mvi r3,1                                       
 8007024:	f8 00 0b ce 	calli 8009f5c <_Thread_queue_Extract_priority_helper>
      (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
 8007028:	b9 60 08 00 	mv r1,r11                                      
 800702c:	b9 80 10 00 	mv r2,r12                                      
 8007030:	37 83 00 14 	addi r3,sp,20                                  
 8007034:	fb ff ff 13 	calli 8006c80 <_Thread_queue_Enqueue_priority> 
    }                                                                 
    _ISR_Enable( level );                                             
 8007038:	d0 0d 00 00 	wcsr IE,r13                                    
  }                                                                   
}                                                                     
 800703c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8007040:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8007044:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8007048:	2b 8d 00 08 	lw r13,(sp+8)                                  
 800704c:	37 9c 00 14 	addi sp,sp,20                                  
 8007050:	c3 a0 00 00 	ret                                            
                                                                      

08007054 <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) {
 8007054:	37 9c ff f8 	addi sp,sp,-8                                  
 8007058:	5b 9d 00 04 	sw (sp+4),ra                                   
  Thread_Control       *the_thread;                                   
  Objects_Locations     location;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 800705c:	37 82 00 08 	addi r2,sp,8                                   
 8007060:	fb ff fd 81 	calli 8006664 <_Thread_Get>                    
  switch ( location ) {                                               
 8007064:	2b 82 00 08 	lw r2,(sp+8)                                   
 8007068:	5c 40 00 07 	bne r2,r0,8007084 <_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 );                    
 800706c:	f8 00 0b f8 	calli 800a04c <_Thread_queue_Process_timeout>  
   *                                                                  
   * This routine decrements the thread dispatch level.               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_decrement_disable_level(void)
  {                                                                   
    uint32_t level = _Thread_Dispatch_disable_level;                  
 8007070:	78 01 08 01 	mvhi r1,0x801                                  
 8007074:	38 21 d8 e0 	ori r1,r1,0xd8e0                               
 8007078:	28 22 00 00 	lw r2,(r1+0)                                   
                                                                      
    --level;                                                          
 800707c:	34 42 ff ff 	addi r2,r2,-1                                  
    _Thread_Dispatch_disable_level = level;                           
 8007080:	58 22 00 00 	sw (r1+0),r2                                   
      _Thread_Unnest_dispatch();                                      
      break;                                                          
  }                                                                   
}                                                                     
 8007084:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8007088:	37 9c 00 08 	addi sp,sp,8                                   
 800708c:	c3 a0 00 00 	ret                                            
                                                                      

08015648 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) {
 8015648:	37 9c ff a8 	addi sp,sp,-88                                 
 801564c:	5b 8b 00 40 	sw (sp+64),r11                                 
 8015650:	5b 8c 00 3c 	sw (sp+60),r12                                 
 8015654:	5b 8d 00 38 	sw (sp+56),r13                                 
 8015658:	5b 8e 00 34 	sw (sp+52),r14                                 
 801565c:	5b 8f 00 30 	sw (sp+48),r15                                 
 8015660:	5b 90 00 2c 	sw (sp+44),r16                                 
 8015664:	5b 91 00 28 	sw (sp+40),r17                                 
 8015668:	5b 92 00 24 	sw (sp+36),r18                                 
 801566c:	5b 93 00 20 	sw (sp+32),r19                                 
 8015670:	5b 94 00 1c 	sw (sp+28),r20                                 
 8015674:	5b 95 00 18 	sw (sp+24),r21                                 
 8015678:	5b 96 00 14 	sw (sp+20),r22                                 
 801567c:	5b 97 00 10 	sw (sp+16),r23                                 
 8015680:	5b 98 00 0c 	sw (sp+12),r24                                 
 8015684:	5b 99 00 08 	sw (sp+8),r25                                  
 8015688:	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;            
 801568c:	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                                             
)                                                                     
{                                                                     
 8015690:	b8 20 58 00 	mv r11,r1                                      
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 8015694:	37 82 00 54 	addi r2,sp,84                                  
 8015698:	37 81 00 50 	addi r1,sp,80                                  
 801569c:	37 8f 00 44 	addi r15,sp,68                                 
 80156a0:	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();
 80156a4:	78 0d 08 03 	mvhi r13,0x803                                 
 80156a8:	5b 82 00 50 	sw (sp+80),r2                                  
  head->previous = NULL;                                              
 80156ac:	5b 80 00 54 	sw (sp+84),r0                                  
  tail->previous = head;                                              
 80156b0:	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;                                                  
 80156b4:	5b 91 00 44 	sw (sp+68),r17                                 
  head->previous = NULL;                                              
 80156b8:	5b 80 00 48 	sw (sp+72),r0                                  
  tail->previous = head;                                              
 80156bc:	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;                                    
 80156c0:	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;            
 80156c4:	3a 10 dd b8 	ori r16,r16,0xddb8                             
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
 80156c8:	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();
 80156cc:	39 ad dc 50 	ori r13,r13,0xdc50                             
     /*                                                               
      *  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 ); 
 80156d0:	35 6e 00 68 	addi r14,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 ) {       
 80156d4:	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 );                                            
 80156d8:	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;                                       
 80156dc:	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;                                              
 80156e0:	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 );        
 80156e4:	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 );             
 80156e8:	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;                                    
 80156ec:	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;            
 80156f0:	2a 02 00 00 	lw r2,(r16+0)                                  
                                                                      
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
 80156f4:	29 63 00 3c 	lw r3,(r11+60)                                 
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
 80156f8:	ba 60 08 00 	mv r1,r19                                      
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
 80156fc:	59 62 00 3c 	sw (r11+60),r2                                 
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
 8015700:	c8 43 10 00 	sub r2,r2,r3                                   
 8015704:	b9 e0 18 00 	mv r3,r15                                      
 8015708:	f8 00 14 ea 	calli 801aab0 <_Watchdog_Adjust_to_chain>      
 801570c:	78 05 08 03 	mvhi r5,0x803                                  
 8015710:	38 a5 6f 2c 	ori r5,r5,0x6f2c                               
 8015714:	28 a4 00 00 	lw r4,(r5+0)                                   
 8015718:	29 a1 00 00 	lw r1,(r13+0)                                  
 801571c:	29 a2 00 04 	lw r2,(r13+4)                                  
 8015720:	34 03 00 00 	mvi r3,0                                       
 8015724:	f8 00 51 0c 	calli 8029b54 <__divdi3>                       
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
  Watchdog_Interval last_snapshot = watchdogs->last_snapshot;         
 8015728:	29 64 00 74 	lw r4,(r11+116)                                
 801572c:	b8 40 60 00 	mv r12,r2                                      
  /*                                                                  
   *  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 ) {                                   
 8015730:	50 82 00 06 	bgeu r4,r2,8015748 <_Timer_server_Body+0x100>  
    /*                                                                
     *  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 );
 8015734:	b9 c0 08 00 	mv r1,r14                                      
 8015738:	c8 44 10 00 	sub r2,r2,r4                                   
 801573c:	b9 e0 18 00 	mv r3,r15                                      
 8015740:	f8 00 14 dc 	calli 801aab0 <_Watchdog_Adjust_to_chain>      
 8015744:	e0 00 00 06 	bi 801575c <_Timer_server_Body+0x114>          
                                                                      
  } else if ( snapshot < last_snapshot ) {                            
 8015748:	50 44 00 05 	bgeu r2,r4,801575c <_Timer_server_Body+0x114>  
     /*                                                               
      *  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 ); 
 801574c:	b9 c0 08 00 	mv r1,r14                                      
 8015750:	34 02 00 01 	mvi r2,1                                       
 8015754:	c8 8c 18 00 	sub r3,r4,r12                                  
 8015758:	f8 00 14 9f 	calli 801a9d4 <_Watchdog_Adjust>               
  }                                                                   
                                                                      
  watchdogs->last_snapshot = snapshot;                                
 801575c:	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 ) {                 
 8015760:	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 );
 8015764:	29 63 00 78 	lw r3,(r11+120)                                
 8015768:	b8 60 08 00 	mv r1,r3                                       
 801576c:	f8 00 03 74 	calli 801653c <_Chain_Get>                     
 8015770:	b8 20 10 00 	mv r2,r1                                       
                                                                      
    if ( timer == NULL ) {                                            
 8015774:	44 20 00 09 	be r1,r0,8015798 <_Timer_server_Body+0x150>    <== ALWAYS TAKEN
static void _Timer_server_Insert_timer(                               
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
 8015778:	28 23 00 38 	lw r3,(r1+56)                                  <== NOT EXECUTED
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
 801577c:	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 ) {                 
 8015780:	44 6c 00 03 	be r3,r12,801578c <_Timer_server_Body+0x144>   <== NOT EXECUTED
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
 8015784:	5c 78 ff f8 	bne r3,r24,8015764 <_Timer_server_Body+0x11c>  <== NOT EXECUTED
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
 8015788:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 801578c:	34 42 00 10 	addi r2,r2,16                                  <== NOT EXECUTED
 8015790:	f8 00 14 ea 	calli 801ab38 <_Watchdog_Insert>               <== NOT EXECUTED
 8015794:	e3 ff ff f4 	bi 8015764 <_Timer_server_Body+0x11c>          <== 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 );                                            
 8015798:	90 00 10 00 	rcsr r2,IE                                     
 801579c:	a0 52 08 00 	and r1,r2,r18                                  
 80157a0:	d0 01 00 00 	wcsr IE,r1                                     
    if ( _Chain_Is_empty( insert_chain ) ) {                          
 80157a4:	2b 81 00 50 	lw r1,(sp+80)                                  
 80157a8:	5c 37 00 06 	bne r1,r23,80157c0 <_Timer_server_Body+0x178>  <== NEVER TAKEN
      ts->insert_chain = NULL;                                        
 80157ac:	59 60 00 78 	sw (r11+120),r0                                
      _ISR_Enable( level );                                           
 80157b0:	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 ) ) {                          
 80157b4:	2b 81 00 44 	lw r1,(sp+68)                                  
 80157b8:	5c 31 00 04 	bne r1,r17,80157c8 <_Timer_server_Body+0x180>  
 80157bc:	e0 00 00 15 	bi 8015810 <_Timer_server_Body+0x1c8>          
      ts->insert_chain = NULL;                                        
      _ISR_Enable( level );                                           
                                                                      
      break;                                                          
    } else {                                                          
      _ISR_Enable( level );                                           
 80157c0:	d0 02 00 00 	wcsr IE,r2                                     <== NOT EXECUTED
 80157c4:	e3 ff ff cb 	bi 80156f0 <_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 );                                        
 80157c8:	90 00 18 00 	rcsr r3,IE                                     
 80157cc:	a0 72 08 00 	and r1,r3,r18                                  
 80157d0:	d0 01 00 00 	wcsr IE,r1                                     
      initialized = false;                                            
    }                                                                 
  #endif                                                              
                                                                      
  return status;                                                      
}                                                                     
 80157d4:	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))                                   
 80157d8:	44 51 00 0c 	be r2,r17,8015808 <_Timer_server_Body+0x1c0>   
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
 80157dc:	28 44 00 00 	lw r4,(r2+0)                                   
                                                                      
  head->next = new_first;                                             
 80157e0:	5b 84 00 44 	sw (sp+68),r4                                  
  new_first->previous = head;                                         
 80157e4:	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 ) {                                     
 80157e8:	44 40 00 08 	be r2,r0,8015808 <_Timer_server_Body+0x1c0>    <== NEVER TAKEN
          watchdog->state = WATCHDOG_INACTIVE;                        
 80157ec:	58 40 00 08 	sw (r2+8),r0                                   
          _ISR_Enable( level );                                       
 80157f0:	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 );    
 80157f4:	28 43 00 1c 	lw r3,(r2+28)                                  
 80157f8:	28 41 00 20 	lw r1,(r2+32)                                  
 80157fc:	28 42 00 24 	lw r2,(r2+36)                                  
 8015800:	d8 60 00 00 	call r3                                        
      }                                                               
 8015804:	e3 ff ff f1 	bi 80157c8 <_Timer_server_Body+0x180>          
        watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
        if ( watchdog != NULL ) {                                     
          watchdog->state = WATCHDOG_INACTIVE;                        
          _ISR_Enable( level );                                       
        } else {                                                      
          _ISR_Enable( level );                                       
 8015808:	d0 03 00 00 	wcsr IE,r3                                     
 801580c:	e3 ff ff b8 	bi 80156ec <_Timer_server_Body+0xa4>           
         *  the active flag of the timer server is true.              
         */                                                           
        (*watchdog->routine)( watchdog->id, watchdog->user_data );    
      }                                                               
    } else {                                                          
      ts->active = false;                                             
 8015810:	31 60 00 7c 	sb (r11+124),r0                                
                                                                      
      /*                                                              
       *  Block until there is something to do.                       
       */                                                             
      _Thread_Disable_dispatch();                                     
 8015814:	fb ff ff 4d 	calli 8015548 <_Thread_Disable_dispatch>       
        _Thread_Set_state( ts->thread, STATES_DELAYING );             
 8015818:	29 61 00 00 	lw r1,(r11+0)                                  
 801581c:	34 02 00 08 	mvi r2,8                                       
 8015820:	f8 00 13 5b 	calli 801a58c <_Thread_Set_state>              
        _Timer_server_Reset_interval_system_watchdog( ts );           
 8015824:	b9 60 08 00 	mv r1,r11                                      
 8015828:	fb ff ff 4e 	calli 8015560 <_Timer_server_Reset_interval_system_watchdog>
        _Timer_server_Reset_tod_system_watchdog( ts );                
 801582c:	b9 60 08 00 	mv r1,r11                                      
 8015830:	fb ff ff 69 	calli 80155d4 <_Timer_server_Reset_tod_system_watchdog>
      _Thread_Enable_dispatch();                                      
 8015834:	f8 00 10 81 	calli 8019a38 <_Thread_Enable_dispatch>        
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
 8015838:	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;                                              
 801583c:	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 );        
 8015840:	f8 00 15 1b 	calli 801acac <_Watchdog_Remove>               
                                                                      
static void _Timer_server_Stop_tod_system_watchdog(                   
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );             
 8015844:	ba 80 08 00 	mv r1,r20                                      
 8015848:	f8 00 15 19 	calli 801acac <_Watchdog_Remove>               
 801584c:	e3 ff ff a8 	bi 80156ec <_Timer_server_Body+0xa4>           
                                                                      

08015850 <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) {
 8015850:	37 9c ff f0 	addi sp,sp,-16                                 
 8015854:	5b 8b 00 10 	sw (sp+16),r11                                 
 8015858:	5b 8c 00 0c 	sw (sp+12),r12                                 
 801585c:	5b 8d 00 08 	sw (sp+8),r13                                  
 8015860:	5b 9d 00 04 	sw (sp+4),ra                                   
 8015864:	b8 20 58 00 	mv r11,r1                                      
  if ( ts->insert_chain == NULL ) {                                   
 8015868:	28 21 00 78 	lw r1,(r1+120)                                 
                                                                      
static void _Timer_server_Schedule_operation_method(                  
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
 801586c:	b8 40 60 00 	mv r12,r2                                      
  if ( ts->insert_chain == NULL ) {                                   
 8015870:	5c 20 00 49 	bne r1,r0,8015994 <_Timer_server_Schedule_operation_method+0x144><== 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();                                         
 8015874:	fb ff ff 35 	calli 8015548 <_Thread_Disable_dispatch>       
                                                                      
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
 8015878:	29 81 00 38 	lw r1,(r12+56)                                 
 801587c:	34 02 00 01 	mvi r2,1                                       
 8015880:	5c 22 00 1d 	bne r1,r2,80158f4 <_Timer_server_Schedule_operation_method+0xa4>
    /*                                                                
     *  We have to advance the last known ticks value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
 8015884:	90 00 10 00 	rcsr r2,IE                                     
 8015888:	34 01 ff fe 	mvi r1,-2                                      
 801588c:	a0 41 08 00 	and r1,r2,r1                                   
 8015890:	d0 01 00 00 	wcsr IE,r1                                     
    snapshot = _Watchdog_Ticks_since_boot;                            
 8015894:	78 01 08 03 	mvhi r1,0x803                                  
 8015898:	38 21 dd b8 	ori r1,r1,0xddb8                               
 801589c:	28 23 00 00 	lw r3,(r1+0)                                   
      initialized = false;                                            
    }                                                                 
  #endif                                                              
                                                                      
  return status;                                                      
}                                                                     
 80158a0:	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;             
 80158a4:	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 );                            
 80158a8:	35 64 00 34 	addi r4,r11,52                                 
    if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) {        
 80158ac:	44 24 00 07 	be r1,r4,80158c8 <_Timer_server_Schedule_operation_method+0x78>
      /*                                                              
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
                                                                      
      delta_interval = first_watchdog->delta_interval;                
 80158b0:	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;                               
 80158b4:	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;                                           
 80158b8:	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) {                                   
 80158bc:	50 a6 00 02 	bgeu r5,r6,80158c4 <_Timer_server_Schedule_operation_method+0x74><== NEVER TAKEN
        delta_interval -= delta;                                      
 80158c0:	c8 c5 20 00 	sub r4,r6,r5                                   
      } else {                                                        
        delta_interval = 0;                                           
      }                                                               
      first_watchdog->delta_interval = delta_interval;                
 80158c4:	58 24 00 10 	sw (r1+16),r4                                  
    }                                                                 
    ts->Interval_watchdogs.last_snapshot = snapshot;                  
 80158c8:	59 63 00 3c 	sw (r11+60),r3                                 
    _ISR_Enable( level );                                             
 80158cc:	d0 02 00 00 	wcsr IE,r2                                     
                                                                      
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
 80158d0:	35 61 00 30 	addi r1,r11,48                                 
 80158d4:	35 82 00 10 	addi r2,r12,16                                 
 80158d8:	f8 00 14 98 	calli 801ab38 <_Watchdog_Insert>               
                                                                      
    if ( !ts->active ) {                                              
 80158dc:	41 61 00 7c 	lbu r1,(r11+124)                               
 80158e0:	20 21 00 ff 	andi r1,r1,0xff                                
 80158e4:	5c 20 00 2a 	bne r1,r0,801598c <_Timer_server_Schedule_operation_method+0x13c>
      _Timer_server_Reset_interval_system_watchdog( ts );             
 80158e8:	b9 60 08 00 	mv r1,r11                                      
 80158ec:	fb ff ff 1d 	calli 8015560 <_Timer_server_Reset_interval_system_watchdog>
 80158f0:	e0 00 00 27 	bi 801598c <_Timer_server_Schedule_operation_method+0x13c>
    }                                                                 
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
 80158f4:	34 02 00 03 	mvi r2,3                                       
 80158f8:	5c 22 00 25 	bne r1,r2,801598c <_Timer_server_Schedule_operation_method+0x13c>
    /*                                                                
     *  We have to advance the last known seconds value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
 80158fc:	90 00 68 00 	rcsr r13,IE                                    
 8015900:	34 01 ff fe 	mvi r1,-2                                      
 8015904:	a1 a1 08 00 	and r1,r13,r1                                  
 8015908:	d0 01 00 00 	wcsr IE,r1                                     
    snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();        
 801590c:	78 03 08 03 	mvhi r3,0x803                                  
 8015910:	78 05 08 03 	mvhi r5,0x803                                  
 8015914:	38 63 dc 50 	ori r3,r3,0xdc50                               
 8015918:	38 a5 6f 2c 	ori r5,r5,0x6f2c                               
 801591c:	28 61 00 00 	lw r1,(r3+0)                                   
 8015920:	28 62 00 04 	lw r2,(r3+4)                                   
 8015924:	28 a4 00 00 	lw r4,(r5+0)                                   
 8015928:	34 03 00 00 	mvi r3,0                                       
 801592c:	f8 00 50 8a 	calli 8029b54 <__divdi3>                       
      initialized = false;                                            
    }                                                                 
  #endif                                                              
                                                                      
  return status;                                                      
}                                                                     
 8015930:	29 61 00 68 	lw r1,(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();        
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
 8015934:	29 65 00 74 	lw r5,(r11+116)                                
 8015938:	35 63 00 6c 	addi r3,r11,108                                
    if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {             
 801593c:	44 23 00 0a 	be r1,r3,8015964 <_Timer_server_Schedule_operation_method+0x114>
      first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );   
      delta_interval = first_watchdog->delta_interval;                
 8015940:	28 24 00 10 	lw r4,(r1+16)                                  
        }                                                             
      } else {                                                        
        /*                                                            
         *  Someone put us in the past.                               
         */                                                           
        delta = last_snapshot - snapshot;                             
 8015944:	b4 85 18 00 	add r3,r4,r5                                   
        delta_interval += delta;                                      
 8015948:	c8 62 18 00 	sub r3,r3,r2                                   
    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 ) {                               
 801594c:	50 a2 00 05 	bgeu r5,r2,8015960 <_Timer_server_Schedule_operation_method+0x110>
        /*                                                            
         *  We advanced in time.                                      
         */                                                           
        delta = snapshot - last_snapshot;                             
 8015950:	c8 45 28 00 	sub r5,r2,r5                                   
        if (delta_interval > delta) {                                 
          delta_interval -= delta;                                    
        } else {                                                      
          delta_interval = 0;                                         
 8015954:	34 03 00 00 	mvi r3,0                                       
      if ( snapshot > last_snapshot ) {                               
        /*                                                            
         *  We advanced in time.                                      
         */                                                           
        delta = snapshot - last_snapshot;                             
        if (delta_interval > delta) {                                 
 8015958:	50 a4 00 02 	bgeu r5,r4,8015960 <_Timer_server_Schedule_operation_method+0x110><== NEVER TAKEN
          delta_interval -= delta;                                    
 801595c:	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;                
 8015960:	58 23 00 10 	sw (r1+16),r3                                  
    }                                                                 
    ts->TOD_watchdogs.last_snapshot = snapshot;                       
 8015964:	59 62 00 74 	sw (r11+116),r2                                
    _ISR_Enable( level );                                             
 8015968:	d0 0d 00 00 	wcsr IE,r13                                    
                                                                      
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
 801596c:	35 61 00 68 	addi r1,r11,104                                
 8015970:	35 82 00 10 	addi r2,r12,16                                 
 8015974:	f8 00 14 71 	calli 801ab38 <_Watchdog_Insert>               
                                                                      
    if ( !ts->active ) {                                              
 8015978:	41 61 00 7c 	lbu r1,(r11+124)                               
 801597c:	20 21 00 ff 	andi r1,r1,0xff                                
 8015980:	5c 20 00 03 	bne r1,r0,801598c <_Timer_server_Schedule_operation_method+0x13c><== NEVER TAKEN
      _Timer_server_Reset_tod_system_watchdog( ts );                  
 8015984:	b9 60 08 00 	mv r1,r11                                      
 8015988:	fb ff ff 13 	calli 80155d4 <_Timer_server_Reset_tod_system_watchdog>
    }                                                                 
  }                                                                   
                                                                      
  _Thread_Enable_dispatch();                                          
 801598c:	f8 00 10 2b 	calli 8019a38 <_Thread_Enable_dispatch>        
 8015990:	e0 00 00 03 	bi 801599c <_Timer_server_Schedule_operation_method+0x14c>
     *  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 );           
 8015994:	29 61 00 78 	lw r1,(r11+120)                                <== NOT EXECUTED
 8015998:	f8 00 02 dd 	calli 801650c <_Chain_Append>                  <== NOT EXECUTED
  }                                                                   
}                                                                     
 801599c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80159a0:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80159a4:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80159a8:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80159ac:	37 9c 00 10 	addi sp,sp,16                                  
 80159b0:	c3 a0 00 00 	ret                                            
                                                                      

080074a4 <_User_extensions_Handler_initialization>: } } void _User_extensions_Handler_initialization(void) {
 80074a4:	37 9c ff f4 	addi sp,sp,-12                                 
 80074a8:	5b 8b 00 08 	sw (sp+8),r11                                  
 80074ac:	5b 9d 00 04 	sw (sp+4),ra                                   
  uint32_t number_of_initial_extensions =                             
 80074b0:	78 01 08 01 	mvhi r1,0x801                                  
 80074b4:	38 21 b2 0c 	ori r1,r1,0xb20c                               
 80074b8:	28 2b 00 40 	lw r11,(r1+64)                                 
    rtems_configuration_get_number_of_initial_extensions();           
                                                                      
  if ( number_of_initial_extensions > 0 ) {                           
 80074bc:	45 60 00 0d 	be r11,r0,80074f0 <_User_extensions_Handler_initialization+0x4c><== NEVER TAKEN
    User_extensions_Switch_control *initial_extension_switch_controls =
      _Workspace_Allocate_or_fatal_error(                             
        number_of_initial_extensions                                  
          * sizeof( *initial_extension_switch_controls )              
 80074c0:	34 02 00 01 	mvi r2,1                                       
 80074c4:	b9 60 08 00 	mv r1,r11                                      
 80074c8:	f8 00 4b 5c 	calli 801a238 <__ashlsi3>                      
 80074cc:	34 02 00 02 	mvi r2,2                                       
 80074d0:	b4 2b 08 00 	add r1,r1,r11                                  
 80074d4:	f8 00 4b 59 	calli 801a238 <__ashlsi3>                      
  uint32_t number_of_initial_extensions =                             
    rtems_configuration_get_number_of_initial_extensions();           
                                                                      
  if ( number_of_initial_extensions > 0 ) {                           
    User_extensions_Switch_control *initial_extension_switch_controls =
      _Workspace_Allocate_or_fatal_error(                             
 80074d8:	f8 00 01 30 	calli 8007998 <_Workspace_Allocate_or_fatal_error>
        number_of_initial_extensions                                  
          * sizeof( *initial_extension_switch_controls )              
      );                                                              
    User_extensions_Switch_context ctx = { initial_extension_switch_controls };
                                                                      
    _User_extensions_Iterate( &ctx, _User_extensions_Switch_visitor );
 80074dc:	78 02 08 00 	mvhi r2,0x800                                  
    User_extensions_Switch_control *initial_extension_switch_controls =
      _Workspace_Allocate_or_fatal_error(                             
        number_of_initial_extensions                                  
          * sizeof( *initial_extension_switch_controls )              
      );                                                              
    User_extensions_Switch_context ctx = { initial_extension_switch_controls };
 80074e0:	5b 81 00 0c 	sw (sp+12),r1                                  
                                                                      
    _User_extensions_Iterate( &ctx, _User_extensions_Switch_visitor );
 80074e4:	38 42 74 64 	ori r2,r2,0x7464                               
 80074e8:	37 81 00 0c 	addi r1,sp,12                                  
 80074ec:	fb ff ff b0 	calli 80073ac <_User_extensions_Iterate>       
  }                                                                   
}                                                                     
 80074f0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80074f4:	2b 8b 00 08 	lw r11,(sp+8)                                  
 80074f8:	37 9c 00 0c 	addi sp,sp,12                                  
 80074fc:	c3 a0 00 00 	ret                                            
                                                                      

08009130 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) {
 8009130:	37 9c ff e4 	addi sp,sp,-28                                 
 8009134:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8009138:	5b 8c 00 18 	sw (sp+24),r12                                 
 800913c:	5b 8d 00 14 	sw (sp+20),r13                                 
 8009140:	5b 8e 00 10 	sw (sp+16),r14                                 
 8009144:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8009148:	5b 90 00 08 	sw (sp+8),r16                                  
 800914c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8009150:	b8 20 60 00 	mv r12,r1                                      
 8009154:	b8 60 58 00 	mv r11,r3                                      
  ISR_Level level;                                                    
                                                                      
  _ISR_Disable( level );                                              
 8009158:	90 00 08 00 	rcsr r1,IE                                     
 800915c:	34 03 ff fe 	mvi r3,-2                                      
 8009160:	a0 23 18 00 	and r3,r1,r3                                   
 8009164:	d0 03 00 00 	wcsr IE,r3                                     
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
                                                                      
}                                                                     
 8009168:	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 );                            
 800916c:	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 ) ) {                                 
 8009170:	44 6e 00 1d 	be r3,r14,80091e4 <_Watchdog_Adjust+0xb4>      
    switch ( direction ) {                                            
 8009174:	44 40 00 04 	be r2,r0,8009184 <_Watchdog_Adjust+0x54>       
 8009178:	34 04 00 01 	mvi r4,1                                       
 800917c:	5c 44 00 1a 	bne r2,r4,80091e4 <_Watchdog_Adjust+0xb4>      <== NEVER TAKEN
 8009180:	e0 00 00 04 	bi 8009190 <_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;            
 8009184:	34 10 00 01 	mvi r16,1                                      
                                                                      
            _ISR_Enable( level );                                     
                                                                      
            _Watchdog_Tickle( header );                               
                                                                      
            _ISR_Disable( level );                                    
 8009188:	34 0f ff fe 	mvi r15,-2                                     
 800918c:	e0 00 00 15 	bi 80091e0 <_Watchdog_Adjust+0xb0>             
   *       Till Straumann, 7/2003                                     
   */                                                                 
  if ( !_Chain_Is_empty( header ) ) {                                 
    switch ( direction ) {                                            
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
 8009190:	28 62 00 10 	lw r2,(r3+16)                                  
 8009194:	b4 4b 58 00 	add r11,r2,r11                                 
 8009198:	58 6b 00 10 	sw (r3+16),r11                                 
        break;                                                        
 800919c:	e0 00 00 12 	bi 80091e4 <_Watchdog_Adjust+0xb4>             
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First(               
  Chain_Control *header                                               
)                                                                     
{                                                                     
                                                                      
  return ( (Watchdog_Control *) _Chain_First( header ) );             
 80091a0:	29 82 00 00 	lw r2,(r12+0)                                  
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
 80091a4:	28 4d 00 10 	lw r13,(r2+16)                                 
 80091a8:	51 6d 00 04 	bgeu r11,r13,80091b8 <_Watchdog_Adjust+0x88>   
            _Watchdog_First( header )->delta_interval -= units;       
 80091ac:	c9 ab 58 00 	sub r11,r13,r11                                
 80091b0:	58 4b 00 10 	sw (r2+16),r11                                 
            break;                                                    
 80091b4:	e0 00 00 0c 	bi 80091e4 <_Watchdog_Adjust+0xb4>             
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
            _Watchdog_First( header )->delta_interval = 1;            
 80091b8:	58 50 00 10 	sw (r2+16),r16                                 
                                                                      
            _ISR_Enable( level );                                     
 80091bc:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
            _Watchdog_Tickle( header );                               
 80091c0:	b9 80 08 00 	mv r1,r12                                      
 80091c4:	f8 00 00 98 	calli 8009424 <_Watchdog_Tickle>               
                                                                      
            _ISR_Disable( level );                                    
 80091c8:	90 00 08 00 	rcsr r1,IE                                     
 80091cc:	a0 2f 10 00 	and r2,r1,r15                                  
 80091d0:	d0 02 00 00 	wcsr IE,r2                                     
                                                                      
            if ( _Chain_Is_empty( header ) )                          
 80091d4:	29 82 00 00 	lw r2,(r12+0)                                  
 80091d8:	44 4e 00 03 	be r2,r14,80091e4 <_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;       
 80091dc:	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 ) {                                             
 80091e0:	5d 60 ff f0 	bne r11,r0,80091a0 <_Watchdog_Adjust+0x70>     <== ALWAYS TAKEN
        }                                                             
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
 80091e4:	d0 01 00 00 	wcsr IE,r1                                     
                                                                      
}                                                                     
 80091e8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80091ec:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 80091f0:	2b 8c 00 18 	lw r12,(sp+24)                                 
 80091f4:	2b 8d 00 14 	lw r13,(sp+20)                                 
 80091f8:	2b 8e 00 10 	lw r14,(sp+16)                                 
 80091fc:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8009200:	2b 90 00 08 	lw r16,(sp+8)                                  
 8009204:	37 9c 00 1c 	addi sp,sp,28                                  
 8009208:	c3 a0 00 00 	ret                                            
                                                                      

08007674 <_Watchdog_Remove>: { ISR_Level level; Watchdog_States previous_state; Watchdog_Control *next_watchdog; _ISR_Disable( level );
 8007674:	90 00 28 00 	rcsr r5,IE                                     
 8007678:	34 02 ff fe 	mvi r2,-2                                      
 800767c:	a0 a2 10 00 	and r2,r5,r2                                   
 8007680:	d0 02 00 00 	wcsr IE,r2                                     
  previous_state = the_watchdog->state;                               
 8007684:	28 23 00 08 	lw r3,(r1+8)                                   
  switch ( previous_state ) {                                         
 8007688:	34 02 00 01 	mvi r2,1                                       
 800768c:	44 62 00 05 	be r3,r2,80076a0 <_Watchdog_Remove+0x2c>       
 8007690:	44 60 00 1b 	be r3,r0,80076fc <_Watchdog_Remove+0x88>       
 8007694:	34 02 00 03 	mvi r2,3                                       
 8007698:	54 62 00 19 	bgu r3,r2,80076fc <_Watchdog_Remove+0x88>      <== NEVER TAKEN
 800769c:	e0 00 00 03 	bi 80076a8 <_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;                        
 80076a0:	58 20 00 08 	sw (r1+8),r0                                   
      break;                                                          
 80076a4:	e0 00 00 16 	bi 80076fc <_Watchdog_Remove+0x88>             
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
                                                                      
  _ISR_Enable( level );                                               
  return( previous_state );                                           
}                                                                     
 80076a8:	28 22 00 00 	lw r2,(r1+0)                                   
      break;                                                          
                                                                      
    case WATCHDOG_ACTIVE:                                             
    case WATCHDOG_REMOVE_IT:                                          
                                                                      
      the_watchdog->state = WATCHDOG_INACTIVE;                        
 80076ac:	58 20 00 08 	sw (r1+8),r0                                   
      next_watchdog = _Watchdog_Next( the_watchdog );                 
                                                                      
      if ( _Watchdog_Next(next_watchdog) )                            
 80076b0:	28 44 00 00 	lw r4,(r2+0)                                   
 80076b4:	44 80 00 05 	be r4,r0,80076c8 <_Watchdog_Remove+0x54>       
        next_watchdog->delta_interval += the_watchdog->delta_interval;
 80076b8:	28 46 00 10 	lw r6,(r2+16)                                  
 80076bc:	28 24 00 10 	lw r4,(r1+16)                                  
 80076c0:	b4 c4 20 00 	add r4,r6,r4                                   
 80076c4:	58 44 00 10 	sw (r2+16),r4                                  
                                                                      
      if ( _Watchdog_Sync_count )                                     
 80076c8:	78 04 08 01 	mvhi r4,0x801                                  
 80076cc:	38 84 d9 c4 	ori r4,r4,0xd9c4                               
 80076d0:	28 84 00 00 	lw r4,(r4+0)                                   
 80076d4:	44 80 00 07 	be r4,r0,80076f0 <_Watchdog_Remove+0x7c>       
        _Watchdog_Sync_level = _ISR_Nest_level;                       
 80076d8:	78 04 08 01 	mvhi r4,0x801                                  
 80076dc:	38 84 da 60 	ori r4,r4,0xda60                               
 80076e0:	28 86 00 08 	lw r6,(r4+8)                                   
 80076e4:	78 04 08 01 	mvhi r4,0x801                                  
 80076e8:	38 84 d9 64 	ori r4,r4,0xd964                               
 80076ec:	58 86 00 00 	sw (r4+0),r6                                   
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
 80076f0:	28 24 00 04 	lw r4,(r1+4)                                   
  next->previous = previous;                                          
 80076f4:	58 44 00 04 	sw (r2+4),r4                                   
  previous->next = next;                                              
 80076f8:	58 82 00 00 	sw (r4+0),r2                                   
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
 80076fc:	78 02 08 01 	mvhi r2,0x801                                  
 8007700:	38 42 d9 c8 	ori r2,r2,0xd9c8                               
 8007704:	28 42 00 00 	lw r2,(r2+0)                                   
 8007708:	58 22 00 18 	sw (r1+24),r2                                  
                                                                      
  _ISR_Enable( level );                                               
 800770c:	d0 05 00 00 	wcsr IE,r5                                     
  return( previous_state );                                           
}                                                                     
 8007710:	b8 60 08 00 	mv r1,r3                                       
 8007714:	c3 a0 00 00 	ret                                            
                                                                      

08008d34 <_Watchdog_Report_chain>: void _Watchdog_Report_chain( const char *name, Chain_Control *header ) {
 8008d34:	37 9c ff ec 	addi sp,sp,-20                                 
 8008d38:	5b 8b 00 14 	sw (sp+20),r11                                 
 8008d3c:	5b 8c 00 10 	sw (sp+16),r12                                 
 8008d40:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8008d44:	5b 8e 00 08 	sw (sp+8),r14                                  
 8008d48:	5b 9d 00 04 	sw (sp+4),ra                                   
 8008d4c:	b8 20 70 00 	mv r14,r1                                      
 8008d50:	b8 40 60 00 	mv r12,r2                                      
  ISR_Level          level;                                           
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
 8008d54:	90 00 68 00 	rcsr r13,IE                                    
 8008d58:	34 01 ff fe 	mvi r1,-2                                      
 8008d5c:	a1 a1 08 00 	and r1,r13,r1                                  
 8008d60:	d0 01 00 00 	wcsr IE,r1                                     
    printk( "Watchdog Chain: %s %p\n", name, header );                
 8008d64:	78 01 08 01 	mvhi r1,0x801                                  
 8008d68:	b9 80 18 00 	mv r3,r12                                      
 8008d6c:	38 21 de 60 	ori r1,r1,0xde60                               
 8008d70:	b9 c0 10 00 	mv r2,r14                                      
 8008d74:	fb ff e8 c9 	calli 8003098 <printk>                         
      printk( "== end of %s \n", name );                              
    } else {                                                          
      printk( "Chain is empty\n" );                                   
    }                                                                 
  _ISR_Enable( level );                                               
}                                                                     
 8008d78:	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 );                            
 8008d7c:	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 ) ) {                               
 8008d80:	45 6c 00 0b 	be r11,r12,8008dac <_Watchdog_Report_chain+0x78>
            node != _Chain_Tail(header) ;                             
            node = node->next )                                       
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
 8008d84:	b9 60 10 00 	mv r2,r11                                      
 8008d88:	34 01 00 00 	mvi r1,0                                       
 8008d8c:	f8 00 00 13 	calli 8008dd8 <_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 )                                       
 8008d90:	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 ) ;                           
 8008d94:	5d 6c ff fc 	bne r11,r12,8008d84 <_Watchdog_Report_chain+0x50><== NEVER TAKEN
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
      }                                                               
      printk( "== end of %s \n", name );                              
 8008d98:	78 01 08 01 	mvhi r1,0x801                                  
 8008d9c:	38 21 de 78 	ori r1,r1,0xde78                               
 8008da0:	b9 c0 10 00 	mv r2,r14                                      
 8008da4:	fb ff e8 bd 	calli 8003098 <printk>                         
 8008da8:	e0 00 00 04 	bi 8008db8 <_Watchdog_Report_chain+0x84>       
    } else {                                                          
      printk( "Chain is empty\n" );                                   
 8008dac:	78 01 08 01 	mvhi r1,0x801                                  
 8008db0:	38 21 de 88 	ori r1,r1,0xde88                               
 8008db4:	fb ff e8 b9 	calli 8003098 <printk>                         
    }                                                                 
  _ISR_Enable( level );                                               
 8008db8:	d0 0d 00 00 	wcsr IE,r13                                    
}                                                                     
 8008dbc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8008dc0:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8008dc4:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8008dc8:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8008dcc:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8008dd0:	37 9c 00 14 	addi sp,sp,20                                  
 8008dd4:	c3 a0 00 00 	ret                                            
                                                                      

08007718 <_Watchdog_Tickle>: #include <rtems/score/watchdog.h> void _Watchdog_Tickle( Chain_Control *header ) {
 8007718:	37 9c ff e4 	addi sp,sp,-28                                 
 800771c:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8007720:	5b 8c 00 18 	sw (sp+24),r12                                 
 8007724:	5b 8d 00 14 	sw (sp+20),r13                                 
 8007728:	5b 8e 00 10 	sw (sp+16),r14                                 
 800772c:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8007730:	5b 90 00 08 	sw (sp+8),r16                                  
 8007734:	5b 9d 00 04 	sw (sp+4),ra                                   
 8007738:	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 );                                              
 800773c:	90 00 18 00 	rcsr r3,IE                                     
 8007740:	34 01 ff fe 	mvi r1,-2                                      
 8007744:	a0 61 08 00 	and r1,r3,r1                                   
 8007748:	d0 01 00 00 	wcsr IE,r1                                     
   } while ( !_Chain_Is_empty( header ) &&                            
             (the_watchdog->delta_interval == 0) );                   
                                                                      
leave:                                                                
   _ISR_Enable(level);                                                
}                                                                     
 800774c:	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 );                            
 8007750:	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 );                                              
 8007754:	b8 60 10 00 	mv r2,r3                                       
                                                                      
  if ( _Chain_Is_empty( header ) )                                    
 8007758:	45 6e 00 1a 	be r11,r14,80077c0 <_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) {                            
 800775c:	29 61 00 10 	lw r1,(r11+16)                                 
 8007760:	44 20 00 04 	be r1,r0,8007770 <_Watchdog_Tickle+0x58>       <== NEVER TAKEN
    the_watchdog->delta_interval--;                                   
 8007764:	34 21 ff ff 	addi r1,r1,-1                                  
 8007768:	59 61 00 10 	sw (r11+16),r1                                 
    if ( the_watchdog->delta_interval != 0 )                          
 800776c:	5c 20 00 15 	bne r1,r0,80077c0 <_Watchdog_Tickle+0xa8>      
#include <rtems/score/watchdog.h>                                     
                                                                      
void _Watchdog_Tickle(                                                
  Chain_Control *header                                               
)                                                                     
{                                                                     
 8007770:	b8 60 68 00 	mv r13,r3                                      
  do {                                                                
     watchdog_state = _Watchdog_Remove( the_watchdog );               
                                                                      
     _ISR_Enable( level );                                            
                                                                      
     switch( watchdog_state ) {                                       
 8007774:	34 10 00 02 	mvi r16,2                                      
                                                                      
       case WATCHDOG_REMOVE_IT:                                       
         break;                                                       
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
 8007778:	34 0f ff fe 	mvi r15,-2                                     
 800777c:	e0 00 00 02 	bi 8007784 <_Watchdog_Tickle+0x6c>             
 8007780:	b8 40 68 00 	mv r13,r2                                      
    if ( the_watchdog->delta_interval != 0 )                          
      goto leave;                                                     
  }                                                                   
                                                                      
  do {                                                                
     watchdog_state = _Watchdog_Remove( the_watchdog );               
 8007784:	b9 60 08 00 	mv r1,r11                                      
 8007788:	fb ff ff bb 	calli 8007674 <_Watchdog_Remove>               
                                                                      
     _ISR_Enable( level );                                            
 800778c:	d0 0d 00 00 	wcsr IE,r13                                    
                                                                      
     switch( watchdog_state ) {                                       
 8007790:	5c 30 00 05 	bne r1,r16,80077a4 <_Watchdog_Tickle+0x8c>     <== NEVER TAKEN
       case WATCHDOG_ACTIVE:                                          
         (*the_watchdog->routine)(                                    
 8007794:	29 63 00 1c 	lw r3,(r11+28)                                 
 8007798:	29 61 00 20 	lw r1,(r11+32)                                 
 800779c:	29 62 00 24 	lw r2,(r11+36)                                 
 80077a0:	d8 60 00 00 	call r3                                        
                                                                      
       case WATCHDOG_REMOVE_IT:                                       
         break;                                                       
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
 80077a4:	90 00 10 00 	rcsr r2,IE                                     
 80077a8:	a0 4f 08 00 	and r1,r2,r15                                  
 80077ac:	d0 01 00 00 	wcsr IE,r1                                     
   } while ( !_Chain_Is_empty( header ) &&                            
             (the_watchdog->delta_interval == 0) );                   
                                                                      
leave:                                                                
   _ISR_Enable(level);                                                
}                                                                     
 80077b0:	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) );                   
 80077b4:	45 6e 00 03 	be r11,r14,80077c0 <_Watchdog_Tickle+0xa8>     
     }                                                                
                                                                      
     _ISR_Disable( level );                                           
                                                                      
     the_watchdog = _Watchdog_First( header );                        
   } while ( !_Chain_Is_empty( header ) &&                            
 80077b8:	29 61 00 10 	lw r1,(r11+16)                                 
 80077bc:	44 20 ff f1 	be r1,r0,8007780 <_Watchdog_Tickle+0x68>       
             (the_watchdog->delta_interval == 0) );                   
                                                                      
leave:                                                                
   _ISR_Enable(level);                                                
 80077c0:	d0 02 00 00 	wcsr IE,r2                                     
}                                                                     
 80077c4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80077c8:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 80077cc:	2b 8c 00 18 	lw r12,(sp+24)                                 
 80077d0:	2b 8d 00 14 	lw r13,(sp+20)                                 
 80077d4:	2b 8e 00 10 	lw r14,(sp+16)                                 
 80077d8:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 80077dc:	2b 90 00 08 	lw r16,(sp+8)                                  
 80077e0:	37 9c 00 1c 	addi sp,sp,28                                  
 80077e4:	c3 a0 00 00 	ret                                            
                                                                      

080077e8 <_Workspace_Handler_initialization>: void _Workspace_Handler_initialization( Heap_Area *areas, size_t area_count, Heap_Initialization_or_extend_handler extend ) {
 80077e8:	37 9c ff d0 	addi sp,sp,-48                                 
 80077ec:	5b 8b 00 30 	sw (sp+48),r11                                 
 80077f0:	5b 8c 00 2c 	sw (sp+44),r12                                 
 80077f4:	5b 8d 00 28 	sw (sp+40),r13                                 
 80077f8:	5b 8e 00 24 	sw (sp+36),r14                                 
 80077fc:	5b 8f 00 20 	sw (sp+32),r15                                 
 8007800:	5b 90 00 1c 	sw (sp+28),r16                                 
 8007804:	5b 91 00 18 	sw (sp+24),r17                                 
 8007808:	5b 92 00 14 	sw (sp+20),r18                                 
 800780c:	5b 93 00 10 	sw (sp+16),r19                                 
 8007810:	5b 94 00 0c 	sw (sp+12),r20                                 
 8007814:	5b 95 00 08 	sw (sp+8),r21                                  
 8007818:	5b 9d 00 04 	sw (sp+4),ra                                   
  Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
  uintptr_t remaining = rtems_configuration_get_work_space_size();    
 800781c:	78 04 08 01 	mvhi r4,0x801                                  
 8007820:	38 84 b2 0c 	ori r4,r4,0xb20c                               
void _Workspace_Handler_initialization(                               
  Heap_Area *areas,                                                   
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
 8007824:	b8 40 a8 00 	mv r21,r2                                      
  Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
  uintptr_t remaining = rtems_configuration_get_work_space_size();    
 8007828:	40 82 00 32 	lbu r2,(r4+50)                                 
void _Workspace_Handler_initialization(                               
  Heap_Area *areas,                                                   
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
 800782c:	b8 60 90 00 	mv r18,r3                                      
  Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
  uintptr_t remaining = rtems_configuration_get_work_space_size();    
 8007830:	28 8c 00 00 	lw r12,(r4+0)                                  
 8007834:	34 05 00 00 	mvi r5,0                                       
 8007838:	5c 40 00 02 	bne r2,r0,8007840 <_Workspace_Handler_initialization+0x58>
 800783c:	28 85 00 04 	lw r5,(r4+4)                                   
  bool do_zero = rtems_configuration_get_do_zero_of_workspace();      
 8007840:	78 04 08 01 	mvhi r4,0x801                                  
 8007844:	38 84 b2 0c 	ori r4,r4,0xb20c                               
  Heap_Area *areas,                                                   
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
  Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
 8007848:	78 0e 08 00 	mvhi r14,0x800                                 
        } else {                                                      
          size = 0;                                                   
        }                                                             
      }                                                               
                                                                      
      space_available = (*init_or_extend)(                            
 800784c:	78 0f 08 01 	mvhi r15,0x801                                 
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
  Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
  uintptr_t remaining = rtems_configuration_get_work_space_size();    
 8007850:	b4 ac 60 00 	add r12,r5,r12                                 
  bool do_zero = rtems_configuration_get_do_zero_of_workspace();      
 8007854:	40 94 00 30 	lbu r20,(r4+48)                                
  bool unified = rtems_configuration_get_unified_work_area();         
 8007858:	40 91 00 31 	lbu r17,(r4+49)                                
 800785c:	b8 20 58 00 	mv r11,r1                                      
  uintptr_t page_size = CPU_HEAP_ALIGNMENT;                           
  uintptr_t overhead = _Heap_Area_overhead( page_size );              
  size_t i;                                                           
                                                                      
  for (i = 0; i < area_count; ++i) {                                  
 8007860:	34 10 00 00 	mvi r16,0                                      
  Heap_Area *areas,                                                   
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
  Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
 8007864:	39 ce 4b d0 	ori r14,r14,0x4bd0                             
                                                                      
    if ( do_zero ) {                                                  
      memset( area->begin, 0, area->size );                           
    }                                                                 
                                                                      
    if ( area->size > overhead ) {                                    
 8007868:	34 13 00 0e 	mvi r19,14                                     
        } else {                                                      
          size = 0;                                                   
        }                                                             
      }                                                               
                                                                      
      space_available = (*init_or_extend)(                            
 800786c:	39 ef d8 f0 	ori r15,r15,0xd8f0                             
  bool unified = rtems_configuration_get_unified_work_area();         
  uintptr_t page_size = CPU_HEAP_ALIGNMENT;                           
  uintptr_t overhead = _Heap_Area_overhead( page_size );              
  size_t i;                                                           
                                                                      
  for (i = 0; i < area_count; ++i) {                                  
 8007870:	e0 00 00 22 	bi 80078f8 <_Workspace_Handler_initialization+0x110>
    Heap_Area *area = &areas [i];                                     
                                                                      
    if ( do_zero ) {                                                  
 8007874:	46 80 00 05 	be r20,r0,8007888 <_Workspace_Handler_initialization+0xa0>
      memset( area->begin, 0, area->size );                           
 8007878:	29 61 00 00 	lw r1,(r11+0)                                  
 800787c:	29 63 00 04 	lw r3,(r11+4)                                  
 8007880:	34 02 00 00 	mvi r2,0                                       
 8007884:	f8 00 13 1d 	calli 800c4f8 <memset>                         
    }                                                                 
                                                                      
    if ( area->size > overhead ) {                                    
 8007888:	29 6d 00 04 	lw r13,(r11+4)                                 
 800788c:	52 6d 00 19 	bgeu r19,r13,80078f0 <_Workspace_Handler_initialization+0x108>
      uintptr_t space_available;                                      
      uintptr_t size;                                                 
                                                                      
      if ( unified ) {                                                
 8007890:	5e 20 00 07 	bne r17,r0,80078ac <_Workspace_Handler_initialization+0xc4>
        size = area->size;                                            
      } else {                                                        
        if ( remaining > 0 ) {                                        
 8007894:	45 91 00 05 	be r12,r17,80078a8 <_Workspace_Handler_initialization+0xc0><== NEVER TAKEN
          size = remaining < area->size - overhead ?                  
 8007898:	35 a1 ff f2 	addi r1,r13,-14                                
            remaining + overhead : area->size;                        
 800789c:	51 81 00 04 	bgeu r12,r1,80078ac <_Workspace_Handler_initialization+0xc4><== NEVER TAKEN
 80078a0:	35 8d 00 0e 	addi r13,r12,14                                
 80078a4:	e0 00 00 02 	bi 80078ac <_Workspace_Handler_initialization+0xc4>
        } else {                                                      
          size = 0;                                                   
 80078a8:	34 0d 00 00 	mvi r13,0                                      <== NOT EXECUTED
        }                                                             
      }                                                               
                                                                      
      space_available = (*init_or_extend)(                            
 80078ac:	29 62 00 00 	lw r2,(r11+0)                                  
 80078b0:	b9 a0 18 00 	mv r3,r13                                      
 80078b4:	b9 e0 08 00 	mv r1,r15                                      
 80078b8:	34 04 00 04 	mvi r4,4                                       
 80078bc:	d9 c0 00 00 	call r14                                       
        area->begin,                                                  
        size,                                                         
        page_size                                                     
      );                                                              
                                                                      
      area->begin = (char *) area->begin + size;                      
 80078c0:	29 62 00 00 	lw r2,(r11+0)                                  
 80078c4:	b4 4d 10 00 	add r2,r2,r13                                  
 80078c8:	59 62 00 00 	sw (r11+0),r2                                  
      area->size -= size;                                             
 80078cc:	29 62 00 04 	lw r2,(r11+4)                                  
 80078d0:	c8 4d 68 00 	sub r13,r2,r13                                 
 80078d4:	59 6d 00 04 	sw (r11+4),r13                                 
                                                                      
      if ( space_available < remaining ) {                            
 80078d8:	50 2c 00 04 	bgeu r1,r12,80078e8 <_Workspace_Handler_initialization+0x100><== ALWAYS TAKEN
        remaining -= space_available;                                 
 80078dc:	c9 81 60 00 	sub r12,r12,r1                                 <== NOT EXECUTED
      } else {                                                        
        remaining = 0;                                                
      }                                                               
                                                                      
      init_or_extend = extend;                                        
 80078e0:	ba 40 70 00 	mv r14,r18                                     <== NOT EXECUTED
 80078e4:	e0 00 00 03 	bi 80078f0 <_Workspace_Handler_initialization+0x108><== NOT EXECUTED
 80078e8:	ba 40 70 00 	mv r14,r18                                     
      area->size -= size;                                             
                                                                      
      if ( space_available < remaining ) {                            
        remaining -= space_available;                                 
      } else {                                                        
        remaining = 0;                                                
 80078ec:	34 0c 00 00 	mvi r12,0                                      
  bool unified = rtems_configuration_get_unified_work_area();         
  uintptr_t page_size = CPU_HEAP_ALIGNMENT;                           
  uintptr_t overhead = _Heap_Area_overhead( page_size );              
  size_t i;                                                           
                                                                      
  for (i = 0; i < area_count; ++i) {                                  
 80078f0:	36 10 00 01 	addi r16,r16,1                                 
 80078f4:	35 6b 00 08 	addi r11,r11,8                                 
 80078f8:	56 b0 ff df 	bgu r21,r16,8007874 <_Workspace_Handler_initialization+0x8c>
                                                                      
      init_or_extend = extend;                                        
    }                                                                 
  }                                                                   
                                                                      
  if ( remaining > 0 ) {                                              
 80078fc:	45 80 00 05 	be r12,r0,8007910 <_Workspace_Handler_initialization+0x128>
    _Internal_error_Occurred(                                         
 8007900:	34 01 00 00 	mvi r1,0                                       
 8007904:	34 02 00 01 	mvi r2,1                                       
 8007908:	34 03 00 02 	mvi r3,2                                       
 800790c:	fb ff f5 61 	calli 8004e90 <_Internal_error_Occurred>       
      INTERNAL_ERROR_CORE,                                            
      true,                                                           
      INTERNAL_ERROR_TOO_LITTLE_WORKSPACE                             
    );                                                                
  }                                                                   
}                                                                     
 8007910:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8007914:	2b 8b 00 30 	lw r11,(sp+48)                                 
 8007918:	2b 8c 00 2c 	lw r12,(sp+44)                                 
 800791c:	2b 8d 00 28 	lw r13,(sp+40)                                 
 8007920:	2b 8e 00 24 	lw r14,(sp+36)                                 
 8007924:	2b 8f 00 20 	lw r15,(sp+32)                                 
 8007928:	2b 90 00 1c 	lw r16,(sp+28)                                 
 800792c:	2b 91 00 18 	lw r17,(sp+24)                                 
 8007930:	2b 92 00 14 	lw r18,(sp+20)                                 
 8007934:	2b 93 00 10 	lw r19,(sp+16)                                 
 8007938:	2b 94 00 0c 	lw r20,(sp+12)                                 
 800793c:	2b 95 00 08 	lw r21,(sp+8)                                  
 8007940:	37 9c 00 30 	addi sp,sp,48                                  
 8007944:	c3 a0 00 00 	ret                                            
                                                                      

08006f7c <_Workspace_String_duplicate>: char *_Workspace_String_duplicate( const char *string, size_t len ) {
 8006f7c:	37 9c ff f0 	addi sp,sp,-16                                 
 8006f80:	5b 8b 00 10 	sw (sp+16),r11                                 
 8006f84:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8006f88:	5b 8d 00 08 	sw (sp+8),r13                                  
 8006f8c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006f90:	b8 20 68 00 	mv r13,r1                                      
  char *dup = _Workspace_Allocate(len + 1);                           
 8006f94:	34 41 00 01 	addi r1,r2,1                                   
                                                                      
char *_Workspace_String_duplicate(                                    
  const char *string,                                                 
  size_t len                                                          
)                                                                     
{                                                                     
 8006f98:	b8 40 60 00 	mv r12,r2                                      
  char *dup = _Workspace_Allocate(len + 1);                           
 8006f9c:	fb ff ff d5 	calli 8006ef0 <_Workspace_Allocate>            
 8006fa0:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  if (dup != NULL) {                                                  
 8006fa4:	44 20 00 06 	be r1,r0,8006fbc <_Workspace_String_duplicate+0x40><== NEVER TAKEN
    dup [len] = '\0';                                                 
 8006fa8:	b4 2c 10 00 	add r2,r1,r12                                  
 8006fac:	30 40 00 00 	sb (r2+0),r0                                   
    memcpy(dup, string, len);                                         
 8006fb0:	b9 80 18 00 	mv r3,r12                                      
 8006fb4:	b9 a0 10 00 	mv r2,r13                                      
 8006fb8:	f8 00 13 87 	calli 800bdd4 <memcpy>                         
  }                                                                   
                                                                      
  return dup;                                                         
}                                                                     
 8006fbc:	b9 60 08 00 	mv r1,r11                                      
 8006fc0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006fc4:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8006fc8:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8006fcc:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8006fd0:	37 9c 00 10 	addi sp,sp,16                                  
 8006fd4:	c3 a0 00 00 	ret                                            
                                                                      

0801a8f8 <__kill>: #endif int __kill( pid_t pid, int sig ) { return 0; }
 801a8f8:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801a8fc:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

080100ac <_fat_block_read>: uint32_t start, uint32_t offset, uint32_t count, void *buff ) {
 80100ac:	37 9c ff dc 	addi sp,sp,-36                                 
 80100b0:	5b 8b 00 20 	sw (sp+32),r11                                 
 80100b4:	5b 8c 00 1c 	sw (sp+28),r12                                 
 80100b8:	5b 8d 00 18 	sw (sp+24),r13                                 
 80100bc:	5b 8e 00 14 	sw (sp+20),r14                                 
 80100c0:	5b 8f 00 10 	sw (sp+16),r15                                 
 80100c4:	5b 90 00 0c 	sw (sp+12),r16                                 
 80100c8:	5b 91 00 08 	sw (sp+8),r17                                  
 80100cc:	5b 9d 00 04 	sw (sp+4),ra                                   
    int                     rc = RC_OK;                               
    ssize_t                 cmpltd = 0;                               
 80100d0:	34 0b 00 00 	mvi r11,0                                      
    uint32_t                              start,                      
    uint32_t                              offset,                     
    uint32_t                              count,                      
    void                                 *buff                        
    )                                                                 
{                                                                     
 80100d4:	b8 20 80 00 	mv r16,r1                                      
 80100d8:	b8 80 60 00 	mv r12,r4                                      
 80100dc:	b8 a0 88 00 	mv r17,r5                                      
    int                     rc = RC_OK;                               
    ssize_t                 cmpltd = 0;                               
    uint32_t                sec_num = start;                          
    uint32_t                ofs = offset;                             
 80100e0:	b8 60 78 00 	mv r15,r3                                      
    void                                 *buff                        
    )                                                                 
{                                                                     
    int                     rc = RC_OK;                               
    ssize_t                 cmpltd = 0;                               
    uint32_t                sec_num = start;                          
 80100e4:	b8 40 70 00 	mv r14,r2                                      
    uint32_t                ofs = offset;                             
    uint8_t                *sec_buf;                                  
    uint32_t                c = 0;                                    
                                                                      
    while (count > 0)                                                 
 80100e8:	e0 00 00 14 	bi 8010138 <_fat_block_read+0x8c>              
    {                                                                 
        rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_READ, &sec_buf);
 80100ec:	ba 00 08 00 	mv r1,r16                                      
 80100f0:	b9 c0 10 00 	mv r2,r14                                      
 80100f4:	34 03 00 01 	mvi r3,1                                       
 80100f8:	37 84 00 24 	addi r4,sp,36                                  
 80100fc:	fb ff ff aa 	calli 800ffa4 <fat_buf_access>                 
        if (rc != RC_OK)                                              
 8010100:	5c 20 00 10 	bne r1,r0,8010140 <_fat_block_read+0x94>       <== NEVER TAKEN
            return -1;                                                
                                                                      
        c = MIN(count, (fs_info->vol.bps - ofs));                     
 8010104:	2e 0d 00 00 	lhu r13,(r16+0)                                
 8010108:	c9 af 68 00 	sub r13,r13,r15                                
 801010c:	51 8d 00 02 	bgeu r12,r13,8010114 <_fat_block_read+0x68>    
 8010110:	b9 80 68 00 	mv r13,r12                                     
        memcpy((buff + cmpltd), (sec_buf + ofs), c);                  
 8010114:	2b 82 00 24 	lw r2,(sp+36)                                  
 8010118:	b6 2b 08 00 	add r1,r17,r11                                 
 801011c:	b9 a0 18 00 	mv r3,r13                                      
 8010120:	b4 4f 10 00 	add r2,r2,r15                                  
 8010124:	f8 00 29 88 	calli 801a744 <memcpy>                         
                                                                      
        count -= c;                                                   
 8010128:	c9 8d 60 00 	sub r12,r12,r13                                
        cmpltd += c;                                                  
 801012c:	b5 ab 58 00 	add r11,r13,r11                                
        sec_num++;                                                    
 8010130:	35 ce 00 01 	addi r14,r14,1                                 
        ofs = 0;                                                      
 8010134:	34 0f 00 00 	mvi r15,0                                      
    uint32_t                sec_num = start;                          
    uint32_t                ofs = offset;                             
    uint8_t                *sec_buf;                                  
    uint32_t                c = 0;                                    
                                                                      
    while (count > 0)                                                 
 8010138:	5d 80 ff ed 	bne r12,r0,80100ec <_fat_block_read+0x40>      
 801013c:	e0 00 00 02 	bi 8010144 <_fat_block_read+0x98>              
    {                                                                 
        rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_READ, &sec_buf);
        if (rc != RC_OK)                                              
            return -1;                                                
 8010140:	34 0b ff ff 	mvi r11,-1                                     <== NOT EXECUTED
        cmpltd += c;                                                  
        sec_num++;                                                    
        ofs = 0;                                                      
    }                                                                 
    return cmpltd;                                                    
}                                                                     
 8010144:	b9 60 08 00 	mv r1,r11                                      
 8010148:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801014c:	2b 8b 00 20 	lw r11,(sp+32)                                 
 8010150:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 8010154:	2b 8d 00 18 	lw r13,(sp+24)                                 
 8010158:	2b 8e 00 14 	lw r14,(sp+20)                                 
 801015c:	2b 8f 00 10 	lw r15,(sp+16)                                 
 8010160:	2b 90 00 0c 	lw r16,(sp+12)                                 
 8010164:	2b 91 00 08 	lw r17,(sp+8)                                  
 8010168:	37 9c 00 24 	addi sp,sp,36                                  
 801016c:	c3 a0 00 00 	ret                                            
                                                                      

080016dc <_gettimeofday>: */ int _gettimeofday( struct timeval *tp, struct timezone *tzp ) {
 80016dc:	37 9c ff fc 	addi sp,sp,-4                                  <== NOT EXECUTED
 80016e0:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
  return gettimeofday( tp, tzp );                                     
 80016e4:	fb ff ff ca 	calli 800160c <gettimeofday>                   <== NOT EXECUTED
}                                                                     
 80016e8:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 80016ec:	37 9c 00 04 	addi sp,sp,4                                   <== NOT EXECUTED
 80016f0:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0800ef18 <_hash_search>: rtems_chain_control *hash, uint32_t key1, uint32_t key2, fat_file_fd_t **ret ) {
 800ef18:	37 9c ff e4 	addi sp,sp,-28                                 
 800ef1c:	5b 8b 00 1c 	sw (sp+28),r11                                 
 800ef20:	5b 8c 00 18 	sw (sp+24),r12                                 
 800ef24:	5b 8d 00 14 	sw (sp+20),r13                                 
 800ef28:	5b 8e 00 10 	sw (sp+16),r14                                 
 800ef2c:	5b 8f 00 0c 	sw (sp+12),r15                                 
 800ef30:	5b 90 00 08 	sw (sp+8),r16                                  
 800ef34:	5b 9d 00 04 	sw (sp+4),ra                                   
    uint32_t          mod = (key1) % FAT_HASH_MODULE;                 
 800ef38:	20 6b 00 01 	andi r11,r3,0x1                                
    rtems_chain_control                   *hash,                      
    uint32_t                               key1,                      
    uint32_t                               key2,                      
    fat_file_fd_t                          **ret                      
    )                                                                 
{                                                                     
 800ef3c:	b8 40 78 00 	mv r15,r2                                      
 800ef40:	b8 20 80 00 	mv r16,r1                                      
    uint32_t          mod = (key1) % FAT_HASH_MODULE;                 
    rtems_chain_node *the_node = rtems_chain_first(hash + mod);       
 800ef44:	34 02 00 01 	mvi r2,1                                       
 800ef48:	b9 60 08 00 	mv r1,r11                                      
    rtems_chain_control                   *hash,                      
    uint32_t                               key1,                      
    uint32_t                               key2,                      
    fat_file_fd_t                          **ret                      
    )                                                                 
{                                                                     
 800ef4c:	b8 60 60 00 	mv r12,r3                                      
 800ef50:	b8 80 68 00 	mv r13,r4                                      
 800ef54:	b8 a0 70 00 	mv r14,r5                                      
    uint32_t          mod = (key1) % FAT_HASH_MODULE;                 
    rtems_chain_node *the_node = rtems_chain_first(hash + mod);       
 800ef58:	fb ff c8 a4 	calli 80011e8 <__ashlsi3>                      
 800ef5c:	b4 2b 08 00 	add r1,r1,r11                                  
 800ef60:	34 02 00 02 	mvi r2,2                                       
 800ef64:	fb ff c8 a1 	calli 80011e8 <__ashlsi3>                      
 800ef68:	b5 e1 10 00 	add r2,r15,r1                                  
        fat_fd->map.disk_cln = cur_cln;                               
                                                                      
        *disk_cln = cur_cln;                                          
    }                                                                 
    return RC_OK;                                                     
}                                                                     
 800ef6c:	28 4b 00 00 	lw r11,(r2+0)                                  
RTEMS_INLINE_ROUTINE bool _Chain_Is_tail(                             
  const Chain_Control *the_chain,                                     
  const Chain_Node    *the_node                                       
)                                                                     
{                                                                     
  return (the_node == _Chain_Immutable_tail( the_chain ));            
 800ef70:	34 4f 00 04 	addi r15,r2,4                                  
    )                                                                 
{                                                                     
    uint32_t          mod = (key1) % FAT_HASH_MODULE;                 
    rtems_chain_node *the_node = rtems_chain_first(hash + mod);       
                                                                      
    for ( ; !rtems_chain_is_tail((hash) + mod, the_node) ; )          
 800ef74:	e0 00 00 0c 	bi 800efa4 <_hash_search+0x8c>                 
    {                                                                 
        fat_file_fd_t *ffd = (fat_file_fd_t *)the_node;               
        uint32_t       ck =  fat_construct_key(fs_info, &ffd->dir_pos.sname);
 800ef78:	ba 00 08 00 	mv r1,r16                                      
 800ef7c:	35 62 00 20 	addi r2,r11,32                                 
 800ef80:	fb ff ff ba 	calli 800ee68 <fat_construct_key>              
                                                                      
        if ( (key1) == ck)                                            
 800ef84:	5d 81 00 07 	bne r12,r1,800efa0 <_hash_search+0x88>         
        {                                                             
            if ( ((key2) == 0) || ((key2) == ffd->ino) )              
 800ef88:	45 a0 00 03 	be r13,r0,800ef94 <_hash_search+0x7c>          <== ALWAYS TAKEN
 800ef8c:	29 61 00 0c 	lw r1,(r11+12)                                 <== NOT EXECUTED
 800ef90:	5d a1 00 04 	bne r13,r1,800efa0 <_hash_search+0x88>         <== NOT EXECUTED
            {                                                         
                *ret = (void *)the_node;                              
 800ef94:	59 cb 00 00 	sw (r14+0),r11                                 
                return 0;                                             
 800ef98:	34 01 00 00 	mvi r1,0                                       
 800ef9c:	e0 00 00 04 	bi 800efac <_hash_search+0x94>                 
            }                                                         
        }                                                             
        the_node = the_node->next;                                    
 800efa0:	29 6b 00 00 	lw r11,(r11+0)                                 
    )                                                                 
{                                                                     
    uint32_t          mod = (key1) % FAT_HASH_MODULE;                 
    rtems_chain_node *the_node = rtems_chain_first(hash + mod);       
                                                                      
    for ( ; !rtems_chain_is_tail((hash) + mod, the_node) ; )          
 800efa4:	5d 6f ff f5 	bne r11,r15,800ef78 <_hash_search+0x60>        
                return 0;                                             
            }                                                         
        }                                                             
        the_node = the_node->next;                                    
    }                                                                 
    return -1;                                                        
 800efa8:	34 01 ff ff 	mvi r1,-1                                      
}                                                                     
 800efac:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800efb0:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 800efb4:	2b 8c 00 18 	lw r12,(sp+24)                                 
 800efb8:	2b 8d 00 14 	lw r13,(sp+20)                                 
 800efbc:	2b 8e 00 10 	lw r14,(sp+16)                                 
 800efc0:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 800efc4:	2b 90 00 08 	lw r16,(sp+8)                                  
 800efc8:	37 9c 00 1c 	addi sp,sp,28                                  
 800efcc:	c3 a0 00 00 	ret                                            
                                                                      

080022d0 <_lstat_r>: int _STAT_R_NAME( struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) {
 80022d0:	37 9c ff fc 	addi sp,sp,-4                                  <== NOT EXECUTED
 80022d4:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
  return _STAT_NAME( path, buf );                                     
 80022d8:	b8 40 08 00 	mv r1,r2                                       <== NOT EXECUTED
 80022dc:	b8 60 10 00 	mv r2,r3                                       <== NOT EXECUTED
 80022e0:	fb ff ff dc 	calli 8002250 <lstat>                          <== NOT EXECUTED
}                                                                     
 80022e4:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 80022e8:	37 9c 00 04 	addi sp,sp,4                                   <== NOT EXECUTED
 80022ec:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08002614 <_stat_r>: int _STAT_R_NAME( struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) {
 8002614:	37 9c ff fc 	addi sp,sp,-4                                  <== NOT EXECUTED
 8002618:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
  return _STAT_NAME( path, buf );                                     
 800261c:	b8 40 08 00 	mv r1,r2                                       <== NOT EXECUTED
 8002620:	b8 60 10 00 	mv r2,r3                                       <== NOT EXECUTED
 8002624:	fb ff ff dc 	calli 8002594 <stat>                           <== NOT EXECUTED
}                                                                     
 8002628:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 800262c:	37 9c 00 04 	addi sp,sp,4                                   <== NOT EXECUTED
 8002630:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08001f10 <chroot>: #include <unistd.h> #include <rtems/libio_.h> int chroot( const char *path ) {
 8001f10:	37 9c ff 9c 	addi sp,sp,-100                                
 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                                   
                                                                      
  /*                                                                  
   * We use the global environment for path evaluation.  This makes it possible
   * to escape from a chroot environment referencing an unmounted file system.
   */                                                                 
  rtems_filesystem_eval_path_start_with_root_and_current(             
 8001f24:	78 04 08 01 	mvhi r4,0x801                                  
 8001f28:	78 05 08 01 	mvhi r5,0x801                                  
#include <unistd.h>                                                   
                                                                      
#include <rtems/libio_.h>                                             
                                                                      
int chroot( const char *path )                                        
{                                                                     
 8001f2c:	b8 20 10 00 	mv r2,r1                                       
                                                                      
  /*                                                                  
   * We use the global environment for path evaluation.  This makes it possible
   * to escape from a chroot environment referencing an unmounted file system.
   */                                                                 
  rtems_filesystem_eval_path_start_with_root_and_current(             
 8001f30:	34 03 00 19 	mvi r3,25                                      
 8001f34:	38 84 21 20 	ori r4,r4,0x2120                               
 8001f38:	38 a5 21 1c 	ori r5,r5,0x211c                               
 8001f3c:	37 81 00 14 	addi r1,sp,20                                  
 8001f40:	f8 00 05 11 	calli 8003384 <rtems_filesystem_eval_path_start_with_root_and_current>
    eval_flags,                                                       
    &rtems_global_user_env.root_directory,                            
    &rtems_global_user_env.current_directory                          
  );                                                                  
                                                                      
  rtems_filesystem_eval_path_extract_currentloc( &ctx, &loc );        
 8001f44:	37 8b 00 4c 	addi r11,sp,76                                 
 8001f48:	b9 60 08 00 	mv r1,r11                                      
 8001f4c:	37 82 00 2c 	addi r2,sp,44                                  
 8001f50:	f8 00 06 6d 	calli 8003904 <rtems_filesystem_location_copy_and_detach>
  new_current_loc = rtems_filesystem_location_transform_to_global( &loc );
 8001f54:	b9 60 08 00 	mv r1,r11                                      
 8001f58:	f8 00 07 09 	calli 8003b7c <rtems_filesystem_location_transform_to_global>
 8001f5c:	5b 81 00 64 	sw (sp+100),r1                                 
  if ( !rtems_filesystem_global_location_is_null( new_current_loc ) ) {
 8001f60:	28 21 00 10 	lw r1,(r1+16)                                  
 8001f64:	78 0c 08 01 	mvhi r12,0x801                                 
 8001f68:	39 8c 17 54 	ori r12,r12,0x1754                             
                                                                      
    if ( rv != 0 ) {                                                  
      rtems_filesystem_global_location_release( new_root_loc );       
    }                                                                 
  } else {                                                            
    rv = -1;                                                          
 8001f6c:	34 0b ff ff 	mvi r11,-1                                     
    &rtems_global_user_env.current_directory                          
  );                                                                  
                                                                      
  rtems_filesystem_eval_path_extract_currentloc( &ctx, &loc );        
  new_current_loc = rtems_filesystem_location_transform_to_global( &loc );
  if ( !rtems_filesystem_global_location_is_null( new_current_loc ) ) {
 8001f70:	44 2c 00 24 	be r1,r12,8002000 <chroot+0xf0>                
    rtems_filesystem_global_location_t *new_root_loc =                
 8001f74:	37 81 00 64 	addi r1,sp,100                                 
 8001f78:	f8 00 06 c7 	calli 8003a94 <rtems_filesystem_global_location_obtain>
      rtems_filesystem_global_location_obtain( &new_current_loc );    
    rtems_filesystem_node_types_t type =                              
      (*new_root_loc->location.mt_entry->ops->node_type_h)(           
 8001f7c:	28 22 00 14 	lw r2,(r1+20)                                  
  );                                                                  
                                                                      
  rtems_filesystem_eval_path_extract_currentloc( &ctx, &loc );        
  new_current_loc = rtems_filesystem_location_transform_to_global( &loc );
  if ( !rtems_filesystem_global_location_is_null( new_current_loc ) ) {
    rtems_filesystem_global_location_t *new_root_loc =                
 8001f80:	b8 20 58 00 	mv r11,r1                                      
      rtems_filesystem_global_location_obtain( &new_current_loc );    
    rtems_filesystem_node_types_t type =                              
      (*new_root_loc->location.mt_entry->ops->node_type_h)(           
 8001f84:	28 42 00 0c 	lw r2,(r2+12)                                  
  rtems_filesystem_eval_path_extract_currentloc( &ctx, &loc );        
  new_current_loc = rtems_filesystem_location_transform_to_global( &loc );
  if ( !rtems_filesystem_global_location_is_null( new_current_loc ) ) {
    rtems_filesystem_global_location_t *new_root_loc =                
      rtems_filesystem_global_location_obtain( &new_current_loc );    
    rtems_filesystem_node_types_t type =                              
 8001f88:	28 42 00 14 	lw r2,(r2+20)                                  
 8001f8c:	d8 40 00 00 	call r2                                        
 8001f90:	b8 20 68 00 	mv r13,r1                                      
      (*new_root_loc->location.mt_entry->ops->node_type_h)(           
        &new_root_loc->location                                       
      );                                                              
                                                                      
    if ( type == RTEMS_FILESYSTEM_DIRECTORY ) {                       
 8001f94:	5c 20 00 13 	bne r1,r0,8001fe0 <chroot+0xd0>                
      sc = rtems_libio_set_private_env();                             
 8001f98:	f8 00 02 fd 	calli 8002b8c <rtems_libio_set_private_env>    
      if (sc == RTEMS_SUCCESSFUL) {                                   
 8001f9c:	5c 2d 00 0c 	bne r1,r13,8001fcc <chroot+0xbc>               
        rtems_filesystem_global_location_assign(                      
 8001fa0:	78 0c 08 01 	mvhi r12,0x801                                 
 8001fa4:	39 8c 21 48 	ori r12,r12,0x2148                             
 8001fa8:	29 81 00 00 	lw r1,(r12+0)                                  
 8001fac:	b9 60 10 00 	mv r2,r11                                      
          &rtems_filesystem_root,                                     
          new_root_loc                                                
        );                                                            
        rtems_filesystem_global_location_assign(                      
 8001fb0:	34 0b 00 00 	mvi r11,0                                      
      );                                                              
                                                                      
    if ( type == RTEMS_FILESYSTEM_DIRECTORY ) {                       
      sc = rtems_libio_set_private_env();                             
      if (sc == RTEMS_SUCCESSFUL) {                                   
        rtems_filesystem_global_location_assign(                      
 8001fb4:	34 21 00 04 	addi r1,r1,4                                   
 8001fb8:	f8 00 06 a9 	calli 8003a5c <rtems_filesystem_global_location_assign>
          &rtems_filesystem_root,                                     
          new_root_loc                                                
        );                                                            
        rtems_filesystem_global_location_assign(                      
 8001fbc:	29 81 00 00 	lw r1,(r12+0)                                  
 8001fc0:	2b 82 00 64 	lw r2,(sp+100)                                 
 8001fc4:	f8 00 06 a6 	calli 8003a5c <rtems_filesystem_global_location_assign>
 8001fc8:	e0 00 00 0e 	bi 8002000 <chroot+0xf0>                       
          &rtems_filesystem_current,                                  
          new_current_loc                                             
        );                                                            
      } else {                                                        
        if (sc != RTEMS_UNSATISFIED) {                                
 8001fcc:	34 02 00 0d 	mvi r2,13                                      
 8001fd0:	44 22 00 09 	be r1,r2,8001ff4 <chroot+0xe4>                 <== NEVER TAKEN
          errno = ENOMEM;                                             
 8001fd4:	f8 00 21 41 	calli 800a4d8 <__errno>                        
 8001fd8:	34 02 00 0c 	mvi r2,12                                      
 8001fdc:	e0 00 00 05 	bi 8001ff0 <chroot+0xe0>                       
static inline void rtems_filesystem_location_error(                   
  const rtems_filesystem_location_info_t *loc,                        
  int eno                                                             
)                                                                     
{                                                                     
  if ( !rtems_filesystem_location_is_null( loc ) ) {                  
 8001fe0:	29 61 00 10 	lw r1,(r11+16)                                 
 8001fe4:	44 2c 00 04 	be r1,r12,8001ff4 <chroot+0xe4>                <== NEVER TAKEN
    errno = eno;                                                      
 8001fe8:	f8 00 21 3c 	calli 800a4d8 <__errno>                        
 8001fec:	34 02 00 14 	mvi r2,20                                      
 8001ff0:	58 22 00 00 	sw (r1+0),r2                                   
      rtems_filesystem_location_error( &new_root_loc->location, ENOTDIR );
      rv = -1;                                                        
    }                                                                 
                                                                      
    if ( rv != 0 ) {                                                  
      rtems_filesystem_global_location_release( new_root_loc );       
 8001ff4:	b9 60 08 00 	mv r1,r11                                      
 8001ff8:	f8 00 06 7e 	calli 80039f0 <rtems_filesystem_global_location_release>
 8001ffc:	34 0b ff ff 	mvi r11,-1                                     
    }                                                                 
  } else {                                                            
    rv = -1;                                                          
  }                                                                   
                                                                      
  rtems_filesystem_eval_path_cleanup( &ctx );                         
 8002000:	37 81 00 14 	addi r1,sp,20                                  
 8002004:	f8 00 05 48 	calli 8003524 <rtems_filesystem_eval_path_cleanup>
                                                                      
  if ( rv != 0 ) {                                                    
 8002008:	45 60 00 03 	be r11,r0,8002014 <chroot+0x104>               
    rtems_filesystem_global_location_release( new_current_loc );      
 800200c:	2b 81 00 64 	lw r1,(sp+100)                                 
 8002010:	f8 00 06 78 	calli 80039f0 <rtems_filesystem_global_location_release>
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 8002014:	b9 60 08 00 	mv r1,r11                                      
 8002018:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800201c:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8002020:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8002024:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8002028:	37 9c 00 64 	addi sp,sp,100                                 
 800202c:	c3 a0 00 00 	ret                                            
                                                                      

0800155c <create_disk>: dev_t dev, const char *name, rtems_disk_device **dd_ptr, char **alloc_name_ptr ) {
 800155c:	37 9c ff d4 	addi sp,sp,-44                                 
 8001560:	5b 8b 00 2c 	sw (sp+44),r11                                 
 8001564:	5b 8c 00 28 	sw (sp+40),r12                                 
 8001568:	5b 8d 00 24 	sw (sp+36),r13                                 
 800156c:	5b 8e 00 20 	sw (sp+32),r14                                 
 8001570:	5b 8f 00 1c 	sw (sp+28),r15                                 
 8001574:	5b 90 00 18 	sw (sp+24),r16                                 
 8001578:	5b 91 00 14 	sw (sp+20),r17                                 
 800157c:	5b 92 00 10 	sw (sp+16),r18                                 
 8001580:	5b 93 00 0c 	sw (sp+12),r19                                 
 8001584:	5b 94 00 08 	sw (sp+8),r20                                  
 8001588:	5b 9d 00 04 	sw (sp+4),ra                                   
 800158c:	b8 40 68 00 	mv r13,r2                                      
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  rtems_filesystem_split_dev_t(dev, major, minor);                    
                                                                      
  if (major >= disktab_size) {                                        
 8001590:	78 02 08 01 	mvhi r2,0x801                                  
 8001594:	38 42 96 d8 	ori r2,r2,0x96d8                               
 8001598:	28 4f 00 00 	lw r15,(r2+0)                                  
  dev_t dev,                                                          
  const char *name,                                                   
  rtems_disk_device **dd_ptr,                                         
  char **alloc_name_ptr                                               
)                                                                     
{                                                                     
 800159c:	b8 20 70 00 	mv r14,r1                                      
 80015a0:	b8 60 90 00 	mv r18,r3                                      
 80015a4:	b8 80 98 00 	mv r19,r4                                      
 80015a8:	b8 a0 a0 00 	mv r20,r5                                      
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  rtems_filesystem_split_dev_t(dev, major, minor);                    
                                                                      
  if (major >= disktab_size) {                                        
 80015ac:	55 e1 00 24 	bgu r15,r1,800163c <create_disk+0xe0>          
    rtems_disk_device_table *table = disktab;                         
 80015b0:	78 02 08 01 	mvhi r2,0x801                                  
 80015b4:	38 42 96 d4 	ori r2,r2,0x96d4                               
 80015b8:	28 4b 00 00 	lw r11,(r2+0)                                  
    rtems_device_major_number old_size = disktab_size;                
    rtems_device_major_number new_size = 2 * old_size;                
 80015bc:	b9 e0 08 00 	mv r1,r15                                      
 80015c0:	34 02 00 01 	mvi r2,1                                       
 80015c4:	f8 00 54 4d 	calli 80166f8 <__ashlsi3>                      
 80015c8:	b8 20 60 00 	mv r12,r1                                      
                                                                      
    if (major >= new_size) {                                          
 80015cc:	54 2e 00 02 	bgu r1,r14,80015d4 <create_disk+0x78>          <== NEVER TAKEN
      new_size = major + 1;                                           
 80015d0:	35 cc 00 01 	addi r12,r14,1                                 
    }                                                                 
                                                                      
    table = realloc(table, new_size * sizeof(*table));                
 80015d4:	34 02 00 03 	mvi r2,3                                       
 80015d8:	b9 80 08 00 	mv r1,r12                                      
 80015dc:	f8 00 54 47 	calli 80166f8 <__ashlsi3>                      
 80015e0:	b8 20 10 00 	mv r2,r1                                       
 80015e4:	b9 60 08 00 	mv r1,r11                                      
 80015e8:	f8 00 09 40 	calli 8003ae8 <realloc>                        
 80015ec:	b8 20 80 00 	mv r16,r1                                      
  rtems_disk_device **dd_entry = create_disk_table_entry(dev);        
  rtems_disk_device *dd = NULL;                                       
  char *alloc_name = NULL;                                            
                                                                      
  if (dd_entry == NULL) {                                             
    return RTEMS_NO_MEMORY;                                           
 80015f0:	34 0b 00 1a 	mvi r11,26                                     
    if (major >= new_size) {                                          
      new_size = major + 1;                                           
    }                                                                 
                                                                      
    table = realloc(table, new_size * sizeof(*table));                
    if (table == NULL) {                                              
 80015f4:	44 20 00 68 	be r1,r0,8001794 <create_disk+0x238>           <== ALWAYS TAKEN
      return NULL;                                                    
    }                                                                 
                                                                      
    memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
 80015f8:	34 02 00 03 	mvi r2,3                                       <== NOT EXECUTED
 80015fc:	c9 8f 08 00 	sub r1,r12,r15                                 <== NOT EXECUTED
 8001600:	f8 00 54 3e 	calli 80166f8 <__ashlsi3>                      <== NOT EXECUTED
 8001604:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
 8001608:	34 02 00 03 	mvi r2,3                                       <== NOT EXECUTED
 800160c:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
 8001610:	f8 00 54 3a 	calli 80166f8 <__ashlsi3>                      <== NOT EXECUTED
 8001614:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 8001618:	b6 01 08 00 	add r1,r16,r1                                  <== NOT EXECUTED
 800161c:	b9 60 18 00 	mv r3,r11                                      <== NOT EXECUTED
 8001620:	f8 00 40 32 	calli 80116e8 <memset>                         <== NOT EXECUTED
    disktab = table;                                                  
 8001624:	78 02 08 01 	mvhi r2,0x801                                  <== NOT EXECUTED
 8001628:	38 42 96 d4 	ori r2,r2,0x96d4                               <== NOT EXECUTED
 800162c:	58 50 00 00 	sw (r2+0),r16                                  <== NOT EXECUTED
    disktab_size = new_size;                                          
 8001630:	78 02 08 01 	mvhi r2,0x801                                  <== NOT EXECUTED
 8001634:	38 42 96 d8 	ori r2,r2,0x96d8                               <== NOT EXECUTED
 8001638:	58 4c 00 00 	sw (r2+0),r12                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  if (disktab [major].minor == NULL || minor >= disktab[major].size) {
 800163c:	34 02 00 03 	mvi r2,3                                       
 8001640:	b9 c0 08 00 	mv r1,r14                                      
 8001644:	f8 00 54 2d 	calli 80166f8 <__ashlsi3>                      
 8001648:	78 02 08 01 	mvhi r2,0x801                                  
 800164c:	38 42 96 d4 	ori r2,r2,0x96d4                               
 8001650:	28 42 00 00 	lw r2,(r2+0)                                   
 8001654:	b8 20 80 00 	mv r16,r1                                      
 8001658:	b4 41 10 00 	add r2,r2,r1                                   
 800165c:	28 4b 00 00 	lw r11,(r2+0)                                  
 8001660:	45 60 00 03 	be r11,r0,800166c <create_disk+0x110>          
 8001664:	28 41 00 04 	lw r1,(r2+4)                                   
 8001668:	54 2d 00 24 	bgu r1,r13,80016f8 <create_disk+0x19c>         
    rtems_disk_device **table = disktab [major].minor;                
    rtems_device_minor_number old_size = disktab [major].size;        
 800166c:	28 4f 00 04 	lw r15,(r2+4)                                  
    rtems_device_minor_number new_size = 0;                           
                                                                      
    if (old_size == 0) {                                              
      new_size = DISKTAB_INITIAL_SIZE;                                
 8001670:	34 0c 00 08 	mvi r12,8                                      
  if (disktab [major].minor == NULL || minor >= disktab[major].size) {
    rtems_disk_device **table = disktab [major].minor;                
    rtems_device_minor_number old_size = disktab [major].size;        
    rtems_device_minor_number new_size = 0;                           
                                                                      
    if (old_size == 0) {                                              
 8001674:	45 e0 00 05 	be r15,r0,8001688 <create_disk+0x12c>          
      new_size = DISKTAB_INITIAL_SIZE;                                
    } else {                                                          
      new_size = 2 * old_size;                                        
 8001678:	b9 e0 08 00 	mv r1,r15                                      
 800167c:	34 02 00 01 	mvi r2,1                                       
 8001680:	f8 00 54 1e 	calli 80166f8 <__ashlsi3>                      
 8001684:	b8 20 60 00 	mv r12,r1                                      
    }                                                                 
    if (minor >= new_size) {                                          
 8001688:	55 8d 00 02 	bgu r12,r13,8001690 <create_disk+0x134>        
      new_size = minor + 1;                                           
 800168c:	35 ac 00 01 	addi r12,r13,1                                 
    }                                                                 
                                                                      
    table = realloc(table, new_size * sizeof(*table));                
 8001690:	34 02 00 02 	mvi r2,2                                       
 8001694:	b9 80 08 00 	mv r1,r12                                      
 8001698:	f8 00 54 18 	calli 80166f8 <__ashlsi3>                      
 800169c:	b8 20 10 00 	mv r2,r1                                       
 80016a0:	b9 60 08 00 	mv r1,r11                                      
 80016a4:	f8 00 09 11 	calli 8003ae8 <realloc>                        
 80016a8:	b8 20 88 00 	mv r17,r1                                      
  rtems_disk_device **dd_entry = create_disk_table_entry(dev);        
  rtems_disk_device *dd = NULL;                                       
  char *alloc_name = NULL;                                            
                                                                      
  if (dd_entry == NULL) {                                             
    return RTEMS_NO_MEMORY;                                           
 80016ac:	34 0b 00 1a 	mvi r11,26                                     
    if (minor >= new_size) {                                          
      new_size = minor + 1;                                           
    }                                                                 
                                                                      
    table = realloc(table, new_size * sizeof(*table));                
    if (table == NULL) {                                              
 80016b0:	44 20 00 39 	be r1,r0,8001794 <create_disk+0x238>           
      return NULL;                                                    
    }                                                                 
                                                                      
    memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
 80016b4:	34 02 00 02 	mvi r2,2                                       
 80016b8:	c9 8f 08 00 	sub r1,r12,r15                                 
 80016bc:	f8 00 54 0f 	calli 80166f8 <__ashlsi3>                      
 80016c0:	b8 20 58 00 	mv r11,r1                                      
 80016c4:	34 02 00 02 	mvi r2,2                                       
 80016c8:	b9 e0 08 00 	mv r1,r15                                      
 80016cc:	f8 00 54 0b 	calli 80166f8 <__ashlsi3>                      
 80016d0:	34 02 00 00 	mvi r2,0                                       
 80016d4:	b6 21 08 00 	add r1,r17,r1                                  
 80016d8:	b9 60 18 00 	mv r3,r11                                      
 80016dc:	f8 00 40 03 	calli 80116e8 <memset>                         
    disktab [major].minor = table;                                    
 80016e0:	78 02 08 01 	mvhi r2,0x801                                  
 80016e4:	38 42 96 d4 	ori r2,r2,0x96d4                               
 80016e8:	28 41 00 00 	lw r1,(r2+0)                                   
 80016ec:	b4 30 08 00 	add r1,r1,r16                                  
 80016f0:	58 31 00 00 	sw (r1+0),r17                                  
    disktab [major].size = new_size;                                  
 80016f4:	58 2c 00 04 	sw (r1+4),r12                                  
  }                                                                   
                                                                      
  return disktab [major].minor + minor;                               
 80016f8:	78 02 08 01 	mvhi r2,0x801                                  
 80016fc:	38 42 96 d4 	ori r2,r2,0x96d4                               
 8001700:	28 41 00 00 	lw r1,(r2+0)                                   
 8001704:	34 02 00 02 	mvi r2,2                                       
  rtems_disk_device **dd_entry = create_disk_table_entry(dev);        
  rtems_disk_device *dd = NULL;                                       
  char *alloc_name = NULL;                                            
                                                                      
  if (dd_entry == NULL) {                                             
    return RTEMS_NO_MEMORY;                                           
 8001708:	34 0b 00 1a 	mvi r11,26                                     
    memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
    disktab [major].minor = table;                                    
    disktab [major].size = new_size;                                  
  }                                                                   
                                                                      
  return disktab [major].minor + minor;                               
 800170c:	b4 30 80 00 	add r16,r1,r16                                 
 8001710:	b9 a0 08 00 	mv r1,r13                                      
 8001714:	f8 00 53 f9 	calli 80166f8 <__ashlsi3>                      
 8001718:	2a 0f 00 00 	lw r15,(r16+0)                                 
 800171c:	b5 e1 78 00 	add r15,r15,r1                                 
{                                                                     
  rtems_disk_device **dd_entry = create_disk_table_entry(dev);        
  rtems_disk_device *dd = NULL;                                       
  char *alloc_name = NULL;                                            
                                                                      
  if (dd_entry == NULL) {                                             
 8001720:	45 e0 00 1d 	be r15,r0,8001794 <create_disk+0x238>          <== NEVER TAKEN
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  if (*dd_entry != NULL) {                                            
 8001724:	29 f0 00 00 	lw r16,(r15+0)                                 
    return RTEMS_RESOURCE_IN_USE;                                     
 8001728:	34 0b 00 0c 	mvi r11,12                                     
                                                                      
  if (dd_entry == NULL) {                                             
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  if (*dd_entry != NULL) {                                            
 800172c:	5e 00 00 1a 	bne r16,r0,8001794 <create_disk+0x238>         
    return RTEMS_RESOURCE_IN_USE;                                     
  }                                                                   
                                                                      
  dd = malloc(sizeof(*dd));                                           
 8001730:	34 01 00 78 	mvi r1,120                                     
 8001734:	f8 00 06 05 	calli 8002f48 <malloc>                         
 8001738:	b8 20 60 00 	mv r12,r1                                      
  if (dd == NULL) {                                                   
    return RTEMS_NO_MEMORY;                                           
 800173c:	34 0b 00 1a 	mvi r11,26                                     
  if (*dd_entry != NULL) {                                            
    return RTEMS_RESOURCE_IN_USE;                                     
  }                                                                   
                                                                      
  dd = malloc(sizeof(*dd));                                           
  if (dd == NULL) {                                                   
 8001740:	44 30 00 15 	be r1,r16,8001794 <create_disk+0x238>          <== NEVER TAKEN
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  if (name != NULL) {                                                 
 8001744:	46 40 00 0f 	be r18,r0,8001780 <create_disk+0x224>          
    alloc_name = strdup(name);                                        
 8001748:	ba 40 08 00 	mv r1,r18                                      
 800174c:	f8 00 41 2e 	calli 8011c04 <strdup>                         
 8001750:	b8 20 80 00 	mv r16,r1                                      
 8001754:	b8 20 88 00 	mv r17,r1                                      
                                                                      
    if (alloc_name == NULL) {                                         
 8001758:	5c 20 00 1d 	bne r1,r0,80017cc <create_disk+0x270>          <== ALWAYS TAKEN
      free(dd);                                                       
 800175c:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8001760:	f8 00 04 6c 	calli 8002910 <free>                           <== NOT EXECUTED
                                                                      
      return RTEMS_NO_MEMORY;                                         
 8001764:	e0 00 00 0c 	bi 8001794 <create_disk+0x238>                 <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
  if (name != NULL) {                                                 
    if (mknod(alloc_name, 0777 | S_IFBLK, dev) < 0) {                 
      free(alloc_name);                                               
 8001768:	ba 00 08 00 	mv r1,r16                                      <== NOT EXECUTED
 800176c:	f8 00 04 69 	calli 8002910 <free>                           <== NOT EXECUTED
      free(dd);                                                       
 8001770:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8001774:	f8 00 04 67 	calli 8002910 <free>                           <== NOT EXECUTED
      return RTEMS_UNSATISFIED;                                       
 8001778:	34 0b 00 0d 	mvi r11,13                                     <== NOT EXECUTED
 800177c:	e0 00 00 06 	bi 8001794 <create_disk+0x238>                 <== NOT EXECUTED
  char **alloc_name_ptr                                               
)                                                                     
{                                                                     
  rtems_disk_device **dd_entry = create_disk_table_entry(dev);        
  rtems_disk_device *dd = NULL;                                       
  char *alloc_name = NULL;                                            
 8001780:	34 11 00 00 	mvi r17,0                                      
      free(dd);                                                       
      return RTEMS_UNSATISFIED;                                       
    }                                                                 
  }                                                                   
                                                                      
  *dd_entry = dd;                                                     
 8001784:	59 ec 00 00 	sw (r15+0),r12                                 
  *dd_ptr = dd;                                                       
 8001788:	5a 6c 00 00 	sw (r19+0),r12                                 
  *alloc_name_ptr = alloc_name;                                       
 800178c:	5a 91 00 00 	sw (r20+0),r17                                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 8001790:	34 0b 00 00 	mvi r11,0                                      
}                                                                     
 8001794:	b9 60 08 00 	mv r1,r11                                      
 8001798:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800179c:	2b 8b 00 2c 	lw r11,(sp+44)                                 
 80017a0:	2b 8c 00 28 	lw r12,(sp+40)                                 
 80017a4:	2b 8d 00 24 	lw r13,(sp+36)                                 
 80017a8:	2b 8e 00 20 	lw r14,(sp+32)                                 
 80017ac:	2b 8f 00 1c 	lw r15,(sp+28)                                 
 80017b0:	2b 90 00 18 	lw r16,(sp+24)                                 
 80017b4:	2b 91 00 14 	lw r17,(sp+20)                                 
 80017b8:	2b 92 00 10 	lw r18,(sp+16)                                 
 80017bc:	2b 93 00 0c 	lw r19,(sp+12)                                 
 80017c0:	2b 94 00 08 	lw r20,(sp+8)                                  
 80017c4:	37 9c 00 2c 	addi sp,sp,44                                  
 80017c8:	c3 a0 00 00 	ret                                            
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
  }                                                                   
                                                                      
  if (name != NULL) {                                                 
    if (mknod(alloc_name, 0777 | S_IFBLK, dev) < 0) {                 
 80017cc:	34 02 61 ff 	mvi r2,25087                                   
 80017d0:	b9 c0 18 00 	mv r3,r14                                      
 80017d4:	b9 a0 20 00 	mv r4,r13                                      
 80017d8:	f8 00 06 44 	calli 80030e8 <mknod>                          
 80017dc:	48 01 ff e3 	bg r0,r1,8001768 <create_disk+0x20c>           <== NEVER TAKEN
 80017e0:	e3 ff ff e9 	bi 8001784 <create_disk+0x228>                 
                                                                      

08001114 <ctermid>: * ctermid() - POSIX 1003.1b 4.7.1 - Generate Terminal Pathname */ char *ctermid( char *s ) {
 8001114:	37 9c ff f8 	addi sp,sp,-8                                  <== NOT EXECUTED
 8001118:	5b 8b 00 08 	sw (sp+8),r11                                  <== NOT EXECUTED
 800111c:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
 8001120:	78 02 08 00 	mvhi r2,0x800                                  <== NOT EXECUTED
 8001124:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
 8001128:	38 42 f5 38 	ori r2,r2,0xf538                               <== NOT EXECUTED
  if ( !s )                                                           
 800112c:	44 20 00 03 	be r1,r0,8001138 <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 );                                          
 8001130:	f8 00 25 f5 	calli 800a904 <strcpy>                         <== NOT EXECUTED
  return s;                                                           
 8001134:	e0 00 00 02 	bi 800113c <ctermid+0x28>                      <== NOT EXECUTED
char *ctermid(                                                        
  char *s                                                             
)                                                                     
{                                                                     
  if ( !s )                                                           
    return ctermid_name;                                              
 8001138:	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;                                                           
}                                                                     
 800113c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8001140:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 8001144:	2b 8b 00 08 	lw r11,(sp+8)                                  <== NOT EXECUTED
 8001148:	37 9c 00 08 	addi sp,sp,8                                   <== NOT EXECUTED
 800114c:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08003078 <data_to_part_desc>: * RTEMS_NO_MEMOTY, if cannot allocate memory for part_desc_t strucure; * RTEMS_INTERNAL_ERROR, if other error occurs. */ static rtems_status_code data_to_part_desc(uint8_t *data, rtems_part_desc_t **new_part_desc) {
 8003078:	37 9c ff e4 	addi sp,sp,-28                                 
 800307c:	5b 8b 00 18 	sw (sp+24),r11                                 
 8003080:	5b 8c 00 14 	sw (sp+20),r12                                 
 8003084:	5b 8d 00 10 	sw (sp+16),r13                                 
 8003088:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800308c:	5b 8f 00 08 	sw (sp+8),r15                                  
 8003090:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003094:	b8 20 60 00 	mv r12,r1                                      
 8003098:	b8 40 70 00 	mv r14,r2                                      
    rtems_part_desc_t *part_desc;                                     
    uint32_t           temp;                                          
                                                                      
    if (new_part_desc == NULL)                                        
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
 800309c:	34 01 00 19 	mvi r1,25                                      
data_to_part_desc(uint8_t *data, rtems_part_desc_t **new_part_desc)   
{                                                                     
    rtems_part_desc_t *part_desc;                                     
    uint32_t           temp;                                          
                                                                      
    if (new_part_desc == NULL)                                        
 80030a0:	44 40 00 35 	be r2,r0,8003174 <data_to_part_desc+0xfc>      <== NEVER TAKEN
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    *new_part_desc = NULL;                                            
 80030a4:	58 40 00 00 	sw (r2+0),r0                                   
                                                                      
    if ((part_desc = calloc(1, sizeof(rtems_part_desc_t))) == NULL)   
 80030a8:	34 01 00 01 	mvi r1,1                                       
 80030ac:	34 02 00 28 	mvi r2,40                                      
 80030b0:	f8 00 03 70 	calli 8003e70 <calloc>                         
 80030b4:	b8 20 58 00 	mv r11,r1                                      
    {                                                                 
        return RTEMS_NO_MEMORY;                                       
 80030b8:	34 01 00 1a 	mvi r1,26                                      
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    *new_part_desc = NULL;                                            
                                                                      
    if ((part_desc = calloc(1, sizeof(rtems_part_desc_t))) == NULL)   
 80030bc:	45 60 00 2e 	be r11,r0,8003174 <data_to_part_desc+0xfc>     <== NEVER TAKEN
    {                                                                 
        return RTEMS_NO_MEMORY;                                       
    }                                                                 
                                                                      
    part_desc->bootable = *(data + RTEMS_IDE_PARTITION_BOOTABLE_OFFSET);
 80030c0:	41 81 00 00 	lbu r1,(r12+0)                                 
 80030c4:	31 61 00 00 	sb (r11+0),r1                                  
    part_desc->sys_type = *(data + RTEMS_IDE_PARTITION_SYS_TYPE_OFFSET);
 80030c8:	41 8d 00 04 	lbu r13,(r12+4)                                
                                                                      
    /* read the offset start position and partition size in sectors */
                                                                      
    /* due to incorrect data alignment one have to align data first */
    memcpy(&temp, data + RTEMS_IDE_PARTITION_START_OFFSET, sizeof(uint32_t));
 80030cc:	35 81 00 08 	addi r1,r12,8                                  
    {                                                                 
        return RTEMS_NO_MEMORY;                                       
    }                                                                 
                                                                      
    part_desc->bootable = *(data + RTEMS_IDE_PARTITION_BOOTABLE_OFFSET);
    part_desc->sys_type = *(data + RTEMS_IDE_PARTITION_SYS_TYPE_OFFSET);
 80030d0:	31 6d 00 01 	sb (r11+1),r13                                 
                                                                      
    /* read the offset start position and partition size in sectors */
                                                                      
    /* due to incorrect data alignment one have to align data first */
    memcpy(&temp, data + RTEMS_IDE_PARTITION_START_OFFSET, sizeof(uint32_t));
 80030d4:	41 84 00 08 	lbu r4,(r12+8)                                 
 80030d8:	40 23 00 01 	lbu r3,(r1+1)                                  
 80030dc:	40 22 00 02 	lbu r2,(r1+2)                                  
 80030e0:	40 21 00 03 	lbu r1,(r1+3)                                  
 80030e4:	33 84 00 1c 	sb (sp+28),r4                                  
 80030e8:	33 83 00 1d 	sb (sp+29),r3                                  
 80030ec:	33 82 00 1e 	sb (sp+30),r2                                  
 80030f0:	33 81 00 1f 	sb (sp+31),r1                                  
    part_desc->start = LE_TO_CPU_U32(temp);                           
 80030f4:	2b 81 00 1c 	lw r1,(sp+28)                                  
 *      true if partition type is extended, false otherwise           
 */                                                                   
static bool                                                           
is_extended(uint8_t type)                                             
{                                                                     
    return ((type == EXTENDED_PARTITION) || (type == LINUX_EXTENDED));
 80030f8:	65 af 00 85 	cmpei r15,r13,133                              
                                                                      
    /* read the offset start position and partition size in sectors */
                                                                      
    /* due to incorrect data alignment one have to align data first */
    memcpy(&temp, data + RTEMS_IDE_PARTITION_START_OFFSET, sizeof(uint32_t));
    part_desc->start = LE_TO_CPU_U32(temp);                           
 80030fc:	fb ff ff 60 	calli 8002e7c <CPU_swap_u32>                   
 8003100:	59 61 00 04 	sw (r11+4),r1                                  
                                                                      
    memcpy(&temp, data + RTEMS_IDE_PARTITION_SIZE_OFFSET, sizeof(uint32_t));
 8003104:	35 81 00 0c 	addi r1,r12,12                                 
 8003108:	41 84 00 0c 	lbu r4,(r12+12)                                
 800310c:	40 23 00 01 	lbu r3,(r1+1)                                  
 8003110:	40 22 00 02 	lbu r2,(r1+2)                                  
 8003114:	40 21 00 03 	lbu r1,(r1+3)                                  
 8003118:	33 84 00 1c 	sb (sp+28),r4                                  
 800311c:	33 83 00 1d 	sb (sp+29),r3                                  
 8003120:	33 82 00 1e 	sb (sp+30),r2                                  
 8003124:	33 81 00 1f 	sb (sp+31),r1                                  
    part_desc->size = LE_TO_CPU_U32(temp);                            
 8003128:	2b 81 00 1c 	lw r1,(sp+28)                                  
 800312c:	fb ff ff 54 	calli 8002e7c <CPU_swap_u32>                   
 8003130:	b8 20 60 00 	mv r12,r1                                      
 8003134:	59 61 00 08 	sw (r11+8),r1                                  
 *      true if partition type is extended, false otherwise           
 */                                                                   
static bool                                                           
is_extended(uint8_t type)                                             
{                                                                     
    return ((type == EXTENDED_PARTITION) || (type == LINUX_EXTENDED));
 8003138:	65 a1 00 05 	cmpei r1,r13,5                                 
 800313c:	b9 e1 78 00 	or r15,r15,r1                                  
     * use partitions that are                                        
     * - extended                                                     
     * or                                                             
     * - FAT type and non-zero                                        
     */                                                               
    if (is_extended(part_desc->sys_type) ||                           
 8003140:	5d e0 00 08 	bne r15,r0,8003160 <data_to_part_desc+0xe8>    
    DOS_P32MB_PARTITION,                                              
    FAT32_PARTITION    ,FAT32_LBA_PARTITION,                          
    FAT16_LBA_PARTITION                                               
  };                                                                  
                                                                      
  return (NULL != memchr(fat_part_types,type,sizeof(fat_part_types)));
 8003144:	78 01 08 02 	mvhi r1,0x802                                  
 8003148:	38 21 52 9c 	ori r1,r1,0x529c                               
 800314c:	b9 a0 10 00 	mv r2,r13                                      
 8003150:	34 03 00 06 	mvi r3,6                                       
 8003154:	f8 00 3f 63 	calli 8012ee0 <memchr>                         
     * use partitions that are                                        
     * - extended                                                     
     * or                                                             
     * - FAT type and non-zero                                        
     */                                                               
    if (is_extended(part_desc->sys_type) ||                           
 8003158:	44 2f 00 04 	be r1,r15,8003168 <data_to_part_desc+0xf0>     
       ((is_fat_partition(part_desc->sys_type)) && (part_desc->size != 0))) {
 800315c:	45 80 00 03 	be r12,r0,8003168 <data_to_part_desc+0xf0>     <== NEVER TAKEN
      *new_part_desc = part_desc;                                     
 8003160:	59 cb 00 00 	sw (r14+0),r11                                 
 8003164:	e0 00 00 03 	bi 8003170 <data_to_part_desc+0xf8>            
    }                                                                 
    else {                                                            
      /* empty partition */                                           
      free(part_desc);                                                
 8003168:	b9 60 08 00 	mv r1,r11                                      
 800316c:	f8 00 03 8b 	calli 8003f98 <free>                           
    }                                                                 
    return RTEMS_SUCCESSFUL;                                          
 8003170:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 8003174:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003178:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800317c:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8003180:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8003184:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8003188:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800318c:	37 9c 00 1c 	addi sp,sp,28                                  
 8003190:	c3 a0 00 00 	ret                                            
                                                                      

080008c0 <devFS_Show>: #endif #include "devfs.h" void devFS_Show(void) {
 80008c0:	37 9c ff dc 	addi sp,sp,-36                                 
 80008c4:	5b 8b 00 24 	sw (sp+36),r11                                 
 80008c8:	5b 8c 00 20 	sw (sp+32),r12                                 
 80008cc:	5b 8d 00 1c 	sw (sp+28),r13                                 
 80008d0:	5b 8e 00 18 	sw (sp+24),r14                                 
 80008d4:	5b 8f 00 14 	sw (sp+20),r15                                 
 80008d8:	5b 90 00 10 	sw (sp+16),r16                                 
 80008dc:	5b 91 00 0c 	sw (sp+12),r17                                 
 80008e0:	5b 92 00 08 	sw (sp+8),r18                                  
 80008e4:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_filesystem_location_info_t *rootloc = &rtems_filesystem_root->location;
 80008e8:	78 01 08 01 	mvhi r1,0x801                                  
 80008ec:	38 21 01 80 	ori r1,r1,0x180                                
 80008f0:	28 21 00 00 	lw r1,(r1+0)                                   
 80008f4:	28 21 00 04 	lw r1,(r1+4)                                   
                                                                      
  if (rootloc->mt_entry->ops == &devFS_ops) {                         
 80008f8:	28 22 00 14 	lw r2,(r1+20)                                  
 80008fc:	78 01 08 00 	mvhi r1,0x800                                  
 8000900:	38 21 ee 98 	ori r1,r1,0xee98                               
 8000904:	28 43 00 0c 	lw r3,(r2+12)                                  
 8000908:	5c 61 00 21 	bne r3,r1,800098c <devFS_Show+0xcc>            <== NEVER TAKEN
                                                                      
static inline const devFS_data *devFS_get_data(                       
  const rtems_filesystem_location_info_t *loc                         
)                                                                     
{                                                                     
  return (const devFS_data *) loc->mt_entry->immutable_fs_info;       
 800090c:	28 41 00 10 	lw r1,(r2+16)                                  
                                                                      
      if (current->name != NULL) {                                    
        size_t j = 0;                                                 
        size_t m = current->namelen;                                  
                                                                      
        printk("/");                                                  
 8000910:	78 0f 08 00 	mvhi r15,0x800                                 
        for (j = 0; j < m; ++j) {                                     
          printk("%c", current->name [j]);                            
 8000914:	78 0e 08 00 	mvhi r14,0x800                                 
        }                                                             
        printk(                                                       
 8000918:	78 0d 08 00 	mvhi r13,0x800                                 
  rtems_filesystem_location_info_t *rootloc = &rtems_filesystem_root->location;
                                                                      
  if (rootloc->mt_entry->ops == &devFS_ops) {                         
    const devFS_data *data = devFS_get_data(rootloc);                 
    size_t i = 0;                                                     
    size_t n = data->count;                                           
 800091c:	28 31 00 04 	lw r17,(r1+4)                                  
 8000920:	28 2b 00 00 	lw r11,(r1+0)                                  
    devFS_node *nodes = data->nodes;                                  
                                                                      
    for (i = 0; i < n; ++i) {                                         
 8000924:	34 10 00 00 	mvi r16,0                                      
                                                                      
      if (current->name != NULL) {                                    
        size_t j = 0;                                                 
        size_t m = current->namelen;                                  
                                                                      
        printk("/");                                                  
 8000928:	39 ef ef 18 	ori r15,r15,0xef18                             
        for (j = 0; j < m; ++j) {                                     
          printk("%c", current->name [j]);                            
 800092c:	39 ce ef 1c 	ori r14,r14,0xef1c                             
        }                                                             
        printk(                                                       
 8000930:	39 ad ef 20 	ori r13,r13,0xef20                             
    const devFS_data *data = devFS_get_data(rootloc);                 
    size_t i = 0;                                                     
    size_t n = data->count;                                           
    devFS_node *nodes = data->nodes;                                  
                                                                      
    for (i = 0; i < n; ++i) {                                         
 8000934:	e0 00 00 15 	bi 8000988 <devFS_Show+0xc8>                   
      devFS_node *current = nodes + i;                                
                                                                      
      if (current->name != NULL) {                                    
 8000938:	29 61 00 00 	lw r1,(r11+0)                                  
 800093c:	44 20 00 11 	be r1,r0,8000980 <devFS_Show+0xc0>             
        size_t j = 0;                                                 
        size_t m = current->namelen;                                  
                                                                      
        printk("/");                                                  
 8000940:	b9 e0 08 00 	mv r1,r15                                      
    for (i = 0; i < n; ++i) {                                         
      devFS_node *current = nodes + i;                                
                                                                      
      if (current->name != NULL) {                                    
        size_t j = 0;                                                 
        size_t m = current->namelen;                                  
 8000944:	29 72 00 04 	lw r18,(r11+4)                                 
                                                                      
        printk("/");                                                  
        for (j = 0; j < m; ++j) {                                     
 8000948:	34 0c 00 00 	mvi r12,0                                      
                                                                      
      if (current->name != NULL) {                                    
        size_t j = 0;                                                 
        size_t m = current->namelen;                                  
                                                                      
        printk("/");                                                  
 800094c:	f8 00 03 e2 	calli 80018d4 <printk>                         
        for (j = 0; j < m; ++j) {                                     
 8000950:	e0 00 00 07 	bi 800096c <devFS_Show+0xac>                   
          printk("%c", current->name [j]);                            
 8000954:	29 62 00 00 	lw r2,(r11+0)                                  
 8000958:	b9 c0 08 00 	mv r1,r14                                      
 800095c:	b4 4c 10 00 	add r2,r2,r12                                  
 8000960:	40 42 00 00 	lbu r2,(r2+0)                                  
      if (current->name != NULL) {                                    
        size_t j = 0;                                                 
        size_t m = current->namelen;                                  
                                                                      
        printk("/");                                                  
        for (j = 0; j < m; ++j) {                                     
 8000964:	35 8c 00 01 	addi r12,r12,1                                 
          printk("%c", current->name [j]);                            
 8000968:	f8 00 03 db 	calli 80018d4 <printk>                         
      if (current->name != NULL) {                                    
        size_t j = 0;                                                 
        size_t m = current->namelen;                                  
                                                                      
        printk("/");                                                  
        for (j = 0; j < m; ++j) {                                     
 800096c:	56 4c ff fa 	bgu r18,r12,8000954 <devFS_Show+0x94>          
          printk("%c", current->name [j]);                            
        }                                                             
        printk(                                                       
 8000970:	29 62 00 08 	lw r2,(r11+8)                                  
 8000974:	29 63 00 0c 	lw r3,(r11+12)                                 
 8000978:	b9 a0 08 00 	mv r1,r13                                      
 800097c:	f8 00 03 d6 	calli 80018d4 <printk>                         
    const devFS_data *data = devFS_get_data(rootloc);                 
    size_t i = 0;                                                     
    size_t n = data->count;                                           
    devFS_node *nodes = data->nodes;                                  
                                                                      
    for (i = 0; i < n; ++i) {                                         
 8000980:	36 10 00 01 	addi r16,r16,1                                 
 8000984:	35 6b 00 14 	addi r11,r11,20                                
 8000988:	56 30 ff ec 	bgu r17,r16,8000938 <devFS_Show+0x78>          
          (unsigned long) current->minor                              
        );                                                            
      }                                                               
    }                                                                 
  }                                                                   
}                                                                     
 800098c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8000990:	2b 8b 00 24 	lw r11,(sp+36)                                 
 8000994:	2b 8c 00 20 	lw r12,(sp+32)                                 
 8000998:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 800099c:	2b 8e 00 18 	lw r14,(sp+24)                                 
 80009a0:	2b 8f 00 14 	lw r15,(sp+20)                                 
 80009a4:	2b 90 00 10 	lw r16,(sp+16)                                 
 80009a8:	2b 91 00 0c 	lw r17,(sp+12)                                 
 80009ac:	2b 92 00 08 	lw r18,(sp+8)                                  
 80009b0:	37 9c 00 24 	addi sp,sp,36                                  
 80009b4:	c3 a0 00 00 	ret                                            
                                                                      

08009bd8 <devFS_eval_path>: } void devFS_eval_path( rtems_filesystem_eval_path_context_t *ctx ) {
 8009bd8:	37 9c ff dc 	addi sp,sp,-36                                 
 8009bdc:	5b 8b 00 24 	sw (sp+36),r11                                 
 8009be0:	5b 8c 00 20 	sw (sp+32),r12                                 
 8009be4:	5b 8d 00 1c 	sw (sp+28),r13                                 
 8009be8:	5b 8e 00 18 	sw (sp+24),r14                                 
 8009bec:	5b 8f 00 14 	sw (sp+20),r15                                 
 8009bf0:	5b 90 00 10 	sw (sp+16),r16                                 
 8009bf4:	5b 91 00 0c 	sw (sp+12),r17                                 
 8009bf8:	5b 92 00 08 	sw (sp+8),r18                                  
 8009bfc:	5b 9d 00 04 	sw (sp+4),ra                                   
 8009c00:	b8 20 58 00 	mv r11,r1                                      
                                                                      
static inline const devFS_data *devFS_get_data(                       
  const rtems_filesystem_location_info_t *loc                         
)                                                                     
{                                                                     
  return (const devFS_data *) loc->mt_entry->immutable_fs_info;       
 8009c04:	28 21 00 2c 	lw r1,(r1+44)                                  
      }                                                               
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, ENOENT);                  
    }                                                                 
  }                                                                   
}                                                                     
 8009c08:	29 71 00 00 	lw r17,(r11+0)                                 
 8009c0c:	29 6f 00 04 	lw r15,(r11+4)                                 
 8009c10:	28 21 00 10 	lw r1,(r1+16)                                  
{                                                                     
  size_t i = 0;                                                       
  size_t n = data->count;                                             
  devFS_node *nodes = data->nodes;                                    
  devFS_node *node = NULL;                                            
  devFS_node *free_node = NULL;                                       
 8009c14:	34 0d 00 00 	mvi r13,0                                      
)                                                                     
{                                                                     
  size_t i = 0;                                                       
  size_t n = data->count;                                             
  devFS_node *nodes = data->nodes;                                    
  devFS_node *node = NULL;                                            
 8009c18:	34 0e 00 00 	mvi r14,0                                      
  size_t pathlen,                                                     
  devFS_node **free_node_ptr                                          
)                                                                     
{                                                                     
  size_t i = 0;                                                       
  size_t n = data->count;                                             
 8009c1c:	28 32 00 04 	lw r18,(r1+4)                                  
 8009c20:	28 2c 00 00 	lw r12,(r1+0)                                  
  devFS_node *nodes = data->nodes;                                    
  devFS_node *node = NULL;                                            
  devFS_node *free_node = NULL;                                       
                                                                      
  for (i = 0; (free_node == NULL || node == NULL) && i < n; ++i) {    
 8009c24:	34 10 00 00 	mvi r16,0                                      
 8009c28:	e0 00 00 0f 	bi 8009c64 <devFS_eval_path+0x8c>              
    devFS_node *current = nodes + i;                                  
                                                                      
    if (current->name != NULL) {                                      
 8009c2c:	29 81 00 00 	lw r1,(r12+0)                                  
 8009c30:	44 20 00 08 	be r1,r0,8009c50 <devFS_eval_path+0x78>        
      if (                                                            
 8009c34:	29 82 00 04 	lw r2,(r12+4)                                  
 8009c38:	5c 4f 00 09 	bne r2,r15,8009c5c <devFS_eval_path+0x84>      
        current->namelen == pathlen                                   
          && memcmp(current->name, path, pathlen) == 0                
 8009c3c:	ba 20 10 00 	mv r2,r17                                      
 8009c40:	b9 e0 18 00 	mv r3,r15                                      
 8009c44:	f8 00 0d 30 	calli 800d104 <memcmp>                         
 8009c48:	44 20 00 04 	be r1,r0,8009c58 <devFS_eval_path+0x80>        
 8009c4c:	e0 00 00 04 	bi 8009c5c <devFS_eval_path+0x84>              
  devFS_node *free_node = NULL;                                       
                                                                      
  for (i = 0; (free_node == NULL || node == NULL) && i < n; ++i) {    
    devFS_node *current = nodes + i;                                  
                                                                      
    if (current->name != NULL) {                                      
 8009c50:	b9 80 68 00 	mv r13,r12                                     
 8009c54:	e0 00 00 02 	bi 8009c5c <devFS_eval_path+0x84>              
      if (                                                            
        current->namelen == pathlen                                   
          && memcmp(current->name, path, pathlen) == 0                
 8009c58:	b9 80 70 00 	mv r14,r12                                     
  size_t n = data->count;                                             
  devFS_node *nodes = data->nodes;                                    
  devFS_node *node = NULL;                                            
  devFS_node *free_node = NULL;                                       
                                                                      
  for (i = 0; (free_node == NULL || node == NULL) && i < n; ++i) {    
 8009c5c:	36 10 00 01 	addi r16,r16,1                                 
 8009c60:	35 8c 00 14 	addi r12,r12,20                                
 8009c64:	65 c2 00 00 	cmpei r2,r14,0                                 
 8009c68:	65 a1 00 00 	cmpei r1,r13,0                                 
 8009c6c:	b8 41 08 00 	or r1,r2,r1                                    
 8009c70:	44 20 00 02 	be r1,r0,8009c78 <devFS_eval_path+0xa0>        
 8009c74:	56 50 ff ee 	bgu r18,r16,8009c2c <devFS_eval_path+0x54>     
      }                                                               
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, ENOENT);                  
    }                                                                 
  }                                                                   
}                                                                     
 8009c78:	29 61 00 10 	lw r1,(r11+16)                                 
    rtems_filesystem_eval_path_get_pathlen(ctx),                      
    &free_node                                                        
  );                                                                  
  int eval_flags = rtems_filesystem_eval_path_get_flags(ctx);         
                                                                      
  if (node != NULL) {                                                 
 8009c7c:	45 c0 00 08 	be r14,r0,8009c9c <devFS_eval_path+0xc4>       
    if ((eval_flags & RTEMS_FS_EXCLUSIVE) == 0) {                     
 8009c80:	20 21 00 40 	andi r1,r1,0x40                                
 8009c84:	5c 20 00 03 	bne r1,r0,8009c90 <devFS_eval_path+0xb8>       
      currentloc->node_access = node;                                 
 8009c88:	59 6e 00 20 	sw (r11+32),r14                                
 8009c8c:	e0 00 00 0c 	bi 8009cbc <devFS_eval_path+0xe4>              
      rtems_filesystem_eval_path_clear_path(ctx);                     
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, EEXIST);                  
 8009c90:	b9 60 08 00 	mv r1,r11                                      
 8009c94:	34 02 00 11 	mvi r2,17                                      
 8009c98:	e0 00 00 10 	bi 8009cd8 <devFS_eval_path+0x100>             
    }                                                                 
  } else {                                                            
    if ((eval_flags & RTEMS_FS_MAKE) != 0) {                          
 8009c9c:	20 21 00 20 	andi r1,r1,0x20                                
 8009ca0:	44 2e 00 0c 	be r1,r14,8009cd0 <devFS_eval_path+0xf8>       <== NEVER TAKEN
      if (free_node != NULL) {                                        
 8009ca4:	45 a0 00 08 	be r13,r0,8009cc4 <devFS_eval_path+0xec>       
        free_node->mode = S_IRWXU | S_IRWXG | S_IRWXO;                
 8009ca8:	34 01 01 ff 	mvi r1,511                                     
 8009cac:	59 a1 00 10 	sw (r13+16),r1                                 
        currentloc->node_access = free_node;                          
 8009cb0:	59 6d 00 20 	sw (r11+32),r13                                
  rtems_filesystem_eval_path_context_t *ctx,                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  ctx->token = token;                                                 
 8009cb4:	59 71 00 08 	sw (r11+8),r17                                 
  ctx->tokenlen = tokenlen;                                           
 8009cb8:	59 6f 00 0c 	sw (r11+12),r15                                
                                                                      
static inline void rtems_filesystem_eval_path_clear_path(             
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  ctx->pathlen = 0;                                                   
 8009cbc:	59 60 00 04 	sw (r11+4),r0                                  
 8009cc0:	e0 00 00 07 	bi 8009cdc <devFS_eval_path+0x104>             
          rtems_filesystem_eval_path_get_path(ctx),                   
          rtems_filesystem_eval_path_get_pathlen(ctx)                 
        );                                                            
        rtems_filesystem_eval_path_clear_path(ctx);                   
      } else {                                                        
        rtems_filesystem_eval_path_error(ctx, ENOSPC);                
 8009cc4:	b9 60 08 00 	mv r1,r11                                      
 8009cc8:	34 02 00 1c 	mvi r2,28                                      
 8009ccc:	e0 00 00 03 	bi 8009cd8 <devFS_eval_path+0x100>             
      }                                                               
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, ENOENT);                  
 8009cd0:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8009cd4:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
 8009cd8:	fb ff eb 22 	calli 8004960 <rtems_filesystem_eval_path_error>
    }                                                                 
  }                                                                   
}                                                                     
 8009cdc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009ce0:	2b 8b 00 24 	lw r11,(sp+36)                                 
 8009ce4:	2b 8c 00 20 	lw r12,(sp+32)                                 
 8009ce8:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 8009cec:	2b 8e 00 18 	lw r14,(sp+24)                                 
 8009cf0:	2b 8f 00 14 	lw r15,(sp+20)                                 
 8009cf4:	2b 90 00 10 	lw r16,(sp+16)                                 
 8009cf8:	2b 91 00 0c 	lw r17,(sp+12)                                 
 8009cfc:	2b 92 00 08 	lw r18,(sp+8)                                  
 8009d00:	37 9c 00 24 	addi sp,sp,36                                  
 8009d04:	c3 a0 00 00 	ret                                            
                                                                      

08003690 <devFS_mknod>: const char *name, size_t namelen, mode_t mode, dev_t dev ) {
 8003690:	37 9c ff e4 	addi sp,sp,-28                                 
 8003694:	5b 8b 00 14 	sw (sp+20),r11                                 
 8003698:	5b 8c 00 10 	sw (sp+16),r12                                 
 800369c:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80036a0:	5b 8e 00 08 	sw (sp+8),r14                                  
 80036a4:	5b 9d 00 04 	sw (sp+4),ra                                   
 80036a8:	b8 20 70 00 	mv r14,r1                                      
  int rv = 0;                                                         
                                                                      
  if (namelen != 3 || name [0] != 'd' || name [1] != 'e' || name [2] != 'v') {
 80036ac:	34 01 00 03 	mvi r1,3                                       
  const char *name,                                                   
  size_t namelen,                                                     
  mode_t mode,                                                        
  dev_t dev                                                           
)                                                                     
{                                                                     
 80036b0:	b8 80 58 00 	mv r11,r4                                      
 80036b4:	b8 a0 68 00 	mv r13,r5                                      
 80036b8:	b8 c0 60 00 	mv r12,r6                                      
  int rv = 0;                                                         
                                                                      
  if (namelen != 3 || name [0] != 'd' || name [1] != 'e' || name [2] != 'v') {
 80036bc:	5c 61 00 0a 	bne r3,r1,80036e4 <devFS_mknod+0x54>           
 80036c0:	40 44 00 00 	lbu r4,(r2+0)                                  
 80036c4:	34 01 00 64 	mvi r1,100                                     
 80036c8:	5c 81 00 07 	bne r4,r1,80036e4 <devFS_mknod+0x54>           <== NEVER TAKEN
 80036cc:	40 44 00 01 	lbu r4,(r2+1)                                  
 80036d0:	34 01 00 65 	mvi r1,101                                     
 80036d4:	5c 81 00 04 	bne r4,r1,80036e4 <devFS_mknod+0x54>           <== NEVER TAKEN
 80036d8:	40 44 00 02 	lbu r4,(r2+2)                                  
 80036dc:	34 01 00 76 	mvi r1,118                                     
 80036e0:	44 81 00 19 	be r4,r1,8003744 <devFS_mknod+0xb4>            <== ALWAYS TAKEN
    if (S_ISBLK(mode) || S_ISCHR(mode)) {                             
 80036e4:	21 64 f0 00 	andi r4,r11,0xf000                             
 80036e8:	64 81 20 00 	cmpei r1,r4,8192                               
 80036ec:	64 84 60 00 	cmpei r4,r4,24576                              
 80036f0:	b8 24 20 00 	or r4,r1,r4                                    
 80036f4:	44 80 00 18 	be r4,r0,8003754 <devFS_mknod+0xc4>            
      char *dupname = malloc(namelen);                                
 80036f8:	b8 60 08 00 	mv r1,r3                                       
 80036fc:	5b 82 00 1c 	sw (sp+28),r2                                  
 8003700:	5b 83 00 18 	sw (sp+24),r3                                  
 8003704:	f8 00 01 0f 	calli 8003b40 <malloc>                         
                                                                      
      if (dupname != NULL) {                                          
 8003708:	2b 82 00 1c 	lw r2,(sp+28)                                  
 800370c:	2b 83 00 18 	lw r3,(sp+24)                                  
 8003710:	44 20 00 0a 	be r1,r0,8003738 <devFS_mknod+0xa8>            
        devFS_node *node = parentloc->node_access;                    
 8003714:	29 c7 00 08 	lw r7,(r14+8)                                  
                                                                      
        node->name = dupname;                                         
 8003718:	58 e1 00 00 	sw (r7+0),r1                                   
        node->namelen = namelen;                                      
 800371c:	58 e3 00 04 	sw (r7+4),r3                                   
        node->major = rtems_filesystem_dev_major_t(dev);              
 8003720:	58 ed 00 08 	sw (r7+8),r13                                  
        node->minor = rtems_filesystem_dev_minor_t(dev);              
 8003724:	58 ec 00 0c 	sw (r7+12),r12                                 
        node->mode = mode;                                            
 8003728:	58 eb 00 10 	sw (r7+16),r11                                 
        memcpy(dupname, name, namelen);                               
 800372c:	f8 00 26 97 	calli 800d188 <memcpy>                         
  size_t namelen,                                                     
  mode_t mode,                                                        
  dev_t dev                                                           
)                                                                     
{                                                                     
  int rv = 0;                                                         
 8003730:	34 01 00 00 	mvi r1,0                                       
 8003734:	e0 00 00 0c 	bi 8003764 <devFS_mknod+0xd4>                  
        node->major = rtems_filesystem_dev_major_t(dev);              
        node->minor = rtems_filesystem_dev_minor_t(dev);              
        node->mode = mode;                                            
        memcpy(dupname, name, namelen);                               
      } else {                                                        
        errno = ENOMEM;                                               
 8003738:	f8 00 21 c9 	calli 800be5c <__errno>                        
 800373c:	34 02 00 0c 	mvi r2,12                                      
 8003740:	e0 00 00 07 	bi 800375c <devFS_mknod+0xcc>                  
    } else {                                                          
      errno = ENOTSUP;                                                
      rv = -1;                                                        
    }                                                                 
  } else {                                                            
    if (!S_ISDIR(mode)) {                                             
 8003744:	21 6b f0 00 	andi r11,r11,0xf000                            
 8003748:	34 02 40 00 	mvi r2,16384                                   
  size_t namelen,                                                     
  mode_t mode,                                                        
  dev_t dev                                                           
)                                                                     
{                                                                     
  int rv = 0;                                                         
 800374c:	34 01 00 00 	mvi r1,0                                       
    } else {                                                          
      errno = ENOTSUP;                                                
      rv = -1;                                                        
    }                                                                 
  } else {                                                            
    if (!S_ISDIR(mode)) {                                             
 8003750:	45 62 00 05 	be r11,r2,8003764 <devFS_mknod+0xd4>           <== ALWAYS TAKEN
      errno = ENOTSUP;                                                
 8003754:	f8 00 21 c2 	calli 800be5c <__errno>                        
 8003758:	34 02 00 86 	mvi r2,134                                     
 800375c:	58 22 00 00 	sw (r1+0),r2                                   
      rv = -1;                                                        
 8003760:	34 01 ff ff 	mvi r1,-1                                      
    }                                                                 
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 8003764:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003768:	2b 8b 00 14 	lw r11,(sp+20)                                 
 800376c:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8003770:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8003774:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8003778:	37 9c 00 1c 	addi sp,sp,28                                  
 800377c:	c3 a0 00 00 	ret                                            
                                                                      

080014cc <disk_lock>: */ static volatile bool diskdevs_protected; static rtems_status_code disk_lock(void) {
 80014cc:	37 9c ff fc 	addi sp,sp,-4                                  
 80014d0:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_semaphore_obtain(diskdevs_mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 80014d4:	78 01 08 01 	mvhi r1,0x801                                  
 80014d8:	38 21 96 dc 	ori r1,r1,0x96dc                               
 80014dc:	28 21 00 00 	lw r1,(r1+0)                                   
 80014e0:	34 02 00 00 	mvi r2,0                                       
 80014e4:	34 03 00 00 	mvi r3,0                                       
 80014e8:	f8 00 0e 91 	calli 8004f2c <rtems_semaphore_obtain>         
  if (sc == RTEMS_SUCCESSFUL) {                                       
    diskdevs_protected = true;                                        
                                                                      
    return RTEMS_SUCCESSFUL;                                          
  } else {                                                            
    return RTEMS_NOT_CONFIGURED;                                      
 80014ec:	34 02 00 16 	mvi r2,22                                      
disk_lock(void)                                                       
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_semaphore_obtain(diskdevs_mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
  if (sc == RTEMS_SUCCESSFUL) {                                       
 80014f0:	5c 20 00 06 	bne r1,r0,8001508 <disk_lock+0x3c>             <== NEVER TAKEN
    diskdevs_protected = true;                                        
 80014f4:	78 01 08 01 	mvhi r1,0x801                                  
 80014f8:	34 02 00 01 	mvi r2,1                                       
 80014fc:	38 21 96 e0 	ori r1,r1,0x96e0                               
 8001500:	30 22 00 00 	sb (r1+0),r2                                   
                                                                      
    return RTEMS_SUCCESSFUL;                                          
 8001504:	34 02 00 00 	mvi r2,0                                       
  } else {                                                            
    return RTEMS_NOT_CONFIGURED;                                      
  }                                                                   
}                                                                     
 8001508:	b8 40 08 00 	mv r1,r2                                       
 800150c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001510:	37 9c 00 04 	addi sp,sp,4                                   
 8001514:	c3 a0 00 00 	ret                                            
                                                                      

08001518 <disk_unlock>: static void disk_unlock(void) {
 8001518:	37 9c ff fc 	addi sp,sp,-4                                  
 800151c:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  diskdevs_protected = false;                                         
 8001520:	78 01 08 01 	mvhi r1,0x801                                  
 8001524:	38 21 96 e0 	ori r1,r1,0x96e0                               
 8001528:	30 20 00 00 	sb (r1+0),r0                                   
                                                                      
  sc = rtems_semaphore_release(diskdevs_mutex);                       
 800152c:	78 01 08 01 	mvhi r1,0x801                                  
 8001530:	38 21 96 dc 	ori r1,r1,0x96dc                               
 8001534:	28 21 00 00 	lw r1,(r1+0)                                   
 8001538:	f8 00 0e cd 	calli 800506c <rtems_semaphore_release>        
  if (sc != RTEMS_SUCCESSFUL) {                                       
 800153c:	44 20 00 05 	be r1,r0,8001550 <disk_unlock+0x38>            <== ALWAYS TAKEN
    /* FIXME: Error number */                                         
    rtems_fatal_error_occurred(0xdeadbeef);                           
 8001540:	78 02 08 01 	mvhi r2,0x801                                  <== NOT EXECUTED
 8001544:	38 42 76 6c 	ori r2,r2,0x766c                               <== NOT EXECUTED
 8001548:	28 41 00 00 	lw r1,(r2+0)                                   <== NOT EXECUTED
 800154c:	f8 00 0f c4 	calli 800545c <rtems_fatal_error_occurred>     <== NOT EXECUTED
  }                                                                   
}                                                                     
 8001550:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001554:	37 9c 00 04 	addi sp,sp,4                                   
 8001558:	c3 a0 00 00 	ret                                            
                                                                      

08003e40 <drainOutput>: /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) {
 8003e40:	37 9c ff f0 	addi sp,sp,-16                                 
 8003e44:	5b 8b 00 10 	sw (sp+16),r11                                 
 8003e48:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8003e4c:	5b 8d 00 08 	sw (sp+8),r13                                  
 8003e50:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003e54:	b8 20 58 00 	mv r11,r1                                      
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {           
 8003e58:	28 21 00 b4 	lw r1,(r1+180)                                 
 8003e5c:	44 20 00 17 	be r1,r0,8003eb8 <drainOutput+0x78>            
    rtems_interrupt_disable (level);                                  
 8003e60:	90 00 08 00 	rcsr r1,IE                                     
 8003e64:	34 02 ff fe 	mvi r2,-2                                      
 8003e68:	a0 22 10 00 	and r2,r1,r2                                   
 8003e6c:	d0 02 00 00 	wcsr IE,r2                                     
    while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {              
      tty->rawOutBufState = rob_wait;                                 
 8003e70:	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);                                
 8003e74:	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) {              
 8003e78:	e0 00 00 0c 	bi 8003ea8 <drainOutput+0x68>                  
      tty->rawOutBufState = rob_wait;                                 
 8003e7c:	59 6d 00 94 	sw (r11+148),r13                               <== NOT EXECUTED
      rtems_interrupt_enable (level);                                 
 8003e80:	d0 01 00 00 	wcsr IE,r1                                     <== NOT EXECUTED
      sc = rtems_semaphore_obtain(                                    
 8003e84:	29 61 00 8c 	lw r1,(r11+140)                                <== NOT EXECUTED
 8003e88:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 8003e8c:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 8003e90:	f8 00 09 ab 	calli 800653c <rtems_semaphore_obtain>         <== NOT EXECUTED
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
 8003e94:	44 20 00 02 	be r1,r0,8003e9c <drainOutput+0x5c>            <== NOT EXECUTED
        rtems_fatal_error_occurred (sc);                              
 8003e98:	f8 00 0c 1c 	calli 8006f08 <rtems_fatal_error_occurred>     <== NOT EXECUTED
      rtems_interrupt_disable (level);                                
 8003e9c:	90 00 08 00 	rcsr r1,IE                                     <== NOT EXECUTED
 8003ea0:	a0 2c 10 00 	and r2,r1,r12                                  <== NOT EXECUTED
 8003ea4:	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) {              
 8003ea8:	29 63 00 84 	lw r3,(r11+132)                                
 8003eac:	29 62 00 80 	lw r2,(r11+128)                                
 8003eb0:	5c 62 ff f3 	bne r3,r2,8003e7c <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);                                   
 8003eb4:	d0 01 00 00 	wcsr IE,r1                                     
  }                                                                   
}                                                                     
 8003eb8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003ebc:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8003ec0:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8003ec4:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8003ec8:	37 9c 00 10 	addi sp,sp,16                                  
 8003ecc:	c3 a0 00 00 	ret                                            
                                                                      

08001ab0 <dup2>: */ int dup2( int fildes, int fildes2 ) {
 8001ab0:	37 9c ff a4 	addi sp,sp,-92                                 
 8001ab4:	5b 8b 00 14 	sw (sp+20),r11                                 
 8001ab8:	5b 8c 00 10 	sw (sp+16),r12                                 
 8001abc:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8001ac0:	5b 8e 00 08 	sw (sp+8),r14                                  
 8001ac4:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
  /*                                                                  
   *  If fildes is not valid, then fildes2 should not be closed.      
   */                                                                 
                                                                      
  status = fstat( fildes, &buf );                                     
 8001ac8:	37 8d 00 18 	addi r13,sp,24                                 
 */                                                                   
int dup2(                                                             
  int fildes,                                                         
  int fildes2                                                         
)                                                                     
{                                                                     
 8001acc:	b8 40 60 00 	mv r12,r2                                      
                                                                      
  /*                                                                  
   *  If fildes is not valid, then fildes2 should not be closed.      
   */                                                                 
                                                                      
  status = fstat( fildes, &buf );                                     
 8001ad0:	b9 a0 10 00 	mv r2,r13                                      
 */                                                                   
int dup2(                                                             
  int fildes,                                                         
  int fildes2                                                         
)                                                                     
{                                                                     
 8001ad4:	b8 20 70 00 	mv r14,r1                                      
   *  If fildes is not valid, then fildes2 should not be closed.      
   */                                                                 
                                                                      
  status = fstat( fildes, &buf );                                     
  if ( status == -1 )                                                 
    return -1;                                                        
 8001ad8:	34 0b ff ff 	mvi r11,-1                                     
                                                                      
  /*                                                                  
   *  If fildes is not valid, then fildes2 should not be closed.      
   */                                                                 
                                                                      
  status = fstat( fildes, &buf );                                     
 8001adc:	f8 00 01 43 	calli 8001fe8 <fstat>                          
  if ( status == -1 )                                                 
 8001ae0:	44 2b 00 0a 	be r1,r11,8001b08 <dup2+0x58>                  
                                                                      
  /*                                                                  
   *  If fildes2 is not valid, then we should not do anything either. 
   */                                                                 
                                                                      
  status = fstat( fildes2, &buf );                                    
 8001ae4:	b9 80 08 00 	mv r1,r12                                      
 8001ae8:	b9 a0 10 00 	mv r2,r13                                      
 8001aec:	f8 00 01 3f 	calli 8001fe8 <fstat>                          
  if ( status == -1 )                                                 
 8001af0:	44 2b 00 06 	be r1,r11,8001b08 <dup2+0x58>                  <== NEVER TAKEN
                                                                      
  /*                                                                  
   *  This fcntl handles everything else.                             
   */                                                                 
                                                                      
  return fcntl( fildes, F_DUPFD, fildes2 );                           
 8001af4:	b9 c0 08 00 	mv r1,r14                                      
 8001af8:	34 02 00 00 	mvi r2,0                                       
 8001afc:	b9 80 18 00 	mv r3,r12                                      
 8001b00:	f8 00 00 12 	calli 8001b48 <fcntl>                          
 8001b04:	b8 20 58 00 	mv r11,r1                                      
}                                                                     
 8001b08:	b9 60 08 00 	mv r1,r11                                      
 8001b0c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001b10:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8001b14:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8001b18:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8001b1c:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8001b20:	37 9c 00 5c 	addi sp,sp,92                                  
 8001b24:	c3 a0 00 00 	ret                                            
                                                                      

08004d04 <echo>: /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) {
 8004d04:	37 9c ff f4 	addi sp,sp,-12                                 
 8004d08:	5b 8b 00 08 	sw (sp+8),r11                                  
 8004d0c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004d10:	b8 40 58 00 	mv r11,r2                                      
  if ((tty->termios.c_lflag & ECHOCTL) &&                             
 8004d14:	28 42 00 3c 	lw r2,(r2+60)                                  
 8004d18:	20 42 02 00 	andi r2,r2,0x200                               
 8004d1c:	44 40 00 19 	be r2,r0,8004d80 <echo+0x7c>                   <== NEVER TAKEN
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
 8004d20:	78 02 08 02 	mvhi r2,0x802                                  
 8004d24:	38 42 62 94 	ori r2,r2,0x6294                               
 8004d28:	28 42 00 00 	lw r2,(r2+0)                                   
 8004d2c:	7c 23 00 09 	cmpnei r3,r1,9                                 
 8004d30:	b4 41 10 00 	add r2,r2,r1                                   
 8004d34:	40 42 00 01 	lbu r2,(r2+1)                                  
 8004d38:	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) &&                             
 8004d3c:	7c 42 00 00 	cmpnei r2,r2,0                                 
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
 8004d40:	a0 43 10 00 	and r2,r2,r3                                   
 8004d44:	44 40 00 0f 	be r2,r0,8004d80 <echo+0x7c>                   
 8004d48:	34 02 00 0a 	mvi r2,10                                      
 8004d4c:	44 22 00 0d 	be r1,r2,8004d80 <echo+0x7c>                   
    char echobuf[2];                                                  
                                                                      
    echobuf[0] = '^';                                                 
 8004d50:	34 02 00 5e 	mvi r2,94                                      
    echobuf[1] = c ^ 0x40;                                            
 8004d54:	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] = '^';                                                 
 8004d58:	33 82 00 0c 	sb (sp+12),r2                                  
    echobuf[1] = c ^ 0x40;                                            
 8004d5c:	33 81 00 0d 	sb (sp+13),r1                                  
    rtems_termios_puts (echobuf, 2, tty);                             
 8004d60:	34 02 00 02 	mvi r2,2                                       
 8004d64:	37 81 00 0c 	addi r1,sp,12                                  
 8004d68:	b9 60 18 00 	mv r3,r11                                      
 8004d6c:	fb ff ff 37 	calli 8004a48 <rtems_termios_puts>             
    tty->column += 2;                                                 
 8004d70:	29 61 00 28 	lw r1,(r11+40)                                 
 8004d74:	34 21 00 02 	addi r1,r1,2                                   
 8004d78:	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')) {                    
 8004d7c:	e0 00 00 03 	bi 8004d88 <echo+0x84>                         
    echobuf[0] = '^';                                                 
    echobuf[1] = c ^ 0x40;                                            
    rtems_termios_puts (echobuf, 2, tty);                             
    tty->column += 2;                                                 
  } else {                                                            
    oproc (c, tty);                                                   
 8004d80:	b9 60 10 00 	mv r2,r11                                      
 8004d84:	fb ff ff 84 	calli 8004b94 <oproc>                          
  }                                                                   
}                                                                     
 8004d88:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004d8c:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8004d90:	37 9c 00 0c 	addi sp,sp,12                                  
 8004d94:	c3 a0 00 00 	ret                                            
                                                                      

080232f8 <endgrent>: void endgrent(void) {
 80232f8:	37 9c ff fc 	addi sp,sp,-4                                  
 80232fc:	5b 9d 00 04 	sw (sp+4),ra                                   
  if (group_fp != NULL)                                               
 8023300:	78 01 08 06 	mvhi r1,0x806                                  
 8023304:	38 21 79 ec 	ori r1,r1,0x79ec                               
 8023308:	28 21 00 00 	lw r1,(r1+0)                                   
 802330c:	44 20 00 02 	be r1,r0,8023314 <endgrent+0x1c>               <== NEVER TAKEN
    fclose(group_fp);                                                 
 8023310:	f8 00 52 89 	calli 8037d34 <fclose>                         
}                                                                     
 8023314:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8023318:	37 9c 00 04 	addi sp,sp,4                                   
 802331c:	c3 a0 00 00 	ret                                            
                                                                      

08023130 <endpwent>: void endpwent(void) {
 8023130:	37 9c ff fc 	addi sp,sp,-4                                  
 8023134:	5b 9d 00 04 	sw (sp+4),ra                                   
  if (passwd_fp != NULL)                                              
 8023138:	78 01 08 06 	mvhi r1,0x806                                  
 802313c:	38 21 7a c8 	ori r1,r1,0x7ac8                               
 8023140:	28 21 00 00 	lw r1,(r1+0)                                   
 8023144:	44 20 00 02 	be r1,r0,802314c <endpwent+0x1c>               <== NEVER TAKEN
    fclose(passwd_fp);                                                
 8023148:	f8 00 52 fb 	calli 8037d34 <fclose>                         
}                                                                     
 802314c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8023150:	37 9c 00 04 	addi sp,sp,4                                   
 8023154:	c3 a0 00 00 	ret                                            
                                                                      

08004d98 <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) {
 8004d98:	37 9c ff e0 	addi sp,sp,-32                                 
 8004d9c:	5b 8b 00 20 	sw (sp+32),r11                                 
 8004da0:	5b 8c 00 1c 	sw (sp+28),r12                                 
 8004da4:	5b 8d 00 18 	sw (sp+24),r13                                 
 8004da8:	5b 8e 00 14 	sw (sp+20),r14                                 
 8004dac:	5b 8f 00 10 	sw (sp+16),r15                                 
 8004db0:	5b 90 00 0c 	sw (sp+12),r16                                 
 8004db4:	5b 91 00 08 	sw (sp+8),r17                                  
 8004db8:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004dbc:	b8 20 58 00 	mv r11,r1                                      
  if (tty->ccount == 0)                                               
 8004dc0:	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)                   
{                                                                     
 8004dc4:	b8 40 78 00 	mv r15,r2                                      
  if (tty->ccount == 0)                                               
 8004dc8:	44 20 00 6c 	be r1,r0,8004f78 <erase+0x1e0>                 
    return;                                                           
  if (lineFlag) {                                                     
 8004dcc:	44 40 00 62 	be r2,r0,8004f54 <erase+0x1bc>                 
    if (!(tty->termios.c_lflag & ECHO)) {                             
 8004dd0:	29 6c 00 3c 	lw r12,(r11+60)                                
 8004dd4:	21 81 00 08 	andi r1,r12,0x8                                
 8004dd8:	5c 20 00 03 	bne r1,r0,8004de4 <erase+0x4c>                 <== ALWAYS TAKEN
      tty->ccount = 0;                                                
 8004ddc:	59 60 00 20 	sw (r11+32),r0                                 <== NOT EXECUTED
      return;                                                         
 8004de0:	e0 00 00 66 	bi 8004f78 <erase+0x1e0>                       <== NOT EXECUTED
    }                                                                 
    if (!(tty->termios.c_lflag & ECHOE)) {                            
 8004de4:	21 8c 00 10 	andi r12,r12,0x10                              
 8004de8:	5d 80 00 5b 	bne r12,r0,8004f54 <erase+0x1bc>               <== ALWAYS TAKEN
      tty->ccount = 0;                                                
      echo (tty->termios.c_cc[VKILL], tty);                           
 8004dec:	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;                                                
 8004df0:	59 60 00 20 	sw (r11+32),r0                                 <== NOT EXECUTED
      echo (tty->termios.c_cc[VKILL], tty);                           
 8004df4:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 8004df8:	fb ff ff c3 	calli 8004d04 <echo>                           <== NOT EXECUTED
      if (tty->termios.c_lflag & ECHOK)                               
 8004dfc:	29 61 00 3c 	lw r1,(r11+60)                                 <== NOT EXECUTED
 8004e00:	20 21 00 20 	andi r1,r1,0x20                                <== NOT EXECUTED
 8004e04:	44 2c 00 5d 	be r1,r12,8004f78 <erase+0x1e0>                <== NOT EXECUTED
        echo ('\n', tty);                                             
 8004e08:	34 01 00 0a 	mvi r1,10                                      <== NOT EXECUTED
 8004e0c:	e0 00 00 0d 	bi 8004e40 <erase+0xa8>                        <== NOT EXECUTED
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
 8004e10:	29 64 00 1c 	lw r4,(r11+28)                                 
 8004e14:	34 21 ff ff 	addi r1,r1,-1                                  
 8004e18:	59 61 00 20 	sw (r11+32),r1                                 
 8004e1c:	b4 81 10 00 	add r2,r4,r1                                   
 8004e20:	40 4c 00 00 	lbu r12,(r2+0)                                 
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
 8004e24:	29 62 00 3c 	lw r2,(r11+60)                                 
 8004e28:	20 43 00 08 	andi r3,r2,0x8                                 
 8004e2c:	44 60 00 48 	be r3,r0,8004f4c <erase+0x1b4>                 <== NEVER TAKEN
      if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {             
 8004e30:	5d e0 00 07 	bne r15,r0,8004e4c <erase+0xb4>                
 8004e34:	20 43 00 10 	andi r3,r2,0x10                                
 8004e38:	5c 6f 00 05 	bne r3,r15,8004e4c <erase+0xb4>                <== ALWAYS TAKEN
        echo (tty->termios.c_cc[VERASE], tty);                        
 8004e3c:	41 61 00 43 	lbu r1,(r11+67)                                <== NOT EXECUTED
 8004e40:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 8004e44:	fb ff ff b0 	calli 8004d04 <echo>                           <== NOT EXECUTED
 8004e48:	e0 00 00 4c 	bi 8004f78 <erase+0x1e0>                       <== NOT EXECUTED
      } else if (c == '\t') {                                         
 8004e4c:	5d 91 00 20 	bne r12,r17,8004ecc <erase+0x134>              
        int col = tty->read_start_column;                             
 8004e50:	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)) {                                   
 8004e54:	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;                                                    
 8004e58:	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)                       
 8004e5c:	20 42 02 00 	andi r2,r2,0x200                               
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
 8004e60:	e0 00 00 0f 	bi 8004e9c <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)                   
 8004e64:	b4 83 28 00 	add r5,r4,r3                                   
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
          c = tty->cbuf[i++];                                         
 8004e68:	40 a5 00 00 	lbu r5,(r5+0)                                  
 8004e6c:	34 63 00 01 	addi r3,r3,1                                   
          if (c == '\t') {                                            
 8004e70:	5c b1 00 03 	bne r5,r17,8004e7c <erase+0xe4>                
            col = (col | 7) + 1;                                      
 8004e74:	39 8c 00 07 	ori r12,r12,0x7                                
 8004e78:	e0 00 00 08 	bi 8004e98 <erase+0x100>                       
          } else if (iscntrl (c)) {                                   
 8004e7c:	b4 c5 28 00 	add r5,r6,r5                                   
 8004e80:	40 a5 00 01 	lbu r5,(r5+1)                                  
 8004e84:	20 a5 00 20 	andi r5,r5,0x20                                
 8004e88:	44 a0 00 04 	be r5,r0,8004e98 <erase+0x100>                 <== ALWAYS TAKEN
            if (tty->termios.c_lflag & ECHOCTL)                       
 8004e8c:	44 40 00 04 	be r2,r0,8004e9c <erase+0x104>                 <== NOT EXECUTED
              col += 2;                                               
 8004e90:	35 8c 00 02 	addi r12,r12,2                                 <== NOT EXECUTED
 8004e94:	e0 00 00 02 	bi 8004e9c <erase+0x104>                       <== NOT EXECUTED
          } else {                                                    
            col++;                                                    
 8004e98:	35 8c 00 01 	addi r12,r12,1                                 
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
 8004e9c:	5c 61 ff f2 	bne r3,r1,8004e64 <erase+0xcc>                 
 8004ea0:	e0 00 00 08 	bi 8004ec0 <erase+0x128>                       
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
          rtems_termios_puts ("\b", 1, tty);                          
 8004ea4:	ba 00 08 00 	mv r1,r16                                      
 8004ea8:	34 02 00 01 	mvi r2,1                                       
 8004eac:	b9 60 18 00 	mv r3,r11                                      
 8004eb0:	fb ff fe e6 	calli 8004a48 <rtems_termios_puts>             
          tty->column--;                                              
 8004eb4:	29 61 00 28 	lw r1,(r11+40)                                 
 8004eb8:	34 21 ff ff 	addi r1,r1,-1                                  
 8004ebc:	59 61 00 28 	sw (r11+40),r1                                 
        }                                                             
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
 8004ec0:	29 61 00 28 	lw r1,(r11+40)                                 
 8004ec4:	48 2c ff f8 	bg r1,r12,8004ea4 <erase+0x10c>                
 8004ec8:	e0 00 00 21 	bi 8004f4c <erase+0x1b4>                       
          rtems_termios_puts ("\b", 1, tty);                          
          tty->column--;                                              
        }                                                             
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
 8004ecc:	29 a1 00 00 	lw r1,(r13+0)                                  
 8004ed0:	35 8c 00 01 	addi r12,r12,1                                 
 8004ed4:	b4 2c 08 00 	add r1,r1,r12                                  
 8004ed8:	40 21 00 00 	lbu r1,(r1+0)                                  
 8004edc:	20 21 00 20 	andi r1,r1,0x20                                
 8004ee0:	44 20 00 0b 	be r1,r0,8004f0c <erase+0x174>                 <== ALWAYS TAKEN
 8004ee4:	20 42 02 00 	andi r2,r2,0x200                               <== NOT EXECUTED
 8004ee8:	44 40 00 09 	be r2,r0,8004f0c <erase+0x174>                 <== NOT EXECUTED
          rtems_termios_puts ("\b \b", 3, tty);                       
 8004eec:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 8004ef0:	34 02 00 03 	mvi r2,3                                       <== NOT EXECUTED
 8004ef4:	b9 60 18 00 	mv r3,r11                                      <== NOT EXECUTED
 8004ef8:	fb ff fe d4 	calli 8004a48 <rtems_termios_puts>             <== NOT EXECUTED
          if (tty->column)                                            
 8004efc:	29 61 00 28 	lw r1,(r11+40)                                 <== NOT EXECUTED
 8004f00:	44 20 00 03 	be r1,r0,8004f0c <erase+0x174>                 <== NOT EXECUTED
            tty->column--;                                            
 8004f04:	34 21 ff ff 	addi r1,r1,-1                                  <== NOT EXECUTED
 8004f08:	59 61 00 28 	sw (r11+40),r1                                 <== NOT EXECUTED
        }                                                             
        if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {       
 8004f0c:	29 a1 00 00 	lw r1,(r13+0)                                  
 8004f10:	b4 2c 60 00 	add r12,r1,r12                                 
 8004f14:	41 81 00 00 	lbu r1,(r12+0)                                 
 8004f18:	20 21 00 20 	andi r1,r1,0x20                                
 8004f1c:	44 20 00 04 	be r1,r0,8004f2c <erase+0x194>                 <== ALWAYS TAKEN
 8004f20:	29 61 00 3c 	lw r1,(r11+60)                                 <== NOT EXECUTED
 8004f24:	20 21 02 00 	andi r1,r1,0x200                               <== NOT EXECUTED
 8004f28:	44 20 00 09 	be r1,r0,8004f4c <erase+0x1b4>                 <== NOT EXECUTED
          rtems_termios_puts ("\b \b", 3, tty);                       
 8004f2c:	b9 c0 08 00 	mv r1,r14                                      
 8004f30:	34 02 00 03 	mvi r2,3                                       
 8004f34:	b9 60 18 00 	mv r3,r11                                      
 8004f38:	fb ff fe c4 	calli 8004a48 <rtems_termios_puts>             
          if (tty->column)                                            
 8004f3c:	29 61 00 28 	lw r1,(r11+40)                                 
 8004f40:	44 20 00 03 	be r1,r0,8004f4c <erase+0x1b4>                 <== NEVER TAKEN
            tty->column--;                                            
 8004f44:	34 21 ff ff 	addi r1,r1,-1                                  
 8004f48:	59 61 00 28 	sw (r11+40),r1                                 
        }                                                             
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
 8004f4c:	5d e0 00 09 	bne r15,r0,8004f70 <erase+0x1d8>               
 8004f50:	e0 00 00 0a 	bi 8004f78 <erase+0x1e0>                       
 8004f54:	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);                       
 8004f58:	78 0e 08 02 	mvhi r14,0x802                                 
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
          rtems_termios_puts ("\b", 1, tty);                          
 8004f5c:	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') {                                         
 8004f60:	34 11 00 09 	mvi r17,9                                      
 8004f64:	39 ad 62 94 	ori r13,r13,0x6294                             
          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);                       
 8004f68:	39 ce 3b 8c 	ori r14,r14,0x3b8c                             
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
          rtems_termios_puts ("\b", 1, tty);                          
 8004f6c:	3a 10 3b 88 	ori r16,r16,0x3b88                             
        echo ('\n', tty);                                             
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
 8004f70:	29 61 00 20 	lw r1,(r11+32)                                 
 8004f74:	5c 20 ff a7 	bne r1,r0,8004e10 <erase+0x78>                 
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
      break;                                                          
  }                                                                   
}                                                                     
 8004f78:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004f7c:	2b 8b 00 20 	lw r11,(sp+32)                                 
 8004f80:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 8004f84:	2b 8d 00 18 	lw r13,(sp+24)                                 
 8004f88:	2b 8e 00 14 	lw r14,(sp+20)                                 
 8004f8c:	2b 8f 00 10 	lw r15,(sp+16)                                 
 8004f90:	2b 90 00 0c 	lw r16,(sp+12)                                 
 8004f94:	2b 91 00 08 	lw r17,(sp+8)                                  
 8004f98:	37 9c 00 20 	addi sp,sp,32                                  
 8004f9c:	c3 a0 00 00 	ret                                            
                                                                      

0800ffa4 <fat_buf_access>: int fat_buf_access(fat_fs_info_t *fs_info, const uint32_t sec_num, const int op_type, uint8_t **sec_buf) {
 800ffa4:	37 9c ff e0 	addi sp,sp,-32                                 
 800ffa8:	5b 8b 00 20 	sw (sp+32),r11                                 
 800ffac:	5b 8c 00 1c 	sw (sp+28),r12                                 
 800ffb0:	5b 8d 00 18 	sw (sp+24),r13                                 
 800ffb4:	5b 8e 00 14 	sw (sp+20),r14                                 
 800ffb8:	5b 8f 00 10 	sw (sp+16),r15                                 
 800ffbc:	5b 90 00 0c 	sw (sp+12),r16                                 
 800ffc0:	5b 91 00 08 	sw (sp+8),r17                                  
 800ffc4:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
static inline uint32_t                                                
 fat_sector_num_to_block_num (const fat_fs_info_t *fs_info,           
                              const uint32_t sector_number)           
{                                                                     
  return sector_number >> (fs_info->vol.bytes_per_block_log2 - fs_info->vol.sec_log2);
 800ffc8:	40 2e 00 02 	lbu r14,(r1+2)                                 
 800ffcc:	40 2f 00 0c 	lbu r15,(r1+12)                                
 800ffd0:	b8 20 58 00 	mv r11,r1                                      
 800ffd4:	b8 40 60 00 	mv r12,r2                                      
 800ffd8:	c9 ee 78 00 	sub r15,r15,r14                                
 800ffdc:	b8 40 08 00 	mv r1,r2                                       
 800ffe0:	b9 e0 10 00 	mv r2,r15                                      
 800ffe4:	b8 60 88 00 	mv r17,r3                                      
 800ffe8:	b8 80 80 00 	mv r16,r4                                      
 800ffec:	f8 00 70 89 	calli 802c210 <__lshrsi3>                      
 800fff0:	b8 20 68 00 	mv r13,r1                                      
                                                         sec_num);    
    uint32_t          blk_ofs = fat_sector_offset_to_block_offset (fs_info,
                                                                   sec_num,
                                                                   0);
                                                                      
    if (fs_info->c.state == FAT_CACHE_EMPTY || fs_info->c.blk_num != sec_num)
 800fff4:	41 61 00 89 	lbu r1,(r11+137)                               
 800fff8:	44 20 00 03 	be r1,r0,8010004 <fat_buf_access+0x60>         
 800fffc:	29 61 00 84 	lw r1,(r11+132)                                
 8010000:	44 2c 00 16 	be r1,r12,8010058 <fat_buf_access+0xb4>        
    {                                                                 
        fat_buf_release(fs_info);                                     
 8010004:	b9 60 08 00 	mv r1,r11                                      
 8010008:	fb ff ff 69 	calli 800fdac <fat_buf_release>                
                                                                      
        if (op_type == FAT_OP_TYPE_READ)                              
 801000c:	34 02 00 01 	mvi r2,1                                       
 8010010:	29 61 00 64 	lw r1,(r11+100)                                
 8010014:	35 63 00 8c 	addi r3,r11,140                                
 8010018:	5e 22 00 04 	bne r17,r2,8010028 <fat_buf_access+0x84>       
            sc = rtems_bdbuf_read(fs_info->vol.dd, blk, &fs_info->c.buf);
 801001c:	b9 a0 10 00 	mv r2,r13                                      
 8010020:	fb ff f6 65 	calli 800d9b4 <rtems_bdbuf_read>               
 8010024:	e0 00 00 03 	bi 8010030 <fat_buf_access+0x8c>               
        else                                                          
            sc = rtems_bdbuf_get(fs_info->vol.dd, blk, &fs_info->c.buf);
 8010028:	b9 a0 10 00 	mv r2,r13                                      
 801002c:	fb ff f6 23 	calli 800d8b8 <rtems_bdbuf_get>                
        if (sc != RTEMS_SUCCESSFUL)                                   
 8010030:	44 20 00 06 	be r1,r0,8010048 <fat_buf_access+0xa4>         <== ALWAYS TAKEN
            rtems_set_errno_and_return_minus_one(EIO);                
 8010034:	f8 00 26 76 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 8010038:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 801003c:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 8010040:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 8010044:	e0 00 00 10 	bi 8010084 <fat_buf_access+0xe0>               <== NOT EXECUTED
        fs_info->c.blk_num = sec_num;                                 
        fs_info->c.modified = 0;                                      
        fs_info->c.state = FAT_CACHE_ACTUAL;                          
 8010048:	34 01 00 01 	mvi r1,1                                       
            sc = rtems_bdbuf_read(fs_info->vol.dd, blk, &fs_info->c.buf);
        else                                                          
            sc = rtems_bdbuf_get(fs_info->vol.dd, blk, &fs_info->c.buf);
        if (sc != RTEMS_SUCCESSFUL)                                   
            rtems_set_errno_and_return_minus_one(EIO);                
        fs_info->c.blk_num = sec_num;                                 
 801004c:	59 6c 00 84 	sw (r11+132),r12                               
        fs_info->c.modified = 0;                                      
 8010050:	31 60 00 88 	sb (r11+136),r0                                
        fs_info->c.state = FAT_CACHE_ACTUAL;                          
 8010054:	31 61 00 89 	sb (r11+137),r1                                
                                                                      
static inline uint32_t                                                
 fat_block_num_to_sector_num (const fat_fs_info_t *fs_info,           
                              const uint32_t block_number)            
{                                                                     
  return block_number << (fs_info->vol.bytes_per_block_log2 - fs_info->vol.sec_log2);
 8010058:	b9 e0 10 00 	mv r2,r15                                      
 801005c:	b9 a0 08 00 	mv r1,r13                                      
 8010060:	fb ff c4 62 	calli 80011e8 <__ashlsi3>                      
    }                                                                 
    *sec_buf = &fs_info->c.buf->buffer[blk_ofs];                      
 8010064:	29 6b 00 8c 	lw r11,(r11+140)                               
{                                                                     
  return sector_offset +                                              
           ((sector -                                                 
              fat_block_num_to_sector_num (fs_info,                   
                  fat_sector_num_to_block_num (fs_info, sector)))     
            << fs_info->vol.sec_log2);                                
 8010068:	b9 c0 10 00 	mv r2,r14                                      
 801006c:	c9 81 08 00 	sub r1,r12,r1                                  
 8010070:	fb ff c4 5e 	calli 80011e8 <__ashlsi3>                      
 8010074:	29 62 00 1c 	lw r2,(r11+28)                                 
 8010078:	b4 41 08 00 	add r1,r2,r1                                   
 801007c:	5a 01 00 00 	sw (r16+0),r1                                  
    return RC_OK;                                                     
 8010080:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 8010084:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8010088:	2b 8b 00 20 	lw r11,(sp+32)                                 
 801008c:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 8010090:	2b 8d 00 18 	lw r13,(sp+24)                                 
 8010094:	2b 8e 00 14 	lw r14,(sp+20)                                 
 8010098:	2b 8f 00 10 	lw r15,(sp+16)                                 
 801009c:	2b 90 00 0c 	lw r16,(sp+12)                                 
 80100a0:	2b 91 00 08 	lw r17,(sp+8)                                  
 80100a4:	37 9c 00 20 	addi sp,sp,32                                  
 80100a8:	c3 a0 00 00 	ret                                            
                                                                      

0800fdac <fat_buf_release>: return RC_OK; } int fat_buf_release(fat_fs_info_t *fs_info) {
 800fdac:	37 9c ff d8 	addi sp,sp,-40                                 
 800fdb0:	5b 8b 00 24 	sw (sp+36),r11                                 
 800fdb4:	5b 8c 00 20 	sw (sp+32),r12                                 
 800fdb8:	5b 8d 00 1c 	sw (sp+28),r13                                 
 800fdbc:	5b 8e 00 18 	sw (sp+24),r14                                 
 800fdc0:	5b 8f 00 14 	sw (sp+20),r15                                 
 800fdc4:	5b 90 00 10 	sw (sp+16),r16                                 
 800fdc8:	5b 91 00 0c 	sw (sp+12),r17                                 
 800fdcc:	5b 92 00 08 	sw (sp+8),r18                                  
 800fdd0:	5b 9d 00 04 	sw (sp+4),ra                                   
 800fdd4:	b8 20 58 00 	mv r11,r1                                      
    rtems_status_code sc = RTEMS_SUCCESSFUL;                          
                                                                      
    if (fs_info->c.state == FAT_CACHE_EMPTY)                          
 800fdd8:	40 21 00 89 	lbu r1,(r1+137)                                
        return RC_OK;                                                 
 800fddc:	34 0c 00 00 	mvi r12,0                                      
int                                                                   
fat_buf_release(fat_fs_info_t *fs_info)                               
{                                                                     
    rtems_status_code sc = RTEMS_SUCCESSFUL;                          
                                                                      
    if (fs_info->c.state == FAT_CACHE_EMPTY)                          
 800fde0:	44 20 00 65 	be r1,r0,800ff74 <fat_buf_release+0x1c8>       
        return RC_OK;                                                 
                                                                      
    if (fs_info->c.modified)                                          
 800fde4:	41 61 00 88 	lbu r1,(r11+136)                               
 800fde8:	44 20 00 5b 	be r1,r0,800ff54 <fat_buf_release+0x1a8>       
    {                                                                 
        uint32_t sec_num = fs_info->c.blk_num;                        
 800fdec:	29 6c 00 84 	lw r12,(r11+132)                               
        bool     sec_of_fat = ((sec_num >= fs_info->vol.fat_loc) &&   
 800fdf0:	2d 61 00 18 	lhu r1,(r11+24)                                
 800fdf4:	34 0d 00 00 	mvi r13,0                                      
 800fdf8:	54 2c 00 03 	bgu r1,r12,800fe04 <fat_buf_release+0x58>      
 800fdfc:	29 6d 00 20 	lw r13,(r11+32)                                
 800fe00:	f5 ac 68 00 	cmpgu r13,r13,r12                              
 800fe04:	21 ad 00 ff 	andi r13,r13,0xff                              
    uint32_t                              ino                         
    )                                                                 
{                                                                     
                                                                      
    return (ino >= fs_info->uino_base);                               
}                                                                     
 800fe08:	41 6e 00 02 	lbu r14,(r11+2)                                
 800fe0c:	41 6f 00 0c 	lbu r15,(r11+12)                               
        uint32_t blk = fat_sector_num_to_block_num(fs_info, sec_num); 
        uint32_t blk_ofs = fat_sector_offset_to_block_offset(fs_info, 
                                                             sec_num, 
                                                             0);      
                                                                      
        if (sec_of_fat && !fs_info->vol.mirror)                       
 800fe10:	45 a0 00 14 	be r13,r0,800fe60 <fat_buf_release+0xb4>       
 800fe14:	41 61 00 54 	lbu r1,(r11+84)                                
 800fe18:	5c 20 00 12 	bne r1,r0,800fe60 <fat_buf_release+0xb4>       <== NEVER TAKEN
                                                                      
static inline uint32_t                                                
 fat_sector_num_to_block_num (const fat_fs_info_t *fs_info,           
                              const uint32_t sector_number)           
{                                                                     
  return sector_number >> (fs_info->vol.bytes_per_block_log2 - fs_info->vol.sec_log2);
 800fe1c:	c9 ee 78 00 	sub r15,r15,r14                                
 800fe20:	b9 e0 10 00 	mv r2,r15                                      
 800fe24:	b9 80 08 00 	mv r1,r12                                      
 800fe28:	f8 00 70 fa 	calli 802c210 <__lshrsi3>                      
                                                                      
static inline uint32_t                                                
 fat_block_num_to_sector_num (const fat_fs_info_t *fs_info,           
                              const uint32_t block_number)            
{                                                                     
  return block_number << (fs_info->vol.bytes_per_block_log2 - fs_info->vol.sec_log2);
 800fe2c:	b9 e0 10 00 	mv r2,r15                                      
 800fe30:	fb ff c4 ee 	calli 80011e8 <__ashlsi3>                      
            memcpy(fs_info->sec_buf,                                  
                   fs_info->c.buf->buffer + blk_ofs,                  
 800fe34:	29 72 00 8c 	lw r18,(r11+140)                               
{                                                                     
  return sector_offset +                                              
           ((sector -                                                 
              fat_block_num_to_sector_num (fs_info,                   
                  fat_sector_num_to_block_num (fs_info, sector)))     
            << fs_info->vol.sec_log2);                                
 800fe38:	b9 c0 10 00 	mv r2,r14                                      
 800fe3c:	c9 81 08 00 	sub r1,r12,r1                                  
 800fe40:	fb ff c4 ea 	calli 80011e8 <__ashlsi3>                      
        uint32_t blk_ofs = fat_sector_offset_to_block_offset(fs_info, 
                                                             sec_num, 
                                                             0);      
                                                                      
        if (sec_of_fat && !fs_info->vol.mirror)                       
            memcpy(fs_info->sec_buf,                                  
 800fe44:	29 71 00 90 	lw r17,(r11+144)                               
 800fe48:	2d 70 00 00 	lhu r16,(r11+0)                                
 800fe4c:	2a 42 00 1c 	lw r2,(r18+28)                                 
 800fe50:	ba 00 18 00 	mv r3,r16                                      
 800fe54:	b4 41 10 00 	add r2,r2,r1                                   
 800fe58:	ba 20 08 00 	mv r1,r17                                      
 800fe5c:	f8 00 2a 3a 	calli 801a744 <memcpy>                         
                   fs_info->c.buf->buffer + blk_ofs,                  
                   fs_info->vol.bps);                                 
                                                                      
        sc = rtems_bdbuf_release_modified(fs_info->c.buf);            
 800fe60:	29 61 00 8c 	lw r1,(r11+140)                                
 800fe64:	fb ff f7 93 	calli 800dcb0 <rtems_bdbuf_release_modified>   
        if (sc != RTEMS_SUCCESSFUL)                                   
 800fe68:	5c 20 00 3e 	bne r1,r0,800ff60 <fat_buf_release+0x1b4>      <== NEVER TAKEN
            rtems_set_errno_and_return_minus_one(EIO);                
        fs_info->c.modified = 0;                                      
 800fe6c:	31 60 00 88 	sb (r11+136),r0                                
                                                                      
        if (sec_of_fat && !fs_info->vol.mirror)                       
 800fe70:	45 a1 00 3f 	be r13,r1,800ff6c <fat_buf_release+0x1c0>      
 800fe74:	41 61 00 54 	lbu r1,(r11+84)                                
 800fe78:	34 0c 00 01 	mvi r12,1                                      
 800fe7c:	44 20 00 33 	be r1,r0,800ff48 <fat_buf_release+0x19c>       <== ALWAYS TAKEN
 800fe80:	e0 00 00 3b 	bi 800ff6c <fat_buf_release+0x1c0>             <== NOT EXECUTED
                                                                      
            for (i = 1; i < fs_info->vol.fats; i++)                   
            {                                                         
                rtems_bdbuf_buffer *bd;                               
                                                                      
                sec_num = fs_info->c.blk_num + fs_info->vol.fat_length * i,
 800fe84:	29 62 00 1c 	lw r2,(r11+28)                                 
 800fe88:	b9 80 08 00 	mv r1,r12                                      
 800fe8c:	fb ff c5 25 	calli 8001320 <__mulsi3>                       
                                                                      
static inline uint32_t                                                
 fat_sector_num_to_block_num (const fat_fs_info_t *fs_info,           
                              const uint32_t sector_number)           
{                                                                     
  return sector_number >> (fs_info->vol.bytes_per_block_log2 - fs_info->vol.sec_log2);
 800fe90:	41 6e 00 02 	lbu r14,(r11+2)                                
 800fe94:	29 6f 00 84 	lw r15,(r11+132)                               
 800fe98:	41 70 00 0c 	lbu r16,(r11+12)                               
 800fe9c:	b4 2f 78 00 	add r15,r1,r15                                 
 800fea0:	ca 0e 80 00 	sub r16,r16,r14                                
 800fea4:	ba 00 10 00 	mv r2,r16                                      
 800fea8:	b9 e0 08 00 	mv r1,r15                                      
 800feac:	f8 00 70 d9 	calli 802c210 <__lshrsi3>                      
                                                                      
static inline uint32_t                                                
 fat_block_num_to_sector_num (const fat_fs_info_t *fs_info,           
                              const uint32_t block_number)            
{                                                                     
  return block_number << (fs_info->vol.bytes_per_block_log2 - fs_info->vol.sec_log2);
 800feb0:	ba 00 10 00 	mv r2,r16                                      
                                                                      
static inline uint32_t                                                
 fat_sector_num_to_block_num (const fat_fs_info_t *fs_info,           
                              const uint32_t sector_number)           
{                                                                     
  return sector_number >> (fs_info->vol.bytes_per_block_log2 - fs_info->vol.sec_log2);
 800feb4:	b8 20 68 00 	mv r13,r1                                      
                                                                      
static inline uint32_t                                                
 fat_block_num_to_sector_num (const fat_fs_info_t *fs_info,           
                              const uint32_t block_number)            
{                                                                     
  return block_number << (fs_info->vol.bytes_per_block_log2 - fs_info->vol.sec_log2);
 800feb8:	fb ff c4 cc 	calli 80011e8 <__ashlsi3>                      
{                                                                     
  return sector_offset +                                              
           ((sector -                                                 
              fat_block_num_to_sector_num (fs_info,                   
                  fat_sector_num_to_block_num (fs_info, sector)))     
            << fs_info->vol.sec_log2);                                
 800febc:	b9 c0 10 00 	mv r2,r14                                      
 800fec0:	c9 e1 08 00 	sub r1,r15,r1                                  
 800fec4:	fb ff c4 c9 	calli 80011e8 <__ashlsi3>                      
 800fec8:	b8 20 70 00 	mv r14,r1                                      
                blk = fat_sector_num_to_block_num(fs_info, sec_num);  
                blk_ofs = fat_sector_offset_to_block_offset(fs_info,  
                                                            sec_num,  
                                                            0);       
                                                                      
                if (blk_ofs == 0                                      
 800fecc:	5c 20 00 09 	bne r1,r0,800fef0 <fat_buf_release+0x144>      
                    && fs_info->vol.bps == fs_info->vol.bytes_per_block)
 800fed0:	2d 62 00 00 	lhu r2,(r11+0)                                 
 800fed4:	2d 61 00 0a 	lhu r1,(r11+10)                                
 800fed8:	5c 41 00 06 	bne r2,r1,800fef0 <fat_buf_release+0x144>      
                {                                                     
                    sc = rtems_bdbuf_get(fs_info->vol.dd, blk, &bd);  
 800fedc:	29 61 00 64 	lw r1,(r11+100)                                
 800fee0:	b9 a0 10 00 	mv r2,r13                                      
 800fee4:	37 83 00 28 	addi r3,sp,40                                  
 800fee8:	fb ff f6 74 	calli 800d8b8 <rtems_bdbuf_get>                
 800feec:	e0 00 00 05 	bi 800ff00 <fat_buf_release+0x154>             
                }                                                     
                else                                                  
                {                                                     
                    sc = rtems_bdbuf_read(fs_info->vol.dd, blk, &bd); 
 800fef0:	29 61 00 64 	lw r1,(r11+100)                                
 800fef4:	b9 a0 10 00 	mv r2,r13                                      
 800fef8:	37 83 00 28 	addi r3,sp,40                                  
 800fefc:	fb ff f6 ae 	calli 800d9b4 <rtems_bdbuf_read>               
 800ff00:	b8 20 68 00 	mv r13,r1                                      
                }                                                     
                if ( sc != RTEMS_SUCCESSFUL)                          
 800ff04:	44 20 00 06 	be r1,r0,800ff1c <fat_buf_release+0x170>       <== ALWAYS TAKEN
                    rtems_set_errno_and_return_minus_one(ENOMEM);     
 800ff08:	f8 00 26 c1 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 800ff0c:	34 02 00 0c 	mvi r2,12                                      <== NOT EXECUTED
 800ff10:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 800ff14:	34 0c ff ff 	mvi r12,-1                                     <== NOT EXECUTED
 800ff18:	e0 00 00 17 	bi 800ff74 <fat_buf_release+0x1c8>             <== NOT EXECUTED
                memcpy(bd->buffer + blk_ofs, fs_info->sec_buf, fs_info->vol.bps);
 800ff1c:	2b 81 00 28 	lw r1,(sp+40)                                  
 800ff20:	29 62 00 90 	lw r2,(r11+144)                                
 800ff24:	2d 63 00 00 	lhu r3,(r11+0)                                 
 800ff28:	28 21 00 1c 	lw r1,(r1+28)                                  
 800ff2c:	b4 2e 08 00 	add r1,r1,r14                                  
 800ff30:	f8 00 2a 05 	calli 801a744 <memcpy>                         
                sc = rtems_bdbuf_release_modified(bd);                
 800ff34:	2b 81 00 28 	lw r1,(sp+40)                                  
 800ff38:	fb ff f7 5e 	calli 800dcb0 <rtems_bdbuf_release_modified>   
                if ( sc != RTEMS_SUCCESSFUL)                          
 800ff3c:	5c 2d ff f3 	bne r1,r13,800ff08 <fat_buf_release+0x15c>     <== NEVER TAKEN
                                                                      
        if (sec_of_fat && !fs_info->vol.mirror)                       
        {                                                             
            uint8_t i;                                                
                                                                      
            for (i = 1; i < fs_info->vol.fats; i++)                   
 800ff40:	35 8c 00 01 	addi r12,r12,1                                 
 800ff44:	21 8c 00 ff 	andi r12,r12,0xff                              
 800ff48:	41 61 00 0d 	lbu r1,(r11+13)                                
 800ff4c:	54 2c ff ce 	bgu r1,r12,800fe84 <fat_buf_release+0xd8>      
 800ff50:	e0 00 00 07 	bi 800ff6c <fat_buf_release+0x1c0>             
            }                                                         
        }                                                             
    }                                                                 
    else                                                              
    {                                                                 
        sc = rtems_bdbuf_release(fs_info->c.buf);                     
 800ff54:	29 61 00 8c 	lw r1,(r11+140)                                
 800ff58:	fb ff f7 21 	calli 800dbdc <rtems_bdbuf_release>            
        if (sc != RTEMS_SUCCESSFUL)                                   
 800ff5c:	44 2c 00 04 	be r1,r12,800ff6c <fat_buf_release+0x1c0>      <== ALWAYS TAKEN
            rtems_set_errno_and_return_minus_one(EIO);                
 800ff60:	f8 00 26 ab 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 800ff64:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 800ff68:	e3 ff ff ea 	bi 800ff10 <fat_buf_release+0x164>             <== NOT EXECUTED
    }                                                                 
    fs_info->c.state = FAT_CACHE_EMPTY;                               
 800ff6c:	31 60 00 89 	sb (r11+137),r0                                
    return RC_OK;                                                     
 800ff70:	34 0c 00 00 	mvi r12,0                                      
}                                                                     
 800ff74:	b9 80 08 00 	mv r1,r12                                      
 800ff78:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800ff7c:	2b 8b 00 24 	lw r11,(sp+36)                                 
 800ff80:	2b 8c 00 20 	lw r12,(sp+32)                                 
 800ff84:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 800ff88:	2b 8e 00 18 	lw r14,(sp+24)                                 
 800ff8c:	2b 8f 00 14 	lw r15,(sp+20)                                 
 800ff90:	2b 90 00 10 	lw r16,(sp+16)                                 
 800ff94:	2b 91 00 0c 	lw r17,(sp+12)                                 
 800ff98:	2b 92 00 08 	lw r18,(sp+8)                                  
 800ff9c:	37 9c 00 28 	addi sp,sp,40                                  
 800ffa0:	c3 a0 00 00 	ret                                            
                                                                      

0801583c <fat_cluster_num_to_sector_num>: static inline uint32_t fat_cluster_num_to_sector_num( const fat_fs_info_t *fs_info, uint32_t cln ) {
 801583c:	37 9c ff f8 	addi sp,sp,-8                                  
 8015840:	5b 8b 00 08 	sw (sp+8),r11                                  
 8015844:	5b 9d 00 04 	sw (sp+4),ra                                   
 8015848:	b8 20 58 00 	mv r11,r1                                      
    if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
 801584c:	5c 40 00 06 	bne r2,r0,8015864 <fat_cluster_num_to_sector_num+0x28>
 8015850:	40 21 00 0e 	lbu r1,(r1+14)                                 
 8015854:	20 21 00 03 	andi r1,r1,0x3                                 
 8015858:	44 22 00 03 	be r1,r2,8015864 <fat_cluster_num_to_sector_num+0x28><== NEVER TAKEN
        return fs_info->vol.rdir_loc;                                 
 801585c:	29 61 00 20 	lw r1,(r11+32)                                 
 8015860:	e0 00 00 06 	bi 8015878 <fat_cluster_num_to_sector_num+0x3c>
                                                                      
    return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +        
 8015864:	34 41 ff fe 	addi r1,r2,-2                                  
 8015868:	41 62 00 05 	lbu r2,(r11+5)                                 
 801586c:	fb ff ae 5f 	calli 80011e8 <__ashlsi3>                      
 8015870:	29 62 00 34 	lw r2,(r11+52)                                 
 8015874:	b4 22 08 00 	add r1,r1,r2                                   
            fs_info->vol.data_fsec);                                  
}                                                                     
 8015878:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801587c:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8015880:	37 9c 00 08 	addi sp,sp,8                                   
 8015884:	c3 a0 00 00 	ret                                            
                                                                      

0801025c <fat_cluster_set>: fat_fs_info_t *fs_info, const uint32_t start_cln, const uint32_t offset, const uint32_t count, const uint8_t pattern) {
 801025c:	37 9c ff d0 	addi sp,sp,-48                                 
 8010260:	5b 8b 00 2c 	sw (sp+44),r11                                 
 8010264:	5b 8c 00 28 	sw (sp+40),r12                                 
 8010268:	5b 8d 00 24 	sw (sp+36),r13                                 
 801026c:	5b 8e 00 20 	sw (sp+32),r14                                 
 8010270:	5b 8f 00 1c 	sw (sp+28),r15                                 
 8010274:	5b 90 00 18 	sw (sp+24),r16                                 
 8010278:	5b 91 00 14 	sw (sp+20),r17                                 
 801027c:	5b 92 00 10 	sw (sp+16),r18                                 
 8010280:	5b 93 00 0c 	sw (sp+12),r19                                 
 8010284:	5b 94 00 08 	sw (sp+8),r20                                  
 8010288:	5b 9d 00 04 	sw (sp+4),ra                                   
 801028c:	b8 20 58 00 	mv r11,r1                                      
  ssize_t             rc               = RC_OK;                       
  uint32_t            bytes_to_write   = MIN(count, (fs_info->vol.bpc - offset));
 8010290:	2c 21 00 06 	lhu r1,(r1+6)                                  
     fat_fs_info_t                        *fs_info,                   
     const uint32_t                        start_cln,                 
     const uint32_t                        offset,                    
     const uint32_t                        count,                     
     const uint8_t                         pattern)                   
{                                                                     
 8010294:	b8 60 88 00 	mv r17,r3                                      
 8010298:	20 b4 00 ff 	andi r20,r5,0xff                               
  ssize_t             rc               = RC_OK;                       
  uint32_t            bytes_to_write   = MIN(count, (fs_info->vol.bpc - offset));
 801029c:	c8 23 08 00 	sub r1,r1,r3                                   
 80102a0:	b8 80 60 00 	mv r12,r4                                      
 80102a4:	50 24 00 02 	bgeu r1,r4,80102ac <fat_cluster_set+0x50>      <== ALWAYS TAKEN
 80102a8:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
fat_cluster_num_to_block_num (const fat_fs_info_t *fs_info,           
                              uint32_t             cln)               
{                                                                     
    uint32_t blk;                                                     
                                                                      
    if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
 80102ac:	5c 40 00 0b 	bne r2,r0,80102d8 <fat_cluster_set+0x7c>       <== ALWAYS TAKEN
 80102b0:	41 61 00 0e 	lbu r1,(r11+14)                                <== NOT EXECUTED
 80102b4:	20 21 00 03 	andi r1,r1,0x3                                 <== NOT EXECUTED
 80102b8:	44 22 00 08 	be r1,r2,80102d8 <fat_cluster_set+0x7c>        <== NOT EXECUTED
                                                                      
static inline uint32_t                                                
 fat_sector_num_to_block_num (const fat_fs_info_t *fs_info,           
                              const uint32_t sector_number)           
{                                                                     
  return sector_number >> (fs_info->vol.bytes_per_block_log2 - fs_info->vol.sec_log2);
 80102bc:	41 64 00 0c 	lbu r4,(r11+12)                                <== NOT EXECUTED
 80102c0:	41 63 00 02 	lbu r3,(r11+2)                                 <== NOT EXECUTED
 80102c4:	29 61 00 20 	lw r1,(r11+32)                                 <== NOT EXECUTED
 80102c8:	c8 83 10 00 	sub r2,r4,r3                                   <== NOT EXECUTED
 80102cc:	f8 00 6f d1 	calli 802c210 <__lshrsi3>                      <== NOT EXECUTED
 80102d0:	b8 20 80 00 	mv r16,r1                                      <== NOT EXECUTED
 80102d4:	e0 00 00 0c 	bi 8010304 <fat_cluster_set+0xa8>              <== NOT EXECUTED
        blk = fat_sector_num_to_block_num(fs_info, fs_info->vol.rdir_loc);
    else                                                              
    {                                                                 
        cln -= FAT_RSRVD_CLN;                                         
        blk = cln << (fs_info->vol.bpc_log2 - fs_info->vol.bytes_per_block_log2);
 80102d8:	41 63 00 08 	lbu r3,(r11+8)                                 
 80102dc:	41 6d 00 0c 	lbu r13,(r11+12)                               
 80102e0:	34 41 ff fe 	addi r1,r2,-2                                  
 80102e4:	c8 6d 10 00 	sub r2,r3,r13                                  
 80102e8:	fb ff c3 c0 	calli 80011e8 <__ashlsi3>                      
 80102ec:	41 63 00 02 	lbu r3,(r11+2)                                 
 80102f0:	b8 20 80 00 	mv r16,r1                                      
 80102f4:	29 61 00 34 	lw r1,(r11+52)                                 
 80102f8:	c9 a3 10 00 	sub r2,r13,r3                                  
 80102fc:	f8 00 6f c5 	calli 802c210 <__lshrsi3>                      
        blk += fat_sector_num_to_block_num(fs_info, fs_info->vol.data_fsec);
 8010300:	b6 01 80 00 	add r16,r16,r1                                 
     const uint8_t                         pattern)                   
{                                                                     
  ssize_t             rc               = RC_OK;                       
  uint32_t            bytes_to_write   = MIN(count, (fs_info->vol.bpc - offset));
  uint32_t            cur_blk          = fat_cluster_num_to_block_num(fs_info, start_cln);
  uint32_t            blocks_in_offset = offset >> fs_info->vol.bytes_per_block_log2;
 8010304:	41 6d 00 0c 	lbu r13,(r11+12)                               
 8010308:	ba 20 08 00 	mv r1,r17                                      
  uint32_t            ofs_blk          = offset - (blocks_in_offset << fs_info->vol.bytes_per_block_log2);
  ssize_t             bytes_written    = 0;                           
 801030c:	34 0f 00 00 	mvi r15,0                                      
     const uint8_t                         pattern)                   
{                                                                     
  ssize_t             rc               = RC_OK;                       
  uint32_t            bytes_to_write   = MIN(count, (fs_info->vol.bpc - offset));
  uint32_t            cur_blk          = fat_cluster_num_to_block_num(fs_info, start_cln);
  uint32_t            blocks_in_offset = offset >> fs_info->vol.bytes_per_block_log2;
 8010310:	b9 a0 10 00 	mv r2,r13                                      
 8010314:	f8 00 6f bf 	calli 802c210 <__lshrsi3>                      
  uint32_t            ofs_blk          = offset - (blocks_in_offset << fs_info->vol.bytes_per_block_log2);
 8010318:	b9 a0 10 00 	mv r2,r13                                      
     const uint8_t                         pattern)                   
{                                                                     
  ssize_t             rc               = RC_OK;                       
  uint32_t            bytes_to_write   = MIN(count, (fs_info->vol.bpc - offset));
  uint32_t            cur_blk          = fat_cluster_num_to_block_num(fs_info, start_cln);
  uint32_t            blocks_in_offset = offset >> fs_info->vol.bytes_per_block_log2;
 801031c:	b8 20 70 00 	mv r14,r1                                      
  uint32_t            ofs_blk          = offset - (blocks_in_offset << fs_info->vol.bytes_per_block_log2);
 8010320:	fb ff c3 b2 	calli 80011e8 <__ashlsi3>                      
 8010324:	ca 21 88 00 	sub r17,r17,r1                                 
  ssize_t             bytes_written    = 0;                           
  ssize_t             ret;                                            
                                                                      
  cur_blk += blocks_in_offset;                                        
 8010328:	b6 0e 80 00 	add r16,r16,r14                                
     const uint32_t                        start_cln,                 
     const uint32_t                        offset,                    
     const uint32_t                        count,                     
     const uint8_t                         pattern)                   
{                                                                     
  ssize_t             rc               = RC_OK;                       
 801032c:	34 04 00 00 	mvi r4,0                                       
}                                                                     
                                                                      
static inline void                                                    
fat_buf_mark_modified(fat_fs_info_t *fs_info)                         
{                                                                     
    fs_info->c.modified = true;                                       
 8010330:	34 13 00 01 	mvi r19,1                                      
  ssize_t             bytes_written    = 0;                           
  ssize_t             ret;                                            
                                                                      
  cur_blk += blocks_in_offset;                                        
                                                                      
  while (   (RC_OK == rc)                                             
 8010334:	e0 00 00 26 	bi 80103cc <fat_cluster_set+0x170>             
         && (0 < bytes_to_write))                                     
  {                                                                   
    uint32_t c = MIN(bytes_to_write, (fs_info->vol.bytes_per_block - ofs_blk));
 8010338:	2d 72 00 0a 	lhu r18,(r11+10)                               
 801033c:	ca 51 20 00 	sub r4,r18,r17                                 
 8010340:	b8 80 68 00 	mv r13,r4                                      
 8010344:	51 84 00 02 	bgeu r12,r4,801034c <fat_cluster_set+0xf0>     <== ALWAYS TAKEN
 8010348:	b9 80 68 00 	mv r13,r12                                     <== NOT EXECUTED
     const uint32_t                        offset,                    
     const uint32_t                        count,                     
     const uint8_t                         pattern)                   
{                                                                     
    int                 rc             = RC_OK;                       
    uint32_t            bytes_to_write = MIN(count, (fs_info->vol.bytes_per_block - offset));
 801034c:	b9 a0 70 00 	mv r14,r13                                     
 8010350:	50 8d 00 02 	bgeu r4,r13,8010358 <fat_cluster_set+0xfc>     <== ALWAYS TAKEN
 8010354:	b8 80 70 00 	mv r14,r4                                      <== NOT EXECUTED
    uint32_t                              ino                         
    )                                                                 
{                                                                     
                                                                      
    return (ino >= fs_info->uino_base);                               
}                                                                     
 8010358:	41 63 00 02 	lbu r3,(r11+2)                                 
 801035c:	41 64 00 0c 	lbu r4,(r11+12)                                
    int                 rc             = RC_OK;                       
    uint32_t            bytes_to_write = MIN(count, (fs_info->vol.bytes_per_block - offset));
    uint8_t            *blk_buf;                                      
    uint32_t            sec_num        = fat_block_num_to_sector_num(fs_info, start_blk);
                                                                      
    if (0 < bytes_to_write)                                           
 8010360:	45 c0 00 13 	be r14,r0,80103ac <fat_cluster_set+0x150>      <== NEVER TAKEN
                                                                      
static inline uint32_t                                                
 fat_block_num_to_sector_num (const fat_fs_info_t *fs_info,           
                              const uint32_t block_number)            
{                                                                     
  return block_number << (fs_info->vol.bytes_per_block_log2 - fs_info->vol.sec_log2);
 8010364:	c8 83 10 00 	sub r2,r4,r3                                   
 8010368:	ba 00 08 00 	mv r1,r16                                      
 801036c:	fb ff c3 9f 	calli 80011e8 <__ashlsi3>                      
 8010370:	b8 20 10 00 	mv r2,r1                                       
    {                                                                 
        if (bytes_to_write == fs_info->vol.bytes_per_block)           
        {                                                             
            rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_GET, &blk_buf);
 8010374:	34 03 00 02 	mvi r3,2                                       
 8010378:	b9 60 08 00 	mv r1,r11                                      
    uint8_t            *blk_buf;                                      
    uint32_t            sec_num        = fat_block_num_to_sector_num(fs_info, start_blk);
                                                                      
    if (0 < bytes_to_write)                                           
    {                                                                 
        if (bytes_to_write == fs_info->vol.bytes_per_block)           
 801037c:	45 d2 00 03 	be r14,r18,8010388 <fat_cluster_set+0x12c>     
        {                                                             
            rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_GET, &blk_buf);
        }                                                             
        else                                                          
            rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_READ, &blk_buf);
 8010380:	b9 60 08 00 	mv r1,r11                                      
 8010384:	34 03 00 01 	mvi r3,1                                       
 8010388:	37 84 00 30 	addi r4,sp,48                                  
 801038c:	fb ff ff 06 	calli 800ffa4 <fat_buf_access>                 
                                                                      
        if (RC_OK == rc)                                              
 8010390:	5c 20 00 08 	bne r1,r0,80103b0 <fat_cluster_set+0x154>      <== NEVER TAKEN
        {                                                             
            memset(blk_buf + offset, pattern, bytes_to_write);        
 8010394:	2b 81 00 30 	lw r1,(sp+48)                                  
 8010398:	ba 80 10 00 	mv r2,r20                                      
 801039c:	b9 c0 18 00 	mv r3,r14                                      
 80103a0:	b4 31 08 00 	add r1,r1,r17                                  
 80103a4:	f8 00 29 29 	calli 801a848 <memset>                         
}                                                                     
                                                                      
static inline void                                                    
fat_buf_mark_modified(fat_fs_info_t *fs_info)                         
{                                                                     
    fs_info->c.modified = true;                                       
 80103a8:	31 73 00 88 	sb (r11+136),r19                               
        }                                                             
    }                                                                 
    if (RC_OK != rc)                                                  
        return rc;                                                    
    else                                                              
        return bytes_to_write;                                        
 80103ac:	b9 c0 08 00 	mv r1,r14                                      
        cur_blk,                                                      
        ofs_blk,                                                      
        c,                                                            
        pattern);                                                     
    if (c != ret)                                                     
      rc = -1;                                                        
 80103b0:	34 04 ff ff 	mvi r4,-1                                      
        fs_info,                                                      
        cur_blk,                                                      
        ofs_blk,                                                      
        c,                                                            
        pattern);                                                     
    if (c != ret)                                                     
 80103b4:	5d a1 00 05 	bne r13,r1,80103c8 <fat_cluster_set+0x16c>     <== NEVER TAKEN
      rc = -1;                                                        
    else                                                              
    {                                                                 
        bytes_to_write -= ret;                                        
 80103b8:	c9 8d 60 00 	sub r12,r12,r13                                
        bytes_written  += ret;                                        
 80103bc:	b5 ed 78 00 	add r15,r15,r13                                
        ++cur_blk;                                                    
 80103c0:	36 10 00 01 	addi r16,r16,1                                 
 80103c4:	34 04 00 00 	mvi r4,0                                       
 80103c8:	34 11 00 00 	mvi r17,0                                      
  ssize_t             ret;                                            
                                                                      
  cur_blk += blocks_in_offset;                                        
                                                                      
  while (   (RC_OK == rc)                                             
         && (0 < bytes_to_write))                                     
 80103cc:	7d 82 00 00 	cmpnei r2,r12,0                                
  ssize_t             bytes_written    = 0;                           
  ssize_t             ret;                                            
                                                                      
  cur_blk += blocks_in_offset;                                        
                                                                      
  while (   (RC_OK == rc)                                             
 80103d0:	64 81 00 00 	cmpei r1,r4,0                                  
 80103d4:	a0 41 08 00 	and r1,r2,r1                                   
 80103d8:	5c 20 ff d8 	bne r1,r0,8010338 <fat_cluster_set+0xdc>       
        bytes_written  += ret;                                        
        ++cur_blk;                                                    
    }                                                                 
    ofs_blk = 0;                                                      
  }                                                                   
  if (RC_OK != rc)                                                    
 80103dc:	5c 81 00 02 	bne r4,r1,80103e4 <fat_cluster_set+0x188>      <== NEVER TAKEN
 80103e0:	b9 e0 20 00 	mv r4,r15                                      
    return rc;                                                        
  else                                                                
    return bytes_written;                                             
}                                                                     
 80103e4:	b8 80 08 00 	mv r1,r4                                       
 80103e8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80103ec:	2b 8b 00 2c 	lw r11,(sp+44)                                 
 80103f0:	2b 8c 00 28 	lw r12,(sp+40)                                 
 80103f4:	2b 8d 00 24 	lw r13,(sp+36)                                 
 80103f8:	2b 8e 00 20 	lw r14,(sp+32)                                 
 80103fc:	2b 8f 00 1c 	lw r15,(sp+28)                                 
 8010400:	2b 90 00 18 	lw r16,(sp+24)                                 
 8010404:	2b 91 00 14 	lw r17,(sp+20)                                 
 8010408:	2b 92 00 10 	lw r18,(sp+16)                                 
 801040c:	2b 93 00 0c 	lw r19,(sp+12)                                 
 8010410:	2b 94 00 08 	lw r20,(sp+8)                                  
 8010414:	37 9c 00 30 	addi sp,sp,48                                  
 8010418:	c3 a0 00 00 	ret                                            
                                                                      

0801041c <fat_cluster_write>: const uint32_t start_cln, const uint32_t offset, const uint32_t count, const void *buff, const bool overwrite_cluster) {
 801041c:	37 9c ff cc 	addi sp,sp,-52                                 
 8010420:	5b 8b 00 30 	sw (sp+48),r11                                 
 8010424:	5b 8c 00 2c 	sw (sp+44),r12                                 
 8010428:	5b 8d 00 28 	sw (sp+40),r13                                 
 801042c:	5b 8e 00 24 	sw (sp+36),r14                                 
 8010430:	5b 8f 00 20 	sw (sp+32),r15                                 
 8010434:	5b 90 00 1c 	sw (sp+28),r16                                 
 8010438:	5b 91 00 18 	sw (sp+24),r17                                 
 801043c:	5b 92 00 14 	sw (sp+20),r18                                 
 8010440:	5b 93 00 10 	sw (sp+16),r19                                 
 8010444:	5b 94 00 0c 	sw (sp+12),r20                                 
 8010448:	5b 95 00 08 	sw (sp+8),r21                                  
 801044c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8010450:	b8 20 58 00 	mv r11,r1                                      
    ssize_t             rc               = RC_OK;                     
    uint32_t            bytes_to_write   = MIN(count, (fs_info->vol.bpc - offset));
 8010454:	2c 21 00 06 	lhu r1,(r1+6)                                  
    const uint32_t                        start_cln,                  
    const uint32_t                        offset,                     
    const uint32_t                        count,                      
    const void                           *buff,                       
    const bool                            overwrite_cluster)          
{                                                                     
 8010458:	b8 60 88 00 	mv r17,r3                                      
 801045c:	b8 a0 a0 00 	mv r20,r5                                      
    ssize_t             rc               = RC_OK;                     
    uint32_t            bytes_to_write   = MIN(count, (fs_info->vol.bpc - offset));
 8010460:	c8 23 08 00 	sub r1,r1,r3                                   
    const uint32_t                        start_cln,                  
    const uint32_t                        offset,                     
    const uint32_t                        count,                      
    const void                           *buff,                       
    const bool                            overwrite_cluster)          
{                                                                     
 8010464:	20 d5 00 ff 	andi r21,r6,0xff                               
    ssize_t             rc               = RC_OK;                     
    uint32_t            bytes_to_write   = MIN(count, (fs_info->vol.bpc - offset));
 8010468:	b8 80 60 00 	mv r12,r4                                      
 801046c:	50 24 00 02 	bgeu r1,r4,8010474 <fat_cluster_write+0x58>    <== ALWAYS TAKEN
 8010470:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
fat_cluster_num_to_block_num (const fat_fs_info_t *fs_info,           
                              uint32_t             cln)               
{                                                                     
    uint32_t blk;                                                     
                                                                      
    if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
 8010474:	5c 40 00 0b 	bne r2,r0,80104a0 <fat_cluster_write+0x84>     
 8010478:	41 61 00 0e 	lbu r1,(r11+14)                                
 801047c:	20 21 00 03 	andi r1,r1,0x3                                 
 8010480:	44 22 00 08 	be r1,r2,80104a0 <fat_cluster_write+0x84>      <== NEVER TAKEN
                                                                      
static inline uint32_t                                                
 fat_sector_num_to_block_num (const fat_fs_info_t *fs_info,           
                              const uint32_t sector_number)           
{                                                                     
  return sector_number >> (fs_info->vol.bytes_per_block_log2 - fs_info->vol.sec_log2);
 8010484:	41 63 00 0c 	lbu r3,(r11+12)                                
 8010488:	41 62 00 02 	lbu r2,(r11+2)                                 
 801048c:	29 61 00 20 	lw r1,(r11+32)                                 
 8010490:	c8 62 10 00 	sub r2,r3,r2                                   
 8010494:	f8 00 6f 5f 	calli 802c210 <__lshrsi3>                      
 8010498:	b8 20 80 00 	mv r16,r1                                      
 801049c:	e0 00 00 0c 	bi 80104cc <fat_cluster_write+0xb0>            
        blk = fat_sector_num_to_block_num(fs_info, fs_info->vol.rdir_loc);
    else                                                              
    {                                                                 
        cln -= FAT_RSRVD_CLN;                                         
        blk = cln << (fs_info->vol.bpc_log2 - fs_info->vol.bytes_per_block_log2);
 80104a0:	41 63 00 08 	lbu r3,(r11+8)                                 
 80104a4:	41 6d 00 0c 	lbu r13,(r11+12)                               
 80104a8:	34 41 ff fe 	addi r1,r2,-2                                  
 80104ac:	c8 6d 10 00 	sub r2,r3,r13                                  
 80104b0:	fb ff c3 4e 	calli 80011e8 <__ashlsi3>                      
 80104b4:	41 62 00 02 	lbu r2,(r11+2)                                 
 80104b8:	b8 20 80 00 	mv r16,r1                                      
 80104bc:	29 61 00 34 	lw r1,(r11+52)                                 
 80104c0:	c9 a2 10 00 	sub r2,r13,r2                                  
 80104c4:	f8 00 6f 53 	calli 802c210 <__lshrsi3>                      
        blk += fat_sector_num_to_block_num(fs_info, fs_info->vol.data_fsec);
 80104c8:	b6 01 80 00 	add r16,r16,r1                                 
    const bool                            overwrite_cluster)          
{                                                                     
    ssize_t             rc               = RC_OK;                     
    uint32_t            bytes_to_write   = MIN(count, (fs_info->vol.bpc - offset));
    uint32_t            cur_blk          = fat_cluster_num_to_block_num(fs_info, start_cln);
    uint32_t            blocks_in_offset = (offset >> fs_info->vol.bytes_per_block_log2);
 80104cc:	41 6d 00 0c 	lbu r13,(r11+12)                               
 80104d0:	ba 20 08 00 	mv r1,r17                                      
    uint32_t            ofs_blk          = offset - (blocks_in_offset << fs_info->vol.bytes_per_block_log2);
    ssize_t             bytes_written    = 0;                         
 80104d4:	34 0f 00 00 	mvi r15,0                                      
    const bool                            overwrite_cluster)          
{                                                                     
    ssize_t             rc               = RC_OK;                     
    uint32_t            bytes_to_write   = MIN(count, (fs_info->vol.bpc - offset));
    uint32_t            cur_blk          = fat_cluster_num_to_block_num(fs_info, start_cln);
    uint32_t            blocks_in_offset = (offset >> fs_info->vol.bytes_per_block_log2);
 80104d8:	b9 a0 10 00 	mv r2,r13                                      
 80104dc:	f8 00 6f 4d 	calli 802c210 <__lshrsi3>                      
    uint32_t            ofs_blk          = offset - (blocks_in_offset << fs_info->vol.bytes_per_block_log2);
 80104e0:	b9 a0 10 00 	mv r2,r13                                      
    const bool                            overwrite_cluster)          
{                                                                     
    ssize_t             rc               = RC_OK;                     
    uint32_t            bytes_to_write   = MIN(count, (fs_info->vol.bpc - offset));
    uint32_t            cur_blk          = fat_cluster_num_to_block_num(fs_info, start_cln);
    uint32_t            blocks_in_offset = (offset >> fs_info->vol.bytes_per_block_log2);
 80104e4:	b8 20 70 00 	mv r14,r1                                      
    uint32_t            ofs_blk          = offset - (blocks_in_offset << fs_info->vol.bytes_per_block_log2);
 80104e8:	fb ff c3 40 	calli 80011e8 <__ashlsi3>                      
 80104ec:	ca 21 88 00 	sub r17,r17,r1                                 
    ssize_t             bytes_written    = 0;                         
    uint8_t             *buffer          = (uint8_t*)buff;            
    ssize_t             ret;                                          
    uint32_t            c;                                            
                                                                      
    cur_blk += blocks_in_offset;                                      
 80104f0:	b6 0e 80 00 	add r16,r16,r14                                
    const uint32_t                        offset,                     
    const uint32_t                        count,                      
    const void                           *buff,                       
    const bool                            overwrite_cluster)          
{                                                                     
    ssize_t             rc               = RC_OK;                     
 80104f4:	34 02 00 00 	mvi r2,0                                       
}                                                                     
                                                                      
static inline void                                                    
fat_buf_mark_modified(fat_fs_info_t *fs_info)                         
{                                                                     
    fs_info->c.modified = true;                                       
 80104f8:	34 13 00 01 	mvi r19,1                                      
    ssize_t             ret;                                          
    uint32_t            c;                                            
                                                                      
    cur_blk += blocks_in_offset;                                      
                                                                      
    while (   (RC_OK == rc)                                           
 80104fc:	e0 00 00 27 	bi 8010598 <fat_cluster_write+0x17c>           
           && (0 < bytes_to_write))                                   
    {                                                                 
      c = MIN(bytes_to_write, (fs_info->vol.bytes_per_block - ofs_blk));
 8010500:	2d 72 00 0a 	lhu r18,(r11+10)                               
 8010504:	ca 51 10 00 	sub r2,r18,r17                                 
 8010508:	b8 40 68 00 	mv r13,r2                                      
 801050c:	51 82 00 02 	bgeu r12,r2,8010514 <fat_cluster_write+0xf8>   
 8010510:	b9 80 68 00 	mv r13,r12                                     
    const uint32_t                        count,                      
    const void                           *buf,                        
    const bool                            overwrite_block)            
{                                                                     
    int                 rc             = RC_OK;                       
    uint32_t            bytes_to_write = MIN(count, (fs_info->vol.bytes_per_block - offset));
 8010514:	b9 a0 70 00 	mv r14,r13                                     
 8010518:	50 4d 00 02 	bgeu r2,r13,8010520 <fat_cluster_write+0x104>  <== ALWAYS TAKEN
 801051c:	b8 40 70 00 	mv r14,r2                                      <== NOT EXECUTED
    uint32_t                              ino                         
    )                                                                 
{                                                                     
                                                                      
    return (ino >= fs_info->uino_base);                               
}                                                                     
 8010520:	41 62 00 02 	lbu r2,(r11+2)                                 
 8010524:	41 63 00 0c 	lbu r3,(r11+12)                                
    int                 rc             = RC_OK;                       
    uint32_t            bytes_to_write = MIN(count, (fs_info->vol.bytes_per_block - offset));
    uint8_t            *blk_buf;                                      
    uint32_t            sec_num        = fat_block_num_to_sector_num(fs_info, start_blk);
                                                                      
    if (0 < bytes_to_write)                                           
 8010528:	45 c0 00 14 	be r14,r0,8010578 <fat_cluster_write+0x15c>    <== NEVER TAKEN
                                                                      
static inline uint32_t                                                
 fat_block_num_to_sector_num (const fat_fs_info_t *fs_info,           
                              const uint32_t block_number)            
{                                                                     
  return block_number << (fs_info->vol.bytes_per_block_log2 - fs_info->vol.sec_log2);
 801052c:	c8 62 10 00 	sub r2,r3,r2                                   
 8010530:	ba 00 08 00 	mv r1,r16                                      
 8010534:	fb ff c3 2d 	calli 80011e8 <__ashlsi3>                      
 8010538:	b8 20 10 00 	mv r2,r1                                       
    {                                                                 
        if (   overwrite_block                                        
 801053c:	5e a0 00 04 	bne r21,r0,801054c <fat_cluster_write+0x130>   
            || (bytes_to_write == fs_info->vol.bytes_per_block))      
        {                                                             
            rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_GET, &blk_buf);
        }                                                             
        else                                                          
            rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_READ, &blk_buf);
 8010540:	b9 60 08 00 	mv r1,r11                                      
 8010544:	34 03 00 01 	mvi r3,1                                       
    uint32_t            sec_num        = fat_block_num_to_sector_num(fs_info, start_blk);
                                                                      
    if (0 < bytes_to_write)                                           
    {                                                                 
        if (   overwrite_block                                        
            || (bytes_to_write == fs_info->vol.bytes_per_block))      
 8010548:	5d d2 00 03 	bne r14,r18,8010554 <fat_cluster_write+0x138>  
        {                                                             
            rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_GET, &blk_buf);
 801054c:	b9 60 08 00 	mv r1,r11                                      
 8010550:	34 03 00 02 	mvi r3,2                                       
        }                                                             
        else                                                          
            rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_READ, &blk_buf);
 8010554:	37 84 00 34 	addi r4,sp,52                                  
 8010558:	fb ff fe 93 	calli 800ffa4 <fat_buf_access>                 
                                                                      
        if (RC_OK == rc)                                              
 801055c:	5c 20 00 08 	bne r1,r0,801057c <fat_cluster_write+0x160>    <== NEVER TAKEN
        {                                                             
            memcpy(blk_buf + offset, buf, bytes_to_write);            
 8010560:	2b 81 00 34 	lw r1,(sp+52)                                  
 8010564:	b6 8f 10 00 	add r2,r20,r15                                 
 8010568:	b9 c0 18 00 	mv r3,r14                                      
 801056c:	b4 31 08 00 	add r1,r1,r17                                  
 8010570:	f8 00 28 75 	calli 801a744 <memcpy>                         
}                                                                     
                                                                      
static inline void                                                    
fat_buf_mark_modified(fat_fs_info_t *fs_info)                         
{                                                                     
    fs_info->c.modified = true;                                       
 8010574:	31 73 00 88 	sb (r11+136),r19                               
        }                                                             
    }                                                                 
    if (RC_OK != rc)                                                  
        return rc;                                                    
    else                                                              
        return bytes_to_write;                                        
 8010578:	b9 c0 08 00 	mv r1,r14                                      
          ofs_blk,                                                    
          c,                                                          
          &buffer[bytes_written],                                     
          overwrite_cluster);                                         
      if (c != ret)                                                   
        rc = -1;                                                      
 801057c:	34 02 ff ff 	mvi r2,-1                                      
          cur_blk,                                                    
          ofs_blk,                                                    
          c,                                                          
          &buffer[bytes_written],                                     
          overwrite_cluster);                                         
      if (c != ret)                                                   
 8010580:	5d a1 00 05 	bne r13,r1,8010594 <fat_cluster_write+0x178>   <== NEVER TAKEN
        rc = -1;                                                      
      else                                                            
      {                                                               
          bytes_to_write -= ret;                                      
 8010584:	c9 8d 60 00 	sub r12,r12,r13                                
          bytes_written  += ret;                                      
 8010588:	b5 ed 78 00 	add r15,r15,r13                                
          ++cur_blk;                                                  
 801058c:	36 10 00 01 	addi r16,r16,1                                 
 8010590:	34 02 00 00 	mvi r2,0                                       
 8010594:	34 11 00 00 	mvi r17,0                                      
    uint32_t            c;                                            
                                                                      
    cur_blk += blocks_in_offset;                                      
                                                                      
    while (   (RC_OK == rc)                                           
           && (0 < bytes_to_write))                                   
 8010598:	7d 83 00 00 	cmpnei r3,r12,0                                
    ssize_t             ret;                                          
    uint32_t            c;                                            
                                                                      
    cur_blk += blocks_in_offset;                                      
                                                                      
    while (   (RC_OK == rc)                                           
 801059c:	64 41 00 00 	cmpei r1,r2,0                                  
 80105a0:	a0 61 08 00 	and r1,r3,r1                                   
 80105a4:	5c 20 ff d7 	bne r1,r0,8010500 <fat_cluster_write+0xe4>     
          bytes_written  += ret;                                      
          ++cur_blk;                                                  
      }                                                               
      ofs_blk = 0;                                                    
    }                                                                 
    if (RC_OK != rc)                                                  
 80105a8:	5c 41 00 02 	bne r2,r1,80105b0 <fat_cluster_write+0x194>    <== NEVER TAKEN
 80105ac:	b9 e0 10 00 	mv r2,r15                                      
      return rc;                                                      
    else                                                              
      return bytes_written;                                           
}                                                                     
 80105b0:	b8 40 08 00 	mv r1,r2                                       
 80105b4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80105b8:	2b 8b 00 30 	lw r11,(sp+48)                                 
 80105bc:	2b 8c 00 2c 	lw r12,(sp+44)                                 
 80105c0:	2b 8d 00 28 	lw r13,(sp+40)                                 
 80105c4:	2b 8e 00 24 	lw r14,(sp+36)                                 
 80105c8:	2b 8f 00 20 	lw r15,(sp+32)                                 
 80105cc:	2b 90 00 1c 	lw r16,(sp+28)                                 
 80105d0:	2b 91 00 18 	lw r17,(sp+24)                                 
 80105d4:	2b 92 00 14 	lw r18,(sp+20)                                 
 80105d8:	2b 93 00 10 	lw r19,(sp+16)                                 
 80105dc:	2b 94 00 0c 	lw r20,(sp+12)                                 
 80105e0:	2b 95 00 08 	lw r21,(sp+8)                                  
 80105e4:	37 9c 00 34 	addi sp,sp,52                                  
 80105e8:	c3 a0 00 00 	ret                                            
                                                                      

0800ee68 <fat_construct_key>: */ static inline uint32_t fat_construct_key( const fat_fs_info_t *fs_info, fat_pos_t *pos) {
 800ee68:	37 9c ff f0 	addi sp,sp,-16                                 
 800ee6c:	5b 8b 00 10 	sw (sp+16),r11                                 
 800ee70:	5b 8c 00 0c 	sw (sp+12),r12                                 
 800ee74:	5b 8d 00 08 	sw (sp+8),r13                                  
 800ee78:	5b 9d 00 04 	sw (sp+4),ra                                   
    return ( ((fat_cluster_num_to_sector512_num(fs_info, pos->cln) +  
 800ee7c:	28 43 00 00 	lw r3,(r2+0)                                   
 */                                                                   
static inline uint32_t                                                
fat_construct_key(                                                    
    const fat_fs_info_t                  *fs_info,                    
    fat_pos_t                            *pos)                        
{                                                                     
 800ee80:	b8 20 58 00 	mv r11,r1                                      
fat_cluster_num_to_sector512_num(                                     
    const fat_fs_info_t *fs_info,                                     
    uint32_t             cln                                          
    )                                                                 
{                                                                     
    if (cln == 1)                                                     
 800ee84:	34 01 00 01 	mvi r1,1                                       
 800ee88:	b8 40 68 00 	mv r13,r2                                      
        return 1;                                                     
 800ee8c:	34 0c 00 01 	mvi r12,1                                      
fat_cluster_num_to_sector512_num(                                     
    const fat_fs_info_t *fs_info,                                     
    uint32_t             cln                                          
    )                                                                 
{                                                                     
    if (cln == 1)                                                     
 800ee90:	44 61 00 0f 	be r3,r1,800eecc <fat_construct_key+0x64>      
fat_cluster_num_to_sector_num(                                        
    const fat_fs_info_t *fs_info,                                     
    uint32_t             cln                                          
    )                                                                 
{                                                                     
    if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
 800ee94:	5c 60 00 06 	bne r3,r0,800eeac <fat_construct_key+0x44>     
 800ee98:	41 61 00 0e 	lbu r1,(r11+14)                                
 800ee9c:	20 21 00 03 	andi r1,r1,0x3                                 
 800eea0:	44 23 00 03 	be r1,r3,800eeac <fat_construct_key+0x44>      <== NEVER TAKEN
        return fs_info->vol.rdir_loc;                                 
 800eea4:	29 61 00 20 	lw r1,(r11+32)                                 
 800eea8:	e0 00 00 06 	bi 800eec0 <fat_construct_key+0x58>            
                                                                      
    return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +        
 800eeac:	41 62 00 05 	lbu r2,(r11+5)                                 
 800eeb0:	34 61 ff fe 	addi r1,r3,-2                                  
 800eeb4:	fb ff c8 cd 	calli 80011e8 <__ashlsi3>                      
 800eeb8:	29 62 00 34 	lw r2,(r11+52)                                 
 800eebc:	b4 22 08 00 	add r1,r1,r2                                   
    )                                                                 
{                                                                     
    if (cln == 1)                                                     
        return 1;                                                     
                                                                      
    return (fat_cluster_num_to_sector_num(fs_info, cln) <<            
 800eec0:	41 62 00 03 	lbu r2,(r11+3)                                 
 800eec4:	fb ff c8 c9 	calli 80011e8 <__ashlsi3>                      
 800eec8:	b8 20 60 00 	mv r12,r1                                      
    return ( ((fat_cluster_num_to_sector512_num(fs_info, pos->cln) +  
              (pos->ofs >> FAT_SECTOR512_BITS)) << 4)              +  
 800eecc:	29 ab 00 04 	lw r11,(r13+4)                                 
 800eed0:	34 02 00 09 	mvi r2,9                                       
 800eed4:	b9 60 08 00 	mv r1,r11                                      
 800eed8:	f8 00 74 ce 	calli 802c210 <__lshrsi3>                      
 800eedc:	b5 81 08 00 	add r1,r12,r1                                  
 800eee0:	34 02 00 04 	mvi r2,4                                       
 800eee4:	fb ff c8 c1 	calli 80011e8 <__ashlsi3>                      
 800eee8:	b8 20 60 00 	mv r12,r1                                      
              ((pos->ofs >> 5) & (FAT_DIRENTRIES_PER_SEC512 - 1)) );  
 800eeec:	34 02 00 05 	mvi r2,5                                       
 800eef0:	b9 60 08 00 	mv r1,r11                                      
 800eef4:	f8 00 74 c7 	calli 802c210 <__lshrsi3>                      
 800eef8:	20 22 00 0f 	andi r2,r1,0xf                                 
}                                                                     
 800eefc:	b5 82 08 00 	add r1,r12,r2                                  
 800ef00:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800ef04:	2b 8b 00 10 	lw r11,(sp+16)                                 
 800ef08:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 800ef0c:	2b 8d 00 08 	lw r13,(sp+8)                                  
 800ef10:	37 9c 00 10 	addi sp,sp,16                                  
 800ef14:	c3 a0 00 00 	ret                                            
                                                                      

0800f570 <fat_file_close>: int fat_file_close( fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd ) {
 800f570:	37 9c ff f0 	addi sp,sp,-16                                 
 800f574:	5b 8b 00 10 	sw (sp+16),r11                                 
 800f578:	5b 8c 00 0c 	sw (sp+12),r12                                 
 800f57c:	5b 8d 00 08 	sw (sp+8),r13                                  
 800f580:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
    /*                                                                
     * if links_num field of fat-file descriptor is greater than 1    
     * decrement the count of links and return                        
     */                                                               
    if (fat_fd->links_num > 1)                                        
 800f584:	28 43 00 08 	lw r3,(r2+8)                                   
 800f588:	34 04 00 01 	mvi r4,1                                       
int                                                                   
fat_file_close(                                                       
    fat_fs_info_t                        *fs_info,                    
    fat_file_fd_t                        *fat_fd                      
    )                                                                 
{                                                                     
 800f58c:	b8 20 68 00 	mv r13,r1                                      
 800f590:	b8 40 58 00 	mv r11,r2                                      
                                                                      
    /*                                                                
     * if links_num field of fat-file descriptor is greater than 1    
     * decrement the count of links and return                        
     */                                                               
    if (fat_fd->links_num > 1)                                        
 800f594:	50 83 00 05 	bgeu r4,r3,800f5a8 <fat_file_close+0x38>       
    {                                                                 
        fat_fd->links_num--;                                          
 800f598:	34 63 ff ff 	addi r3,r3,-1                                  
 800f59c:	58 43 00 08 	sw (r2+8),r3                                   
        return rc;                                                    
 800f5a0:	34 0c 00 00 	mvi r12,0                                      
 800f5a4:	e0 00 00 1e 	bi 800f61c <fat_file_close+0xac>               
    }                                                                 
                                                                      
    key = fat_construct_key(fs_info, &fat_fd->dir_pos.sname);         
                                                                      
    if (fat_fd->flags & FAT_FILE_REMOVED)                             
 800f5a8:	40 4c 00 30 	lbu r12,(r2+48)                                
 800f5ac:	21 8c 00 01 	andi r12,r12,0x1                               
 800f5b0:	45 80 00 0f 	be r12,r0,800f5ec <fat_file_close+0x7c>        
    {                                                                 
        rc = fat_file_truncate(fs_info, fat_fd, 0);                   
 800f5b4:	34 03 00 00 	mvi r3,0                                       
 800f5b8:	fb ff ff a1 	calli 800f43c <fat_file_truncate>              
 800f5bc:	b8 20 60 00 	mv r12,r1                                      
        if ( rc != RC_OK )                                            
 800f5c0:	5c 20 00 17 	bne r1,r0,800f61c <fat_file_close+0xac>        <== NEVER TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
 800f5c4:	b9 60 08 00 	mv r1,r11                                      
 800f5c8:	f8 00 10 25 	calli 801365c <_Chain_Extract>                 
            return rc;                                                
                                                                      
        _hash_delete(fs_info->rhash, key, fat_fd->ino, fat_fd);       
                                                                      
        if ( fat_ino_is_unique(fs_info, fat_fd->ino) )                
 800f5cc:	29 62 00 0c 	lw r2,(r11+12)                                 
 800f5d0:	b9 a0 08 00 	mv r1,r13                                      
 800f5d4:	f8 00 07 21 	calli 8011258 <fat_ino_is_unique>              
 800f5d8:	44 2c 00 0c 	be r1,r12,800f608 <fat_file_close+0x98>        <== ALWAYS TAKEN
            fat_free_unique_ino(fs_info, fat_fd->ino);                
 800f5dc:	29 62 00 0c 	lw r2,(r11+12)                                 <== NOT EXECUTED
 800f5e0:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 800f5e4:	f8 00 07 05 	calli 80111f8 <fat_free_unique_ino>            <== NOT EXECUTED
 800f5e8:	e0 00 00 08 	bi 800f608 <fat_file_close+0x98>               <== NOT EXECUTED
                                                                      
        free(fat_fd);                                                 
    }                                                                 
    else                                                              
    {                                                                 
        if (fat_ino_is_unique(fs_info, fat_fd->ino))                  
 800f5ec:	28 42 00 0c 	lw r2,(r2+12)                                  
 800f5f0:	f8 00 07 1a 	calli 8011258 <fat_ino_is_unique>              
 800f5f4:	44 2c 00 03 	be r1,r12,800f600 <fat_file_close+0x90>        
        {                                                             
            fat_fd->links_num = 0;                                    
 800f5f8:	59 60 00 08 	sw (r11+8),r0                                  
 800f5fc:	e0 00 00 05 	bi 800f610 <fat_file_close+0xa0>               
 800f600:	b9 60 08 00 	mv r1,r11                                      
 800f604:	f8 00 10 16 	calli 801365c <_Chain_Extract>                 
        }                                                             
        else                                                          
        {                                                             
            _hash_delete(fs_info->vhash, key, fat_fd->ino, fat_fd);   
            free(fat_fd);                                             
 800f608:	b9 60 08 00 	mv r1,r11                                      
 800f60c:	fb ff ce 70 	calli 8002fcc <free>                           
        }                                                             
    }                                                                 
    /*                                                                
     * flush any modified "cached" buffer back to disk                
     */                                                               
    rc = fat_buf_release(fs_info);                                    
 800f610:	b9 a0 08 00 	mv r1,r13                                      
 800f614:	f8 00 01 e6 	calli 800fdac <fat_buf_release>                
 800f618:	b8 20 60 00 	mv r12,r1                                      
                                                                      
    return rc;                                                        
}                                                                     
 800f61c:	b9 80 08 00 	mv r1,r12                                      
 800f620:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800f624:	2b 8b 00 10 	lw r11,(sp+16)                                 
 800f628:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 800f62c:	2b 8d 00 08 	lw r13,(sp+8)                                  
 800f630:	37 9c 00 10 	addi sp,sp,16                                  
 800f634:	c3 a0 00 00 	ret                                            
                                                                      

0800f710 <fat_file_extend>: fat_file_fd_t *fat_fd, bool zero_fill, uint32_t new_length, uint32_t *a_length ) {
 800f710:	37 9c ff c4 	addi sp,sp,-60                                 
 800f714:	5b 8b 00 28 	sw (sp+40),r11                                 
 800f718:	5b 8c 00 24 	sw (sp+36),r12                                 
 800f71c:	5b 8d 00 20 	sw (sp+32),r13                                 
 800f720:	5b 8e 00 1c 	sw (sp+28),r14                                 
 800f724:	5b 8f 00 18 	sw (sp+24),r15                                 
 800f728:	5b 90 00 14 	sw (sp+20),r16                                 
 800f72c:	5b 91 00 10 	sw (sp+16),r17                                 
 800f730:	5b 92 00 0c 	sw (sp+12),r18                                 
 800f734:	5b 93 00 08 	sw (sp+8),r19                                  
 800f738:	5b 9d 00 04 	sw (sp+4),ra                                   
 800f73c:	b8 a0 90 00 	mv r18,r5                                      
    uint32_t       last_cl = 0;                                       
    uint32_t       bytes_remain = 0;                                  
    uint32_t       cls_added;                                         
    ssize_t        bytes_written;                                     
                                                                      
    *a_length = new_length;                                           
 800f740:	5a 44 00 00 	sw (r18+0),r4                                  
    fat_file_fd_t                        *fat_fd,                     
    bool                                  zero_fill,                  
    uint32_t                              new_length,                 
    uint32_t                             *a_length                    
    )                                                                 
{                                                                     
 800f744:	b8 20 58 00 	mv r11,r1                                      
    uint32_t       cls_added;                                         
    ssize_t        bytes_written;                                     
                                                                      
    *a_length = new_length;                                           
                                                                      
    if (new_length <= fat_fd->fat_file_size)                          
 800f748:	28 41 00 18 	lw r1,(r2+24)                                  
    uint32_t                              new_length,                 
    uint32_t                             *a_length                    
    )                                                                 
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       chain = 0;                                         
 800f74c:	5b 80 00 3c 	sw (sp+60),r0                                  
    uint32_t       bytes2add = 0;                                     
    uint32_t       cls2add = 0;                                       
    uint32_t       old_last_cl;                                       
    uint32_t       last_cl = 0;                                       
 800f750:	5b 80 00 34 	sw (sp+52),r0                                  
    fat_file_fd_t                        *fat_fd,                     
    bool                                  zero_fill,                  
    uint32_t                              new_length,                 
    uint32_t                             *a_length                    
    )                                                                 
{                                                                     
 800f754:	b8 40 60 00 	mv r12,r2                                      
 800f758:	b8 80 70 00 	mv r14,r4                                      
 800f75c:	20 73 00 ff 	andi r19,r3,0xff                               
    ssize_t        bytes_written;                                     
                                                                      
    *a_length = new_length;                                           
                                                                      
    if (new_length <= fat_fd->fat_file_size)                          
        return RC_OK;                                                 
 800f760:	34 0d 00 00 	mvi r13,0                                      
    uint32_t       cls_added;                                         
    ssize_t        bytes_written;                                     
                                                                      
    *a_length = new_length;                                           
                                                                      
    if (new_length <= fat_fd->fat_file_size)                          
 800f764:	50 24 00 73 	bgeu r1,r4,800f930 <fat_file_extend+0x220>     
        return RC_OK;                                                 
                                                                      
    if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                               
 800f768:	28 43 00 20 	lw r3,(r2+32)                                  
 800f76c:	34 02 00 01 	mvi r2,1                                       
 800f770:	5c 62 00 06 	bne r3,r2,800f788 <fat_file_extend+0x78>       
 800f774:	29 82 00 24 	lw r2,(r12+36)                                 
 800f778:	5c 40 00 04 	bne r2,r0,800f788 <fat_file_extend+0x78>       <== NEVER TAKEN
        (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))                
 800f77c:	41 62 00 0e 	lbu r2,(r11+14)                                
 800f780:	20 42 00 03 	andi r2,r2,0x3                                 
    *a_length = new_length;                                           
                                                                      
    if (new_length <= fat_fd->fat_file_size)                          
        return RC_OK;                                                 
                                                                      
    if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                               
 800f784:	5c 4d 00 2f 	bne r2,r13,800f840 <fat_file_extend+0x130>     <== ALWAYS TAKEN
        (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))                
        rtems_set_errno_and_return_minus_one( ENOSPC );               
                                                                      
    bytes_remain = (fs_info->vol.bpc -                                
 800f788:	2d 6f 00 06 	lhu r15,(r11+6)                                
    bytes2add = new_length - fat_fd->fat_file_size;                   
                                                                      
    if (bytes2add > bytes_remain)                                     
        bytes2add -= bytes_remain;                                    
    else                                                              
        bytes2add = 0;                                                
 800f78c:	34 10 00 00 	mvi r16,0                                      
    if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                               
        (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))                
        rtems_set_errno_and_return_minus_one( ENOSPC );               
                                                                      
    bytes_remain = (fs_info->vol.bpc -                                
                   (fat_fd->fat_file_size & (fs_info->vol.bpc - 1))) &
 800f790:	35 e2 ff ff 	addi r2,r15,-1                                 
 800f794:	a0 41 88 00 	and r17,r2,r1                                  
                                                                      
    if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                               
        (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))                
        rtems_set_errno_and_return_minus_one( ENOSPC );               
                                                                      
    bytes_remain = (fs_info->vol.bpc -                                
 800f798:	c9 f1 78 00 	sub r15,r15,r17                                
 800f79c:	a1 e2 78 00 	and r15,r15,r2                                 
                   (fat_fd->fat_file_size & (fs_info->vol.bpc - 1))) &
                   (fs_info->vol.bpc - 1);                            
                                                                      
    bytes2add = new_length - fat_fd->fat_file_size;                   
 800f7a0:	c9 c1 10 00 	sub r2,r14,r1                                  
                                                                      
    if (bytes2add > bytes_remain)                                     
 800f7a4:	51 e2 00 02 	bgeu r15,r2,800f7ac <fat_file_extend+0x9c>     
        bytes2add -= bytes_remain;                                    
 800f7a8:	c8 4f 80 00 	sub r16,r2,r15                                 
    else                                                              
        bytes2add = 0;                                                
                                                                      
    if (zero_fill && bytes_remain > 0) {                              
 800f7ac:	46 60 00 13 	be r19,r0,800f7f8 <fat_file_extend+0xe8>       
 800f7b0:	45 e0 00 12 	be r15,r0,800f7f8 <fat_file_extend+0xe8>       
        uint32_t start = fat_fd->fat_file_size;                       
        uint32_t cl_start = start >> fs_info->vol.bpc_log2;           
 800f7b4:	41 62 00 08 	lbu r2,(r11+8)                                 
 800f7b8:	f8 00 72 96 	calli 802c210 <__lshrsi3>                      
 800f7bc:	b8 20 18 00 	mv r3,r1                                       
        uint32_t ofs = start & (fs_info->vol.bpc - 1);                
        uint32_t cur_cln;                                             
                                                                      
        rc = fat_file_lseek(fs_info, fat_fd, cl_start, &cur_cln);     
 800f7c0:	b9 80 10 00 	mv r2,r12                                      
 800f7c4:	b9 60 08 00 	mv r1,r11                                      
 800f7c8:	37 84 00 2c 	addi r4,sp,44                                  
 800f7cc:	fb ff fe 01 	calli 800efd0 <fat_file_lseek>                 
 800f7d0:	b8 20 68 00 	mv r13,r1                                      
        if (rc != RC_OK)                                              
 800f7d4:	5c 20 00 57 	bne r1,r0,800f930 <fat_file_extend+0x220>      <== NEVER TAKEN
            return rc;                                                
                                                                      
        bytes_written = fat_cluster_set (fs_info, cur_cln, ofs, bytes_remain, 0);
 800f7d8:	2b 82 00 2c 	lw r2,(sp+44)                                  
 800f7dc:	b9 60 08 00 	mv r1,r11                                      
 800f7e0:	ba 20 18 00 	mv r3,r17                                      
 800f7e4:	b9 e0 20 00 	mv r4,r15                                      
 800f7e8:	34 05 00 00 	mvi r5,0                                       
 800f7ec:	f8 00 02 9c 	calli 801025c <fat_cluster_set>                
        if (bytes_remain != bytes_written)                            
            return -1;                                                
 800f7f0:	34 0d ff ff 	mvi r13,-1                                     
        rc = fat_file_lseek(fs_info, fat_fd, cl_start, &cur_cln);     
        if (rc != RC_OK)                                              
            return rc;                                                
                                                                      
        bytes_written = fat_cluster_set (fs_info, cur_cln, ofs, bytes_remain, 0);
        if (bytes_remain != bytes_written)                            
 800f7f4:	5d e1 00 4f 	bne r15,r1,800f930 <fat_file_extend+0x220>     <== NEVER TAKEN
     * if in last cluster allocated for the file there is enough room to
     * handle extention (hence we don't need to add even one cluster to the
     * file ) - return                                                
     */                                                               
    if (bytes2add == 0)                                               
        return RC_OK;                                                 
 800f7f8:	34 0d 00 00 	mvi r13,0                                      
    /*                                                                
     * if in last cluster allocated for the file there is enough room to
     * handle extention (hence we don't need to add even one cluster to the
     * file ) - return                                                
     */                                                               
    if (bytes2add == 0)                                               
 800f7fc:	46 00 00 4d 	be r16,r0,800f930 <fat_file_extend+0x220>      
        return RC_OK;                                                 
                                                                      
    cls2add = ((bytes2add - 1) >> fs_info->vol.bpc_log2) + 1;         
 800f800:	41 62 00 08 	lbu r2,(r11+8)                                 
 800f804:	36 01 ff ff 	addi r1,r16,-1                                 
 800f808:	f8 00 72 82 	calli 802c210 <__lshrsi3>                      
 800f80c:	34 31 00 01 	addi r17,r1,1                                  
                                                                      
    rc = fat_scan_fat_for_free_clusters(fs_info, &chain, cls2add,     
 800f810:	37 82 00 3c 	addi r2,sp,60                                  
 800f814:	b9 60 08 00 	mv r1,r11                                      
 800f818:	ba 20 18 00 	mv r3,r17                                      
 800f81c:	37 84 00 30 	addi r4,sp,48                                  
 800f820:	37 85 00 34 	addi r5,sp,52                                  
 800f824:	ba 60 30 00 	mv r6,r19                                      
 800f828:	f8 00 21 eb 	calli 8017fd4 <fat_scan_fat_for_free_clusters> 
 800f82c:	b8 20 68 00 	mv r13,r1                                      
                                        &cls_added, &last_cl, zero_fill);
                                                                      
    /* this means that low level I/O error occured */                 
    if (rc != RC_OK)                                                  
 800f830:	5c 20 00 40 	bne r1,r0,800f930 <fat_file_extend+0x220>      <== NEVER TAKEN
        return rc;                                                    
                                                                      
    /* this means that no space left on device */                     
    if ((cls_added == 0) && (bytes_remain == 0))                      
 800f834:	2b 82 00 30 	lw r2,(sp+48)                                  
 800f838:	b9 e2 78 00 	or r15,r15,r2                                  
 800f83c:	5d e1 00 06 	bne r15,r1,800f854 <fat_file_extend+0x144>     <== ALWAYS TAKEN
        rtems_set_errno_and_return_minus_one(ENOSPC);                 
 800f840:	f8 00 28 73 	calli 8019a0c <__errno>                        
 800f844:	34 02 00 1c 	mvi r2,28                                      
 800f848:	58 22 00 00 	sw (r1+0),r2                                   
 800f84c:	34 0d ff ff 	mvi r13,-1                                     
 800f850:	e0 00 00 38 	bi 800f930 <fat_file_extend+0x220>             
                                                                      
    /*  check wether we satisfied request for 'cls2add' clusters */   
    if (cls2add != cls_added)                                         
 800f854:	46 22 00 09 	be r17,r2,800f878 <fat_file_extend+0x168>      <== ALWAYS TAKEN
    {                                                                 
        new_length -= bytes2add & (fs_info->vol.bpc - 1);             
 800f858:	2d 61 00 06 	lhu r1,(r11+6)                                 <== NOT EXECUTED
 800f85c:	34 21 ff ff 	addi r1,r1,-1                                  <== NOT EXECUTED
 800f860:	a2 01 80 00 	and r16,r16,r1                                 <== NOT EXECUTED
        new_length -= (cls2add - cls_added) << fs_info->vol.bpc_log2; 
 800f864:	ca 22 08 00 	sub r1,r17,r2                                  <== NOT EXECUTED
 800f868:	41 62 00 08 	lbu r2,(r11+8)                                 <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one(ENOSPC);                 
                                                                      
    /*  check wether we satisfied request for 'cls2add' clusters */   
    if (cls2add != cls_added)                                         
    {                                                                 
        new_length -= bytes2add & (fs_info->vol.bpc - 1);             
 800f86c:	c9 d0 70 00 	sub r14,r14,r16                                <== NOT EXECUTED
        new_length -= (cls2add - cls_added) << fs_info->vol.bpc_log2; 
 800f870:	fb ff c6 5e 	calli 80011e8 <__ashlsi3>                      <== NOT EXECUTED
 800f874:	c9 c1 70 00 	sub r14,r14,r1                                 <== NOT EXECUTED
    }                                                                 
                                                                      
    /* add new chain to the end of existed */                         
    if ( fat_fd->fat_file_size == 0 )                                 
 800f878:	29 84 00 18 	lw r4,(r12+24)                                 
 800f87c:	5c 80 00 06 	bne r4,r0,800f894 <fat_file_extend+0x184>      
    {                                                                 
        fat_fd->map.disk_cln = fat_fd->cln = chain;                   
 800f880:	2b 81 00 3c 	lw r1,(sp+60)                                  
        fat_fd->map.file_cln = 0;                                     
 800f884:	59 80 00 34 	sw (r12+52),r0                                 
    }                                                                 
                                                                      
    /* add new chain to the end of existed */                         
    if ( fat_fd->fat_file_size == 0 )                                 
    {                                                                 
        fat_fd->map.disk_cln = fat_fd->cln = chain;                   
 800f888:	59 81 00 1c 	sw (r12+28),r1                                 
 800f88c:	59 81 00 38 	sw (r12+56),r1                                 
 800f890:	e0 00 00 16 	bi 800f8e8 <fat_file_extend+0x1d8>             
        fat_fd->map.file_cln = 0;                                     
    }                                                                 
    else                                                              
    {                                                                 
        if (fat_fd->map.last_cln != FAT_UNDEFINED_VALUE)              
 800f894:	29 81 00 3c 	lw r1,(r12+60)                                 
 800f898:	34 02 ff ff 	mvi r2,-1                                      
 800f89c:	44 22 00 03 	be r1,r2,800f8a8 <fat_file_extend+0x198>       <== NEVER TAKEN
        {                                                             
            old_last_cl = fat_fd->map.last_cln;                       
 800f8a0:	5b 81 00 38 	sw (sp+56),r1                                  
 800f8a4:	e0 00 00 09 	bi 800f8c8 <fat_file_extend+0x1b8>             
        }                                                             
        else                                                          
        {                                                             
            rc = fat_file_ioctl(fs_info, fat_fd, F_CLU_NUM,           
 800f8a8:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800f8ac:	b9 80 10 00 	mv r2,r12                                      <== NOT EXECUTED
 800f8b0:	34 03 00 01 	mvi r3,1                                       <== NOT EXECUTED
 800f8b4:	34 84 ff ff 	addi r4,r4,-1                                  <== NOT EXECUTED
 800f8b8:	37 85 00 38 	addi r5,sp,56                                  <== NOT EXECUTED
 800f8bc:	fb ff ff 5f 	calli 800f638 <fat_file_ioctl>                 <== NOT EXECUTED
 800f8c0:	b8 20 78 00 	mv r15,r1                                      <== NOT EXECUTED
                                (fat_fd->fat_file_size - 1), &old_last_cl);
            if ( rc != RC_OK )                                        
 800f8c4:	5c 20 00 14 	bne r1,r0,800f914 <fat_file_extend+0x204>      <== NOT EXECUTED
                fat_free_fat_clusters_chain(fs_info, chain);          
                return rc;                                            
            }                                                         
        }                                                             
                                                                      
        rc = fat_set_fat_cluster(fs_info, old_last_cl, chain);        
 800f8c8:	2b 82 00 38 	lw r2,(sp+56)                                  
 800f8cc:	2b 83 00 3c 	lw r3,(sp+60)                                  
 800f8d0:	b9 60 08 00 	mv r1,r11                                      
 800f8d4:	f8 00 20 b2 	calli 8017b9c <fat_set_fat_cluster>            
 800f8d8:	b8 20 78 00 	mv r15,r1                                      
        if ( rc != RC_OK )                                            
 800f8dc:	5c 20 00 0e 	bne r1,r0,800f914 <fat_file_extend+0x204>      <== NEVER TAKEN
        {                                                             
            fat_free_fat_clusters_chain(fs_info, chain);              
            return rc;                                                
        }                                                             
        fat_buf_release(fs_info);                                     
 800f8e0:	b9 60 08 00 	mv r1,r11                                      
 800f8e4:	f8 00 01 32 	calli 800fdac <fat_buf_release>                
    }                                                                 
                                                                      
    /* update number of the last cluster of the file if it changed */ 
    if (cls_added != 0)                                               
 800f8e8:	2b 81 00 30 	lw r1,(sp+48)                                  
 800f8ec:	44 20 00 0f 	be r1,r0,800f928 <fat_file_extend+0x218>       <== NEVER TAKEN
    {                                                                 
        fat_fd->map.last_cln = last_cl;                               
 800f8f0:	2b 81 00 34 	lw r1,(sp+52)                                  
        if (fat_fd->fat_file_type == FAT_DIRECTORY)                   
 800f8f4:	29 90 00 10 	lw r16,(r12+16)                                
    }                                                                 
                                                                      
    /* update number of the last cluster of the file if it changed */ 
    if (cls_added != 0)                                               
    {                                                                 
        fat_fd->map.last_cln = last_cl;                               
 800f8f8:	59 81 00 3c 	sw (r12+60),r1                                 
        if (fat_fd->fat_file_type == FAT_DIRECTORY)                   
 800f8fc:	5e 00 00 0b 	bne r16,r0,800f928 <fat_file_extend+0x218>     
        {                                                             
            rc = fat_init_clusters_chain(fs_info, chain);             
 800f900:	2b 82 00 3c 	lw r2,(sp+60)                                  
 800f904:	b9 60 08 00 	mv r1,r11                                      
 800f908:	f8 00 05 d6 	calli 8011060 <fat_init_clusters_chain>        
 800f90c:	b8 20 78 00 	mv r15,r1                                      
            if ( rc != RC_OK )                                        
 800f910:	44 30 00 06 	be r1,r16,800f928 <fat_file_extend+0x218>      <== ALWAYS TAKEN
            {                                                         
                fat_free_fat_clusters_chain(fs_info, chain);          
 800f914:	2b 82 00 3c 	lw r2,(sp+60)                                  <== NOT EXECUTED
 800f918:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
                return rc;                                            
 800f91c:	b9 e0 68 00 	mv r13,r15                                     <== NOT EXECUTED
        if (fat_fd->fat_file_type == FAT_DIRECTORY)                   
        {                                                             
            rc = fat_init_clusters_chain(fs_info, chain);             
            if ( rc != RC_OK )                                        
            {                                                         
                fat_free_fat_clusters_chain(fs_info, chain);          
 800f920:	f8 00 21 71 	calli 8017ee4 <fat_free_fat_clusters_chain>    <== NOT EXECUTED
                return rc;                                            
 800f924:	e0 00 00 03 	bi 800f930 <fat_file_extend+0x220>             <== NOT EXECUTED
            }                                                         
        }                                                             
    }                                                                 
                                                                      
    *a_length = new_length;                                           
 800f928:	5a 4e 00 00 	sw (r18+0),r14                                 
    fat_fd->fat_file_size = new_length;                               
 800f92c:	59 8e 00 18 	sw (r12+24),r14                                
                                                                      
    return RC_OK;                                                     
}                                                                     
 800f930:	b9 a0 08 00 	mv r1,r13                                      
 800f934:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800f938:	2b 8b 00 28 	lw r11,(sp+40)                                 
 800f93c:	2b 8c 00 24 	lw r12,(sp+36)                                 
 800f940:	2b 8d 00 20 	lw r13,(sp+32)                                 
 800f944:	2b 8e 00 1c 	lw r14,(sp+28)                                 
 800f948:	2b 8f 00 18 	lw r15,(sp+24)                                 
 800f94c:	2b 90 00 14 	lw r16,(sp+20)                                 
 800f950:	2b 91 00 10 	lw r17,(sp+16)                                 
 800f954:	2b 92 00 0c 	lw r18,(sp+12)                                 
 800f958:	2b 93 00 08 	lw r19,(sp+8)                                  
 800f95c:	37 9c 00 3c 	addi sp,sp,60                                  
 800f960:	c3 a0 00 00 	ret                                            
                                                                      

0800f638 <fat_file_ioctl>: fat_file_ioctl( fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd, int cmd, ...) {
 800f638:	37 9c ff d4 	addi sp,sp,-44                                 
 800f63c:	5b 8b 00 10 	sw (sp+16),r11                                 
 800f640:	5b 8c 00 0c 	sw (sp+12),r12                                 
 800f644:	5b 8d 00 08 	sw (sp+8),r13                                  
 800f648:	5b 9d 00 04 	sw (sp+4),ra                                   
 800f64c:	b8 20 60 00 	mv r12,r1                                      
 800f650:	5b 83 00 18 	sw (sp+24),r3                                  
 800f654:	5b 84 00 1c 	sw (sp+28),r4                                  
 800f658:	5b 85 00 20 	sw (sp+32),r5                                  
 800f65c:	5b 86 00 24 	sw (sp+36),r6                                  
 800f660:	5b 87 00 28 	sw (sp+40),r7                                  
 800f664:	5b 88 00 2c 	sw (sp+44),r8                                  
    int            rc = RC_OK;                                        
    uint32_t       cur_cln = 0;                                       
 800f668:	5b 80 00 14 	sw (sp+20),r0                                  
    uint32_t      *ret;                                               
    va_list        ap;                                                
                                                                      
    va_start(ap, cmd);                                                
                                                                      
    switch (cmd)                                                      
 800f66c:	34 01 00 01 	mvi r1,1                                       
fat_file_ioctl(                                                       
    fat_fs_info_t                        *fs_info,                    
    fat_file_fd_t                        *fat_fd,                     
    int                                   cmd,                        
    ...)                                                              
{                                                                     
 800f670:	b8 40 58 00 	mv r11,r2                                      
    uint32_t      *ret;                                               
    va_list        ap;                                                
                                                                      
    va_start(ap, cmd);                                                
                                                                      
    switch (cmd)                                                      
 800f674:	5c 61 00 1d 	bne r3,r1,800f6e8 <fat_file_ioctl+0xb0>        <== NEVER TAKEN
        case F_CLU_NUM:                                               
            pos = va_arg(ap, uint32_t);                               
            ret = va_arg(ap, uint32_t *);                             
                                                                      
            /* sanity check */                                        
            if ( pos >= fat_fd->fat_file_size ) {                     
 800f678:	28 42 00 18 	lw r2,(r2+24)                                  
    va_start(ap, cmd);                                                
                                                                      
    switch (cmd)                                                      
    {                                                                 
        case F_CLU_NUM:                                               
            pos = va_arg(ap, uint32_t);                               
 800f67c:	b8 80 08 00 	mv r1,r4                                       
            ret = va_arg(ap, uint32_t *);                             
 800f680:	b8 a0 68 00 	mv r13,r5                                      
                                                                      
            /* sanity check */                                        
            if ( pos >= fat_fd->fat_file_size ) {                     
 800f684:	54 44 00 04 	bgu r2,r4,800f694 <fat_file_ioctl+0x5c>        <== ALWAYS TAKEN
                va_end(ap);                                           
                rtems_set_errno_and_return_minus_one( EIO );          
 800f688:	f8 00 28 e1 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 800f68c:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 800f690:	e0 00 00 18 	bi 800f6f0 <fat_file_ioctl+0xb8>               <== NOT EXECUTED
            }                                                         
                                                                      
            if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                       
 800f694:	29 62 00 20 	lw r2,(r11+32)                                 
 800f698:	5c 43 00 09 	bne r2,r3,800f6bc <fat_file_ioctl+0x84>        
 800f69c:	29 62 00 24 	lw r2,(r11+36)                                 
 800f6a0:	5c 40 00 07 	bne r2,r0,800f6bc <fat_file_ioctl+0x84>        <== NEVER TAKEN
                (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))        
 800f6a4:	41 83 00 0e 	lbu r3,(r12+14)                                
 800f6a8:	20 63 00 03 	andi r3,r3,0x3                                 
            if ( pos >= fat_fd->fat_file_size ) {                     
                va_end(ap);                                           
                rtems_set_errno_and_return_minus_one( EIO );          
            }                                                         
                                                                      
            if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                       
 800f6ac:	44 62 00 04 	be r3,r2,800f6bc <fat_file_ioctl+0x84>         
                (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))        
            {                                                         
                /* cluster 0 (zero) reserved for root dir */          
                *ret  = 0;                                            
 800f6b0:	58 a0 00 00 	sw (r5+0),r0                                   
                rc = RC_OK;                                           
 800f6b4:	34 01 00 00 	mvi r1,0                                       
                break;                                                
 800f6b8:	e0 00 00 10 	bi 800f6f8 <fat_file_ioctl+0xc0>               
            }                                                         
                                                                      
            cl_start = pos >> fs_info->vol.bpc_log2;                  
 800f6bc:	41 82 00 08 	lbu r2,(r12+8)                                 
 800f6c0:	f8 00 72 d4 	calli 802c210 <__lshrsi3>                      
 800f6c4:	b8 20 18 00 	mv r3,r1                                       
                                                                      
            rc = fat_file_lseek(fs_info, fat_fd, cl_start, &cur_cln); 
 800f6c8:	b9 60 10 00 	mv r2,r11                                      
 800f6cc:	b9 80 08 00 	mv r1,r12                                      
 800f6d0:	37 84 00 14 	addi r4,sp,20                                  
 800f6d4:	fb ff fe 3f 	calli 800efd0 <fat_file_lseek>                 
            if ( rc != RC_OK )                                        
 800f6d8:	5c 20 00 08 	bne r1,r0,800f6f8 <fat_file_ioctl+0xc0>        <== NEVER TAKEN
                break;                                                
                                                                      
            *ret = cur_cln;                                           
 800f6dc:	2b 82 00 14 	lw r2,(sp+20)                                  
 800f6e0:	59 a2 00 00 	sw (r13+0),r2                                  
            break;                                                    
 800f6e4:	e0 00 00 05 	bi 800f6f8 <fat_file_ioctl+0xc0>               
                                                                      
        default:                                                      
            errno = EINVAL;                                           
 800f6e8:	f8 00 28 c9 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 800f6ec:	34 02 00 16 	mvi r2,22                                      <== NOT EXECUTED
 800f6f0:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
            rc = -1;                                                  
 800f6f4:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
            break;                                                    
    }                                                                 
    va_end(ap);                                                       
    return rc;                                                        
}                                                                     
 800f6f8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800f6fc:	2b 8b 00 10 	lw r11,(sp+16)                                 
 800f700:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 800f704:	2b 8d 00 08 	lw r13,(sp+8)                                  
 800f708:	37 9c 00 2c 	addi sp,sp,44                                  
 800f70c:	c3 a0 00 00 	ret                                            
                                                                      

0800efd0 <fat_file_lseek>: fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd, uint32_t file_cln, uint32_t *disk_cln ) {
 800efd0:	37 9c ff e0 	addi sp,sp,-32                                 
 800efd4:	5b 8b 00 1c 	sw (sp+28),r11                                 
 800efd8:	5b 8c 00 18 	sw (sp+24),r12                                 
 800efdc:	5b 8d 00 14 	sw (sp+20),r13                                 
 800efe0:	5b 8e 00 10 	sw (sp+16),r14                                 
 800efe4:	5b 8f 00 0c 	sw (sp+12),r15                                 
 800efe8:	5b 90 00 08 	sw (sp+8),r16                                  
 800efec:	5b 9d 00 04 	sw (sp+4),ra                                   
 800eff0:	b8 40 58 00 	mv r11,r2                                      
    int rc = RC_OK;                                                   
                                                                      
    if (file_cln == fat_fd->map.file_cln)                             
 800eff4:	28 42 00 34 	lw r2,(r2+52)                                  
    fat_fs_info_t                         *fs_info,                   
    fat_file_fd_t                         *fat_fd,                    
    uint32_t                               file_cln,                  
    uint32_t                              *disk_cln                   
    )                                                                 
{                                                                     
 800eff8:	b8 20 80 00 	mv r16,r1                                      
 800effc:	b8 60 60 00 	mv r12,r3                                      
 800f000:	b8 80 70 00 	mv r14,r4                                      
    int rc = RC_OK;                                                   
                                                                      
    if (file_cln == fat_fd->map.file_cln)                             
 800f004:	5c 62 00 04 	bne r3,r2,800f014 <fat_file_lseek+0x44>        
        *disk_cln = fat_fd->map.disk_cln;                             
 800f008:	29 61 00 38 	lw r1,(r11+56)                                 
 800f00c:	58 81 00 00 	sw (r4+0),r1                                   
 800f010:	e0 00 00 15 	bi 800f064 <fat_file_lseek+0x94>               
    {                                                                 
        uint32_t   cur_cln;                                           
        uint32_t   count;                                             
        uint32_t   i;                                                 
                                                                      
        if (file_cln > fat_fd->map.file_cln)                          
 800f014:	50 43 00 05 	bgeu r2,r3,800f028 <fat_file_lseek+0x58>       
        {                                                             
            cur_cln = fat_fd->map.disk_cln;                           
 800f018:	29 61 00 38 	lw r1,(r11+56)                                 
            count = file_cln - fat_fd->map.file_cln;                  
 800f01c:	c8 62 78 00 	sub r15,r3,r2                                  
        uint32_t   count;                                             
        uint32_t   i;                                                 
                                                                      
        if (file_cln > fat_fd->map.file_cln)                          
        {                                                             
            cur_cln = fat_fd->map.disk_cln;                           
 800f020:	5b 81 00 20 	sw (sp+32),r1                                  
 800f024:	e0 00 00 04 	bi 800f034 <fat_file_lseek+0x64>               
            count = file_cln - fat_fd->map.file_cln;                  
        }                                                             
        else                                                          
        {                                                             
            cur_cln = fat_fd->cln;                                    
 800f028:	29 61 00 1c 	lw r1,(r11+28)                                 
 800f02c:	b8 60 78 00 	mv r15,r3                                      
 800f030:	5b 81 00 20 	sw (sp+32),r1                                  
            count = file_cln;                                         
        }                                                             
                                                                      
        /* skip over the clusters */                                  
        for (i = 0; i < count; i++)                                   
 800f034:	34 0d 00 00 	mvi r13,0                                      
 800f038:	e0 00 00 06 	bi 800f050 <fat_file_lseek+0x80>               
        {                                                             
            rc = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);     
 800f03c:	ba 00 08 00 	mv r1,r16                                      
 800f040:	37 83 00 20 	addi r3,sp,32                                  
 800f044:	f8 00 22 4b 	calli 8017970 <fat_get_fat_cluster>            
            if ( rc != RC_OK )                                        
 800f048:	5c 20 00 08 	bne r1,r0,800f068 <fat_file_lseek+0x98>        <== NEVER TAKEN
            cur_cln = fat_fd->cln;                                    
            count = file_cln;                                         
        }                                                             
                                                                      
        /* skip over the clusters */                                  
        for (i = 0; i < count; i++)                                   
 800f04c:	35 ad 00 01 	addi r13,r13,1                                 
 800f050:	2b 82 00 20 	lw r2,(sp+32)                                  
 800f054:	55 ed ff fa 	bgu r15,r13,800f03c <fat_file_lseek+0x6c>      
            if ( rc != RC_OK )                                        
                return rc;                                            
        }                                                             
                                                                      
        /* update cache */                                            
        fat_fd->map.file_cln = file_cln;                              
 800f058:	59 6c 00 34 	sw (r11+52),r12                                
        fat_fd->map.disk_cln = cur_cln;                               
 800f05c:	59 62 00 38 	sw (r11+56),r2                                 
                                                                      
        *disk_cln = cur_cln;                                          
 800f060:	59 c2 00 00 	sw (r14+0),r2                                  
    }                                                                 
    return RC_OK;                                                     
 800f064:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 800f068:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800f06c:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 800f070:	2b 8c 00 18 	lw r12,(sp+24)                                 
 800f074:	2b 8d 00 14 	lw r13,(sp+20)                                 
 800f078:	2b 8e 00 10 	lw r14,(sp+16)                                 
 800f07c:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 800f080:	2b 90 00 08 	lw r16,(sp+8)                                  
 800f084:	37 9c 00 20 	addi sp,sp,32                                  
 800f088:	c3 a0 00 00 	ret                                            
                                                                      

0800f08c <fat_file_open>: fat_file_open( fat_fs_info_t *fs_info, fat_dir_pos_t *dir_pos, fat_file_fd_t **fat_fd ) {
 800f08c:	37 9c ff e0 	addi sp,sp,-32                                 
 800f090:	5b 8b 00 1c 	sw (sp+28),r11                                 
 800f094:	5b 8c 00 18 	sw (sp+24),r12                                 
 800f098:	5b 8d 00 14 	sw (sp+20),r13                                 
 800f09c:	5b 8e 00 10 	sw (sp+16),r14                                 
 800f0a0:	5b 8f 00 0c 	sw (sp+12),r15                                 
 800f0a4:	5b 90 00 08 	sw (sp+8),r16                                  
 800f0a8:	5b 9d 00 04 	sw (sp+4),ra                                   
 800f0ac:	b8 20 68 00 	mv r13,r1                                      
 800f0b0:	b8 40 60 00 	mv r12,r2                                      
 800f0b4:	b8 60 78 00 	mv r15,r3                                      
    int            rc = RC_OK;                                        
    fat_file_fd_t *lfat_fd = NULL;                                    
 800f0b8:	5b 80 00 20 	sw (sp+32),r0                                  
    uint32_t       key = 0;                                           
                                                                      
    /* construct key */                                               
    key = fat_construct_key(fs_info, &dir_pos->sname);                
 800f0bc:	fb ff ff 6b 	calli 800ee68 <fat_construct_key>              
                                                                      
    /* access "valid" hash table */                                   
    rc = _hash_search(fs_info, fs_info->vhash, key, 0, &lfat_fd);     
 800f0c0:	29 a2 00 6c 	lw r2,(r13+108)                                
    int            rc = RC_OK;                                        
    fat_file_fd_t *lfat_fd = NULL;                                    
    uint32_t       key = 0;                                           
                                                                      
    /* construct key */                                               
    key = fat_construct_key(fs_info, &dir_pos->sname);                
 800f0c4:	b8 20 70 00 	mv r14,r1                                      
                                                                      
    /* access "valid" hash table */                                   
    rc = _hash_search(fs_info, fs_info->vhash, key, 0, &lfat_fd);     
 800f0c8:	b9 c0 18 00 	mv r3,r14                                      
 800f0cc:	b9 a0 08 00 	mv r1,r13                                      
 800f0d0:	34 04 00 00 	mvi r4,0                                       
 800f0d4:	37 85 00 20 	addi r5,sp,32                                  
 800f0d8:	fb ff ff 90 	calli 800ef18 <_hash_search>                   
 800f0dc:	b8 20 10 00 	mv r2,r1                                       
    if ( rc == RC_OK )                                                
 800f0e0:	5c 20 00 07 	bne r1,r0,800f0fc <fat_file_open+0x70>         
    {                                                                 
        /* return pointer to fat_file_descriptor allocated before */  
        (*fat_fd) = lfat_fd;                                          
 800f0e4:	2b 81 00 20 	lw r1,(sp+32)                                  
        lfat_fd->links_num++;                                         
 800f0e8:	28 23 00 08 	lw r3,(r1+8)                                   
    /* access "valid" hash table */                                   
    rc = _hash_search(fs_info, fs_info->vhash, key, 0, &lfat_fd);     
    if ( rc == RC_OK )                                                
    {                                                                 
        /* return pointer to fat_file_descriptor allocated before */  
        (*fat_fd) = lfat_fd;                                          
 800f0ec:	59 e1 00 00 	sw (r15+0),r1                                  
        lfat_fd->links_num++;                                         
 800f0f0:	34 63 00 01 	addi r3,r3,1                                   
 800f0f4:	58 23 00 08 	sw (r1+8),r3                                   
        return rc;                                                    
 800f0f8:	e0 00 00 3c 	bi 800f1e8 <fat_file_open+0x15c>               
    }                                                                 
                                                                      
    /* access "removed-but-still-open" hash table */                  
    rc = _hash_search(fs_info, fs_info->rhash, key, key, &lfat_fd);   
 800f0fc:	29 a2 00 70 	lw r2,(r13+112)                                
 800f100:	b9 c0 18 00 	mv r3,r14                                      
 800f104:	b9 c0 20 00 	mv r4,r14                                      
 800f108:	37 85 00 20 	addi r5,sp,32                                  
 800f10c:	b9 a0 08 00 	mv r1,r13                                      
 800f110:	fb ff ff 82 	calli 800ef18 <_hash_search>                   
 800f114:	b8 20 80 00 	mv r16,r1                                      
                                                                      
    lfat_fd = (*fat_fd) = (fat_file_fd_t*)malloc(sizeof(fat_file_fd_t));
 800f118:	34 01 00 44 	mvi r1,68                                      
 800f11c:	fb ff d1 42 	calli 8003624 <malloc>                         
 800f120:	59 e1 00 00 	sw (r15+0),r1                                  
 800f124:	5b 81 00 20 	sw (sp+32),r1                                  
 800f128:	b8 20 58 00 	mv r11,r1                                      
    if ( lfat_fd == NULL )                                            
 800f12c:	44 20 00 1e 	be r1,r0,800f1a4 <fat_file_open+0x118>         <== NEVER TAKEN
        rtems_set_errno_and_return_minus_one( ENOMEM );               
                                                                      
    memset(lfat_fd, 0, sizeof(fat_file_fd_t));                        
 800f130:	34 02 00 00 	mvi r2,0                                       
 800f134:	34 03 00 44 	mvi r3,68                                      
 800f138:	f8 00 2d c4 	calli 801a848 <memset>                         
                                                                      
    lfat_fd->links_num = 1;                                           
 800f13c:	34 01 00 01 	mvi r1,1                                       
 800f140:	59 61 00 08 	sw (r11+8),r1                                  
    lfat_fd->flags &= ~FAT_FILE_REMOVED;                              
 800f144:	41 61 00 30 	lbu r1,(r11+48)                                
    lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE;                      
                                                                      
    lfat_fd->dir_pos = *dir_pos;                                      
 800f148:	29 84 00 00 	lw r4,(r12+0)                                  
 800f14c:	29 83 00 04 	lw r3,(r12+4)                                  
        rtems_set_errno_and_return_minus_one( ENOMEM );               
                                                                      
    memset(lfat_fd, 0, sizeof(fat_file_fd_t));                        
                                                                      
    lfat_fd->links_num = 1;                                           
    lfat_fd->flags &= ~FAT_FILE_REMOVED;                              
 800f150:	20 21 00 fe 	andi r1,r1,0xfe                                
 800f154:	31 61 00 30 	sb (r11+48),r1                                 
    lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE;                      
 800f158:	34 01 ff ff 	mvi r1,-1                                      
 800f15c:	59 61 00 3c 	sw (r11+60),r1                                 
                                                                      
    lfat_fd->dir_pos = *dir_pos;                                      
 800f160:	29 82 00 08 	lw r2,(r12+8)                                  
 800f164:	29 81 00 0c 	lw r1,(r12+12)                                 
 800f168:	59 64 00 20 	sw (r11+32),r4                                 
 800f16c:	59 63 00 24 	sw (r11+36),r3                                 
 800f170:	59 62 00 28 	sw (r11+40),r2                                 
 800f174:	59 61 00 2c 	sw (r11+44),r1                                 
                                                                      
    if ( rc != RC_OK )                                                
 800f178:	46 00 00 03 	be r16,r0,800f184 <fat_file_open+0xf8>         <== NEVER TAKEN
        lfat_fd->ino = key;                                           
 800f17c:	59 6e 00 0c 	sw (r11+12),r14                                
 800f180:	e0 00 00 0e 	bi 800f1b8 <fat_file_open+0x12c>               
    else                                                              
    {                                                                 
        lfat_fd->ino = fat_get_unique_ino(fs_info);                   
 800f184:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 800f188:	f8 00 07 d4 	calli 80110d8 <fat_get_unique_ino>             <== NOT EXECUTED
 800f18c:	59 61 00 0c 	sw (r11+12),r1                                 <== NOT EXECUTED
                                                                      
        if ( lfat_fd->ino == 0 )                                      
 800f190:	2b 81 00 20 	lw r1,(sp+32)                                  <== NOT EXECUTED
 800f194:	28 21 00 0c 	lw r1,(r1+12)                                  <== NOT EXECUTED
 800f198:	5c 30 00 08 	bne r1,r16,800f1b8 <fat_file_open+0x12c>       <== NOT EXECUTED
        {                                                             
            free((*fat_fd));                                          
 800f19c:	29 e1 00 00 	lw r1,(r15+0)                                  <== NOT EXECUTED
 800f1a0:	fb ff cf 8b 	calli 8002fcc <free>                           <== NOT EXECUTED
            /*                                                        
             * XXX: kernel resource is unsufficient, but not the memory,
             * but there is no suitable errno :(                      
             */                                                       
            rtems_set_errno_and_return_minus_one( ENOMEM );           
 800f1a4:	f8 00 2a 1a 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 800f1a8:	34 02 00 0c 	mvi r2,12                                      <== NOT EXECUTED
 800f1ac:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 800f1b0:	34 02 ff ff 	mvi r2,-1                                      <== NOT EXECUTED
 800f1b4:	e0 00 00 0d 	bi 800f1e8 <fat_file_open+0x15c>               <== NOT EXECUTED
 */                                                                   
static inline void                                                    
_hash_insert(rtems_chain_control *hash, uint32_t   key1, uint32_t   key2,
             fat_file_fd_t *el)                                       
{                                                                     
    rtems_chain_append((hash) + ((key1) % FAT_HASH_MODULE), &(el)->link);
 800f1b8:	21 ce 00 01 	andi r14,r14,0x1                               
 800f1bc:	34 02 00 01 	mvi r2,1                                       
 800f1c0:	b9 c0 08 00 	mv r1,r14                                      
 800f1c4:	fb ff c8 09 	calli 80011e8 <__ashlsi3>                      
 800f1c8:	34 02 00 02 	mvi r2,2                                       
 800f1cc:	b4 2e 08 00 	add r1,r1,r14                                  
 800f1d0:	fb ff c8 06 	calli 80011e8 <__ashlsi3>                      
 800f1d4:	29 a2 00 6c 	lw r2,(r13+108)                                
RTEMS_INLINE_ROUTINE void rtems_chain_append(                         
  rtems_chain_control *the_chain,                                     
  rtems_chain_node    *the_node                                       
)                                                                     
{                                                                     
  _Chain_Append( the_chain, the_node );                               
 800f1d8:	b4 41 08 00 	add r1,r2,r1                                   
 800f1dc:	2b 82 00 20 	lw r2,(sp+32)                                  
 800f1e0:	fb ff db f4 	calli 80061b0 <_Chain_Append>                  
    /*                                                                
     * other fields of fat-file descriptor will be initialized on upper
     * level                                                          
     */                                                               
                                                                      
    return RC_OK;                                                     
 800f1e4:	34 02 00 00 	mvi r2,0                                       
}                                                                     
 800f1e8:	b8 40 08 00 	mv r1,r2                                       
 800f1ec:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800f1f0:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 800f1f4:	2b 8c 00 18 	lw r12,(sp+24)                                 
 800f1f8:	2b 8d 00 14 	lw r13,(sp+20)                                 
 800f1fc:	2b 8e 00 10 	lw r14,(sp+16)                                 
 800f200:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 800f204:	2b 90 00 08 	lw r16,(sp+8)                                  
 800f208:	37 9c 00 20 	addi sp,sp,32                                  
 800f20c:	c3 a0 00 00 	ret                                            
                                                                      

0800f224 <fat_file_read>: fat_file_fd_t *fat_fd, uint32_t start, uint32_t count, uint8_t *buf ) {
 800f224:	37 9c ff d0 	addi sp,sp,-48                                 
 800f228:	5b 8b 00 2c 	sw (sp+44),r11                                 
 800f22c:	5b 8c 00 28 	sw (sp+40),r12                                 
 800f230:	5b 8d 00 24 	sw (sp+36),r13                                 
 800f234:	5b 8e 00 20 	sw (sp+32),r14                                 
 800f238:	5b 8f 00 1c 	sw (sp+28),r15                                 
 800f23c:	5b 90 00 18 	sw (sp+24),r16                                 
 800f240:	5b 91 00 14 	sw (sp+20),r17                                 
 800f244:	5b 92 00 10 	sw (sp+16),r18                                 
 800f248:	5b 93 00 0c 	sw (sp+12),r19                                 
 800f24c:	5b 94 00 08 	sw (sp+8),r20                                  
 800f250:	5b 9d 00 04 	sw (sp+4),ra                                   
    int            rc = RC_OK;                                        
    ssize_t        ret = 0;                                           
    uint32_t       cmpltd = 0;                                        
    uint32_t       cur_cln = 0;                                       
 800f254:	5b 80 00 30 	sw (sp+48),r0                                  
    fat_file_fd_t                        *fat_fd,                     
    uint32_t                              start,                      
    uint32_t                              count,                      
    uint8_t                              *buf                         
)                                                                     
{                                                                     
 800f258:	b8 20 58 00 	mv r11,r1                                      
 800f25c:	b8 40 68 00 	mv r13,r2                                      
 800f260:	b8 60 70 00 	mv r14,r3                                      
 800f264:	b8 80 60 00 	mv r12,r4                                      
 800f268:	b8 a0 a0 00 	mv r20,r5                                      
    uint32_t       byte = 0;                                          
    uint32_t       c = 0;                                             
                                                                      
    /* it couldn't be removed - otherwise cache update will be broken */
    if (count == 0)                                                   
        return cmpltd;                                                
 800f26c:	34 01 00 00 	mvi r1,0                                       
    uint32_t       sec = 0;                                           
    uint32_t       byte = 0;                                          
    uint32_t       c = 0;                                             
                                                                      
    /* it couldn't be removed - otherwise cache update will be broken */
    if (count == 0)                                                   
 800f270:	44 80 00 66 	be r4,r0,800f408 <fat_file_read+0x1e4>         <== NEVER TAKEN
                                                                      
    /*                                                                
     * >= because start is offset and computed from 0 and file_size   
     * computed from 1                                                
     */                                                               
    if ( start >= fat_fd->fat_file_size )                             
 800f274:	28 42 00 18 	lw r2,(r2+24)                                  
 800f278:	50 62 00 64 	bgeu r3,r2,800f408 <fat_file_read+0x1e4>       
        return FAT_EOF;                                               
                                                                      
    if ((count > fat_fd->fat_file_size) ||                            
 800f27c:	54 82 00 03 	bgu r4,r2,800f288 <fat_file_read+0x64>         <== NEVER TAKEN
        (start > fat_fd->fat_file_size - count))                      
 800f280:	c8 44 08 00 	sub r1,r2,r4                                   
     * computed from 1                                                
     */                                                               
    if ( start >= fat_fd->fat_file_size )                             
        return FAT_EOF;                                               
                                                                      
    if ((count > fat_fd->fat_file_size) ||                            
 800f284:	50 23 00 02 	bgeu r1,r3,800f28c <fat_file_read+0x68>        
        (start > fat_fd->fat_file_size - count))                      
        count = fat_fd->fat_file_size - start;                        
 800f288:	c8 4e 60 00 	sub r12,r2,r14                                 
                                                                      
    if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                               
 800f28c:	29 a2 00 20 	lw r2,(r13+32)                                 
 800f290:	34 01 00 01 	mvi r1,1                                       
 800f294:	5c 41 00 1c 	bne r2,r1,800f304 <fat_file_read+0xe0>         
 800f298:	29 a1 00 24 	lw r1,(r13+36)                                 
 800f29c:	5c 20 00 1a 	bne r1,r0,800f304 <fat_file_read+0xe0>         <== NEVER TAKEN
        (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))                
 800f2a0:	41 62 00 0e 	lbu r2,(r11+14)                                
 800f2a4:	20 42 00 03 	andi r2,r2,0x3                                 
                                                                      
    if ((count > fat_fd->fat_file_size) ||                            
        (start > fat_fd->fat_file_size - count))                      
        count = fat_fd->fat_file_size - start;                        
                                                                      
    if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                               
 800f2a8:	44 41 00 17 	be r2,r1,800f304 <fat_file_read+0xe0>          
        (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))                
    {                                                                 
        sec = fat_cluster_num_to_sector_num(fs_info, fat_fd->cln);    
 800f2ac:	29 a1 00 1c 	lw r1,(r13+28)                                 
fat_cluster_num_to_sector_num(                                        
    const fat_fs_info_t *fs_info,                                     
    uint32_t             cln                                          
    )                                                                 
{                                                                     
    if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
 800f2b0:	5c 20 00 03 	bne r1,r0,800f2bc <fat_file_read+0x98>         <== NEVER TAKEN
        return fs_info->vol.rdir_loc;                                 
 800f2b4:	29 6d 00 20 	lw r13,(r11+32)                                
 800f2b8:	e0 00 00 06 	bi 800f2d0 <fat_file_read+0xac>                
                                                                      
    return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +        
 800f2bc:	41 62 00 05 	lbu r2,(r11+5)                                 <== NOT EXECUTED
 800f2c0:	34 21 ff fe 	addi r1,r1,-2                                  <== NOT EXECUTED
 800f2c4:	fb ff c7 c9 	calli 80011e8 <__ashlsi3>                      <== NOT EXECUTED
 800f2c8:	29 6d 00 34 	lw r13,(r11+52)                                <== NOT EXECUTED
 800f2cc:	b4 2d 68 00 	add r13,r1,r13                                 <== NOT EXECUTED
        sec += (start >> fs_info->vol.sec_log2);                      
 800f2d0:	41 62 00 02 	lbu r2,(r11+2)                                 
 800f2d4:	b9 c0 08 00 	mv r1,r14                                      
 800f2d8:	f8 00 73 ce 	calli 802c210 <__lshrsi3>                      
        byte = start & (fs_info->vol.bps - 1);                        
 800f2dc:	2d 63 00 00 	lhu r3,(r11+0)                                 
                                                                      
    if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                               
        (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))                
    {                                                                 
        sec = fat_cluster_num_to_sector_num(fs_info, fat_fd->cln);    
        sec += (start >> fs_info->vol.sec_log2);                      
 800f2e0:	b5 a1 10 00 	add r2,r13,r1                                  
        byte = start & (fs_info->vol.bps - 1);                        
                                                                      
        ret = _fat_block_read(fs_info, sec, byte, count, buf);        
 800f2e4:	b9 80 20 00 	mv r4,r12                                      
    if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                               
        (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))                
    {                                                                 
        sec = fat_cluster_num_to_sector_num(fs_info, fat_fd->cln);    
        sec += (start >> fs_info->vol.sec_log2);                      
        byte = start & (fs_info->vol.bps - 1);                        
 800f2e8:	34 63 ff ff 	addi r3,r3,-1                                  
                                                                      
        ret = _fat_block_read(fs_info, sec, byte, count, buf);        
 800f2ec:	b9 60 08 00 	mv r1,r11                                      
 800f2f0:	a1 c3 18 00 	and r3,r14,r3                                  
 800f2f4:	ba 80 28 00 	mv r5,r20                                      
 800f2f8:	f8 00 03 6d 	calli 80100ac <_fat_block_read>                
        if ( ret < 0 )                                                
 800f2fc:	4c 20 00 43 	bge r1,r0,800f408 <fat_file_read+0x1e4>        <== ALWAYS TAKEN
 800f300:	e0 00 00 41 	bi 800f404 <fat_file_read+0x1e0>               <== NOT EXECUTED
            return -1;                                                
                                                                      
        return ret;                                                   
    }                                                                 
                                                                      
    cl_start = start >> fs_info->vol.bpc_log2;                        
 800f304:	41 62 00 08 	lbu r2,(r11+8)                                 
 800f308:	b9 c0 08 00 	mv r1,r14                                      
 800f30c:	f8 00 73 c1 	calli 802c210 <__lshrsi3>                      
 800f310:	b8 20 98 00 	mv r19,r1                                      
    save_ofs = ofs = start & (fs_info->vol.bpc - 1);                  
                                                                      
    rc = fat_file_lseek(fs_info, fat_fd, cl_start, &cur_cln);         
 800f314:	b9 a0 10 00 	mv r2,r13                                      
 800f318:	b9 60 08 00 	mv r1,r11                                      
 800f31c:	ba 60 18 00 	mv r3,r19                                      
 800f320:	37 84 00 30 	addi r4,sp,48                                  
                                                                      
        return ret;                                                   
    }                                                                 
                                                                      
    cl_start = start >> fs_info->vol.bpc_log2;                        
    save_ofs = ofs = start & (fs_info->vol.bpc - 1);                  
 800f324:	2d 6f 00 06 	lhu r15,(r11+6)                                
                                                                      
    rc = fat_file_lseek(fs_info, fat_fd, cl_start, &cur_cln);         
 800f328:	fb ff ff 2a 	calli 800efd0 <fat_file_lseek>                 
    if (rc != RC_OK)                                                  
 800f32c:	5c 20 00 37 	bne r1,r0,800f408 <fat_file_read+0x1e4>        <== NEVER TAKEN
                                                                      
        return ret;                                                   
    }                                                                 
                                                                      
    cl_start = start >> fs_info->vol.bpc_log2;                        
    save_ofs = ofs = start & (fs_info->vol.bpc - 1);                  
 800f330:	35 e1 ff ff 	addi r1,r15,-1                                 
 800f334:	a1 c1 70 00 	and r14,r14,r1                                 
 800f338:	b9 c0 88 00 	mv r17,r14                                     
 800f33c:	34 12 00 00 	mvi r18,0                                      
 800f340:	34 0f 00 00 	mvi r15,0                                      
 800f344:	e0 00 00 26 	bi 800f3dc <fat_file_read+0x1b8>               
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    while (count > 0)                                                 
    {                                                                 
        c = MIN(count, (fs_info->vol.bpc - ofs));                     
 800f348:	2d 70 00 06 	lhu r16,(r11+6)                                
 800f34c:	ca 11 80 00 	sub r16,r16,r17                                
 800f350:	51 90 00 02 	bgeu r12,r16,800f358 <fat_file_read+0x134>     
 800f354:	b9 80 80 00 	mv r16,r12                                     
                                                                      
        sec = fat_cluster_num_to_sector_num(fs_info, cur_cln);        
 800f358:	2b 82 00 30 	lw r2,(sp+48)                                  
fat_cluster_num_to_sector_num(                                        
    const fat_fs_info_t *fs_info,                                     
    uint32_t             cln                                          
    )                                                                 
{                                                                     
    if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
 800f35c:	5c 40 00 06 	bne r2,r0,800f374 <fat_file_read+0x150>        <== ALWAYS TAKEN
 800f360:	41 61 00 0e 	lbu r1,(r11+14)                                <== NOT EXECUTED
 800f364:	20 21 00 03 	andi r1,r1,0x3                                 <== NOT EXECUTED
 800f368:	44 22 00 03 	be r1,r2,800f374 <fat_file_read+0x150>         <== NOT EXECUTED
        return fs_info->vol.rdir_loc;                                 
 800f36c:	29 72 00 20 	lw r18,(r11+32)                                <== NOT EXECUTED
 800f370:	e0 00 00 06 	bi 800f388 <fat_file_read+0x164>               <== NOT EXECUTED
                                                                      
    return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +        
 800f374:	34 41 ff fe 	addi r1,r2,-2                                  
 800f378:	41 62 00 05 	lbu r2,(r11+5)                                 
 800f37c:	fb ff c7 9b 	calli 80011e8 <__ashlsi3>                      
 800f380:	29 72 00 34 	lw r18,(r11+52)                                
 800f384:	b4 32 90 00 	add r18,r1,r18                                 
        sec += (ofs >> fs_info->vol.sec_log2);                        
 800f388:	41 62 00 02 	lbu r2,(r11+2)                                 
 800f38c:	ba 20 08 00 	mv r1,r17                                      
 800f390:	f8 00 73 a0 	calli 802c210 <__lshrsi3>                      
        byte = ofs & (fs_info->vol.bps - 1);                          
 800f394:	2d 63 00 00 	lhu r3,(r11+0)                                 
    while (count > 0)                                                 
    {                                                                 
        c = MIN(count, (fs_info->vol.bpc - ofs));                     
                                                                      
        sec = fat_cluster_num_to_sector_num(fs_info, cur_cln);        
        sec += (ofs >> fs_info->vol.sec_log2);                        
 800f398:	b6 41 10 00 	add r2,r18,r1                                  
        byte = ofs & (fs_info->vol.bps - 1);                          
                                                                      
        ret = _fat_block_read(fs_info, sec, byte, c, buf + cmpltd);   
 800f39c:	ba 00 20 00 	mv r4,r16                                      
    {                                                                 
        c = MIN(count, (fs_info->vol.bpc - ofs));                     
                                                                      
        sec = fat_cluster_num_to_sector_num(fs_info, cur_cln);        
        sec += (ofs >> fs_info->vol.sec_log2);                        
        byte = ofs & (fs_info->vol.bps - 1);                          
 800f3a0:	34 63 ff ff 	addi r3,r3,-1                                  
                                                                      
        ret = _fat_block_read(fs_info, sec, byte, c, buf + cmpltd);   
 800f3a4:	b9 60 08 00 	mv r1,r11                                      
 800f3a8:	a2 23 18 00 	and r3,r17,r3                                  
 800f3ac:	b6 8f 28 00 	add r5,r20,r15                                 
 800f3b0:	f8 00 03 3f 	calli 80100ac <_fat_block_read>                
        if ( ret < 0 )                                                
 800f3b4:	48 01 00 14 	bg r0,r1,800f404 <fat_file_read+0x1e0>         <== NEVER TAKEN
            return -1;                                                
                                                                      
        count -= c;                                                   
        cmpltd += c;                                                  
        save_cln = cur_cln;                                           
 800f3b8:	2b 92 00 30 	lw r18,(sp+48)                                 
        rc = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);         
 800f3bc:	b9 60 08 00 	mv r1,r11                                      
 800f3c0:	37 83 00 30 	addi r3,sp,48                                  
 800f3c4:	ba 40 10 00 	mv r2,r18                                      
 800f3c8:	f8 00 21 6a 	calli 8017970 <fat_get_fat_cluster>            
        if ( rc != RC_OK )                                            
 800f3cc:	5c 20 00 0f 	bne r1,r0,800f408 <fat_file_read+0x1e4>        <== NEVER TAKEN
                                                                      
        ret = _fat_block_read(fs_info, sec, byte, c, buf + cmpltd);   
        if ( ret < 0 )                                                
            return -1;                                                
                                                                      
        count -= c;                                                   
 800f3d0:	c9 90 60 00 	sub r12,r12,r16                                
        cmpltd += c;                                                  
 800f3d4:	b5 f0 78 00 	add r15,r15,r16                                
        save_cln = cur_cln;                                           
        rc = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);         
        if ( rc != RC_OK )                                            
            return rc;                                                
                                                                      
        ofs = 0;                                                      
 800f3d8:	34 11 00 00 	mvi r17,0                                      
                                                                      
    rc = fat_file_lseek(fs_info, fat_fd, cl_start, &cur_cln);         
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    while (count > 0)                                                 
 800f3dc:	5d 80 ff db 	bne r12,r0,800f348 <fat_file_read+0x124>       
    }                                                                 
                                                                      
    /* update cache */                                                
    /* XXX: check this - I'm not sure :( */                           
    fat_fd->map.file_cln = cl_start +                                 
                           ((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2);
 800f3e0:	41 62 00 08 	lbu r2,(r11+8)                                 
 800f3e4:	35 ce ff ff 	addi r14,r14,-1                                
 800f3e8:	b5 cf 08 00 	add r1,r14,r15                                 
 800f3ec:	f8 00 73 89 	calli 802c210 <__lshrsi3>                      
        ofs = 0;                                                      
    }                                                                 
                                                                      
    /* update cache */                                                
    /* XXX: check this - I'm not sure :( */                           
    fat_fd->map.file_cln = cl_start +                                 
 800f3f0:	b4 33 08 00 	add r1,r1,r19                                  
 800f3f4:	59 a1 00 34 	sw (r13+52),r1                                 
                           ((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2);
    fat_fd->map.disk_cln = save_cln;                                  
 800f3f8:	59 b2 00 38 	sw (r13+56),r18                                
                                                                      
    return cmpltd;                                                    
 800f3fc:	b9 e0 08 00 	mv r1,r15                                      
 800f400:	e0 00 00 02 	bi 800f408 <fat_file_read+0x1e4>               
        sec += (ofs >> fs_info->vol.sec_log2);                        
        byte = ofs & (fs_info->vol.bps - 1);                          
                                                                      
        ret = _fat_block_read(fs_info, sec, byte, c, buf + cmpltd);   
        if ( ret < 0 )                                                
            return -1;                                                
 800f404:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
    fat_fd->map.file_cln = cl_start +                                 
                           ((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2);
    fat_fd->map.disk_cln = save_cln;                                  
                                                                      
    return cmpltd;                                                    
}                                                                     
 800f408:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800f40c:	2b 8b 00 2c 	lw r11,(sp+44)                                 
 800f410:	2b 8c 00 28 	lw r12,(sp+40)                                 
 800f414:	2b 8d 00 24 	lw r13,(sp+36)                                 
 800f418:	2b 8e 00 20 	lw r14,(sp+32)                                 
 800f41c:	2b 8f 00 1c 	lw r15,(sp+28)                                 
 800f420:	2b 90 00 18 	lw r16,(sp+24)                                 
 800f424:	2b 91 00 14 	lw r17,(sp+20)                                 
 800f428:	2b 92 00 10 	lw r18,(sp+16)                                 
 800f42c:	2b 93 00 0c 	lw r19,(sp+12)                                 
 800f430:	2b 94 00 08 	lw r20,(sp+8)                                  
 800f434:	37 9c 00 30 	addi sp,sp,48                                  
 800f438:	c3 a0 00 00 	ret                                            
                                                                      

0800fc74 <fat_file_size>: int fat_file_size( fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd ) {
 800fc74:	37 9c ff ec 	addi sp,sp,-20                                 
 800fc78:	5b 8b 00 10 	sw (sp+16),r11                                 
 800fc7c:	5b 8c 00 0c 	sw (sp+12),r12                                 
 800fc80:	5b 8d 00 08 	sw (sp+8),r13                                  
 800fc84:	5b 9d 00 04 	sw (sp+4),ra                                   
 800fc88:	b8 20 60 00 	mv r12,r1                                      
    int            rc = RC_OK;                                        
    uint32_t       cur_cln = fat_fd->cln;                             
 800fc8c:	28 41 00 1c 	lw r1,(r2+28)                                  
int                                                                   
fat_file_size(                                                        
    fat_fs_info_t                        *fs_info,                    
    fat_file_fd_t                        *fat_fd                      
    )                                                                 
{                                                                     
 800fc90:	b8 40 58 00 	mv r11,r2                                      
    int            rc = RC_OK;                                        
    uint32_t       cur_cln = fat_fd->cln;                             
    uint32_t       save_cln = 0;                                      
                                                                      
    /* Have we requested root dir size for FAT12/16? */               
    if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                               
 800fc94:	28 42 00 20 	lw r2,(r2+32)                                  
    fat_fs_info_t                        *fs_info,                    
    fat_file_fd_t                        *fat_fd                      
    )                                                                 
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       cur_cln = fat_fd->cln;                             
 800fc98:	5b 81 00 14 	sw (sp+20),r1                                  
    uint32_t       save_cln = 0;                                      
                                                                      
    /* Have we requested root dir size for FAT12/16? */               
    if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                               
 800fc9c:	34 01 00 01 	mvi r1,1                                       
 800fca0:	5c 41 00 09 	bne r2,r1,800fcc4 <fat_file_size+0x50>         
 800fca4:	29 61 00 24 	lw r1,(r11+36)                                 
 800fca8:	5c 20 00 07 	bne r1,r0,800fcc4 <fat_file_size+0x50>         <== NEVER TAKEN
        (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))                
 800fcac:	41 82 00 0e 	lbu r2,(r12+14)                                
 800fcb0:	20 42 00 03 	andi r2,r2,0x3                                 
    int            rc = RC_OK;                                        
    uint32_t       cur_cln = fat_fd->cln;                             
    uint32_t       save_cln = 0;                                      
                                                                      
    /* Have we requested root dir size for FAT12/16? */               
    if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                               
 800fcb4:	44 41 00 04 	be r2,r1,800fcc4 <fat_file_size+0x50>          <== ALWAYS TAKEN
        (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))                
    {                                                                 
        fat_fd->fat_file_size = fs_info->vol.rdir_size;               
 800fcb8:	29 81 00 2c 	lw r1,(r12+44)                                 <== NOT EXECUTED
 800fcbc:	59 61 00 18 	sw (r11+24),r1                                 <== NOT EXECUTED
 800fcc0:	e0 00 00 14 	bi 800fd10 <fat_file_size+0x9c>                <== NOT EXECUTED
        return rc;                                                    
    }                                                                 
                                                                      
    fat_fd->fat_file_size = 0;                                        
 800fcc4:	59 60 00 18 	sw (r11+24),r0                                 
    fat_file_fd_t                        *fat_fd                      
    )                                                                 
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       cur_cln = fat_fd->cln;                             
    uint32_t       save_cln = 0;                                      
 800fcc8:	34 01 00 00 	mvi r1,0                                       
        return rc;                                                    
    }                                                                 
                                                                      
    fat_fd->fat_file_size = 0;                                        
                                                                      
    while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)      
 800fccc:	e0 00 00 0b 	bi 800fcf8 <fat_file_size+0x84>                
    {                                                                 
        save_cln = cur_cln;                                           
        rc = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);         
 800fcd0:	b9 80 08 00 	mv r1,r12                                      
 800fcd4:	b9 a0 10 00 	mv r2,r13                                      
 800fcd8:	37 83 00 14 	addi r3,sp,20                                  
 800fcdc:	f8 00 1f 25 	calli 8017970 <fat_get_fat_cluster>            
        if ( rc != RC_OK )                                            
 800fce0:	5c 20 00 0d 	bne r1,r0,800fd14 <fat_file_size+0xa0>         <== NEVER TAKEN
            return rc;                                                
                                                                      
        fat_fd->fat_file_size += fs_info->vol.bpc;                    
 800fce4:	2d 81 00 06 	lhu r1,(r12+6)                                 
 800fce8:	29 62 00 18 	lw r2,(r11+24)                                 
 800fcec:	b4 41 08 00 	add r1,r2,r1                                   
 800fcf0:	59 61 00 18 	sw (r11+24),r1                                 
                                                                      
    fat_fd->fat_file_size = 0;                                        
                                                                      
    while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)      
    {                                                                 
        save_cln = cur_cln;                                           
 800fcf4:	b9 a0 08 00 	mv r1,r13                                      
        return rc;                                                    
    }                                                                 
                                                                      
    fat_fd->fat_file_size = 0;                                        
                                                                      
    while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)      
 800fcf8:	2b 8d 00 14 	lw r13,(sp+20)                                 
 800fcfc:	29 82 00 10 	lw r2,(r12+16)                                 
 800fd00:	29 83 00 14 	lw r3,(r12+20)                                 
 800fd04:	a1 a2 10 00 	and r2,r13,r2                                  
 800fd08:	54 62 ff f2 	bgu r3,r2,800fcd0 <fat_file_size+0x5c>         
        if ( rc != RC_OK )                                            
            return rc;                                                
                                                                      
        fat_fd->fat_file_size += fs_info->vol.bpc;                    
    }                                                                 
    fat_fd->map.last_cln = save_cln;                                  
 800fd0c:	59 61 00 3c 	sw (r11+60),r1                                 
    return rc;                                                        
 800fd10:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 800fd14:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800fd18:	2b 8b 00 10 	lw r11,(sp+16)                                 
 800fd1c:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 800fd20:	2b 8d 00 08 	lw r13,(sp+8)                                  
 800fd24:	37 9c 00 14 	addi sp,sp,20                                  
 800fd28:	c3 a0 00 00 	ret                                            
                                                                      

0800f43c <fat_file_truncate>: fat_file_truncate( fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd, uint32_t new_length ) {
 800f43c:	37 9c ff e0 	addi sp,sp,-32                                 
 800f440:	5b 8b 00 18 	sw (sp+24),r11                                 
 800f444:	5b 8c 00 14 	sw (sp+20),r12                                 
 800f448:	5b 8d 00 10 	sw (sp+16),r13                                 
 800f44c:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800f450:	5b 8f 00 08 	sw (sp+8),r15                                  
 800f454:	5b 9d 00 04 	sw (sp+4),ra                                   
    uint32_t       cur_cln = 0;                                       
    uint32_t       cl_start = 0;                                      
    uint32_t       new_last_cln = FAT_UNDEFINED_VALUE;                
                                                                      
                                                                      
    if ( new_length >= fat_fd->fat_file_size )                        
 800f458:	28 4e 00 18 	lw r14,(r2+24)                                 
fat_file_truncate(                                                    
    fat_fs_info_t                        *fs_info,                    
    fat_file_fd_t                        *fat_fd,                     
    uint32_t                              new_length                  
    )                                                                 
{                                                                     
 800f45c:	b8 20 60 00 	mv r12,r1                                      
    int            rc = RC_OK;                                        
    uint32_t       cur_cln = 0;                                       
    uint32_t       cl_start = 0;                                      
    uint32_t       new_last_cln = FAT_UNDEFINED_VALUE;                
 800f460:	34 01 ff ff 	mvi r1,-1                                      
    fat_file_fd_t                        *fat_fd,                     
    uint32_t                              new_length                  
    )                                                                 
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       cur_cln = 0;                                       
 800f464:	5b 80 00 20 	sw (sp+32),r0                                  
    uint32_t       cl_start = 0;                                      
    uint32_t       new_last_cln = FAT_UNDEFINED_VALUE;                
 800f468:	5b 81 00 1c 	sw (sp+28),r1                                  
fat_file_truncate(                                                    
    fat_fs_info_t                        *fs_info,                    
    fat_file_fd_t                        *fat_fd,                     
    uint32_t                              new_length                  
    )                                                                 
{                                                                     
 800f46c:	b8 40 58 00 	mv r11,r2                                      
    uint32_t       cur_cln = 0;                                       
    uint32_t       cl_start = 0;                                      
    uint32_t       new_last_cln = FAT_UNDEFINED_VALUE;                
                                                                      
                                                                      
    if ( new_length >= fat_fd->fat_file_size )                        
 800f470:	50 6e 00 36 	bgeu r3,r14,800f548 <fat_file_truncate+0x10c>  
        return rc;                                                    
                                                                      
    assert(fat_fd->fat_file_size);                                    
 800f474:	5d c0 00 09 	bne r14,r0,800f498 <fat_file_truncate+0x5c>    <== ALWAYS TAKEN
 800f478:	78 01 08 02 	mvhi r1,0x802                                  <== NOT EXECUTED
 800f47c:	78 03 08 02 	mvhi r3,0x802                                  <== NOT EXECUTED
 800f480:	78 04 08 02 	mvhi r4,0x802                                  <== NOT EXECUTED
 800f484:	38 21 d4 b8 	ori r1,r1,0xd4b8                               <== NOT EXECUTED
 800f488:	34 02 02 d1 	mvi r2,721                                     <== NOT EXECUTED
 800f48c:	38 63 d5 18 	ori r3,r3,0xd518                               <== NOT EXECUTED
 800f490:	38 84 d5 00 	ori r4,r4,0xd500                               <== NOT EXECUTED
 800f494:	f8 00 09 c8 	calli 8011bb4 <__assert_func>                  <== NOT EXECUTED
                                                                      
    cl_start = (new_length + fs_info->vol.bpc - 1) >> fs_info->vol.bpc_log2;
 800f498:	2d 81 00 06 	lhu r1,(r12+6)                                 
 800f49c:	41 8f 00 08 	lbu r15,(r12+8)                                
 800f4a0:	34 21 ff ff 	addi r1,r1,-1                                  
 800f4a4:	b4 23 08 00 	add r1,r1,r3                                   
 800f4a8:	b9 e0 10 00 	mv r2,r15                                      
 800f4ac:	f8 00 73 59 	calli 802c210 <__lshrsi3>                      
                                                                      
    if ((cl_start << fs_info->vol.bpc_log2) >= fat_fd->fat_file_size) 
 800f4b0:	b9 e0 10 00 	mv r2,r15                                      
    if ( new_length >= fat_fd->fat_file_size )                        
        return rc;                                                    
                                                                      
    assert(fat_fd->fat_file_size);                                    
                                                                      
    cl_start = (new_length + fs_info->vol.bpc - 1) >> fs_info->vol.bpc_log2;
 800f4b4:	b8 20 68 00 	mv r13,r1                                      
                                                                      
    if ((cl_start << fs_info->vol.bpc_log2) >= fat_fd->fat_file_size) 
 800f4b8:	fb ff c7 4c 	calli 80011e8 <__ashlsi3>                      
        return RC_OK;                                                 
 800f4bc:	34 04 00 00 	mvi r4,0                                       
                                                                      
    assert(fat_fd->fat_file_size);                                    
                                                                      
    cl_start = (new_length + fs_info->vol.bpc - 1) >> fs_info->vol.bpc_log2;
                                                                      
    if ((cl_start << fs_info->vol.bpc_log2) >= fat_fd->fat_file_size) 
 800f4c0:	50 2e 00 23 	bgeu r1,r14,800f54c <fat_file_truncate+0x110>  
        return RC_OK;                                                 
                                                                      
    if (cl_start != 0)                                                
 800f4c4:	45 a0 00 08 	be r13,r0,800f4e4 <fat_file_truncate+0xa8>     
    {                                                                 
        rc = fat_file_lseek(fs_info, fat_fd, cl_start - 1, &new_last_cln);
 800f4c8:	37 84 00 1c 	addi r4,sp,28                                  
 800f4cc:	b9 80 08 00 	mv r1,r12                                      
 800f4d0:	b9 60 10 00 	mv r2,r11                                      
 800f4d4:	35 a3 ff ff 	addi r3,r13,-1                                 
 800f4d8:	fb ff fe be 	calli 800efd0 <fat_file_lseek>                 
 800f4dc:	b8 20 20 00 	mv r4,r1                                       
        if (rc != RC_OK)                                              
 800f4e0:	5c 20 00 1b 	bne r1,r0,800f54c <fat_file_truncate+0x110>    <== NEVER TAKEN
            return rc;                                                
                                                                      
    }                                                                 
                                                                      
    rc = fat_file_lseek(fs_info, fat_fd, cl_start, &cur_cln);         
 800f4e4:	37 84 00 20 	addi r4,sp,32                                  
 800f4e8:	b9 80 08 00 	mv r1,r12                                      
 800f4ec:	b9 60 10 00 	mv r2,r11                                      
 800f4f0:	b9 a0 18 00 	mv r3,r13                                      
 800f4f4:	fb ff fe b7 	calli 800efd0 <fat_file_lseek>                 
 800f4f8:	b8 20 20 00 	mv r4,r1                                       
    if (rc != RC_OK)                                                  
 800f4fc:	5c 20 00 14 	bne r1,r0,800f54c <fat_file_truncate+0x110>    <== NEVER TAKEN
        return rc;                                                    
                                                                      
    rc = fat_free_fat_clusters_chain(fs_info, cur_cln);               
 800f500:	2b 82 00 20 	lw r2,(sp+32)                                  
 800f504:	b9 80 08 00 	mv r1,r12                                      
 800f508:	f8 00 22 77 	calli 8017ee4 <fat_free_fat_clusters_chain>    
 800f50c:	b8 20 20 00 	mv r4,r1                                       
    if (rc != RC_OK)                                                  
 800f510:	5c 20 00 0f 	bne r1,r0,800f54c <fat_file_truncate+0x110>    <== NEVER TAKEN
        return rc;                                                    
                                                                      
    if (cl_start != 0)                                                
 800f514:	45 a1 00 0e 	be r13,r1,800f54c <fat_file_truncate+0x110>    
    {                                                                 
        rc = fat_set_fat_cluster(fs_info, new_last_cln, FAT_GENFAT_EOC);
 800f518:	2b 82 00 1c 	lw r2,(sp+28)                                  
 800f51c:	b9 80 08 00 	mv r1,r12                                      
 800f520:	34 03 ff ff 	mvi r3,-1                                      
 800f524:	f8 00 21 9e 	calli 8017b9c <fat_set_fat_cluster>            
 800f528:	b8 20 20 00 	mv r4,r1                                       
        if ( rc != RC_OK )                                            
 800f52c:	5c 20 00 08 	bne r1,r0,800f54c <fat_file_truncate+0x110>    <== NEVER TAKEN
            return rc;                                                
        fat_fd->map.file_cln = cl_start - 1;                          
        fat_fd->map.disk_cln = new_last_cln;                          
 800f530:	2b 81 00 1c 	lw r1,(sp+28)                                  
    if (cl_start != 0)                                                
    {                                                                 
        rc = fat_set_fat_cluster(fs_info, new_last_cln, FAT_GENFAT_EOC);
        if ( rc != RC_OK )                                            
            return rc;                                                
        fat_fd->map.file_cln = cl_start - 1;                          
 800f534:	35 ad ff ff 	addi r13,r13,-1                                
 800f538:	59 6d 00 34 	sw (r11+52),r13                                
        fat_fd->map.disk_cln = new_last_cln;                          
 800f53c:	59 61 00 38 	sw (r11+56),r1                                 
        fat_fd->map.last_cln = new_last_cln;                          
 800f540:	59 61 00 3c 	sw (r11+60),r1                                 
 800f544:	e0 00 00 02 	bi 800f54c <fat_file_truncate+0x110>           
    uint32_t       cl_start = 0;                                      
    uint32_t       new_last_cln = FAT_UNDEFINED_VALUE;                
                                                                      
                                                                      
    if ( new_length >= fat_fd->fat_file_size )                        
        return rc;                                                    
 800f548:	34 04 00 00 	mvi r4,0                                       
        fat_fd->map.file_cln = cl_start - 1;                          
        fat_fd->map.disk_cln = new_last_cln;                          
        fat_fd->map.last_cln = new_last_cln;                          
    }                                                                 
    return RC_OK;                                                     
}                                                                     
 800f54c:	b8 80 08 00 	mv r1,r4                                       
 800f550:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800f554:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800f558:	2b 8c 00 14 	lw r12,(sp+20)                                 
 800f55c:	2b 8d 00 10 	lw r13,(sp+16)                                 
 800f560:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800f564:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800f568:	37 9c 00 20 	addi sp,sp,32                                  
 800f56c:	c3 a0 00 00 	ret                                            
                                                                      

0800f964 <fat_file_write>: fat_file_fd_t *fat_fd, uint32_t start, uint32_t count, const uint8_t *buf ) {
 800f964:	37 9c ff b8 	addi sp,sp,-72                                 
 800f968:	5b 8b 00 40 	sw (sp+64),r11                                 
 800f96c:	5b 8c 00 3c 	sw (sp+60),r12                                 
 800f970:	5b 8d 00 38 	sw (sp+56),r13                                 
 800f974:	5b 8e 00 34 	sw (sp+52),r14                                 
 800f978:	5b 8f 00 30 	sw (sp+48),r15                                 
 800f97c:	5b 90 00 2c 	sw (sp+44),r16                                 
 800f980:	5b 91 00 28 	sw (sp+40),r17                                 
 800f984:	5b 92 00 24 	sw (sp+36),r18                                 
 800f988:	5b 93 00 20 	sw (sp+32),r19                                 
 800f98c:	5b 94 00 1c 	sw (sp+28),r20                                 
 800f990:	5b 95 00 18 	sw (sp+24),r21                                 
 800f994:	5b 96 00 14 	sw (sp+20),r22                                 
 800f998:	5b 97 00 10 	sw (sp+16),r23                                 
 800f99c:	5b 98 00 0c 	sw (sp+12),r24                                 
 800f9a0:	5b 99 00 08 	sw (sp+8),r25                                  
 800f9a4:	5b 9d 00 04 	sw (sp+4),ra                                   
    int            rc = RC_OK;                                        
    ssize_t        ret;                                               
    uint32_t       cmpltd = 0;                                        
    uint32_t       byte;                                              
    uint32_t       c = 0;                                             
 800f9a8:	5b 80 00 48 	sw (sp+72),r0                                  
    fat_file_fd_t                        *fat_fd,                     
    uint32_t                              start,                      
    uint32_t                              count,                      
    const uint8_t                        *buf                         
    )                                                                 
{                                                                     
 800f9ac:	b8 40 58 00 	mv r11,r2                                      
 800f9b0:	b8 60 70 00 	mv r14,r3                                      
    ssize_t        ret;                                               
    uint32_t       cmpltd = 0;                                        
    uint32_t       byte;                                              
    uint32_t       c = 0;                                             
    bool           zero_fill = start > fat_fd->fat_file_size;         
    uint32_t       file_cln_initial = fat_fd->map.file_cln;           
 800f9b4:	28 59 00 34 	lw r25,(r2+52)                                 
    int            rc = RC_OK;                                        
    ssize_t        ret;                                               
    uint32_t       cmpltd = 0;                                        
    uint32_t       byte;                                              
    uint32_t       c = 0;                                             
    bool           zero_fill = start > fat_fd->fat_file_size;         
 800f9b8:	28 43 00 18 	lw r3,(r2+24)                                  
    fat_file_fd_t                        *fat_fd,                     
    uint32_t                              start,                      
    uint32_t                              count,                      
    const uint8_t                        *buf                         
    )                                                                 
{                                                                     
 800f9bc:	b8 20 60 00 	mv r12,r1                                      
 800f9c0:	b8 a0 b0 00 	mv r22,r5                                      
    uint32_t       file_cln_initial = fat_fd->map.file_cln;           
    uint32_t       cln;                                               
                                                                      
                                                                      
    if ( count == 0 )                                                 
        return cmpltd;                                                
 800f9c4:	34 02 00 00 	mvi r2,0                                       
    bool           zero_fill = start > fat_fd->fat_file_size;         
    uint32_t       file_cln_initial = fat_fd->map.file_cln;           
    uint32_t       cln;                                               
                                                                      
                                                                      
    if ( count == 0 )                                                 
 800f9c8:	44 80 00 69 	be r4,r0,800fb6c <fat_file_write+0x208>        <== NEVER TAKEN
        return cmpltd;                                                
                                                                      
    if (start >= fat_fd->size_limit)                                  
 800f9cc:	29 6d 00 14 	lw r13,(r11+20)                                
 800f9d0:	55 ae 00 06 	bgu r13,r14,800f9e8 <fat_file_write+0x84>      <== ALWAYS TAKEN
        rtems_set_errno_and_return_minus_one(EFBIG);                  
 800f9d4:	f8 00 28 0e 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 800f9d8:	34 02 00 1b 	mvi r2,27                                      <== NOT EXECUTED
 800f9dc:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 800f9e0:	34 02 ff ff 	mvi r2,-1                                      <== NOT EXECUTED
 800f9e4:	e0 00 00 62 	bi 800fb6c <fat_file_write+0x208>              <== NOT EXECUTED
                                                                      
    if (count > fat_fd->size_limit - start)                           
 800f9e8:	c9 ae 68 00 	sub r13,r13,r14                                
                                                                      
    if ( count == 0 )                                                 
        return cmpltd;                                                
                                                                      
    if (start >= fat_fd->size_limit)                                  
        rtems_set_errno_and_return_minus_one(EFBIG);                  
 800f9ec:	50 8d 00 02 	bgeu r4,r13,800f9f4 <fat_file_write+0x90>      <== NEVER TAKEN
 800f9f0:	b8 80 68 00 	mv r13,r4                                      
                                                                      
    if (count > fat_fd->size_limit - start)                           
        count = fat_fd->size_limit - start;                           
                                                                      
    rc = fat_file_extend(fs_info, fat_fd, zero_fill, start + count, &c);
 800f9f4:	b5 ae 78 00 	add r15,r13,r14                                
 800f9f8:	f5 c3 18 00 	cmpgu r3,r14,r3                                
 800f9fc:	b9 60 10 00 	mv r2,r11                                      
 800fa00:	b9 80 08 00 	mv r1,r12                                      
 800fa04:	b9 e0 20 00 	mv r4,r15                                      
 800fa08:	37 85 00 48 	addi r5,sp,72                                  
 800fa0c:	fb ff ff 41 	calli 800f710 <fat_file_extend>                
 800fa10:	b8 20 10 00 	mv r2,r1                                       
    if (RC_OK == rc)                                                  
 800fa14:	5c 20 00 56 	bne r1,r0,800fb6c <fat_file_write+0x208>       
    {                                                                 
        /*                                                            
         * check whether there was enough room on device to locate    
         * file of 'start + count' bytes                              
         */                                                           
        if (c != (start + count))                                     
 800fa18:	2b 81 00 48 	lw r1,(sp+72)                                  
 800fa1c:	44 2f 00 02 	be r1,r15,800fa24 <fat_file_write+0xc0>        <== ALWAYS TAKEN
            count = c - start;                                        
 800fa20:	c8 2e 68 00 	sub r13,r1,r14                                 <== NOT EXECUTED
 */                                                                   
static bool                                                           
 fat_is_fat12_or_fat16_root_dir (const fat_file_fd_t *fat_fd,         
                                 const uint8_t volume_type)           
{                                                                     
    return (FAT_FD_OF_ROOT_DIR(fat_fd)) && (volume_type & (FAT_FAT12 | FAT_FAT16));
 800fa24:	29 63 00 20 	lw r3,(r11+32)                                 
 800fa28:	34 01 00 01 	mvi r1,1                                       
         */                                                           
        if (c != (start + count))                                     
            count = c - start;                                        
                                                                      
        /* for the root directory of FAT12 and FAT16 we need this special handling */
        if (fat_is_fat12_or_fat16_root_dir(fat_fd, fs_info->vol.type))
 800fa2c:	41 82 00 0e 	lbu r2,(r12+14)                                
 */                                                                   
static bool                                                           
 fat_is_fat12_or_fat16_root_dir (const fat_file_fd_t *fat_fd,         
                                 const uint8_t volume_type)           
{                                                                     
    return (FAT_FD_OF_ROOT_DIR(fat_fd)) && (volume_type & (FAT_FAT12 | FAT_FAT16));
 800fa30:	5c 61 00 62 	bne r3,r1,800fbb8 <fat_file_write+0x254>       
 800fa34:	29 61 00 24 	lw r1,(r11+36)                                 
 800fa38:	5c 20 00 60 	bne r1,r0,800fbb8 <fat_file_write+0x254>       <== NEVER TAKEN
 800fa3c:	20 42 00 03 	andi r2,r2,0x3                                 
 800fa40:	44 41 00 5e 	be r2,r1,800fbb8 <fat_file_write+0x254>        
                                                                      
        /* for the root directory of FAT12 and FAT16 we need this special handling */
        if (fat_is_fat12_or_fat16_root_dir(fat_fd, fs_info->vol.type))
        {                                                             
            cln = fat_fd->cln;                                        
            cln += (start >> fs_info->vol.bpc_log2);                  
 800fa44:	41 82 00 08 	lbu r2,(r12+8)                                 
 800fa48:	b9 c0 08 00 	mv r1,r14                                      
            count = c - start;                                        
                                                                      
        /* for the root directory of FAT12 and FAT16 we need this special handling */
        if (fat_is_fat12_or_fat16_root_dir(fat_fd, fs_info->vol.type))
        {                                                             
            cln = fat_fd->cln;                                        
 800fa4c:	29 6b 00 1c 	lw r11,(r11+28)                                
            cln += (start >> fs_info->vol.bpc_log2);                  
 800fa50:	f8 00 71 f0 	calli 802c210 <__lshrsi3>                      
            byte = start & (fs_info->vol.bpc -1);                     
 800fa54:	2d 83 00 06 	lhu r3,(r12+6)                                 
                                                                      
        /* for the root directory of FAT12 and FAT16 we need this special handling */
        if (fat_is_fat12_or_fat16_root_dir(fat_fd, fs_info->vol.type))
        {                                                             
            cln = fat_fd->cln;                                        
            cln += (start >> fs_info->vol.bpc_log2);                  
 800fa58:	b4 2b 10 00 	add r2,r1,r11                                  
            byte = start & (fs_info->vol.bpc -1);                     
                                                                      
            ret = fat_cluster_write(fs_info,                          
 800fa5c:	b9 a0 20 00 	mv r4,r13                                      
        /* for the root directory of FAT12 and FAT16 we need this special handling */
        if (fat_is_fat12_or_fat16_root_dir(fat_fd, fs_info->vol.type))
        {                                                             
            cln = fat_fd->cln;                                        
            cln += (start >> fs_info->vol.bpc_log2);                  
            byte = start & (fs_info->vol.bpc -1);                     
 800fa60:	34 63 ff ff 	addi r3,r3,-1                                  
                                                                      
            ret = fat_cluster_write(fs_info,                          
 800fa64:	b9 80 08 00 	mv r1,r12                                      
 800fa68:	a1 c3 18 00 	and r3,r14,r3                                  
 800fa6c:	ba c0 28 00 	mv r5,r22                                      
 800fa70:	34 06 00 00 	mvi r6,0                                       
 800fa74:	f8 00 02 6a 	calli 801041c <fat_cluster_write>              
                                      byte,                           
                                      count,                          
                                      buf,                            
                                      false);                         
            if (0 > ret)                                              
              rc = -1;                                                
 800fa78:	34 02 ff ff 	mvi r2,-1                                      
                                      cln,                            
                                      byte,                           
                                      count,                          
                                      buf,                            
                                      false);                         
            if (0 > ret)                                              
 800fa7c:	48 01 00 3c 	bg r0,r1,800fb6c <fat_file_write+0x208>        <== NEVER TAKEN
              rc = -1;                                                
            else                                                      
              cmpltd = ret;                                           
 800fa80:	b8 20 10 00 	mv r2,r1                                       
 800fa84:	e0 00 00 3a 	bi 800fb6c <fat_file_write+0x208>              
    int            rc = RC_OK;                                        
    uint32_t       cmpltd = 0;                                        
    uint32_t       cur_cln = 0;                                       
    uint32_t       save_cln = 0; /* FIXME: This might be incorrect, cf. below */
    uint32_t       start_cln = start >> fs_info->vol.bpc_log2;        
    uint32_t       ofs_cln = start - (start_cln << fs_info->vol.bpc_log2);
 800fa88:	b9 e0 10 00 	mv r2,r15                                      
 800fa8c:	ba 20 08 00 	mv r1,r17                                      
 800fa90:	fb ff c5 d6 	calli 80011e8 <__ashlsi3>                      
 800fa94:	c9 c1 70 00 	sub r14,r14,r1                                 
    bool           overwrite_cluster = false;                         
                                                                      
    rc = fat_file_lseek(fs_info, fat_fd, start_cln, &cur_cln);        
    if (RC_OK == rc)                                                  
    {                                                                 
        file_cln_cnt = cur_cln - fat_fd->cln;                         
 800fa98:	2b 94 00 44 	lw r20,(sp+68)                                 
 800fa9c:	29 61 00 1c 	lw r1,(r11+28)                                 
    int            rc = RC_OK;                                        
    uint32_t       cmpltd = 0;                                        
    uint32_t       cur_cln = 0;                                       
    uint32_t       save_cln = 0; /* FIXME: This might be incorrect, cf. below */
    uint32_t       start_cln = start >> fs_info->vol.bpc_log2;        
    uint32_t       ofs_cln = start - (start_cln << fs_info->vol.bpc_log2);
 800faa0:	b9 c0 98 00 	mv r19,r14                                     
    bool           overwrite_cluster = false;                         
                                                                      
    rc = fat_file_lseek(fs_info, fat_fd, start_cln, &cur_cln);        
    if (RC_OK == rc)                                                  
    {                                                                 
        file_cln_cnt = cur_cln - fat_fd->cln;                         
 800faa4:	34 10 00 00 	mvi r16,0                                      
 800faa8:	ca 81 a0 00 	sub r20,r20,r1                                 
    uint32_t       ofs_cln_save = ofs_cln;                            
    uint32_t       bytes_to_write = count;                            
    uint32_t       file_cln_cnt;                                      
    ssize_t        ret;                                               
    uint32_t       c;                                                 
    bool           overwrite_cluster = false;                         
 800faac:	34 18 00 00 	mvi r24,0                                      
     const uint32_t                        file_cln_initial)          
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       cmpltd = 0;                                        
    uint32_t       cur_cln = 0;                                       
    uint32_t       save_cln = 0; /* FIXME: This might be incorrect, cf. below */
 800fab0:	34 12 00 00 	mvi r18,0                                      
     const uint32_t                        count,                     
     const uint8_t                        *buf,                       
     const uint32_t                        file_cln_initial)          
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       cmpltd = 0;                                        
 800fab4:	34 0f 00 00 	mvi r15,0                                      
 800fab8:	e0 00 00 1c 	bi 800fb28 <fat_file_write+0x1c4>              
    {                                                                 
        file_cln_cnt = cur_cln - fat_fd->cln;                         
        while (   (RC_OK == rc)                                       
               && (bytes_to_write > 0))                               
        {                                                             
            c = MIN(bytes_to_write, (fs_info->vol.bpc - ofs_cln));    
 800fabc:	2d 84 00 06 	lhu r4,(r12+6)                                 
 800fac0:	c8 93 20 00 	sub r4,r4,r19                                  
 800fac4:	51 a4 00 02 	bgeu r13,r4,800facc <fat_file_write+0x168>     
 800fac8:	b9 a0 20 00 	mv r4,r13                                      
                                                                      
            if (file_cln_initial < file_cln_cnt)                      
 800facc:	56 99 00 02 	bgu r20,r25,800fad4 <fat_file_write+0x170>     
 800fad0:	e0 00 00 02 	bi 800fad8 <fat_file_write+0x174>              
                overwrite_cluster = true;                             
 800fad4:	34 18 00 01 	mvi r24,1                                      
                                                                      
            ret = fat_cluster_write(fs_info,                          
 800fad8:	2b 82 00 44 	lw r2,(sp+68)                                  
 800fadc:	b9 80 08 00 	mv r1,r12                                      
 800fae0:	ba 60 18 00 	mv r3,r19                                      
 800fae4:	b6 cf 28 00 	add r5,r22,r15                                 
 800fae8:	bb 00 30 00 	mv r6,r24                                      
 800faec:	f8 00 02 4c 	calli 801041c <fat_cluster_write>              
                                      cur_cln,                        
                                      ofs_cln,                        
                                      c,                              
                                      &buf[cmpltd],                   
                                      overwrite_cluster);             
            if (0 > ret)                                              
 800faf0:	34 10 ff ff 	mvi r16,-1                                     
 800faf4:	48 01 00 0d 	bg r0,r1,800fb28 <fat_file_write+0x1c4>        <== NEVER TAKEN
              rc = -1;                                                
                                                                      
            if (RC_OK == rc)                                          
            {                                                         
                ++file_cln_cnt;                                       
                bytes_to_write -= ret;                                
 800faf8:	c9 a1 68 00 	sub r13,r13,r1                                 
            if (0 > ret)                                              
              rc = -1;                                                
                                                                      
            if (RC_OK == rc)                                          
            {                                                         
                ++file_cln_cnt;                                       
 800fafc:	36 94 00 01 	addi r20,r20,1                                 
                bytes_to_write -= ret;                                
                cmpltd += ret;                                        
 800fb00:	b5 e1 78 00 	add r15,r15,r1                                 
                save_cln = cur_cln;                                   
 800fb04:	2b 92 00 44 	lw r18,(sp+68)                                 
                if (0 < bytes_to_write)                               
 800fb08:	34 10 00 00 	mvi r16,0                                      
                  rc = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);
                                                                      
                ofs_cln = 0;                                          
 800fb0c:	34 13 00 00 	mvi r19,0                                      
            {                                                         
                ++file_cln_cnt;                                       
                bytes_to_write -= ret;                                
                cmpltd += ret;                                        
                save_cln = cur_cln;                                   
                if (0 < bytes_to_write)                               
 800fb10:	45 a0 00 06 	be r13,r0,800fb28 <fat_file_write+0x1c4>       
                  rc = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);
 800fb14:	b9 80 08 00 	mv r1,r12                                      
 800fb18:	ba 40 10 00 	mv r2,r18                                      
 800fb1c:	ba a0 18 00 	mv r3,r21                                      
 800fb20:	f8 00 1f 94 	calli 8017970 <fat_get_fat_cluster>            
 800fb24:	b8 20 80 00 	mv r16,r1                                      
    rc = fat_file_lseek(fs_info, fat_fd, start_cln, &cur_cln);        
    if (RC_OK == rc)                                                  
    {                                                                 
        file_cln_cnt = cur_cln - fat_fd->cln;                         
        while (   (RC_OK == rc)                                       
               && (bytes_to_write > 0))                               
 800fb28:	7d b7 00 00 	cmpnei r23,r13,0                               
                                                                      
    rc = fat_file_lseek(fs_info, fat_fd, start_cln, &cur_cln);        
    if (RC_OK == rc)                                                  
    {                                                                 
        file_cln_cnt = cur_cln - fat_fd->cln;                         
        while (   (RC_OK == rc)                                       
 800fb2c:	66 01 00 00 	cmpei r1,r16,0                                 
 800fb30:	a2 e1 b8 00 	and r23,r23,r1                                 
 800fb34:	5e e0 ff e2 	bne r23,r0,800fabc <fat_file_write+0x158>      
        }                                                             
                                                                      
        /* update cache */                                            
        /* XXX: check this - I'm not sure :( */                       
        fat_fd->map.file_cln = start_cln +                            
                               ((ofs_cln_save + cmpltd - 1) >> fs_info->vol.bpc_log2);
 800fb38:	41 82 00 08 	lbu r2,(r12+8)                                 
 800fb3c:	35 ce ff ff 	addi r14,r14,-1                                
 800fb40:	b5 cf 08 00 	add r1,r14,r15                                 
 800fb44:	f8 00 71 b3 	calli 802c210 <__lshrsi3>                      
            }                                                         
        }                                                             
                                                                      
        /* update cache */                                            
        /* XXX: check this - I'm not sure :( */                       
        fat_fd->map.file_cln = start_cln +                            
 800fb48:	b4 31 08 00 	add r1,r1,r17                                  
 800fb4c:	59 61 00 34 	sw (r11+52),r1                                 
                               ((ofs_cln_save + cmpltd - 1) >> fs_info->vol.bpc_log2);
        fat_fd->map.disk_cln = save_cln;                              
 800fb50:	59 72 00 38 	sw (r11+56),r18                                
    }                                                                 
                                                                      
    if (RC_OK != rc)                                                  
 800fb54:	ba 00 30 00 	mv r6,r16                                      
 800fb58:	5e 17 00 02 	bne r16,r23,800fb60 <fat_file_write+0x1fc>     <== NEVER TAKEN
      return rc;                                                      
    else                                                              
      return cmpltd;                                                  
 800fb5c:	b9 e0 30 00 	mv r6,r15                                      
                                                       start,         
                                                       count,         
                                                       buf,           
                                                       file_cln_initial);
            if (0 > ret)                                              
              rc = -1;                                                
 800fb60:	34 02 ff ff 	mvi r2,-1                                      
                                                       fat_fd,        
                                                       start,         
                                                       count,         
                                                       buf,           
                                                       file_cln_initial);
            if (0 > ret)                                              
 800fb64:	48 06 00 02 	bg r0,r6,800fb6c <fat_file_write+0x208>        <== NEVER TAKEN
              rc = -1;                                                
            else                                                      
              cmpltd = ret;                                           
 800fb68:	b8 c0 10 00 	mv r2,r6                                       
    }                                                                 
    if (RC_OK != rc)                                                  
        return rc;                                                    
    else                                                              
        return cmpltd;                                                
}                                                                     
 800fb6c:	b8 40 08 00 	mv r1,r2                                       
 800fb70:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800fb74:	2b 8b 00 40 	lw r11,(sp+64)                                 
 800fb78:	2b 8c 00 3c 	lw r12,(sp+60)                                 
 800fb7c:	2b 8d 00 38 	lw r13,(sp+56)                                 
 800fb80:	2b 8e 00 34 	lw r14,(sp+52)                                 
 800fb84:	2b 8f 00 30 	lw r15,(sp+48)                                 
 800fb88:	2b 90 00 2c 	lw r16,(sp+44)                                 
 800fb8c:	2b 91 00 28 	lw r17,(sp+40)                                 
 800fb90:	2b 92 00 24 	lw r18,(sp+36)                                 
 800fb94:	2b 93 00 20 	lw r19,(sp+32)                                 
 800fb98:	2b 94 00 1c 	lw r20,(sp+28)                                 
 800fb9c:	2b 95 00 18 	lw r21,(sp+24)                                 
 800fba0:	2b 96 00 14 	lw r22,(sp+20)                                 
 800fba4:	2b 97 00 10 	lw r23,(sp+16)                                 
 800fba8:	2b 98 00 0c 	lw r24,(sp+12)                                 
 800fbac:	2b 99 00 08 	lw r25,(sp+8)                                  
 800fbb0:	37 9c 00 48 	addi sp,sp,72                                  
 800fbb4:	c3 a0 00 00 	ret                                            
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       cmpltd = 0;                                        
    uint32_t       cur_cln = 0;                                       
    uint32_t       save_cln = 0; /* FIXME: This might be incorrect, cf. below */
    uint32_t       start_cln = start >> fs_info->vol.bpc_log2;        
 800fbb8:	41 8f 00 08 	lbu r15,(r12+8)                                
 800fbbc:	b9 c0 08 00 	mv r1,r14                                      
     const uint8_t                        *buf,                       
     const uint32_t                        file_cln_initial)          
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       cmpltd = 0;                                        
    uint32_t       cur_cln = 0;                                       
 800fbc0:	5b 80 00 44 	sw (sp+68),r0                                  
    uint32_t       save_cln = 0; /* FIXME: This might be incorrect, cf. below */
    uint32_t       start_cln = start >> fs_info->vol.bpc_log2;        
 800fbc4:	b9 e0 10 00 	mv r2,r15                                      
 800fbc8:	f8 00 71 92 	calli 802c210 <__lshrsi3>                      
 800fbcc:	b8 20 88 00 	mv r17,r1                                      
    uint32_t       file_cln_cnt;                                      
    ssize_t        ret;                                               
    uint32_t       c;                                                 
    bool           overwrite_cluster = false;                         
                                                                      
    rc = fat_file_lseek(fs_info, fat_fd, start_cln, &cur_cln);        
 800fbd0:	37 95 00 44 	addi r21,sp,68                                 
 800fbd4:	b9 80 08 00 	mv r1,r12                                      
 800fbd8:	b9 60 10 00 	mv r2,r11                                      
 800fbdc:	ba 20 18 00 	mv r3,r17                                      
 800fbe0:	ba a0 20 00 	mv r4,r21                                      
 800fbe4:	fb ff fc fb 	calli 800efd0 <fat_file_lseek>                 
 800fbe8:	b8 20 30 00 	mv r6,r1                                       
    if (RC_OK == rc)                                                  
 800fbec:	44 20 ff a7 	be r1,r0,800fa88 <fat_file_write+0x124>        <== ALWAYS TAKEN
 800fbf0:	e3 ff ff dc 	bi 800fb60 <fat_file_write+0x1fc>              <== NOT EXECUTED
                                                                      

08017ee4 <fat_free_fat_clusters_chain>: int fat_free_fat_clusters_chain( fat_fs_info_t *fs_info, uint32_t chain ) {
 8017ee4:	37 9c ff e0 	addi sp,sp,-32                                 
 8017ee8:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8017eec:	5b 8c 00 18 	sw (sp+24),r12                                 
 8017ef0:	5b 8d 00 14 	sw (sp+20),r13                                 
 8017ef4:	5b 8e 00 10 	sw (sp+16),r14                                 
 8017ef8:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8017efc:	5b 90 00 08 	sw (sp+8),r16                                  
 8017f00:	5b 9d 00 04 	sw (sp+4),ra                                   
    int            rc = RC_OK, rc1 = RC_OK;                           
    uint32_t       cur_cln = chain;                                   
    uint32_t       next_cln = 0;                                      
    uint32_t       freed_cls_cnt = 0;                                 
 8017f04:	34 0d 00 00 	mvi r13,0                                      
int                                                                   
fat_free_fat_clusters_chain(                                          
    fat_fs_info_t                        *fs_info,                    
    uint32_t                              chain                       
    )                                                                 
{                                                                     
 8017f08:	b8 20 58 00 	mv r11,r1                                      
 8017f0c:	b8 40 80 00 	mv r16,r2                                      
    int            rc = RC_OK, rc1 = RC_OK;                           
    uint32_t       cur_cln = chain;                                   
    uint32_t       next_cln = 0;                                      
 8017f10:	5b 80 00 20 	sw (sp+32),r0                                  
    fat_fs_info_t                        *fs_info,                    
    uint32_t                              chain                       
    )                                                                 
{                                                                     
    int            rc = RC_OK, rc1 = RC_OK;                           
    uint32_t       cur_cln = chain;                                   
 8017f14:	b8 40 70 00 	mv r14,r2                                      
fat_free_fat_clusters_chain(                                          
    fat_fs_info_t                        *fs_info,                    
    uint32_t                              chain                       
    )                                                                 
{                                                                     
    int            rc = RC_OK, rc1 = RC_OK;                           
 8017f18:	34 0f 00 00 	mvi r15,0                                      
    uint32_t       cur_cln = chain;                                   
    uint32_t       next_cln = 0;                                      
    uint32_t       freed_cls_cnt = 0;                                 
                                                                      
    while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)      
 8017f1c:	e0 00 00 17 	bi 8017f78 <fat_free_fat_clusters_chain+0x94>  
    {                                                                 
        rc = fat_get_fat_cluster(fs_info, cur_cln, &next_cln);        
 8017f20:	b9 60 08 00 	mv r1,r11                                      
 8017f24:	b9 c0 10 00 	mv r2,r14                                      
 8017f28:	37 83 00 20 	addi r3,sp,32                                  
 8017f2c:	fb ff fe 91 	calli 8017970 <fat_get_fat_cluster>            
 8017f30:	b8 20 60 00 	mv r12,r1                                      
        if ( rc != RC_OK )                                            
 8017f34:	44 20 00 09 	be r1,r0,8017f58 <fat_free_fat_clusters_chain+0x74><== ALWAYS TAKEN
        {                                                             
              if(fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)        
 8017f38:	29 61 00 44 	lw r1,(r11+68)                                 <== NOT EXECUTED
 8017f3c:	34 02 ff ff 	mvi r2,-1                                      <== NOT EXECUTED
 8017f40:	44 22 00 03 	be r1,r2,8017f4c <fat_free_fat_clusters_chain+0x68><== NOT EXECUTED
                fs_info->vol.free_cls += freed_cls_cnt;               
 8017f44:	b5 a1 68 00 	add r13,r13,r1                                 <== NOT EXECUTED
 8017f48:	59 6d 00 44 	sw (r11+68),r13                                <== NOT EXECUTED
                                                                      
            fat_buf_release(fs_info);                                 
 8017f4c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8017f50:	fb ff df 97 	calli 800fdac <fat_buf_release>                <== NOT EXECUTED
            return rc;                                                
 8017f54:	e0 00 00 16 	bi 8017fac <fat_free_fat_clusters_chain+0xc8>  <== NOT EXECUTED
        }                                                             
                                                                      
        rc = fat_set_fat_cluster(fs_info, cur_cln, FAT_GENFAT_FREE);  
 8017f58:	b9 60 08 00 	mv r1,r11                                      
 8017f5c:	b9 c0 10 00 	mv r2,r14                                      
 8017f60:	34 03 00 00 	mvi r3,0                                       
 8017f64:	fb ff ff 0e 	calli 8017b9c <fat_set_fat_cluster>            
        if ( rc != RC_OK )                                            
 8017f68:	44 2c 00 02 	be r1,r12,8017f70 <fat_free_fat_clusters_chain+0x8c><== ALWAYS TAKEN
 8017f6c:	b8 20 78 00 	mv r15,r1                                      <== NOT EXECUTED
            rc1 = rc;                                                 
                                                                      
        freed_cls_cnt++;                                              
        cur_cln = next_cln;                                           
 8017f70:	2b 8e 00 20 	lw r14,(sp+32)                                 
                                                                      
        rc = fat_set_fat_cluster(fs_info, cur_cln, FAT_GENFAT_FREE);  
        if ( rc != RC_OK )                                            
            rc1 = rc;                                                 
                                                                      
        freed_cls_cnt++;                                              
 8017f74:	35 ad 00 01 	addi r13,r13,1                                 
    int            rc = RC_OK, rc1 = RC_OK;                           
    uint32_t       cur_cln = chain;                                   
    uint32_t       next_cln = 0;                                      
    uint32_t       freed_cls_cnt = 0;                                 
                                                                      
    while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)      
 8017f78:	29 61 00 10 	lw r1,(r11+16)                                 
 8017f7c:	29 62 00 14 	lw r2,(r11+20)                                 
 8017f80:	a1 c1 08 00 	and r1,r14,r1                                  
 8017f84:	54 41 ff e7 	bgu r2,r1,8017f20 <fat_free_fat_clusters_chain+0x3c>
        freed_cls_cnt++;                                              
        cur_cln = next_cln;                                           
    }                                                                 
                                                                      
        fs_info->vol.next_cl = chain;                                 
        if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)             
 8017f88:	29 61 00 44 	lw r1,(r11+68)                                 
                                                                      
        freed_cls_cnt++;                                              
        cur_cln = next_cln;                                           
    }                                                                 
                                                                      
        fs_info->vol.next_cl = chain;                                 
 8017f8c:	59 70 00 4c 	sw (r11+76),r16                                
        if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)             
 8017f90:	34 02 ff ff 	mvi r2,-1                                      
 8017f94:	44 22 00 03 	be r1,r2,8017fa0 <fat_free_fat_clusters_chain+0xbc><== ALWAYS TAKEN
            fs_info->vol.free_cls += freed_cls_cnt;                   
 8017f98:	b5 a1 68 00 	add r13,r13,r1                                 <== NOT EXECUTED
 8017f9c:	59 6d 00 44 	sw (r11+68),r13                                <== NOT EXECUTED
                                                                      
    fat_buf_release(fs_info);                                         
 8017fa0:	b9 60 08 00 	mv r1,r11                                      
 8017fa4:	fb ff df 82 	calli 800fdac <fat_buf_release>                
 8017fa8:	b9 e0 60 00 	mv r12,r15                                     
    if (rc1 != RC_OK)                                                 
        return rc1;                                                   
                                                                      
    return RC_OK;                                                     
}                                                                     
 8017fac:	b9 80 08 00 	mv r1,r12                                      
 8017fb0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8017fb4:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8017fb8:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8017fbc:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8017fc0:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8017fc4:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8017fc8:	2b 90 00 08 	lw r16,(sp+8)                                  
 8017fcc:	37 9c 00 20 	addi sp,sp,32                                  
 8017fd0:	c3 a0 00 00 	ret                                            
                                                                      

080111f8 <fat_free_unique_ino>: void fat_free_unique_ino( fat_fs_info_t *fs_info, uint32_t ino ) {
 80111f8:	37 9c ff f4 	addi sp,sp,-12                                 <== NOT EXECUTED
 80111fc:	5b 8b 00 0c 	sw (sp+12),r11                                 <== NOT EXECUTED
 8011200:	5b 8c 00 08 	sw (sp+8),r12                                  <== NOT EXECUTED
 8011204:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
    FAT_SET_UNIQ_INO_FREE((ino - fs_info->uino_base), fs_info->uino); 
 8011208:	28 2c 00 80 	lw r12,(r1+128)                                <== NOT EXECUTED
void                                                                  
fat_free_unique_ino(                                                  
    fat_fs_info_t                        *fs_info,                    
    uint32_t                              ino                         
    )                                                                 
{                                                                     
 801120c:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
    FAT_SET_UNIQ_INO_FREE((ino - fs_info->uino_base), fs_info->uino); 
 8011210:	c8 4c 60 00 	sub r12,r2,r12                                 <== NOT EXECUTED
 8011214:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8011218:	34 02 00 03 	mvi r2,3                                       <== NOT EXECUTED
 801121c:	f8 00 6b fd 	calli 802c210 <__lshrsi3>                      <== NOT EXECUTED
 8011220:	29 6b 00 74 	lw r11,(r11+116)                               <== NOT EXECUTED
 8011224:	21 82 00 07 	andi r2,r12,0x7                                <== NOT EXECUTED
 8011228:	b5 61 58 00 	add r11,r11,r1                                 <== NOT EXECUTED
 801122c:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
 8011230:	fb ff bf ee 	calli 80011e8 <__ashlsi3>                      <== NOT EXECUTED
 8011234:	41 62 00 00 	lbu r2,(r11+0)                                 <== NOT EXECUTED
 8011238:	a4 20 08 00 	not r1,r1                                      <== NOT EXECUTED
 801123c:	a0 22 08 00 	and r1,r1,r2                                   <== NOT EXECUTED
 8011240:	31 61 00 00 	sb (r11+0),r1                                  <== NOT EXECUTED
}                                                                     
 8011244:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 8011248:	2b 8b 00 0c 	lw r11,(sp+12)                                 <== NOT EXECUTED
 801124c:	2b 8c 00 08 	lw r12,(sp+8)                                  <== NOT EXECUTED
 8011250:	37 9c 00 0c 	addi sp,sp,12                                  <== NOT EXECUTED
 8011254:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08017970 <fat_get_fat_cluster>: fat_get_fat_cluster( fat_fs_info_t *fs_info, uint32_t cln, uint32_t *ret_val ) {
 8017970:	37 9c ff dc 	addi sp,sp,-36                                 
 8017974:	5b 8b 00 20 	sw (sp+32),r11                                 
 8017978:	5b 8c 00 1c 	sw (sp+28),r12                                 
 801797c:	5b 8d 00 18 	sw (sp+24),r13                                 
 8017980:	5b 8e 00 14 	sw (sp+20),r14                                 
 8017984:	5b 8f 00 10 	sw (sp+16),r15                                 
 8017988:	5b 90 00 0c 	sw (sp+12),r16                                 
 801798c:	5b 91 00 08 	sw (sp+8),r17                                  
 8017990:	5b 9d 00 04 	sw (sp+4),ra                                   
 8017994:	b8 20 68 00 	mv r13,r1                                      
    uint8_t                *sec_buf;                                  
    uint32_t                sec = 0;                                  
    uint32_t                ofs = 0;                                  
                                                                      
    /* sanity check */                                                
    if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )           
 8017998:	34 01 00 01 	mvi r1,1                                       
fat_get_fat_cluster(                                                  
    fat_fs_info_t                        *fs_info,                    
    uint32_t                              cln,                        
    uint32_t                             *ret_val                     
    )                                                                 
{                                                                     
 801799c:	b8 40 60 00 	mv r12,r2                                      
 80179a0:	b8 60 58 00 	mv r11,r3                                      
    uint8_t                *sec_buf;                                  
    uint32_t                sec = 0;                                  
    uint32_t                ofs = 0;                                  
                                                                      
    /* sanity check */                                                
    if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )           
 80179a4:	50 22 00 6d 	bgeu r1,r2,8017b58 <fat_get_fat_cluster+0x1e8> <== NEVER TAKEN
 80179a8:	29 a1 00 38 	lw r1,(r13+56)                                 
 80179ac:	34 21 00 01 	addi r1,r1,1                                   
 80179b0:	50 22 00 02 	bgeu r1,r2,80179b8 <fat_get_fat_cluster+0x48>  <== ALWAYS TAKEN
 80179b4:	e0 00 00 69 	bi 8017b58 <fat_get_fat_cluster+0x1e8>         <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) +
 80179b8:	41 af 00 0e 	lbu r15,(r13+14)                               
 80179bc:	21 ee 00 01 	andi r14,r15,0x1                               
 80179c0:	45 c0 00 06 	be r14,r0,80179d8 <fat_get_fat_cluster+0x68>   
 80179c4:	b8 40 08 00 	mv r1,r2                                       
 80179c8:	34 02 00 01 	mvi r2,1                                       
 80179cc:	f8 00 52 11 	calli 802c210 <__lshrsi3>                      
 80179d0:	b4 2c 08 00 	add r1,r1,r12                                  
 80179d4:	e0 00 00 09 	bi 80179f8 <fat_get_fat_cluster+0x88>          
 80179d8:	21 e1 00 02 	andi r1,r15,0x2                                
 80179dc:	44 2e 00 04 	be r1,r14,80179ec <fat_get_fat_cluster+0x7c>   
 80179e0:	b8 40 08 00 	mv r1,r2                                       
 80179e4:	34 02 00 01 	mvi r2,1                                       
 80179e8:	e0 00 00 03 	bi 80179f4 <fat_get_fat_cluster+0x84>          
 80179ec:	b8 40 08 00 	mv r1,r2                                       
 80179f0:	34 02 00 02 	mvi r2,2                                       
 80179f4:	fb ff a5 fd 	calli 80011e8 <__ashlsi3>                      
 80179f8:	41 a2 00 02 	lbu r2,(r13+2)                                 
 80179fc:	f8 00 52 05 	calli 802c210 <__lshrsi3>                      
 8017a00:	29 b0 00 58 	lw r16,(r13+88)                                
 8017a04:	b4 30 80 00 	add r16,r1,r16                                 
          fs_info->vol.afat_loc;                                      
    ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
 8017a08:	45 c0 00 06 	be r14,r0,8017a20 <fat_get_fat_cluster+0xb0>   
 8017a0c:	b9 80 08 00 	mv r1,r12                                      
 8017a10:	34 02 00 01 	mvi r2,1                                       
 8017a14:	f8 00 51 ff 	calli 802c210 <__lshrsi3>                      
 8017a18:	b4 2c 78 00 	add r15,r1,r12                                 
 8017a1c:	e0 00 00 09 	bi 8017a40 <fat_get_fat_cluster+0xd0>          
 8017a20:	21 ef 00 02 	andi r15,r15,0x2                               
 8017a24:	b9 80 08 00 	mv r1,r12                                      
 8017a28:	34 02 00 01 	mvi r2,1                                       
 8017a2c:	5d ee 00 03 	bne r15,r14,8017a38 <fat_get_fat_cluster+0xc8> 
 8017a30:	b9 80 08 00 	mv r1,r12                                      
 8017a34:	34 02 00 02 	mvi r2,2                                       
 8017a38:	fb ff a5 ec 	calli 80011e8 <__ashlsi3>                      
 8017a3c:	b8 20 78 00 	mv r15,r1                                      
                                                                      
    rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &sec_buf);    
 8017a40:	b9 a0 08 00 	mv r1,r13                                      
 8017a44:	ba 00 10 00 	mv r2,r16                                      
 8017a48:	34 03 00 01 	mvi r3,1                                       
 8017a4c:	37 84 00 24 	addi r4,sp,36                                  
    if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )           
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) +
          fs_info->vol.afat_loc;                                      
    ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
 8017a50:	2d b1 00 00 	lhu r17,(r13+0)                                
                                                                      
    rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &sec_buf);    
 8017a54:	fb ff e1 54 	calli 800ffa4 <fat_buf_access>                 
 8017a58:	b8 20 70 00 	mv r14,r1                                      
    if (rc != RC_OK)                                                  
 8017a5c:	5c 20 00 45 	bne r1,r0,8017b70 <fat_get_fat_cluster+0x200>  <== NEVER TAKEN
        return rc;                                                    
                                                                      
    switch ( fs_info->vol.type )                                      
 8017a60:	41 a4 00 0e 	lbu r4,(r13+14)                                
    if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )           
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) +
          fs_info->vol.afat_loc;                                      
    ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
 8017a64:	36 23 ff ff 	addi r3,r17,-1                                 
                                                                      
    rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &sec_buf);    
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    switch ( fs_info->vol.type )                                      
 8017a68:	34 01 00 02 	mvi r1,2                                       
    if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )           
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) +
          fs_info->vol.afat_loc;                                      
    ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
 8017a6c:	a1 e3 18 00 	and r3,r15,r3                                  
                                                                      
    rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &sec_buf);    
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    switch ( fs_info->vol.type )                                      
 8017a70:	44 81 00 27 	be r4,r1,8017b0c <fat_get_fat_cluster+0x19c>   
 8017a74:	34 01 00 04 	mvi r1,4                                       
 8017a78:	44 81 00 32 	be r4,r1,8017b40 <fat_get_fat_cluster+0x1d0>   
 8017a7c:	34 01 00 01 	mvi r1,1                                       
 8017a80:	5c 81 00 36 	bne r4,r1,8017b58 <fat_get_fat_cluster+0x1e8>  <== NEVER TAKEN
        case FAT_FAT12:                                               
            /*                                                        
             * we are enforced in complex computations for FAT12 to escape CPU
             * align problems for some architectures                  
             */                                                       
            *ret_val = (*(sec_buf + ofs));                            
 8017a84:	2b 84 00 24 	lw r4,(sp+36)                                  
            if ( ofs == (fs_info->vol.bps - 1) )                      
 8017a88:	2d a1 00 00 	lhu r1,(r13+0)                                 
        case FAT_FAT12:                                               
            /*                                                        
             * we are enforced in complex computations for FAT12 to escape CPU
             * align problems for some architectures                  
             */                                                       
            *ret_val = (*(sec_buf + ofs));                            
 8017a8c:	b4 83 20 00 	add r4,r4,r3                                   
 8017a90:	40 8f 00 00 	lbu r15,(r4+0)                                 
            if ( ofs == (fs_info->vol.bps - 1) )                      
 8017a94:	34 21 ff ff 	addi r1,r1,-1                                  
        case FAT_FAT12:                                               
            /*                                                        
             * we are enforced in complex computations for FAT12 to escape CPU
             * align problems for some architectures                  
             */                                                       
            *ret_val = (*(sec_buf + ofs));                            
 8017a98:	59 6f 00 00 	sw (r11+0),r15                                 
            if ( ofs == (fs_info->vol.bps - 1) )                      
 8017a9c:	5c 61 00 0e 	bne r3,r1,8017ad4 <fat_get_fat_cluster+0x164>  <== ALWAYS TAKEN
            {                                                         
                rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
 8017aa0:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 8017aa4:	36 02 00 01 	addi r2,r16,1                                  <== NOT EXECUTED
 8017aa8:	34 03 00 01 	mvi r3,1                                       <== NOT EXECUTED
 8017aac:	37 84 00 24 	addi r4,sp,36                                  <== NOT EXECUTED
 8017ab0:	fb ff e1 3d 	calli 800ffa4 <fat_buf_access>                 <== NOT EXECUTED
                                    &sec_buf);                        
                if (rc != RC_OK)                                      
 8017ab4:	5c 20 00 2e 	bne r1,r0,8017b6c <fat_get_fat_cluster+0x1fc>  <== NOT EXECUTED
                    return rc;                                        
                                                                      
                *ret_val |= *sec_buf << 8;                            
 8017ab8:	2b 81 00 24 	lw r1,(sp+36)                                  <== NOT EXECUTED
 8017abc:	34 02 00 08 	mvi r2,8                                       <== NOT EXECUTED
 8017ac0:	40 21 00 00 	lbu r1,(r1+0)                                  <== NOT EXECUTED
 8017ac4:	fb ff a5 c9 	calli 80011e8 <__ashlsi3>                      <== NOT EXECUTED
 8017ac8:	29 62 00 00 	lw r2,(r11+0)                                  <== NOT EXECUTED
 8017acc:	b8 41 08 00 	or r1,r2,r1                                    <== NOT EXECUTED
 8017ad0:	e0 00 00 05 	bi 8017ae4 <fat_get_fat_cluster+0x174>         <== NOT EXECUTED
            }                                                         
            else                                                      
            {                                                         
                *ret_val |= *(sec_buf + ofs + 1) << 8;                
 8017ad4:	40 81 00 01 	lbu r1,(r4+1)                                  
 8017ad8:	34 02 00 08 	mvi r2,8                                       
 8017adc:	fb ff a5 c3 	calli 80011e8 <__ashlsi3>                      
 8017ae0:	b8 2f 08 00 	or r1,r1,r15                                   
 8017ae4:	59 61 00 00 	sw (r11+0),r1                                  
            }                                                         
                                                                      
            if ( FAT_CLUSTER_IS_ODD(cln) )                            
 8017ae8:	21 8c 00 01 	andi r12,r12,0x1                               
 8017aec:	45 80 00 05 	be r12,r0,8017b00 <fat_get_fat_cluster+0x190>  
                *ret_val = (*ret_val) >> FAT12_SHIFT;                 
 8017af0:	29 61 00 00 	lw r1,(r11+0)                                  
 8017af4:	34 02 00 04 	mvi r2,4                                       
 8017af8:	f8 00 51 c6 	calli 802c210 <__lshrsi3>                      
 8017afc:	e0 00 00 15 	bi 8017b50 <fat_get_fat_cluster+0x1e0>         
            else                                                      
                *ret_val = (*ret_val) & FAT_FAT12_MASK;               
 8017b00:	29 61 00 00 	lw r1,(r11+0)                                  
 8017b04:	20 21 0f ff 	andi r1,r1,0xfff                               
 8017b08:	e0 00 00 12 	bi 8017b50 <fat_get_fat_cluster+0x1e0>         
            break;                                                    
                                                                      
        case FAT_FAT16:                                               
            *ret_val = *((uint16_t   *)(sec_buf + ofs));              
 8017b0c:	2b 81 00 24 	lw r1,(sp+36)                                  
 *  @param[in] value is the value to be swapped                       
 *  @return the value after being endian swapped                      
 */                                                                   
static inline uint16_t CPU_swap_u16(uint16_t v)                       
{                                                                     
    return v << 8 | v >> 8;                                           
 8017b10:	34 02 00 08 	mvi r2,8                                       
 8017b14:	b4 23 18 00 	add r3,r1,r3                                   
 8017b18:	2c 6c 00 00 	lhu r12,(r3+0)                                 
 8017b1c:	b9 80 08 00 	mv r1,r12                                      
 8017b20:	fb ff a5 b2 	calli 80011e8 <__ashlsi3>                      
 8017b24:	b8 20 68 00 	mv r13,r1                                      
 8017b28:	34 02 00 08 	mvi r2,8                                       
 8017b2c:	b9 80 08 00 	mv r1,r12                                      
 8017b30:	f8 00 51 b8 	calli 802c210 <__lshrsi3>                      
 8017b34:	b9 a1 08 00 	or r1,r13,r1                                   
            *ret_val = CF_LE_W(*ret_val);                             
 8017b38:	20 21 ff ff 	andi r1,r1,0xffff                              
 8017b3c:	e0 00 00 05 	bi 8017b50 <fat_get_fat_cluster+0x1e0>         
            break;                                                    
                                                                      
        case FAT_FAT32:                                               
            *ret_val = *((uint32_t   *)(sec_buf + ofs));              
 8017b40:	2b 81 00 24 	lw r1,(sp+36)                                  
 8017b44:	b4 23 18 00 	add r3,r1,r3                                   
            *ret_val = CF_LE_L(*ret_val);                             
 8017b48:	28 61 00 00 	lw r1,(r3+0)                                   
 8017b4c:	fb ff ff 69 	calli 80178f0 <CPU_swap_u32>                   
 8017b50:	59 61 00 00 	sw (r11+0),r1                                  
            break;                                                    
 8017b54:	e0 00 00 07 	bi 8017b70 <fat_get_fat_cluster+0x200>         
                                                                      
        default:                                                      
            rtems_set_errno_and_return_minus_one(EIO);                
 8017b58:	f8 00 07 ad 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 8017b5c:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 8017b60:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 8017b64:	34 0e ff ff 	mvi r14,-1                                     <== NOT EXECUTED
 8017b68:	e0 00 00 02 	bi 8017b70 <fat_get_fat_cluster+0x200>         <== NOT EXECUTED
            *ret_val = (*(sec_buf + ofs));                            
            if ( ofs == (fs_info->vol.bps - 1) )                      
            {                                                         
                rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
                                    &sec_buf);                        
                if (rc != RC_OK)                                      
 8017b6c:	b8 20 70 00 	mv r14,r1                                      <== NOT EXECUTED
            rtems_set_errno_and_return_minus_one(EIO);                
            break;                                                    
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
 8017b70:	b9 c0 08 00 	mv r1,r14                                      
 8017b74:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8017b78:	2b 8b 00 20 	lw r11,(sp+32)                                 
 8017b7c:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 8017b80:	2b 8d 00 18 	lw r13,(sp+24)                                 
 8017b84:	2b 8e 00 14 	lw r14,(sp+20)                                 
 8017b88:	2b 8f 00 10 	lw r15,(sp+16)                                 
 8017b8c:	2b 90 00 0c 	lw r16,(sp+12)                                 
 8017b90:	2b 91 00 08 	lw r17,(sp+8)                                  
 8017b94:	37 9c 00 24 	addi sp,sp,36                                  
 8017b98:	c3 a0 00 00 	ret                                            
                                                                      

080110d8 <fat_get_unique_ino>: * 0 means FAILED !!! * */ uint32_t fat_get_unique_ino(fat_fs_info_t *fs_info) {
 80110d8:	37 9c ff dc 	addi sp,sp,-36                                 <== NOT EXECUTED
 80110dc:	5b 8b 00 24 	sw (sp+36),r11                                 <== NOT EXECUTED
 80110e0:	5b 8c 00 20 	sw (sp+32),r12                                 <== NOT EXECUTED
 80110e4:	5b 8d 00 1c 	sw (sp+28),r13                                 <== NOT EXECUTED
 80110e8:	5b 8e 00 18 	sw (sp+24),r14                                 <== NOT EXECUTED
 80110ec:	5b 8f 00 14 	sw (sp+20),r15                                 <== NOT EXECUTED
 80110f0:	5b 90 00 10 	sw (sp+16),r16                                 <== NOT EXECUTED
 80110f4:	5b 91 00 0c 	sw (sp+12),r17                                 <== NOT EXECUTED
 80110f8:	5b 92 00 08 	sw (sp+8),r18                                  <== NOT EXECUTED
 80110fc:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
 8011100:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
            fs_info->index++;                                         
            if (fs_info->index >= fs_info->uino_pool_size)            
                fs_info->index = 0;                                   
        }                                                             
                                                                      
        if ((fs_info->uino_pool_size << 1) < (0x0FFFFFFF - fs_info->uino_base))
 8011104:	78 01 08 02 	mvhi r1,0x802                                  <== NOT EXECUTED
 8011108:	38 21 d5 2c 	ori r1,r1,0xd52c                               <== NOT EXECUTED
 801110c:	28 32 00 00 	lw r18,(r1+0)                                  <== NOT EXECUTED
fat_get_unique_ino(fat_fs_info_t *fs_info)                            
{                                                                     
    uint32_t                j = 0;                                    
    bool                    resrc_unsuff = false;                     
                                                                      
    while (!resrc_unsuff)                                             
 8011110:	e0 00 00 2b 	bi 80111bc <fat_get_unique_ino+0xe4>           <== NOT EXECUTED
    {                                                                 
        for (j = 0; j < fs_info->uino_pool_size; j++)                 
        {                                                             
            if (!FAT_UNIQ_INO_IS_BUSY(fs_info->index, fs_info->uino)) 
 8011114:	29 6e 00 78 	lw r14,(r11+120)                               <== NOT EXECUTED
 8011118:	34 02 00 03 	mvi r2,3                                       <== NOT EXECUTED
 801111c:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 8011120:	f8 00 6c 3c 	calli 802c210 <__lshrsi3>                      <== NOT EXECUTED
 8011124:	29 6f 00 74 	lw r15,(r11+116)                               <== NOT EXECUTED
 8011128:	21 d1 00 07 	andi r17,r14,0x7                               <== NOT EXECUTED
 801112c:	ba 20 10 00 	mv r2,r17                                      <== NOT EXECUTED
 8011130:	b5 e1 78 00 	add r15,r15,r1                                 <== NOT EXECUTED
 8011134:	41 f0 00 00 	lbu r16,(r15+0)                                <== NOT EXECUTED
 8011138:	ba 00 08 00 	mv r1,r16                                      <== NOT EXECUTED
 801113c:	fb ff c0 52 	calli 8001284 <__ashrsi3>                      <== NOT EXECUTED
 8011140:	20 21 00 01 	andi r1,r1,0x1                                 <== NOT EXECUTED
 8011144:	5c 20 00 0a 	bne r1,r0,801116c <fat_get_unique_ino+0x94>    <== NOT EXECUTED
            {                                                         
                FAT_SET_UNIQ_INO_BUSY(fs_info->index, fs_info->uino); 
 8011148:	ba 20 10 00 	mv r2,r17                                      <== NOT EXECUTED
 801114c:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
 8011150:	fb ff c0 26 	calli 80011e8 <__ashlsi3>                      <== NOT EXECUTED
 8011154:	b8 30 08 00 	or r1,r1,r16                                   <== NOT EXECUTED
 8011158:	31 e1 00 00 	sb (r15+0),r1                                  <== NOT EXECUTED
                return (fs_info->uino_base + fs_info->index);         
 801115c:	29 62 00 78 	lw r2,(r11+120)                                <== NOT EXECUTED
 8011160:	29 61 00 80 	lw r1,(r11+128)                                <== NOT EXECUTED
 8011164:	b4 41 08 00 	add r1,r2,r1                                   <== NOT EXECUTED
 8011168:	e0 00 00 19 	bi 80111cc <fat_get_unique_ino+0xf4>           <== NOT EXECUTED
            }                                                         
            fs_info->index++;                                         
 801116c:	35 ce 00 01 	addi r14,r14,1                                 <== NOT EXECUTED
 8011170:	59 6e 00 78 	sw (r11+120),r14                               <== NOT EXECUTED
            if (fs_info->index >= fs_info->uino_pool_size)            
 8011174:	55 ae 00 02 	bgu r13,r14,801117c <fat_get_unique_ino+0xa4>  <== NOT EXECUTED
                fs_info->index = 0;                                   
 8011178:	59 60 00 78 	sw (r11+120),r0                                <== NOT EXECUTED
    uint32_t                j = 0;                                    
    bool                    resrc_unsuff = false;                     
                                                                      
    while (!resrc_unsuff)                                             
    {                                                                 
        for (j = 0; j < fs_info->uino_pool_size; j++)                 
 801117c:	35 8c 00 01 	addi r12,r12,1                                 <== NOT EXECUTED
 8011180:	55 ac ff e5 	bgu r13,r12,8011114 <fat_get_unique_ino+0x3c>  <== NOT EXECUTED
            fs_info->index++;                                         
            if (fs_info->index >= fs_info->uino_pool_size)            
                fs_info->index = 0;                                   
        }                                                             
                                                                      
        if ((fs_info->uino_pool_size << 1) < (0x0FFFFFFF - fs_info->uino_base))
 8011184:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 8011188:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 801118c:	fb ff c0 17 	calli 80011e8 <__ashlsi3>                      <== NOT EXECUTED
 8011190:	b8 20 10 00 	mv r2,r1                                       <== NOT EXECUTED
 8011194:	29 61 00 80 	lw r1,(r11+128)                                <== NOT EXECUTED
 8011198:	ca 41 08 00 	sub r1,r18,r1                                  <== NOT EXECUTED
 801119c:	50 41 00 0b 	bgeu r2,r1,80111c8 <fat_get_unique_ino+0xf0>   <== NOT EXECUTED
        {                                                             
            fs_info->uino_pool_size <<= 1;                            
            fs_info->uino = realloc(fs_info->uino, fs_info->uino_pool_size);
 80111a0:	29 61 00 74 	lw r1,(r11+116)                                <== NOT EXECUTED
                fs_info->index = 0;                                   
        }                                                             
                                                                      
        if ((fs_info->uino_pool_size << 1) < (0x0FFFFFFF - fs_info->uino_base))
        {                                                             
            fs_info->uino_pool_size <<= 1;                            
 80111a4:	59 62 00 7c 	sw (r11+124),r2                                <== NOT EXECUTED
            fs_info->uino = realloc(fs_info->uino, fs_info->uino_pool_size);
 80111a8:	fb ff cc 07 	calli 80041c4 <realloc>                        <== NOT EXECUTED
 80111ac:	59 61 00 74 	sw (r11+116),r1                                <== NOT EXECUTED
            if (fs_info->uino != NULL)                                
 80111b0:	44 20 00 06 	be r1,r0,80111c8 <fat_get_unique_ino+0xf0>     <== NOT EXECUTED
                fs_info->index = fs_info->uino_pool_size;             
 80111b4:	29 61 00 7c 	lw r1,(r11+124)                                <== NOT EXECUTED
 80111b8:	59 61 00 78 	sw (r11+120),r1                                <== NOT EXECUTED
    uint32_t                j = 0;                                    
    bool                    resrc_unsuff = false;                     
                                                                      
    while (!resrc_unsuff)                                             
    {                                                                 
        for (j = 0; j < fs_info->uino_pool_size; j++)                 
 80111bc:	29 6d 00 7c 	lw r13,(r11+124)                               <== NOT EXECUTED
 80111c0:	34 0c 00 00 	mvi r12,0                                      <== NOT EXECUTED
 80111c4:	e3 ff ff ef 	bi 8011180 <fat_get_unique_ino+0xa8>           <== NOT EXECUTED
                resrc_unsuff = true;                                  
        }                                                             
        else                                                          
            resrc_unsuff = true;                                      
    }                                                                 
    return 0;                                                         
 80111c8:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
}                                                                     
 80111cc:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 80111d0:	2b 8b 00 24 	lw r11,(sp+36)                                 <== NOT EXECUTED
 80111d4:	2b 8c 00 20 	lw r12,(sp+32)                                 <== NOT EXECUTED
 80111d8:	2b 8d 00 1c 	lw r13,(sp+28)                                 <== NOT EXECUTED
 80111dc:	2b 8e 00 18 	lw r14,(sp+24)                                 <== NOT EXECUTED
 80111e0:	2b 8f 00 14 	lw r15,(sp+20)                                 <== NOT EXECUTED
 80111e4:	2b 90 00 10 	lw r16,(sp+16)                                 <== NOT EXECUTED
 80111e8:	2b 91 00 0c 	lw r17,(sp+12)                                 <== NOT EXECUTED
 80111ec:	2b 92 00 08 	lw r18,(sp+8)                                  <== NOT EXECUTED
 80111f0:	37 9c 00 24 	addi sp,sp,36                                  <== NOT EXECUTED
 80111f4:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08011060 <fat_init_clusters_chain>: int fat_init_clusters_chain( fat_fs_info_t *fs_info, uint32_t start_cln ) {
 8011060:	37 9c ff f4 	addi sp,sp,-12                                 
 8011064:	5b 8b 00 08 	sw (sp+8),r11                                  
 8011068:	5b 9d 00 04 	sw (sp+4),ra                                   
 801106c:	b8 20 58 00 	mv r11,r1                                      
    int                     rc = RC_OK;                               
    ssize_t                 ret = 0;                                  
    uint32_t                cur_cln = start_cln;                      
 8011070:	5b 82 00 0c 	sw (sp+12),r2                                  
                                                                      
    while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)      
 8011074:	e0 00 00 0d 	bi 80110a8 <fat_init_clusters_chain+0x48>      
    {                                                                 
        ret = fat_cluster_set(fs_info, cur_cln, 0, fs_info->vol.bpc, 0);
 8011078:	2d 64 00 06 	lhu r4,(r11+6)                                 
 801107c:	b9 60 08 00 	mv r1,r11                                      
 8011080:	34 03 00 00 	mvi r3,0                                       
 8011084:	34 05 00 00 	mvi r5,0                                       
 8011088:	fb ff fc 75 	calli 801025c <fat_cluster_set>                
        if ( ret != fs_info->vol.bpc )                                
 801108c:	2d 62 00 06 	lhu r2,(r11+6)                                 
 8011090:	5c 22 00 0d 	bne r1,r2,80110c4 <fat_init_clusters_chain+0x64><== NEVER TAKEN
        {                                                             
            return -1;                                                
        }                                                             
                                                                      
        rc  = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);        
 8011094:	2b 82 00 0c 	lw r2,(sp+12)                                  
 8011098:	b9 60 08 00 	mv r1,r11                                      
 801109c:	37 83 00 0c 	addi r3,sp,12                                  
 80110a0:	f8 00 1a 34 	calli 8017970 <fat_get_fat_cluster>            
        if ( rc != RC_OK )                                            
 80110a4:	5c 20 00 09 	bne r1,r0,80110c8 <fat_init_clusters_chain+0x68><== NEVER TAKEN
{                                                                     
    int                     rc = RC_OK;                               
    ssize_t                 ret = 0;                                  
    uint32_t                cur_cln = start_cln;                      
                                                                      
    while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)      
 80110a8:	2b 82 00 0c 	lw r2,(sp+12)                                  
 80110ac:	29 61 00 10 	lw r1,(r11+16)                                 
 80110b0:	29 63 00 14 	lw r3,(r11+20)                                 
 80110b4:	a0 41 08 00 	and r1,r2,r1                                   
 80110b8:	54 61 ff f0 	bgu r3,r1,8011078 <fat_init_clusters_chain+0x18>
            return rc;                                                
        }                                                             
                                                                      
    }                                                                 
                                                                      
    return rc;                                                        
 80110bc:	34 01 00 00 	mvi r1,0                                       
 80110c0:	e0 00 00 02 	bi 80110c8 <fat_init_clusters_chain+0x68>      
    while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)      
    {                                                                 
        ret = fat_cluster_set(fs_info, cur_cln, 0, fs_info->vol.bpc, 0);
        if ( ret != fs_info->vol.bpc )                                
        {                                                             
            return -1;                                                
 80110c4:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
        }                                                             
                                                                      
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
 80110c8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80110cc:	2b 8b 00 08 	lw r11,(sp+8)                                  
 80110d0:	37 9c 00 0c 	addi sp,sp,12                                  
 80110d4:	c3 a0 00 00 	ret                                            
                                                                      

080105ec <fat_init_volume_info>: * RC_OK on success, or -1 if error occured * and errno set appropriately */ int fat_init_volume_info(fat_fs_info_t *fs_info, const char *device) {
 80105ec:	37 9c ff 24 	addi sp,sp,-220                                
 80105f0:	5b 8b 00 44 	sw (sp+68),r11                                 
 80105f4:	5b 8c 00 40 	sw (sp+64),r12                                 
 80105f8:	5b 8d 00 3c 	sw (sp+60),r13                                 
 80105fc:	5b 8e 00 38 	sw (sp+56),r14                                 
 8010600:	5b 8f 00 34 	sw (sp+52),r15                                 
 8010604:	5b 90 00 30 	sw (sp+48),r16                                 
 8010608:	5b 91 00 2c 	sw (sp+44),r17                                 
 801060c:	5b 92 00 28 	sw (sp+40),r18                                 
 8010610:	5b 93 00 24 	sw (sp+36),r19                                 
 8010614:	5b 94 00 20 	sw (sp+32),r20                                 
 8010618:	5b 95 00 1c 	sw (sp+28),r21                                 
 801061c:	5b 96 00 18 	sw (sp+24),r22                                 
 8010620:	5b 97 00 14 	sw (sp+20),r23                                 
 8010624:	5b 98 00 10 	sw (sp+16),r24                                 
 8010628:	5b 99 00 0c 	sw (sp+12),r25                                 
 801062c:	5b 9b 00 08 	sw (sp+8),fp                                   
 8010630:	5b 9d 00 04 	sw (sp+4),ra                                   
 8010634:	b8 20 78 00 	mv r15,r1                                      
    ssize_t             ret = 0;                                      
    struct stat         stat_buf;                                     
    int                 i = 0;                                        
    rtems_bdbuf_buffer *block = NULL;                                 
                                                                      
    vol->fd = open(device, O_RDWR);                                   
 8010638:	b8 40 08 00 	mv r1,r2                                       
 801063c:	34 02 00 02 	mvi r2,2                                       
    char                boot_rec[FAT_MAX_BPB_SIZE];                   
    char                fs_info_sector[FAT_USEFUL_INFO_SIZE];         
    ssize_t             ret = 0;                                      
    struct stat         stat_buf;                                     
    int                 i = 0;                                        
    rtems_bdbuf_buffer *block = NULL;                                 
 8010640:	5b 80 00 dc 	sw (sp+220),r0                                 
                                                                      
    vol->fd = open(device, O_RDWR);                                   
 8010644:	fb ff ce 38 	calli 8003f24 <open>                           
 8010648:	59 e1 00 60 	sw (r15+96),r1                                 
    if (vol->fd < 0)                                                  
 801064c:	4c 20 00 02 	bge r1,r0,8010654 <fat_init_volume_info+0x68>  <== ALWAYS TAKEN
 8010650:	e0 00 00 06 	bi 8010668 <fat_init_volume_info+0x7c>         <== NOT EXECUTED
    {                                                                 
        rtems_set_errno_and_return_minus_one(ENXIO);                  
    }                                                                 
                                                                      
    rc = fstat(vol->fd, &stat_buf);                                   
 8010654:	37 82 00 88 	addi r2,sp,136                                 
 8010658:	fb ff ca 8b 	calli 8003084 <fstat>                          
    if (rc != 0)                                                      
 801065c:	44 20 00 08 	be r1,r0,801067c <fat_init_volume_info+0x90>   <== ALWAYS TAKEN
    {                                                                 
        close(vol->fd);                                               
 8010660:	29 e1 00 60 	lw r1,(r15+96)                                 <== NOT EXECUTED
 8010664:	fb ff ca 2f 	calli 8002f20 <close>                          <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one(ENXIO);                  
 8010668:	f8 00 24 e9 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 801066c:	34 02 00 06 	mvi r2,6                                       <== NOT EXECUTED
 8010670:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 8010674:	34 02 ff ff 	mvi r2,-1                                      <== NOT EXECUTED
 8010678:	e0 00 01 eb 	bi 8010e24 <fat_init_volume_info+0x838>        <== NOT EXECUTED
    }                                                                 
                                                                      
    /* Must be a block device. */                                     
    if (!S_ISBLK(stat_buf.st_mode))                                   
 801067c:	2b 84 00 94 	lw r4,(sp+148)                                 
 8010680:	29 e2 00 60 	lw r2,(r15+96)                                 
 8010684:	34 03 60 00 	mvi r3,24576                                   
 8010688:	20 84 f0 00 	andi r4,r4,0xf000                              
    {                                                                 
        close(vol->fd);                                               
 801068c:	b8 40 08 00 	mv r1,r2                                       
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one(ENXIO);                  
    }                                                                 
                                                                      
    /* Must be a block device. */                                     
    if (!S_ISBLK(stat_buf.st_mode))                                   
 8010690:	5c 83 ff f5 	bne r4,r3,8010664 <fat_init_volume_info+0x78>  <== NEVER TAKEN
static inline int rtems_disk_fd_get_disk_device(                      
  int fd,                                                             
  rtems_disk_device **dd_ptr                                          
)                                                                     
{                                                                     
  return ioctl(fd, RTEMS_BLKIO_GETDISKDEV, dd_ptr);                   
 8010694:	78 03 08 02 	mvhi r3,0x802                                  
 8010698:	38 63 d4 30 	ori r3,r3,0xd430                               
 801069c:	b8 40 08 00 	mv r1,r2                                       
 80106a0:	28 62 00 00 	lw r2,(r3+0)                                   
 80106a4:	35 e3 00 64 	addi r3,r15,100                                
 80106a8:	f8 00 05 f4 	calli 8011e78 <ioctl>                          
 80106ac:	b8 20 58 00 	mv r11,r1                                      
        rtems_set_errno_and_return_minus_one(ENXIO);                  
    }                                                                 
                                                                      
    /* check that device is registred as block device and lock it */  
    rc = rtems_disk_fd_get_disk_device(vol->fd, &vol->dd);            
    if (rc != 0) {                                                    
 80106b0:	5c 20 ff ec 	bne r1,r0,8010660 <fat_init_volume_info+0x74>  <== NEVER TAKEN
        rtems_set_errno_and_return_minus_one(ENXIO);                  
    }                                                                 
                                                                      
    /* Read boot record */                                            
    /* FIXME: Asserts FAT_MAX_BPB_SIZE < bdbuf block size */          
    sc = rtems_bdbuf_read( vol->dd, 0, &block);                       
 80106b4:	29 e1 00 64 	lw r1,(r15+100)                                
 80106b8:	34 02 00 00 	mvi r2,0                                       
 80106bc:	37 83 00 dc 	addi r3,sp,220                                 
 80106c0:	fb ff f4 bd 	calli 800d9b4 <rtems_bdbuf_read>               
 80106c4:	b8 20 70 00 	mv r14,r1                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
 80106c8:	5c 2b 00 33 	bne r1,r11,8010794 <fat_init_volume_info+0x1a8><== NEVER TAKEN
    {                                                                 
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one( EIO);                   
    }                                                                 
                                                                      
    memcpy( boot_rec, block->buffer, FAT_MAX_BPB_SIZE);               
 80106cc:	2b 8a 00 dc 	lw r10,(sp+220)                                
 80106d0:	29 43 00 1c 	lw r3,(r10+28)                                 
 80106d4:	40 61 00 13 	lbu r1,(r3+19)                                 
 80106d8:	40 72 00 0b 	lbu r18,(r3+11)                                
 80106dc:	40 71 00 0c 	lbu r17,(r3+12)                                
 80106e0:	40 73 00 0d 	lbu r19,(r3+13)                                
 80106e4:	40 76 00 0e 	lbu r22,(r3+14)                                
 80106e8:	40 75 00 0f 	lbu r21,(r3+15)                                
 80106ec:	40 74 00 10 	lbu r20,(r3+16)                                
 80106f0:	40 78 00 11 	lbu r24,(r3+17)                                
 80106f4:	40 77 00 12 	lbu r23,(r3+18)                                
 80106f8:	5b 81 00 6c 	sw (sp+108),r1                                 
 80106fc:	40 62 00 14 	lbu r2,(r3+20)                                 
 8010700:	5b 82 00 70 	sw (sp+112),r2                                 
 8010704:	40 61 00 16 	lbu r1,(r3+22)                                 
 8010708:	5b 81 00 74 	sw (sp+116),r1                                 
 801070c:	40 62 00 17 	lbu r2,(r3+23)                                 
 8010710:	5b 82 00 78 	sw (sp+120),r2                                 
 8010714:	40 61 00 21 	lbu r1,(r3+33)                                 
 8010718:	40 6c 00 20 	lbu r12,(r3+32)                                
 801071c:	5b 81 00 7c 	sw (sp+124),r1                                 
 8010720:	40 62 00 22 	lbu r2,(r3+34)                                 
 8010724:	5b 82 00 80 	sw (sp+128),r2                                 
 8010728:	40 61 00 23 	lbu r1,(r3+35)                                 
 801072c:	5b 81 00 84 	sw (sp+132),r1                                 
 8010730:	40 62 00 25 	lbu r2,(r3+37)                                 
 8010734:	40 6d 00 24 	lbu r13,(r3+36)                                
 8010738:	5b 82 00 5c 	sw (sp+92),r2                                  
 801073c:	40 61 00 26 	lbu r1,(r3+38)                                 
 8010740:	5b 81 00 60 	sw (sp+96),r1                                  
 8010744:	40 62 00 27 	lbu r2,(r3+39)                                 
 8010748:	5b 82 00 64 	sw (sp+100),r2                                 
 801074c:	40 61 00 28 	lbu r1,(r3+40)                                 
 8010750:	5b 81 00 68 	sw (sp+104),r1                                 
 8010754:	40 62 00 29 	lbu r2,(r3+41)                                 
 8010758:	5b 82 00 54 	sw (sp+84),r2                                  
 801075c:	40 61 00 2c 	lbu r1,(r3+44)                                 
 8010760:	5b 81 00 58 	sw (sp+88),r1                                  
 8010764:	40 62 00 2d 	lbu r2,(r3+45)                                 
 8010768:	5b 82 00 4c 	sw (sp+76),r2                                  
 801076c:	40 61 00 2e 	lbu r1,(r3+46)                                 
 8010770:	5b 81 00 50 	sw (sp+80),r1                                  
 8010774:	40 62 00 2f 	lbu r2,(r3+47)                                 
                                                                      
    sc = rtems_bdbuf_release( block);                                 
 8010778:	b9 40 08 00 	mv r1,r10                                      
    {                                                                 
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one( EIO);                   
    }                                                                 
                                                                      
    memcpy( boot_rec, block->buffer, FAT_MAX_BPB_SIZE);               
 801077c:	5b 82 00 48 	sw (sp+72),r2                                  
 8010780:	40 7b 00 30 	lbu fp,(r3+48)                                 
 8010784:	40 79 00 31 	lbu r25,(r3+49)                                
                                                                      
    sc = rtems_bdbuf_release( block);                                 
 8010788:	fb ff f5 15 	calli 800dbdc <rtems_bdbuf_release>            
 801078c:	b8 20 80 00 	mv r16,r1                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
 8010790:	44 2e 00 06 	be r1,r14,80107a8 <fat_init_volume_info+0x1bc> <== ALWAYS TAKEN
    {                                                                 
        close(vol->fd);                                               
 8010794:	29 e1 00 60 	lw r1,(r15+96)                                 <== NOT EXECUTED
 8010798:	fb ff c9 e2 	calli 8002f20 <close>                          <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one( EIO );                  
 801079c:	f8 00 24 9c 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 80107a0:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 80107a4:	e3 ff ff b3 	bi 8010670 <fat_init_volume_info+0x84>         <== NOT EXECUTED
    }                                                                 
                                                                      
    /* Evaluate boot record */                                        
    vol->bps = FAT_GET_BR_BYTES_PER_SECTOR(boot_rec);                 
 80107a8:	ba 20 08 00 	mv r1,r17                                      
 80107ac:	34 02 00 08 	mvi r2,8                                       
 80107b0:	fb ff c2 8e 	calli 80011e8 <__ashlsi3>                      
 80107b4:	b8 32 48 00 	or r9,r1,r18                                   
 80107b8:	21 31 ff ff 	andi r17,r9,0xffff                             
                                                                      
    if ( (vol->bps != 512)  &&                                        
 80107bc:	7e 2e 04 00 	cmpnei r14,r17,1024                            
 80107c0:	7e 2a 02 00 	cmpnei r10,r17,512                             
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one( EIO );                  
    }                                                                 
                                                                      
    /* Evaluate boot record */                                        
    vol->bps = FAT_GET_BR_BYTES_PER_SECTOR(boot_rec);                 
 80107c4:	0d f1 00 00 	sh (r15+0),r17                                 
                                                                      
    if ( (vol->bps != 512)  &&                                        
 80107c8:	a1 ca 50 00 	and r10,r14,r10                                
 80107cc:	45 50 00 05 	be r10,r16,80107e0 <fat_init_volume_info+0x1f4><== ALWAYS TAKEN
         (vol->bps != 1024) &&                                        
 80107d0:	34 0a 08 00 	mvi r10,2048                                   <== NOT EXECUTED
 80107d4:	46 2a 00 03 	be r17,r10,80107e0 <fat_init_volume_info+0x1f4><== NOT EXECUTED
         (vol->bps != 2048) &&                                        
 80107d8:	34 0a 10 00 	mvi r10,4096                                   <== NOT EXECUTED
 80107dc:	5e 2a 00 f0 	bne r17,r10,8010b9c <fat_init_volume_info+0x5b0><== NOT EXECUTED
         (vol->bps != 4096))                                          
    {                                                                 
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one( EINVAL );               
    }                                                                 
    for (vol->sec_mul = 0, i = (vol->bps >> FAT_SECTOR512_BITS); (i & 1) == 0;
 80107e0:	31 e0 00 03 	sb (r15+3),r0                                  
 80107e4:	ba 20 08 00 	mv r1,r17                                      
 80107e8:	34 02 00 09 	mvi r2,9                                       
 80107ec:	f8 00 6e 89 	calli 802c210 <__lshrsi3>                      
 80107f0:	20 2a ff ff 	andi r10,r1,0xffff                             
 80107f4:	b9 40 08 00 	mv r1,r10                                      
 80107f8:	e0 00 00 06 	bi 8010810 <fat_init_volume_info+0x224>        
         i >>= 1, vol->sec_mul++);                                    
 80107fc:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 8010800:	fb ff c2 a1 	calli 8001284 <__ashrsi3>                      <== NOT EXECUTED
 8010804:	41 e2 00 03 	lbu r2,(r15+3)                                 <== NOT EXECUTED
 8010808:	34 42 00 01 	addi r2,r2,1                                   <== NOT EXECUTED
 801080c:	31 e2 00 03 	sb (r15+3),r2                                  <== NOT EXECUTED
         (vol->bps != 4096))                                          
    {                                                                 
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one( EINVAL );               
    }                                                                 
    for (vol->sec_mul = 0, i = (vol->bps >> FAT_SECTOR512_BITS); (i & 1) == 0;
 8010810:	20 22 00 01 	andi r2,r1,0x1                                 
 8010814:	44 40 ff fa 	be r2,r0,80107fc <fat_init_volume_info+0x210>  <== NEVER TAKEN
         i >>= 1, vol->sec_mul++);                                    
    for (vol->sec_log2 = 0, i = vol->bps; (i & 1) == 0;               
 8010818:	31 e0 00 02 	sb (r15+2),r0                                  
 801081c:	ba 20 08 00 	mv r1,r17                                      
 8010820:	e0 00 00 06 	bi 8010838 <fat_init_volume_info+0x24c>        
         i >>= 1, vol->sec_log2++);                                   
 8010824:	34 02 00 01 	mvi r2,1                                       
 8010828:	fb ff c2 97 	calli 8001284 <__ashrsi3>                      
 801082c:	41 e2 00 02 	lbu r2,(r15+2)                                 
 8010830:	34 42 00 01 	addi r2,r2,1                                   
 8010834:	31 e2 00 02 	sb (r15+2),r2                                  
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one( EINVAL );               
    }                                                                 
    for (vol->sec_mul = 0, i = (vol->bps >> FAT_SECTOR512_BITS); (i & 1) == 0;
         i >>= 1, vol->sec_mul++);                                    
    for (vol->sec_log2 = 0, i = vol->bps; (i & 1) == 0;               
 8010838:	20 22 00 01 	andi r2,r1,0x1                                 
 801083c:	44 40 ff fa 	be r2,r0,8010824 <fat_init_volume_info+0x238>  
         i >>= 1, vol->sec_log2++);                                   
                                                                      
    vol->bytes_per_block = vol->bps;                                  
    vol->bytes_per_block_log2 = vol->sec_log2;                        
 8010840:	41 f2 00 02 	lbu r18,(r15+2)                                
    vol->sectors_per_block = 1;                                       
 8010844:	34 0a 00 01 	mvi r10,1                                      
    for (vol->sec_mul = 0, i = (vol->bps >> FAT_SECTOR512_BITS); (i & 1) == 0;
         i >>= 1, vol->sec_mul++);                                    
    for (vol->sec_log2 = 0, i = vol->bps; (i & 1) == 0;               
         i >>= 1, vol->sec_log2++);                                   
                                                                      
    vol->bytes_per_block = vol->bps;                                  
 8010848:	0d f1 00 0a 	sh (r15+10),r17                                
    vol->bytes_per_block_log2 = vol->sec_log2;                        
 801084c:	31 f2 00 0c 	sb (r15+12),r18                                
    vol->sectors_per_block = 1;                                       
 8010850:	31 ea 00 09 	sb (r15+9),r10                                 
                                                                      
    vol->spc = FAT_GET_BR_SECTORS_PER_CLUSTER(boot_rec);              
 8010854:	31 f3 00 04 	sb (r15+4),r19                                 
    /*                                                                
     * "sectors per cluster" of zero is invalid                       
     * (and would hang the following loop)                            
     */                                                               
    if (vol->spc == 0)                                                
 8010858:	46 60 00 d1 	be r19,r0,8010b9c <fat_init_volume_info+0x5b0> <== NEVER TAKEN
    {                                                                 
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one(EINVAL);                 
    }                                                                 
                                                                      
    for (vol->spc_log2 = 0, i = vol->spc; (i & 1) == 0;               
 801085c:	31 e0 00 05 	sb (r15+5),r0                                  
 8010860:	ba 60 08 00 	mv r1,r19                                      
 8010864:	e0 00 00 06 	bi 801087c <fat_init_volume_info+0x290>        
         i >>= 1, vol->spc_log2++);                                   
 8010868:	34 02 00 01 	mvi r2,1                                       
 801086c:	fb ff c2 86 	calli 8001284 <__ashrsi3>                      
 8010870:	41 e2 00 05 	lbu r2,(r15+5)                                 
 8010874:	34 42 00 01 	addi r2,r2,1                                   
 8010878:	31 e2 00 05 	sb (r15+5),r2                                  
    {                                                                 
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one(EINVAL);                 
    }                                                                 
                                                                      
    for (vol->spc_log2 = 0, i = vol->spc; (i & 1) == 0;               
 801087c:	20 22 00 01 	andi r2,r1,0x1                                 
 8010880:	44 40 ff fa 	be r2,r0,8010868 <fat_init_volume_info+0x27c>  
         i >>= 1, vol->spc_log2++);                                   
                                                                      
    /*                                                                
     * "bytes per cluster" value greater than 32K is invalid          
     */                                                               
    if ((vol->bpc = vol->bps << vol->spc_log2) > MS_BYTES_PER_CLUSTER_LIMIT)
 8010884:	41 e2 00 05 	lbu r2,(r15+5)                                 
 8010888:	ba 20 08 00 	mv r1,r17                                      
 801088c:	fb ff c2 57 	calli 80011e8 <__ashlsi3>                      
 8010890:	20 2e ff ff 	andi r14,r1,0xffff                             
 8010894:	0d ee 00 06 	sh (r15+6),r14                                 
 8010898:	38 0a 80 00 	mvu r10,0x8000                                 
 801089c:	51 4e 00 02 	bgeu r10,r14,80108a4 <fat_init_volume_info+0x2b8><== ALWAYS TAKEN
 80108a0:	e0 00 00 bf 	bi 8010b9c <fat_init_volume_info+0x5b0>        <== NOT EXECUTED
    {                                                                 
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one(EINVAL);                 
    }                                                                 
                                                                      
    for (vol->bpc_log2 = 0, i = vol->bpc; (i & 1) == 0;               
 80108a4:	31 e0 00 08 	sb (r15+8),r0                                  
 80108a8:	b9 c0 08 00 	mv r1,r14                                      
 80108ac:	e0 00 00 06 	bi 80108c4 <fat_init_volume_info+0x2d8>        
         i >>= 1, vol->bpc_log2++);                                   
 80108b0:	34 02 00 01 	mvi r2,1                                       
 80108b4:	fb ff c2 74 	calli 8001284 <__ashrsi3>                      
 80108b8:	41 e2 00 08 	lbu r2,(r15+8)                                 
 80108bc:	34 42 00 01 	addi r2,r2,1                                   
 80108c0:	31 e2 00 08 	sb (r15+8),r2                                  
    {                                                                 
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one(EINVAL);                 
    }                                                                 
                                                                      
    for (vol->bpc_log2 = 0, i = vol->bpc; (i & 1) == 0;               
 80108c4:	20 22 00 01 	andi r2,r1,0x1                                 
 80108c8:	44 40 ff fa 	be r2,r0,80108b0 <fat_init_volume_info+0x2c4>  
         i >>= 1, vol->bpc_log2++);                                   
                                                                      
    vol->fats = FAT_GET_BR_FAT_NUM(boot_rec);                         
    vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec);         
 80108cc:	34 02 00 08 	mvi r2,8                                       
    }                                                                 
                                                                      
    for (vol->bpc_log2 = 0, i = vol->bpc; (i & 1) == 0;               
         i >>= 1, vol->bpc_log2++);                                   
                                                                      
    vol->fats = FAT_GET_BR_FAT_NUM(boot_rec);                         
 80108d0:	31 f4 00 0d 	sb (r15+13),r20                                
    vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec);         
 80108d4:	ba a0 08 00 	mv r1,r21                                      
 80108d8:	fb ff c2 44 	calli 80011e8 <__ashlsi3>                      
 80108dc:	b8 36 40 00 	or r8,r1,r22                                   
 80108e0:	21 10 ff ff 	andi r16,r8,0xffff                             
                                                                      
    vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec);        
 80108e4:	34 02 00 08 	mvi r2,8                                       
                                                                      
    for (vol->bpc_log2 = 0, i = vol->bpc; (i & 1) == 0;               
         i >>= 1, vol->bpc_log2++);                                   
                                                                      
    vol->fats = FAT_GET_BR_FAT_NUM(boot_rec);                         
    vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec);         
 80108e8:	0d f0 00 18 	sh (r15+24),r16                                
                                                                      
    vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec);        
 80108ec:	ba e0 08 00 	mv r1,r23                                      
 80108f0:	fb ff c2 3e 	calli 80011e8 <__ashlsi3>                      
 80108f4:	b8 38 38 00 	or r7,r1,r24                                   
 80108f8:	20 e7 ff ff 	andi r7,r7,0xffff                              
 80108fc:	0d e7 00 24 	sh (r15+36),r7                                 
                                                                      
    /* calculate the count of sectors occupied by the root directory */
    vol->rdir_secs = ((vol->rdir_entrs * FAT_DIRENTRY_SIZE) + (vol->bps - 1)) /
 8010900:	b8 e0 08 00 	mv r1,r7                                       
 8010904:	34 02 00 05 	mvi r2,5                                       
 8010908:	fb ff c2 38 	calli 80011e8 <__ashlsi3>                      
 801090c:	36 2e ff ff 	addi r14,r17,-1                                
 8010910:	ba 20 10 00 	mv r2,r17                                      
 8010914:	b5 c1 08 00 	add r1,r14,r1                                  
 8010918:	fb ff c2 8e 	calli 8001350 <__divsi3>                       
                     vol->bps;                                        
                                                                      
    vol->rdir_size = vol->rdir_secs << vol->sec_log2;                 
 801091c:	ba 40 10 00 	mv r2,r18                                      
    vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec);         
                                                                      
    vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec);        
                                                                      
    /* calculate the count of sectors occupied by the root directory */
    vol->rdir_secs = ((vol->rdir_entrs * FAT_DIRENTRY_SIZE) + (vol->bps - 1)) /
 8010920:	59 e1 00 28 	sw (r15+40),r1                                 
 8010924:	b8 20 58 00 	mv r11,r1                                      
                     vol->bps;                                        
                                                                      
    vol->rdir_size = vol->rdir_secs << vol->sec_log2;                 
 8010928:	fb ff c2 30 	calli 80011e8 <__ashlsi3>                      
 801092c:	59 e1 00 2c 	sw (r15+44),r1                                 
                                                                      
    if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0)                 
 8010930:	2b 81 00 78 	lw r1,(sp+120)                                 
 8010934:	34 02 00 08 	mvi r2,8                                       
 8010938:	fb ff c2 2c 	calli 80011e8 <__ashlsi3>                      
 801093c:	2b 83 00 74 	lw r3,(sp+116)                                 
 8010940:	34 02 00 10 	mvi r2,16                                      
 8010944:	b8 23 08 00 	or r1,r1,r3                                    
 8010948:	fb ff c2 28 	calli 80011e8 <__ashlsi3>                      
 801094c:	34 02 00 10 	mvi r2,16                                      
 8010950:	fb ff c2 4d 	calli 8001284 <__ashrsi3>                      
        vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT(boot_rec);       
 8010954:	20 26 ff ff 	andi r6,r1,0xffff                              
    vol->rdir_secs = ((vol->rdir_entrs * FAT_DIRENTRY_SIZE) + (vol->bps - 1)) /
                     vol->bps;                                        
                                                                      
    vol->rdir_size = vol->rdir_secs << vol->sec_log2;                 
                                                                      
    if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0)                 
 8010958:	5c 20 00 0e 	bne r1,r0,8010990 <fat_init_volume_info+0x3a4> 
        vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT(boot_rec);       
    else                                                              
        vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT32(boot_rec);     
 801095c:	2b 81 00 5c 	lw r1,(sp+92)                                  
 8010960:	34 02 00 08 	mvi r2,8                                       
 8010964:	fb ff c2 21 	calli 80011e8 <__ashlsi3>                      
 8010968:	b8 20 70 00 	mv r14,r1                                      
 801096c:	2b 81 00 60 	lw r1,(sp+96)                                  
 8010970:	34 02 00 10 	mvi r2,16                                      
 8010974:	fb ff c2 1d 	calli 80011e8 <__ashlsi3>                      
 8010978:	b9 c1 30 00 	or r6,r14,r1                                   
 801097c:	2b 81 00 64 	lw r1,(sp+100)                                 
 8010980:	34 02 00 18 	mvi r2,24                                      
 8010984:	b8 cd 68 00 	or r13,r6,r13                                  
 8010988:	fb ff c2 18 	calli 80011e8 <__ashlsi3>                      
 801098c:	b9 a1 30 00 	or r6,r13,r1                                   
 8010990:	59 e6 00 1c 	sw (r15+28),r6                                 
                                                                      
    vol->data_fsec = vol->fat_loc + vol->fats * vol->fat_length +     
 8010994:	29 e2 00 1c 	lw r2,(r15+28)                                 
 8010998:	ba 80 08 00 	mv r1,r20                                      
 801099c:	fb ff c2 61 	calli 8001320 <__mulsi3>                       
 80109a0:	b6 01 18 00 	add r3,r16,r1                                  
                     vol->rdir_secs;                                  
                                                                      
    /* for  FAT12/16 root dir starts at(sector) */                    
    vol->rdir_loc = vol->fat_loc + vol->fats * vol->fat_length;       
                                                                      
    if ( (FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec)) != 0)             
 80109a4:	2b 81 00 70 	lw r1,(sp+112)                                 
    if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0)                 
        vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT(boot_rec);       
    else                                                              
        vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT32(boot_rec);     
                                                                      
    vol->data_fsec = vol->fat_loc + vol->fats * vol->fat_length +     
 80109a8:	b5 63 58 00 	add r11,r11,r3                                 
                     vol->rdir_secs;                                  
                                                                      
    /* for  FAT12/16 root dir starts at(sector) */                    
    vol->rdir_loc = vol->fat_loc + vol->fats * vol->fat_length;       
 80109ac:	59 e3 00 20 	sw (r15+32),r3                                 
                                                                      
    if ( (FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec)) != 0)             
 80109b0:	34 02 00 08 	mvi r2,8                                       
    if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0)                 
        vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT(boot_rec);       
    else                                                              
        vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT32(boot_rec);     
                                                                      
    vol->data_fsec = vol->fat_loc + vol->fats * vol->fat_length +     
 80109b4:	59 eb 00 34 	sw (r15+52),r11                                
                     vol->rdir_secs;                                  
                                                                      
    /* for  FAT12/16 root dir starts at(sector) */                    
    vol->rdir_loc = vol->fat_loc + vol->fats * vol->fat_length;       
                                                                      
    if ( (FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec)) != 0)             
 80109b8:	fb ff c2 0c 	calli 80011e8 <__ashlsi3>                      
 80109bc:	2b 82 00 6c 	lw r2,(sp+108)                                 
 80109c0:	b8 22 08 00 	or r1,r1,r2                                    
 80109c4:	34 02 00 10 	mvi r2,16                                      
 80109c8:	fb ff c2 08 	calli 80011e8 <__ashlsi3>                      
 80109cc:	34 02 00 10 	mvi r2,16                                      
 80109d0:	fb ff c2 2d 	calli 8001284 <__ashrsi3>                      
        vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec);     
 80109d4:	20 25 ff ff 	andi r5,r1,0xffff                              
                     vol->rdir_secs;                                  
                                                                      
    /* for  FAT12/16 root dir starts at(sector) */                    
    vol->rdir_loc = vol->fat_loc + vol->fats * vol->fat_length;       
                                                                      
    if ( (FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec)) != 0)             
 80109d8:	5c 20 00 0e 	bne r1,r0,8010a10 <fat_init_volume_info+0x424> 
        vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec);     
    else                                                              
        vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM32(boot_rec);     
 80109dc:	2b 81 00 7c 	lw r1,(sp+124)                                 
 80109e0:	34 02 00 08 	mvi r2,8                                       
 80109e4:	fb ff c2 01 	calli 80011e8 <__ashlsi3>                      
 80109e8:	b8 20 68 00 	mv r13,r1                                      
 80109ec:	2b 81 00 80 	lw r1,(sp+128)                                 
 80109f0:	34 02 00 10 	mvi r2,16                                      
 80109f4:	fb ff c1 fd 	calli 80011e8 <__ashlsi3>                      
 80109f8:	b9 a1 28 00 	or r5,r13,r1                                   
 80109fc:	2b 81 00 84 	lw r1,(sp+132)                                 
 8010a00:	34 02 00 18 	mvi r2,24                                      
 8010a04:	b8 ac 60 00 	or r12,r5,r12                                  
 8010a08:	fb ff c1 f8 	calli 80011e8 <__ashlsi3>                      
 8010a0c:	b9 81 28 00 	or r5,r12,r1                                   
 8010a10:	59 e5 00 30 	sw (r15+48),r5                                 
                                                                      
    data_secs = vol->tot_secs - vol->data_fsec;                       
 8010a14:	29 e5 00 30 	lw r5,(r15+48)                                 
                                                                      
    vol->data_cls = data_secs / vol->spc;                             
 8010a18:	ba 60 10 00 	mv r2,r19                                      
 8010a1c:	c8 ab 08 00 	sub r1,r5,r11                                  
 8010a20:	f8 00 6e 4c 	calli 802c350 <__udivsi3>                      
 8010a24:	59 e1 00 38 	sw (r15+56),r1                                 
                                                                      
    /* determine FAT type at least */                                 
    if ( vol->data_cls < FAT_FAT12_MAX_CLN)                           
 8010a28:	34 05 0f f4 	mvi r5,4084                                    
 8010a2c:	54 25 00 07 	bgu r1,r5,8010a48 <fat_init_volume_info+0x45c> 
    {                                                                 
        vol->type = FAT_FAT12;                                        
 8010a30:	34 05 00 01 	mvi r5,1                                       
 8010a34:	31 e5 00 0e 	sb (r15+14),r5                                 
        vol->mask = FAT_FAT12_MASK;                                   
 8010a38:	34 05 0f ff 	mvi r5,4095                                    
 8010a3c:	59 e5 00 10 	sw (r15+16),r5                                 
        vol->eoc_val = FAT_FAT12_EOC;                                 
 8010a40:	34 05 0f f8 	mvi r5,4088                                    
 8010a44:	e0 00 00 12 	bi 8010a8c <fat_init_volume_info+0x4a0>        
    }                                                                 
    else                                                              
    {                                                                 
        if ( vol->data_cls < FAT_FAT16_MAX_CLN)                       
 8010a48:	38 05 ff f4 	mvu r5,0xfff4                                  
 8010a4c:	54 25 00 07 	bgu r1,r5,8010a68 <fat_init_volume_info+0x47c> 
        {                                                             
            vol->type = FAT_FAT16;                                    
 8010a50:	34 05 00 02 	mvi r5,2                                       
 8010a54:	31 e5 00 0e 	sb (r15+14),r5                                 
            vol->mask = FAT_FAT16_MASK;                               
 8010a58:	38 05 ff ff 	mvu r5,0xffff                                  
 8010a5c:	59 e5 00 10 	sw (r15+16),r5                                 
            vol->eoc_val = FAT_FAT16_EOC;                             
 8010a60:	34 a5 ff f9 	addi r5,r5,-7                                  
 8010a64:	e0 00 00 0a 	bi 8010a8c <fat_init_volume_info+0x4a0>        
        }                                                             
        else                                                          
        {                                                             
            vol->type = FAT_FAT32;                                    
            vol->mask = FAT_FAT32_MASK;                               
 8010a68:	78 03 08 02 	mvhi r3,0x802                                  
            vol->mask = FAT_FAT16_MASK;                               
            vol->eoc_val = FAT_FAT16_EOC;                             
        }                                                             
        else                                                          
        {                                                             
            vol->type = FAT_FAT32;                                    
 8010a6c:	34 05 00 04 	mvi r5,4                                       
            vol->mask = FAT_FAT32_MASK;                               
 8010a70:	38 63 d5 2c 	ori r3,r3,0xd52c                               
            vol->mask = FAT_FAT16_MASK;                               
            vol->eoc_val = FAT_FAT16_EOC;                             
        }                                                             
        else                                                          
        {                                                             
            vol->type = FAT_FAT32;                                    
 8010a74:	31 e5 00 0e 	sb (r15+14),r5                                 
            vol->mask = FAT_FAT32_MASK;                               
 8010a78:	28 65 00 00 	lw r5,(r3+0)                                   
            vol->eoc_val = FAT_FAT32_EOC;                             
 8010a7c:	78 01 08 02 	mvhi r1,0x802                                  
 8010a80:	38 21 d5 30 	ori r1,r1,0xd530                               
            vol->eoc_val = FAT_FAT16_EOC;                             
        }                                                             
        else                                                          
        {                                                             
            vol->type = FAT_FAT32;                                    
            vol->mask = FAT_FAT32_MASK;                               
 8010a84:	59 e5 00 10 	sw (r15+16),r5                                 
            vol->eoc_val = FAT_FAT32_EOC;                             
 8010a88:	28 25 00 00 	lw r5,(r1+0)                                   
        }                                                             
    }                                                                 
                                                                      
    if (vol->type == FAT_FAT32)                                       
 8010a8c:	41 e6 00 0e 	lbu r6,(r15+14)                                
        }                                                             
        else                                                          
        {                                                             
            vol->type = FAT_FAT32;                                    
            vol->mask = FAT_FAT32_MASK;                               
            vol->eoc_val = FAT_FAT32_EOC;                             
 8010a90:	59 e5 00 14 	sw (r15+20),r5                                 
        }                                                             
    }                                                                 
                                                                      
    if (vol->type == FAT_FAT32)                                       
 8010a94:	34 05 00 04 	mvi r5,4                                       
 8010a98:	5c c5 00 72 	bne r6,r5,8010c60 <fat_init_volume_info+0x674> 
    {                                                                 
        vol->rdir_cl = FAT_GET_BR_FAT32_ROOT_CLUSTER(boot_rec);       
 8010a9c:	2b 81 00 4c 	lw r1,(sp+76)                                  
 8010aa0:	34 02 00 08 	mvi r2,8                                       
 8010aa4:	fb ff c1 d1 	calli 80011e8 <__ashlsi3>                      
 8010aa8:	b8 20 60 00 	mv r12,r1                                      
 8010aac:	2b 81 00 50 	lw r1,(sp+80)                                  
 8010ab0:	34 02 00 10 	mvi r2,16                                      
 8010ab4:	fb ff c1 cd 	calli 80011e8 <__ashlsi3>                      
 8010ab8:	2b 82 00 58 	lw r2,(sp+88)                                  
 8010abc:	b9 81 20 00 	or r4,r12,r1                                   
 8010ac0:	2b 81 00 48 	lw r1,(sp+72)                                  
 8010ac4:	b8 82 58 00 	or r11,r4,r2                                   
 8010ac8:	34 02 00 18 	mvi r2,24                                      
 8010acc:	fb ff c1 c7 	calli 80011e8 <__ashlsi3>                      
 8010ad0:	b9 61 20 00 	or r4,r11,r1                                   
                                                                      
        vol->mirror = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_MIRROR;
 8010ad4:	2b 81 00 54 	lw r1,(sp+84)                                  
        }                                                             
    }                                                                 
                                                                      
    if (vol->type == FAT_FAT32)                                       
    {                                                                 
        vol->rdir_cl = FAT_GET_BR_FAT32_ROOT_CLUSTER(boot_rec);       
 8010ad8:	59 e4 00 3c 	sw (r15+60),r4                                 
                                                                      
        vol->mirror = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_MIRROR;
 8010adc:	34 02 00 08 	mvi r2,8                                       
 8010ae0:	fb ff c1 c2 	calli 80011e8 <__ashlsi3>                      
 8010ae4:	2b 82 00 68 	lw r2,(sp+104)                                 
 8010ae8:	b8 22 18 00 	or r3,r1,r2                                    
 8010aec:	20 63 00 ff 	andi r3,r3,0xff                                
 8010af0:	20 64 00 80 	andi r4,r3,0x80                                
 8010af4:	20 84 00 ff 	andi r4,r4,0xff                                
 8010af8:	31 e4 00 54 	sb (r15+84),r4                                 
        if (vol->mirror)                                              
 8010afc:	44 80 00 04 	be r4,r0,8010b0c <fat_init_volume_info+0x520>  <== ALWAYS TAKEN
            vol->afat = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_FAT_NUM;
 8010b00:	20 63 00 0f 	andi r3,r3,0xf                                 <== NOT EXECUTED
 8010b04:	31 e3 00 5c 	sb (r15+92),r3                                 <== NOT EXECUTED
 8010b08:	e0 00 00 02 	bi 8010b10 <fat_init_volume_info+0x524>        <== NOT EXECUTED
        else                                                          
            vol->afat = 0;                                            
 8010b0c:	31 e0 00 5c 	sb (r15+92),r0                                 
                                                                      
        vol->info_sec = FAT_GET_BR_FAT32_FS_INFO_SECTOR(boot_rec);    
 8010b10:	34 02 00 08 	mvi r2,8                                       
 8010b14:	bb 20 08 00 	mv r1,r25                                      
 8010b18:	fb ff c1 b4 	calli 80011e8 <__ashlsi3>                      
 8010b1c:	b8 3b 10 00 	or r2,r1,fp                                    
 8010b20:	20 42 ff ff 	andi r2,r2,0xffff                              
 8010b24:	0d e2 00 40 	sh (r15+64),r2                                 
        if( vol->info_sec == 0 )                                      
 8010b28:	44 40 00 1d 	be r2,r0,8010b9c <fat_init_volume_info+0x5b0>  <== NEVER TAKEN
            rtems_set_errno_and_return_minus_one( EINVAL );           
        }                                                             
        else                                                          
        {                                                             
            ret = _fat_block_read(fs_info, vol->info_sec , 0,         
                                  FAT_FSI_LEADSIG_SIZE, fs_info_sector);
 8010b2c:	37 8b 00 d0 	addi r11,sp,208                                
            close(vol->fd);                                           
            rtems_set_errno_and_return_minus_one( EINVAL );           
        }                                                             
        else                                                          
        {                                                             
            ret = _fat_block_read(fs_info, vol->info_sec , 0,         
 8010b30:	b9 e0 08 00 	mv r1,r15                                      
 8010b34:	34 03 00 00 	mvi r3,0                                       
 8010b38:	34 04 00 04 	mvi r4,4                                       
 8010b3c:	b9 60 28 00 	mv r5,r11                                      
 8010b40:	fb ff fd 5b 	calli 80100ac <_fat_block_read>                
                                  FAT_FSI_LEADSIG_SIZE, fs_info_sector);
            if ( ret < 0 )                                            
 8010b44:	4c 20 00 02 	bge r1,r0,8010b4c <fat_init_volume_info+0x560> <== ALWAYS TAKEN
 8010b48:	e0 00 00 23 	bi 8010bd4 <fat_init_volume_info+0x5e8>        <== NOT EXECUTED
            {                                                         
                close(vol->fd);                                       
                return -1;                                            
            }                                                         
                                                                      
            if (FAT_GET_FSINFO_LEAD_SIGNATURE(fs_info_sector) !=      
 8010b4c:	43 81 00 d1 	lbu r1,(sp+209)                                
 8010b50:	34 02 00 08 	mvi r2,8                                       
 8010b54:	fb ff c1 a5 	calli 80011e8 <__ashlsi3>                      
 8010b58:	b8 20 60 00 	mv r12,r1                                      
 8010b5c:	43 81 00 d2 	lbu r1,(sp+210)                                
 8010b60:	34 02 00 10 	mvi r2,16                                      
 8010b64:	fb ff c1 a1 	calli 80011e8 <__ashlsi3>                      
 8010b68:	b9 81 10 00 	or r2,r12,r1                                   
 8010b6c:	43 8c 00 d0 	lbu r12,(sp+208)                               
 8010b70:	43 81 00 d3 	lbu r1,(sp+211)                                
 8010b74:	b8 4c 60 00 	or r12,r2,r12                                  
 8010b78:	34 02 00 18 	mvi r2,24                                      
 8010b7c:	fb ff c1 9b 	calli 80011e8 <__ashlsi3>                      
 8010b80:	b9 81 10 00 	or r2,r12,r1                                   
 8010b84:	78 01 08 02 	mvhi r1,0x802                                  
 8010b88:	38 21 d5 34 	ori r1,r1,0xd534                               
 8010b8c:	28 23 00 00 	lw r3,(r1+0)                                   
 8010b90:	44 43 00 08 	be r2,r3,8010bb0 <fat_init_volume_info+0x5c4>  <== ALWAYS TAKEN
 *     0 on success, or -1 if error occured and errno set appropriately
 */                                                                   
int                                                                   
_fat_block_release(fat_fs_info_t *fs_info)                            
{                                                                     
    return fat_buf_release(fs_info);                                  
 8010b94:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
 8010b98:	fb ff fc 85 	calli 800fdac <fat_buf_release>                <== NOT EXECUTED
                                                                      
            if (FAT_GET_FSINFO_LEAD_SIGNATURE(fs_info_sector) !=      
                FAT_FSINFO_LEAD_SIGNATURE_VALUE)                      
            {                                                         
                _fat_block_release(fs_info);                          
                close(vol->fd);                                       
 8010b9c:	29 e1 00 60 	lw r1,(r15+96)                                 <== NOT EXECUTED
 8010ba0:	fb ff c8 e0 	calli 8002f20 <close>                          <== NOT EXECUTED
                rtems_set_errno_and_return_minus_one( EINVAL );       
 8010ba4:	f8 00 23 9a 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 8010ba8:	34 02 00 16 	mvi r2,22                                      <== NOT EXECUTED
 8010bac:	e3 ff fe b1 	bi 8010670 <fat_init_volume_info+0x84>         <== NOT EXECUTED
            }                                                         
            else                                                      
            {                                                         
                ret = _fat_block_read(fs_info, vol->info_sec , FAT_FSI_INFO,
 8010bb0:	2d e2 00 40 	lhu r2,(r15+64)                                
 8010bb4:	b9 e0 08 00 	mv r1,r15                                      
 8010bb8:	34 03 01 e4 	mvi r3,484                                     
 8010bbc:	34 04 00 0c 	mvi r4,12                                      
 8010bc0:	b9 60 28 00 	mv r5,r11                                      
 8010bc4:	fb ff fd 3a 	calli 80100ac <_fat_block_read>                
                                      FAT_USEFUL_INFO_SIZE, fs_info_sector);
                if ( ret < 0 )                                        
 8010bc8:	4c 20 00 06 	bge r1,r0,8010be0 <fat_init_volume_info+0x5f4> <== ALWAYS TAKEN
 *     0 on success, or -1 if error occured and errno set appropriately
 */                                                                   
int                                                                   
_fat_block_release(fat_fs_info_t *fs_info)                            
{                                                                     
    return fat_buf_release(fs_info);                                  
 8010bcc:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
 8010bd0:	fb ff fc 77 	calli 800fdac <fat_buf_release>                <== NOT EXECUTED
                ret = _fat_block_read(fs_info, vol->info_sec , FAT_FSI_INFO,
                                      FAT_USEFUL_INFO_SIZE, fs_info_sector);
                if ( ret < 0 )                                        
                {                                                     
                    _fat_block_release(fs_info);                      
                    close(vol->fd);                                   
 8010bd4:	29 e1 00 60 	lw r1,(r15+96)                                 <== NOT EXECUTED
 8010bd8:	fb ff c8 d2 	calli 8002f20 <close>                          <== NOT EXECUTED
 8010bdc:	e3 ff fe a6 	bi 8010674 <fat_init_volume_info+0x88>         <== NOT EXECUTED
                    return -1;                                        
                }                                                     
                                                                      
                vol->free_cls_in_fs_info =                            
                  FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector);  
 8010be0:	43 81 00 d5 	lbu r1,(sp+213)                                
 8010be4:	34 02 00 08 	mvi r2,8                                       
 8010be8:	fb ff c1 80 	calli 80011e8 <__ashlsi3>                      
 8010bec:	b8 20 58 00 	mv r11,r1                                      
 8010bf0:	43 81 00 d6 	lbu r1,(sp+214)                                
 8010bf4:	34 02 00 10 	mvi r2,16                                      
 8010bf8:	fb ff c1 7c 	calli 80011e8 <__ashlsi3>                      
 8010bfc:	b9 61 10 00 	or r2,r11,r1                                   
 8010c00:	43 8b 00 d4 	lbu r11,(sp+212)                               
 8010c04:	43 81 00 d7 	lbu r1,(sp+215)                                
 8010c08:	b8 4b 58 00 	or r11,r2,r11                                  
 8010c0c:	34 02 00 18 	mvi r2,24                                      
 8010c10:	fb ff c1 76 	calli 80011e8 <__ashlsi3>                      
 8010c14:	b9 61 10 00 	or r2,r11,r1                                   
                vol->free_cls = vol->free_cls_in_fs_info;             
                vol->next_cl_in_fs_info =                             
                  FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector);   
 8010c18:	43 81 00 d9 	lbu r1,(sp+217)                                
                    _fat_block_release(fs_info);                      
                    close(vol->fd);                                   
                    return -1;                                        
                }                                                     
                                                                      
                vol->free_cls_in_fs_info =                            
 8010c1c:	59 e2 00 48 	sw (r15+72),r2                                 
                  FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector);  
                vol->free_cls = vol->free_cls_in_fs_info;             
 8010c20:	59 e2 00 44 	sw (r15+68),r2                                 
                vol->next_cl_in_fs_info =                             
                  FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector);   
 8010c24:	34 02 00 08 	mvi r2,8                                       
 8010c28:	fb ff c1 70 	calli 80011e8 <__ashlsi3>                      
 8010c2c:	b8 20 58 00 	mv r11,r1                                      
 8010c30:	43 81 00 da 	lbu r1,(sp+218)                                
 8010c34:	34 02 00 10 	mvi r2,16                                      
 8010c38:	fb ff c1 6c 	calli 80011e8 <__ashlsi3>                      
 8010c3c:	b9 61 10 00 	or r2,r11,r1                                   
 8010c40:	43 8b 00 d8 	lbu r11,(sp+216)                               
 8010c44:	43 81 00 db 	lbu r1,(sp+219)                                
 8010c48:	b8 4b 58 00 	or r11,r2,r11                                  
 8010c4c:	34 02 00 18 	mvi r2,24                                      
 8010c50:	fb ff c1 66 	calli 80011e8 <__ashlsi3>                      
 8010c54:	b9 61 10 00 	or r2,r11,r1                                   
                }                                                     
                                                                      
                vol->free_cls_in_fs_info =                            
                  FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector);  
                vol->free_cls = vol->free_cls_in_fs_info;             
                vol->next_cl_in_fs_info =                             
 8010c58:	59 e2 00 50 	sw (r15+80),r2                                 
 8010c5c:	e0 00 00 06 	bi 8010c74 <fat_init_volume_info+0x688>        
    else                                                              
    {                                                                 
        vol->rdir_cl = 0;                                             
        vol->mirror = 0;                                              
        vol->afat = 0;                                                
        vol->free_cls = FAT_UNDEFINED_VALUE;                          
 8010c60:	34 02 ff ff 	mvi r2,-1                                      
            }                                                         
        }                                                             
    }                                                                 
    else                                                              
    {                                                                 
        vol->rdir_cl = 0;                                             
 8010c64:	59 e0 00 3c 	sw (r15+60),r0                                 
        vol->mirror = 0;                                              
 8010c68:	31 e0 00 54 	sb (r15+84),r0                                 
        vol->afat = 0;                                                
 8010c6c:	31 e0 00 5c 	sb (r15+92),r0                                 
        vol->free_cls = FAT_UNDEFINED_VALUE;                          
 8010c70:	59 e2 00 44 	sw (r15+68),r2                                 
        vol->next_cl = FAT_UNDEFINED_VALUE;                           
 8010c74:	59 e2 00 4c 	sw (r15+76),r2                                 
 *     0 on success, or -1 if error occured and errno set appropriately
 */                                                                   
int                                                                   
_fat_block_release(fat_fs_info_t *fs_info)                            
{                                                                     
    return fat_buf_release(fs_info);                                  
 8010c78:	b9 e0 08 00 	mv r1,r15                                      
 8010c7c:	fb ff fc 4c 	calli 800fdac <fat_buf_release>                
        vol->next_cl = FAT_UNDEFINED_VALUE;                           
    }                                                                 
                                                                      
    _fat_block_release(fs_info);                                      
                                                                      
    vol->afat_loc = vol->fat_loc + vol->fat_length * vol->afat;       
 8010c80:	29 e2 00 1c 	lw r2,(r15+28)                                 
 8010c84:	41 e1 00 5c 	lbu r1,(r15+92)                                
 8010c88:	fb ff c1 a6 	calli 8001320 <__mulsi3>                       
 8010c8c:	2d e2 00 18 	lhu r2,(r15+24)                                
 8010c90:	b4 22 10 00 	add r2,r1,r2                                   
 8010c94:	59 e2 00 58 	sw (r15+88),r2                                 
                                                                      
    /* set up collection of fat-files fd */                           
    fs_info->vhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
 8010c98:	34 01 00 02 	mvi r1,2                                       
 8010c9c:	34 02 00 0c 	mvi r2,12                                      
 8010ca0:	fb ff c8 81 	calli 8002ea4 <calloc>                         
 8010ca4:	59 e1 00 6c 	sw (r15+108),r1                                
 8010ca8:	b8 20 10 00 	mv r2,r1                                       
    if ( fs_info->vhash == NULL )                                     
 8010cac:	44 20 00 11 	be r1,r0,8010cf0 <fat_init_volume_info+0x704>  <== NEVER TAKEN
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 );                        
 8010cb0:	34 23 00 04 	addi r3,r1,4                                   
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
 8010cb4:	58 41 00 08 	sw (r2+8),r1                                   
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
 8010cb8:	58 20 00 04 	sw (r1+4),r0                                   
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 8010cbc:	58 23 00 00 	sw (r1+0),r3                                   
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 );                        
 8010cc0:	34 24 00 10 	addi r4,r1,16                                  
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one( ENOMEM );               
    }                                                                 
                                                                      
    for (i = 0; i < FAT_HASH_SIZE; i++)                               
        rtems_chain_initialize_empty(fs_info->vhash + i);             
 8010cc4:	34 23 00 0c 	addi r3,r1,12                                  
                                                                      
  head->next = tail;                                                  
 8010cc8:	58 24 00 0c 	sw (r1+12),r4                                  
                                                                      
    fs_info->rhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
 8010ccc:	34 02 00 0c 	mvi r2,12                                      
  head->previous = NULL;                                              
 8010cd0:	58 60 00 04 	sw (r3+4),r0                                   
  tail->previous = head;                                              
 8010cd4:	58 63 00 08 	sw (r3+8),r3                                   
 8010cd8:	34 01 00 02 	mvi r1,2                                       
 8010cdc:	fb ff c8 72 	calli 8002ea4 <calloc>                         
 8010ce0:	59 e1 00 70 	sw (r15+112),r1                                
 8010ce4:	b8 20 10 00 	mv r2,r1                                       
    if ( fs_info->rhash == NULL )                                     
 8010ce8:	5c 20 00 05 	bne r1,r0,8010cfc <fat_init_volume_info+0x710> <== ALWAYS TAKEN
 8010cec:	e0 00 00 1c 	bi 8010d5c <fat_init_volume_info+0x770>        <== NOT EXECUTED
                                                                      
    /* set up collection of fat-files fd */                           
    fs_info->vhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
    if ( fs_info->vhash == NULL )                                     
    {                                                                 
        close(vol->fd);                                               
 8010cf0:	29 e1 00 60 	lw r1,(r15+96)                                 <== NOT EXECUTED
 8010cf4:	fb ff c8 8b 	calli 8002f20 <close>                          <== NOT EXECUTED
 8010cf8:	e0 00 00 30 	bi 8010db8 <fat_init_volume_info+0x7cc>        <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
 8010cfc:	34 23 00 04 	addi r3,r1,4                                   
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
 8010d00:	58 41 00 08 	sw (r2+8),r1                                   
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
 8010d04:	58 20 00 04 	sw (r1+4),r0                                   
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 8010d08:	58 23 00 00 	sw (r1+0),r3                                   
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 );                        
 8010d0c:	34 24 00 10 	addi r4,r1,16                                  
        close(vol->fd);                                               
        free(fs_info->vhash);                                         
        rtems_set_errno_and_return_minus_one( ENOMEM );               
    }                                                                 
    for (i = 0; i < FAT_HASH_SIZE; i++)                               
        rtems_chain_initialize_empty(fs_info->rhash + i);             
 8010d10:	34 23 00 0c 	addi r3,r1,12                                  
                                                                      
  head->next = tail;                                                  
 8010d14:	58 24 00 0c 	sw (r1+12),r4                                  
  head->previous = NULL;                                              
 8010d18:	58 60 00 04 	sw (r3+4),r0                                   
  tail->previous = head;                                              
 8010d1c:	58 63 00 08 	sw (r3+8),r3                                   
                                                                      
    fs_info->uino_pool_size = FAT_UINO_POOL_INIT_SIZE;                
 8010d20:	34 02 01 00 	mvi r2,256                                     
 8010d24:	59 e2 00 7c 	sw (r15+124),r2                                
    fs_info->uino_base = (vol->tot_secs << vol->sec_mul) << 4;        
 8010d28:	29 e1 00 30 	lw r1,(r15+48)                                 
 8010d2c:	41 e2 00 03 	lbu r2,(r15+3)                                 
 8010d30:	fb ff c1 2e 	calli 80011e8 <__ashlsi3>                      
 8010d34:	34 02 00 04 	mvi r2,4                                       
 8010d38:	fb ff c1 2c 	calli 80011e8 <__ashlsi3>                      
 8010d3c:	59 e1 00 80 	sw (r15+128),r1                                
    fs_info->index = 0;                                               
 8010d40:	59 e0 00 78 	sw (r15+120),r0                                
    fs_info->uino = (char *)calloc(fs_info->uino_pool_size, sizeof(char));
 8010d44:	34 01 01 00 	mvi r1,256                                     
 8010d48:	34 02 00 01 	mvi r2,1                                       
 8010d4c:	fb ff c8 56 	calli 8002ea4 <calloc>                         
 8010d50:	59 e1 00 74 	sw (r15+116),r1                                
    if ( fs_info->uino == NULL )                                      
 8010d54:	5c 20 00 0c 	bne r1,r0,8010d84 <fat_init_volume_info+0x798> <== ALWAYS TAKEN
 8010d58:	e0 00 00 05 	bi 8010d6c <fat_init_volume_info+0x780>        <== NOT EXECUTED
        rtems_chain_initialize_empty(fs_info->vhash + i);             
                                                                      
    fs_info->rhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
    if ( fs_info->rhash == NULL )                                     
    {                                                                 
        close(vol->fd);                                               
 8010d5c:	29 e1 00 60 	lw r1,(r15+96)                                 <== NOT EXECUTED
 8010d60:	fb ff c8 70 	calli 8002f20 <close>                          <== NOT EXECUTED
        free(fs_info->vhash);                                         
 8010d64:	29 e1 00 6c 	lw r1,(r15+108)                                <== NOT EXECUTED
 8010d68:	e0 00 00 13 	bi 8010db4 <fat_init_volume_info+0x7c8>        <== NOT EXECUTED
    fs_info->uino_base = (vol->tot_secs << vol->sec_mul) << 4;        
    fs_info->index = 0;                                               
    fs_info->uino = (char *)calloc(fs_info->uino_pool_size, sizeof(char));
    if ( fs_info->uino == NULL )                                      
    {                                                                 
        close(vol->fd);                                               
 8010d6c:	29 e1 00 60 	lw r1,(r15+96)                                 <== NOT EXECUTED
 8010d70:	fb ff c8 6c 	calli 8002f20 <close>                          <== NOT EXECUTED
        free(fs_info->vhash);                                         
 8010d74:	29 e1 00 6c 	lw r1,(r15+108)                                <== NOT EXECUTED
 8010d78:	fb ff c8 95 	calli 8002fcc <free>                           <== NOT EXECUTED
        free(fs_info->rhash);                                         
 8010d7c:	29 e1 00 70 	lw r1,(r15+112)                                <== NOT EXECUTED
 8010d80:	e0 00 00 0d 	bi 8010db4 <fat_init_volume_info+0x7c8>        <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one( ENOMEM );               
    }                                                                 
    fs_info->sec_buf = (uint8_t *)calloc(vol->bps, sizeof(uint8_t));  
 8010d84:	2d e1 00 00 	lhu r1,(r15+0)                                 
 8010d88:	34 02 00 01 	mvi r2,1                                       
 8010d8c:	fb ff c8 46 	calli 8002ea4 <calloc>                         
 8010d90:	59 e1 00 90 	sw (r15+144),r1                                
    if (fs_info->sec_buf == NULL)                                     
 8010d94:	5c 20 00 0c 	bne r1,r0,8010dc4 <fat_init_volume_info+0x7d8> <== ALWAYS TAKEN
    {                                                                 
        close(vol->fd);                                               
 8010d98:	29 e1 00 60 	lw r1,(r15+96)                                 <== NOT EXECUTED
 8010d9c:	fb ff c8 61 	calli 8002f20 <close>                          <== NOT EXECUTED
        free(fs_info->vhash);                                         
 8010da0:	29 e1 00 6c 	lw r1,(r15+108)                                <== NOT EXECUTED
 8010da4:	fb ff c8 8a 	calli 8002fcc <free>                           <== NOT EXECUTED
        free(fs_info->rhash);                                         
 8010da8:	29 e1 00 70 	lw r1,(r15+112)                                <== NOT EXECUTED
 8010dac:	fb ff c8 88 	calli 8002fcc <free>                           <== NOT EXECUTED
        free(fs_info->uino);                                          
 8010db0:	29 e1 00 74 	lw r1,(r15+116)                                <== NOT EXECUTED
 8010db4:	fb ff c8 86 	calli 8002fcc <free>                           <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one( ENOMEM );               
 8010db8:	f8 00 23 15 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 8010dbc:	34 02 00 0c 	mvi r2,12                                      <== NOT EXECUTED
 8010dc0:	e3 ff fe 2c 	bi 8010670 <fat_init_volume_info+0x84>         <== NOT EXECUTED
      return bytes_written;                                           
}                                                                     
                                                                      
static bool is_cluster_aligned(const fat_vol_t *vol, uint32_t sec_num)
{                                                                     
    return (sec_num & (vol->spc - 1)) == 0;                           
 8010dc4:	41 e3 00 04 	lbu r3,(r15+4)                                 
 8010dc8:	29 e4 00 34 	lw r4,(r15+52)                                 
            vol->bytes_per_block_log2 = vol->bpc_log2;                
            vol->sectors_per_block = vol->spc;                        
        }                                                             
    }                                                                 
                                                                      
    return RC_OK;                                                     
 8010dcc:	34 02 00 00 	mvi r2,0                                       
      return bytes_written;                                           
}                                                                     
                                                                      
static bool is_cluster_aligned(const fat_vol_t *vol, uint32_t sec_num)
{                                                                     
    return (sec_num & (vol->spc - 1)) == 0;                           
 8010dd0:	34 63 ff ff 	addi r3,r3,-1                                  
 8010dd4:	a0 64 20 00 	and r4,r3,r4                                   
    /*                                                                
     * If possible we will use the cluster size as bdbuf block size for faster
     * file access. This requires that certain sectors are aligned to cluster
     * borders.                                                       
     */                                                               
    if (is_cluster_aligned(vol, vol->data_fsec)                       
 8010dd8:	5c 80 00 13 	bne r4,r0,8010e24 <fat_init_volume_info+0x838> <== NEVER TAKEN
        && (FAT_FAT32 == vol->type || is_cluster_aligned(vol, vol->rdir_loc)))
 8010ddc:	41 e5 00 0e 	lbu r5,(r15+14)                                
 8010de0:	34 04 00 04 	mvi r4,4                                       
 8010de4:	44 a4 00 04 	be r5,r4,8010df4 <fat_init_volume_info+0x808>  
      return bytes_written;                                           
}                                                                     
                                                                      
static bool is_cluster_aligned(const fat_vol_t *vol, uint32_t sec_num)
{                                                                     
    return (sec_num & (vol->spc - 1)) == 0;                           
 8010de8:	29 e1 00 20 	lw r1,(r15+32)                                 
 8010dec:	a0 61 18 00 	and r3,r3,r1                                   
     * If possible we will use the cluster size as bdbuf block size for faster
     * file access. This requires that certain sectors are aligned to cluster
     * borders.                                                       
     */                                                               
    if (is_cluster_aligned(vol, vol->data_fsec)                       
        && (FAT_FAT32 == vol->type || is_cluster_aligned(vol, vol->rdir_loc)))
 8010df0:	5c 60 00 0d 	bne r3,r0,8010e24 <fat_init_volume_info+0x838> <== NEVER TAKEN
    {                                                                 
        sc = rtems_bdbuf_set_block_size (vol->dd, vol->bpc, true);    
 8010df4:	2d e2 00 06 	lhu r2,(r15+6)                                 
 8010df8:	29 e1 00 64 	lw r1,(r15+100)                                
 8010dfc:	34 03 00 01 	mvi r3,1                                       
 8010e00:	fb ff f4 b2 	calli 800e0c8 <rtems_bdbuf_set_block_size>     
            vol->bytes_per_block_log2 = vol->bpc_log2;                
            vol->sectors_per_block = vol->spc;                        
        }                                                             
    }                                                                 
                                                                      
    return RC_OK;                                                     
 8010e04:	34 02 00 00 	mvi r2,0                                       
     */                                                               
    if (is_cluster_aligned(vol, vol->data_fsec)                       
        && (FAT_FAT32 == vol->type || is_cluster_aligned(vol, vol->rdir_loc)))
    {                                                                 
        sc = rtems_bdbuf_set_block_size (vol->dd, vol->bpc, true);    
        if (sc == RTEMS_SUCCESSFUL)                                   
 8010e08:	5c 20 00 07 	bne r1,r0,8010e24 <fat_init_volume_info+0x838> <== NEVER TAKEN
        {                                                             
            vol->bytes_per_block = vol->bpc;                          
 8010e0c:	2d e1 00 06 	lhu r1,(r15+6)                                 
 8010e10:	0d e1 00 0a 	sh (r15+10),r1                                 
            vol->bytes_per_block_log2 = vol->bpc_log2;                
 8010e14:	41 e1 00 08 	lbu r1,(r15+8)                                 
 8010e18:	31 e1 00 0c 	sb (r15+12),r1                                 
            vol->sectors_per_block = vol->spc;                        
 8010e1c:	41 e1 00 04 	lbu r1,(r15+4)                                 
 8010e20:	31 e1 00 09 	sb (r15+9),r1                                  
        }                                                             
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
 8010e24:	b8 40 08 00 	mv r1,r2                                       
 8010e28:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8010e2c:	2b 8b 00 44 	lw r11,(sp+68)                                 
 8010e30:	2b 8c 00 40 	lw r12,(sp+64)                                 
 8010e34:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 8010e38:	2b 8e 00 38 	lw r14,(sp+56)                                 
 8010e3c:	2b 8f 00 34 	lw r15,(sp+52)                                 
 8010e40:	2b 90 00 30 	lw r16,(sp+48)                                 
 8010e44:	2b 91 00 2c 	lw r17,(sp+44)                                 
 8010e48:	2b 92 00 28 	lw r18,(sp+40)                                 
 8010e4c:	2b 93 00 24 	lw r19,(sp+36)                                 
 8010e50:	2b 94 00 20 	lw r20,(sp+32)                                 
 8010e54:	2b 95 00 1c 	lw r21,(sp+28)                                 
 8010e58:	2b 96 00 18 	lw r22,(sp+24)                                 
 8010e5c:	2b 97 00 14 	lw r23,(sp+20)                                 
 8010e60:	2b 98 00 10 	lw r24,(sp+16)                                 
 8010e64:	2b 99 00 0c 	lw r25,(sp+12)                                 
 8010e68:	2b 9b 00 08 	lw fp,(sp+8)                                   
 8010e6c:	37 9c 00 dc 	addi sp,sp,220                                 
 8010e70:	c3 a0 00 00 	ret                                            
                                                                      

08017fd4 <fat_scan_fat_for_free_clusters>: uint32_t count, uint32_t *cls_added, uint32_t *last_cl, bool zero_fill ) {
 8017fd4:	37 9c ff c8 	addi sp,sp,-56                                 
 8017fd8:	5b 8b 00 34 	sw (sp+52),r11                                 
 8017fdc:	5b 8c 00 30 	sw (sp+48),r12                                 
 8017fe0:	5b 8d 00 2c 	sw (sp+44),r13                                 
 8017fe4:	5b 8e 00 28 	sw (sp+40),r14                                 
 8017fe8:	5b 8f 00 24 	sw (sp+36),r15                                 
 8017fec:	5b 90 00 20 	sw (sp+32),r16                                 
 8017ff0:	5b 91 00 1c 	sw (sp+28),r17                                 
 8017ff4:	5b 92 00 18 	sw (sp+24),r18                                 
 8017ff8:	5b 93 00 14 	sw (sp+20),r19                                 
 8017ffc:	5b 94 00 10 	sw (sp+16),r20                                 
 8018000:	5b 95 00 0c 	sw (sp+12),r21                                 
 8018004:	5b 96 00 08 	sw (sp+8),r22                                  
 8018008:	5b 9d 00 04 	sw (sp+4),ra                                   
    int            rc = RC_OK;                                        
    uint32_t       cl4find = 2;                                       
    uint32_t       next_cln = 0;                                      
    uint32_t       save_cln = 0;                                      
    uint32_t       data_cls_val = fs_info->vol.data_cls + 2;          
 801800c:	28 34 00 38 	lw r20,(r1+56)                                 
    bool                                  zero_fill                   
    )                                                                 
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       cl4find = 2;                                       
    uint32_t       next_cln = 0;                                      
 8018010:	5b 80 00 38 	sw (sp+56),r0                                  
    uint32_t       save_cln = 0;                                      
    uint32_t       data_cls_val = fs_info->vol.data_cls + 2;          
    uint32_t       i = 2;                                             
    ssize_t        bytes_written;                                     
                                                                      
    *cls_added = 0;                                                   
 8018014:	58 80 00 00 	sw (r4+0),r0                                   
    uint32_t                              count,                      
    uint32_t                             *cls_added,                  
    uint32_t                             *last_cl,                    
    bool                                  zero_fill                   
    )                                                                 
{                                                                     
 8018018:	b8 20 58 00 	mv r11,r1                                      
 801801c:	b8 40 78 00 	mv r15,r2                                      
 8018020:	b8 60 a8 00 	mv r21,r3                                      
 8018024:	b8 80 68 00 	mv r13,r4                                      
 8018028:	b8 a0 90 00 	mv r18,r5                                      
 801802c:	20 d6 00 ff 	andi r22,r6,0xff                               
    int            rc = RC_OK;                                        
    uint32_t       cl4find = 2;                                       
    uint32_t       next_cln = 0;                                      
    uint32_t       save_cln = 0;                                      
    uint32_t       data_cls_val = fs_info->vol.data_cls + 2;          
 8018030:	36 94 00 02 	addi r20,r20,2                                 
    ssize_t        bytes_written;                                     
                                                                      
    *cls_added = 0;                                                   
                                                                      
    if (count == 0)                                                   
        return rc;                                                    
 8018034:	34 0e 00 00 	mvi r14,0                                      
    uint32_t       i = 2;                                             
    ssize_t        bytes_written;                                     
                                                                      
    *cls_added = 0;                                                   
                                                                      
    if (count == 0)                                                   
 8018038:	44 60 00 68 	be r3,r0,80181d8 <fat_scan_fat_for_free_clusters+0x204><== NEVER TAKEN
        return rc;                                                    
                                                                      
    if (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE)                  
 801803c:	28 2c 00 4c 	lw r12,(r1+76)                                 
 8018040:	34 01 ff ff 	mvi r1,-1                                      
 8018044:	5d 81 00 02 	bne r12,r1,801804c <fat_scan_fat_for_free_clusters+0x78>
    uint32_t                             *last_cl,                    
    bool                                  zero_fill                   
    )                                                                 
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       cl4find = 2;                                       
 8018048:	34 0c 00 02 	mvi r12,2                                      
            }                                                         
        }                                                             
        i++;                                                          
        cl4find++;                                                    
        if (cl4find >= data_cls_val)                                  
            cl4find = 2;                                              
 801804c:	34 11 00 02 	mvi r17,2                                      
 8018050:	34 10 00 00 	mvi r16,0                                      
 8018054:	e0 00 00 47 	bi 8018170 <fat_scan_fat_for_free_clusters+0x19c>
     * starting at cluster 2, so the maximum valid cluster number is  
     * (fs_info->vol.data_cls + 1)                                    
     */                                                               
    while (i < data_cls_val)                                          
    {                                                                 
        rc = fat_get_fat_cluster(fs_info, cl4find, &next_cln);        
 8018058:	b9 60 08 00 	mv r1,r11                                      
 801805c:	b9 80 10 00 	mv r2,r12                                      
 8018060:	37 83 00 38 	addi r3,sp,56                                  
 8018064:	fb ff fe 43 	calli 8017970 <fat_get_fat_cluster>            
 8018068:	b8 20 70 00 	mv r14,r1                                      
        if ( rc != RC_OK )                                            
 801806c:	44 20 00 07 	be r1,r0,8018088 <fat_scan_fat_for_free_clusters+0xb4><== ALWAYS TAKEN
        {                                                             
            if (*cls_added != 0)                                      
 8018070:	29 a1 00 00 	lw r1,(r13+0)                                  <== NOT EXECUTED
 8018074:	44 20 00 59 	be r1,r0,80181d8 <fat_scan_fat_for_free_clusters+0x204><== NOT EXECUTED
                fat_free_fat_clusters_chain(fs_info, (*chain));       
 8018078:	29 e2 00 00 	lw r2,(r15+0)                                  <== NOT EXECUTED
 801807c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8018080:	fb ff ff 99 	calli 8017ee4 <fat_free_fat_clusters_chain>    <== NOT EXECUTED
 8018084:	e0 00 00 55 	bi 80181d8 <fat_scan_fat_for_free_clusters+0x204><== NOT EXECUTED
            return rc;                                                
        }                                                             
                                                                      
        if (next_cln == FAT_GENFAT_FREE)                              
 8018088:	2b 81 00 38 	lw r1,(sp+56)                                  
 801808c:	5c 2e 00 34 	bne r1,r14,801815c <fat_scan_fat_for_free_clusters+0x188>
            /*                                                        
             * We are enforced to process allocation of the first free cluster
             * by separate 'if' statement because otherwise undo function
             * wouldn't work properly                                 
             */                                                       
            if (*cls_added == 0)                                      
 8018090:	29 a1 00 00 	lw r1,(r13+0)                                  
 8018094:	5c 20 00 08 	bne r1,r0,80180b4 <fat_scan_fat_for_free_clusters+0xe0>
            {                                                         
                *chain = cl4find;                                     
 8018098:	59 ec 00 00 	sw (r15+0),r12                                 
                rc = fat_set_fat_cluster(fs_info, cl4find, FAT_GENFAT_EOC);
 801809c:	b9 60 08 00 	mv r1,r11                                      
 80180a0:	b9 80 10 00 	mv r2,r12                                      
 80180a4:	34 03 ff ff 	mvi r3,-1                                      
 80180a8:	fb ff fe bd 	calli 8017b9c <fat_set_fat_cluster>            
                if ( rc != RC_OK )                                    
 80180ac:	44 20 00 13 	be r1,r0,80180f8 <fat_scan_fat_for_free_clusters+0x124><== ALWAYS TAKEN
 80180b0:	e0 00 00 49 	bi 80181d4 <fat_scan_fat_for_free_clusters+0x200><== NOT EXECUTED
                }                                                     
            }                                                         
            else                                                      
            {                                                         
                /* set EOC value to new allocated cluster */          
                rc = fat_set_fat_cluster(fs_info, cl4find, FAT_GENFAT_EOC);
 80180b4:	b9 60 08 00 	mv r1,r11                                      
 80180b8:	b9 80 10 00 	mv r2,r12                                      
 80180bc:	34 03 ff ff 	mvi r3,-1                                      
 80180c0:	fb ff fe b7 	calli 8017b9c <fat_set_fat_cluster>            
 80180c4:	b8 20 98 00 	mv r19,r1                                      
                if ( rc != RC_OK )                                    
 80180c8:	44 20 00 06 	be r1,r0,80180e0 <fat_scan_fat_for_free_clusters+0x10c><== ALWAYS TAKEN
                {                                                     
                    /* cleanup activity */                            
                    fat_free_fat_clusters_chain(fs_info, (*chain));   
 80180cc:	29 e2 00 00 	lw r2,(r15+0)                                  <== NOT EXECUTED
 80180d0:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
                }                                                     
            }                                                         
            else                                                      
            {                                                         
                /* set EOC value to new allocated cluster */          
                rc = fat_set_fat_cluster(fs_info, cl4find, FAT_GENFAT_EOC);
 80180d4:	ba 60 70 00 	mv r14,r19                                     <== NOT EXECUTED
                if ( rc != RC_OK )                                    
                {                                                     
                    /* cleanup activity */                            
                    fat_free_fat_clusters_chain(fs_info, (*chain));   
 80180d8:	fb ff ff 83 	calli 8017ee4 <fat_free_fat_clusters_chain>    <== NOT EXECUTED
                    return rc;                                        
 80180dc:	e0 00 00 3f 	bi 80181d8 <fat_scan_fat_for_free_clusters+0x204><== NOT EXECUTED
                }                                                     
                                                                      
                rc = fat_set_fat_cluster(fs_info, save_cln, cl4find); 
 80180e0:	ba 00 10 00 	mv r2,r16                                      
 80180e4:	b9 60 08 00 	mv r1,r11                                      
 80180e8:	b9 80 18 00 	mv r3,r12                                      
 80180ec:	fb ff fe ac 	calli 8017b9c <fat_set_fat_cluster>            
 80180f0:	b8 20 80 00 	mv r16,r1                                      
                if ( rc != RC_OK )                                    
 80180f4:	5c 20 00 2d 	bne r1,r0,80181a8 <fat_scan_fat_for_free_clusters+0x1d4><== NEVER TAKEN
                    goto cleanup;                                     
            }                                                         
                                                                      
            if (zero_fill)                                            
 80180f8:	46 c0 00 09 	be r22,r0,801811c <fat_scan_fat_for_free_clusters+0x148>
            {                                                         
                bytes_written = fat_cluster_set (fs_info, cl4find, 0, fs_info->vol.bpc, 0);
 80180fc:	2d 64 00 06 	lhu r4,(r11+6)                                 
 8018100:	b9 80 10 00 	mv r2,r12                                      
 8018104:	b9 60 08 00 	mv r1,r11                                      
 8018108:	34 03 00 00 	mvi r3,0                                       
 801810c:	34 05 00 00 	mvi r5,0                                       
 8018110:	fb ff e0 53 	calli 801025c <fat_cluster_set>                
                if (fs_info->vol.bpc != bytes_written)                
 8018114:	2d 62 00 06 	lhu r2,(r11+6)                                 
 8018118:	5c 41 00 23 	bne r2,r1,80181a4 <fat_scan_fat_for_free_clusters+0x1d0><== NEVER TAKEN
                    goto cleanup;                                     
                }                                                     
            }                                                         
                                                                      
            save_cln = cl4find;                                       
            (*cls_added)++;                                           
 801811c:	29 a1 00 00 	lw r1,(r13+0)                                  
 8018120:	34 21 00 01 	addi r1,r1,1                                   
 8018124:	59 a1 00 00 	sw (r13+0),r1                                  
                                                                      
            /* have we satisfied request ? */                         
            if (*cls_added == count)                                  
 8018128:	5c 35 00 0c 	bne r1,r21,8018158 <fat_scan_fat_for_free_clusters+0x184>
            {                                                         
                    fs_info->vol.next_cl = save_cln;                  
                    if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE) 
 801812c:	29 61 00 44 	lw r1,(r11+68)                                 
            (*cls_added)++;                                           
                                                                      
            /* have we satisfied request ? */                         
            if (*cls_added == count)                                  
            {                                                         
                    fs_info->vol.next_cl = save_cln;                  
 8018130:	59 6c 00 4c 	sw (r11+76),r12                                
                    if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE) 
 8018134:	34 02 ff ff 	mvi r2,-1                                      
 8018138:	44 22 00 04 	be r1,r2,8018148 <fat_scan_fat_for_free_clusters+0x174><== ALWAYS TAKEN
                        fs_info->vol.free_cls -= (*cls_added);        
 801813c:	29 a2 00 00 	lw r2,(r13+0)                                  <== NOT EXECUTED
 8018140:	c8 22 08 00 	sub r1,r1,r2                                   <== NOT EXECUTED
 8018144:	59 61 00 44 	sw (r11+68),r1                                 <== NOT EXECUTED
                *last_cl = save_cln;                                  
 8018148:	5a 4c 00 00 	sw (r18+0),r12                                 
                fat_buf_release(fs_info);                             
 801814c:	b9 60 08 00 	mv r1,r11                                      
 8018150:	fb ff df 17 	calli 800fdac <fat_buf_release>                
                return rc;                                            
 8018154:	e0 00 00 21 	bi 80181d8 <fat_scan_fat_for_free_clusters+0x204>
                                                                      
            save_cln = cl4find;                                       
            (*cls_added)++;                                           
                                                                      
            /* have we satisfied request ? */                         
            if (*cls_added == count)                                  
 8018158:	b9 80 80 00 	mv r16,r12                                     
                fat_buf_release(fs_info);                             
                return rc;                                            
            }                                                         
        }                                                             
        i++;                                                          
        cl4find++;                                                    
 801815c:	35 8c 00 01 	addi r12,r12,1                                 
                *last_cl = save_cln;                                  
                fat_buf_release(fs_info);                             
                return rc;                                            
            }                                                         
        }                                                             
        i++;                                                          
 8018160:	36 31 00 01 	addi r17,r17,1                                 
        cl4find++;                                                    
        if (cl4find >= data_cls_val)                                  
 8018164:	51 94 00 02 	bgeu r12,r20,801816c <fat_scan_fat_for_free_clusters+0x198><== NEVER TAKEN
 8018168:	e0 00 00 02 	bi 8018170 <fat_scan_fat_for_free_clusters+0x19c>
            cl4find = 2;                                              
 801816c:	34 0c 00 02 	mvi r12,2                                      <== NOT EXECUTED
    /*                                                                
     * fs_info->vol.data_cls is exactly the count of data clusters    
     * starting at cluster 2, so the maximum valid cluster number is  
     * (fs_info->vol.data_cls + 1)                                    
     */                                                               
    while (i < data_cls_val)                                          
 8018170:	56 91 ff ba 	bgu r20,r17,8018058 <fat_scan_fat_for_free_clusters+0x84><== ALWAYS TAKEN
        if (cl4find >= data_cls_val)                                  
            cl4find = 2;                                              
    }                                                                 
                                                                      
        fs_info->vol.next_cl = save_cln;                              
        if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)             
 8018174:	29 61 00 44 	lw r1,(r11+68)                                 <== NOT EXECUTED
        cl4find++;                                                    
        if (cl4find >= data_cls_val)                                  
            cl4find = 2;                                              
    }                                                                 
                                                                      
        fs_info->vol.next_cl = save_cln;                              
 8018178:	59 70 00 4c 	sw (r11+76),r16                                <== NOT EXECUTED
        if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)             
 801817c:	34 02 ff ff 	mvi r2,-1                                      <== NOT EXECUTED
 8018180:	44 22 00 04 	be r1,r2,8018190 <fat_scan_fat_for_free_clusters+0x1bc><== NOT EXECUTED
            fs_info->vol.free_cls -= (*cls_added);                    
 8018184:	29 a2 00 00 	lw r2,(r13+0)                                  <== NOT EXECUTED
 8018188:	c8 22 08 00 	sub r1,r1,r2                                   <== NOT EXECUTED
 801818c:	59 61 00 44 	sw (r11+68),r1                                 <== NOT EXECUTED
                                                                      
    *last_cl = save_cln;                                              
 8018190:	5a 50 00 00 	sw (r18+0),r16                                 <== NOT EXECUTED
    fat_buf_release(fs_info);                                         
 8018194:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8018198:	fb ff df 05 	calli 800fdac <fat_buf_release>                <== NOT EXECUTED
    return RC_OK;                                                     
 801819c:	34 0e 00 00 	mvi r14,0                                      <== NOT EXECUTED
 80181a0:	e0 00 00 0e 	bi 80181d8 <fat_scan_fat_for_free_clusters+0x204><== NOT EXECUTED
            if (zero_fill)                                            
            {                                                         
                bytes_written = fat_cluster_set (fs_info, cl4find, 0, fs_info->vol.bpc, 0);
                if (fs_info->vol.bpc != bytes_written)                
                {                                                     
                    rc = -1;                                          
 80181a4:	34 10 ff ff 	mvi r16,-1                                     <== NOT EXECUTED
    return RC_OK;                                                     
                                                                      
cleanup:                                                              
                                                                      
    /* cleanup activity */                                            
    fat_free_fat_clusters_chain(fs_info, (*chain));                   
 80181a8:	29 e2 00 00 	lw r2,(r15+0)                                  <== NOT EXECUTED
 80181ac:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
    /* trying to save last allocated cluster for future use */        
    fat_set_fat_cluster(fs_info, cl4find, FAT_GENFAT_FREE);           
    fat_buf_release(fs_info);                                         
    return rc;                                                        
 80181b0:	ba 00 70 00 	mv r14,r16                                     <== NOT EXECUTED
    return RC_OK;                                                     
                                                                      
cleanup:                                                              
                                                                      
    /* cleanup activity */                                            
    fat_free_fat_clusters_chain(fs_info, (*chain));                   
 80181b4:	fb ff ff 4c 	calli 8017ee4 <fat_free_fat_clusters_chain>    <== NOT EXECUTED
    /* trying to save last allocated cluster for future use */        
    fat_set_fat_cluster(fs_info, cl4find, FAT_GENFAT_FREE);           
 80181b8:	b9 80 10 00 	mv r2,r12                                      <== NOT EXECUTED
 80181bc:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 80181c0:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 80181c4:	fb ff fe 76 	calli 8017b9c <fat_set_fat_cluster>            <== NOT EXECUTED
    fat_buf_release(fs_info);                                         
 80181c8:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 80181cc:	fb ff de f8 	calli 800fdac <fat_buf_release>                <== NOT EXECUTED
    return rc;                                                        
 80181d0:	e0 00 00 02 	bi 80181d8 <fat_scan_fat_for_free_clusters+0x204><== NOT EXECUTED
             * wouldn't work properly                                 
             */                                                       
            if (*cls_added == 0)                                      
            {                                                         
                *chain = cl4find;                                     
                rc = fat_set_fat_cluster(fs_info, cl4find, FAT_GENFAT_EOC);
 80181d4:	b8 20 70 00 	mv r14,r1                                      <== NOT EXECUTED
    fat_free_fat_clusters_chain(fs_info, (*chain));                   
    /* trying to save last allocated cluster for future use */        
    fat_set_fat_cluster(fs_info, cl4find, FAT_GENFAT_FREE);           
    fat_buf_release(fs_info);                                         
    return rc;                                                        
}                                                                     
 80181d8:	b9 c0 08 00 	mv r1,r14                                      
 80181dc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80181e0:	2b 8b 00 34 	lw r11,(sp+52)                                 
 80181e4:	2b 8c 00 30 	lw r12,(sp+48)                                 
 80181e8:	2b 8d 00 2c 	lw r13,(sp+44)                                 
 80181ec:	2b 8e 00 28 	lw r14,(sp+40)                                 
 80181f0:	2b 8f 00 24 	lw r15,(sp+36)                                 
 80181f4:	2b 90 00 20 	lw r16,(sp+32)                                 
 80181f8:	2b 91 00 1c 	lw r17,(sp+28)                                 
 80181fc:	2b 92 00 18 	lw r18,(sp+24)                                 
 8018200:	2b 93 00 14 	lw r19,(sp+20)                                 
 8018204:	2b 94 00 10 	lw r20,(sp+16)                                 
 8018208:	2b 95 00 0c 	lw r21,(sp+12)                                 
 801820c:	2b 96 00 08 	lw r22,(sp+8)                                  
 8018210:	37 9c 00 38 	addi sp,sp,56                                  
 8018214:	c3 a0 00 00 	ret                                            
                                                                      

08010170 <fat_sector_write>: fat_fs_info_t *fs_info, uint32_t start, uint32_t offset, uint32_t count, const void *buff) {
 8010170:	37 9c ff d8 	addi sp,sp,-40                                 
 8010174:	5b 8b 00 24 	sw (sp+36),r11                                 
 8010178:	5b 8c 00 20 	sw (sp+32),r12                                 
 801017c:	5b 8d 00 1c 	sw (sp+28),r13                                 
 8010180:	5b 8e 00 18 	sw (sp+24),r14                                 
 8010184:	5b 8f 00 14 	sw (sp+20),r15                                 
 8010188:	5b 90 00 10 	sw (sp+16),r16                                 
 801018c:	5b 91 00 0c 	sw (sp+12),r17                                 
 8010190:	5b 92 00 08 	sw (sp+8),r18                                  
 8010194:	5b 9d 00 04 	sw (sp+4),ra                                   
    int                 rc = RC_OK;                                   
    ssize_t             cmpltd = 0;                                   
 8010198:	34 0c 00 00 	mvi r12,0                                      
    fat_fs_info_t                        *fs_info,                    
    uint32_t                              start,                      
    uint32_t                              offset,                     
    uint32_t                              count,                      
    const void                           *buff)                       
{                                                                     
 801019c:	b8 20 70 00 	mv r14,r1                                      
 80101a0:	b8 80 68 00 	mv r13,r4                                      
 80101a4:	b8 a0 90 00 	mv r18,r5                                      
    int                 rc = RC_OK;                                   
    ssize_t             cmpltd = 0;                                   
    uint32_t            sec_num = start;                              
    uint32_t            ofs = offset;                                 
 80101a8:	b8 60 80 00 	mv r16,r3                                      
    uint32_t                              count,                      
    const void                           *buff)                       
{                                                                     
    int                 rc = RC_OK;                                   
    ssize_t             cmpltd = 0;                                   
    uint32_t            sec_num = start;                              
 80101ac:	b8 40 78 00 	mv r15,r2                                      
}                                                                     
                                                                      
static inline void                                                    
fat_buf_mark_modified(fat_fs_info_t *fs_info)                         
{                                                                     
    fs_info->c.modified = true;                                       
 80101b0:	34 11 00 01 	mvi r17,1                                      
    uint32_t            ofs = offset;                                 
    uint8_t            *sec_buf;                                      
    uint32_t            c = 0;                                        
                                                                      
    while(count > 0)                                                  
 80101b4:	e0 00 00 1b 	bi 8010220 <fat_sector_write+0xb0>             
    {                                                                 
        c = MIN(count, (fs_info->vol.bps - ofs));                     
 80101b8:	2d cb 00 00 	lhu r11,(r14+0)                                
 80101bc:	c9 70 58 00 	sub r11,r11,r16                                
 80101c0:	51 ab 00 02 	bgeu r13,r11,80101c8 <fat_sector_write+0x58>   
 80101c4:	b9 a0 58 00 	mv r11,r13                                     
                                                                      
        if (c == fs_info->vol.bytes_per_block)                        
 80101c8:	2d c1 00 0a 	lhu r1,(r14+10)                                
 80101cc:	5d 61 00 05 	bne r11,r1,80101e0 <fat_sector_write+0x70>     <== ALWAYS TAKEN
            rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_GET, &sec_buf);
 80101d0:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 80101d4:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
 80101d8:	34 03 00 02 	mvi r3,2                                       <== NOT EXECUTED
 80101dc:	e0 00 00 04 	bi 80101ec <fat_sector_write+0x7c>             <== NOT EXECUTED
        else                                                          
            rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_READ, &sec_buf);
 80101e0:	b9 c0 08 00 	mv r1,r14                                      
 80101e4:	b9 e0 10 00 	mv r2,r15                                      
 80101e8:	34 03 00 01 	mvi r3,1                                       
 80101ec:	37 84 00 28 	addi r4,sp,40                                  
 80101f0:	fb ff ff 6d 	calli 800ffa4 <fat_buf_access>                 
        if (rc != RC_OK)                                              
 80101f4:	5c 20 00 0d 	bne r1,r0,8010228 <fat_sector_write+0xb8>      <== NEVER TAKEN
            return -1;                                                
                                                                      
        memcpy((sec_buf + ofs), (buff + cmpltd), c);                  
 80101f8:	2b 81 00 28 	lw r1,(sp+40)                                  
 80101fc:	b6 4c 10 00 	add r2,r18,r12                                 
 8010200:	b9 60 18 00 	mv r3,r11                                      
 8010204:	b4 30 08 00 	add r1,r1,r16                                  
 8010208:	f8 00 29 4f 	calli 801a744 <memcpy>                         
                                                                      
        fat_buf_mark_modified(fs_info);                               
                                                                      
        count -= c;                                                   
 801020c:	c9 ab 68 00 	sub r13,r13,r11                                
 8010210:	31 d1 00 88 	sb (r14+136),r17                               
        cmpltd +=c;                                                   
 8010214:	b5 6c 60 00 	add r12,r11,r12                                
        sec_num++;                                                    
 8010218:	35 ef 00 01 	addi r15,r15,1                                 
        ofs = 0;                                                      
 801021c:	34 10 00 00 	mvi r16,0                                      
    uint32_t            sec_num = start;                              
    uint32_t            ofs = offset;                                 
    uint8_t            *sec_buf;                                      
    uint32_t            c = 0;                                        
                                                                      
    while(count > 0)                                                  
 8010220:	5d a0 ff e6 	bne r13,r0,80101b8 <fat_sector_write+0x48>     
 8010224:	e0 00 00 02 	bi 801022c <fat_sector_write+0xbc>             
        if (c == fs_info->vol.bytes_per_block)                        
            rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_GET, &sec_buf);
        else                                                          
            rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_READ, &sec_buf);
        if (rc != RC_OK)                                              
            return -1;                                                
 8010228:	34 0c ff ff 	mvi r12,-1                                     <== NOT EXECUTED
        cmpltd +=c;                                                   
        sec_num++;                                                    
        ofs = 0;                                                      
    }                                                                 
    return cmpltd;                                                    
}                                                                     
 801022c:	b9 80 08 00 	mv r1,r12                                      
 8010230:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8010234:	2b 8b 00 24 	lw r11,(sp+36)                                 
 8010238:	2b 8c 00 20 	lw r12,(sp+32)                                 
 801023c:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 8010240:	2b 8e 00 18 	lw r14,(sp+24)                                 
 8010244:	2b 8f 00 14 	lw r15,(sp+20)                                 
 8010248:	2b 90 00 10 	lw r16,(sp+16)                                 
 801024c:	2b 91 00 0c 	lw r17,(sp+12)                                 
 8010250:	2b 92 00 08 	lw r18,(sp+8)                                  
 8010254:	37 9c 00 28 	addi sp,sp,40                                  
 8010258:	c3 a0 00 00 	ret                                            
                                                                      

08017b9c <fat_set_fat_cluster>: fat_set_fat_cluster( fat_fs_info_t *fs_info, uint32_t cln, uint32_t in_val ) {
 8017b9c:	37 9c ff d8 	addi sp,sp,-40                                 
 8017ba0:	5b 8b 00 24 	sw (sp+36),r11                                 
 8017ba4:	5b 8c 00 20 	sw (sp+32),r12                                 
 8017ba8:	5b 8d 00 1c 	sw (sp+28),r13                                 
 8017bac:	5b 8e 00 18 	sw (sp+24),r14                                 
 8017bb0:	5b 8f 00 14 	sw (sp+20),r15                                 
 8017bb4:	5b 90 00 10 	sw (sp+16),r16                                 
 8017bb8:	5b 91 00 0c 	sw (sp+12),r17                                 
 8017bbc:	5b 92 00 08 	sw (sp+8),r18                                  
 8017bc0:	5b 9d 00 04 	sw (sp+4),ra                                   
 8017bc4:	b8 20 58 00 	mv r11,r1                                      
    int                 rc = RC_OK;                                   
    uint32_t            sec = 0;                                      
    uint32_t            ofs = 0;                                      
    uint16_t            fat16_clv = 0;                                
    uint32_t            fat32_clv = 0;                                
    uint8_t            *sec_buf = NULL;                               
 8017bc8:	5b 80 00 28 	sw (sp+40),r0                                  
                                                                      
    /* sanity check */                                                
    if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )           
 8017bcc:	34 01 00 01 	mvi r1,1                                       
fat_set_fat_cluster(                                                  
    fat_fs_info_t                        *fs_info,                    
    uint32_t                              cln,                        
    uint32_t                              in_val                      
    )                                                                 
{                                                                     
 8017bd0:	b8 40 60 00 	mv r12,r2                                      
 8017bd4:	b8 60 80 00 	mv r16,r3                                      
    uint16_t            fat16_clv = 0;                                
    uint32_t            fat32_clv = 0;                                
    uint8_t            *sec_buf = NULL;                               
                                                                      
    /* sanity check */                                                
    if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )           
 8017bd8:	50 22 00 b3 	bgeu r1,r2,8017ea4 <fat_set_fat_cluster+0x308> <== NEVER TAKEN
 8017bdc:	29 61 00 38 	lw r1,(r11+56)                                 
 8017be0:	34 21 00 01 	addi r1,r1,1                                   
 8017be4:	50 22 00 02 	bgeu r1,r2,8017bec <fat_set_fat_cluster+0x50>  <== ALWAYS TAKEN
 8017be8:	e0 00 00 af 	bi 8017ea4 <fat_set_fat_cluster+0x308>         <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) +
 8017bec:	41 6e 00 0e 	lbu r14,(r11+14)                               
 8017bf0:	21 cd 00 01 	andi r13,r14,0x1                               
 8017bf4:	45 a0 00 06 	be r13,r0,8017c0c <fat_set_fat_cluster+0x70>   
 8017bf8:	b8 40 08 00 	mv r1,r2                                       
 8017bfc:	34 02 00 01 	mvi r2,1                                       
 8017c00:	f8 00 51 84 	calli 802c210 <__lshrsi3>                      
 8017c04:	b4 2c 08 00 	add r1,r1,r12                                  
 8017c08:	e0 00 00 09 	bi 8017c2c <fat_set_fat_cluster+0x90>          
 8017c0c:	21 c1 00 02 	andi r1,r14,0x2                                
 8017c10:	44 2d 00 04 	be r1,r13,8017c20 <fat_set_fat_cluster+0x84>   
 8017c14:	b8 40 08 00 	mv r1,r2                                       
 8017c18:	34 02 00 01 	mvi r2,1                                       
 8017c1c:	e0 00 00 03 	bi 8017c28 <fat_set_fat_cluster+0x8c>          
 8017c20:	b8 40 08 00 	mv r1,r2                                       
 8017c24:	34 02 00 02 	mvi r2,2                                       
 8017c28:	fb ff a5 70 	calli 80011e8 <__ashlsi3>                      
 8017c2c:	41 62 00 02 	lbu r2,(r11+2)                                 
 8017c30:	f8 00 51 78 	calli 802c210 <__lshrsi3>                      
 8017c34:	29 71 00 58 	lw r17,(r11+88)                                
 8017c38:	b4 31 88 00 	add r17,r1,r17                                 
          fs_info->vol.afat_loc;                                      
    ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
 8017c3c:	45 a0 00 06 	be r13,r0,8017c54 <fat_set_fat_cluster+0xb8>   
 8017c40:	b9 80 08 00 	mv r1,r12                                      
 8017c44:	34 02 00 01 	mvi r2,1                                       
 8017c48:	f8 00 51 72 	calli 802c210 <__lshrsi3>                      
 8017c4c:	b4 2c 78 00 	add r15,r1,r12                                 
 8017c50:	e0 00 00 09 	bi 8017c74 <fat_set_fat_cluster+0xd8>          
 8017c54:	21 ce 00 02 	andi r14,r14,0x2                               
 8017c58:	b9 80 08 00 	mv r1,r12                                      
 8017c5c:	34 02 00 01 	mvi r2,1                                       
 8017c60:	5d cd 00 03 	bne r14,r13,8017c6c <fat_set_fat_cluster+0xd0> 
 8017c64:	b9 80 08 00 	mv r1,r12                                      
 8017c68:	34 02 00 02 	mvi r2,2                                       
 8017c6c:	fb ff a5 5f 	calli 80011e8 <__ashlsi3>                      
 8017c70:	b8 20 78 00 	mv r15,r1                                      
                                                                      
    rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &sec_buf);    
 8017c74:	b9 60 08 00 	mv r1,r11                                      
 8017c78:	ba 20 10 00 	mv r2,r17                                      
 8017c7c:	34 03 00 01 	mvi r3,1                                       
 8017c80:	37 84 00 28 	addi r4,sp,40                                  
    if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )           
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) +
          fs_info->vol.afat_loc;                                      
    ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
 8017c84:	2d 6d 00 00 	lhu r13,(r11+0)                                
                                                                      
    rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &sec_buf);    
 8017c88:	fb ff e0 c7 	calli 800ffa4 <fat_buf_access>                 
 8017c8c:	b8 20 70 00 	mv r14,r1                                      
    if (rc != RC_OK)                                                  
 8017c90:	5c 20 00 89 	bne r1,r0,8017eb4 <fat_set_fat_cluster+0x318>  <== NEVER TAKEN
    if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )           
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) +
          fs_info->vol.afat_loc;                                      
    ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
 8017c94:	35 ad ff ff 	addi r13,r13,-1                                
 8017c98:	a1 ed 68 00 	and r13,r15,r13                                
                                                                      
    rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &sec_buf);    
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    switch ( fs_info->vol.type )                                      
 8017c9c:	41 6f 00 0e 	lbu r15,(r11+14)                               
 8017ca0:	34 01 00 02 	mvi r1,2                                       
 8017ca4:	45 e1 00 62 	be r15,r1,8017e2c <fat_set_fat_cluster+0x290>  
 8017ca8:	34 01 00 04 	mvi r1,4                                       
 8017cac:	45 e1 00 6d 	be r15,r1,8017e60 <fat_set_fat_cluster+0x2c4>  
 8017cb0:	34 01 00 01 	mvi r1,1                                       
 8017cb4:	5d e1 00 7c 	bne r15,r1,8017ea4 <fat_set_fat_cluster+0x308> <== NEVER TAKEN
    {                                                                 
        case FAT_FAT12:                                               
            if ( FAT_CLUSTER_IS_ODD(cln) )                            
 8017cb8:	21 8c 00 01 	andi r12,r12,0x1                               
 8017cbc:	2b 92 00 28 	lw r18,(sp+40)                                 
 8017cc0:	45 80 00 2c 	be r12,r0,8017d70 <fat_set_fat_cluster+0x1d4>  
            {                                                         
                fat16_clv = ((uint16_t  )in_val) << FAT_FAT12_SHIFT;  
 8017cc4:	34 02 00 04 	mvi r2,4                                       
 8017cc8:	ba 00 08 00 	mv r1,r16                                      
 8017ccc:	fb ff a5 47 	calli 80011e8 <__ashlsi3>                      
 8017cd0:	20 2c ff ff 	andi r12,r1,0xffff                             
                *(sec_buf + ofs) &= 0x0F;                             
 8017cd4:	b6 4d 08 00 	add r1,r18,r13                                 
 8017cd8:	40 22 00 00 	lbu r2,(r1+0)                                  
 8017cdc:	20 42 00 0f 	andi r2,r2,0xf                                 
 8017ce0:	30 22 00 00 	sb (r1+0),r2                                   
                                                                      
                *(sec_buf + ofs) |= (uint8_t)(fat16_clv & 0x00F0);    
 8017ce4:	2b 81 00 28 	lw r1,(sp+40)                                  
 8017ce8:	21 82 ff f0 	andi r2,r12,0xfff0                             
 8017cec:	b4 2d 08 00 	add r1,r1,r13                                  
 8017cf0:	40 23 00 00 	lbu r3,(r1+0)                                  
 8017cf4:	b8 62 10 00 	or r2,r3,r2                                    
 8017cf8:	30 22 00 00 	sb (r1+0),r2                                   
                                                                      
                fat_buf_mark_modified(fs_info);                       
                                                                      
                if ( ofs == (fs_info->vol.bps - 1) )                  
 8017cfc:	2d 61 00 00 	lhu r1,(r11+0)                                 
}                                                                     
                                                                      
static inline void                                                    
fat_buf_mark_modified(fat_fs_info_t *fs_info)                         
{                                                                     
    fs_info->c.modified = true;                                       
 8017d00:	31 6f 00 88 	sb (r11+136),r15                               
 8017d04:	34 21 ff ff 	addi r1,r1,-1                                  
 8017d08:	5d a1 00 12 	bne r13,r1,8017d50 <fat_set_fat_cluster+0x1b4> <== ALWAYS TAKEN
                {                                                     
                    rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
 8017d0c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8017d10:	36 22 00 01 	addi r2,r17,1                                  <== NOT EXECUTED
 8017d14:	34 03 00 01 	mvi r3,1                                       <== NOT EXECUTED
 8017d18:	37 84 00 28 	addi r4,sp,40                                  <== NOT EXECUTED
 8017d1c:	fb ff e0 a2 	calli 800ffa4 <fat_buf_access>                 <== NOT EXECUTED
 8017d20:	b8 20 70 00 	mv r14,r1                                      <== NOT EXECUTED
                                        &sec_buf);                    
                    if (rc != RC_OK)                                  
 8017d24:	5c 20 00 64 	bne r1,r0,8017eb4 <fat_set_fat_cluster+0x318>  <== NOT EXECUTED
                        return rc;                                    
                                                                      
                     *sec_buf &= 0x00;                                
 8017d28:	2b 81 00 28 	lw r1,(sp+40)                                  <== NOT EXECUTED
                                                                      
                     *sec_buf |= (uint8_t)((fat16_clv & 0xFF00)>>8);  
 8017d2c:	34 02 00 08 	mvi r2,8                                       <== NOT EXECUTED
                    rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
                                        &sec_buf);                    
                    if (rc != RC_OK)                                  
                        return rc;                                    
                                                                      
                     *sec_buf &= 0x00;                                
 8017d30:	30 20 00 00 	sb (r1+0),r0                                   <== NOT EXECUTED
                                                                      
                     *sec_buf |= (uint8_t)((fat16_clv & 0xFF00)>>8);  
 8017d34:	2b 8d 00 28 	lw r13,(sp+40)                                 <== NOT EXECUTED
 8017d38:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8017d3c:	f8 00 51 35 	calli 802c210 <__lshrsi3>                      <== NOT EXECUTED
 8017d40:	41 a2 00 00 	lbu r2,(r13+0)                                 <== NOT EXECUTED
 8017d44:	b8 22 08 00 	or r1,r1,r2                                    <== NOT EXECUTED
 8017d48:	31 a1 00 00 	sb (r13+0),r1                                  <== NOT EXECUTED
 8017d4c:	e0 00 00 27 	bi 8017de8 <fat_set_fat_cluster+0x24c>         <== NOT EXECUTED
                                                                      
                     fat_buf_mark_modified(fs_info);                  
                }                                                     
                else                                                  
                {                                                     
                    *(sec_buf + ofs + 1) &= 0x00;                     
 8017d50:	2b 81 00 28 	lw r1,(sp+40)                                  
 8017d54:	35 ad 00 01 	addi r13,r13,1                                 
 8017d58:	b4 2d 08 00 	add r1,r1,r13                                  
 8017d5c:	30 20 00 00 	sb (r1+0),r0                                   
                                                                      
                    *(sec_buf + ofs + 1) |= (uint8_t  )((fat16_clv & 0xFF00)>>8);
 8017d60:	2b 81 00 28 	lw r1,(sp+40)                                  
 8017d64:	b4 2d 68 00 	add r13,r1,r13                                 
 8017d68:	b9 80 08 00 	mv r1,r12                                      
 8017d6c:	e0 00 00 2a 	bi 8017e14 <fat_set_fat_cluster+0x278>         
                }                                                     
            }                                                         
            else                                                      
            {                                                         
                fat16_clv = ((uint16_t  )in_val) & FAT_FAT12_MASK;    
                *(sec_buf + ofs) &= 0x00;                             
 8017d70:	b6 4d 90 00 	add r18,r18,r13                                
 8017d74:	32 40 00 00 	sb (r18+0),r0                                  
                                                                      
                *(sec_buf + ofs) |= (uint8_t)(fat16_clv & 0x00FF);    
 8017d78:	2b 81 00 28 	lw r1,(sp+40)                                  
                    *(sec_buf + ofs + 1) |= (uint8_t  )((fat16_clv & 0xFF00)>>8);
                }                                                     
            }                                                         
            else                                                      
            {                                                         
                fat16_clv = ((uint16_t  )in_val) & FAT_FAT12_MASK;    
 8017d7c:	22 10 0f ff 	andi r16,r16,0xfff                             
                *(sec_buf + ofs) &= 0x00;                             
                                                                      
                *(sec_buf + ofs) |= (uint8_t)(fat16_clv & 0x00FF);    
 8017d80:	b4 2d 08 00 	add r1,r1,r13                                  
 8017d84:	40 22 00 00 	lbu r2,(r1+0)                                  
 8017d88:	b8 50 10 00 	or r2,r2,r16                                   
 8017d8c:	30 22 00 00 	sb (r1+0),r2                                   
                                                                      
                fat_buf_mark_modified(fs_info);                       
                                                                      
                if ( ofs == (fs_info->vol.bps - 1) )                  
 8017d90:	2d 61 00 00 	lhu r1,(r11+0)                                 
 8017d94:	31 6f 00 88 	sb (r11+136),r15                               
 8017d98:	34 21 ff ff 	addi r1,r1,-1                                  
 8017d9c:	5d a1 00 15 	bne r13,r1,8017df0 <fat_set_fat_cluster+0x254> <== ALWAYS TAKEN
                {                                                     
                    rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
 8017da0:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8017da4:	36 22 00 01 	addi r2,r17,1                                  <== NOT EXECUTED
 8017da8:	34 03 00 01 	mvi r3,1                                       <== NOT EXECUTED
 8017dac:	37 84 00 28 	addi r4,sp,40                                  <== NOT EXECUTED
 8017db0:	fb ff e0 7d 	calli 800ffa4 <fat_buf_access>                 <== NOT EXECUTED
 8017db4:	b8 20 70 00 	mv r14,r1                                      <== NOT EXECUTED
                                        &sec_buf);                    
                    if (rc != RC_OK)                                  
 8017db8:	5c 20 00 3f 	bne r1,r0,8017eb4 <fat_set_fat_cluster+0x318>  <== NOT EXECUTED
                        return rc;                                    
                                                                      
                    *sec_buf &= 0xF0;                                 
 8017dbc:	2b 81 00 28 	lw r1,(sp+40)                                  <== NOT EXECUTED
 8017dc0:	40 22 00 00 	lbu r2,(r1+0)                                  <== NOT EXECUTED
 8017dc4:	20 42 00 f0 	andi r2,r2,0xf0                                <== NOT EXECUTED
 8017dc8:	30 22 00 00 	sb (r1+0),r2                                   <== NOT EXECUTED
                                                                      
                    *sec_buf |= (uint8_t)((fat16_clv & 0xFF00)>>8);   
 8017dcc:	2b 8c 00 28 	lw r12,(sp+40)                                 <== NOT EXECUTED
 8017dd0:	34 02 00 08 	mvi r2,8                                       <== NOT EXECUTED
 8017dd4:	ba 00 08 00 	mv r1,r16                                      <== NOT EXECUTED
 8017dd8:	f8 00 51 0e 	calli 802c210 <__lshrsi3>                      <== NOT EXECUTED
 8017ddc:	41 82 00 00 	lbu r2,(r12+0)                                 <== NOT EXECUTED
 8017de0:	b8 22 08 00 	or r1,r1,r2                                    <== NOT EXECUTED
 8017de4:	31 81 00 00 	sb (r12+0),r1                                  <== NOT EXECUTED
 8017de8:	31 6f 00 88 	sb (r11+136),r15                               <== NOT EXECUTED
 8017dec:	e0 00 00 32 	bi 8017eb4 <fat_set_fat_cluster+0x318>         <== NOT EXECUTED
                                                                      
                    fat_buf_mark_modified(fs_info);                   
                }                                                     
                else                                                  
                {                                                     
                    *(sec_buf + ofs + 1) &= 0xF0;                     
 8017df0:	2b 81 00 28 	lw r1,(sp+40)                                  
 8017df4:	35 ad 00 01 	addi r13,r13,1                                 
 8017df8:	b4 2d 08 00 	add r1,r1,r13                                  
 8017dfc:	40 22 00 00 	lbu r2,(r1+0)                                  
 8017e00:	20 42 00 f0 	andi r2,r2,0xf0                                
 8017e04:	30 22 00 00 	sb (r1+0),r2                                   
                                                                      
                    *(sec_buf + ofs+1) |= (uint8_t)((fat16_clv & 0xFF00)>>8);
 8017e08:	2b 81 00 28 	lw r1,(sp+40)                                  
 8017e0c:	b4 2d 68 00 	add r13,r1,r13                                 
 8017e10:	ba 00 08 00 	mv r1,r16                                      
 8017e14:	34 02 00 08 	mvi r2,8                                       
 8017e18:	f8 00 50 fe 	calli 802c210 <__lshrsi3>                      
 8017e1c:	41 a2 00 00 	lbu r2,(r13+0)                                 
 8017e20:	b8 22 08 00 	or r1,r1,r2                                    
 8017e24:	31 a1 00 00 	sb (r13+0),r1                                  
 8017e28:	e0 00 00 23 	bi 8017eb4 <fat_set_fat_cluster+0x318>         
                }                                                     
            }                                                         
            break;                                                    
                                                                      
        case FAT_FAT16:                                               
            *((uint16_t   *)(sec_buf + ofs)) =                        
 8017e2c:	2b 81 00 28 	lw r1,(sp+40)                                  
                    (uint16_t  )(CT_LE_W(in_val));                    
 8017e30:	22 10 ff ff 	andi r16,r16,0xffff                            
 8017e34:	34 02 00 08 	mvi r2,8                                       
                }                                                     
            }                                                         
            break;                                                    
                                                                      
        case FAT_FAT16:                                               
            *((uint16_t   *)(sec_buf + ofs)) =                        
 8017e38:	b4 2d 68 00 	add r13,r1,r13                                 
 8017e3c:	ba 00 08 00 	mv r1,r16                                      
 8017e40:	fb ff a4 ea 	calli 80011e8 <__ashlsi3>                      
 8017e44:	b8 20 60 00 	mv r12,r1                                      
 8017e48:	34 02 00 08 	mvi r2,8                                       
 8017e4c:	ba 00 08 00 	mv r1,r16                                      
 8017e50:	f8 00 50 f0 	calli 802c210 <__lshrsi3>                      
 8017e54:	b9 81 08 00 	or r1,r12,r1                                   
 8017e58:	0d a1 00 00 	sh (r13+0),r1                                  
 8017e5c:	e0 00 00 0f 	bi 8017e98 <fat_set_fat_cluster+0x2fc>         
                    (uint16_t  )(CT_LE_W(in_val));                    
            fat_buf_mark_modified(fs_info);                           
            break;                                                    
                                                                      
        case FAT_FAT32:                                               
            fat32_clv = CT_LE_L((in_val & FAT_FAT32_MASK));           
 8017e60:	78 02 08 02 	mvhi r2,0x802                                  
 8017e64:	38 42 d5 2c 	ori r2,r2,0xd52c                               
 8017e68:	28 41 00 00 	lw r1,(r2+0)                                   
 8017e6c:	a2 01 08 00 	and r1,r16,r1                                  
 8017e70:	fb ff fe a0 	calli 80178f0 <CPU_swap_u32>                   
 8017e74:	b8 20 60 00 	mv r12,r1                                      
                                                                      
            *((uint32_t *)(sec_buf + ofs)) &= CT_LE_L(0xF0000000);    
 8017e78:	2b 81 00 28 	lw r1,(sp+40)                                  
 8017e7c:	b4 2d 68 00 	add r13,r1,r13                                 
 8017e80:	78 01 f0 00 	mvhi r1,0xf000                                 
 8017e84:	fb ff fe 9b 	calli 80178f0 <CPU_swap_u32>                   
 8017e88:	29 a2 00 00 	lw r2,(r13+0)                                  
 8017e8c:	a0 22 10 00 	and r2,r1,r2                                   
                                                                      
            *((uint32_t *)(sec_buf + ofs)) |= fat32_clv;              
 8017e90:	b8 4c 10 00 	or r2,r2,r12                                   
 8017e94:	59 a2 00 00 	sw (r13+0),r2                                  
 8017e98:	34 01 00 01 	mvi r1,1                                       
 8017e9c:	31 61 00 88 	sb (r11+136),r1                                
                                                                      
            fat_buf_mark_modified(fs_info);                           
            break;                                                    
 8017ea0:	e0 00 00 05 	bi 8017eb4 <fat_set_fat_cluster+0x318>         
                                                                      
        default:                                                      
            rtems_set_errno_and_return_minus_one(EIO);                
 8017ea4:	f8 00 06 da 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 8017ea8:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 8017eac:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 8017eb0:	34 0e ff ff 	mvi r14,-1                                     <== NOT EXECUTED
            break;                                                    
                                                                      
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
 8017eb4:	b9 c0 08 00 	mv r1,r14                                      
 8017eb8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8017ebc:	2b 8b 00 24 	lw r11,(sp+36)                                 
 8017ec0:	2b 8c 00 20 	lw r12,(sp+32)                                 
 8017ec4:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 8017ec8:	2b 8e 00 18 	lw r14,(sp+24)                                 
 8017ecc:	2b 8f 00 14 	lw r15,(sp+20)                                 
 8017ed0:	2b 90 00 10 	lw r16,(sp+16)                                 
 8017ed4:	2b 91 00 0c 	lw r17,(sp+12)                                 
 8017ed8:	2b 92 00 08 	lw r18,(sp+8)                                  
 8017edc:	37 9c 00 28 	addi sp,sp,40                                  
 8017ee0:	c3 a0 00 00 	ret                                            
                                                                      

08010f7c <fat_shutdown_drive>: * RC_OK on success, or -1 if error occured * and errno set appropriately */ int fat_shutdown_drive(fat_fs_info_t *fs_info) {
 8010f7c:	37 9c ff e8 	addi sp,sp,-24                                 
 8010f80:	5b 8b 00 18 	sw (sp+24),r11                                 
 8010f84:	5b 8c 00 14 	sw (sp+20),r12                                 
 8010f88:	5b 8d 00 10 	sw (sp+16),r13                                 
 8010f8c:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8010f90:	5b 8f 00 08 	sw (sp+8),r15                                  
 8010f94:	5b 9d 00 04 	sw (sp+4),ra                                   
 8010f98:	b8 20 58 00 	mv r11,r1                                      
    int            rc = RC_OK;                                        
    int            i = 0;                                             
                                                                      
    rc = fat_sync(fs_info);                                           
 8010f9c:	fb ff ff b6 	calli 8010e74 <fat_sync>                       
 8010fa0:	b8 20 60 00 	mv r12,r1                                      
    if ( rc != RC_OK )                                                
 8010fa4:	44 20 00 02 	be r1,r0,8010fac <fat_shutdown_drive+0x30>     <== ALWAYS TAKEN
        rc = -1;                                                      
 8010fa8:	34 0c ff ff 	mvi r12,-1                                     <== NOT EXECUTED
 8010fac:	34 0d 00 00 	mvi r13,0                                      
                                                                      
    for (i = 0; i < FAT_HASH_SIZE; i++)                               
 8010fb0:	34 0e 00 18 	mvi r14,24                                     
    {                                                                 
        rtems_chain_node    *node = NULL;                             
        rtems_chain_control *the_chain = fs_info->vhash + i;          
 8010fb4:	29 6f 00 6c 	lw r15,(r11+108)                               
 8010fb8:	b5 ed 78 00 	add r15,r15,r13                                
                                                                      
        while ( (node = rtems_chain_get(the_chain)) != NULL )         
 8010fbc:	e0 00 00 02 	bi 8010fc4 <fat_shutdown_drive+0x48>           
            free(node);                                               
 8010fc0:	fb ff c8 03 	calli 8002fcc <free>                           
 */                                                                   
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(               
  rtems_chain_control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Get( the_chain );                                     
 8010fc4:	b9 e0 08 00 	mv r1,r15                                      
 8010fc8:	fb ff d4 86 	calli 80061e0 <_Chain_Get>                     
    for (i = 0; i < FAT_HASH_SIZE; i++)                               
    {                                                                 
        rtems_chain_node    *node = NULL;                             
        rtems_chain_control *the_chain = fs_info->vhash + i;          
                                                                      
        while ( (node = rtems_chain_get(the_chain)) != NULL )         
 8010fcc:	5c 20 ff fd 	bne r1,r0,8010fc0 <fat_shutdown_drive+0x44>    
 8010fd0:	35 ad 00 0c 	addi r13,r13,12                                
                                                                      
    rc = fat_sync(fs_info);                                           
    if ( rc != RC_OK )                                                
        rc = -1;                                                      
                                                                      
    for (i = 0; i < FAT_HASH_SIZE; i++)                               
 8010fd4:	5d ae ff f8 	bne r13,r14,8010fb4 <fat_shutdown_drive+0x38>  
 8010fd8:	34 0d 00 00 	mvi r13,0                                      
                                                                      
        while ( (node = rtems_chain_get(the_chain)) != NULL )         
            free(node);                                               
    }                                                                 
                                                                      
    for (i = 0; i < FAT_HASH_SIZE; i++)                               
 8010fdc:	34 0e 00 18 	mvi r14,24                                     
    {                                                                 
        rtems_chain_node    *node = NULL;                             
        rtems_chain_control *the_chain = fs_info->rhash + i;          
 8010fe0:	29 6f 00 70 	lw r15,(r11+112)                               
 8010fe4:	b5 ed 78 00 	add r15,r15,r13                                
                                                                      
        while ( (node = rtems_chain_get(the_chain)) != NULL )         
 8010fe8:	e0 00 00 02 	bi 8010ff0 <fat_shutdown_drive+0x74>           
            free(node);                                               
 8010fec:	fb ff c7 f8 	calli 8002fcc <free>                           <== NOT EXECUTED
 8010ff0:	b9 e0 08 00 	mv r1,r15                                      
 8010ff4:	fb ff d4 7b 	calli 80061e0 <_Chain_Get>                     
    for (i = 0; i < FAT_HASH_SIZE; i++)                               
    {                                                                 
        rtems_chain_node    *node = NULL;                             
        rtems_chain_control *the_chain = fs_info->rhash + i;          
                                                                      
        while ( (node = rtems_chain_get(the_chain)) != NULL )         
 8010ff8:	5c 20 ff fd 	bne r1,r0,8010fec <fat_shutdown_drive+0x70>    <== NEVER TAKEN
 8010ffc:	35 ad 00 0c 	addi r13,r13,12                                
                                                                      
        while ( (node = rtems_chain_get(the_chain)) != NULL )         
            free(node);                                               
    }                                                                 
                                                                      
    for (i = 0; i < FAT_HASH_SIZE; i++)                               
 8011000:	5d ae ff f8 	bne r13,r14,8010fe0 <fat_shutdown_drive+0x64>  
                                                                      
        while ( (node = rtems_chain_get(the_chain)) != NULL )         
            free(node);                                               
    }                                                                 
                                                                      
    free(fs_info->vhash);                                             
 8011004:	29 61 00 6c 	lw r1,(r11+108)                                
 8011008:	fb ff c7 f1 	calli 8002fcc <free>                           
    free(fs_info->rhash);                                             
 801100c:	29 61 00 70 	lw r1,(r11+112)                                
 8011010:	fb ff c7 ef 	calli 8002fcc <free>                           
                                                                      
    free(fs_info->uino);                                              
 8011014:	29 61 00 74 	lw r1,(r11+116)                                
 8011018:	fb ff c7 ed 	calli 8002fcc <free>                           
    free(fs_info->sec_buf);                                           
 801101c:	29 61 00 90 	lw r1,(r11+144)                                
 8011020:	fb ff c7 eb 	calli 8002fcc <free>                           
    close(fs_info->vol.fd);                                           
 8011024:	29 61 00 60 	lw r1,(r11+96)                                 
 8011028:	fb ff c7 be 	calli 8002f20 <close>                          
                                                                      
    if (rc)                                                           
 801102c:	45 80 00 04 	be r12,r0,801103c <fat_shutdown_drive+0xc0>    <== ALWAYS TAKEN
        errno = EIO;                                                  
 8011030:	f8 00 22 77 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 8011034:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 8011038:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
    return rc;                                                        
}                                                                     
 801103c:	b9 80 08 00 	mv r1,r12                                      
 8011040:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8011044:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8011048:	2b 8c 00 14 	lw r12,(sp+20)                                 
 801104c:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8011050:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8011054:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8011058:	37 9c 00 18 	addi sp,sp,24                                  
 801105c:	c3 a0 00 00 	ret                                            
                                                                      

08010e74 <fat_sync>: return RC_OK; } int fat_sync(fat_fs_info_t *fs_info) {
 8010e74:	37 9c ff e8 	addi sp,sp,-24                                 
 8010e78:	5b 8b 00 14 	sw (sp+20),r11                                 
 8010e7c:	5b 8c 00 10 	sw (sp+16),r12                                 
 8010e80:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8010e84:	5b 8e 00 08 	sw (sp+8),r14                                  
 8010e88:	5b 9d 00 04 	sw (sp+4),ra                                   
static int                                                            
fat_fat32_update_fsinfo_sector(fat_fs_info_t *fs_info)                
{                                                                     
    ssize_t ret1 = 0, ret2 = 0;                                       
                                                                      
    if (fs_info->vol.type == FAT_FAT32)                               
 8010e8c:	40 23 00 0e 	lbu r3,(r1+14)                                 
    return RC_OK;                                                     
}                                                                     
                                                                      
int                                                                   
fat_sync(fat_fs_info_t *fs_info)                                      
{                                                                     
 8010e90:	b8 20 58 00 	mv r11,r1                                      
static int                                                            
fat_fat32_update_fsinfo_sector(fat_fs_info_t *fs_info)                
{                                                                     
    ssize_t ret1 = 0, ret2 = 0;                                       
                                                                      
    if (fs_info->vol.type == FAT_FAT32)                               
 8010e94:	34 01 00 04 	mvi r1,4                                       
 *     RC_OK on success, or -1 if error occured (errno set appropriately)
 */                                                                   
static int                                                            
fat_fat32_update_fsinfo_sector(fat_fs_info_t *fs_info)                
{                                                                     
    ssize_t ret1 = 0, ret2 = 0;                                       
 8010e98:	34 02 00 00 	mvi r2,0                                       
 8010e9c:	34 0e 00 00 	mvi r14,0                                      
                                                                      
    if (fs_info->vol.type == FAT_FAT32)                               
 8010ea0:	5c 61 00 1e 	bne r3,r1,8010f18 <fat_sync+0xa4>              
    {                                                                 
        uint32_t free_count = fs_info->vol.free_cls;                  
 8010ea4:	29 6d 00 44 	lw r13,(r11+68)                                
        uint32_t next_free = fs_info->vol.next_cl;                    
                                                                      
        if (free_count != fs_info->vol.free_cls_in_fs_info)           
 8010ea8:	29 61 00 48 	lw r1,(r11+72)                                 
    ssize_t ret1 = 0, ret2 = 0;                                       
                                                                      
    if (fs_info->vol.type == FAT_FAT32)                               
    {                                                                 
        uint32_t free_count = fs_info->vol.free_cls;                  
        uint32_t next_free = fs_info->vol.next_cl;                    
 8010eac:	29 6c 00 4c 	lw r12,(r11+76)                                
                                                                      
        if (free_count != fs_info->vol.free_cls_in_fs_info)           
 8010eb0:	45 a1 00 0c 	be r13,r1,8010ee0 <fat_sync+0x6c>              <== ALWAYS TAKEN
        {                                                             
            uint32_t le_free_count = CT_LE_L(free_count);             
 8010eb4:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 8010eb8:	fb ff fb 9d 	calli 800fd2c <CPU_swap_u32>                   <== NOT EXECUTED
                                                                      
            fs_info->vol.free_cls_in_fs_info = free_count;            
                                                                      
            ret1 = fat_sector_write(fs_info,                          
 8010ebc:	2d 62 00 40 	lhu r2,(r11+64)                                <== NOT EXECUTED
        uint32_t free_count = fs_info->vol.free_cls;                  
        uint32_t next_free = fs_info->vol.next_cl;                    
                                                                      
        if (free_count != fs_info->vol.free_cls_in_fs_info)           
        {                                                             
            uint32_t le_free_count = CT_LE_L(free_count);             
 8010ec0:	5b 81 00 18 	sw (sp+24),r1                                  <== NOT EXECUTED
                                                                      
            fs_info->vol.free_cls_in_fs_info = free_count;            
 8010ec4:	59 6d 00 48 	sw (r11+72),r13                                <== NOT EXECUTED
                                                                      
            ret1 = fat_sector_write(fs_info,                          
 8010ec8:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8010ecc:	34 03 01 e8 	mvi r3,488                                     <== NOT EXECUTED
 8010ed0:	34 04 00 04 	mvi r4,4                                       <== NOT EXECUTED
 8010ed4:	37 85 00 18 	addi r5,sp,24                                  <== NOT EXECUTED
 8010ed8:	fb ff fc a6 	calli 8010170 <fat_sector_write>               <== NOT EXECUTED
 8010edc:	b8 20 70 00 	mv r14,r1                                      <== NOT EXECUTED
                                    FAT_FSINFO_FREE_CLUSTER_COUNT_OFFSET,
                                    sizeof(le_free_count),            
                                    &le_free_count);                  
        }                                                             
                                                                      
        if (next_free != fs_info->vol.next_cl_in_fs_info)             
 8010ee0:	29 61 00 50 	lw r1,(r11+80)                                 
 *     RC_OK on success, or -1 if error occured (errno set appropriately)
 */                                                                   
static int                                                            
fat_fat32_update_fsinfo_sector(fat_fs_info_t *fs_info)                
{                                                                     
    ssize_t ret1 = 0, ret2 = 0;                                       
 8010ee4:	34 02 00 00 	mvi r2,0                                       
                                    FAT_FSINFO_FREE_CLUSTER_COUNT_OFFSET,
                                    sizeof(le_free_count),            
                                    &le_free_count);                  
        }                                                             
                                                                      
        if (next_free != fs_info->vol.next_cl_in_fs_info)             
 8010ee8:	45 81 00 0c 	be r12,r1,8010f18 <fat_sync+0xa4>              <== NEVER TAKEN
        {                                                             
            uint32_t le_next_free = CT_LE_L(next_free);               
 8010eec:	b9 80 08 00 	mv r1,r12                                      
 8010ef0:	fb ff fb 8f 	calli 800fd2c <CPU_swap_u32>                   
                                                                      
            fs_info->vol.next_cl_in_fs_info = next_free;              
                                                                      
            ret2 = fat_sector_write(fs_info,                          
 8010ef4:	2d 62 00 40 	lhu r2,(r11+64)                                
                                    &le_free_count);                  
        }                                                             
                                                                      
        if (next_free != fs_info->vol.next_cl_in_fs_info)             
        {                                                             
            uint32_t le_next_free = CT_LE_L(next_free);               
 8010ef8:	5b 81 00 18 	sw (sp+24),r1                                  
                                                                      
            fs_info->vol.next_cl_in_fs_info = next_free;              
 8010efc:	59 6c 00 50 	sw (r11+80),r12                                
                                                                      
            ret2 = fat_sector_write(fs_info,                          
 8010f00:	b9 60 08 00 	mv r1,r11                                      
 8010f04:	34 03 01 ec 	mvi r3,492                                     
 8010f08:	34 04 00 04 	mvi r4,4                                       
 8010f0c:	37 85 00 18 	addi r5,sp,24                                  
 8010f10:	fb ff fc 98 	calli 8010170 <fat_sector_write>               
 8010f14:	b8 20 10 00 	mv r2,r1                                       
                                    sizeof(le_next_free),             
                                    &le_next_free);                   
        }                                                             
    }                                                                 
                                                                      
    if ( (ret1 < 0) || (ret2 < 0) )                                   
 8010f18:	b8 40 08 00 	mv r1,r2                                       
 8010f1c:	34 02 00 1f 	mvi r2,31                                      
 8010f20:	f8 00 6c bc 	calli 802c210 <__lshrsi3>                      
 8010f24:	b8 20 60 00 	mv r12,r1                                      
 8010f28:	34 02 00 1f 	mvi r2,31                                      
 8010f2c:	b9 c0 08 00 	mv r1,r14                                      
 8010f30:	f8 00 6c b8 	calli 802c210 <__lshrsi3>                      
 8010f34:	b9 81 08 00 	or r1,r12,r1                                   
 8010f38:	20 2c 00 ff 	andi r12,r1,0xff                               
                                                                      
    rc = fat_fat32_update_fsinfo_sector(fs_info);                     
    if ( rc != RC_OK )                                                
        rc = -1;                                                      
                                                                      
    fat_buf_release(fs_info);                                         
 8010f3c:	b9 60 08 00 	mv r1,r11                                      
 8010f40:	fb ff fb 9b 	calli 800fdac <fat_buf_release>                
                                                                      
    if (rtems_bdbuf_syncdev(fs_info->vol.dd) != RTEMS_SUCCESSFUL)     
 8010f44:	29 61 00 64 	lw r1,(r11+100)                                
{                                                                     
    int rc = RC_OK;                                                   
                                                                      
    rc = fat_fat32_update_fsinfo_sector(fs_info);                     
    if ( rc != RC_OK )                                                
        rc = -1;                                                      
 8010f48:	65 8c 00 00 	cmpei r12,r12,0                                
 8010f4c:	35 8c ff ff 	addi r12,r12,-1                                
                                                                      
    fat_buf_release(fs_info);                                         
                                                                      
    if (rtems_bdbuf_syncdev(fs_info->vol.dd) != RTEMS_SUCCESSFUL)     
 8010f50:	fb ff f3 ca 	calli 800de78 <rtems_bdbuf_syncdev>            
 8010f54:	44 20 00 02 	be r1,r0,8010f5c <fat_sync+0xe8>               <== ALWAYS TAKEN
        rc = -1;                                                      
 8010f58:	34 0c ff ff 	mvi r12,-1                                     <== NOT EXECUTED
                                                                      
    return rc;                                                        
}                                                                     
 8010f5c:	b9 80 08 00 	mv r1,r12                                      
 8010f60:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8010f64:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8010f68:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8010f6c:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8010f70:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8010f74:	37 9c 00 18 	addi sp,sp,24                                  
 8010f78:	c3 a0 00 00 	ret                                            
                                                                      

08032998 <fchdir>: /** * compatible with SVr4, 4.4BSD and X/OPEN - Change Directory */ int fchdir( int fd ) {
 8032998:	37 9c ff 90 	addi sp,sp,-112                                
 803299c:	5b 8b 00 10 	sw (sp+16),r11                                 
 80329a0:	5b 8c 00 0c 	sw (sp+12),r12                                 
 80329a4:	5b 8d 00 08 	sw (sp+8),r13                                  
 80329a8:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
  st.st_mode = 0;                                                     
  st.st_uid = 0;                                                      
  st.st_gid = 0;                                                      
                                                                      
  rtems_libio_check_fd( fd );                                         
 80329ac:	78 02 08 06 	mvhi r2,0x806                                  
 80329b0:	38 42 40 10 	ori r2,r2,0x4010                               
 80329b4:	28 42 00 00 	lw r2,(r2+0)                                   
  int rv = 0;                                                         
  rtems_libio_t *iop;                                                 
  struct stat st;                                                     
  rtems_filesystem_location_info_t loc;                               
                                                                      
  st.st_mode = 0;                                                     
 80329b8:	5b 80 00 20 	sw (sp+32),r0                                  
  st.st_uid = 0;                                                      
 80329bc:	0f 80 00 26 	sh (sp+38),r0                                  
  st.st_gid = 0;                                                      
 80329c0:	0f 80 00 28 	sh (sp+40),r0                                  
                                                                      
  rtems_libio_check_fd( fd );                                         
 80329c4:	54 41 00 02 	bgu r2,r1,80329cc <fchdir+0x34>                
 80329c8:	e0 00 00 0a 	bi 80329f0 <fchdir+0x58>                       
  iop = rtems_libio_iop( fd );                                        
 80329cc:	78 0b 08 06 	mvhi r11,0x806                                 
 80329d0:	39 6b 7e c0 	ori r11,r11,0x7ec0                             
 80329d4:	34 02 00 2c 	mvi r2,44                                      
 80329d8:	f8 00 92 c6 	calli 80574f0 <__mulsi3>                       
 80329dc:	29 6c 00 00 	lw r12,(r11+0)                                 
 80329e0:	b5 81 60 00 	add r12,r12,r1                                 
  rtems_libio_check_is_open( iop );                                   
 80329e4:	29 81 00 08 	lw r1,(r12+8)                                  
 80329e8:	20 21 01 00 	andi r1,r1,0x100                               
 80329ec:	5c 20 00 06 	bne r1,r0,8032a04 <fchdir+0x6c>                
 80329f0:	f8 00 14 79 	calli 8037bd4 <__errno>                        
 80329f4:	34 02 00 09 	mvi r2,9                                       
 80329f8:	58 22 00 00 	sw (r1+0),r2                                   
 80329fc:	34 0b ff ff 	mvi r11,-1                                     
 8032a00:	e0 00 00 23 	bi 8032a8c <fchdir+0xf4>                       
  if ( rv == 0 ) {                                                    
    rv = rtems_filesystem_chdir( &loc );                              
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 8032a04:	29 81 00 20 	lw r1,(r12+32)                                 
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open( iop );                                   
                                                                      
  rtems_filesystem_instance_lock( &iop->pathinfo );                   
  rv = (*iop->pathinfo.handlers->fstat_h)( &iop->pathinfo, &st );     
 8032a08:	35 8d 00 0c 	addi r13,r12,12                                
  const rtems_filesystem_location_info_t *loc                         
)                                                                     
{                                                                     
  const rtems_filesystem_mount_table_entry_t *mt_entry = loc->mt_entry;
                                                                      
  (*mt_entry->ops->lock_h)( mt_entry );                               
 8032a0c:	28 22 00 0c 	lw r2,(r1+12)                                  
 8032a10:	28 42 00 00 	lw r2,(r2+0)                                   
 8032a14:	d8 40 00 00 	call r2                                        
 8032a18:	29 81 00 1c 	lw r1,(r12+28)                                 
 8032a1c:	37 82 00 14 	addi r2,sp,20                                  
 8032a20:	28 23 00 18 	lw r3,(r1+24)                                  
 8032a24:	b9 a0 08 00 	mv r1,r13                                      
 8032a28:	d8 60 00 00 	call r3                                        
 8032a2c:	b8 20 58 00 	mv r11,r1                                      
  if ( rv == 0 ) {                                                    
 8032a30:	5c 20 00 0f 	bne r1,r0,8032a6c <fchdir+0xd4>                <== NEVER TAKEN
    bool access_ok = rtems_filesystem_check_access(                   
 8032a34:	2b 82 00 20 	lw r2,(sp+32)                                  
 8032a38:	2f 83 00 26 	lhu r3,(sp+38)                                 
 8032a3c:	2f 84 00 28 	lhu r4,(sp+40)                                 
 8032a40:	34 01 00 01 	mvi r1,1                                       
 8032a44:	fb ff 61 01 	calli 800ae48 <rtems_filesystem_check_access>  
      st.st_mode,                                                     
      st.st_uid,                                                      
      st.st_gid                                                       
    );                                                                
                                                                      
    if ( access_ok ) {                                                
 8032a48:	44 2b 00 05 	be r1,r11,8032a5c <fchdir+0xc4>                
      rtems_filesystem_location_clone( &loc, &iop->pathinfo );        
 8032a4c:	37 81 00 5c 	addi r1,sp,92                                  
 8032a50:	b9 a0 10 00 	mv r2,r13                                      
 8032a54:	fb ff 5f 25 	calli 800a6e8 <rtems_filesystem_location_clone>
 8032a58:	e0 00 00 05 	bi 8032a6c <fchdir+0xd4>                       
    } else {                                                          
      errno = EACCES;                                                 
 8032a5c:	f8 00 14 5e 	calli 8037bd4 <__errno>                        
 8032a60:	34 02 00 0d 	mvi r2,13                                      
 8032a64:	58 22 00 00 	sw (r1+0),r2                                   
      rv = -1;                                                        
 8032a68:	34 0b ff ff 	mvi r11,-1                                     
  if ( rv == 0 ) {                                                    
    rv = rtems_filesystem_chdir( &loc );                              
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 8032a6c:	29 81 00 20 	lw r1,(r12+32)                                 
  const rtems_filesystem_location_info_t *loc                         
)                                                                     
{                                                                     
  const rtems_filesystem_mount_table_entry_t *mt_entry = loc->mt_entry;
                                                                      
  (*mt_entry->ops->unlock_h)( mt_entry );                             
 8032a70:	28 22 00 0c 	lw r2,(r1+12)                                  
 8032a74:	28 42 00 04 	lw r2,(r2+4)                                   
 8032a78:	d8 40 00 00 	call r2                                        
      rv = -1;                                                        
    }                                                                 
  }                                                                   
  rtems_filesystem_instance_unlock( &iop->pathinfo );                 
                                                                      
  if ( rv == 0 ) {                                                    
 8032a7c:	5d 60 00 04 	bne r11,r0,8032a8c <fchdir+0xf4>               
    rv = rtems_filesystem_chdir( &loc );                              
 8032a80:	37 81 00 5c 	addi r1,sp,92                                  
 8032a84:	fb ff bc de 	calli 8021dfc <rtems_filesystem_chdir>         
 8032a88:	b8 20 58 00 	mv r11,r1                                      
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 8032a8c:	b9 60 08 00 	mv r1,r11                                      
 8032a90:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8032a94:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8032a98:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8032a9c:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8032aa0:	37 9c 00 70 	addi sp,sp,112                                 
 8032aa4:	c3 a0 00 00 	ret                                            
                                                                      

08022458 <fchmod>: /** * POSIX 1003.1b 5.6.4 - Change File Modes */ int fchmod( int fd, mode_t mode ) {
 8022458:	37 9c ff f4 	addi sp,sp,-12                                 
 802245c:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8022460:	5b 8c 00 08 	sw (sp+8),r12                                  
 8022464:	5b 9d 00 04 	sw (sp+4),ra                                   
  int rv;                                                             
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
 8022468:	78 03 08 06 	mvhi r3,0x806                                  
 802246c:	38 63 40 10 	ori r3,r3,0x4010                               
                                                                      
/**                                                                   
 *  POSIX 1003.1b 5.6.4 - Change File Modes                           
 */                                                                   
int fchmod( int fd, mode_t mode )                                     
{                                                                     
 8022470:	b8 40 60 00 	mv r12,r2                                      
  int rv;                                                             
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
 8022474:	28 62 00 00 	lw r2,(r3+0)                                   
 8022478:	54 41 00 02 	bgu r2,r1,8022480 <fchmod+0x28>                
 802247c:	e0 00 00 0a 	bi 80224a4 <fchmod+0x4c>                       
  iop = rtems_libio_iop( fd );                                        
 8022480:	78 0b 08 06 	mvhi r11,0x806                                 
 8022484:	39 6b 7e c0 	ori r11,r11,0x7ec0                             
 8022488:	34 02 00 2c 	mvi r2,44                                      
 802248c:	f8 00 d4 19 	calli 80574f0 <__mulsi3>                       
 8022490:	29 6b 00 00 	lw r11,(r11+0)                                 
 8022494:	b5 61 58 00 	add r11,r11,r1                                 
  rtems_libio_check_is_open(iop);                                     
 8022498:	29 61 00 08 	lw r1,(r11+8)                                  
 802249c:	20 21 01 00 	andi r1,r1,0x100                               
 80224a0:	5c 20 00 04 	bne r1,r0,80224b0 <fchmod+0x58>                
 80224a4:	f8 00 55 cc 	calli 8037bd4 <__errno>                        
 80224a8:	34 02 00 09 	mvi r2,9                                       
 80224ac:	e0 00 00 15 	bi 8022500 <fchmod+0xa8>                       
                                                                      
  if (iop->pathinfo.mt_entry->writeable) {                            
 80224b0:	29 61 00 20 	lw r1,(r11+32)                                 
 80224b4:	40 22 00 29 	lbu r2,(r1+41)                                 
 80224b8:	44 40 00 10 	be r2,r0,80224f8 <fchmod+0xa0>                 <== NEVER TAKEN
  const rtems_filesystem_location_info_t *loc                         
)                                                                     
{                                                                     
  const rtems_filesystem_mount_table_entry_t *mt_entry = loc->mt_entry;
                                                                      
  (*mt_entry->ops->lock_h)( mt_entry );                               
 80224bc:	28 22 00 0c 	lw r2,(r1+12)                                  
 80224c0:	28 42 00 00 	lw r2,(r2+0)                                   
 80224c4:	d8 40 00 00 	call r2                                        
    rtems_filesystem_instance_lock( &iop->pathinfo );                 
    rv = (*iop->pathinfo.mt_entry->ops->fchmod_h)( &iop->pathinfo, mode );
 80224c8:	29 61 00 20 	lw r1,(r11+32)                                 
 80224cc:	b9 80 10 00 	mv r2,r12                                      
 80224d0:	28 21 00 0c 	lw r1,(r1+12)                                  
 80224d4:	28 23 00 20 	lw r3,(r1+32)                                  
 80224d8:	35 61 00 0c 	addi r1,r11,12                                 
 80224dc:	d8 60 00 00 	call r3                                        
 80224e0:	b8 20 60 00 	mv r12,r1                                      
    errno = EROFS;                                                    
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 80224e4:	29 61 00 20 	lw r1,(r11+32)                                 
  const rtems_filesystem_location_info_t *loc                         
)                                                                     
{                                                                     
  const rtems_filesystem_mount_table_entry_t *mt_entry = loc->mt_entry;
                                                                      
  (*mt_entry->ops->unlock_h)( mt_entry );                             
 80224e8:	28 22 00 0c 	lw r2,(r1+12)                                  
 80224ec:	28 42 00 04 	lw r2,(r2+4)                                   
 80224f0:	d8 40 00 00 	call r2                                        
 80224f4:	e0 00 00 05 	bi 8022508 <fchmod+0xb0>                       
  if (iop->pathinfo.mt_entry->writeable) {                            
    rtems_filesystem_instance_lock( &iop->pathinfo );                 
    rv = (*iop->pathinfo.mt_entry->ops->fchmod_h)( &iop->pathinfo, mode );
    rtems_filesystem_instance_unlock( &iop->pathinfo );               
  } else {                                                            
    errno = EROFS;                                                    
 80224f8:	f8 00 55 b7 	calli 8037bd4 <__errno>                        <== NOT EXECUTED
 80224fc:	34 02 00 1e 	mvi r2,30                                      <== NOT EXECUTED
 8022500:	58 22 00 00 	sw (r1+0),r2                                   
    rv = -1;                                                          
 8022504:	34 0c ff ff 	mvi r12,-1                                     
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 8022508:	b9 80 08 00 	mv r1,r12                                      
 802250c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8022510:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8022514:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8022518:	37 9c 00 0c 	addi sp,sp,12                                  
 802251c:	c3 a0 00 00 	ret                                            
                                                                      

08022520 <fchown>: /** * POSIX 1003.1b 5.6.5 - Change Owner and Group of a File */ int fchown( int fd, uid_t owner, gid_t group ) {
 8022520:	37 9c ff f0 	addi sp,sp,-16                                 
 8022524:	5b 8b 00 10 	sw (sp+16),r11                                 
 8022528:	5b 8c 00 0c 	sw (sp+12),r12                                 
 802252c:	5b 8d 00 08 	sw (sp+8),r13                                  
 8022530:	5b 9d 00 04 	sw (sp+4),ra                                   
  int rv = 0;                                                         
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
 8022534:	78 04 08 06 	mvhi r4,0x806                                  
 8022538:	38 84 40 10 	ori r4,r4,0x4010                               
                                                                      
/**                                                                   
 *  POSIX 1003.1b 5.6.5 - Change Owner and Group of a File            
 */                                                                   
int fchown( int fd, uid_t owner, gid_t group )                        
{                                                                     
 802253c:	20 4d ff ff 	andi r13,r2,0xffff                             
  int rv = 0;                                                         
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
 8022540:	28 82 00 00 	lw r2,(r4+0)                                   
                                                                      
/**                                                                   
 *  POSIX 1003.1b 5.6.5 - Change Owner and Group of a File            
 */                                                                   
int fchown( int fd, uid_t owner, gid_t group )                        
{                                                                     
 8022544:	20 6c ff ff 	andi r12,r3,0xffff                             
  int rv = 0;                                                         
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
 8022548:	54 41 00 02 	bgu r2,r1,8022550 <fchown+0x30>                
 802254c:	e0 00 00 0a 	bi 8022574 <fchown+0x54>                       
  iop = rtems_libio_iop( fd );                                        
 8022550:	78 0b 08 06 	mvhi r11,0x806                                 
 8022554:	39 6b 7e c0 	ori r11,r11,0x7ec0                             
 8022558:	34 02 00 2c 	mvi r2,44                                      
 802255c:	f8 00 d3 e5 	calli 80574f0 <__mulsi3>                       
 8022560:	29 6b 00 00 	lw r11,(r11+0)                                 
 8022564:	b5 61 58 00 	add r11,r11,r1                                 
  rtems_libio_check_is_open(iop);                                     
 8022568:	29 61 00 08 	lw r1,(r11+8)                                  
 802256c:	20 21 01 00 	andi r1,r1,0x100                               
 8022570:	5c 20 00 04 	bne r1,r0,8022580 <fchown+0x60>                
 8022574:	f8 00 55 98 	calli 8037bd4 <__errno>                        
 8022578:	34 02 00 09 	mvi r2,9                                       
 802257c:	e0 00 00 16 	bi 80225d4 <fchown+0xb4>                       
                                                                      
  if (iop->pathinfo.mt_entry->writeable) {                            
 8022580:	29 61 00 20 	lw r1,(r11+32)                                 
 8022584:	40 22 00 29 	lbu r2,(r1+41)                                 
 8022588:	44 40 00 11 	be r2,r0,80225cc <fchown+0xac>                 <== NEVER TAKEN
  const rtems_filesystem_location_info_t *loc                         
)                                                                     
{                                                                     
  const rtems_filesystem_mount_table_entry_t *mt_entry = loc->mt_entry;
                                                                      
  (*mt_entry->ops->lock_h)( mt_entry );                               
 802258c:	28 22 00 0c 	lw r2,(r1+12)                                  
 8022590:	28 42 00 00 	lw r2,(r2+0)                                   
 8022594:	d8 40 00 00 	call r2                                        
    rtems_filesystem_instance_lock( &iop->pathinfo );                 
    rv = (*iop->pathinfo.mt_entry->ops->chown_h)(                     
 8022598:	29 61 00 20 	lw r1,(r11+32)                                 
 802259c:	b9 a0 10 00 	mv r2,r13                                      
 80225a0:	b9 80 18 00 	mv r3,r12                                      
 80225a4:	28 21 00 0c 	lw r1,(r1+12)                                  
 80225a8:	28 24 00 24 	lw r4,(r1+36)                                  
 80225ac:	35 61 00 0c 	addi r1,r11,12                                 
 80225b0:	d8 80 00 00 	call r4                                        
 80225b4:	b8 20 60 00 	mv r12,r1                                      
    errno = EROFS;                                                    
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 80225b8:	29 61 00 20 	lw r1,(r11+32)                                 
  const rtems_filesystem_location_info_t *loc                         
)                                                                     
{                                                                     
  const rtems_filesystem_mount_table_entry_t *mt_entry = loc->mt_entry;
                                                                      
  (*mt_entry->ops->unlock_h)( mt_entry );                             
 80225bc:	28 22 00 0c 	lw r2,(r1+12)                                  
 80225c0:	28 42 00 04 	lw r2,(r2+4)                                   
 80225c4:	d8 40 00 00 	call r2                                        
 80225c8:	e0 00 00 05 	bi 80225dc <fchown+0xbc>                       
      owner,                                                          
      group                                                           
    );                                                                
    rtems_filesystem_instance_unlock( &iop->pathinfo );               
  } else {                                                            
    errno = EROFS;                                                    
 80225cc:	f8 00 55 82 	calli 8037bd4 <__errno>                        <== NOT EXECUTED
 80225d0:	34 02 00 1e 	mvi r2,30                                      <== NOT EXECUTED
 80225d4:	58 22 00 00 	sw (r1+0),r2                                   
    rv = -1;                                                          
 80225d8:	34 0c ff ff 	mvi r12,-1                                     
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 80225dc:	b9 80 08 00 	mv r1,r12                                      
 80225e0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80225e4:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80225e8:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80225ec:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80225f0:	37 9c 00 10 	addi sp,sp,16                                  
 80225f4:	c3 a0 00 00 	ret                                            
                                                                      

080330f0 <fcntl>: int fcntl( int fd, int cmd, ... ) {
 80330f0:	37 9c ff cc 	addi sp,sp,-52                                 
 80330f4:	5b 8b 00 18 	sw (sp+24),r11                                 
 80330f8:	5b 8c 00 14 	sw (sp+20),r12                                 
 80330fc:	5b 8d 00 10 	sw (sp+16),r13                                 
 8033100:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8033104:	5b 8f 00 08 	sw (sp+8),r15                                  
 8033108:	5b 9d 00 04 	sw (sp+4),ra                                   
 803310c:	5b 82 00 1c 	sw (sp+28),r2                                  
 8033110:	b8 40 70 00 	mv r14,r2                                      
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
 8033114:	78 02 08 03 	mvhi r2,0x803                                  
int fcntl(                                                            
  int fd,                                                             
  int cmd,                                                            
  ...                                                                 
)                                                                     
{                                                                     
 8033118:	5b 83 00 20 	sw (sp+32),r3                                  
 803311c:	5b 84 00 24 	sw (sp+36),r4                                  
 8033120:	5b 85 00 28 	sw (sp+40),r5                                  
 8033124:	5b 86 00 2c 	sw (sp+44),r6                                  
 8033128:	5b 87 00 30 	sw (sp+48),r7                                  
 803312c:	5b 88 00 34 	sw (sp+52),r8                                  
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
 8033130:	38 42 90 14 	ori r2,r2,0x9014                               
 8033134:	28 42 00 00 	lw r2,(r2+0)                                   
  ...                                                                 
)                                                                     
{                                                                     
  int            ret;                                                 
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
 8033138:	37 8f 00 20 	addi r15,sp,32                                 
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
 803313c:	54 41 00 02 	bgu r2,r1,8033144 <fcntl+0x54>                 
 8033140:	e0 00 00 0a 	bi 8033168 <fcntl+0x78>                        
  iop = rtems_libio_iop( fd );                                        
 8033144:	78 0b 08 04 	mvhi r11,0x804                                 
 8033148:	39 6b 99 14 	ori r11,r11,0x9914                             
 803314c:	34 02 00 2c 	mvi r2,44                                      
 8033150:	fb ff 39 32 	calli 8001618 <__mulsi3>                       
 8033154:	29 6b 00 00 	lw r11,(r11+0)                                 
 8033158:	b5 61 58 00 	add r11,r11,r1                                 
  rtems_libio_check_is_open(iop);                                     
 803315c:	29 6c 00 08 	lw r12,(r11+8)                                 
 8033160:	21 81 01 00 	andi r1,r12,0x100                              
 8033164:	5c 20 00 04 	bne r1,r0,8033174 <fcntl+0x84>                 
 8033168:	fb ff b2 2b 	calli 801fa14 <__errno>                        
 803316c:	34 02 00 09 	mvi r2,9                                       
 8033170:	e0 00 00 57 	bi 80332cc <fcntl+0x1dc>                       
                                                                      
  /*                                                                  
   *  This switch should contain all the cases from POSIX.            
   */                                                                 
                                                                      
  switch ( cmd ) {                                                    
 8033174:	34 01 00 09 	mvi r1,9                                       
 8033178:	55 c1 00 53 	bgu r14,r1,80332c4 <fcntl+0x1d4>               
 803317c:	78 0d 08 03 	mvhi r13,0x803                                 
 8033180:	b9 c0 08 00 	mv r1,r14                                      
 8033184:	34 02 00 02 	mvi r2,2                                       
 8033188:	fb ff 38 d6 	calli 80014e0 <__ashlsi3>                      
 803318c:	39 ad 8d 40 	ori r13,r13,0x8d40                             
 8033190:	b5 a1 08 00 	add r1,r13,r1                                  
 8033194:	28 21 00 00 	lw r1,(r1+0)                                   
 8033198:	c0 20 00 00 	b r1                                           
                                                                      
  /*                                                                  
   * FIXME: We ignore the start value fd2 for the file descriptor search.  This
   * is not POSIX conform.                                            
   */                                                                 
  rtems_libio_t *diop = rtems_libio_allocate();                       
 803319c:	fb ff 4d f2 	calli 8006964 <rtems_libio_allocate>           
 80331a0:	b8 20 68 00 	mv r13,r1                                      
                                                                      
  if (diop != NULL) {                                                 
 80331a4:	44 20 00 56 	be r1,r0,80332fc <fcntl+0x20c>                 
    int oflag = rtems_libio_to_fcntl_flags( iop->flags );             
 80331a8:	29 61 00 08 	lw r1,(r11+8)                                  
                                                                      
    oflag &= ~O_CREAT;                                                
 80331ac:	34 0c fd ff 	mvi r12,-513                                   
   * is not POSIX conform.                                            
   */                                                                 
  rtems_libio_t *diop = rtems_libio_allocate();                       
                                                                      
  if (diop != NULL) {                                                 
    int oflag = rtems_libio_to_fcntl_flags( iop->flags );             
 80331b0:	fb ff 4d d9 	calli 8006914 <rtems_libio_to_fcntl_flags>     
                                                                      
    oflag &= ~O_CREAT;                                                
 80331b4:	a0 2c 60 00 	and r12,r1,r12                                 
    diop->flags |= rtems_libio_fcntl_flags( oflag );                  
 80331b8:	29 af 00 08 	lw r15,(r13+8)                                 
 80331bc:	b9 80 08 00 	mv r1,r12                                      
 80331c0:	fb ff 4d bf 	calli 80068bc <rtems_libio_fcntl_flags>        
 80331c4:	b8 2f 08 00 	or r1,r1,r15                                   
 80331c8:	59 a1 00 08 	sw (r13+8),r1                                  
  int cmd,                                                            
  int arg                                                             
)                                                                     
{                                                                     
  return fcntl( fd, cmd, arg );                                       
}                                                                     
 80331cc:	29 61 00 20 	lw r1,(r11+32)                                 
  const rtems_filesystem_location_info_t *loc                         
)                                                                     
{                                                                     
  const rtems_filesystem_mount_table_entry_t *mt_entry = loc->mt_entry;
                                                                      
  (*mt_entry->ops->lock_h)( mt_entry );                               
 80331d0:	28 22 00 0c 	lw r2,(r1+12)                                  
 80331d4:	28 42 00 00 	lw r2,(r2+0)                                   
 80331d8:	d8 40 00 00 	call r2                                        
                                                                      
    oflag &= ~O_CREAT;                                                
    diop->flags |= rtems_libio_fcntl_flags( oflag );                  
                                                                      
    rtems_filesystem_instance_lock( &iop->pathinfo );                 
    rtems_filesystem_location_clone( &diop->pathinfo, &iop->pathinfo );
 80331dc:	35 a1 00 0c 	addi r1,r13,12                                 
 80331e0:	35 62 00 0c 	addi r2,r11,12                                 
 80331e4:	fb ff 85 84 	calli 80147f4 <rtems_filesystem_location_clone>
  int cmd,                                                            
  int arg                                                             
)                                                                     
{                                                                     
  return fcntl( fd, cmd, arg );                                       
}                                                                     
 80331e8:	29 61 00 20 	lw r1,(r11+32)                                 
  const rtems_filesystem_location_info_t *loc                         
)                                                                     
{                                                                     
  const rtems_filesystem_mount_table_entry_t *mt_entry = loc->mt_entry;
                                                                      
  (*mt_entry->ops->unlock_h)( mt_entry );                             
 80331ec:	28 22 00 0c 	lw r2,(r1+12)                                  
 80331f0:	28 42 00 04 	lw r2,(r2+4)                                   
 80331f4:	d8 40 00 00 	call r2                                        
    /*                                                                
     * XXX: We call the open handler here to have a proper open and close pair.
     *                                                                
     * FIXME: What to do with the path?                               
     */                                                               
    rv = (*diop->pathinfo.handlers->open_h)( diop, NULL, oflag, 0 );  
 80331f8:	29 a1 00 1c 	lw r1,(r13+28)                                 
 80331fc:	b9 80 18 00 	mv r3,r12                                      
 8033200:	34 02 00 00 	mvi r2,0                                       
 8033204:	28 25 00 00 	lw r5,(r1+0)                                   
 8033208:	34 04 00 00 	mvi r4,0                                       
 803320c:	b9 a0 08 00 	mv r1,r13                                      
 8033210:	d8 a0 00 00 	call r5                                        
 8033214:	b8 20 60 00 	mv r12,r1                                      
    if ( rv == 0 ) {                                                  
 8033218:	5c 20 00 0c 	bne r1,r0,8033248 <fcntl+0x158>                <== NEVER TAKEN
      rv = diop - rtems_libio_iops;                                   
 803321c:	78 01 08 04 	mvhi r1,0x804                                  
 8033220:	38 21 99 14 	ori r1,r1,0x9914                               
 8033224:	28 21 00 00 	lw r1,(r1+0)                                   
 8033228:	34 02 00 02 	mvi r2,2                                       
 803322c:	c9 a1 08 00 	sub r1,r13,r1                                  
 8033230:	fb ff fe f8 	calli 8032e10 <__ashrsi3>                      
 8033234:	78 03 08 03 	mvhi r3,0x803                                  
 8033238:	38 63 48 f4 	ori r3,r3,0x48f4                               
 803323c:	28 62 00 00 	lw r2,(r3+0)                                   
 8033240:	fb ff 38 f6 	calli 8001618 <__mulsi3>                       
 8033244:	e0 00 00 11 	bi 8033288 <fcntl+0x198>                       
    } else {                                                          
      rtems_libio_free( diop );                                       
 8033248:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 803324c:	fb ff 4d dc 	calli 80069bc <rtems_libio_free>               <== NOT EXECUTED
 8033250:	e0 00 00 21 	bi 80332d4 <fcntl+0x1e4>                       <== NOT EXECUTED
      fd2 = va_arg( ap, int );                                        
      ret = duplicate_iop( iop, fd2 );                                
      break;                                                          
                                                                      
    case F_GETFD:        /* get f_flags */                            
      ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0);          
 8033254:	21 8c 08 00 	andi r12,r12,0x800                             
 8033258:	7d 8c 00 00 	cmpnei r12,r12,0                               
 803325c:	e0 00 00 1f 	bi 80332d8 <fcntl+0x1e8>                       
       *  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 ) )                                        
 8033260:	29 e1 00 00 	lw r1,(r15+0)                                  
 8033264:	44 20 00 03 	be r1,r0,8033270 <fcntl+0x180>                 
        iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;                      
 8033268:	39 8c 08 00 	ori r12,r12,0x800                              
 803326c:	e0 00 00 03 	bi 8033278 <fcntl+0x188>                       
      else                                                            
        iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;                     
 8033270:	34 01 f7 ff 	mvi r1,-2049                                   
 8033274:	a1 81 60 00 	and r12,r12,r1                                 
 8033278:	59 6c 00 08 	sw (r11+8),r12                                 
 803327c:	e0 00 00 0d 	bi 80332b0 <fcntl+0x1c0>                       
      break;                                                          
                                                                      
    case F_GETFL:        /* more flags (cloexec) */                   
      ret = rtems_libio_to_fcntl_flags( iop->flags );                 
 8033280:	b9 80 08 00 	mv r1,r12                                      
 8033284:	fb ff 4d a4 	calli 8006914 <rtems_libio_to_fcntl_flags>     
 8033288:	b8 20 60 00 	mv r12,r1                                      
 803328c:	e0 00 00 12 	bi 80332d4 <fcntl+0x1e4>                       
      break;                                                          
                                                                      
    case F_SETFL:                                                     
      flags = rtems_libio_fcntl_flags( va_arg( ap, int ) );           
 8033290:	29 e1 00 00 	lw r1,(r15+0)                                  
 8033294:	fb ff 4d 8a 	calli 80068bc <rtems_libio_fcntl_flags>        
                                                                      
      /*                                                              
       *  XXX If we are turning on append, should we seek to the end? 
       */                                                             
                                                                      
      iop->flags = (iop->flags & ~mask) | (flags & mask);             
 8033298:	29 63 00 08 	lw r3,(r11+8)                                  
 803329c:	34 02 fd fe 	mvi r2,-514                                    
 80332a0:	20 21 02 01 	andi r1,r1,0x201                               
 80332a4:	a0 43 10 00 	and r2,r2,r3                                   
 80332a8:	b8 22 08 00 	or r1,r1,r2                                    
 80332ac:	59 61 00 08 	sw (r11+8),r1                                  
{                                                                     
  rtems_libio_t *iop;                                                 
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
 80332b0:	34 0c 00 00 	mvi r12,0                                      
 80332b4:	e0 00 00 09 	bi 80332d8 <fcntl+0x1e8>                       
      errno = ENOTSUP;                                                
      ret = -1;                                                       
      break;                                                          
                                                                      
    case F_GETOWN:       /*  for sockets. */                          
      errno = ENOTSUP;                                                
 80332b8:	fb ff b1 d7 	calli 801fa14 <__errno>                        
 80332bc:	34 02 00 86 	mvi r2,134                                     
 80332c0:	e0 00 00 03 	bi 80332cc <fcntl+0x1dc>                       
      ret = -1;                                                       
      break;                                                          
                                                                      
    default:                                                          
      errno = EINVAL;                                                 
 80332c4:	fb ff b1 d4 	calli 801fa14 <__errno>                        
 80332c8:	34 02 00 16 	mvi r2,22                                      
 80332cc:	58 22 00 00 	sw (r1+0),r2                                   
 80332d0:	e0 00 00 0b 	bi 80332fc <fcntl+0x20c>                       
  /*                                                                  
   *  If we got this far successfully, then we give the optional      
   *  filesystem specific handler a chance to process this.           
   */                                                                 
                                                                      
  if (ret >= 0) {                                                     
 80332d4:	48 0c 00 0b 	bg r0,r12,8033300 <fcntl+0x210>                <== NEVER TAKEN
    int err = (*iop->pathinfo.handlers->fcntl_h)( iop, cmd );         
 80332d8:	29 61 00 1c 	lw r1,(r11+28)                                 
 80332dc:	b9 c0 10 00 	mv r2,r14                                      
 80332e0:	28 23 00 28 	lw r3,(r1+40)                                  
 80332e4:	b9 60 08 00 	mv r1,r11                                      
 80332e8:	d8 60 00 00 	call r3                                        
 80332ec:	b8 20 58 00 	mv r11,r1                                      
    if (err) {                                                        
 80332f0:	44 20 00 04 	be r1,r0,8033300 <fcntl+0x210>                 <== ALWAYS TAKEN
      errno = err;                                                    
 80332f4:	fb ff b1 c8 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 80332f8:	58 2b 00 00 	sw (r1+0),r11                                  <== NOT EXECUTED
      ret = -1;                                                       
 80332fc:	34 0c ff ff 	mvi r12,-1                                     
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
  ret = vfcntl(fd,cmd,ap);                                            
  va_end(ap);                                                         
  return ret;                                                         
}                                                                     
 8033300:	b9 80 08 00 	mv r1,r12                                      
 8033304:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8033308:	2b 8b 00 18 	lw r11,(sp+24)                                 
 803330c:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8033310:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8033314:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8033318:	2b 8f 00 08 	lw r15,(sp+8)                                  
 803331c:	37 9c 00 34 	addi sp,sp,52                                  
 8033320:	c3 a0 00 00 	ret                                            
                                                                      

0800a164 <fifo_open>: int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) {
 800a164:	37 9c ff dc 	addi sp,sp,-36                                 
 800a168:	5b 8b 00 20 	sw (sp+32),r11                                 
 800a16c:	5b 8c 00 1c 	sw (sp+28),r12                                 
 800a170:	5b 8d 00 18 	sw (sp+24),r13                                 
 800a174:	5b 8e 00 14 	sw (sp+20),r14                                 
 800a178:	5b 8f 00 10 	sw (sp+16),r15                                 
 800a17c:	5b 90 00 0c 	sw (sp+12),r16                                 
 800a180:	5b 91 00 08 	sw (sp+8),r17                                  
 800a184:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
static int pipe_lock(void)                                            
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
 800a188:	78 0b 08 02 	mvhi r11,0x802                                 
 800a18c:	39 6b 27 0c 	ori r11,r11,0x270c                             
                                                                      
int fifo_open(                                                        
  pipe_control_t **pipep,                                             
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
 800a190:	b8 20 70 00 	mv r14,r1                                      
                                                                      
static int pipe_lock(void)                                            
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
 800a194:	29 61 00 00 	lw r1,(r11+0)                                  
                                                                      
int fifo_open(                                                        
  pipe_control_t **pipep,                                             
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
 800a198:	b8 40 68 00 	mv r13,r2                                      
                                                                      
static int pipe_lock(void)                                            
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
 800a19c:	5c 20 00 19 	bne r1,r0,800a200 <fifo_open+0x9c>             
 */                                                                   
#include <rtems/userenv.h>                                            
                                                                      
static inline void rtems_libio_lock( void )                           
{                                                                     
  rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
 800a1a0:	78 01 08 02 	mvhi r1,0x802                                  
 800a1a4:	38 21 27 88 	ori r1,r1,0x2788                               
 800a1a8:	28 21 00 00 	lw r1,(r1+0)                                   
 800a1ac:	34 02 00 00 	mvi r2,0                                       
 800a1b0:	34 03 00 00 	mvi r3,0                                       
 800a1b4:	fb ff eb 63 	calli 8004f40 <rtems_semaphore_obtain>         
    rtems_libio_lock();                                               
                                                                      
    if (pipe_semaphore == RTEMS_ID_NONE) {                            
 800a1b8:	29 61 00 00 	lw r1,(r11+0)                                  
  free(pipe);                                                         
}                                                                     
                                                                      
static int pipe_lock(void)                                            
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
 800a1bc:	34 0f 00 00 	mvi r15,0                                      
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
    rtems_libio_lock();                                               
                                                                      
    if (pipe_semaphore == RTEMS_ID_NONE) {                            
 800a1c0:	5c 2f 00 0a 	bne r1,r15,800a1e8 <fifo_open+0x84>            <== NEVER TAKEN
      sc = rtems_semaphore_create(                                    
 800a1c4:	78 02 08 02 	mvhi r2,0x802                                  
 800a1c8:	38 42 0e 60 	ori r2,r2,0xe60                                
 800a1cc:	28 41 00 00 	lw r1,(r2+0)                                   
 800a1d0:	34 03 00 54 	mvi r3,84                                      
 800a1d4:	34 02 00 01 	mvi r2,1                                       
 800a1d8:	34 04 00 00 	mvi r4,0                                       
 800a1dc:	b9 60 28 00 	mv r5,r11                                      
 800a1e0:	fb ff ea db 	calli 8004d4c <rtems_semaphore_create>         
 800a1e4:	b8 20 78 00 	mv r15,r1                                      
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
 800a1e8:	78 01 08 02 	mvhi r1,0x802                                  
 800a1ec:	38 21 27 88 	ori r1,r1,0x2788                               
 800a1f0:	28 21 00 00 	lw r1,(r1+0)                                   
    }                                                                 
                                                                      
    rtems_libio_unlock();                                             
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
 800a1f4:	34 0c ff f4 	mvi r12,-12                                    
 800a1f8:	fb ff eb a2 	calli 8005080 <rtems_semaphore_release>        
 800a1fc:	5d e0 00 c4 	bne r15,r0,800a50c <fifo_open+0x3a8>           
    sc = rtems_semaphore_obtain(pipe_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 800a200:	78 01 08 02 	mvhi r1,0x802                                  
 800a204:	38 21 27 0c 	ori r1,r1,0x270c                               
 800a208:	28 21 00 00 	lw r1,(r1+0)                                   
 800a20c:	34 02 00 00 	mvi r2,0                                       
 800a210:	34 03 00 00 	mvi r3,0                                       
 800a214:	fb ff eb 4b 	calli 8004f40 <rtems_semaphore_obtain>         
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
 800a218:	34 0c ff f4 	mvi r12,-12                                    
 800a21c:	5c 20 00 bc 	bne r1,r0,800a50c <fifo_open+0x3a8>            <== NEVER TAKEN
                                                                      
  err = pipe_lock();                                                  
  if (err)                                                            
    return err;                                                       
                                                                      
  pipe = *pipep;                                                      
 800a220:	29 cb 00 00 	lw r11,(r14+0)                                 
  if (pipe == NULL) {                                                 
 800a224:	5d 61 00 43 	bne r11,r1,800a330 <fifo_open+0x1cc>           
{                                                                     
  static char c = 'a';                                                
  pipe_control_t *pipe;                                               
  int err = -ENOMEM;                                                  
                                                                      
  pipe = malloc(sizeof(pipe_control_t));                              
 800a228:	34 01 00 34 	mvi r1,52                                      
 800a22c:	fb ff e2 63 	calli 8002bb8 <malloc>                         
 800a230:	b8 20 58 00 	mv r11,r1                                      
 800a234:	b8 20 78 00 	mv r15,r1                                      
  if (pipe == NULL)                                                   
 800a238:	44 20 00 3c 	be r1,r0,800a328 <fifo_open+0x1c4>             
    return err;                                                       
  memset(pipe, 0, sizeof(pipe_control_t));                            
 800a23c:	34 02 00 00 	mvi r2,0                                       
 800a240:	34 03 00 34 	mvi r3,52                                      
 800a244:	f8 00 11 31 	calli 800e708 <memset>                         
                                                                      
  pipe->Size = PIPE_BUF;                                              
 800a248:	34 01 02 00 	mvi r1,512                                     
 800a24c:	59 61 00 04 	sw (r11+4),r1                                  
  pipe->Buffer = malloc(pipe->Size);                                  
 800a250:	fb ff e2 5a 	calli 8002bb8 <malloc>                         
 800a254:	59 61 00 00 	sw (r11+0),r1                                  
  if (! pipe->Buffer)                                                 
 800a258:	44 20 00 32 	be r1,r0,800a320 <fifo_open+0x1bc>             <== NEVER TAKEN
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
        rtems_build_name ('P', 'I', 'r', c),                          
 800a25c:	78 0c 08 02 	mvhi r12,0x802                                 
  if (! pipe->Buffer)                                                 
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
 800a260:	78 03 08 02 	mvhi r3,0x802                                  
 800a264:	38 63 0e 64 	ori r3,r3,0xe64                                
        rtems_build_name ('P', 'I', 'r', c),                          
 800a268:	39 8c 21 b0 	ori r12,r12,0x21b0                             
 800a26c:	41 82 00 00 	lbu r2,(r12+0)                                 
  if (! pipe->Buffer)                                                 
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
 800a270:	28 61 00 00 	lw r1,(r3+0)                                   
 800a274:	35 64 00 2c 	addi r4,r11,44                                 
 800a278:	34 03 00 00 	mvi r3,0                                       
 800a27c:	b8 41 08 00 	or r1,r2,r1                                    
 800a280:	34 02 00 00 	mvi r2,0                                       
 800a284:	f8 00 04 4c 	calli 800b3b4 <rtems_barrier_create>           
 800a288:	b8 20 88 00 	mv r17,r1                                      
 800a28c:	5c 20 00 23 	bne r1,r0,800a318 <fifo_open+0x1b4>            
        rtems_build_name ('P', 'I', 'r', c),                          
        RTEMS_BARRIER_MANUAL_RELEASE, 0,                              
        &pipe->readBarrier) != RTEMS_SUCCESSFUL)                      
    goto err_rbar;                                                    
  if (rtems_barrier_create(                                           
 800a290:	78 03 08 02 	mvhi r3,0x802                                  
 800a294:	38 63 0e 68 	ori r3,r3,0xe68                                
        rtems_build_name ('P', 'I', 'w', c),                          
 800a298:	41 82 00 00 	lbu r2,(r12+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(                                           
 800a29c:	28 61 00 00 	lw r1,(r3+0)                                   
 800a2a0:	35 64 00 30 	addi r4,r11,48                                 
 800a2a4:	34 03 00 00 	mvi r3,0                                       
 800a2a8:	b8 41 08 00 	or r1,r2,r1                                    
 800a2ac:	34 02 00 00 	mvi r2,0                                       
 800a2b0:	f8 00 04 41 	calli 800b3b4 <rtems_barrier_create>           
 800a2b4:	b8 20 80 00 	mv r16,r1                                      
 800a2b8:	5c 31 00 16 	bne r1,r17,800a310 <fifo_open+0x1ac>           
        rtems_build_name ('P', 'I', 'w', c),                          
        RTEMS_BARRIER_MANUAL_RELEASE, 0,                              
        &pipe->writeBarrier) != RTEMS_SUCCESSFUL)                     
    goto err_wbar;                                                    
  if (rtems_semaphore_create(                                         
 800a2bc:	78 03 08 02 	mvhi r3,0x802                                  
 800a2c0:	38 63 0e 6c 	ori r3,r3,0xe6c                                
        rtems_build_name ('P', 'I', 's', c), 1,                       
 800a2c4:	41 82 00 00 	lbu r2,(r12+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(                                         
 800a2c8:	28 61 00 00 	lw r1,(r3+0)                                   
 800a2cc:	34 04 00 00 	mvi r4,0                                       
 800a2d0:	34 03 00 10 	mvi r3,16                                      
 800a2d4:	b8 41 08 00 	or r1,r2,r1                                    
 800a2d8:	35 65 00 28 	addi r5,r11,40                                 
 800a2dc:	34 02 00 01 	mvi r2,1                                       
 800a2e0:	fb ff ea 9b 	calli 8004d4c <rtems_semaphore_create>         
 800a2e4:	5c 30 00 09 	bne r1,r16,800a308 <fifo_open+0x1a4>           
#ifdef RTEMS_POSIX_API                                                
  pipe_interruptible(pipe);                                           
#endif                                                                
                                                                      
  *pipep = pipe;                                                      
  if (c ++ == 'z')                                                    
 800a2e8:	41 81 00 00 	lbu r1,(r12+0)                                 
 800a2ec:	34 22 00 01 	addi r2,r1,1                                   
 800a2f0:	31 82 00 00 	sb (r12+0),r2                                  
 800a2f4:	34 02 00 7a 	mvi r2,122                                     
 800a2f8:	5c 22 00 0e 	bne r1,r2,800a330 <fifo_open+0x1cc>            
    c = 'a';                                                          
 800a2fc:	34 01 00 61 	mvi r1,97                                      
 800a300:	31 81 00 00 	sb (r12+0),r1                                  
 800a304:	e0 00 00 0b 	bi 800a330 <fifo_open+0x1cc>                   
  return 0;                                                           
                                                                      
err_sem:                                                              
  rtems_barrier_delete(pipe->writeBarrier);                           
 800a308:	29 61 00 30 	lw r1,(r11+48)                                 
 800a30c:	f8 00 04 66 	calli 800b4a4 <rtems_barrier_delete>           
err_wbar:                                                             
  rtems_barrier_delete(pipe->readBarrier);                            
 800a310:	29 e1 00 2c 	lw r1,(r15+44)                                 
 800a314:	f8 00 04 64 	calli 800b4a4 <rtems_barrier_delete>           
err_rbar:                                                             
  free(pipe->Buffer);                                                 
 800a318:	29 e1 00 00 	lw r1,(r15+0)                                  
 800a31c:	fb ff e0 d1 	calli 8002660 <free>                           
err_buf:                                                              
  free(pipe);                                                         
 800a320:	b9 e0 08 00 	mv r1,r15                                      
 800a324:	fb ff e0 cf 	calli 8002660 <free>                           
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    err = -EINTR;                                                     
 800a328:	34 0c ff f4 	mvi r12,-12                                    
 800a32c:	e0 00 00 10 	bi 800a36c <fifo_open+0x208>                   
    err = pipe_alloc(&pipe);                                          
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
 800a330:	29 61 00 28 	lw r1,(r11+40)                                 
 800a334:	34 02 00 00 	mvi r2,0                                       
 800a338:	34 03 00 00 	mvi r3,0                                       
 800a33c:	fb ff eb 01 	calli 8004f40 <rtems_semaphore_obtain>         
 800a340:	7c 21 00 00 	cmpnei r1,r1,0                                 
 800a344:	34 02 ff fc 	mvi r2,-4                                      
 800a348:	c8 01 60 00 	sub r12,r0,r1                                  
    err = -EINTR;                                                     
                                                                      
  if (*pipep == NULL) {                                               
 800a34c:	29 c1 00 00 	lw r1,(r14+0)                                  
    err = pipe_alloc(&pipe);                                          
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
 800a350:	a1 82 60 00 	and r12,r12,r2                                 
    err = -EINTR;                                                     
                                                                      
  if (*pipep == NULL) {                                               
 800a354:	5c 20 00 06 	bne r1,r0,800a36c <fifo_open+0x208>            
    if (err)                                                          
 800a358:	45 81 00 04 	be r12,r1,800a368 <fifo_open+0x204>            <== ALWAYS TAKEN
      pipe_free(pipe);                                                
 800a35c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800a360:	fb ff ff 3d 	calli 800a054 <pipe_free>                      <== NOT EXECUTED
 800a364:	e0 00 00 02 	bi 800a36c <fifo_open+0x208>                   <== NOT EXECUTED
    else                                                              
      *pipep = pipe;                                                  
 800a368:	59 cb 00 00 	sw (r14+0),r11                                 
  }                                                                   
                                                                      
out:                                                                  
  pipe_unlock();                                                      
 800a36c:	fb ff ff 31 	calli 800a030 <pipe_unlock>                    
  pipe_control_t *pipe;                                               
  unsigned int prevCounter;                                           
  int err;                                                            
                                                                      
  err = pipe_new(pipep);                                              
  if (err)                                                            
 800a370:	5d 80 00 67 	bne r12,r0,800a50c <fifo_open+0x3a8>           
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
 800a374:	29 a1 00 08 	lw r1,(r13+8)                                  
 800a378:	34 02 00 04 	mvi r2,4                                       
  int err;                                                            
                                                                      
  err = pipe_new(pipep);                                              
  if (err)                                                            
    return err;                                                       
  pipe = *pipep;                                                      
 800a37c:	29 cb 00 00 	lw r11,(r14+0)                                 
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
 800a380:	20 21 00 06 	andi r1,r1,0x6                                 
 800a384:	44 22 00 24 	be r1,r2,800a414 <fifo_open+0x2b0>             
 800a388:	34 02 00 06 	mvi r2,6                                       
 800a38c:	44 22 00 45 	be r1,r2,800a4a0 <fifo_open+0x33c>             
 800a390:	34 02 00 02 	mvi r2,2                                       
 800a394:	5c 22 00 57 	bne r1,r2,800a4f0 <fifo_open+0x38c>            <== NEVER TAKEN
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
 800a398:	29 61 00 20 	lw r1,(r11+32)                                 
 800a39c:	34 21 00 01 	addi r1,r1,1                                   
 800a3a0:	59 61 00 20 	sw (r11+32),r1                                 
      if (pipe->Readers ++ == 0)                                      
 800a3a4:	29 61 00 10 	lw r1,(r11+16)                                 
 800a3a8:	34 22 00 01 	addi r2,r1,1                                   
 800a3ac:	59 62 00 10 	sw (r11+16),r2                                 
 800a3b0:	5c 20 00 04 	bne r1,r0,800a3c0 <fifo_open+0x25c>            <== NEVER TAKEN
        PIPE_WAKEUPWRITERS(pipe);                                     
 800a3b4:	29 61 00 30 	lw r1,(r11+48)                                 
 800a3b8:	37 82 00 24 	addi r2,sp,36                                  
 800a3bc:	f8 00 04 6a 	calli 800b564 <rtems_barrier_release>          
                                                                      
      if (pipe->Writers == 0) {                                       
 800a3c0:	29 61 00 14 	lw r1,(r11+20)                                 
 800a3c4:	5c 20 00 4b 	bne r1,r0,800a4f0 <fifo_open+0x38c>            
        /* Not an error */                                            
        if (LIBIO_NODELAY(iop))                                       
 800a3c8:	29 a2 00 08 	lw r2,(r13+8)                                  
 800a3cc:	20 42 00 01 	andi r2,r2,0x1                                 
 800a3d0:	5c 41 00 48 	bne r2,r1,800a4f0 <fifo_open+0x38c>            
          break;                                                      
                                                                      
        prevCounter = pipe->writerCounter;                            
 800a3d4:	29 70 00 24 	lw r16,(r11+36)                                
        err = -EINTR;                                                 
        /* Wait until a writer opens the pipe */                      
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
 800a3d8:	29 61 00 28 	lw r1,(r11+40)                                 
 800a3dc:	fb ff eb 29 	calli 8005080 <rtems_semaphore_release>        
          if (! PIPE_READWAIT(pipe))                                  
 800a3e0:	29 61 00 2c 	lw r1,(r11+44)                                 
 800a3e4:	34 02 00 00 	mvi r2,0                                       
 800a3e8:	f8 00 04 7c 	calli 800b5d8 <rtems_barrier_wait>             
 800a3ec:	b8 20 78 00 	mv r15,r1                                      
 800a3f0:	5c 20 00 43 	bne r1,r0,800a4fc <fifo_open+0x398>            <== NEVER TAKEN
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
 800a3f4:	29 61 00 28 	lw r1,(r11+40)                                 
 800a3f8:	34 02 00 00 	mvi r2,0                                       
 800a3fc:	34 03 00 00 	mvi r3,0                                       
 800a400:	fb ff ea d0 	calli 8004f40 <rtems_semaphore_obtain>         
 800a404:	5c 2f 00 3e 	bne r1,r15,800a4fc <fifo_open+0x398>           <== NEVER TAKEN
            goto out_error;                                           
        } while (prevCounter == pipe->writerCounter);                 
 800a408:	29 61 00 24 	lw r1,(r11+36)                                 
 800a40c:	46 01 ff f3 	be r16,r1,800a3d8 <fifo_open+0x274>            <== NEVER TAKEN
 800a410:	e0 00 00 38 	bi 800a4f0 <fifo_open+0x38c>                   
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
 800a414:	29 61 00 24 	lw r1,(r11+36)                                 
 800a418:	34 21 00 01 	addi r1,r1,1                                   
 800a41c:	59 61 00 24 	sw (r11+36),r1                                 
                                                                      
      if (pipe->Writers ++ == 0)                                      
 800a420:	29 61 00 14 	lw r1,(r11+20)                                 
 800a424:	34 22 00 01 	addi r2,r1,1                                   
 800a428:	59 62 00 14 	sw (r11+20),r2                                 
 800a42c:	5c 20 00 04 	bne r1,r0,800a43c <fifo_open+0x2d8>            <== NEVER TAKEN
        PIPE_WAKEUPREADERS(pipe);                                     
 800a430:	29 61 00 2c 	lw r1,(r11+44)                                 
 800a434:	37 82 00 24 	addi r2,sp,36                                  
 800a438:	f8 00 04 4b 	calli 800b564 <rtems_barrier_release>          
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
 800a43c:	29 61 00 10 	lw r1,(r11+16)                                 
 800a440:	5c 20 00 2c 	bne r1,r0,800a4f0 <fifo_open+0x38c>            
 800a444:	29 a2 00 08 	lw r2,(r13+8)                                  
 800a448:	20 42 00 01 	andi r2,r2,0x1                                 
 800a44c:	44 41 00 05 	be r2,r1,800a460 <fifo_open+0x2fc>             
	PIPE_UNLOCK(pipe);                                                   
 800a450:	29 61 00 28 	lw r1,(r11+40)                                 
        err = -ENXIO;                                                 
 800a454:	34 0c ff fa 	mvi r12,-6                                     
                                                                      
      if (pipe->Writers ++ == 0)                                      
        PIPE_WAKEUPREADERS(pipe);                                     
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
	PIPE_UNLOCK(pipe);                                                   
 800a458:	fb ff eb 0a 	calli 8005080 <rtems_semaphore_release>        
        err = -ENXIO;                                                 
        goto out_error;                                               
 800a45c:	e0 00 00 29 	bi 800a500 <fifo_open+0x39c>                   
      }                                                               
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
 800a460:	29 70 00 20 	lw r16,(r11+32)                                
        err = -EINTR;                                                 
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
 800a464:	29 61 00 28 	lw r1,(r11+40)                                 
 800a468:	fb ff eb 06 	calli 8005080 <rtems_semaphore_release>        
          if (! PIPE_WRITEWAIT(pipe))                                 
 800a46c:	29 61 00 30 	lw r1,(r11+48)                                 
 800a470:	34 02 00 00 	mvi r2,0                                       
 800a474:	f8 00 04 59 	calli 800b5d8 <rtems_barrier_wait>             
 800a478:	b8 20 78 00 	mv r15,r1                                      
 800a47c:	5c 20 00 20 	bne r1,r0,800a4fc <fifo_open+0x398>            <== NEVER TAKEN
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
 800a480:	29 61 00 28 	lw r1,(r11+40)                                 
 800a484:	34 02 00 00 	mvi r2,0                                       
 800a488:	34 03 00 00 	mvi r3,0                                       
 800a48c:	fb ff ea ad 	calli 8004f40 <rtems_semaphore_obtain>         
 800a490:	5c 2f 00 1b 	bne r1,r15,800a4fc <fifo_open+0x398>           <== NEVER TAKEN
            goto out_error;                                           
        } while (prevCounter == pipe->readerCounter);                 
 800a494:	29 61 00 20 	lw r1,(r11+32)                                 
 800a498:	46 01 ff f3 	be r16,r1,800a464 <fifo_open+0x300>            <== NEVER TAKEN
 800a49c:	e0 00 00 15 	bi 800a4f0 <fifo_open+0x38c>                   
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
 800a4a0:	29 61 00 20 	lw r1,(r11+32)                                 
 800a4a4:	34 21 00 01 	addi r1,r1,1                                   
 800a4a8:	59 61 00 20 	sw (r11+32),r1                                 
      if (pipe->Readers ++ == 0)                                      
 800a4ac:	29 61 00 10 	lw r1,(r11+16)                                 
 800a4b0:	34 22 00 01 	addi r2,r1,1                                   
 800a4b4:	59 62 00 10 	sw (r11+16),r2                                 
 800a4b8:	5c 20 00 04 	bne r1,r0,800a4c8 <fifo_open+0x364>            <== NEVER TAKEN
        PIPE_WAKEUPWRITERS(pipe);                                     
 800a4bc:	29 61 00 30 	lw r1,(r11+48)                                 
 800a4c0:	37 82 00 24 	addi r2,sp,36                                  
 800a4c4:	f8 00 04 28 	calli 800b564 <rtems_barrier_release>          
      pipe->writerCounter ++;                                         
 800a4c8:	29 61 00 24 	lw r1,(r11+36)                                 
 800a4cc:	34 21 00 01 	addi r1,r1,1                                   
 800a4d0:	59 61 00 24 	sw (r11+36),r1                                 
      if (pipe->Writers ++ == 0)                                      
 800a4d4:	29 61 00 14 	lw r1,(r11+20)                                 
 800a4d8:	34 22 00 01 	addi r2,r1,1                                   
 800a4dc:	59 62 00 14 	sw (r11+20),r2                                 
 800a4e0:	5c 20 00 04 	bne r1,r0,800a4f0 <fifo_open+0x38c>            <== NEVER TAKEN
        PIPE_WAKEUPREADERS(pipe);                                     
 800a4e4:	29 61 00 2c 	lw r1,(r11+44)                                 
 800a4e8:	37 82 00 24 	addi r2,sp,36                                  
 800a4ec:	f8 00 04 1e 	calli 800b564 <rtems_barrier_release>          
      break;                                                          
  }                                                                   
                                                                      
  PIPE_UNLOCK(pipe);                                                  
 800a4f0:	29 61 00 28 	lw r1,(r11+40)                                 
 800a4f4:	fb ff ea e3 	calli 8005080 <rtems_semaphore_release>        
  return 0;                                                           
 800a4f8:	e0 00 00 05 	bi 800a50c <fifo_open+0x3a8>                   
        goto out_error;                                               
      }                                                               
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
        err = -EINTR;                                                 
 800a4fc:	34 0c ff fc 	mvi r12,-4                                     <== NOT EXECUTED
                                                                      
  PIPE_UNLOCK(pipe);                                                  
  return 0;                                                           
                                                                      
out_error:                                                            
  pipe_release(pipep, iop);                                           
 800a500:	b9 c0 08 00 	mv r1,r14                                      
 800a504:	b9 a0 10 00 	mv r2,r13                                      
 800a508:	fb ff fe e5 	calli 800a09c <pipe_release>                   
  return err;                                                         
}                                                                     
 800a50c:	b9 80 08 00 	mv r1,r12                                      
 800a510:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a514:	2b 8b 00 20 	lw r11,(sp+32)                                 
 800a518:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 800a51c:	2b 8d 00 18 	lw r13,(sp+24)                                 
 800a520:	2b 8e 00 14 	lw r14,(sp+20)                                 
 800a524:	2b 8f 00 10 	lw r15,(sp+16)                                 
 800a528:	2b 90 00 0c 	lw r16,(sp+12)                                 
 800a52c:	2b 91 00 08 	lw r17,(sp+8)                                  
 800a530:	37 9c 00 24 	addi sp,sp,36                                  
 800a534:	c3 a0 00 00 	ret                                            
                                                                      

0800878c <fpathconf>: */ long fpathconf( int fd, int name ) {
 800878c:	37 9c ff f0 	addi sp,sp,-16                                 
 8008790:	5b 8b 00 10 	sw (sp+16),r11                                 
 8008794:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8008798:	5b 8d 00 08 	sw (sp+8),r13                                  
 800879c:	5b 9d 00 04 	sw (sp+4),ra                                   
  long                                    return_value;               
  rtems_libio_t                          *iop;                        
  const rtems_filesystem_limits_and_options_t *the_limits;            
                                                                      
  rtems_libio_check_fd(fd);                                           
 80087a0:	78 03 08 01 	mvhi r3,0x801                                  
 80087a4:	38 63 20 04 	ori r3,r3,0x2004                               
 */                                                                   
long fpathconf(                                                       
  int   fd,                                                           
  int   name                                                          
)                                                                     
{                                                                     
 80087a8:	b8 40 68 00 	mv r13,r2                                      
  long                                    return_value;               
  rtems_libio_t                          *iop;                        
  const rtems_filesystem_limits_and_options_t *the_limits;            
                                                                      
  rtems_libio_check_fd(fd);                                           
 80087ac:	28 62 00 00 	lw r2,(r3+0)                                   
 80087b0:	54 41 00 02 	bgu r2,r1,80087b8 <fpathconf+0x2c>             
 80087b4:	e0 00 00 0a 	bi 80087dc <fpathconf+0x50>                    
  iop = rtems_libio_iop(fd);                                          
 80087b8:	78 0b 08 01 	mvhi r11,0x801                                 
 80087bc:	34 02 00 2c 	mvi r2,44                                      
 80087c0:	f8 00 1a 54 	calli 800f110 <__mulsi3>                       
 80087c4:	39 6b 27 3c 	ori r11,r11,0x273c                             
 80087c8:	29 63 00 00 	lw r3,(r11+0)                                  
 80087cc:	b4 61 18 00 	add r3,r3,r1                                   
  rtems_libio_check_is_open(iop);                                     
 80087d0:	28 61 00 08 	lw r1,(r3+8)                                   
 80087d4:	20 21 01 00 	andi r1,r1,0x100                               
 80087d8:	5c 20 00 04 	bne r1,r0,80087e8 <fpathconf+0x5c>             <== ALWAYS TAKEN
 80087dc:	f8 00 07 3f 	calli 800a4d8 <__errno>                        
 80087e0:	34 02 00 09 	mvi r2,9                                       
 80087e4:	e0 00 00 27 	bi 8008880 <fpathconf+0xf4>                    
                                                                      
  /*                                                                  
   *  Now process the information request.                            
   */                                                                 
                                                                      
  the_limits = iop->pathinfo.mt_entry->pathconf_limits_and_options;   
 80087e8:	28 61 00 20 	lw r1,(r3+32)                                  
 80087ec:	28 2b 00 2c 	lw r11,(r1+44)                                 
                                                                      
  switch ( name ) {                                                   
 80087f0:	34 01 00 0b 	mvi r1,11                                      
 80087f4:	55 a1 00 21 	bgu r13,r1,8008878 <fpathconf+0xec>            
 80087f8:	78 0c 08 01 	mvhi r12,0x801                                 
 80087fc:	b9 a0 08 00 	mv r1,r13                                      
 8008800:	34 02 00 02 	mvi r2,2                                       
 8008804:	f8 00 19 ce 	calli 800ef3c <__ashlsi3>                      
 8008808:	39 8c 19 78 	ori r12,r12,0x1978                             
 800880c:	b5 81 08 00 	add r1,r12,r1                                  
 8008810:	28 21 00 00 	lw r1,(r1+0)                                   
 8008814:	c0 20 00 00 	b r1                                           
    case _PC_LINK_MAX:                                                
      return_value = the_limits->link_max;                            
 8008818:	29 61 00 00 	lw r1,(r11+0)                                  
      break;                                                          
 800881c:	e0 00 00 1b 	bi 8008888 <fpathconf+0xfc>                    
    case _PC_MAX_CANON:                                               
      return_value = the_limits->max_canon;                           
 8008820:	29 61 00 04 	lw r1,(r11+4)                                  
      break;                                                          
 8008824:	e0 00 00 19 	bi 8008888 <fpathconf+0xfc>                    
    case _PC_MAX_INPUT:                                               
      return_value = the_limits->max_input;                           
 8008828:	29 61 00 08 	lw r1,(r11+8)                                  
      break;                                                          
 800882c:	e0 00 00 17 	bi 8008888 <fpathconf+0xfc>                    
    case _PC_NAME_MAX:                                                
      return_value = the_limits->name_max;                            
 8008830:	29 61 00 0c 	lw r1,(r11+12)                                 
      break;                                                          
 8008834:	e0 00 00 15 	bi 8008888 <fpathconf+0xfc>                    
    case _PC_PATH_MAX:                                                
      return_value = the_limits->path_max;                            
 8008838:	29 61 00 10 	lw r1,(r11+16)                                 
      break;                                                          
 800883c:	e0 00 00 13 	bi 8008888 <fpathconf+0xfc>                    
    case _PC_PIPE_BUF:                                                
      return_value = the_limits->pipe_buf;                            
 8008840:	29 61 00 14 	lw r1,(r11+20)                                 
      break;                                                          
 8008844:	e0 00 00 11 	bi 8008888 <fpathconf+0xfc>                    
    case _PC_CHOWN_RESTRICTED:                                        
      return_value = the_limits->posix_chown_restrictions;            
 8008848:	29 61 00 1c 	lw r1,(r11+28)                                 
      break;                                                          
 800884c:	e0 00 00 0f 	bi 8008888 <fpathconf+0xfc>                    
    case _PC_NO_TRUNC:                                                
      return_value = the_limits->posix_no_trunc;                      
 8008850:	29 61 00 20 	lw r1,(r11+32)                                 
      break;                                                          
 8008854:	e0 00 00 0d 	bi 8008888 <fpathconf+0xfc>                    
    case _PC_VDISABLE:                                                
      return_value = the_limits->posix_vdisable;                      
 8008858:	29 61 00 2c 	lw r1,(r11+44)                                 
      break;                                                          
 800885c:	e0 00 00 0b 	bi 8008888 <fpathconf+0xfc>                    
    case _PC_ASYNC_IO:                                                
      return_value = the_limits->posix_async_io;                      
 8008860:	29 61 00 18 	lw r1,(r11+24)                                 
      break;                                                          
 8008864:	e0 00 00 09 	bi 8008888 <fpathconf+0xfc>                    
    case _PC_PRIO_IO:                                                 
      return_value = the_limits->posix_prio_io;                       
 8008868:	29 61 00 24 	lw r1,(r11+36)                                 
      break;                                                          
 800886c:	e0 00 00 07 	bi 8008888 <fpathconf+0xfc>                    
    case _PC_SYNC_IO:                                                 
      return_value = the_limits->posix_sync_io;                       
 8008870:	29 61 00 28 	lw r1,(r11+40)                                 
      break;                                                          
 8008874:	e0 00 00 05 	bi 8008888 <fpathconf+0xfc>                    
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 8008878:	f8 00 07 18 	calli 800a4d8 <__errno>                        
 800887c:	34 02 00 16 	mvi r2,22                                      
 8008880:	58 22 00 00 	sw (r1+0),r2                                   
 8008884:	34 01 ff ff 	mvi r1,-1                                      
      break;                                                          
  }                                                                   
                                                                      
  return return_value;                                                
}                                                                     
 8008888:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800888c:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8008890:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8008894:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8008898:	37 9c 00 10 	addi sp,sp,16                                  
 800889c:	c3 a0 00 00 	ret                                            
                                                                      

08001554 <free>: #include <stdlib.h> void free( void *ptr ) {
 8001554:	37 9c ff f4 	addi sp,sp,-12                                 
 8001558:	5b 8b 00 0c 	sw (sp+12),r11                                 
 800155c:	5b 8c 00 08 	sw (sp+8),r12                                  
 8001560:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001564:	b8 20 58 00 	mv r11,r1                                      
  MSBUMP(free_calls, 1);                                              
 8001568:	78 01 08 01 	mvhi r1,0x801                                  
 800156c:	38 21 d7 b0 	ori r1,r1,0xd7b0                               
 8001570:	28 22 00 0c 	lw r2,(r1+12)                                  
 8001574:	34 42 00 01 	addi r2,r2,1                                   
 8001578:	58 22 00 0c 	sw (r1+12),r2                                  
                                                                      
  if ( !ptr )                                                         
 800157c:	45 60 00 1f 	be r11,r0,80015f8 <free+0xa4>                  
    return;                                                           
                                                                      
  /*                                                                  
   *  Do not attempt to free memory if in a critical section or ISR.  
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
 8001580:	78 01 08 01 	mvhi r1,0x801                                  
 8001584:	38 21 da 54 	ori r1,r1,0xda54                               
 8001588:	28 22 00 00 	lw r2,(r1+0)                                   
 800158c:	34 01 00 03 	mvi r1,3                                       
 8001590:	5c 41 00 06 	bne r2,r1,80015a8 <free+0x54>                  <== NEVER TAKEN
       !malloc_is_system_state_OK() ) {                               
 8001594:	f8 00 00 8e 	calli 80017cc <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()) &&                    
 8001598:	5c 20 00 04 	bne r1,r0,80015a8 <free+0x54>                  
       !malloc_is_system_state_OK() ) {                               
      malloc_deferred_free(ptr);                                      
 800159c:	b9 60 08 00 	mv r1,r11                                      
 80015a0:	f8 00 00 a3 	calli 800182c <malloc_deferred_free>           
      return;                                                         
 80015a4:	e0 00 00 15 	bi 80015f8 <free+0xa4>                         
  }                                                                   
                                                                      
  /*                                                                  
   *  If configured, update the statistics                            
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
 80015a8:	78 01 08 01 	mvhi r1,0x801                                  
 80015ac:	38 21 d7 0c 	ori r1,r1,0xd70c                               
 80015b0:	28 21 00 00 	lw r1,(r1+0)                                   
 80015b4:	44 20 00 04 	be r1,r0,80015c4 <free+0x70>                   
    (*rtems_malloc_statistics_helpers->at_free)(ptr);                 
 80015b8:	28 22 00 08 	lw r2,(r1+8)                                   
 80015bc:	b9 60 08 00 	mv r1,r11                                      
 80015c0:	d8 40 00 00 	call r2                                        
                                                                      
  if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) {            
 80015c4:	78 0c 08 01 	mvhi r12,0x801                                 
 80015c8:	39 8c d0 54 	ori r12,r12,0xd054                             
 80015cc:	29 81 00 00 	lw r1,(r12+0)                                  
 80015d0:	b9 60 10 00 	mv r2,r11                                      
 80015d4:	f8 00 10 e3 	calli 8005960 <_Protected_heap_Free>           
 80015d8:	5c 20 00 08 	bne r1,r0,80015f8 <free+0xa4>                  
    printk( "Program heap: free of bad pointer %p -- range %p - %p \n",
      ptr,                                                            
      RTEMS_Malloc_Heap->area_begin,                                  
 80015dc:	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",
 80015e0:	78 01 08 01 	mvhi r1,0x801                                  
 80015e4:	38 21 b8 fc 	ori r1,r1,0xb8fc                               
 80015e8:	28 83 00 18 	lw r3,(r4+24)                                  
 80015ec:	28 84 00 1c 	lw r4,(r4+28)                                  
 80015f0:	b9 60 10 00 	mv r2,r11                                      
 80015f4:	f8 00 03 d7 	calli 8002550 <printk>                         
      RTEMS_Malloc_Heap->area_begin,                                  
      RTEMS_Malloc_Heap->area_end                                     
    );                                                                
  }                                                                   
                                                                      
}                                                                     
 80015f8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80015fc:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8001600:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8001604:	37 9c 00 0c 	addi sp,sp,12                                  
 8001608:	c3 a0 00 00 	ret                                            
                                                                      

0801a7f8 <fstat>: int fstat( int fd, struct stat *sbuf ) {
 801a7f8:	37 9c ff f4 	addi sp,sp,-12                                 
 801a7fc:	5b 8b 00 0c 	sw (sp+12),r11                                 
 801a800:	5b 8c 00 08 	sw (sp+8),r12                                  
 801a804:	5b 9d 00 04 	sw (sp+4),ra                                   
 801a808:	b8 40 60 00 	mv r12,r2                                      
  rtems_libio_t *iop;                                                 
                                                                      
  /*                                                                  
   *  Check to see if we were passed a valid pointer.                 
   */                                                                 
  if ( !sbuf )                                                        
 801a80c:	5c 40 00 04 	bne r2,r0,801a81c <fstat+0x24>                 <== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( EFAULT );                   
 801a810:	fb ff c3 ff 	calli 800b80c <__errno>                        <== NOT EXECUTED
 801a814:	34 02 00 0e 	mvi r2,14                                      <== NOT EXECUTED
 801a818:	e0 00 00 10 	bi 801a858 <fstat+0x60>                        <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Now process the stat() request.                                 
   */                                                                 
  iop = rtems_libio_iop( fd );                                        
 801a81c:	78 02 08 01 	mvhi r2,0x801                                  
 801a820:	38 42 d0 10 	ori r2,r2,0xd010                               
 801a824:	28 42 00 00 	lw r2,(r2+0)                                   
 801a828:	50 22 00 0a 	bgeu r1,r2,801a850 <fstat+0x58>                
 801a82c:	78 0b 08 01 	mvhi r11,0x801                                 
 801a830:	39 6b d7 a0 	ori r11,r11,0xd7a0                             
 801a834:	34 02 00 2c 	mvi r2,44                                      
 801a838:	fb ff fe f5 	calli 801a40c <__mulsi3>                       
 801a83c:	29 6b 00 00 	lw r11,(r11+0)                                 
 801a840:	b5 61 58 00 	add r11,r11,r1                                 
  rtems_libio_check_fd( fd );                                         
  rtems_libio_check_is_open(iop);                                     
 801a844:	29 61 00 08 	lw r1,(r11+8)                                  
 801a848:	20 21 01 00 	andi r1,r1,0x100                               
 801a84c:	5c 20 00 06 	bne r1,r0,801a864 <fstat+0x6c>                 
                                                                      
  /*                                                                  
   *  Now process the stat() request.                                 
   */                                                                 
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_fd( fd );                                         
 801a850:	fb ff c3 ef 	calli 800b80c <__errno>                        
 801a854:	34 02 00 09 	mvi r2,9                                       
 801a858:	58 22 00 00 	sw (r1+0),r2                                   
 801a85c:	34 01 ff ff 	mvi r1,-1                                      
 801a860:	e0 00 00 0a 	bi 801a888 <fstat+0x90>                        
                                                                      
  /*                                                                  
   *  Zero out the stat structure so the various support              
   *  versions of stat don't have to.                                 
   */                                                                 
  memset( sbuf, 0, sizeof(struct stat) );                             
 801a864:	34 02 00 00 	mvi r2,0                                       
 801a868:	34 03 00 48 	mvi r3,72                                      
 801a86c:	b9 80 08 00 	mv r1,r12                                      
 801a870:	fb ff c7 22 	calli 800c4f8 <memset>                         
                                                                      
  return (*iop->pathinfo.handlers->fstat_h)( &iop->pathinfo, sbuf );  
 801a874:	29 61 00 1c 	lw r1,(r11+28)                                 
 801a878:	b9 80 10 00 	mv r2,r12                                      
 801a87c:	28 23 00 18 	lw r3,(r1+24)                                  
 801a880:	35 61 00 0c 	addi r1,r11,12                                 
 801a884:	d8 60 00 00 	call r3                                        
}                                                                     
 801a888:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801a88c:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 801a890:	2b 8c 00 08 	lw r12,(sp+8)                                  
 801a894:	37 9c 00 0c 	addi sp,sp,12                                  
 801a898:	c3 a0 00 00 	ret                                            
                                                                      

080013b0 <get_disk_entry>: } } static rtems_disk_device * get_disk_entry(dev_t dev, bool lookup_only) {
 80013b0:	37 9c ff ec 	addi sp,sp,-20                                 
 80013b4:	5b 8b 00 14 	sw (sp+20),r11                                 
 80013b8:	5b 8c 00 10 	sw (sp+16),r12                                 
 80013bc:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80013c0:	5b 8e 00 08 	sw (sp+8),r14                                  
 80013c4:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  rtems_filesystem_split_dev_t(dev, major, minor);                    
                                                                      
  if (major < disktab_size && disktab != NULL) {                      
 80013c8:	78 04 08 01 	mvhi r4,0x801                                  
 80013cc:	38 84 96 d8 	ori r4,r4,0x96d8                               
  }                                                                   
}                                                                     
                                                                      
static rtems_disk_device *                                            
get_disk_entry(dev_t dev, bool lookup_only)                           
{                                                                     
 80013d0:	b8 40 70 00 	mv r14,r2                                      
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  rtems_filesystem_split_dev_t(dev, major, minor);                    
                                                                      
  if (major < disktab_size && disktab != NULL) {                      
 80013d4:	28 82 00 00 	lw r2,(r4+0)                                   
  }                                                                   
}                                                                     
                                                                      
static rtems_disk_device *                                            
get_disk_entry(dev_t dev, bool lookup_only)                           
{                                                                     
 80013d8:	b8 60 60 00 	mv r12,r3                                      
                                                                      
      return dd;                                                      
    }                                                                 
  }                                                                   
                                                                      
  return NULL;                                                        
 80013dc:	34 0b 00 00 	mvi r11,0                                      
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  rtems_filesystem_split_dev_t(dev, major, minor);                    
                                                                      
  if (major < disktab_size && disktab != NULL) {                      
 80013e0:	50 22 00 1a 	bgeu r1,r2,8001448 <get_disk_entry+0x98>       <== NEVER TAKEN
 80013e4:	78 04 08 01 	mvhi r4,0x801                                  
 80013e8:	38 84 96 d4 	ori r4,r4,0x96d4                               
 80013ec:	28 8d 00 00 	lw r13,(r4+0)                                  
 80013f0:	45 a0 00 16 	be r13,r0,8001448 <get_disk_entry+0x98>        <== NEVER TAKEN
    rtems_disk_device_table *dtab = disktab + major;                  
 80013f4:	34 02 00 03 	mvi r2,3                                       
 80013f8:	f8 00 54 c0 	calli 80166f8 <__ashlsi3>                      
 80013fc:	b5 a1 20 00 	add r4,r13,r1                                  
                                                                      
    if (minor < dtab->size && dtab->minor != NULL) {                  
 8001400:	28 81 00 04 	lw r1,(r4+4)                                   
 8001404:	51 c1 00 11 	bgeu r14,r1,8001448 <get_disk_entry+0x98>      <== NEVER TAKEN
 8001408:	28 8d 00 00 	lw r13,(r4+0)                                  
 800140c:	45 a0 00 0f 	be r13,r0,8001448 <get_disk_entry+0x98>        <== NEVER TAKEN
      rtems_disk_device *dd = dtab->minor [minor];                    
 8001410:	b9 c0 08 00 	mv r1,r14                                      
 8001414:	34 02 00 02 	mvi r2,2                                       
 8001418:	f8 00 54 b8 	calli 80166f8 <__ashlsi3>                      
 800141c:	b5 a1 08 00 	add r1,r13,r1                                  
 8001420:	28 2b 00 00 	lw r11,(r1+0)                                  
                                                                      
      if (dd != NULL && !lookup_only) {                               
 8001424:	45 60 00 09 	be r11,r0,8001448 <get_disk_entry+0x98>        
 8001428:	5d 80 00 08 	bne r12,r0,8001448 <get_disk_entry+0x98>       
        if (!dd->deleted) {                                           
 800142c:	41 61 00 40 	lbu r1,(r11+64)                                
 8001430:	5c 2c 00 05 	bne r1,r12,8001444 <get_disk_entry+0x94>       
          ++dd->uses;                                                 
 8001434:	29 61 00 14 	lw r1,(r11+20)                                 
 8001438:	34 21 00 01 	addi r1,r1,1                                   
 800143c:	59 61 00 14 	sw (r11+20),r1                                 
 8001440:	e0 00 00 02 	bi 8001448 <get_disk_entry+0x98>               
        } else {                                                      
          dd = NULL;                                                  
 8001444:	34 0b 00 00 	mvi r11,0                                      
      return dd;                                                      
    }                                                                 
  }                                                                   
                                                                      
  return NULL;                                                        
}                                                                     
 8001448:	b9 60 08 00 	mv r1,r11                                      
 800144c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001450:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8001454:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8001458:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800145c:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8001460:	37 9c 00 14 	addi sp,sp,20                                  
 8001464:	c3 a0 00 00 	ret                                            
                                                                      

08002fbc <get_sector>: */ static rtems_status_code get_sector(int fd, uint32_t sector_num, rtems_sector_data_t **sector) {
 8002fbc:	37 9c ff ec 	addi sp,sp,-20                                 
 8002fc0:	5b 8b 00 14 	sw (sp+20),r11                                 
 8002fc4:	5b 8c 00 10 	sw (sp+16),r12                                 
 8002fc8:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8002fcc:	5b 8e 00 08 	sw (sp+8),r14                                  
 8002fd0:	5b 9d 00 04 	sw (sp+4),ra                                   
    off_t                off;                                         
    off_t                new_off;                                     
                                                                      
    if (sector == NULL)                                               
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
 8002fd4:	34 04 00 19 	mvi r4,25                                      
 */                                                                   
static rtems_status_code                                              
get_sector(int fd,                                                    
           uint32_t sector_num,                                       
           rtems_sector_data_t **sector)                              
{                                                                     
 8002fd8:	b8 20 70 00 	mv r14,r1                                      
 8002fdc:	b8 40 68 00 	mv r13,r2                                      
 8002fe0:	b8 60 60 00 	mv r12,r3                                      
    rtems_sector_data_t *s;                                           
    ssize_t              n;                                           
    off_t                off;                                         
    off_t                new_off;                                     
                                                                      
    if (sector == NULL)                                               
 8002fe4:	44 60 00 1d 	be r3,r0,8003058 <get_sector+0x9c>             <== NEVER TAKEN
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    off = sector_num * RTEMS_IDE_SECTOR_SIZE;                         
 8002fe8:	b8 40 08 00 	mv r1,r2                                       
 8002fec:	34 02 00 09 	mvi r2,9                                       
 8002ff0:	fb ff f5 cd 	calli 8000724 <__ashlsi3>                      
 8002ff4:	b8 20 58 00 	mv r11,r1                                      
    new_off = lseek(fd, off, SEEK_SET);                               
 8002ff8:	b9 60 10 00 	mv r2,r11                                      
 8002ffc:	b9 c0 08 00 	mv r1,r14                                      
 8003000:	34 03 00 00 	mvi r3,0                                       
 8003004:	f8 00 05 46 	calli 800451c <lseek>                          
    if (new_off != off) {                                             
        return RTEMS_IO_ERROR;                                        
 8003008:	34 04 00 1b 	mvi r4,27                                      
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    off = sector_num * RTEMS_IDE_SECTOR_SIZE;                         
    new_off = lseek(fd, off, SEEK_SET);                               
    if (new_off != off) {                                             
 800300c:	5c 2b 00 13 	bne r1,r11,8003058 <get_sector+0x9c>           <== NEVER TAKEN
        return RTEMS_IO_ERROR;                                        
    }                                                                 
                                                                      
    s = (rtems_sector_data_t *) malloc(sizeof(rtems_sector_data_t) + RTEMS_IDE_SECTOR_SIZE);
 8003010:	34 01 02 04 	mvi r1,516                                     
 8003014:	f8 00 05 cc 	calli 8004744 <malloc>                         
 8003018:	b8 20 58 00 	mv r11,r1                                      
    if (s == NULL)                                                    
    {                                                                 
        return RTEMS_NO_MEMORY;                                       
 800301c:	34 04 00 1a 	mvi r4,26                                      
    if (new_off != off) {                                             
        return RTEMS_IO_ERROR;                                        
    }                                                                 
                                                                      
    s = (rtems_sector_data_t *) malloc(sizeof(rtems_sector_data_t) + RTEMS_IDE_SECTOR_SIZE);
    if (s == NULL)                                                    
 8003020:	44 20 00 0e 	be r1,r0,8003058 <get_sector+0x9c>             <== NEVER TAKEN
    {                                                                 
        return RTEMS_NO_MEMORY;                                       
    }                                                                 
                                                                      
    n = read(fd, s->data, RTEMS_IDE_SECTOR_SIZE);                     
 8003024:	35 62 00 04 	addi r2,r11,4                                  
 8003028:	b9 c0 08 00 	mv r1,r14                                      
 800302c:	34 03 02 00 	mvi r3,512                                     
 8003030:	f8 00 08 ad 	calli 80052e4 <read>                           
    if (n != RTEMS_IDE_SECTOR_SIZE)                                   
 8003034:	34 02 02 00 	mvi r2,512                                     
 8003038:	44 22 00 05 	be r1,r2,800304c <get_sector+0x90>             <== ALWAYS TAKEN
    {                                                                 
        free(s);                                                      
 800303c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8003040:	f8 00 03 d6 	calli 8003f98 <free>                           <== NOT EXECUTED
        return RTEMS_IO_ERROR;                                        
 8003044:	34 04 00 1b 	mvi r4,27                                      <== NOT EXECUTED
 8003048:	e0 00 00 04 	bi 8003058 <get_sector+0x9c>                   <== NOT EXECUTED
    }                                                                 
                                                                      
    s->sector_num = sector_num;                                       
 800304c:	59 6d 00 00 	sw (r11+0),r13                                 
                                                                      
    *sector = s;                                                      
 8003050:	59 8b 00 00 	sw (r12+0),r11                                 
                                                                      
    return RTEMS_SUCCESSFUL;                                          
 8003054:	34 04 00 00 	mvi r4,0                                       
}                                                                     
 8003058:	b8 80 08 00 	mv r1,r4                                       
 800305c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003060:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8003064:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8003068:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800306c:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8003070:	37 9c 00 14 	addi sp,sp,20                                  
 8003074:	c3 a0 00 00 	ret                                            
                                                                      

08033364 <getdents>: int getdents( int dd_fd, char *dd_buf, int dd_len ) {
 8033364:	37 9c ff f0 	addi sp,sp,-16                                 
 8033368:	5b 8b 00 10 	sw (sp+16),r11                                 
 803336c:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8033370:	5b 8d 00 08 	sw (sp+8),r13                                  
 8033374:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_filesystem_node_types_t type;                                 
                                                                      
  /*                                                                  
   *  Get the file control block structure associated with the file descriptor
   */                                                                 
  iop = rtems_libio_iop( dd_fd );                                     
 8033378:	78 04 08 03 	mvhi r4,0x803                                  
 803337c:	38 84 90 14 	ori r4,r4,0x9014                               
int getdents(                                                         
  int   dd_fd,                                                        
  char *dd_buf,                                                       
  int   dd_len                                                        
)                                                                     
{                                                                     
 8033380:	b8 40 68 00 	mv r13,r2                                      
  rtems_filesystem_node_types_t type;                                 
                                                                      
  /*                                                                  
   *  Get the file control block structure associated with the file descriptor
   */                                                                 
  iop = rtems_libio_iop( dd_fd );                                     
 8033384:	28 82 00 00 	lw r2,(r4+0)                                   
int getdents(                                                         
  int   dd_fd,                                                        
  char *dd_buf,                                                       
  int   dd_len                                                        
)                                                                     
{                                                                     
 8033388:	b8 60 60 00 	mv r12,r3                                      
  rtems_filesystem_node_types_t type;                                 
                                                                      
  /*                                                                  
   *  Get the file control block structure associated with the file descriptor
   */                                                                 
  iop = rtems_libio_iop( dd_fd );                                     
 803338c:	34 0b 00 00 	mvi r11,0                                      
 8033390:	50 22 00 07 	bgeu r1,r2,80333ac <getdents+0x48>             <== NEVER TAKEN
 8033394:	78 0b 08 04 	mvhi r11,0x804                                 
 8033398:	39 6b 99 14 	ori r11,r11,0x9914                             
 803339c:	34 02 00 2c 	mvi r2,44                                      
 80333a0:	fb ff 38 9e 	calli 8001618 <__mulsi3>                       
 80333a4:	29 6b 00 00 	lw r11,(r11+0)                                 
 80333a8:	b5 61 58 00 	add r11,r11,r1                                 
                                                                      
  /*                                                                  
   *  Make sure we are working on a directory                         
   */                                                                 
  type = rtems_filesystem_node_type( &iop->pathinfo );                
 80333ac:	35 61 00 0c 	addi r1,r11,12                                 
 80333b0:	fb ff 55 4c 	calli 80088e0 <rtems_filesystem_node_type>     
  if ( type != RTEMS_FILESYSTEM_DIRECTORY )                           
 80333b4:	44 20 00 06 	be r1,r0,80333cc <getdents+0x68>               
    rtems_set_errno_and_return_minus_one( ENOTDIR );                  
 80333b8:	fb ff b1 97 	calli 801fa14 <__errno>                        
 80333bc:	34 02 00 14 	mvi r2,20                                      
 80333c0:	58 22 00 00 	sw (r1+0),r2                                   
 80333c4:	34 01 ff ff 	mvi r1,-1                                      
 80333c8:	e0 00 00 07 	bi 80333e4 <getdents+0x80>                     
                                                                      
  /*                                                                  
   *  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  );   
 80333cc:	29 61 00 1c 	lw r1,(r11+28)                                 
 80333d0:	b9 a0 10 00 	mv r2,r13                                      
 80333d4:	b9 80 18 00 	mv r3,r12                                      
 80333d8:	28 24 00 08 	lw r4,(r1+8)                                   
 80333dc:	b9 60 08 00 	mv r1,r11                                      
 80333e0:	d8 80 00 00 	call r4                                        
}                                                                     
 80333e4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80333e8:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80333ec:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80333f0:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80333f4:	37 9c 00 10 	addi sp,sp,16                                  
 80333f8:	c3 a0 00 00 	ret                                            
                                                                      

0800160c <gettimeofday>: */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) {
 800160c:	37 9c ff e8 	addi sp,sp,-24                                 
 8001610:	5b 8b 00 10 	sw (sp+16),r11                                 
 8001614:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8001618:	5b 8d 00 08 	sw (sp+8),r13                                  
 800161c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001620:	b8 20 58 00 	mv r11,r1                                      
  /* struct timezone* tzp = (struct timezone*) __tz; */               
  if ( !tp )                                                          
 8001624:	5c 20 00 06 	bne r1,r0,800163c <gettimeofday+0x30>          <== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( EFAULT );                   
 8001628:	f8 00 28 79 	calli 800b80c <__errno>                        <== NOT EXECUTED
 800162c:	34 02 00 0e 	mvi r2,14                                      <== NOT EXECUTED
 8001630:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 8001634:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 8001638:	e0 00 00 1b 	bi 80016a4 <gettimeofday+0x98>                 <== NOT EXECUTED
)                                                                     
{                                                                     
  Timestamp_Control  snapshot_as_timestamp;                           
  Timestamp_Control *snapshot_as_timestamp_ptr;                       
                                                                      
  snapshot_as_timestamp_ptr =                                         
 800163c:	78 02 08 01 	mvhi r2,0x801                                  
 8001640:	38 42 d8 60 	ori r2,r2,0xd860                               
 8001644:	37 81 00 14 	addi r1,sp,20                                  
 8001648:	f8 00 0c 7e 	calli 8004840 <_TOD_Get_with_nanoseconds>      
static inline void _Timestamp64_implementation_To_timeval(            
  const Timestamp64_Control *_timestamp,                              
  struct timeval            *_timeval                                 
)                                                                     
{                                                                     
  _timeval->tv_sec = (time_t) (*_timestamp / 1000000000U);            
 800164c:	78 05 08 01 	mvhi r5,0x801                                  
  struct timeval  *tp,                                                
  struct timezone *tzp                                                
)                                                                     
{                                                                     
  return gettimeofday( tp, tzp );                                     
}                                                                     
 8001650:	28 2c 00 04 	lw r12,(r1+4)                                  
 8001654:	28 2d 00 00 	lw r13,(r1+0)                                  
 8001658:	38 a5 b9 34 	ori r5,r5,0xb934                               
 800165c:	28 a4 00 00 	lw r4,(r5+0)                                   
 8001660:	34 03 00 00 	mvi r3,0                                       
 8001664:	b9 a0 08 00 	mv r1,r13                                      
 8001668:	b9 80 10 00 	mv r2,r12                                      
 800166c:	f8 00 4e 40 	calli 8014f6c <__divdi3>                       
  _timeval->tv_usec = (suseconds_t) ((*_timestamp % 1000000000U) / 1000U);
 8001670:	78 05 08 01 	mvhi r5,0x801                                  
 8001674:	38 a5 b9 34 	ori r5,r5,0xb934                               
 8001678:	28 a4 00 00 	lw r4,(r5+0)                                   
static inline void _Timestamp64_implementation_To_timeval(            
  const Timestamp64_Control *_timestamp,                              
  struct timeval            *_timeval                                 
)                                                                     
{                                                                     
  _timeval->tv_sec = (time_t) (*_timestamp / 1000000000U);            
 800167c:	59 62 00 00 	sw (r11+0),r2                                  
  _timeval->tv_usec = (suseconds_t) ((*_timestamp % 1000000000U) / 1000U);
 8001680:	34 03 00 00 	mvi r3,0                                       
 8001684:	b9 a0 08 00 	mv r1,r13                                      
 8001688:	b9 80 10 00 	mv r2,r12                                      
 800168c:	f8 00 50 3a 	calli 8015774 <__moddi3>                       
 8001690:	34 03 00 00 	mvi r3,0                                       
 8001694:	34 04 03 e8 	mvi r4,1000                                    
 8001698:	f8 00 4e 35 	calli 8014f6c <__divdi3>                       
 800169c:	59 62 00 04 	sw (r11+4),r2                                  
   *  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;                                                           
 80016a0:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 80016a4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80016a8:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80016ac:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80016b0:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80016b4:	37 9c 00 18 	addi sp,sp,24                                  
 80016b8:	c3 a0 00 00 	ret                                            
                                                                      

08022cbc <init_etc_passwd_group>: /** * Initialize useable but dummy databases */ void init_etc_passwd_group(void) {
 8022cbc:	37 9c ff f0 	addi sp,sp,-16                                 
 8022cc0:	5b 8b 00 10 	sw (sp+16),r11                                 
 8022cc4:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8022cc8:	5b 8d 00 08 	sw (sp+8),r13                                  
 8022ccc:	5b 9d 00 04 	sw (sp+4),ra                                   
  FILE *fp;                                                           
  static char etc_passwd_initted = 0;                                 
                                                                      
  if (etc_passwd_initted)                                             
 8022cd0:	78 01 08 06 	mvhi r1,0x806                                  
 8022cd4:	38 21 7b b0 	ori r1,r1,0x7bb0                               
 8022cd8:	40 2d 00 00 	lbu r13,(r1+0)                                 
 8022cdc:	5d a0 00 2f 	bne r13,r0,8022d98 <init_etc_passwd_group+0xdc>
    return;                                                           
  etc_passwd_initted = 1;                                             
 8022ce0:	34 02 00 01 	mvi r2,1                                       
 8022ce4:	30 22 00 00 	sb (r1+0),r2                                   
  mkdir("/etc", 0777);                                                
 8022ce8:	78 01 08 05 	mvhi r1,0x805                                  
 8022cec:	34 02 01 ff 	mvi r2,511                                     
 8022cf0:	38 21 dc 08 	ori r1,r1,0xdc08                               
 8022cf4:	fb ff 7a 2c 	calli 80015a4 <mkdir>                          
                                                                      
  /*                                                                  
   *  Initialize /etc/passwd                                          
   */                                                                 
  if ((fp = fopen("/etc/passwd", "r")) != NULL) {                     
 8022cf8:	78 0b 08 05 	mvhi r11,0x805                                 
 8022cfc:	39 6b dc 10 	ori r11,r11,0xdc10                             
 8022d00:	78 02 08 05 	mvhi r2,0x805                                  
 8022d04:	b9 60 08 00 	mv r1,r11                                      
 8022d08:	38 42 cc 08 	ori r2,r2,0xcc08                               
 8022d0c:	f8 00 56 f7 	calli 80388e8 <fopen>                          
 8022d10:	b8 20 60 00 	mv r12,r1                                      
 8022d14:	5c 2d 00 0c 	bne r1,r13,8022d44 <init_etc_passwd_group+0x88>
    fclose(fp);                                                       
  }                                                                   
  else if ((fp = fopen("/etc/passwd", "w")) != NULL) {                
 8022d18:	78 02 08 05 	mvhi r2,0x805                                  
 8022d1c:	b9 60 08 00 	mv r1,r11                                      
 8022d20:	38 42 99 1c 	ori r2,r2,0x991c                               
 8022d24:	f8 00 56 f1 	calli 80388e8 <fopen>                          
 8022d28:	b8 20 58 00 	mv r11,r1                                      
 8022d2c:	44 2c 00 07 	be r1,r12,8022d48 <init_etc_passwd_group+0x8c> <== NEVER TAKEN
    fprintf(fp, "root:*:0:0:root::/:/bin/sh\n"                        
 8022d30:	78 01 08 05 	mvhi r1,0x805                                  
 8022d34:	38 21 dc 1c 	ori r1,r1,0xdc1c                               
 8022d38:	b9 60 10 00 	mv r2,r11                                      
 8022d3c:	f8 00 57 6f 	calli 8038af8 <fputs>                          
                 "rtems:*:1:1:RTEMS Application::/:/bin/sh\n"         
                 "tty:!:2:2:tty owner::/:/bin/false\n" );             
    fclose(fp);                                                       
 8022d40:	b9 60 08 00 	mv r1,r11                                      
 8022d44:	f8 00 53 fc 	calli 8037d34 <fclose>                         
  }                                                                   
                                                                      
  /*                                                                  
   *  Initialize /etc/group                                           
   */                                                                 
  if ((fp = fopen("/etc/group", "r")) != NULL) {                      
 8022d48:	78 0b 08 05 	mvhi r11,0x805                                 
 8022d4c:	39 6b dc 84 	ori r11,r11,0xdc84                             
 8022d50:	78 02 08 05 	mvhi r2,0x805                                  
 8022d54:	b9 60 08 00 	mv r1,r11                                      
 8022d58:	38 42 cc 08 	ori r2,r2,0xcc08                               
 8022d5c:	f8 00 56 e3 	calli 80388e8 <fopen>                          
 8022d60:	b8 20 60 00 	mv r12,r1                                      
 8022d64:	5c 20 00 0c 	bne r1,r0,8022d94 <init_etc_passwd_group+0xd8> 
    fclose(fp);                                                       
  }                                                                   
  else if ((fp = fopen("/etc/group", "w")) != NULL) {                 
 8022d68:	78 02 08 05 	mvhi r2,0x805                                  
 8022d6c:	b9 60 08 00 	mv r1,r11                                      
 8022d70:	38 42 99 1c 	ori r2,r2,0x991c                               
 8022d74:	f8 00 56 dd 	calli 80388e8 <fopen>                          
 8022d78:	b8 20 58 00 	mv r11,r1                                      
 8022d7c:	44 2c 00 07 	be r1,r12,8022d98 <init_etc_passwd_group+0xdc> <== NEVER TAKEN
    fprintf( fp, "root:x:0:root\n"                                    
 8022d80:	78 01 08 05 	mvhi r1,0x805                                  
 8022d84:	38 21 dc 90 	ori r1,r1,0xdc90                               
 8022d88:	b9 60 10 00 	mv r2,r11                                      
 8022d8c:	f8 00 57 5b 	calli 8038af8 <fputs>                          
                 "rtems:x:1:rtems\n"                                  
                 "tty:x:2:tty\n" );                                   
    fclose(fp);                                                       
 8022d90:	b9 60 08 00 	mv r1,r11                                      
 8022d94:	f8 00 53 e8 	calli 8037d34 <fclose>                         
  }                                                                   
}                                                                     
 8022d98:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8022d9c:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8022da0:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8022da4:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8022da8:	37 9c 00 10 	addi sp,sp,16                                  
 8022dac:	c3 a0 00 00 	ret                                            
                                                                      

08002ab0 <ioctl>: int ioctl( int fd, ioctl_command_t command, ... ) {
 8002ab0:	37 9c ff d8 	addi sp,sp,-40                                 
 8002ab4:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8002ab8:	5b 8c 00 08 	sw (sp+8),r12                                  
 8002abc:	5b 9d 00 04 	sw (sp+4),ra                                   
 8002ac0:	5b 83 00 14 	sw (sp+20),r3                                  
  va_list            ap;                                              
  int                rc;                                              
  rtems_libio_t     *iop;                                             
  void              *buffer;                                          
                                                                      
  rtems_libio_check_fd( fd );                                         
 8002ac4:	78 03 08 01 	mvhi r3,0x801                                  
int ioctl(                                                            
  int  fd,                                                            
  ioctl_command_t  command,                                           
  ...                                                                 
)                                                                     
{                                                                     
 8002ac8:	5b 82 00 10 	sw (sp+16),r2                                  
 8002acc:	5b 84 00 18 	sw (sp+24),r4                                  
 8002ad0:	5b 85 00 1c 	sw (sp+28),r5                                  
 8002ad4:	5b 86 00 20 	sw (sp+32),r6                                  
 8002ad8:	5b 87 00 24 	sw (sp+36),r7                                  
 8002adc:	5b 88 00 28 	sw (sp+40),r8                                  
  va_list            ap;                                              
  int                rc;                                              
  rtems_libio_t     *iop;                                             
  void              *buffer;                                          
                                                                      
  rtems_libio_check_fd( fd );                                         
 8002ae0:	38 63 90 10 	ori r3,r3,0x9010                               
int ioctl(                                                            
  int  fd,                                                            
  ioctl_command_t  command,                                           
  ...                                                                 
)                                                                     
{                                                                     
 8002ae4:	b8 40 60 00 	mv r12,r2                                      
  va_list            ap;                                              
  int                rc;                                              
  rtems_libio_t     *iop;                                             
  void              *buffer;                                          
                                                                      
  rtems_libio_check_fd( fd );                                         
 8002ae8:	28 62 00 00 	lw r2,(r3+0)                                   
 8002aec:	54 41 00 02 	bgu r2,r1,8002af4 <ioctl+0x44>                 
 8002af0:	e0 00 00 0a 	bi 8002b18 <ioctl+0x68>                        
  iop = rtems_libio_iop( fd );                                        
 8002af4:	34 02 00 2c 	mvi r2,44                                      
 8002af8:	78 0b 08 01 	mvhi r11,0x801                                 
 8002afc:	f8 00 4f 74 	calli 80168cc <__mulsi3>                       
 8002b00:	39 6b 98 00 	ori r11,r11,0x9800                             
 8002b04:	29 62 00 00 	lw r2,(r11+0)                                  
 8002b08:	b4 41 08 00 	add r1,r2,r1                                   
  rtems_libio_check_is_open(iop);                                     
 8002b0c:	28 22 00 08 	lw r2,(r1+8)                                   
 8002b10:	20 42 01 00 	andi r2,r2,0x100                               
 8002b14:	5c 40 00 06 	bne r2,r0,8002b2c <ioctl+0x7c>                 <== ALWAYS TAKEN
 8002b18:	f8 00 37 db 	calli 8010a84 <__errno>                        
 8002b1c:	34 02 00 09 	mvi r2,9                                       
 8002b20:	58 22 00 00 	sw (r1+0),r2                                   
 8002b24:	34 01 ff ff 	mvi r1,-1                                      
 8002b28:	e0 00 00 06 	bi 8002b40 <ioctl+0x90>                        
  buffer = va_arg(ap, void *);                                        
                                                                      
  /*                                                                  
   *  Now process the ioctl().                                        
   */                                                                 
  rc = (*iop->pathinfo.handlers->ioctl_h)( iop, command, buffer );    
 8002b2c:	28 22 00 1c 	lw r2,(r1+28)                                  
 8002b30:	2b 83 00 14 	lw r3,(sp+20)                                  
 8002b34:	28 44 00 10 	lw r4,(r2+16)                                  
 8002b38:	b9 80 10 00 	mv r2,r12                                      
 8002b3c:	d8 80 00 00 	call r4                                        
                                                                      
  va_end( ap );                                                       
  return rc;                                                          
}                                                                     
 8002b40:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002b44:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8002b48:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8002b4c:	37 9c 00 28 	addi sp,sp,40                                  
 8002b50:	c3 a0 00 00 	ret                                            
                                                                      

08004fa0 <iproc>: /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) {
 8004fa0:	37 9c ff f4 	addi sp,sp,-12                                 
 8004fa4:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8004fa8:	5b 8c 00 08 	sw (sp+8),r12                                  
 8004fac:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004fb0:	b8 40 58 00 	mv r11,r2                                      
  if (tty->termios.c_iflag & ISTRIP)                                  
 8004fb4:	28 42 00 30 	lw r2,(r2+48)                                  
/*                                                                    
 * Process a single input character                                   
 */                                                                   
static int                                                            
iproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
 8004fb8:	b8 20 60 00 	mv r12,r1                                      
  if (tty->termios.c_iflag & ISTRIP)                                  
 8004fbc:	20 41 00 20 	andi r1,r2,0x20                                
 8004fc0:	44 20 00 02 	be r1,r0,8004fc8 <iproc+0x28>                  <== ALWAYS TAKEN
    c &= 0x7f;                                                        
 8004fc4:	21 8c 00 7f 	andi r12,r12,0x7f                              <== NOT EXECUTED
                                                                      
  if (tty->termios.c_iflag & IUCLC)                                   
 8004fc8:	20 41 02 00 	andi r1,r2,0x200                               
 8004fcc:	44 20 00 0b 	be r1,r0,8004ff8 <iproc+0x58>                  
    c = tolower (c);                                                  
 8004fd0:	78 01 08 02 	mvhi r1,0x802                                  
 8004fd4:	38 21 62 94 	ori r1,r1,0x6294                               
 8004fd8:	28 21 00 00 	lw r1,(r1+0)                                   
 8004fdc:	b4 2c 08 00 	add r1,r1,r12                                  
 8004fe0:	40 23 00 01 	lbu r3,(r1+1)                                  
 8004fe4:	34 01 00 01 	mvi r1,1                                       
 8004fe8:	20 63 00 03 	andi r3,r3,0x3                                 
 8004fec:	5c 61 00 02 	bne r3,r1,8004ff4 <iproc+0x54>                 
 8004ff0:	35 8c 00 20 	addi r12,r12,32                                
 8004ff4:	21 8c 00 ff 	andi r12,r12,0xff                              
                                                                      
  if (c == '\r') {                                                    
 8004ff8:	34 01 00 0d 	mvi r1,13                                      
 8004ffc:	5d 81 00 08 	bne r12,r1,800501c <iproc+0x7c>                
    if (tty->termios.c_iflag & IGNCR)                                 
 8005000:	20 43 00 80 	andi r3,r2,0x80                                
      return 0;                                                       
 8005004:	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)                                 
 8005008:	5c 60 00 4e 	bne r3,r0,8005140 <iproc+0x1a0>                <== NEVER TAKEN
      return 0;                                                       
    if (tty->termios.c_iflag & ICRNL)                                 
 800500c:	20 42 01 00 	andi r2,r2,0x100                               
 8005010:	44 43 00 0a 	be r2,r3,8005038 <iproc+0x98>                  <== NEVER TAKEN
      c = '\n';                                                       
 8005014:	34 0c 00 0a 	mvi r12,10                                     
 8005018:	e0 00 00 08 	bi 8005038 <iproc+0x98>                        
  } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {         
 800501c:	34 01 00 0a 	mvi r1,10                                      
 8005020:	5d 81 00 05 	bne r12,r1,8005034 <iproc+0x94>                
 8005024:	20 42 00 40 	andi r2,r2,0x40                                
 8005028:	44 40 00 04 	be r2,r0,8005038 <iproc+0x98>                  <== ALWAYS TAKEN
    c = '\r';                                                         
 800502c:	34 0c 00 0d 	mvi r12,13                                     <== NOT EXECUTED
 8005030:	e0 00 00 02 	bi 8005038 <iproc+0x98>                        <== NOT EXECUTED
  }                                                                   
                                                                      
  if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {               
 8005034:	45 80 00 2f 	be r12,r0,80050f0 <iproc+0x150>                <== NEVER TAKEN
 8005038:	29 62 00 3c 	lw r2,(r11+60)                                 
 800503c:	20 41 00 02 	andi r1,r2,0x2                                 
 8005040:	44 20 00 2c 	be r1,r0,80050f0 <iproc+0x150>                 
    if (c == tty->termios.c_cc[VERASE]) {                             
 8005044:	41 61 00 43 	lbu r1,(r11+67)                                
 8005048:	5c 2c 00 04 	bne r1,r12,8005058 <iproc+0xb8>                
      erase (tty, 0);                                                 
 800504c:	b9 60 08 00 	mv r1,r11                                      
 8005050:	34 02 00 00 	mvi r2,0                                       
 8005054:	e0 00 00 05 	bi 8005068 <iproc+0xc8>                        
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VKILL]) {                         
 8005058:	41 61 00 44 	lbu r1,(r11+68)                                
 800505c:	5c 2c 00 05 	bne r1,r12,8005070 <iproc+0xd0>                
      erase (tty, 1);                                                 
 8005060:	b9 60 08 00 	mv r1,r11                                      
 8005064:	34 02 00 01 	mvi r2,1                                       
 8005068:	fb ff ff 4c 	calli 8004d98 <erase>                          
 800506c:	e0 00 00 34 	bi 800513c <iproc+0x19c>                       
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VEOF]) {                          
 8005070:	41 63 00 45 	lbu r3,(r11+69)                                
      return 1;                                                       
 8005074:	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]) {                          
 8005078:	44 6c 00 32 	be r3,r12,8005140 <iproc+0x1a0>                <== NEVER TAKEN
      return 1;                                                       
    } else if (c == '\n') {                                           
 800507c:	34 01 00 0a 	mvi r1,10                                      
 8005080:	5d 81 00 0b 	bne r12,r1,80050ac <iproc+0x10c>               
      if (tty->termios.c_lflag & (ECHO | ECHONL))                     
 8005084:	20 42 00 48 	andi r2,r2,0x48                                
 8005088:	44 40 00 03 	be r2,r0,8005094 <iproc+0xf4>                  <== NEVER TAKEN
        echo (c, tty);                                                
 800508c:	b9 60 10 00 	mv r2,r11                                      
 8005090:	fb ff ff 1d 	calli 8004d04 <echo>                           
      tty->cbuf[tty->ccount++] = c;                                   
 8005094:	29 61 00 20 	lw r1,(r11+32)                                 
 8005098:	29 62 00 1c 	lw r2,(r11+28)                                 
 800509c:	34 03 00 0a 	mvi r3,10                                      
 80050a0:	b4 41 10 00 	add r2,r2,r1                                   
 80050a4:	30 43 00 00 	sb (r2+0),r3                                   
 80050a8:	e0 00 00 0e 	bi 80050e0 <iproc+0x140>                       
      return 1;                                                       
    } else if ((c == tty->termios.c_cc[VEOL]) ||                      
 80050ac:	41 61 00 4c 	lbu r1,(r11+76)                                
 80050b0:	44 2c 00 03 	be r1,r12,80050bc <iproc+0x11c>                <== NEVER TAKEN
 80050b4:	41 61 00 51 	lbu r1,(r11+81)                                
 80050b8:	5c 2c 00 0e 	bne r1,r12,80050f0 <iproc+0x150>               <== ALWAYS TAKEN
               (c == tty->termios.c_cc[VEOL2])) {                     
      if (tty->termios.c_lflag & ECHO)                                
 80050bc:	20 42 00 08 	andi r2,r2,0x8                                 <== NOT EXECUTED
 80050c0:	44 40 00 04 	be r2,r0,80050d0 <iproc+0x130>                 <== NOT EXECUTED
        echo (c, tty);                                                
 80050c4:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 80050c8:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 80050cc:	fb ff ff 0e 	calli 8004d04 <echo>                           <== NOT EXECUTED
      tty->cbuf[tty->ccount++] = c;                                   
 80050d0:	29 61 00 20 	lw r1,(r11+32)                                 <== NOT EXECUTED
 80050d4:	29 62 00 1c 	lw r2,(r11+28)                                 <== NOT EXECUTED
 80050d8:	b4 41 10 00 	add r2,r2,r1                                   <== NOT EXECUTED
 80050dc:	30 4c 00 00 	sb (r2+0),r12                                  <== NOT EXECUTED
 80050e0:	34 21 00 01 	addi r1,r1,1                                   
 80050e4:	59 61 00 20 	sw (r11+32),r1                                 
      return 1;                                                       
 80050e8:	34 01 00 01 	mvi r1,1                                       
 80050ec:	e0 00 00 15 	bi 8005140 <iproc+0x1a0>                       
  }                                                                   
                                                                      
  /*                                                                  
   * FIXME: Should do IMAXBEL handling somehow                        
   */                                                                 
  if (tty->ccount < (CBUFSIZE-1)) {                                   
 80050f0:	78 01 08 02 	mvhi r1,0x802                                  
 80050f4:	38 21 61 40 	ori r1,r1,0x6140                               
 80050f8:	28 22 00 00 	lw r2,(r1+0)                                   
 80050fc:	29 63 00 20 	lw r3,(r11+32)                                 
    if (tty->termios.c_lflag & ECHO)                                  
      echo (c, tty);                                                  
    tty->cbuf[tty->ccount++] = c;                                     
  }                                                                   
  return 0;                                                           
 8005100:	34 01 00 00 	mvi r1,0                                       
  }                                                                   
                                                                      
  /*                                                                  
   * FIXME: Should do IMAXBEL handling somehow                        
   */                                                                 
  if (tty->ccount < (CBUFSIZE-1)) {                                   
 8005104:	34 42 ff ff 	addi r2,r2,-1                                  
 8005108:	50 62 00 0e 	bgeu r3,r2,8005140 <iproc+0x1a0>               <== NEVER TAKEN
    if (tty->termios.c_lflag & ECHO)                                  
 800510c:	29 61 00 3c 	lw r1,(r11+60)                                 
 8005110:	20 21 00 08 	andi r1,r1,0x8                                 
 8005114:	44 20 00 04 	be r1,r0,8005124 <iproc+0x184>                 <== NEVER TAKEN
      echo (c, tty);                                                  
 8005118:	b9 80 08 00 	mv r1,r12                                      
 800511c:	b9 60 10 00 	mv r2,r11                                      
 8005120:	fb ff fe f9 	calli 8004d04 <echo>                           
    tty->cbuf[tty->ccount++] = c;                                     
 8005124:	29 61 00 20 	lw r1,(r11+32)                                 
 8005128:	29 62 00 1c 	lw r2,(r11+28)                                 
 800512c:	b4 41 10 00 	add r2,r2,r1                                   
 8005130:	30 4c 00 00 	sb (r2+0),r12                                  
 8005134:	34 21 00 01 	addi r1,r1,1                                   
 8005138:	59 61 00 20 	sw (r11+32),r1                                 
  }                                                                   
  return 0;                                                           
 800513c:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 8005140:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005144:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8005148:	2b 8c 00 08 	lw r12,(sp+8)                                  
 800514c:	37 9c 00 0c 	addi sp,sp,12                                  
 8005150:	c3 a0 00 00 	ret                                            
                                                                      

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

08001f0c <libc_wrapup>: extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) {
 8001f0c:	37 9c ff f4 	addi sp,sp,-12                                 
 8001f10:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8001f14:	5b 8c 00 08 	sw (sp+8),r12                                  
 8001f18:	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()))                      
 8001f1c:	78 01 08 01 	mvhi r1,0x801                                  
 8001f20:	38 21 da 54 	ori r1,r1,0xda54                               
 8001f24:	28 22 00 00 	lw r2,(r1+0)                                   
 8001f28:	34 01 00 03 	mvi r1,3                                       
 8001f2c:	5c 41 00 16 	bne r2,r1,8001f84 <libc_wrapup+0x78>           <== NEVER TAKEN
  /*                                                                  
   *  This was already done if the user called exit() directly .      
  _wrapup_reent(0);                                                   
   */                                                                 
                                                                      
  if (_REENT != _global_impure_ptr) {                                 
 8001f30:	78 01 08 01 	mvhi r1,0x801                                  
 8001f34:	78 0b 08 01 	mvhi r11,0x801                                 
 8001f38:	38 21 be 78 	ori r1,r1,0xbe78                               
 8001f3c:	39 6b d2 28 	ori r11,r11,0xd228                             
 8001f40:	28 2c 00 00 	lw r12,(r1+0)                                  
 8001f44:	29 61 00 00 	lw r1,(r11+0)                                  
 8001f48:	44 2c 00 04 	be r1,r12,8001f58 <libc_wrapup+0x4c>           
      _wrapup_reent(_global_impure_ptr);                              
 8001f4c:	b9 80 08 00 	mv r1,r12                                      
 8001f50:	f8 00 2a 44 	calli 800c860 <_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;                                    
 8001f54:	59 6c 00 00 	sw (r11+0),r12                                 
   *                                                                  
   * Should this be changed to do *all* file streams?                 
   *    _fwalk (_REENT, fclose);                                      
   */                                                                 
                                                                      
  fclose (stdin);                                                     
 8001f58:	78 0b 08 01 	mvhi r11,0x801                                 
 8001f5c:	39 6b d2 28 	ori r11,r11,0xd228                             
 8001f60:	29 61 00 00 	lw r1,(r11+0)                                  
 8001f64:	28 21 00 04 	lw r1,(r1+4)                                   
 8001f68:	f8 00 26 81 	calli 800b96c <fclose>                         
  fclose (stdout);                                                    
 8001f6c:	29 61 00 00 	lw r1,(r11+0)                                  
 8001f70:	28 21 00 08 	lw r1,(r1+8)                                   
 8001f74:	f8 00 26 7e 	calli 800b96c <fclose>                         
  fclose (stderr);                                                    
 8001f78:	29 61 00 00 	lw r1,(r11+0)                                  
 8001f7c:	28 21 00 0c 	lw r1,(r1+12)                                  
 8001f80:	f8 00 26 7b 	calli 800b96c <fclose>                         
}                                                                     
 8001f84:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001f88:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8001f8c:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8001f90:	37 9c 00 0c 	addi sp,sp,12                                  
 8001f94:	c3 a0 00 00 	ret                                            
                                                                      

08001944 <malloc>: #include "malloc_p.h" void *malloc( size_t size ) {
 8001944:	37 9c ff f0 	addi sp,sp,-16                                 
 8001948:	5b 8b 00 10 	sw (sp+16),r11                                 
 800194c:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8001950:	5b 8d 00 08 	sw (sp+8),r13                                  
 8001954:	5b 9d 00 04 	sw (sp+4),ra                                   
  void        *return_this;                                           
                                                                      
  MSBUMP(malloc_calls, 1);                                            
 8001958:	78 03 08 01 	mvhi r3,0x801                                  
 800195c:	38 63 d7 b0 	ori r3,r3,0xd7b0                               
#include "malloc_p.h"                                                 
                                                                      
void *malloc(                                                         
  size_t  size                                                        
)                                                                     
{                                                                     
 8001960:	b8 20 60 00 	mv r12,r1                                      
  void        *return_this;                                           
                                                                      
  MSBUMP(malloc_calls, 1);                                            
 8001964:	28 61 00 04 	lw r1,(r3+4)                                   
                                                                      
  /*                                                                  
   * Validate the parameters                                          
   */                                                                 
  if ( !size )                                                        
    return (void *) 0;                                                
 8001968:	34 0b 00 00 	mvi r11,0                                      
  size_t  size                                                        
)                                                                     
{                                                                     
  void        *return_this;                                           
                                                                      
  MSBUMP(malloc_calls, 1);                                            
 800196c:	34 21 00 01 	addi r1,r1,1                                   
 8001970:	58 61 00 04 	sw (r3+4),r1                                   
                                                                      
  /*                                                                  
   *  If some free's have been deferred, then do them now.            
   */                                                                 
  malloc_deferred_frees_process();                                    
 8001974:	fb ff ff a0 	calli 80017f4 <malloc_deferred_frees_process>  
                                                                      
  /*                                                                  
   * Validate the parameters                                          
   */                                                                 
  if ( !size )                                                        
 8001978:	45 80 00 2b 	be r12,r0,8001a24 <malloc+0xe0>                
    return (void *) 0;                                                
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
 800197c:	78 01 08 01 	mvhi r1,0x801                                  
 8001980:	38 21 da 54 	ori r1,r1,0xda54                               
 8001984:	28 22 00 00 	lw r2,(r1+0)                                   
 8001988:	34 01 00 03 	mvi r1,3                                       
 800198c:	5c 41 00 03 	bne r2,r1,8001998 <malloc+0x54>                
       !malloc_is_system_state_OK() )                                 
 8001990:	fb ff ff 8f 	calli 80017cc <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()) &&                    
 8001994:	44 20 00 24 	be r1,r0,8001a24 <malloc+0xe0>                 <== 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 );
 8001998:	78 0d 08 01 	mvhi r13,0x801                                 
 800199c:	39 ad d0 54 	ori r13,r13,0xd054                             
 80019a0:	29 a1 00 00 	lw r1,(r13+0)                                  
 80019a4:	b9 80 10 00 	mv r2,r12                                      
 80019a8:	34 03 00 00 	mvi r3,0                                       
 80019ac:	34 04 00 00 	mvi r4,0                                       
 80019b0:	f8 00 0f d2 	calli 80058f8 <_Protected_heap_Allocate_aligned_with_boundary>
 80019b4:	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 ) {                                               
 80019b8:	5c 20 00 0d 	bne r1,r0,80019ec <malloc+0xa8>                
    return_this = (*rtems_malloc_extend_handler)( RTEMS_Malloc_Heap, size );
 80019bc:	78 01 08 01 	mvhi r1,0x801                                  
 80019c0:	38 21 b2 08 	ori r1,r1,0xb208                               
 80019c4:	28 23 00 00 	lw r3,(r1+0)                                   
 80019c8:	29 a1 00 00 	lw r1,(r13+0)                                  
 80019cc:	b9 80 10 00 	mv r2,r12                                      
 80019d0:	d8 60 00 00 	call r3                                        
 80019d4:	b8 20 58 00 	mv r11,r1                                      
    if ( !return_this ) {                                             
 80019d8:	5c 20 00 05 	bne r1,r0,80019ec <malloc+0xa8>                <== NEVER TAKEN
      errno = ENOMEM;                                                 
 80019dc:	f8 00 27 8c 	calli 800b80c <__errno>                        
 80019e0:	34 02 00 0c 	mvi r2,12                                      
 80019e4:	58 22 00 00 	sw (r1+0),r2                                   
      return (void *) 0;                                              
 80019e8:	e0 00 00 0f 	bi 8001a24 <malloc+0xe0>                       
  }                                                                   
                                                                      
  /*                                                                  
   *  If the user wants us to dirty the allocated memory, then do it. 
   */                                                                 
  if ( rtems_malloc_dirty_helper )                                    
 80019ec:	78 01 08 01 	mvhi r1,0x801                                  
 80019f0:	38 21 d7 10 	ori r1,r1,0xd710                               
 80019f4:	28 23 00 00 	lw r3,(r1+0)                                   
 80019f8:	44 60 00 04 	be r3,r0,8001a08 <malloc+0xc4>                 
    (*rtems_malloc_dirty_helper)( return_this, size );                
 80019fc:	b9 60 08 00 	mv r1,r11                                      
 8001a00:	b9 80 10 00 	mv r2,r12                                      
 8001a04:	d8 60 00 00 	call r3                                        
                                                                      
  /*                                                                  
   *  If configured, update the statistics                            
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
 8001a08:	78 01 08 01 	mvhi r1,0x801                                  
 8001a0c:	38 21 d7 0c 	ori r1,r1,0xd70c                               
 8001a10:	28 21 00 00 	lw r1,(r1+0)                                   
 8001a14:	44 20 00 04 	be r1,r0,8001a24 <malloc+0xe0>                 
    (*rtems_malloc_statistics_helpers->at_malloc)(return_this);       
 8001a18:	28 22 00 04 	lw r2,(r1+4)                                   
 8001a1c:	b9 60 08 00 	mv r1,r11                                      
 8001a20:	d8 40 00 00 	call r2                                        
                                                                      
  return return_this;                                                 
}                                                                     
 8001a24:	b9 60 08 00 	mv r1,r11                                      
 8001a28:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001a2c:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8001a30:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8001a34:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8001a38:	37 9c 00 10 	addi sp,sp,16                                  
 8001a3c:	c3 a0 00 00 	ret                                            
                                                                      

0800ac50 <memfile_open>: rtems_libio_t *iop, const char *pathname, int oflag, mode_t mode ) {
 800ac50:	37 9c ff fc 	addi sp,sp,-4                                  
 800ac54:	5b 9d 00 04 	sw (sp+4),ra                                   
  the_jnode = iop->pathinfo.node_access;                              
                                                                      
  /*                                                                  
   * Perform 'copy on write' for linear files                         
   */                                                                 
  if ((iop->flags & LIBIO_FLAGS_WRITE)                                
 800ac58:	28 23 00 08 	lw r3,(r1+8)                                   
  mode_t         mode                                                 
)                                                                     
{                                                                     
  IMFS_jnode_t  *the_jnode;                                           
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
 800ac5c:	28 22 00 14 	lw r2,(r1+20)                                  
    if ((count != 0)                                                  
     && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))      
        return -1;                                                    
  }                                                                   
                                                                      
  return 0;                                                           
 800ac60:	34 01 00 00 	mvi r1,0                                       
  the_jnode = iop->pathinfo.node_access;                              
                                                                      
  /*                                                                  
   * Perform 'copy on write' for linear files                         
   */                                                                 
  if ((iop->flags & LIBIO_FLAGS_WRITE)                                
 800ac64:	20 63 00 04 	andi r3,r3,0x4                                 
 800ac68:	44 60 00 14 	be r3,r0,800acb8 <memfile_open+0x68>           
 800ac6c:	28 43 00 4c 	lw r3,(r2+76)                                  
   && (IMFS_type( the_jnode ) == IMFS_LINEAR_FILE)) {                 
 800ac70:	28 64 00 00 	lw r4,(r3+0)                                   
 800ac74:	34 03 00 05 	mvi r3,5                                       
 800ac78:	5c 83 00 10 	bne r4,r3,800acb8 <memfile_open+0x68>          <== ALWAYS TAKEN
    uint32_t   count = the_jnode->info.linearfile.size;               
 800ac7c:	28 44 00 50 	lw r4,(r2+80)                                  <== NOT EXECUTED
    const unsigned char *buffer = the_jnode->info.linearfile.direct;  
                                                                      
    the_jnode->control = &IMFS_node_control_memfile;                  
 800ac80:	78 05 08 01 	mvhi r5,0x801                                  <== NOT EXECUTED
 800ac84:	38 a5 bc e8 	ori r5,r5,0xbce8                               <== NOT EXECUTED
   * Perform 'copy on write' for linear files                         
   */                                                                 
  if ((iop->flags & LIBIO_FLAGS_WRITE)                                
   && (IMFS_type( the_jnode ) == IMFS_LINEAR_FILE)) {                 
    uint32_t   count = the_jnode->info.linearfile.size;               
    const unsigned char *buffer = the_jnode->info.linearfile.direct;  
 800ac88:	28 43 00 54 	lw r3,(r2+84)                                  <== NOT EXECUTED
                                                                      
    the_jnode->control = &IMFS_node_control_memfile;                  
 800ac8c:	58 45 00 4c 	sw (r2+76),r5                                  <== NOT EXECUTED
    the_jnode->info.file.size            = 0;                         
 800ac90:	58 40 00 50 	sw (r2+80),r0                                  <== NOT EXECUTED
    the_jnode->info.file.indirect        = 0;                         
 800ac94:	58 40 00 54 	sw (r2+84),r0                                  <== NOT EXECUTED
    the_jnode->info.file.doubly_indirect = 0;                         
 800ac98:	58 40 00 58 	sw (r2+88),r0                                  <== NOT EXECUTED
    the_jnode->info.file.triply_indirect = 0;                         
 800ac9c:	58 40 00 5c 	sw (r2+92),r0                                  <== NOT EXECUTED
    if ((count != 0)                                                  
 800aca0:	44 80 00 06 	be r4,r0,800acb8 <memfile_open+0x68>           <== NOT EXECUTED
     && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))      
 800aca4:	b8 40 08 00 	mv r1,r2                                       <== NOT EXECUTED
 800aca8:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 800acac:	fb ff ff 68 	calli 800aa4c <IMFS_memfile_write>             <== NOT EXECUTED
        return -1;                                                    
  }                                                                   
                                                                      
  return 0;                                                           
 800acb0:	64 21 ff ff 	cmpei r1,r1,-1                                 <== NOT EXECUTED
 800acb4:	c8 01 08 00 	sub r1,r0,r1                                   <== NOT EXECUTED
}                                                                     
 800acb8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800acbc:	37 9c 00 04 	addi sp,sp,4                                   
 800acc0:	c3 a0 00 00 	ret                                            
                                                                      

08001bc8 <mount>: const char *target, const char *filesystemtype, rtems_filesystem_options_t options, const void *data ) {
 8001bc8:	37 9c ff 78 	addi sp,sp,-136                                
 8001bcc:	5b 8b 00 38 	sw (sp+56),r11                                 
 8001bd0:	5b 8c 00 34 	sw (sp+52),r12                                 
 8001bd4:	5b 8d 00 30 	sw (sp+48),r13                                 
 8001bd8:	5b 8e 00 2c 	sw (sp+44),r14                                 
 8001bdc:	5b 8f 00 28 	sw (sp+40),r15                                 
 8001be0:	5b 90 00 24 	sw (sp+36),r16                                 
 8001be4:	5b 91 00 20 	sw (sp+32),r17                                 
 8001be8:	5b 92 00 1c 	sw (sp+28),r18                                 
 8001bec:	5b 93 00 18 	sw (sp+24),r19                                 
 8001bf0:	5b 94 00 14 	sw (sp+20),r20                                 
 8001bf4:	5b 95 00 10 	sw (sp+16),r21                                 
 8001bf8:	5b 96 00 0c 	sw (sp+12),r22                                 
 8001bfc:	5b 97 00 08 	sw (sp+8),r23                                  
 8001c00:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001c04:	b8 20 88 00 	mv r17,r1                                      
  int rv = 0;                                                         
                                                                      
  if (                                                                
 8001c08:	34 01 00 01 	mvi r1,1                                       
  const char                 *target,                                 
  const char                 *filesystemtype,                         
  rtems_filesystem_options_t options,                                 
  const void                 *data                                    
)                                                                     
{                                                                     
 8001c0c:	b8 40 70 00 	mv r14,r2                                      
 8001c10:	b8 60 98 00 	mv r19,r3                                      
 8001c14:	b8 80 a8 00 	mv r21,r4                                      
 8001c18:	b8 a0 b8 00 	mv r23,r5                                      
  int rv = 0;                                                         
                                                                      
  if (                                                                
 8001c1c:	54 81 00 a7 	bgu r4,r1,8001eb8 <mount+0x2f0>                
    options == RTEMS_FILESYSTEM_READ_ONLY                             
      || options == RTEMS_FILESYSTEM_READ_WRITE                       
  ) {                                                                 
    rtems_filesystem_fsmount_me_t fsmount_me_h =                      
 8001c20:	b8 60 08 00 	mv r1,r3                                       
 8001c24:	f8 00 1b d0 	calli 8008b64 <rtems_filesystem_get_mount_handler>
 8001c28:	b8 20 a0 00 	mv r20,r1                                      
      rtems_filesystem_get_mount_handler( filesystemtype );           
                                                                      
    if ( fsmount_me_h != NULL ) {                                     
 8001c2c:	44 20 00 a3 	be r1,r0,8001eb8 <mount+0x2f0>                 
  const char *target_or_null,                                         
  const char *filesystemtype,                                         
  size_t *target_length_ptr                                           
)                                                                     
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
 8001c30:	b9 c0 68 00 	mv r13,r14                                     
 8001c34:	5d c0 00 03 	bne r14,r0,8001c40 <mount+0x78>                
 8001c38:	78 0d 08 01 	mvhi r13,0x801                                 
 8001c3c:	39 ad b9 3c 	ori r13,r13,0xb93c                             
  size_t filesystemtype_size = strlen( filesystemtype ) + 1;          
 8001c40:	ba 60 08 00 	mv r1,r19                                      
 8001c44:	f8 00 2d 37 	calli 800d120 <strlen>                         
 8001c48:	34 2c 00 01 	addi r12,r1,1                                  
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
 8001c4c:	34 10 00 00 	mvi r16,0                                      
 8001c50:	46 20 00 04 	be r17,r0,8001c60 <mount+0x98>                 
 8001c54:	ba 20 08 00 	mv r1,r17                                      
 8001c58:	f8 00 2d 32 	calli 800d120 <strlen>                         
 8001c5c:	34 30 00 01 	addi r16,r1,1                                  
  size_t target_size = strlen( target ) + 1;                          
 8001c60:	b9 a0 08 00 	mv r1,r13                                      
 8001c64:	f8 00 2d 2f 	calli 800d120 <strlen>                         
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_size                 
 8001c68:	35 83 00 64 	addi r3,r12,100                                
{                                                                     
  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;                          
 8001c6c:	34 36 00 01 	addi r22,r1,1                                  
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_size                 
 8001c70:	b4 70 18 00 	add r3,r3,r16                                  
    + sizeof( rtems_filesystem_global_location_t );                   
  rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size ); 
 8001c74:	34 01 00 01 	mvi r1,1                                       
 8001c78:	b4 76 10 00 	add r2,r3,r22                                  
 8001c7c:	fb ff fd 66 	calli 8001214 <calloc>                         
 8001c80:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  if ( mt_entry != NULL ) {                                           
 8001c84:	44 20 00 2a 	be r1,r0,8001d2c <mount+0x164>                 <== NEVER TAKEN
    rtems_filesystem_global_location_t *mt_fs_root =                  
      (rtems_filesystem_global_location_t *)                          
        ((char *) mt_entry + sizeof( *mt_entry ));                    
    char *str = (char *) mt_fs_root + sizeof( *mt_fs_root );          
 8001c88:	34 32 00 64 	addi r18,r1,100                                
                                                                      
    memcpy( str, filesystemtype, filesystemtype_size );               
 8001c8c:	b9 80 18 00 	mv r3,r12                                      
    + filesystemtype_size + source_size + target_size                 
    + sizeof( rtems_filesystem_global_location_t );                   
  rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size ); 
                                                                      
  if ( mt_entry != NULL ) {                                           
    rtems_filesystem_global_location_t *mt_fs_root =                  
 8001c90:	34 2f 00 40 	addi r15,r1,64                                 
      (rtems_filesystem_global_location_t *)                          
        ((char *) mt_entry + sizeof( *mt_entry ));                    
    char *str = (char *) mt_fs_root + sizeof( *mt_fs_root );          
                                                                      
    memcpy( str, filesystemtype, filesystemtype_size );               
 8001c94:	ba 60 10 00 	mv r2,r19                                      
 8001c98:	ba 40 08 00 	mv r1,r18                                      
 8001c9c:	f8 00 29 d6 	calli 800c3f4 <memcpy>                         
    mt_entry->type = str;                                             
 8001ca0:	59 72 00 34 	sw (r11+52),r18                                
    str += filesystemtype_size;                                       
 8001ca4:	b6 4c 60 00 	add r12,r18,r12                                
                                                                      
    if ( source_or_null != NULL ) {                                   
 8001ca8:	46 20 00 07 	be r17,r0,8001cc4 <mount+0xfc>                 
      memcpy( str, source_or_null, source_size );                     
 8001cac:	b9 80 08 00 	mv r1,r12                                      
 8001cb0:	ba 20 10 00 	mv r2,r17                                      
 8001cb4:	ba 00 18 00 	mv r3,r16                                      
 8001cb8:	f8 00 29 cf 	calli 800c3f4 <memcpy>                         
      mt_entry->dev = str;                                            
 8001cbc:	59 6c 00 38 	sw (r11+56),r12                                
      str += source_size;                                             
 8001cc0:	b5 90 60 00 	add r12,r12,r16                                
    }                                                                 
                                                                      
    memcpy( str, target, target_size );                               
 8001cc4:	b9 80 08 00 	mv r1,r12                                      
 8001cc8:	b9 a0 10 00 	mv r2,r13                                      
 8001ccc:	ba c0 18 00 	mv r3,r22                                      
 8001cd0:	f8 00 29 c9 	calli 800c3f4 <memcpy>                         
    mt_entry->target = str;                                           
    str += target_size;                                               
                                                                      
    mt_entry->mounted = true;                                         
    mt_entry->mt_fs_root = mt_fs_root;                                
    mt_entry->pathconf_limits_and_options = &rtems_filesystem_default_pathconf;
 8001cd4:	78 03 08 01 	mvhi r3,0x801                                  
                                                                      
    memcpy( str, target, target_size );                               
    mt_entry->target = str;                                           
    str += target_size;                                               
                                                                      
    mt_entry->mounted = true;                                         
 8001cd8:	34 01 00 01 	mvi r1,1                                       
    mt_entry->mt_fs_root = mt_fs_root;                                
    mt_entry->pathconf_limits_and_options = &rtems_filesystem_default_pathconf;
 8001cdc:	38 63 b9 40 	ori r3,r3,0xb940                               
      mt_entry->dev = str;                                            
      str += source_size;                                             
    }                                                                 
                                                                      
    memcpy( str, target, target_size );                               
    mt_entry->target = str;                                           
 8001ce0:	59 6c 00 30 	sw (r11+48),r12                                
    str += target_size;                                               
                                                                      
    mt_entry->mounted = true;                                         
 8001ce4:	31 61 00 28 	sb (r11+40),r1                                 
    mt_entry->mt_fs_root = mt_fs_root;                                
    mt_entry->pathconf_limits_and_options = &rtems_filesystem_default_pathconf;
 8001ce8:	59 63 00 2c 	sw (r11+44),r3                                 
    memcpy( str, target, target_size );                               
    mt_entry->target = str;                                           
    str += target_size;                                               
                                                                      
    mt_entry->mounted = true;                                         
    mt_entry->mt_fs_root = mt_fs_root;                                
 8001cec:	59 6f 00 24 	sw (r11+36),r15                                
    mt_entry->pathconf_limits_and_options = &rtems_filesystem_default_pathconf;
                                                                      
    mt_fs_root->location.mt_entry = mt_entry;                         
    mt_fs_root->reference_count = 1;                                  
 8001cf0:	34 01 00 01 	mvi r1,1                                       
 8001cf4:	59 e1 00 18 	sw (r15+24),r1                                 
  void                *starting_address,                              
  size_t               number_nodes,                                  
  size_t               node_size                                      
)                                                                     
{                                                                     
  _Chain_Initialize( the_chain, starting_address, number_nodes, node_size );
 8001cf8:	b9 e0 10 00 	mv r2,r15                                      
 8001cfc:	35 61 00 14 	addi r1,r11,20                                 
 8001d00:	34 03 00 01 	mvi r3,1                                       
 8001d04:	34 04 00 24 	mvi r4,36                                      
                                                                      
    mt_entry->mounted = true;                                         
    mt_entry->mt_fs_root = mt_fs_root;                                
    mt_entry->pathconf_limits_and_options = &rtems_filesystem_default_pathconf;
                                                                      
    mt_fs_root->location.mt_entry = mt_entry;                         
 8001d08:	59 eb 00 14 	sw (r15+20),r11                                
 8001d0c:	f8 00 09 bb 	calli 80043f8 <_Chain_Initialize>              
      );                                                              
                                                                      
      if ( mt_entry != NULL ) {                                       
        mt_entry->writeable = options == RTEMS_FILESYSTEM_READ_WRITE; 
                                                                      
        rv = (*fsmount_me_h)( mt_entry, data );                       
 8001d10:	b9 60 08 00 	mv r1,r11                                      
        filesystemtype,                                               
        &target_length                                                
      );                                                              
                                                                      
      if ( mt_entry != NULL ) {                                       
        mt_entry->writeable = options == RTEMS_FILESYSTEM_READ_WRITE; 
 8001d14:	31 75 00 29 	sb (r11+41),r21                                
                                                                      
        rv = (*fsmount_me_h)( mt_entry, data );                       
 8001d18:	ba e0 10 00 	mv r2,r23                                      
 8001d1c:	da 80 00 00 	call r20                                       
 8001d20:	b8 20 60 00 	mv r12,r1                                      
        if ( rv == 0 ) {                                              
 8001d24:	44 20 00 06 	be r1,r0,8001d3c <mount+0x174>                 
 8001d28:	e0 00 00 61 	bi 8001eac <mount+0x2e4>                       
      mt_fs_root,                                                     
      1,                                                              
      sizeof(*mt_fs_root)                                             
    );                                                                
  } else {                                                            
    free( mt_entry );                                                 
 8001d2c:	fb ff fe 0a 	calli 8001554 <free>                           <== NOT EXECUTED
                                                                      
        if ( rv != 0 ) {                                              
          free( mt_entry );                                           
        }                                                             
      } else {                                                        
        errno = ENOMEM;                                               
 8001d30:	f8 00 26 b7 	calli 800b80c <__errno>                        <== NOT EXECUTED
 8001d34:	34 02 00 0c 	mvi r2,12                                      <== NOT EXECUTED
 8001d38:	e0 00 00 62 	bi 8001ec0 <mount+0x2f8>                       <== NOT EXECUTED
      if ( mt_entry != NULL ) {                                       
        mt_entry->writeable = options == RTEMS_FILESYSTEM_READ_WRITE; 
                                                                      
        rv = (*fsmount_me_h)( mt_entry, data );                       
        if ( rv == 0 ) {                                              
          if ( target != NULL ) {                                     
 8001d3c:	45 c1 00 33 	be r14,r1,8001e08 <mount+0x240>                
  int rv = 0;                                                         
  rtems_filesystem_eval_path_context_t ctx;                           
  int eval_flags = RTEMS_FS_PERMS_RWX                                 
    | RTEMS_FS_FOLLOW_LINK;                                           
  rtems_filesystem_location_info_t *currentloc =                      
    rtems_filesystem_eval_path_start( &ctx, target, eval_flags );     
 8001d40:	37 8c 00 3c 	addi r12,sp,60                                 
{                                                                     
  int rv = 0;                                                         
  rtems_filesystem_eval_path_context_t ctx;                           
  int eval_flags = RTEMS_FS_PERMS_RWX                                 
    | RTEMS_FS_FOLLOW_LINK;                                           
  rtems_filesystem_location_info_t *currentloc =                      
 8001d44:	b9 c0 10 00 	mv r2,r14                                      
 8001d48:	34 03 00 1f 	mvi r3,31                                      
 8001d4c:	b9 80 08 00 	mv r1,r12                                      
 8001d50:	f8 00 03 16 	calli 80029a8 <rtems_filesystem_eval_path_start>
                                                                      
static inline bool rtems_filesystem_location_is_instance_root(        
  const rtems_filesystem_location_info_t *loc                         
)                                                                     
{                                                                     
  const rtems_filesystem_mount_table_entry_t *mt_entry = loc->mt_entry;
 8001d54:	28 22 00 14 	lw r2,(r1+20)                                  
                                                                      
  return (*mt_entry->ops->are_nodes_equal_h)(                         
 8001d58:	28 43 00 0c 	lw r3,(r2+12)                                  
 8001d5c:	28 42 00 24 	lw r2,(r2+36)                                  
 8001d60:	28 63 00 10 	lw r3,(r3+16)                                  
 8001d64:	d8 60 00 00 	call r3                                        
 8001d68:	b8 20 70 00 	mv r14,r1                                      
    rtems_filesystem_eval_path_start( &ctx, target, eval_flags );     
                                                                      
  if ( !rtems_filesystem_location_is_instance_root( currentloc ) ) {  
 8001d6c:	5c 20 00 1f 	bne r1,r0,8001de8 <mount+0x220>                
    rtems_filesystem_location_info_t targetloc;                       
    rtems_filesystem_global_location_t *mt_point_node;                
                                                                      
    rtems_filesystem_eval_path_extract_currentloc( &ctx, &targetloc );
 8001d70:	37 8c 00 74 	addi r12,sp,116                                
static inline void rtems_filesystem_eval_path_extract_currentloc(     
  rtems_filesystem_eval_path_context_t *ctx,                          
  rtems_filesystem_location_info_t *get                               
)                                                                     
{                                                                     
  rtems_filesystem_location_copy_and_detach(                          
 8001d74:	b9 80 08 00 	mv r1,r12                                      
 8001d78:	37 82 00 54 	addi r2,sp,84                                  
 8001d7c:	f8 00 04 3b 	calli 8002e68 <rtems_filesystem_location_copy_and_detach>
    mt_point_node = rtems_filesystem_location_transform_to_global( &targetloc );
 8001d80:	b9 80 08 00 	mv r1,r12                                      
 8001d84:	f8 00 04 d7 	calli 80030e0 <rtems_filesystem_location_transform_to_global>
    mt_entry->mt_point_node = mt_point_node;                          
 8001d88:	59 61 00 20 	sw (r11+32),r1                                 
  if ( !rtems_filesystem_location_is_instance_root( currentloc ) ) {  
    rtems_filesystem_location_info_t targetloc;                       
    rtems_filesystem_global_location_t *mt_point_node;                
                                                                      
    rtems_filesystem_eval_path_extract_currentloc( &ctx, &targetloc );
    mt_point_node = rtems_filesystem_location_transform_to_global( &targetloc );
 8001d8c:	b8 20 68 00 	mv r13,r1                                      
    mt_entry->mt_point_node = mt_point_node;                          
    rv = (*mt_point_node->location.mt_entry->ops->mount_h)( mt_entry );
 8001d90:	28 21 00 14 	lw r1,(r1+20)                                  
 8001d94:	28 21 00 0c 	lw r1,(r1+12)                                  
 8001d98:	28 22 00 30 	lw r2,(r1+48)                                  
 8001d9c:	b9 60 08 00 	mv r1,r11                                      
 8001da0:	d8 40 00 00 	call r2                                        
 8001da4:	b8 20 60 00 	mv r12,r1                                      
    if ( rv == 0 ) {                                                  
 8001da8:	5c 2e 00 0d 	bne r1,r14,8001ddc <mount+0x214>               
      rtems_filesystem_mt_lock();                                     
 8001dac:	fb ff ff 73 	calli 8001b78 <rtems_filesystem_mt_lock>       
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
 8001db0:	78 01 08 01 	mvhi r1,0x801                                  
 8001db4:	38 21 d0 f4 	ori r1,r1,0xd0f4                               
 8001db8:	28 23 00 08 	lw r3,(r1+8)                                   
                                                                      
  the_node->next = tail;                                              
 8001dbc:	78 02 08 01 	mvhi r2,0x801                                  
 8001dc0:	38 42 d0 f8 	ori r2,r2,0xd0f8                               
 8001dc4:	59 62 00 00 	sw (r11+0),r2                                  
  tail->previous = the_node;                                          
 8001dc8:	58 2b 00 08 	sw (r1+8),r11                                  
  old_last->next = the_node;                                          
 8001dcc:	58 6b 00 00 	sw (r3+0),r11                                  
  the_node->previous = old_last;                                      
 8001dd0:	59 63 00 04 	sw (r11+4),r3                                  
      rtems_chain_append_unprotected(                                 
        &rtems_filesystem_mount_table,                                
        &mt_entry->mt_node                                            
      );                                                              
      rtems_filesystem_mt_unlock();                                   
 8001dd4:	fb ff ff 74 	calli 8001ba4 <rtems_filesystem_mt_unlock>     
 8001dd8:	e0 00 00 08 	bi 8001df8 <mount+0x230>                       
    } else {                                                          
      rtems_filesystem_global_location_release( mt_point_node );      
 8001ddc:	b9 a0 08 00 	mv r1,r13                                      
 8001de0:	f8 00 04 5d 	calli 8002f54 <rtems_filesystem_global_location_release>
 8001de4:	e0 00 00 05 	bi 8001df8 <mount+0x230>                       
    }                                                                 
  } else {                                                            
    rtems_filesystem_eval_path_error( &ctx, EBUSY );                  
 8001de8:	b9 80 08 00 	mv r1,r12                                      
 8001dec:	34 02 00 10 	mvi r2,16                                      
 8001df0:	f8 00 02 26 	calli 8002688 <rtems_filesystem_eval_path_error>
    rv = -1;                                                          
 8001df4:	34 0c ff ff 	mvi r12,-1                                     
  }                                                                   
                                                                      
  rtems_filesystem_eval_path_cleanup( &ctx );                         
 8001df8:	37 81 00 3c 	addi r1,sp,60                                  
 8001dfc:	f8 00 03 38 	calli 8002adc <rtems_filesystem_eval_path_cleanup>
            rv = register_subordinate_file_system( mt_entry, target );
          } else {                                                    
            rv = register_root_file_system( mt_entry );               
          }                                                           
                                                                      
          if ( rv != 0 ) {                                            
 8001e00:	45 80 00 32 	be r12,r0,8001ec8 <mount+0x300>                
 8001e04:	e0 00 00 26 	bi 8001e9c <mount+0x2d4>                       
  rtems_filesystem_mount_table_entry_t *mt_entry                      
)                                                                     
{                                                                     
  int rv = 0;                                                         
                                                                      
  rtems_filesystem_mt_lock();                                         
 8001e08:	fb ff ff 5c 	calli 8001b78 <rtems_filesystem_mt_lock>       
    errno = EINVAL;                                                   
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 8001e0c:	78 01 08 01 	mvhi r1,0x801                                  
 8001e10:	38 21 d0 f4 	ori r1,r1,0xd0f4                               
)                                                                     
{                                                                     
  int rv = 0;                                                         
                                                                      
  rtems_filesystem_mt_lock();                                         
  if ( rtems_chain_is_empty( &rtems_filesystem_mount_table ) ) {      
 8001e14:	28 23 00 00 	lw r3,(r1+0)                                   
 8001e18:	78 02 08 01 	mvhi r2,0x801                                  
 8001e1c:	38 42 d0 f8 	ori r2,r2,0xd0f8                               
 8001e20:	5c 62 00 07 	bne r3,r2,8001e3c <mount+0x274>                <== NEVER TAKEN
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
 8001e24:	28 22 00 08 	lw r2,(r1+8)                                   
                                                                      
  the_node->next = tail;                                              
 8001e28:	59 63 00 00 	sw (r11+0),r3                                  
  tail->previous = the_node;                                          
 8001e2c:	58 2b 00 08 	sw (r1+8),r11                                  
  old_last->next = the_node;                                          
 8001e30:	58 4b 00 00 	sw (r2+0),r11                                  
  the_node->previous = old_last;                                      
 8001e34:	59 62 00 04 	sw (r11+4),r2                                  
 8001e38:	e0 00 00 05 	bi 8001e4c <mount+0x284>                       
    rtems_chain_append_unprotected(                                   
      &rtems_filesystem_mount_table,                                  
      &mt_entry->mt_node                                              
    );                                                                
  } else {                                                            
    errno = EINVAL;                                                   
 8001e3c:	f8 00 26 74 	calli 800b80c <__errno>                        <== NOT EXECUTED
 8001e40:	34 02 00 16 	mvi r2,22                                      <== NOT EXECUTED
 8001e44:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
    rv = -1;                                                          
 8001e48:	34 0c ff ff 	mvi r12,-1                                     <== NOT EXECUTED
  }                                                                   
  rtems_filesystem_mt_unlock();                                       
 8001e4c:	fb ff ff 56 	calli 8001ba4 <rtems_filesystem_mt_unlock>     
                                                                      
  if ( rv == 0 ) {                                                    
 8001e50:	5d 80 00 12 	bne r12,r0,8001e98 <mount+0x2d0>               <== NEVER TAKEN
    rtems_filesystem_global_location_t *new_fs_root =                 
      rtems_filesystem_global_location_obtain( &mt_entry->mt_fs_root );
 8001e54:	35 6b 00 24 	addi r11,r11,36                                
    rv = -1;                                                          
  }                                                                   
  rtems_filesystem_mt_unlock();                                       
                                                                      
  if ( rv == 0 ) {                                                    
    rtems_filesystem_global_location_t *new_fs_root =                 
 8001e58:	b9 60 08 00 	mv r1,r11                                      
 8001e5c:	f8 00 04 67 	calli 8002ff8 <rtems_filesystem_global_location_obtain>
 8001e60:	b8 20 70 00 	mv r14,r1                                      
      rtems_filesystem_global_location_obtain( &mt_entry->mt_fs_root );
    rtems_filesystem_global_location_t *new_fs_current =              
 8001e64:	b9 60 08 00 	mv r1,r11                                      
      rtems_filesystem_global_location_obtain( &mt_entry->mt_fs_root );
                                                                      
    rtems_filesystem_global_location_assign(                          
 8001e68:	78 0b 08 01 	mvhi r11,0x801                                 
  rtems_filesystem_mt_unlock();                                       
                                                                      
  if ( rv == 0 ) {                                                    
    rtems_filesystem_global_location_t *new_fs_root =                 
      rtems_filesystem_global_location_obtain( &mt_entry->mt_fs_root );
    rtems_filesystem_global_location_t *new_fs_current =              
 8001e6c:	f8 00 04 63 	calli 8002ff8 <rtems_filesystem_global_location_obtain>
      rtems_filesystem_global_location_obtain( &mt_entry->mt_fs_root );
                                                                      
    rtems_filesystem_global_location_assign(                          
 8001e70:	39 6b d1 90 	ori r11,r11,0xd190                             
  rtems_filesystem_mt_unlock();                                       
                                                                      
  if ( rv == 0 ) {                                                    
    rtems_filesystem_global_location_t *new_fs_root =                 
      rtems_filesystem_global_location_obtain( &mt_entry->mt_fs_root );
    rtems_filesystem_global_location_t *new_fs_current =              
 8001e74:	b8 20 68 00 	mv r13,r1                                      
      rtems_filesystem_global_location_obtain( &mt_entry->mt_fs_root );
                                                                      
    rtems_filesystem_global_location_assign(                          
 8001e78:	29 61 00 00 	lw r1,(r11+0)                                  
 8001e7c:	b9 c0 10 00 	mv r2,r14                                      
 8001e80:	34 21 00 04 	addi r1,r1,4                                   
 8001e84:	f8 00 04 4f 	calli 8002fc0 <rtems_filesystem_global_location_assign>
      &rtems_filesystem_root,                                         
      new_fs_root                                                     
    );                                                                
    rtems_filesystem_global_location_assign(                          
 8001e88:	29 61 00 00 	lw r1,(r11+0)                                  
 8001e8c:	b9 a0 10 00 	mv r2,r13                                      
 8001e90:	f8 00 04 4c 	calli 8002fc0 <rtems_filesystem_global_location_assign>
 8001e94:	e0 00 00 0d 	bi 8001ec8 <mount+0x300>                       
    errno = EINVAL;                                                   
    rv = -1;                                                          
  }                                                                   
  rtems_filesystem_mt_unlock();                                       
                                                                      
  if ( rv == 0 ) {                                                    
 8001e98:	34 0c ff ff 	mvi r12,-1                                     <== NOT EXECUTED
          } else {                                                    
            rv = register_root_file_system( mt_entry );               
          }                                                           
                                                                      
          if ( rv != 0 ) {                                            
            (*mt_entry->ops->fsunmount_me_h)( mt_entry );             
 8001e9c:	29 61 00 0c 	lw r1,(r11+12)                                 
 8001ea0:	28 22 00 3c 	lw r2,(r1+60)                                  
 8001ea4:	b9 60 08 00 	mv r1,r11                                      
 8001ea8:	d8 40 00 00 	call r2                                        
          }                                                           
        }                                                             
                                                                      
        if ( rv != 0 ) {                                              
          free( mt_entry );                                           
 8001eac:	b9 60 08 00 	mv r1,r11                                      
 8001eb0:	fb ff fd a9 	calli 8001554 <free>                           
 8001eb4:	e0 00 00 05 	bi 8001ec8 <mount+0x300>                       
    } else {                                                          
      errno = EINVAL;                                                 
      rv = -1;                                                        
    }                                                                 
  } else {                                                            
    errno = EINVAL;                                                   
 8001eb8:	f8 00 26 55 	calli 800b80c <__errno>                        
 8001ebc:	34 02 00 16 	mvi r2,22                                      
 8001ec0:	58 22 00 00 	sw (r1+0),r2                                   
    rv = -1;                                                          
 8001ec4:	34 0c ff ff 	mvi r12,-1                                     
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 8001ec8:	b9 80 08 00 	mv r1,r12                                      
 8001ecc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001ed0:	2b 8b 00 38 	lw r11,(sp+56)                                 
 8001ed4:	2b 8c 00 34 	lw r12,(sp+52)                                 
 8001ed8:	2b 8d 00 30 	lw r13,(sp+48)                                 
 8001edc:	2b 8e 00 2c 	lw r14,(sp+44)                                 
 8001ee0:	2b 8f 00 28 	lw r15,(sp+40)                                 
 8001ee4:	2b 90 00 24 	lw r16,(sp+36)                                 
 8001ee8:	2b 91 00 20 	lw r17,(sp+32)                                 
 8001eec:	2b 92 00 1c 	lw r18,(sp+28)                                 
 8001ef0:	2b 93 00 18 	lw r19,(sp+24)                                 
 8001ef4:	2b 94 00 14 	lw r20,(sp+20)                                 
 8001ef8:	2b 95 00 10 	lw r21,(sp+16)                                 
 8001efc:	2b 96 00 0c 	lw r22,(sp+12)                                 
 8001f00:	2b 97 00 08 	lw r23,(sp+8)                                  
 8001f04:	37 9c 00 88 	addi sp,sp,136                                 
 8001f08:	c3 a0 00 00 	ret                                            
                                                                      

08006e6c <mount_and_make_target_path>: const char *target, const char *filesystemtype, rtems_filesystem_options_t options, const void *data ) {
 8006e6c:	37 9c ff e8 	addi sp,sp,-24                                 
 8006e70:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8006e74:	5b 8c 00 08 	sw (sp+8),r12                                  
 8006e78:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006e7c:	b8 20 60 00 	mv r12,r1                                      
 8006e80:	b8 40 58 00 	mv r11,r2                                      
  int rv = -1;                                                        
                                                                      
  if (target != NULL) {                                               
 8006e84:	44 40 00 0f 	be r2,r0,8006ec0 <mount_and_make_target_path+0x54>
    rv = rtems_mkdir(target, S_IRWXU | S_IRWXG | S_IRWXO);            
 8006e88:	b8 40 08 00 	mv r1,r2                                       
 8006e8c:	34 02 01 ff 	mvi r2,511                                     
 8006e90:	5b 83 00 18 	sw (sp+24),r3                                  
 8006e94:	5b 84 00 14 	sw (sp+20),r4                                  
 8006e98:	5b 85 00 10 	sw (sp+16),r5                                  
 8006e9c:	f8 00 03 2b 	calli 8007b48 <rtems_mkdir>                    
    if (rv == 0) {                                                    
 8006ea0:	2b 83 00 18 	lw r3,(sp+24)                                  
 8006ea4:	2b 84 00 14 	lw r4,(sp+20)                                  
 8006ea8:	2b 85 00 10 	lw r5,(sp+16)                                  
 8006eac:	5c 20 00 09 	bne r1,r0,8006ed0 <mount_and_make_target_path+0x64><== NEVER TAKEN
      rv = mount(                                                     
 8006eb0:	b9 80 08 00 	mv r1,r12                                      
 8006eb4:	b9 60 10 00 	mv r2,r11                                      
 8006eb8:	f8 00 00 1f 	calli 8006f34 <mount>                          
 8006ebc:	e0 00 00 05 	bi 8006ed0 <mount_and_make_target_path+0x64>   
        options,                                                      
        data                                                          
      );                                                              
    }                                                                 
  } else {                                                            
    errno = EINVAL;                                                   
 8006ec0:	f8 00 62 d5 	calli 801fa14 <__errno>                        
 8006ec4:	34 02 00 16 	mvi r2,22                                      
 8006ec8:	58 22 00 00 	sw (r1+0),r2                                   
  const char *filesystemtype,                                         
  rtems_filesystem_options_t options,                                 
  const void *data                                                    
)                                                                     
{                                                                     
  int rv = -1;                                                        
 8006ecc:	34 01 ff ff 	mvi r1,-1                                      
  } else {                                                            
    errno = EINVAL;                                                   
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 8006ed0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006ed4:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8006ed8:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8006edc:	37 9c 00 18 	addi sp,sp,24                                  
 8006ee0:	c3 a0 00 00 	ret                                            
                                                                      

08014f68 <msdos_creat_node>: msdos_node_type_t type, const char *name, int name_len, mode_t mode, const fat_file_fd_t *link_fd) {
 8014f68:	37 9c ff 24 	addi sp,sp,-220                                
 8014f6c:	5b 8b 00 44 	sw (sp+68),r11                                 
 8014f70:	5b 8c 00 40 	sw (sp+64),r12                                 
 8014f74:	5b 8d 00 3c 	sw (sp+60),r13                                 
 8014f78:	5b 8e 00 38 	sw (sp+56),r14                                 
 8014f7c:	5b 8f 00 34 	sw (sp+52),r15                                 
 8014f80:	5b 90 00 30 	sw (sp+48),r16                                 
 8014f84:	5b 91 00 2c 	sw (sp+44),r17                                 
 8014f88:	5b 92 00 28 	sw (sp+40),r18                                 
 8014f8c:	5b 93 00 24 	sw (sp+36),r19                                 
 8014f90:	5b 94 00 20 	sw (sp+32),r20                                 
 8014f94:	5b 95 00 1c 	sw (sp+28),r21                                 
 8014f98:	5b 96 00 18 	sw (sp+24),r22                                 
 8014f9c:	5b 97 00 14 	sw (sp+20),r23                                 
 8014fa0:	5b 98 00 10 	sw (sp+16),r24                                 
 8014fa4:	5b 99 00 0c 	sw (sp+12),r25                                 
 8014fa8:	5b 9b 00 08 	sw (sp+8),fp                                   
 8014fac:	5b 9d 00 04 	sw (sp+4),ra                                   
 8014fb0:	b8 60 80 00 	mv r16,r3                                      
    int               rc = RC_OK;                                     
    ssize_t           ret = 0;                                        
    msdos_fs_info_t  *fs_info = parent_loc->mt_entry->fs_info;        
 8014fb4:	28 23 00 14 	lw r3,(r1+20)                                  
    uint32_t          sec = 0;                                        
    uint32_t          byte = 0;                                       
                                                                      
    fat_dir_pos_init(&dir_pos);                                       
                                                                      
    memset(short_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);         
 8014fb8:	37 8d 00 a8 	addi r13,sp,168                                
                 const fat_file_fd_t                     *link_fd)    
{                                                                     
    int               rc = RC_OK;                                     
    ssize_t           ret = 0;                                        
    msdos_fs_info_t  *fs_info = parent_loc->mt_entry->fs_info;        
    fat_file_fd_t    *parent_fat_fd = parent_loc->node_access;        
 8014fbc:	28 36 00 08 	lw r22,(r1+8)                                  
                 mode_t                                   mode,       
                 const fat_file_fd_t                     *link_fd)    
{                                                                     
    int               rc = RC_OK;                                     
    ssize_t           ret = 0;                                        
    msdos_fs_info_t  *fs_info = parent_loc->mt_entry->fs_info;        
 8014fc0:	28 73 00 08 	lw r19,(r3+8)                                  
    fat_dir_pos_t *dir_pos                                            
    )                                                                 
{                                                                     
  dir_pos->sname.cln = 0;                                             
  dir_pos->sname.ofs = 0;                                             
  dir_pos->lname.cln = FAT_FILE_SHORT_NAME;                           
 8014fc4:	34 0c ff ff 	mvi r12,-1                                     
    uint32_t          sec = 0;                                        
    uint32_t          byte = 0;                                       
                                                                      
    fat_dir_pos_init(&dir_pos);                                       
                                                                      
    memset(short_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);         
 8014fc8:	34 03 00 20 	mvi r3,32                                      
                 msdos_node_type_t                        type,       
                 const char                              *name,       
                 int                                      name_len,   
                 mode_t                                   mode,       
                 const fat_file_fd_t                     *link_fd)    
{                                                                     
 8014fcc:	b8 20 a0 00 	mv r20,r1                                      
 8014fd0:	b8 40 a8 00 	mv r21,r2                                      
    uint32_t          sec = 0;                                        
    uint32_t          byte = 0;                                       
                                                                      
    fat_dir_pos_init(&dir_pos);                                       
                                                                      
    memset(short_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);         
 8014fd4:	b9 a0 08 00 	mv r1,r13                                      
 8014fd8:	34 02 00 00 	mvi r2,0                                       
                 msdos_node_type_t                        type,       
                 const char                              *name,       
                 int                                      name_len,   
                 mode_t                                   mode,       
                 const fat_file_fd_t                     *link_fd)    
{                                                                     
 8014fdc:	b8 80 70 00 	mv r14,r4                                      
 8014fe0:	b8 c0 88 00 	mv r17,r6                                      
    int               rc = RC_OK;                                     
    ssize_t           ret = 0;                                        
    msdos_fs_info_t  *fs_info = parent_loc->mt_entry->fs_info;        
    fat_file_fd_t    *parent_fat_fd = parent_loc->node_access;        
    fat_file_fd_t    *fat_fd = NULL;                                  
 8014fe4:	5b 80 00 d8 	sw (sp+216),r0                                 
    time_t            time_ret = 0;                                   
    uint16_t          time_val = 0;                                   
 8014fe8:	0f 80 00 de 	sh (sp+222),r0                                 
    uint16_t          date = 0;                                       
 8014fec:	0f 80 00 dc 	sh (sp+220),r0                                 
static inline void                                                    
fat_dir_pos_init(                                                     
    fat_dir_pos_t *dir_pos                                            
    )                                                                 
{                                                                     
  dir_pos->sname.cln = 0;                                             
 8014ff0:	5b 80 00 c8 	sw (sp+200),r0                                 
  dir_pos->sname.ofs = 0;                                             
 8014ff4:	5b 80 00 cc 	sw (sp+204),r0                                 
  dir_pos->lname.cln = FAT_FILE_SHORT_NAME;                           
 8014ff8:	5b 8c 00 d0 	sw (sp+208),r12                                
  dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;                           
 8014ffc:	5b 8c 00 d4 	sw (sp+212),r12                                
    uint32_t          sec = 0;                                        
    uint32_t          byte = 0;                                       
                                                                      
    fat_dir_pos_init(&dir_pos);                                       
                                                                      
    memset(short_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);         
 8015000:	f8 00 16 12 	calli 801a848 <memset>                         
    memset(dot_dotdot, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2);     
 8015004:	34 03 00 40 	mvi r3,64                                      
 8015008:	37 81 00 48 	addi r1,sp,72                                  
 801500c:	34 02 00 00 	mvi r2,0                                       
 8015010:	f8 00 16 0e 	calli 801a848 <memset>                         
                                                                      
    if (name_len > MSDOS_NAME_MAX_LFN_WITH_DOT) {                     
 8015014:	34 03 01 04 	mvi r3,260                                     
 8015018:	4c 6e 00 04 	bge r3,r14,8015028 <msdos_creat_node+0xc0>     <== ALWAYS TAKEN
        rtems_set_errno_and_return_minus_one(ENAMETOOLONG);           
 801501c:	f8 00 12 7c 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 8015020:	34 02 00 5b 	mvi r2,91                                      <== NOT EXECUTED
 8015024:	e0 00 00 0a 	bi 801504c <msdos_creat_node+0xe4>             <== NOT EXECUTED
    }                                                                 
                                                                      
    name_type = msdos_long_to_short (name, name_len,                  
 8015028:	ba 00 08 00 	mv r1,r16                                      
 801502c:	b9 c0 10 00 	mv r2,r14                                      
 8015030:	b9 a0 18 00 	mv r3,r13                                      
 8015034:	34 04 00 0b 	mvi r4,11                                      
 8015038:	f8 00 02 14 	calli 8015888 <msdos_long_to_short>            
 801503c:	b8 20 78 00 	mv r15,r1                                      
                                     MSDOS_DIR_NAME(short_node),      
                                     MSDOS_NAME_MAX);                 
    if (name_type == MSDOS_NAME_INVALID) {                            
 8015040:	5c 20 00 06 	bne r1,r0,8015058 <msdos_creat_node+0xf0>      <== ALWAYS TAKEN
        rtems_set_errno_and_return_minus_one(EINVAL);                 
 8015044:	f8 00 12 72 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 8015048:	34 02 00 16 	mvi r2,22                                      <== NOT EXECUTED
 801504c:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 8015050:	34 0b ff ff 	mvi r11,-1                                     <== NOT EXECUTED
 8015054:	e0 00 01 6d 	bi 8015608 <msdos_creat_node+0x6a0>            <== NOT EXECUTED
                                                                      
    /* fill reserved field */                                         
    *MSDOS_DIR_NT_RES(short_node) = MSDOS_RES_NT_VALUE;               
                                                                      
    /* set up last write date and time */                             
    time_ret = time(NULL);                                            
 8015058:	34 01 00 00 	mvi r1,0                                       
    if (name_type == MSDOS_NAME_INVALID) {                            
        rtems_set_errno_and_return_minus_one(EINVAL);                 
    }                                                                 
                                                                      
    /* fill reserved field */                                         
    *MSDOS_DIR_NT_RES(short_node) = MSDOS_RES_NT_VALUE;               
 801505c:	33 80 00 b4 	sb (sp+180),r0                                 
                                                                      
    /* set up last write date and time */                             
    time_ret = time(NULL);                                            
 8015060:	f8 00 24 1e 	calli 801e0d8 <time>                           
    if ( time_ret == -1 )                                             
        return -1;                                                    
 8015064:	34 0b ff ff 	mvi r11,-1                                     
    /* fill reserved field */                                         
    *MSDOS_DIR_NT_RES(short_node) = MSDOS_RES_NT_VALUE;               
                                                                      
    /* set up last write date and time */                             
    time_ret = time(NULL);                                            
    if ( time_ret == -1 )                                             
 8015068:	44 2c 01 68 	be r1,r12,8015608 <msdos_creat_node+0x6a0>     <== NEVER TAKEN
        return -1;                                                    
                                                                      
    msdos_date_unix2dos(time_ret, &date, &time_val);                  
 801506c:	37 83 00 de 	addi r3,sp,222                                 
 8015070:	37 82 00 dc 	addi r2,sp,220                                 
 8015074:	f8 00 0e 20 	calli 80188f4 <msdos_date_unix2dos>            
    *MSDOS_DIR_CRT_TIME(short_node) = CT_LE_W(time_val);              
 8015078:	2f 8c 00 de 	lhu r12,(sp+222)                               
 *  @param[in] value is the value to be swapped                       
 *  @return the value after being endian swapped                      
 */                                                                   
static inline uint16_t CPU_swap_u16(uint16_t v)                       
{                                                                     
    return v << 8 | v >> 8;                                           
 801507c:	34 02 00 08 	mvi r2,8                                       
 8015080:	b9 80 08 00 	mv r1,r12                                      
 8015084:	fb ff b0 59 	calli 80011e8 <__ashlsi3>                      
 8015088:	b8 20 58 00 	mv r11,r1                                      
 801508c:	34 02 00 08 	mvi r2,8                                       
 8015090:	b9 80 08 00 	mv r1,r12                                      
 8015094:	f8 00 5c 5f 	calli 802c210 <__lshrsi3>                      
    *MSDOS_DIR_CRT_DATE(short_node) = CT_LE_W(date);                  
 8015098:	2f 8c 00 dc 	lhu r12,(sp+220)                               
 801509c:	b9 61 58 00 	or r11,r11,r1                                  
 80150a0:	21 6b ff ff 	andi r11,r11,0xffff                            
 80150a4:	34 02 00 08 	mvi r2,8                                       
 80150a8:	b9 80 08 00 	mv r1,r12                                      
    time_ret = time(NULL);                                            
    if ( time_ret == -1 )                                             
        return -1;                                                    
                                                                      
    msdos_date_unix2dos(time_ret, &date, &time_val);                  
    *MSDOS_DIR_CRT_TIME(short_node) = CT_LE_W(time_val);              
 80150ac:	0f 8b 00 b6 	sh (sp+182),r11                                
 80150b0:	fb ff b0 4e 	calli 80011e8 <__ashlsi3>                      
 80150b4:	b8 20 90 00 	mv r18,r1                                      
 80150b8:	34 02 00 08 	mvi r2,8                                       
 80150bc:	b9 80 08 00 	mv r1,r12                                      
 80150c0:	f8 00 5c 54 	calli 802c210 <__lshrsi3>                      
 80150c4:	ba 41 20 00 	or r4,r18,r1                                   
 80150c8:	20 84 ff ff 	andi r4,r4,0xffff                              
    *MSDOS_DIR_CRT_DATE(short_node) = CT_LE_W(date);                  
 80150cc:	0f 84 00 b8 	sh (sp+184),r4                                 
    *MSDOS_DIR_WRITE_TIME(short_node) = CT_LE_W(time_val);            
 80150d0:	0d ab 00 16 	sh (r13+22),r11                                
    *MSDOS_DIR_WRITE_DATE(short_node) = CT_LE_W(date);                
 80150d4:	0d a4 00 18 	sh (r13+24),r4                                 
    *MSDOS_DIR_LAST_ACCESS_DATE(short_node) = CT_LE_W(date);          
 80150d8:	0d a4 00 12 	sh (r13+18),r4                                 
                                                                      
    /* initialize directory/file size */                              
    *MSDOS_DIR_FILE_SIZE(short_node) = MSDOS_INIT_DIR_SIZE;           
 80150dc:	5b 80 00 c4 	sw (sp+196),r0                                 
                                                                      
    if (type == MSDOS_DIRECTORY) {                                    
 80150e0:	5e a0 00 04 	bne r21,r0,80150f0 <msdos_creat_node+0x188>    
      *MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_DIRECTORY;            
 80150e4:	43 83 00 b3 	lbu r3,(sp+179)                                
 80150e8:	38 63 00 10 	ori r3,r3,0x10                                 
 80150ec:	e0 00 00 2e 	bi 80151a4 <msdos_creat_node+0x23c>            
    }                                                                 
    else if (type == MSDOS_HARD_LINK) {                               
 80150f0:	34 03 00 02 	mvi r3,2                                       
 80150f4:	5e a3 00 2a 	bne r21,r3,801519c <msdos_creat_node+0x234>    <== ALWAYS TAKEN
       * node to the newly created                                    
       */                                                             
      /*                                                              
       * read the original directory entry                            
       */                                                             
      sec = fat_cluster_num_to_sector_num(&fs_info->fat,              
 80150f8:	2a 27 00 20 	lw r7,(r17+32)                                 <== NOT EXECUTED
fat_cluster_num_to_sector_num(                                        
    const fat_fs_info_t *fs_info,                                     
    uint32_t             cln                                          
    )                                                                 
{                                                                     
    if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
 80150fc:	5c e0 00 06 	bne r7,r0,8015114 <msdos_creat_node+0x1ac>     <== NOT EXECUTED
 8015100:	42 63 00 0e 	lbu r3,(r19+14)                                <== NOT EXECUTED
 8015104:	20 63 00 03 	andi r3,r3,0x3                                 <== NOT EXECUTED
 8015108:	44 67 00 03 	be r3,r7,8015114 <msdos_creat_node+0x1ac>      <== NOT EXECUTED
        return fs_info->vol.rdir_loc;                                 
 801510c:	2a 6c 00 20 	lw r12,(r19+32)                                <== NOT EXECUTED
 8015110:	e0 00 00 06 	bi 8015128 <msdos_creat_node+0x1c0>            <== NOT EXECUTED
                                                                      
    return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +        
 8015114:	42 62 00 05 	lbu r2,(r19+5)                                 <== NOT EXECUTED
 8015118:	34 e1 ff fe 	addi r1,r7,-2                                  <== NOT EXECUTED
 801511c:	fb ff b0 33 	calli 80011e8 <__ashlsi3>                      <== NOT EXECUTED
 8015120:	2a 6c 00 34 	lw r12,(r19+52)                                <== NOT EXECUTED
 8015124:	b4 2c 60 00 	add r12,r1,r12                                 <== NOT EXECUTED
                                          link_fd->dir_pos.sname.cln);
      sec += (link_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
 8015128:	2a 2b 00 24 	lw r11,(r17+36)                                <== NOT EXECUTED
 801512c:	42 62 00 02 	lbu r2,(r19+2)                                 <== NOT EXECUTED
 8015130:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8015134:	f8 00 5c 37 	calli 802c210 <__lshrsi3>                      <== NOT EXECUTED
      byte = (link_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
 8015138:	2e 63 00 00 	lhu r3,(r19+0)                                 <== NOT EXECUTED
      /*                                                              
       * read the original directory entry                            
       */                                                             
      sec = fat_cluster_num_to_sector_num(&fs_info->fat,              
                                          link_fd->dir_pos.sname.cln);
      sec += (link_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
 801513c:	b5 81 10 00 	add r2,r12,r1                                  <== NOT EXECUTED
      byte = (link_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
                                                                      
      ret = _fat_block_read(&fs_info->fat,                            
                            sec, byte, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE,
                            link_node);                               
 8015140:	37 8c 00 88 	addi r12,sp,136                                <== NOT EXECUTED
       * read the original directory entry                            
       */                                                             
      sec = fat_cluster_num_to_sector_num(&fs_info->fat,              
                                          link_fd->dir_pos.sname.cln);
      sec += (link_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
      byte = (link_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
 8015144:	34 63 ff ff 	addi r3,r3,-1                                  <== NOT EXECUTED
                                                                      
      ret = _fat_block_read(&fs_info->fat,                            
 8015148:	a0 6b 18 00 	and r3,r3,r11                                  <== NOT EXECUTED
 801514c:	ba 60 08 00 	mv r1,r19                                      <== NOT EXECUTED
 8015150:	34 04 00 20 	mvi r4,32                                      <== NOT EXECUTED
 8015154:	b9 80 28 00 	mv r5,r12                                      <== NOT EXECUTED
 8015158:	fb ff eb d5 	calli 80100ac <_fat_block_read>                <== NOT EXECUTED
                            sec, byte, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE,
                            link_node);                               
      if (ret < 0) {                                                  
          return -1;                                                  
 801515c:	34 0b ff ff 	mvi r11,-1                                     <== NOT EXECUTED
      byte = (link_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
                                                                      
      ret = _fat_block_read(&fs_info->fat,                            
                            sec, byte, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE,
                            link_node);                               
      if (ret < 0) {                                                  
 8015160:	48 01 01 2a 	bg r0,r1,8015608 <msdos_creat_node+0x6a0>      <== NOT EXECUTED
      }                                                               
      /*                                                              
       * copy various attributes                                      
       */                                                             
      *MSDOS_DIR_ATTR(short_node)          =*MSDOS_DIR_ATTR(link_node);
      *MSDOS_DIR_CRT_TIME_TENTH(short_node)=*MSDOS_DIR_CRT_TIME_TENTH(link_node);
 8015164:	43 83 00 95 	lbu r3,(sp+149)                                <== NOT EXECUTED
 8015168:	33 83 00 b5 	sb (sp+181),r3                                 <== NOT EXECUTED
      *MSDOS_DIR_CRT_TIME(short_node)      =*MSDOS_DIR_CRT_TIME(link_node);
 801516c:	2d 83 00 0e 	lhu r3,(r12+14)                                <== NOT EXECUTED
 8015170:	0f 83 00 b6 	sh (sp+182),r3                                 <== NOT EXECUTED
      *MSDOS_DIR_CRT_DATE(short_node)      =*MSDOS_DIR_CRT_DATE(link_node);
 8015174:	2d 83 00 10 	lhu r3,(r12+16)                                <== NOT EXECUTED
 8015178:	0f 83 00 b8 	sh (sp+184),r3                                 <== NOT EXECUTED
                                                                      
      /*                                                              
       * copy/set "file size", "first cluster"                        
       */                                                             
      *MSDOS_DIR_FILE_SIZE(short_node)     =*MSDOS_DIR_FILE_SIZE(link_node);
 801517c:	29 83 00 1c 	lw r3,(r12+28)                                 <== NOT EXECUTED
 8015180:	5b 83 00 c4 	sw (sp+196),r3                                 <== NOT EXECUTED
                                                                      
      *MSDOS_DIR_FIRST_CLUSTER_LOW(short_node) =                      
 8015184:	2d 83 00 1a 	lhu r3,(r12+26)                                <== NOT EXECUTED
 8015188:	0d a3 00 1a 	sh (r13+26),r3                                 <== NOT EXECUTED
           *MSDOS_DIR_FIRST_CLUSTER_LOW(link_node);                   
      *MSDOS_DIR_FIRST_CLUSTER_HI(short_node) =                       
 801518c:	2d 83 00 14 	lhu r3,(r12+20)                                <== NOT EXECUTED
 8015190:	0d a3 00 14 	sh (r13+20),r3                                 <== NOT EXECUTED
           *MSDOS_DIR_FIRST_CLUSTER_HI(link_node);                    
      /*                                                              
       * set "archive bit" due to changes                             
       */                                                             
      *MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_ARCHIVE;              
 8015194:	43 83 00 93 	lbu r3,(sp+147)                                <== NOT EXECUTED
 8015198:	e0 00 00 02 	bi 80151a0 <msdos_creat_node+0x238>            <== NOT EXECUTED
    }                                                                 
    else { /* regular file... */                                      
        *MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_ARCHIVE;            
 801519c:	43 83 00 b3 	lbu r3,(sp+179)                                
 80151a0:	38 63 00 20 	ori r3,r3,0x20                                 
                                                                      
    /*                                                                
     * find free space in the parent directory and write new initialized
     * FAT 32 Bytes Directory Entry Structure to the disk             
     */                                                               
    rc = msdos_get_name_node(parent_loc, true, name, name_len,        
 80151a4:	37 8c 00 c8 	addi r12,sp,200                                
       * set "archive bit" due to changes                             
       */                                                             
      *MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_ARCHIVE;              
    }                                                                 
    else { /* regular file... */                                      
        *MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_ARCHIVE;            
 80151a8:	33 83 00 b3 	sb (sp+179),r3                                 
                                                                      
    /*                                                                
     * find free space in the parent directory and write new initialized
     * FAT 32 Bytes Directory Entry Structure to the disk             
     */                                                               
    rc = msdos_get_name_node(parent_loc, true, name, name_len,        
 80151ac:	ba 80 08 00 	mv r1,r20                                      
 80151b0:	34 02 00 01 	mvi r2,1                                       
 80151b4:	ba 00 18 00 	mv r3,r16                                      
 80151b8:	b9 c0 20 00 	mv r4,r14                                      
 80151bc:	b9 e0 28 00 	mv r5,r15                                      
 80151c0:	b9 80 30 00 	mv r6,r12                                      
 80151c4:	37 87 00 a8 	addi r7,sp,168                                 
 80151c8:	f8 00 08 61 	calli 801734c <msdos_get_name_node>            
 80151cc:	b8 20 58 00 	mv r11,r1                                      
                             name_type, &dir_pos, short_node);        
    if ( rc != RC_OK )                                                
 80151d0:	5c 20 01 0e 	bne r1,r0,8015608 <msdos_creat_node+0x6a0>     
                                                                      
    /*                                                                
     * if we create a new file we are done, if directory there are more steps
     * to do                                                          
     */                                                               
    if (type == MSDOS_DIRECTORY)                                      
 80151d4:	5e a1 01 0d 	bne r21,r1,8015608 <msdos_creat_node+0x6a0>    
    {                                                                 
        /* open new directory as fat-file */                          
        rc = fat_file_open(&fs_info->fat, &dir_pos, &fat_fd);         
 80151d8:	ba 60 08 00 	mv r1,r19                                      
 80151dc:	b9 80 10 00 	mv r2,r12                                      
 80151e0:	37 83 00 d8 	addi r3,sp,216                                 
 80151e4:	fb ff e7 aa 	calli 800f08c <fat_file_open>                  
 80151e8:	b8 20 58 00 	mv r11,r1                                      
        if (rc != RC_OK)                                              
 80151ec:	5c 35 01 03 	bne r1,r21,80155f8 <msdos_creat_node+0x690>    <== NEVER TAKEN
                                                                      
        /*                                                            
         * we opened fat-file for node we just created, so initialize fat-file
         * descritor                                                  
         */                                                           
        fat_fd->fat_file_size = 0;                                    
 80151f0:	2b 90 00 d8 	lw r16,(sp+216)                                
        fat_fd->fat_file_type = FAT_DIRECTORY;                        
        fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                    
 80151f4:	78 03 00 20 	mvhi r3,0x20                                   
                                                                      
        /*                                                            
         * dot and dotdot entries are identical to new node except the
         * names                                                      
         */                                                           
        memcpy(DOT_NODE_P(dot_dotdot), short_node,                    
 80151f8:	37 85 00 48 	addi r5,sp,72                                  
                                                                      
        /*                                                            
         * we opened fat-file for node we just created, so initialize fat-file
         * descritor                                                  
         */                                                           
        fat_fd->fat_file_size = 0;                                    
 80151fc:	5a 00 00 18 	sw (r16+24),r0                                 
        fat_fd->fat_file_type = FAT_DIRECTORY;                        
 8015200:	5a 00 00 10 	sw (r16+16),r0                                 
        fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                    
 8015204:	5a 03 00 14 	sw (r16+20),r3                                 
                                                                      
        /*                                                            
         * dot and dotdot entries are identical to new node except the
         * names                                                      
         */                                                           
        memcpy(DOT_NODE_P(dot_dotdot), short_node,                    
 8015208:	43 82 00 a8 	lbu r2,(sp+168)                                
 801520c:	43 84 00 a9 	lbu r4,(sp+169)                                
 8015210:	43 87 00 aa 	lbu r7,(sp+170)                                
 8015214:	43 89 00 ab 	lbu r9,(sp+171)                                
 8015218:	43 8b 00 ac 	lbu r11,(sp+172)                               
 801521c:	43 8d 00 ad 	lbu r13,(sp+173)                               
 8015220:	43 8f 00 ae 	lbu r15,(sp+174)                               
 8015224:	43 92 00 af 	lbu r18,(sp+175)                               
 8015228:	43 98 00 b0 	lbu r24,(sp+176)                               
 801522c:	43 9b 00 b1 	lbu fp,(sp+177)                                
 8015230:	33 82 00 48 	sb (sp+72),r2                                  
 8015234:	43 8e 00 c1 	lbu r14,(sp+193)                               
 8015238:	43 8c 00 c2 	lbu r12,(sp+194)                               
 801523c:	43 8a 00 c3 	lbu r10,(sp+195)                               
 8015240:	43 88 00 c4 	lbu r8,(sp+196)                                
 8015244:	43 86 00 c5 	lbu r6,(sp+197)                                
 8015248:	43 83 00 c6 	lbu r3,(sp+198)                                
 801524c:	43 99 00 be 	lbu r25,(sp+190)                               
 8015250:	43 97 00 bf 	lbu r23,(sp+191)                               
 8015254:	43 91 00 c0 	lbu r17,(sp+192)                               
 8015258:	43 81 00 c7 	lbu r1,(sp+199)                                
 801525c:	30 a4 00 01 	sb (r5+1),r4                                   
 8015260:	30 a7 00 02 	sb (r5+2),r7                                   
 8015264:	30 a9 00 03 	sb (r5+3),r9                                   
 8015268:	30 ab 00 04 	sb (r5+4),r11                                  
 801526c:	30 ad 00 05 	sb (r5+5),r13                                  
 8015270:	30 af 00 06 	sb (r5+6),r15                                  
 8015274:	30 b2 00 07 	sb (r5+7),r18                                  
 8015278:	30 b8 00 08 	sb (r5+8),r24                                  
 801527c:	30 bb 00 09 	sb (r5+9),fp                                   
 8015280:	43 9d 00 b2 	lbu ra,(sp+178)                                
 8015284:	30 bd 00 0a 	sb (r5+10),ra                                  
 8015288:	43 9d 00 b3 	lbu ra,(sp+179)                                
 801528c:	30 bd 00 0b 	sb (r5+11),ra                                  
 8015290:	43 9d 00 b4 	lbu ra,(sp+180)                                
 8015294:	30 bd 00 0c 	sb (r5+12),ra                                  
 8015298:	43 9d 00 b5 	lbu ra,(sp+181)                                
 801529c:	30 bd 00 0d 	sb (r5+13),ra                                  
 80152a0:	43 9d 00 b6 	lbu ra,(sp+182)                                
 80152a4:	30 bd 00 0e 	sb (r5+14),ra                                  
 80152a8:	43 9d 00 b7 	lbu ra,(sp+183)                                
 80152ac:	30 bd 00 0f 	sb (r5+15),ra                                  
 80152b0:	43 9d 00 b8 	lbu ra,(sp+184)                                
 80152b4:	30 bd 00 10 	sb (r5+16),ra                                  
 80152b8:	43 9d 00 b9 	lbu ra,(sp+185)                                
 80152bc:	30 bd 00 11 	sb (r5+17),ra                                  
 80152c0:	43 9d 00 ba 	lbu ra,(sp+186)                                
 80152c4:	30 bd 00 12 	sb (r5+18),ra                                  
 80152c8:	43 9d 00 bb 	lbu ra,(sp+187)                                
 80152cc:	30 bd 00 13 	sb (r5+19),ra                                  
 80152d0:	43 9d 00 bc 	lbu ra,(sp+188)                                
 80152d4:	30 bd 00 14 	sb (r5+20),ra                                  
 80152d8:	43 9d 00 bd 	lbu ra,(sp+189)                                
 80152dc:	30 ae 00 19 	sb (r5+25),r14                                 
 80152e0:	30 ac 00 1a 	sb (r5+26),r12                                 
 80152e4:	30 bd 00 15 	sb (r5+21),ra                                  
 80152e8:	30 aa 00 1b 	sb (r5+27),r10                                 
 80152ec:	30 a8 00 1c 	sb (r5+28),r8                                  
 80152f0:	30 a6 00 1d 	sb (r5+29),r6                                  
 80152f4:	30 a3 00 1e 	sb (r5+30),r3                                  
 80152f8:	30 b9 00 16 	sb (r5+22),r25                                 
 80152fc:	30 b7 00 17 	sb (r5+23),r23                                 
 8015300:	30 b1 00 18 	sb (r5+24),r17                                 
 8015304:	30 a1 00 1f 	sb (r5+31),r1                                  
               MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);                    
        memcpy(DOTDOT_NODE_P(dot_dotdot), short_node,                 
 8015308:	30 a4 00 21 	sb (r5+33),r4                                  
 801530c:	30 a7 00 22 	sb (r5+34),r7                                  
 8015310:	30 a9 00 23 	sb (r5+35),r9                                  
 8015314:	30 ab 00 24 	sb (r5+36),r11                                 
 8015318:	30 ad 00 25 	sb (r5+37),r13                                 
 801531c:	30 af 00 26 	sb (r5+38),r15                                 
 8015320:	30 a2 00 20 	sb (r5+32),r2                                  
 8015324:	30 b2 00 27 	sb (r5+39),r18                                 
 8015328:	30 b8 00 28 	sb (r5+40),r24                                 
 801532c:	30 bb 00 29 	sb (r5+41),fp                                  
 8015330:	43 82 00 b2 	lbu r2,(sp+178)                                
 8015334:	30 a2 00 2a 	sb (r5+42),r2                                  
 8015338:	43 9d 00 b3 	lbu ra,(sp+179)                                
 801533c:	30 bd 00 2b 	sb (r5+43),ra                                  
 8015340:	43 82 00 b4 	lbu r2,(sp+180)                                
 8015344:	30 a2 00 2c 	sb (r5+44),r2                                  
 8015348:	43 9d 00 b5 	lbu ra,(sp+181)                                
 801534c:	30 bd 00 2d 	sb (r5+45),ra                                  
 8015350:	43 82 00 b6 	lbu r2,(sp+182)                                
 8015354:	30 a2 00 2e 	sb (r5+46),r2                                  
 8015358:	43 9d 00 b7 	lbu ra,(sp+183)                                
 801535c:	30 bd 00 2f 	sb (r5+47),ra                                  
 8015360:	43 82 00 b8 	lbu r2,(sp+184)                                
 8015364:	30 a2 00 30 	sb (r5+48),r2                                  
 8015368:	43 9d 00 b9 	lbu ra,(sp+185)                                
 801536c:	30 bd 00 31 	sb (r5+49),ra                                  
 8015370:	43 82 00 ba 	lbu r2,(sp+186)                                
 8015374:	30 a2 00 32 	sb (r5+50),r2                                  
 8015378:	43 9d 00 bb 	lbu ra,(sp+187)                                
 801537c:	30 bd 00 33 	sb (r5+51),ra                                  
 8015380:	43 82 00 bc 	lbu r2,(sp+188)                                
 8015384:	30 a2 00 34 	sb (r5+52),r2                                  
 8015388:	43 9d 00 bd 	lbu ra,(sp+189)                                
 801538c:	30 bd 00 35 	sb (r5+53),ra                                  
 8015390:	30 a3 00 3e 	sb (r5+62),r3                                  
               MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);                    
        memcpy(MSDOS_DIR_NAME(DOT_NODE_P(dot_dotdot)), MSDOS_DOT_NAME,
 8015394:	78 03 08 02 	mvhi r3,0x802                                  
 8015398:	38 63 d8 0c 	ori r3,r3,0xd80c                               
 801539c:	28 63 00 00 	lw r3,(r3+0)                                   
         * dot and dotdot entries are identical to new node except the
         * names                                                      
         */                                                           
        memcpy(DOT_NODE_P(dot_dotdot), short_node,                    
               MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);                    
        memcpy(DOTDOT_NODE_P(dot_dotdot), short_node,                 
 80153a0:	30 b9 00 36 	sb (r5+54),r25                                 
 80153a4:	30 b7 00 37 	sb (r5+55),r23                                 
 80153a8:	30 b1 00 38 	sb (r5+56),r17                                 
 80153ac:	30 ae 00 39 	sb (r5+57),r14                                 
 80153b0:	30 ac 00 3a 	sb (r5+58),r12                                 
 80153b4:	30 aa 00 3b 	sb (r5+59),r10                                 
 80153b8:	30 a8 00 3c 	sb (r5+60),r8                                  
 80153bc:	30 a6 00 3d 	sb (r5+61),r6                                  
 80153c0:	30 a1 00 3f 	sb (r5+63),r1                                  
               MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);                    
        memcpy(MSDOS_DIR_NAME(DOT_NODE_P(dot_dotdot)), MSDOS_DOT_NAME,
 80153c4:	40 6e 00 00 	lbu r14,(r3+0)                                 
 80153c8:	40 6d 00 01 	lbu r13,(r3+1)                                 
 80153cc:	40 6c 00 02 	lbu r12,(r3+2)                                 
 80153d0:	40 6b 00 03 	lbu r11,(r3+3)                                 
 80153d4:	40 6a 00 04 	lbu r10,(r3+4)                                 
 80153d8:	40 69 00 05 	lbu r9,(r3+5)                                  
 80153dc:	40 68 00 06 	lbu r8,(r3+6)                                  
 80153e0:	40 67 00 07 	lbu r7,(r3+7)                                  
 80153e4:	40 66 00 08 	lbu r6,(r3+8)                                  
 80153e8:	40 64 00 09 	lbu r4,(r3+9)                                  
 80153ec:	40 63 00 0a 	lbu r3,(r3+10)                                 
 80153f0:	33 8e 00 48 	sb (sp+72),r14                                 
 80153f4:	30 a4 00 09 	sb (r5+9),r4                                   
 80153f8:	30 a3 00 0a 	sb (r5+10),r3                                  
               MSDOS_NAME_MAX);                                       
        memcpy(MSDOS_DIR_NAME(DOTDOT_NODE_P(dot_dotdot)), MSDOS_DOTDOT_NAME,
 80153fc:	78 03 08 02 	mvhi r3,0x802                                  
 8015400:	38 63 d8 10 	ori r3,r3,0xd810                               
 8015404:	28 63 00 00 	lw r3,(r3+0)                                   
         */                                                           
        memcpy(DOT_NODE_P(dot_dotdot), short_node,                    
               MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);                    
        memcpy(DOTDOT_NODE_P(dot_dotdot), short_node,                 
               MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);                    
        memcpy(MSDOS_DIR_NAME(DOT_NODE_P(dot_dotdot)), MSDOS_DOT_NAME,
 8015408:	30 ad 00 01 	sb (r5+1),r13                                  
 801540c:	30 ac 00 02 	sb (r5+2),r12                                  
 8015410:	30 ab 00 03 	sb (r5+3),r11                                  
 8015414:	30 aa 00 04 	sb (r5+4),r10                                  
 8015418:	30 a9 00 05 	sb (r5+5),r9                                   
 801541c:	30 a8 00 06 	sb (r5+6),r8                                   
 8015420:	30 a7 00 07 	sb (r5+7),r7                                   
 8015424:	30 a6 00 08 	sb (r5+8),r6                                   
               MSDOS_NAME_MAX);                                       
        memcpy(MSDOS_DIR_NAME(DOTDOT_NODE_P(dot_dotdot)), MSDOS_DOTDOT_NAME,
 8015428:	40 6e 00 01 	lbu r14,(r3+1)                                 
 801542c:	40 6d 00 02 	lbu r13,(r3+2)                                 
 8015430:	40 6c 00 03 	lbu r12,(r3+3)                                 
 8015434:	40 6b 00 04 	lbu r11,(r3+4)                                 
 8015438:	40 6a 00 05 	lbu r10,(r3+5)                                 
 801543c:	40 69 00 06 	lbu r9,(r3+6)                                  
 8015440:	40 68 00 07 	lbu r8,(r3+7)                                  
 8015444:	40 67 00 08 	lbu r7,(r3+8)                                  
 8015448:	40 66 00 09 	lbu r6,(r3+9)                                  
 801544c:	40 6f 00 00 	lbu r15,(r3+0)                                 
 8015450:	40 63 00 0a 	lbu r3,(r3+10)                                 
 8015454:	37 84 00 68 	addi r4,sp,104                                 
 8015458:	33 8f 00 68 	sb (sp+104),r15                                
 801545c:	30 83 00 0a 	sb (r4+10),r3                                  
 8015460:	30 8e 00 01 	sb (r4+1),r14                                  
 8015464:	30 8d 00 02 	sb (r4+2),r13                                  
 8015468:	30 8c 00 03 	sb (r4+3),r12                                  
 801546c:	30 8b 00 04 	sb (r4+4),r11                                  
 8015470:	30 8a 00 05 	sb (r4+5),r10                                  
 8015474:	30 89 00 06 	sb (r4+6),r9                                   
 8015478:	30 88 00 07 	sb (r4+7),r8                                   
 801547c:	30 87 00 08 	sb (r4+8),r7                                   
 8015480:	30 86 00 09 	sb (r4+9),r6                                   
        /*                                                            
         * here we can ommit FAT32 condition because for all FAT types dirs
         * right under root dir should contain 0 in dotdot entry but for
         * FAT12/16 parent_fat_fd->cluster_num always contains such value
         */                                                           
        if ((FAT_FD_OF_ROOT_DIR(parent_fat_fd)) &&                    
 8015484:	2a c4 00 20 	lw r4,(r22+32)                                 
 8015488:	34 03 00 01 	mvi r3,1                                       
 801548c:	5c 83 00 09 	bne r4,r3,80154b0 <msdos_creat_node+0x548>     
 8015490:	2a c3 00 24 	lw r3,(r22+36)                                 
 8015494:	5c 75 00 07 	bne r3,r21,80154b0 <msdos_creat_node+0x548>    <== NEVER TAKEN
            (fs_info->fat.vol.type & FAT_FAT32))                      
 8015498:	42 63 00 0e 	lbu r3,(r19+14)                                
 801549c:	20 63 00 04 	andi r3,r3,0x4                                 
        /*                                                            
         * here we can ommit FAT32 condition because for all FAT types dirs
         * right under root dir should contain 0 in dotdot entry but for
         * FAT12/16 parent_fat_fd->cluster_num always contains such value
         */                                                           
        if ((FAT_FD_OF_ROOT_DIR(parent_fat_fd)) &&                    
 80154a0:	44 75 00 04 	be r3,r21,80154b0 <msdos_creat_node+0x548>     <== ALWAYS TAKEN
            (fs_info->fat.vol.type & FAT_FAT32))                      
        {                                                             
            *MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
 80154a4:	0c a0 00 3a 	sh (r5+58),r0                                  <== NOT EXECUTED
            *MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
 80154a8:	0c a0 00 34 	sh (r5+52),r0                                  <== NOT EXECUTED
 80154ac:	e0 00 00 1a 	bi 8015514 <msdos_creat_node+0x5ac>            <== NOT EXECUTED
        }                                                             
        else                                                          
        {                                                             
            *MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) = 
                CT_LE_W((uint16_t  )((parent_fat_fd->cln) & 0x0000FFFF));
 80154b0:	2a cc 00 1c 	lw r12,(r22+28)                                
 80154b4:	34 02 00 08 	mvi r2,8                                       
            *MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
            *MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
        }                                                             
        else                                                          
        {                                                             
            *MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) = 
 80154b8:	37 8b 00 48 	addi r11,sp,72                                 
                CT_LE_W((uint16_t  )((parent_fat_fd->cln) & 0x0000FFFF));
 80154bc:	21 8d ff ff 	andi r13,r12,0xffff                            
 80154c0:	b9 a0 08 00 	mv r1,r13                                      
 80154c4:	fb ff af 49 	calli 80011e8 <__ashlsi3>                      
 80154c8:	b8 20 70 00 	mv r14,r1                                      
 80154cc:	34 02 00 08 	mvi r2,8                                       
 80154d0:	b9 a0 08 00 	mv r1,r13                                      
 80154d4:	f8 00 5b 4f 	calli 802c210 <__lshrsi3>                      
 80154d8:	b9 c1 18 00 	or r3,r14,r1                                   
            *MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
            *MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
        }                                                             
        else                                                          
        {                                                             
            *MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) = 
 80154dc:	0d 63 00 3a 	sh (r11+58),r3                                 
                CT_LE_W((uint16_t  )((parent_fat_fd->cln) & 0x0000FFFF));
            *MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) =  
                CT_LE_W((uint16_t  )(((parent_fat_fd->cln) & 0xFFFF0000)>>16));
 80154e0:	b9 80 08 00 	mv r1,r12                                      
 80154e4:	34 02 00 10 	mvi r2,16                                      
 80154e8:	f8 00 5b 4a 	calli 802c210 <__lshrsi3>                      
 80154ec:	20 2c ff ff 	andi r12,r1,0xffff                             
 80154f0:	34 02 00 08 	mvi r2,8                                       
 80154f4:	b9 80 08 00 	mv r1,r12                                      
 80154f8:	fb ff af 3c 	calli 80011e8 <__ashlsi3>                      
 80154fc:	b8 20 68 00 	mv r13,r1                                      
 8015500:	34 02 00 08 	mvi r2,8                                       
 8015504:	b9 80 08 00 	mv r1,r12                                      
 8015508:	f8 00 5b 42 	calli 802c210 <__lshrsi3>                      
 801550c:	b9 a1 18 00 	or r3,r13,r1                                   
        }                                                             
        else                                                          
        {                                                             
            *MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) = 
                CT_LE_W((uint16_t  )((parent_fat_fd->cln) & 0x0000FFFF));
            *MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) =  
 8015510:	0d 63 00 34 	sh (r11+52),r3                                 
        /*                                                            
         * write dot and dotdot entries to new fat-file: currently fat-file
         * correspondes to a new node is zero length, so it will be extended
         * by one cluster and entries will be written                 
         */                                                           
        ret = fat_file_write(&fs_info->fat, fat_fd, 0,                
 8015514:	37 8c 00 48 	addi r12,sp,72                                 
 8015518:	ba 60 08 00 	mv r1,r19                                      
 801551c:	ba 00 10 00 	mv r2,r16                                      
 8015520:	34 03 00 00 	mvi r3,0                                       
 8015524:	34 04 00 40 	mvi r4,64                                      
 8015528:	b9 80 28 00 	mv r5,r12                                      
 801552c:	fb ff e9 0e 	calli 800f964 <fat_file_write>                 
                             MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2,   
                             (uint8_t *)dot_dotdot);                  
        if (ret < 0)                                                  
 8015530:	48 01 00 2e 	bg r0,r1,80155e8 <msdos_creat_node+0x680>      <== NEVER TAKEN
            rc = -1;                                                  
            goto error;                                               
        }                                                             
                                                                      
        /* increment fat-file size by cluster size */                 
        fat_fd->fat_file_size += fs_info->fat.vol.bpc;                
 8015534:	2b 8b 00 d8 	lw r11,(sp+216)                                
 8015538:	2e 62 00 06 	lhu r2,(r19+6)                                 
 801553c:	29 63 00 18 	lw r3,(r11+24)                                 
                                                                      
        /* set up cluster num for dot entry */                        
        *MSDOS_DIR_FIRST_CLUSTER_LOW(DOT_NODE_P(dot_dotdot)) =        
                CT_LE_W((uint16_t  )((fat_fd->cln) & 0x0000FFFF));    
 8015540:	29 6e 00 1c 	lw r14,(r11+28)                                
            rc = -1;                                                  
            goto error;                                               
        }                                                             
                                                                      
        /* increment fat-file size by cluster size */                 
        fat_fd->fat_file_size += fs_info->fat.vol.bpc;                
 8015544:	b4 62 10 00 	add r2,r3,r2                                   
                                                                      
        /* set up cluster num for dot entry */                        
        *MSDOS_DIR_FIRST_CLUSTER_LOW(DOT_NODE_P(dot_dotdot)) =        
                CT_LE_W((uint16_t  )((fat_fd->cln) & 0x0000FFFF));    
 8015548:	21 cd ff ff 	andi r13,r14,0xffff                            
            rc = -1;                                                  
            goto error;                                               
        }                                                             
                                                                      
        /* increment fat-file size by cluster size */                 
        fat_fd->fat_file_size += fs_info->fat.vol.bpc;                
 801554c:	59 62 00 18 	sw (r11+24),r2                                 
 8015550:	b9 a0 08 00 	mv r1,r13                                      
 8015554:	34 02 00 08 	mvi r2,8                                       
 8015558:	fb ff af 24 	calli 80011e8 <__ashlsi3>                      
 801555c:	b8 20 78 00 	mv r15,r1                                      
 8015560:	34 02 00 08 	mvi r2,8                                       
 8015564:	b9 a0 08 00 	mv r1,r13                                      
 8015568:	f8 00 5b 2a 	calli 802c210 <__lshrsi3>                      
 801556c:	b9 e1 10 00 	or r2,r15,r1                                   
                                                                      
        /* set up cluster num for dot entry */                        
        *MSDOS_DIR_FIRST_CLUSTER_LOW(DOT_NODE_P(dot_dotdot)) =        
 8015570:	0d 82 00 1a 	sh (r12+26),r2                                 
                CT_LE_W((uint16_t  )((fat_fd->cln) & 0x0000FFFF));    
        *MSDOS_DIR_FIRST_CLUSTER_HI(DOT_NODE_P(dot_dotdot)) =         
                CT_LE_W((uint16_t  )(((fat_fd->cln) & 0xFFFF0000) >> 16));
 8015574:	b9 c0 08 00 	mv r1,r14                                      
 8015578:	34 02 00 10 	mvi r2,16                                      
 801557c:	f8 00 5b 25 	calli 802c210 <__lshrsi3>                      
 8015580:	20 2d ff ff 	andi r13,r1,0xffff                             
 8015584:	34 02 00 08 	mvi r2,8                                       
 8015588:	b9 a0 08 00 	mv r1,r13                                      
 801558c:	fb ff af 17 	calli 80011e8 <__ashlsi3>                      
 8015590:	b8 20 70 00 	mv r14,r1                                      
 8015594:	34 02 00 08 	mvi r2,8                                       
 8015598:	b9 a0 08 00 	mv r1,r13                                      
 801559c:	f8 00 5b 1d 	calli 802c210 <__lshrsi3>                      
 80155a0:	b9 c1 10 00 	or r2,r14,r1                                   
        fat_fd->fat_file_size += fs_info->fat.vol.bpc;                
                                                                      
        /* set up cluster num for dot entry */                        
        *MSDOS_DIR_FIRST_CLUSTER_LOW(DOT_NODE_P(dot_dotdot)) =        
                CT_LE_W((uint16_t  )((fat_fd->cln) & 0x0000FFFF));    
        *MSDOS_DIR_FIRST_CLUSTER_HI(DOT_NODE_P(dot_dotdot)) =         
 80155a4:	0d 82 00 14 	sh (r12+20),r2                                 
                CT_LE_W((uint16_t  )(((fat_fd->cln) & 0xFFFF0000) >> 16));
                                                                      
        /* rewrite dot entry */                                       
        ret = fat_file_write(&fs_info->fat, fat_fd, 0,                
 80155a8:	ba 60 08 00 	mv r1,r19                                      
 80155ac:	b9 60 10 00 	mv r2,r11                                      
 80155b0:	34 03 00 00 	mvi r3,0                                       
 80155b4:	34 04 00 20 	mvi r4,32                                      
 80155b8:	b9 80 28 00 	mv r5,r12                                      
 80155bc:	fb ff e8 ea 	calli 800f964 <fat_file_write>                 
                             MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE,       
                             (uint8_t *)DOT_NODE_P(dot_dotdot));      
        if (ret < 0)                                                  
 80155c0:	48 01 00 0a 	bg r0,r1,80155e8 <msdos_creat_node+0x680>      <== NEVER TAKEN
            rc = -1;                                                  
            goto error;                                               
        }                                                             
                                                                      
        /* write first cluster num of a new directory to disk */      
        rc = msdos_set_first_cluster_num(parent_loc->mt_entry, fat_fd);
 80155c4:	2a 81 00 14 	lw r1,(r20+20)                                 
 80155c8:	2b 82 00 d8 	lw r2,(sp+216)                                 
 80155cc:	f8 00 01 a4 	calli 8015c5c <msdos_set_first_cluster_num>    
 80155d0:	b8 20 58 00 	mv r11,r1                                      
        if (rc != RC_OK)                                              
 80155d4:	5c 20 00 06 	bne r1,r0,80155ec <msdos_creat_node+0x684>     <== NEVER TAKEN
            goto error;                                               
                                                                      
        fat_file_close(&fs_info->fat, fat_fd);                        
 80155d8:	2b 82 00 d8 	lw r2,(sp+216)                                 
 80155dc:	ba 60 08 00 	mv r1,r19                                      
 80155e0:	fb ff e7 e4 	calli 800f570 <fat_file_close>                 
 80155e4:	e0 00 00 09 	bi 8015608 <msdos_creat_node+0x6a0>            
        ret = fat_file_write(&fs_info->fat, fat_fd, 0,                
                             MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE,       
                             (uint8_t *)DOT_NODE_P(dot_dotdot));      
        if (ret < 0)                                                  
        {                                                             
            rc = -1;                                                  
 80155e8:	34 0b ff ff 	mvi r11,-1                                     <== NOT EXECUTED
        fat_file_close(&fs_info->fat, fat_fd);                        
    }                                                                 
    return RC_OK;                                                     
                                                                      
error:                                                                
    fat_file_close(&fs_info->fat, fat_fd);                            
 80155ec:	2b 82 00 d8 	lw r2,(sp+216)                                 <== NOT EXECUTED
 80155f0:	ba 60 08 00 	mv r1,r19                                      <== NOT EXECUTED
 80155f4:	fb ff e7 df 	calli 800f570 <fat_file_close>                 <== NOT EXECUTED
                                                                      
err:                                                                  
    /* mark the used 32bytes structure on the disk as free */         
    msdos_set_first_char4file_name(parent_loc->mt_entry, &dir_pos, 0xE5);
 80155f8:	2a 81 00 14 	lw r1,(r20+20)                                 <== NOT EXECUTED
 80155fc:	37 82 00 c8 	addi r2,sp,200                                 <== NOT EXECUTED
 8015600:	34 03 00 e5 	mvi r3,229                                     <== NOT EXECUTED
 8015604:	f8 00 02 0f 	calli 8015e40 <msdos_set_first_char4file_name> <== NOT EXECUTED
    return rc;                                                        
}                                                                     
 8015608:	b9 60 08 00 	mv r1,r11                                      
 801560c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8015610:	2b 8b 00 44 	lw r11,(sp+68)                                 
 8015614:	2b 8c 00 40 	lw r12,(sp+64)                                 
 8015618:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 801561c:	2b 8e 00 38 	lw r14,(sp+56)                                 
 8015620:	2b 8f 00 34 	lw r15,(sp+52)                                 
 8015624:	2b 90 00 30 	lw r16,(sp+48)                                 
 8015628:	2b 91 00 2c 	lw r17,(sp+44)                                 
 801562c:	2b 92 00 28 	lw r18,(sp+40)                                 
 8015630:	2b 93 00 24 	lw r19,(sp+36)                                 
 8015634:	2b 94 00 20 	lw r20,(sp+32)                                 
 8015638:	2b 95 00 1c 	lw r21,(sp+28)                                 
 801563c:	2b 96 00 18 	lw r22,(sp+24)                                 
 8015640:	2b 97 00 14 	lw r23,(sp+20)                                 
 8015644:	2b 98 00 10 	lw r24,(sp+16)                                 
 8015648:	2b 99 00 0c 	lw r25,(sp+12)                                 
 801564c:	2b 9b 00 08 	lw fp,(sp+8)                                   
 8015650:	37 9c 00 dc 	addi sp,sp,220                                 
 8015654:	c3 a0 00 00 	ret                                            
                                                                      

08018a8c <msdos_date_dos2unix>: * called from the stat(), and fstat() system calls and so probably need * not be too efficient. */ unsigned int msdos_date_dos2unix(unsigned int dd, unsigned int dt) {
 8018a8c:	37 9c ff ec 	addi sp,sp,-20                                 
 8018a90:	5b 8b 00 14 	sw (sp+20),r11                                 
 8018a94:	5b 8c 00 10 	sw (sp+16),r12                                 
 8018a98:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8018a9c:	5b 8e 00 08 	sw (sp+8),r14                                  
 8018aa0:	5b 9d 00 04 	sw (sp+4),ra                                   
 8018aa4:	b8 40 58 00 	mv r11,r2                                      
 8018aa8:	b8 20 68 00 	mv r13,r1                                      
	uint32_t days;                                                       
	uint16_t *months;                                                    
                                                                      
	seconds = 2 * ((dt & MSDOS_DT_2SECONDS_MASK) >> MSDOS_DT_2SECONDS_SHIFT)
	    + ((dt & MSDOS_DT_MINUTES_MASK) >> MSDOS_DT_MINUTES_SHIFT) * 60  
	    + ((dt & MSDOS_DT_HOURS_MASK) >> MSDOS_DT_HOURS_SHIFT) * 3600;   
 8018aac:	20 41 f8 00 	andi r1,r2,0xf800                              
 8018ab0:	34 02 00 0b 	mvi r2,11                                      
 8018ab4:	f8 00 4d d7 	calli 802c210 <__lshrsi3>                      
 8018ab8:	34 02 07 08 	mvi r2,1800                                    
 8018abc:	fb ff a2 19 	calli 8001320 <__mulsi3>                       
 8018ac0:	b8 20 70 00 	mv r14,r1                                      
	uint32_t y, year;                                                    
	uint32_t days;                                                       
	uint16_t *months;                                                    
                                                                      
	seconds = 2 * ((dt & MSDOS_DT_2SECONDS_MASK) >> MSDOS_DT_2SECONDS_SHIFT)
	    + ((dt & MSDOS_DT_MINUTES_MASK) >> MSDOS_DT_MINUTES_SHIFT) * 60  
 8018ac4:	34 02 00 05 	mvi r2,5                                       
 8018ac8:	21 61 07 e0 	andi r1,r11,0x7e0                              
 8018acc:	f8 00 4d d1 	calli 802c210 <__lshrsi3>                      
 8018ad0:	34 02 00 01 	mvi r2,1                                       
 8018ad4:	b8 20 60 00 	mv r12,r1                                      
 8018ad8:	fb ff a1 c4 	calli 80011e8 <__ashlsi3>                      
 8018adc:	b4 2c 60 00 	add r12,r1,r12                                 
 8018ae0:	34 02 00 02 	mvi r2,2                                       
 8018ae4:	b9 80 08 00 	mv r1,r12                                      
 8018ae8:	fb ff a1 c0 	calli 80011e8 <__ashlsi3>                      
 8018aec:	34 02 00 01 	mvi r2,1                                       
 8018af0:	b5 81 08 00 	add r1,r12,r1                                  
 8018af4:	fb ff a1 bd 	calli 80011e8 <__ashlsi3>                      
	    + ((dt & MSDOS_DT_HOURS_MASK) >> MSDOS_DT_HOURS_SHIFT) * 3600;   
 8018af8:	b5 c1 08 00 	add r1,r14,r1                                  
	uint32_t m, month;                                                   
	uint32_t y, year;                                                    
	uint32_t days;                                                       
	uint16_t *months;                                                    
                                                                      
	seconds = 2 * ((dt & MSDOS_DT_2SECONDS_MASK) >> MSDOS_DT_2SECONDS_SHIFT)
 8018afc:	21 6b 00 1f 	andi r11,r11,0x1f                              
 8018b00:	34 02 00 01 	mvi r2,1                                       
 8018b04:	b4 2b 08 00 	add r1,r1,r11                                  
 8018b08:	fb ff a1 b8 	calli 80011e8 <__ashlsi3>                      
	    + ((dt & MSDOS_DT_HOURS_MASK) >> MSDOS_DT_HOURS_SHIFT) * 3600;   
	/*                                                                   
	 * If the year, month, and day from the last conversion are the      
	 * same then use the saved value.                                    
	 */                                                                  
	if (lastdosdate != dd) {                                             
 8018b0c:	78 02 08 02 	mvhi r2,0x802                                  
 8018b10:	38 42 f7 d8 	ori r2,r2,0xf7d8                               
	uint32_t m, month;                                                   
	uint32_t y, year;                                                    
	uint32_t days;                                                       
	uint16_t *months;                                                    
                                                                      
	seconds = 2 * ((dt & MSDOS_DT_2SECONDS_MASK) >> MSDOS_DT_2SECONDS_SHIFT)
 8018b14:	b8 20 70 00 	mv r14,r1                                      
	    + ((dt & MSDOS_DT_HOURS_MASK) >> MSDOS_DT_HOURS_SHIFT) * 3600;   
	/*                                                                   
	 * If the year, month, and day from the last conversion are the      
	 * same then use the saved value.                                    
	 */                                                                  
	if (lastdosdate != dd) {                                             
 8018b18:	2c 41 00 00 	lhu r1,(r2+0)                                  
 8018b1c:	44 2d 00 31 	be r1,r13,8018be0 <msdos_date_dos2unix+0x154>  
		lastdosdate = dd;                                                   
 8018b20:	0c 4d 00 00 	sh (r2+0),r13                                  
		days = 0;                                                           
		year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;            
 8018b24:	21 a1 fe 00 	andi r1,r13,0xfe00                             
 8018b28:	34 02 00 09 	mvi r2,9                                       
 8018b2c:	f8 00 4d b9 	calli 802c210 <__lshrsi3>                      
 8018b30:	b8 20 20 00 	mv r4,r1                                       
	 * If the year, month, and day from the last conversion are the      
	 * same then use the saved value.                                    
	 */                                                                  
	if (lastdosdate != dd) {                                             
		lastdosdate = dd;                                                   
		days = 0;                                                           
 8018b34:	34 0c 00 00 	mvi r12,0                                      
		year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;            
		for (y = 0; y < year; y++)                                          
 8018b38:	34 02 00 00 	mvi r2,0                                       
 8018b3c:	e0 00 00 06 	bi 8018b54 <msdos_date_dos2unix+0xc8>          
			days += y & 0x03 ? 365 : 366;                                      
 8018b40:	20 43 00 03 	andi r3,r2,0x3                                 
 8018b44:	64 63 00 00 	cmpei r3,r3,0                                  
	 */                                                                  
	if (lastdosdate != dd) {                                             
		lastdosdate = dd;                                                   
		days = 0;                                                           
		year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;            
		for (y = 0; y < year; y++)                                          
 8018b48:	34 42 00 01 	addi r2,r2,1                                   
			days += y & 0x03 ? 365 : 366;                                      
 8018b4c:	34 63 01 6d 	addi r3,r3,365                                 
 8018b50:	b5 83 60 00 	add r12,r12,r3                                 
	 */                                                                  
	if (lastdosdate != dd) {                                             
		lastdosdate = dd;                                                   
		days = 0;                                                           
		year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;            
		for (y = 0; y < year; y++)                                          
 8018b54:	54 82 ff fb 	bgu r4,r2,8018b40 <msdos_date_dos2unix+0xb4>   
			days += y & 0x03 ? 365 : 366;                                      
		months = year & 0x03 ? regyear : leapyear;                          
 8018b58:	78 0b 08 02 	mvhi r11,0x802                                 
 8018b5c:	20 84 00 03 	andi r4,r4,0x3                                 
 8018b60:	39 6b f2 14 	ori r11,r11,0xf214                             
 8018b64:	44 80 00 03 	be r4,r0,8018b70 <msdos_date_dos2unix+0xe4>    <== ALWAYS TAKEN
 8018b68:	78 0b 08 02 	mvhi r11,0x802                                 <== NOT EXECUTED
 8018b6c:	39 6b f1 fc 	ori r11,r11,0xf1fc                             <== NOT EXECUTED
		/*                                                                  
		 * Prevent going from 0 to 0xffffffff in the following              
		 * loop.                                                            
		 */                                                                 
		month = (dd & MSDOS_DD_MONTH_MASK) >> MSDOS_DD_MONTH_SHIFT;         
 8018b70:	34 02 00 05 	mvi r2,5                                       
 8018b74:	21 a1 01 e0 	andi r1,r13,0x1e0                              
 8018b78:	f8 00 4d a6 	calli 802c210 <__lshrsi3>                      
 8018b7c:	b8 20 10 00 	mv r2,r1                                       
		if (month == 0) {                                                   
 8018b80:	5c 20 00 02 	bne r1,r0,8018b88 <msdos_date_dos2unix+0xfc>   <== ALWAYS TAKEN
			month = 1;                                                         
 8018b84:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
		}                                                                   
		for (m = 0; m < month - 1; m++)                                     
 8018b88:	34 03 00 00 	mvi r3,0                                       
 8018b8c:	34 42 ff ff 	addi r2,r2,-1                                  
 8018b90:	e0 00 00 05 	bi 8018ba4 <msdos_date_dos2unix+0x118>         
			days += months[m];                                                 
 8018b94:	2d 61 00 00 	lhu r1,(r11+0)                                 <== NOT EXECUTED
		 */                                                                 
		month = (dd & MSDOS_DD_MONTH_MASK) >> MSDOS_DD_MONTH_SHIFT;         
		if (month == 0) {                                                   
			month = 1;                                                         
		}                                                                   
		for (m = 0; m < month - 1; m++)                                     
 8018b98:	34 63 00 01 	addi r3,r3,1                                   <== NOT EXECUTED
 8018b9c:	35 6b 00 02 	addi r11,r11,2                                 <== NOT EXECUTED
			days += months[m];                                                 
 8018ba0:	b5 81 60 00 	add r12,r12,r1                                 <== NOT EXECUTED
		 */                                                                 
		month = (dd & MSDOS_DD_MONTH_MASK) >> MSDOS_DD_MONTH_SHIFT;         
		if (month == 0) {                                                   
			month = 1;                                                         
		}                                                                   
		for (m = 0; m < month - 1; m++)                                     
 8018ba4:	54 43 ff fc 	bgu r2,r3,8018b94 <msdos_date_dos2unix+0x108>  <== NEVER TAKEN
			days += months[m];                                                 
		days += ((dd & MSDOS_DD_DAY_MASK) >> MSDOS_DD_DAY_SHIFT) - 1;       
		lastseconds = (days + DAYSTO1980) * SECONDSPERDAY;                  
 8018ba8:	78 03 08 02 	mvhi r3,0x802                                  
 8018bac:	38 63 d8 7c 	ori r3,r3,0xd87c                               
 8018bb0:	28 62 00 00 	lw r2,(r3+0)                                   
		if (month == 0) {                                                   
			month = 1;                                                         
		}                                                                   
		for (m = 0; m < month - 1; m++)                                     
			days += months[m];                                                 
		days += ((dd & MSDOS_DD_DAY_MASK) >> MSDOS_DD_DAY_SHIFT) - 1;       
 8018bb4:	21 ad 00 1f 	andi r13,r13,0x1f                              
 8018bb8:	35 ad ff ff 	addi r13,r13,-1                                
		lastseconds = (days + DAYSTO1980) * SECONDSPERDAY;                  
 8018bbc:	b5 ac 08 00 	add r1,r13,r12                                 
 8018bc0:	fb ff a1 d8 	calli 8001320 <__mulsi3>                       
 8018bc4:	78 03 08 02 	mvhi r3,0x802                                  
 8018bc8:	38 63 d8 80 	ori r3,r3,0xd880                               
 8018bcc:	28 62 00 00 	lw r2,(r3+0)                                   
 8018bd0:	78 0b 08 02 	mvhi r11,0x802                                 
 8018bd4:	39 6b f7 dc 	ori r11,r11,0xf7dc                             
 8018bd8:	b4 22 10 00 	add r2,r1,r2                                   
 8018bdc:	59 62 00 00 	sw (r11+0),r2                                  
	}                                                                    
	return seconds + lastseconds;                                        
 8018be0:	78 02 08 02 	mvhi r2,0x802                                  
 8018be4:	38 42 f7 dc 	ori r2,r2,0xf7dc                               
 8018be8:	28 42 00 00 	lw r2,(r2+0)                                   
}                                                                     
 8018bec:	b5 c2 08 00 	add r1,r14,r2                                  
 8018bf0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8018bf4:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8018bf8:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8018bfc:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8018c00:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8018c04:	37 9c 00 14 	addi sp,sp,20                                  
 8018c08:	c3 a0 00 00 	ret                                            
                                                                      

080188f4 <msdos_date_unix2dos>: * file timestamps. The passed in unix time is assumed to be in GMT. */ void msdos_date_unix2dos(unsigned int t, uint16_t *ddp, uint16_t *dtp) {
 80188f4:	37 9c ff e8 	addi sp,sp,-24                                 
 80188f8:	5b 8b 00 18 	sw (sp+24),r11                                 
 80188fc:	5b 8c 00 14 	sw (sp+20),r12                                 
 8018900:	5b 8d 00 10 	sw (sp+16),r13                                 
 8018904:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8018908:	5b 8f 00 08 	sw (sp+8),r15                                  
 801890c:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
	/*                                                                   
	 * If the time from the last conversion is the same as now, then     
	 * skip the computations and use the saved result.                   
	 */                                                                  
	if (lasttime != t) {                                                 
 8018910:	78 04 08 02 	mvhi r4,0x802                                  
 8018914:	38 84 f7 e0 	ori r4,r4,0xf7e0                               
 * file timestamps. The passed in unix time is assumed to be in GMT.  
 */                                                                   
void                                                                  
msdos_date_unix2dos(unsigned int t, uint16_t *ddp,                    
                    uint16_t *dtp)                                    
{                                                                     
 8018918:	b8 40 70 00 	mv r14,r2                                      
                                                                      
	/*                                                                   
	 * If the time from the last conversion is the same as now, then     
	 * skip the computations and use the saved result.                   
	 */                                                                  
	if (lasttime != t) {                                                 
 801891c:	28 82 00 00 	lw r2,(r4+0)                                   
 * file timestamps. The passed in unix time is assumed to be in GMT.  
 */                                                                   
void                                                                  
msdos_date_unix2dos(unsigned int t, uint16_t *ddp,                    
                    uint16_t *dtp)                                    
{                                                                     
 8018920:	b8 20 58 00 	mv r11,r1                                      
 8018924:	b8 60 78 00 	mv r15,r3                                      
                                                                      
	/*                                                                   
	 * If the time from the last conversion is the same as now, then     
	 * skip the computations and use the saved result.                   
	 */                                                                  
	if (lasttime != t) {                                                 
 8018928:	44 41 00 49 	be r2,r1,8018a4c <msdos_date_unix2dos+0x158>   
		lasttime = t;                                                       
 801892c:	58 81 00 00 	sw (r4+0),r1                                   
		lastdtime = (((t % 60) >> 1) << MSDOS_DT_2SECONDS_SHIFT)            
		    + (((t / 60) % 60) << MSDOS_DT_MINUTES_SHIFT)                   
 8018930:	34 02 00 3c 	mvi r2,60                                      
 8018934:	f8 00 4e 87 	calli 802c350 <__udivsi3>                      
 8018938:	34 02 00 3c 	mvi r2,60                                      
 801893c:	f8 00 4e 95 	calli 802c390 <__umodsi3>                      
	 * If the time from the last conversion is the same as now, then     
	 * skip the computations and use the saved result.                   
	 */                                                                  
	if (lasttime != t) {                                                 
		lasttime = t;                                                       
		lastdtime = (((t % 60) >> 1) << MSDOS_DT_2SECONDS_SHIFT)            
 8018940:	34 02 00 05 	mvi r2,5                                       
 8018944:	fb ff a2 29 	calli 80011e8 <__ashlsi3>                      
 8018948:	b8 20 68 00 	mv r13,r1                                      
		    + (((t / 60) % 60) << MSDOS_DT_MINUTES_SHIFT)                   
		    + (((t / 3600) % 24) << MSDOS_DT_HOURS_SHIFT);                  
 801894c:	34 02 0e 10 	mvi r2,3600                                    
 8018950:	b9 60 08 00 	mv r1,r11                                      
 8018954:	f8 00 4e 7f 	calli 802c350 <__udivsi3>                      
 8018958:	34 02 00 18 	mvi r2,24                                      
 801895c:	f8 00 4e 8d 	calli 802c390 <__umodsi3>                      
	 * If the time from the last conversion is the same as now, then     
	 * skip the computations and use the saved result.                   
	 */                                                                  
	if (lasttime != t) {                                                 
		lasttime = t;                                                       
		lastdtime = (((t % 60) >> 1) << MSDOS_DT_2SECONDS_SHIFT)            
 8018960:	34 02 00 0b 	mvi r2,11                                      
 8018964:	fb ff a2 21 	calli 80011e8 <__ashlsi3>                      
 8018968:	b5 a1 68 00 	add r13,r13,r1                                 
 801896c:	34 02 00 3c 	mvi r2,60                                      
 8018970:	b9 60 08 00 	mv r1,r11                                      
 8018974:	f8 00 4e 87 	calli 802c390 <__umodsi3>                      
 8018978:	34 02 00 01 	mvi r2,1                                       
 801897c:	f8 00 4e 25 	calli 802c210 <__lshrsi3>                      
		/*                                                                  
		 * If the number of days since 1970 is the same as the last         
		 * time we did the computation then skip all this leap year         
		 * and month stuff.                                                 
		 */                                                                 
		days = t / (SECONDSPERDAY);                                         
 8018980:	78 03 08 02 	mvhi r3,0x802                                  
 8018984:	38 63 d8 7c 	ori r3,r3,0xd87c                               
 8018988:	28 62 00 00 	lw r2,(r3+0)                                   
	 * If the time from the last conversion is the same as now, then     
	 * skip the computations and use the saved result.                   
	 */                                                                  
	if (lasttime != t) {                                                 
		lasttime = t;                                                       
		lastdtime = (((t % 60) >> 1) << MSDOS_DT_2SECONDS_SHIFT)            
 801898c:	78 0c 08 02 	mvhi r12,0x802                                 
 8018990:	b5 a1 08 00 	add r1,r13,r1                                  
 8018994:	39 8c f7 e4 	ori r12,r12,0xf7e4                             
 8018998:	0d 81 00 00 	sh (r12+0),r1                                  
		/*                                                                  
		 * If the number of days since 1970 is the same as the last         
		 * time we did the computation then skip all this leap year         
		 * and month stuff.                                                 
		 */                                                                 
		days = t / (SECONDSPERDAY);                                         
 801899c:	b9 60 08 00 	mv r1,r11                                      
 80189a0:	f8 00 4e 6c 	calli 802c350 <__udivsi3>                      
		if (days != lastday) {                                              
 80189a4:	78 04 08 02 	mvhi r4,0x802                                  
 80189a8:	38 84 f7 e8 	ori r4,r4,0xf7e8                               
 80189ac:	28 82 00 00 	lw r2,(r4+0)                                   
 80189b0:	44 22 00 27 	be r1,r2,8018a4c <msdos_date_unix2dos+0x158>   
			lastday = days;                                                    
 80189b4:	58 81 00 00 	sw (r4+0),r1                                   
			for (year = 1970;; year++) {                                       
 80189b8:	34 0b 07 b2 	mvi r11,1970                                   
				inc = year & 0x03 ? 365 : 366;                                    
 80189bc:	21 65 00 03 	andi r5,r11,0x3                                
 80189c0:	64 a4 00 00 	cmpei r4,r5,0                                  
 80189c4:	34 84 01 6d 	addi r4,r4,365                                 
				if (days < inc)                                                   
 80189c8:	54 81 00 04 	bgu r4,r1,80189d8 <msdos_date_unix2dos+0xe4>   
					break;                                                           
				days -= inc;                                                      
 80189cc:	c8 24 08 00 	sub r1,r1,r4                                   
		 * and month stuff.                                                 
		 */                                                                 
		days = t / (SECONDSPERDAY);                                         
		if (days != lastday) {                                              
			lastday = days;                                                    
			for (year = 1970;; year++) {                                       
 80189d0:	35 6b 00 01 	addi r11,r11,1                                 
				inc = year & 0x03 ? 365 : 366;                                    
				if (days < inc)                                                   
					break;                                                           
				days -= inc;                                                      
			}                                                                  
 80189d4:	e3 ff ff fa 	bi 80189bc <msdos_date_unix2dos+0xc8>          
			months = year & 0x03 ? regyear : leapyear;                         
 80189d8:	78 04 08 02 	mvhi r4,0x802                                  
 80189dc:	38 84 f2 14 	ori r4,r4,0xf214                               
 80189e0:	44 a0 00 03 	be r5,r0,80189ec <msdos_date_unix2dos+0xf8>    <== ALWAYS TAKEN
 80189e4:	78 04 08 02 	mvhi r4,0x802                                  <== NOT EXECUTED
 80189e8:	38 84 f1 fc 	ori r4,r4,0xf1fc                               <== NOT EXECUTED
			for (month = 0; month < 12; month++) {                             
 80189ec:	34 05 00 00 	mvi r5,0                                       
 80189f0:	34 02 00 0c 	mvi r2,12                                      
				if (days < months[month])                                         
 80189f4:	2c 86 00 00 	lhu r6,(r4+0)                                  
 80189f8:	54 c1 00 05 	bgu r6,r1,8018a0c <msdos_date_unix2dos+0x118>  <== ALWAYS TAKEN
				if (days < inc)                                                   
					break;                                                           
				days -= inc;                                                      
			}                                                                  
			months = year & 0x03 ? regyear : leapyear;                         
			for (month = 0; month < 12; month++) {                             
 80189fc:	34 a5 00 01 	addi r5,r5,1                                   <== NOT EXECUTED
				if (days < months[month])                                         
					break;                                                           
				days -= months[month];                                            
 8018a00:	c8 26 08 00 	sub r1,r1,r6                                   <== NOT EXECUTED
				if (days < inc)                                                   
					break;                                                           
				days -= inc;                                                      
			}                                                                  
			months = year & 0x03 ? regyear : leapyear;                         
			for (month = 0; month < 12; month++) {                             
 8018a04:	34 84 00 02 	addi r4,r4,2                                   <== NOT EXECUTED
 8018a08:	5c a2 ff fb 	bne r5,r2,80189f4 <msdos_date_unix2dos+0x100>  <== NOT EXECUTED
				if (days < months[month])                                         
					break;                                                           
				days -= months[month];                                            
			}                                                                  
			lastddate = ((days + 1) << MSDOS_DD_DAY_SHIFT)                     
 8018a0c:	34 2d 00 01 	addi r13,r1,1                                  
 8018a10:	34 02 00 05 	mvi r2,5                                       
 8018a14:	34 a1 00 01 	addi r1,r5,1                                   
 8018a18:	fb ff a1 f4 	calli 80011e8 <__ashlsi3>                      
 8018a1c:	b5 a1 08 00 	add r1,r13,r1                                  
 8018a20:	78 0c 08 02 	mvhi r12,0x802                                 
 8018a24:	20 2d ff ff 	andi r13,r1,0xffff                             
 8018a28:	39 8c f7 ec 	ori r12,r12,0xf7ec                             
 8018a2c:	0d 8d 00 00 	sh (r12+0),r13                                 
			 * Remember dos's idea of time is relative to 1980.                
			 * unix's is relative to 1970.  If somehow we get a                
			 * time before 1980 then don't give totally crazy                  
			 * results.                                                        
			 */                                                                
			if (year > 1980)                                                   
 8018a30:	34 01 07 bc 	mvi r1,1980                                    
 8018a34:	50 2b 00 06 	bgeu r1,r11,8018a4c <msdos_date_unix2dos+0x158><== NEVER TAKEN
				lastddate += (year - 1980) <<                                     
 8018a38:	35 61 f8 44 	addi r1,r11,-1980                              
 8018a3c:	34 02 00 09 	mvi r2,9                                       
 8018a40:	fb ff a1 ea 	calli 80011e8 <__ashlsi3>                      
 8018a44:	b5 a1 08 00 	add r1,r13,r1                                  
 8018a48:	0d 81 00 00 	sh (r12+0),r1                                  
				             MSDOS_DD_YEAR_SHIFT;                                 
		}                                                                   
	}                                                                    
	*dtp = lastdtime;                                                    
 8018a4c:	78 01 08 02 	mvhi r1,0x802                                  
 8018a50:	38 21 f7 e4 	ori r1,r1,0xf7e4                               
 8018a54:	2c 21 00 00 	lhu r1,(r1+0)                                  
 8018a58:	0d e1 00 00 	sh (r15+0),r1                                  
	*ddp = lastddate;                                                    
 8018a5c:	78 01 08 02 	mvhi r1,0x802                                  
 8018a60:	38 21 f7 ec 	ori r1,r1,0xf7ec                               
 8018a64:	2c 21 00 00 	lhu r1,(r1+0)                                  
 8018a68:	0d c1 00 00 	sh (r14+0),r1                                  
}                                                                     
 8018a6c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8018a70:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8018a74:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8018a78:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8018a7c:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8018a80:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8018a84:	37 9c 00 18 	addi sp,sp,24                                  
 8018a88:	c3 a0 00 00 	ret                                            
                                                                      

08015f94 <msdos_dir_is_empty>: msdos_dir_is_empty( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd, bool *ret_val ) {
 8015f94:	37 9c ff c8 	addi sp,sp,-56                                 
 8015f98:	5b 8b 00 38 	sw (sp+56),r11                                 
 8015f9c:	5b 8c 00 34 	sw (sp+52),r12                                 
 8015fa0:	5b 8d 00 30 	sw (sp+48),r13                                 
 8015fa4:	5b 8e 00 2c 	sw (sp+44),r14                                 
 8015fa8:	5b 8f 00 28 	sw (sp+40),r15                                 
 8015fac:	5b 90 00 24 	sw (sp+36),r16                                 
 8015fb0:	5b 91 00 20 	sw (sp+32),r17                                 
 8015fb4:	5b 92 00 1c 	sw (sp+28),r18                                 
 8015fb8:	5b 93 00 18 	sw (sp+24),r19                                 
 8015fbc:	5b 94 00 14 	sw (sp+20),r20                                 
 8015fc0:	5b 95 00 10 	sw (sp+16),r21                                 
 8015fc4:	5b 96 00 0c 	sw (sp+12),r22                                 
 8015fc8:	5b 97 00 08 	sw (sp+8),r23                                  
 8015fcc:	5b 9d 00 04 	sw (sp+4),ra                                   
             */                                                       
            if (((*MSDOS_DIR_ENTRY_TYPE(entry)) ==                    
                 MSDOS_THIS_DIR_ENTRY_EMPTY) ||                       
                ((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) ==    
                 MSDOS_ATTR_LFN) ||                                   
                (strncmp(MSDOS_DIR_NAME((entry)), MSDOS_DOT_NAME,     
 8015fd0:	78 10 08 02 	mvhi r16,0x802                                 
                         MSDOS_SHORT_NAME_LEN) == 0) ||               
                (strncmp(MSDOS_DIR_NAME((entry)),                     
 8015fd4:	78 0f 08 02 	mvhi r15,0x802                                 
    fat_file_fd_t                        *fat_fd,                     
    bool                                 *ret_val                     
    )                                                                 
{                                                                     
    ssize_t          ret = 0;                                         
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
 8015fd8:	28 2b 00 08 	lw r11,(r1+8)                                  
msdos_dir_is_empty(                                                   
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    fat_file_fd_t                        *fat_fd,                     
    bool                                 *ret_val                     
    )                                                                 
{                                                                     
 8015fdc:	b8 40 b8 00 	mv r23,r2                                      
 8015fe0:	b8 60 70 00 	mv r14,r3                                      
    ssize_t          ret = 0;                                         
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
    uint32_t         j = 0, i = 0;                                    
                                                                      
    /* dir is not empty */                                            
    *ret_val = false;                                                 
 8015fe4:	30 60 00 00 	sb (r3+0),r0                                   
    bool                                 *ret_val                     
    )                                                                 
{                                                                     
    ssize_t          ret = 0;                                         
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
    uint32_t         j = 0, i = 0;                                    
 8015fe8:	34 11 00 00 	mvi r17,0                                      
                                                                      
    while ((ret = fat_file_read(&fs_info->fat, fat_fd, j * fs_info->fat.vol.bps,
                                  fs_info->fat.vol.bps,               
                                  fs_info->cl_buf)) != FAT_EOF)       
    {                                                                 
        if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)                  
 8015fec:	34 16 00 1f 	mvi r22,31                                     
             * then consider it as empty.                             
             *                                                        
             * Just ignore long file name entries. They must have a short entry to
             * be valid.                                              
             */                                                       
            if (((*MSDOS_DIR_ENTRY_TYPE(entry)) ==                    
 8015ff0:	34 15 00 e5 	mvi r21,229                                    
                 MSDOS_THIS_DIR_ENTRY_EMPTY) ||                       
 8015ff4:	34 14 00 0f 	mvi r20,15                                     
                ((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) ==    
                 MSDOS_ATTR_LFN) ||                                   
                (strncmp(MSDOS_DIR_NAME((entry)), MSDOS_DOT_NAME,     
 8015ff8:	3a 10 d7 d4 	ori r16,r16,0xd7d4                             
                         MSDOS_SHORT_NAME_LEN) == 0) ||               
                (strncmp(MSDOS_DIR_NAME((entry)),                     
 8015ffc:	39 ef d7 e0 	ori r15,r15,0xd7e0                             
    uint32_t         j = 0, i = 0;                                    
                                                                      
    /* dir is not empty */                                            
    *ret_val = false;                                                 
                                                                      
    while ((ret = fat_file_read(&fs_info->fat, fat_fd, j * fs_info->fat.vol.bps,
 8016000:	e0 00 00 28 	bi 80160a0 <msdos_dir_is_empty+0x10c>          
                                  fs_info->fat.vol.bps,               
                                  fs_info->cl_buf)) != FAT_EOF)       
    {                                                                 
        if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)                  
 8016004:	4e c1 00 36 	bge r22,r1,80160dc <msdos_dir_is_empty+0x148>  <== NEVER TAKEN
            return -1;                                                
                                                                      
        assert(ret == fs_info->fat.vol.bps);                          
 8016008:	2d 73 00 00 	lhu r19,(r11+0)                                
 801600c:	5c 33 00 03 	bne r1,r19,8016018 <msdos_dir_is_empty+0x84>   <== NEVER TAKEN
 8016010:	34 0c 00 00 	mvi r12,0                                      
 8016014:	e0 00 00 21 	bi 8016098 <msdos_dir_is_empty+0x104>          
 8016018:	78 01 08 02 	mvhi r1,0x802                                  <== NOT EXECUTED
 801601c:	78 03 08 02 	mvhi r3,0x802                                  <== NOT EXECUTED
 8016020:	78 04 08 02 	mvhi r4,0x802                                  <== NOT EXECUTED
 8016024:	38 21 d7 6c 	ori r1,r1,0xd76c                               <== NOT EXECUTED
 8016028:	34 02 03 65 	mvi r2,869                                     <== NOT EXECUTED
 801602c:	38 63 d8 5c 	ori r3,r3,0xd85c                               <== NOT EXECUTED
 8016030:	38 84 d7 b8 	ori r4,r4,0xd7b8                               <== NOT EXECUTED
 8016034:	fb ff ee e0 	calli 8011bb4 <__assert_func>                  <== NOT EXECUTED
        /* have to look at the DIR_NAME as "raw" 8-bit data */        
        for (i = 0;                                                   
             i < fs_info->fat.vol.bps;                                
             i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)                  
        {                                                             
            char* entry = (char*) fs_info->cl_buf + i;                
 8016038:	29 6d 00 a0 	lw r13,(r11+160)                               
 801603c:	b5 ac 68 00 	add r13,r13,r12                                
             * then consider it as empty.                             
             *                                                        
             * Just ignore long file name entries. They must have a short entry to
             * be valid.                                              
             */                                                       
            if (((*MSDOS_DIR_ENTRY_TYPE(entry)) ==                    
 8016040:	41 b2 00 00 	lbu r18,(r13+0)                                
 8016044:	46 55 00 0e 	be r18,r21,801607c <msdos_dir_is_empty+0xe8>   <== NEVER TAKEN
                 MSDOS_THIS_DIR_ENTRY_EMPTY) ||                       
                ((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) ==    
 8016048:	41 a1 00 0b 	lbu r1,(r13+11)                                
 801604c:	20 21 00 3f 	andi r1,r1,0x3f                                
             *                                                        
             * Just ignore long file name entries. They must have a short entry to
             * be valid.                                              
             */                                                       
            if (((*MSDOS_DIR_ENTRY_TYPE(entry)) ==                    
                 MSDOS_THIS_DIR_ENTRY_EMPTY) ||                       
 8016050:	44 34 00 0b 	be r1,r20,801607c <msdos_dir_is_empty+0xe8>    <== NEVER TAKEN
                ((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) ==    
                 MSDOS_ATTR_LFN) ||                                   
                (strncmp(MSDOS_DIR_NAME((entry)), MSDOS_DOT_NAME,     
 8016054:	b9 a0 08 00 	mv r1,r13                                      
 8016058:	ba 00 10 00 	mv r2,r16                                      
 801605c:	34 03 00 0b 	mvi r3,11                                      
 8016060:	f8 00 16 9e 	calli 801bad8 <strncmp>                        
             * be valid.                                              
             */                                                       
            if (((*MSDOS_DIR_ENTRY_TYPE(entry)) ==                    
                 MSDOS_THIS_DIR_ENTRY_EMPTY) ||                       
                ((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) ==    
                 MSDOS_ATTR_LFN) ||                                   
 8016064:	44 20 00 06 	be r1,r0,801607c <msdos_dir_is_empty+0xe8>     
                (strncmp(MSDOS_DIR_NAME((entry)), MSDOS_DOT_NAME,     
                         MSDOS_SHORT_NAME_LEN) == 0) ||               
                (strncmp(MSDOS_DIR_NAME((entry)),                     
 8016068:	b9 a0 08 00 	mv r1,r13                                      
 801606c:	b9 e0 10 00 	mv r2,r15                                      
 8016070:	34 03 00 0b 	mvi r3,11                                      
 8016074:	f8 00 16 99 	calli 801bad8 <strncmp>                        
            if (((*MSDOS_DIR_ENTRY_TYPE(entry)) ==                    
                 MSDOS_THIS_DIR_ENTRY_EMPTY) ||                       
                ((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) ==    
                 MSDOS_ATTR_LFN) ||                                   
                (strncmp(MSDOS_DIR_NAME((entry)), MSDOS_DOT_NAME,     
                         MSDOS_SHORT_NAME_LEN) == 0) ||               
 8016078:	5c 20 00 03 	bne r1,r0,8016084 <msdos_dir_is_empty+0xf0>    
        assert(ret == fs_info->fat.vol.bps);                          
                                                                      
        /* have to look at the DIR_NAME as "raw" 8-bit data */        
        for (i = 0;                                                   
             i < fs_info->fat.vol.bps;                                
             i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)                  
 801607c:	35 8c 00 20 	addi r12,r12,32                                
 8016080:	e0 00 00 06 	bi 8016098 <msdos_dir_is_empty+0x104>          
            }                                                         
                                                                      
            /*                                                        
             * Short file name entries mean not empty.                
             */                                                       
            return RC_OK;                                             
 8016084:	34 01 00 00 	mvi r1,0                                       
                continue;                                             
                                                                      
            /*                                                        
             * Nothing more to look at.                               
             */                                                       
            if ((*MSDOS_DIR_NAME(entry)) ==                           
 8016088:	5e 40 00 16 	bne r18,r0,80160e0 <msdos_dir_is_empty+0x14c>  
                MSDOS_THIS_DIR_ENTRY_AND_REST_EMPTY)                  
            {                                                         
                *ret_val = true;                                      
 801608c:	34 02 00 01 	mvi r2,1                                       
 8016090:	31 c2 00 00 	sb (r14+0),r2                                  
                return RC_OK;                                         
 8016094:	e0 00 00 13 	bi 80160e0 <msdos_dir_is_empty+0x14c>          
            return -1;                                                
                                                                      
        assert(ret == fs_info->fat.vol.bps);                          
                                                                      
        /* have to look at the DIR_NAME as "raw" 8-bit data */        
        for (i = 0;                                                   
 8016098:	56 6c ff e8 	bgu r19,r12,8016038 <msdos_dir_is_empty+0xa4>  <== ALWAYS TAKEN
            /*                                                        
             * Short file name entries mean not empty.                
             */                                                       
            return RC_OK;                                             
        }                                                             
        j++;                                                          
 801609c:	36 31 00 01 	addi r17,r17,1                                 <== NOT EXECUTED
    uint32_t         j = 0, i = 0;                                    
                                                                      
    /* dir is not empty */                                            
    *ret_val = false;                                                 
                                                                      
    while ((ret = fat_file_read(&fs_info->fat, fat_fd, j * fs_info->fat.vol.bps,
 80160a0:	2d 6c 00 00 	lhu r12,(r11+0)                                
 80160a4:	ba 20 08 00 	mv r1,r17                                      
 80160a8:	b9 80 10 00 	mv r2,r12                                      
 80160ac:	fb ff ac 9d 	calli 8001320 <__mulsi3>                       
 80160b0:	29 65 00 a0 	lw r5,(r11+160)                                
 80160b4:	b8 20 18 00 	mv r3,r1                                       
 80160b8:	ba e0 10 00 	mv r2,r23                                      
 80160bc:	b9 60 08 00 	mv r1,r11                                      
 80160c0:	b9 80 20 00 	mv r4,r12                                      
 80160c4:	fb ff e4 58 	calli 800f224 <fat_file_read>                  
 80160c8:	5c 20 ff cf 	bne r1,r0,8016004 <msdos_dir_is_empty+0x70>    <== ALWAYS TAKEN
             */                                                       
            return RC_OK;                                             
        }                                                             
        j++;                                                          
    }                                                                 
    *ret_val = true;                                                  
 80160cc:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
 80160d0:	31 c1 00 00 	sb (r14+0),r1                                  <== NOT EXECUTED
    return RC_OK;                                                     
 80160d4:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 80160d8:	e0 00 00 02 	bi 80160e0 <msdos_dir_is_empty+0x14c>          <== NOT EXECUTED
    while ((ret = fat_file_read(&fs_info->fat, fat_fd, j * fs_info->fat.vol.bps,
                                  fs_info->fat.vol.bps,               
                                  fs_info->cl_buf)) != FAT_EOF)       
    {                                                                 
        if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)                  
            return -1;                                                
 80160dc:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
        }                                                             
        j++;                                                          
    }                                                                 
    *ret_val = true;                                                  
    return RC_OK;                                                     
}                                                                     
 80160e0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80160e4:	2b 8b 00 38 	lw r11,(sp+56)                                 
 80160e8:	2b 8c 00 34 	lw r12,(sp+52)                                 
 80160ec:	2b 8d 00 30 	lw r13,(sp+48)                                 
 80160f0:	2b 8e 00 2c 	lw r14,(sp+44)                                 
 80160f4:	2b 8f 00 28 	lw r15,(sp+40)                                 
 80160f8:	2b 90 00 24 	lw r16,(sp+36)                                 
 80160fc:	2b 91 00 20 	lw r17,(sp+32)                                 
 8016100:	2b 92 00 1c 	lw r18,(sp+28)                                 
 8016104:	2b 93 00 18 	lw r19,(sp+24)                                 
 8016108:	2b 94 00 14 	lw r20,(sp+20)                                 
 801610c:	2b 95 00 10 	lw r21,(sp+16)                                 
 8016110:	2b 96 00 0c 	lw r22,(sp+12)                                 
 8016114:	2b 97 00 08 	lw r23,(sp+8)                                  
 8016118:	37 9c 00 38 	addi sp,sp,56                                  
 801611c:	c3 a0 00 00 	ret                                            
                                                                      

08018d5c <msdos_dir_read>: * the number of bytes read on success, or -1 if error occured (errno * set apropriately). */ ssize_t msdos_dir_read(rtems_libio_t *iop, void *buffer, size_t count) {
 8018d5c:	37 9c fe 84 	addi sp,sp,-380                                <== NOT EXECUTED
 8018d60:	5b 8b 00 44 	sw (sp+68),r11                                 <== NOT EXECUTED
 8018d64:	5b 8c 00 40 	sw (sp+64),r12                                 <== NOT EXECUTED
 8018d68:	5b 8d 00 3c 	sw (sp+60),r13                                 <== NOT EXECUTED
 8018d6c:	5b 8e 00 38 	sw (sp+56),r14                                 <== NOT EXECUTED
 8018d70:	5b 8f 00 34 	sw (sp+52),r15                                 <== NOT EXECUTED
 8018d74:	5b 90 00 30 	sw (sp+48),r16                                 <== NOT EXECUTED
 8018d78:	5b 91 00 2c 	sw (sp+44),r17                                 <== NOT EXECUTED
 8018d7c:	5b 92 00 28 	sw (sp+40),r18                                 <== NOT EXECUTED
 8018d80:	5b 93 00 24 	sw (sp+36),r19                                 <== NOT EXECUTED
 8018d84:	5b 94 00 20 	sw (sp+32),r20                                 <== NOT EXECUTED
 8018d88:	5b 95 00 1c 	sw (sp+28),r21                                 <== NOT EXECUTED
 8018d8c:	5b 96 00 18 	sw (sp+24),r22                                 <== NOT EXECUTED
 8018d90:	5b 97 00 14 	sw (sp+20),r23                                 <== NOT EXECUTED
 8018d94:	5b 98 00 10 	sw (sp+16),r24                                 <== NOT EXECUTED
 8018d98:	5b 99 00 0c 	sw (sp+12),r25                                 <== NOT EXECUTED
 8018d9c:	5b 9b 00 08 	sw (sp+8),fp                                   <== NOT EXECUTED
 8018da0:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
    fat_file_fd_t     *fat_fd = iop->pathinfo.node_access;            
 8018da4:	28 34 00 14 	lw r20,(r1+20)                                 <== NOT EXECUTED
 *     the number of bytes read on success, or -1 if error occured (errno
 *     set apropriately).                                             
 */                                                                   
ssize_t                                                               
msdos_dir_read(rtems_libio_t *iop, void *buffer, size_t count)        
{                                                                     
 8018da8:	b8 60 58 00 	mv r11,r3                                      <== NOT EXECUTED
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
 8018dac:	28 23 00 20 	lw r3,(r1+32)                                  <== NOT EXECUTED
     * too, so read such set of sectors is quick operation for low-level IO
     * layer.                                                         
     */                                                               
    bts2rd = (FAT_FD_OF_ROOT_DIR(fat_fd) &&                           
             (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16))) ?     
             fat_fd->fat_file_size                              :     
 8018db0:	2a 84 00 20 	lw r4,(r20+32)                                 <== NOT EXECUTED
 *     the number of bytes read on success, or -1 if error occured (errno
 *     set apropriately).                                             
 */                                                                   
ssize_t                                                               
msdos_dir_read(rtems_libio_t *iop, void *buffer, size_t count)        
{                                                                     
 8018db4:	5b 82 00 54 	sw (sp+84),r2                                  <== NOT EXECUTED
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
 8018db8:	28 71 00 08 	lw r17,(r3+8)                                  <== NOT EXECUTED
    fat_file_fd_t     *fat_fd = iop->pathinfo.node_access;            
    fat_file_fd_t     *tmp_fat_fd = NULL;                             
 8018dbc:	5b 80 01 7c 	sw (sp+380),r0                                 <== NOT EXECUTED
    uint32_t           start = 0;                                     
    ssize_t            ret = 0;                                       
    uint32_t           cmpltd = 0;                                    
    uint32_t           j = 0, i = 0;                                  
    uint32_t           bts2rd = 0;                                    
    uint32_t           cur_cln = 0;                                   
 8018dc0:	5b 80 01 78 	sw (sp+376),r0                                 <== NOT EXECUTED
     * too, so read such set of sectors is quick operation for low-level IO
     * layer.                                                         
     */                                                               
    bts2rd = (FAT_FD_OF_ROOT_DIR(fat_fd) &&                           
             (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16))) ?     
             fat_fd->fat_file_size                              :     
 8018dc4:	34 03 00 01 	mvi r3,1                                       <== NOT EXECUTED
 *     the number of bytes read on success, or -1 if error occured (errno
 *     set apropriately).                                             
 */                                                                   
ssize_t                                                               
msdos_dir_read(rtems_libio_t *iop, void *buffer, size_t count)        
{                                                                     
 8018dc8:	b8 20 98 00 	mv r19,r1                                      <== NOT EXECUTED
    /*                                                                
     * cast start and count - protect against using sizes that are not exact
     * multiples of the -dirent- size. These could result in unexpected
     * results                                                        
     */                                                               
    start = iop->offset / sizeof(struct dirent);                      
 8018dcc:	28 2c 00 04 	lw r12,(r1+4)                                  <== NOT EXECUTED
     * too, so read such set of sectors is quick operation for low-level IO
     * layer.                                                         
     */                                                               
    bts2rd = (FAT_FD_OF_ROOT_DIR(fat_fd) &&                           
             (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16))) ?     
             fat_fd->fat_file_size                              :     
 8018dd0:	5c 83 00 09 	bne r4,r3,8018df4 <msdos_dir_read+0x98>        <== NOT EXECUTED
     * optimization: we know that root directory for FAT12/16 volumes is
     * sequential set of sectors and any cluster is sequential set of sectors
     * too, so read such set of sectors is quick operation for low-level IO
     * layer.                                                         
     */                                                               
    bts2rd = (FAT_FD_OF_ROOT_DIR(fat_fd) &&                           
 8018dd4:	2a 84 00 24 	lw r4,(r20+36)                                 <== NOT EXECUTED
 8018dd8:	5c 80 00 07 	bne r4,r0,8018df4 <msdos_dir_read+0x98>        <== NOT EXECUTED
             (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16))) ?     
 8018ddc:	42 23 00 0e 	lbu r3,(r17+14)                                <== NOT EXECUTED
 8018de0:	20 63 00 03 	andi r3,r3,0x3                                 <== NOT EXECUTED
     * optimization: we know that root directory for FAT12/16 volumes is
     * sequential set of sectors and any cluster is sequential set of sectors
     * too, so read such set of sectors is quick operation for low-level IO
     * layer.                                                         
     */                                                               
    bts2rd = (FAT_FD_OF_ROOT_DIR(fat_fd) &&                           
 8018de4:	44 64 00 04 	be r3,r4,8018df4 <msdos_dir_read+0x98>         <== NOT EXECUTED
             (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16))) ?     
             fat_fd->fat_file_size                              :     
 8018de8:	2a 81 00 18 	lw r1,(r20+24)                                 <== NOT EXECUTED
 8018dec:	5b 81 00 48 	sw (sp+72),r1                                  <== NOT EXECUTED
 8018df0:	e0 00 00 03 	bi 8018dfc <msdos_dir_read+0xa0>               <== NOT EXECUTED
 8018df4:	2e 22 00 06 	lhu r2,(r17+6)                                 <== NOT EXECUTED
 8018df8:	5b 82 00 48 	sw (sp+72),r2                                  <== NOT EXECUTED
             fs_info->fat.vol.bpc;                                    
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
 8018dfc:	2a 21 00 9c 	lw r1,(r17+156)                                <== NOT EXECUTED
 8018e00:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 8018e04:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 8018e08:	fb ff b2 9b 	calli 8005874 <rtems_semaphore_obtain>         <== NOT EXECUTED
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
 8018e0c:	5c 20 00 29 	bne r1,r0,8018eb0 <msdos_dir_read+0x154>       <== NOT EXECUTED
    /*                                                                
     * cast start and count - protect against using sizes that are not exact
     * multiples of the -dirent- size. These could result in unexpected
     * results                                                        
     */                                                               
    start = iop->offset / sizeof(struct dirent);                      
 8018e10:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8018e14:	34 02 01 0c 	mvi r2,268                                     <== NOT EXECUTED
 8018e18:	f8 00 4d 4e 	calli 802c350 <__udivsi3>                      <== NOT EXECUTED
    count = (count / sizeof(struct dirent)) * sizeof(struct dirent);  
 8018e1c:	34 02 01 0c 	mvi r2,268                                     <== NOT EXECUTED
    /*                                                                
     * cast start and count - protect against using sizes that are not exact
     * multiples of the -dirent- size. These could result in unexpected
     * results                                                        
     */                                                               
    start = iop->offset / sizeof(struct dirent);                      
 8018e20:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
    count = (count / sizeof(struct dirent)) * sizeof(struct dirent);  
 8018e24:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8018e28:	f8 00 4d 4a 	calli 802c350 <__udivsi3>                      <== NOT EXECUTED
 8018e2c:	34 02 01 0c 	mvi r2,268                                     <== NOT EXECUTED
 8018e30:	fb ff a1 3c 	calli 8001320 <__mulsi3>                       <== NOT EXECUTED
   * copy base name to destination                                    
   */                                                                 
  src_tmp = src;                                                      
  len = i;                                                            
  while (i-- > 0) {                                                   
    *dst++ = tolower((unsigned char)(*src_tmp++));                    
 8018e34:	78 17 08 02 	mvhi r23,0x802                                 <== NOT EXECUTED
 8018e38:	3a f7 f2 2c 	ori r23,r23,0xf22c                             <== NOT EXECUTED
     * cast start and count - protect against using sizes that are not exact
     * multiples of the -dirent- size. These could result in unexpected
     * results                                                        
     */                                                               
    start = iop->offset / sizeof(struct dirent);                      
    count = (count / sizeof(struct dirent)) * sizeof(struct dirent);  
 8018e3c:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 8018e40:	5b 94 00 4c 	sw (sp+76),r20                                 <== NOT EXECUTED
 8018e44:	5b 97 00 50 	sw (sp+80),r23                                 <== NOT EXECUTED
 8018e48:	b8 20 d8 00 	mv fp,r1                                       <== NOT EXECUTED
 8018e4c:	34 16 00 00 	mvi r22,0                                      <== NOT EXECUTED
 8018e50:	34 12 00 00 	mvi r18,0                                      <== NOT EXECUTED
 8018e54:	34 10 ff ff 	mvi r16,-1                                     <== NOT EXECUTED
 8018e58:	34 15 00 00 	mvi r21,0                                      <== NOT EXECUTED
    fat_dir_pos_t *dir_pos                                            
    )                                                                 
{                                                                     
  dir_pos->sname.cln = 0;                                             
  dir_pos->sname.ofs = 0;                                             
  dir_pos->lname.cln = FAT_FILE_SHORT_NAME;                           
 8018e5c:	34 19 ff ff 	mvi r25,-1                                     <== NOT EXECUTED
  /*                                                                  
   * find last non-blank character of base name                       
   */                                                                 
  for ((i       =       MSDOS_SHORT_BASE_LEN  ,                       
	src_tmp = src + MSDOS_SHORT_BASE_LEN-1);                             
       ((i > 0) &&                                                    
 8018e60:	34 18 00 20 	mvi r24,32                                     <== NOT EXECUTED
 8018e64:	b8 60 a0 00 	mv r20,r3                                      <== NOT EXECUTED
 8018e68:	ba 60 b8 00 	mv r23,r19                                     <== NOT EXECUTED
 8018e6c:	e0 00 00 da 	bi 80191d4 <msdos_dir_read+0x478>              <== NOT EXECUTED
         * fat-file is already opened by open call, so read it        
         * Always read directory fat-file from the beggining because of MSDOS
         * directories feature :( - we should count elements currently
         * present in the directory because there may be holes :)     
         */                                                           
        ret = fat_file_read(&fs_info->fat, fat_fd, (j * bts2rd),      
 8018e70:	2b 82 00 4c 	lw r2,(sp+76)                                  <== NOT EXECUTED
 8018e74:	2b 84 00 48 	lw r4,(sp+72)                                  <== NOT EXECUTED
 8018e78:	2a 25 00 a0 	lw r5,(r17+160)                                <== NOT EXECUTED
 8018e7c:	ba 20 08 00 	mv r1,r17                                      <== NOT EXECUTED
 8018e80:	ba c0 18 00 	mv r3,r22                                      <== NOT EXECUTED
 8018e84:	fb ff d8 e8 	calli 800f224 <fat_file_read>                  <== NOT EXECUTED
 8018e88:	b8 20 98 00 	mv r19,r1                                      <== NOT EXECUTED
                            bts2rd, fs_info->cl_buf);                 
        if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)                  
 8018e8c:	34 01 00 1f 	mvi r1,31                                      <== NOT EXECUTED
 8018e90:	4c 33 00 06 	bge r1,r19,8018ea8 <msdos_dir_read+0x14c>      <== NOT EXECUTED
 8018e94:	34 0e 00 00 	mvi r14,0                                      <== NOT EXECUTED
 8018e98:	5b 93 00 58 	sw (sp+88),r19                                 <== NOT EXECUTED
 8018e9c:	b9 c0 78 00 	mv r15,r14                                     <== NOT EXECUTED
 8018ea0:	b9 80 98 00 	mv r19,r12                                     <== NOT EXECUTED
 8018ea4:	e0 00 00 c7 	bi 80191c0 <msdos_dir_read+0x464>              <== NOT EXECUTED
        {                                                             
            rtems_semaphore_release(fs_info->vol_sema);               
 8018ea8:	2a 21 00 9c 	lw r1,(r17+156)                                <== NOT EXECUTED
 8018eac:	fb ff b2 c2 	calli 80059b4 <rtems_semaphore_release>        <== NOT EXECUTED
            rtems_set_errno_and_return_minus_one(EIO);                
 8018eb0:	f8 00 02 d7 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 8018eb4:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 8018eb8:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 8018ebc:	34 0d ff ff 	mvi r13,-1                                     <== NOT EXECUTED
 8018ec0:	e0 00 00 c9 	bi 80191e4 <msdos_dir_read+0x488>              <== NOT EXECUTED
        }                                                             
                                                                      
        for (i = 0; i < ret; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)  
        {                                                             
            char* entry = (char*) fs_info->cl_buf + i;                
 8018ec4:	2a 23 00 a0 	lw r3,(r17+160)                                <== NOT EXECUTED
 8018ec8:	b4 6f 70 00 	add r14,r3,r15                                 <== NOT EXECUTED
                                                                      
            /*                                                        
             * Is this directory from here on empty ?                 
             */                                                       
            if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==                     
 8018ecc:	41 cc 00 00 	lbu r12,(r14+0)                                <== NOT EXECUTED
 8018ed0:	45 80 00 c2 	be r12,r0,80191d8 <msdos_dir_read+0x47c>       <== NOT EXECUTED
                rtems_semaphore_release(fs_info->vol_sema);           
                return cmpltd;                                        
            }                                                         
                                                                      
            /* Is the directory entry empty */                        
            if ((*MSDOS_DIR_ENTRY_TYPE(entry)) == MSDOS_THIS_DIR_ENTRY_EMPTY)
 8018ed4:	34 02 00 e5 	mvi r2,229                                     <== NOT EXECUTED
 8018ed8:	45 82 00 b9 	be r12,r2,80191bc <msdos_dir_read+0x460>       <== NOT EXECUTED
                continue;                                             
                                                                      
            /* Is the directory entry empty a volume label */         
            if (((*MSDOS_DIR_ATTR(entry)) & MSDOS_ATTR_VOLUME_ID) &&  
 8018edc:	41 c3 00 0b 	lbu r3,(r14+11)                                <== NOT EXECUTED
 8018ee0:	20 65 00 08 	andi r5,r3,0x8                                 <== NOT EXECUTED
 8018ee4:	44 a0 00 04 	be r5,r0,8018ef4 <msdos_dir_read+0x198>        <== NOT EXECUTED
                ((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) != MSDOS_ATTR_LFN))
 8018ee8:	20 65 00 3f 	andi r5,r3,0x3f                                <== NOT EXECUTED
            /* Is the directory entry empty */                        
            if ((*MSDOS_DIR_ENTRY_TYPE(entry)) == MSDOS_THIS_DIR_ENTRY_EMPTY)
                continue;                                             
                                                                      
            /* Is the directory entry empty a volume label */         
            if (((*MSDOS_DIR_ATTR(entry)) & MSDOS_ATTR_VOLUME_ID) &&  
 8018eec:	34 01 00 0f 	mvi r1,15                                      <== NOT EXECUTED
 8018ef0:	5c a1 00 b3 	bne r5,r1,80191bc <msdos_dir_read+0x460>       <== NOT EXECUTED
                                                                      
            /*                                                        
             * Check the attribute to see if the entry is for a long file
             * name.                                                  
             */                                                       
            if ((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) ==     
 8018ef4:	20 63 00 3f 	andi r3,r3,0x3f                                <== NOT EXECUTED
 8018ef8:	34 02 00 0f 	mvi r2,15                                      <== NOT EXECUTED
 8018efc:	5c 62 00 36 	bne r3,r2,8018fd4 <msdos_dir_read+0x278>       <== NOT EXECUTED
                int   q;                                              
                                                                      
                /*                                                    
                 * Is this is the first entry of a LFN ?              
                 */                                                   
                if (lfn_start == FAT_FILE_SHORT_NAME)                 
 8018f00:	5e 19 00 0d 	bne r16,r25,8018f34 <msdos_dir_read+0x1d8>     <== NOT EXECUTED
                {                                                     
                    /*                                                
                     * The first entry must have the last long entry flag set.
                     */                                               
                    if ((*MSDOS_DIR_ENTRY_TYPE(entry) &               
 8018f04:	21 83 00 40 	andi r3,r12,0x40                               <== NOT EXECUTED
 8018f08:	44 60 00 ad 	be r3,r0,80191bc <msdos_dir_read+0x460>        <== NOT EXECUTED
                        continue;                                     
                                                                      
                    /*                                                
                     * Remember the start location of the long file name.
                     */                                               
                    lfn_start =                                       
 8018f0c:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 8018f10:	b5 f6 08 00 	add r1,r15,r22                                 <== NOT EXECUTED
 8018f14:	f8 00 4c bf 	calli 802c210 <__lshrsi3>                      <== NOT EXECUTED
 8018f18:	b8 20 80 00 	mv r16,r1                                      <== NOT EXECUTED
                     * also the checksum of the short entry.          
                     */                                               
                    lfn_entries = (*MSDOS_DIR_ENTRY_TYPE(entry) &     
                                   MSDOS_LAST_LONG_ENTRY_MASK);       
                    lfn_checksum = *MSDOS_DIR_LFN_CHECKSUM(entry);    
                    memset (tmp_dirent.d_name, 0, sizeof(tmp_dirent.d_name));
 8018f1c:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 8018f20:	37 81 00 68 	addi r1,sp,104                                 <== NOT EXECUTED
 8018f24:	34 03 01 00 	mvi r3,256                                     <== NOT EXECUTED
                                                                      
                    /*                                                
                     * Get the number of entries so we can count down and
                     * also the checksum of the short entry.          
                     */                                               
                    lfn_entries = (*MSDOS_DIR_ENTRY_TYPE(entry) &     
 8018f28:	21 92 00 3f 	andi r18,r12,0x3f                              <== NOT EXECUTED
                                   MSDOS_LAST_LONG_ENTRY_MASK);       
                    lfn_checksum = *MSDOS_DIR_LFN_CHECKSUM(entry);    
 8018f2c:	41 d4 00 0d 	lbu r20,(r14+13)                               <== NOT EXECUTED
                    memset (tmp_dirent.d_name, 0, sizeof(tmp_dirent.d_name));
 8018f30:	f8 00 06 46 	calli 801a848 <memset>                         <== NOT EXECUTED
                 * If the entry number or the check sum do not match  
                 * forget this series of long directory entries. These could
                 * be orphaned entries depending on the history of the
                 * disk.                                              
                 */                                                   
                if ((lfn_entries != (*MSDOS_DIR_ENTRY_TYPE(entry) &   
 8018f34:	41 c3 00 00 	lbu r3,(r14+0)                                 <== NOT EXECUTED
 8018f38:	20 63 00 3f 	andi r3,r3,0x3f                                <== NOT EXECUTED
 8018f3c:	5e 43 00 9f 	bne r18,r3,80191b8 <msdos_dir_read+0x45c>      <== NOT EXECUTED
                                     MSDOS_LAST_LONG_ENTRY_MASK)) ||  
 8018f40:	41 c3 00 0d 	lbu r3,(r14+13)                                <== NOT EXECUTED
 8018f44:	5c 74 00 9d 	bne r3,r20,80191b8 <msdos_dir_read+0x45c>      <== NOT EXECUTED
                 * The DOS maximum length is 255 characters without the
                 * trailing nul character. We need to range check the length to
                 * fit in the directory entry name field.             
                 */                                                   
                                                                      
                lfn_entries--;                                        
 8018f48:	36 52 ff ff 	addi r18,r18,-1                                <== NOT EXECUTED
                p = entry + 1;                                        
                o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;            
 8018f4c:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 8018f50:	ba 40 08 00 	mv r1,r18                                      <== NOT EXECUTED
 8018f54:	fb ff a0 a5 	calli 80011e8 <__ashlsi3>                      <== NOT EXECUTED
 8018f58:	b4 32 08 00 	add r1,r1,r18                                  <== NOT EXECUTED
 8018f5c:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
 8018f60:	fb ff a0 a2 	calli 80011e8 <__ashlsi3>                      <== NOT EXECUTED
 8018f64:	b4 32 38 00 	add r7,r1,r18                                  <== NOT EXECUTED
 * RETURNS:                                                           
 *     the number of bytes read on success, or -1 if error occured (errno
 *     set apropriately).                                             
 */                                                                   
ssize_t                                                               
msdos_dir_read(rtems_libio_t *iop, void *buffer, size_t count)        
 8018f68:	37 81 00 5c 	addi r1,sp,92                                  <== NOT EXECUTED
 8018f6c:	b4 27 18 00 	add r3,r1,r7                                   <== NOT EXECUTED
                 * trailing nul character. We need to range check the length to
                 * fit in the directory entry name field.             
                 */                                                   
                                                                      
                lfn_entries--;                                        
                p = entry + 1;                                        
 8018f70:	35 cb 00 01 	addi r11,r14,1                                 <== NOT EXECUTED
 * RETURNS:                                                           
 *     the number of bytes read on success, or -1 if error occured (errno
 *     set apropriately).                                             
 */                                                                   
ssize_t                                                               
msdos_dir_read(rtems_libio_t *iop, void *buffer, size_t count)        
 8018f74:	34 68 00 0c 	addi r8,r3,12                                  <== NOT EXECUTED
                                                                      
                lfn_entries--;                                        
                p = entry + 1;                                        
                o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;            
                                                                      
                for (q = 0; q < MSDOS_LFN_LEN_PER_ENTRY; q++)         
 8018f78:	34 06 00 00 	mvi r6,0                                       <== NOT EXECUTED
                {                                                     
                    if (o >= (sizeof(tmp_dirent.d_name) - 1))         
 8018f7c:	34 02 00 fe 	mvi r2,254                                     <== NOT EXECUTED
 8018f80:	54 e2 00 8f 	bgu r7,r2,80191bc <msdos_dir_read+0x460>       <== NOT EXECUTED
                        break;                                        
                                                                      
                    tmp_dirent.d_name[o++] = *p;                      
 8018f84:	41 61 00 00 	lbu r1,(r11+0)                                 <== NOT EXECUTED
 8018f88:	31 01 00 00 	sb (r8+0),r1                                   <== NOT EXECUTED
                                                                      
                    if (*p == '\0')                                   
 8018f8c:	41 61 00 00 	lbu r1,(r11+0)                                 <== NOT EXECUTED
 8018f90:	44 20 00 8b 	be r1,r0,80191bc <msdos_dir_read+0x460>        <== NOT EXECUTED
                        break;                                        
                                                                      
                    switch (q)                                        
 8018f94:	34 01 00 04 	mvi r1,4                                       <== NOT EXECUTED
 8018f98:	44 c1 00 04 	be r6,r1,8018fa8 <msdos_dir_read+0x24c>        <== NOT EXECUTED
 8018f9c:	34 02 00 0a 	mvi r2,10                                      <== NOT EXECUTED
 8018fa0:	5c c2 00 06 	bne r6,r2,8018fb8 <msdos_dir_read+0x25c>       <== NOT EXECUTED
 8018fa4:	e0 00 00 03 	bi 8018fb0 <msdos_dir_read+0x254>              <== NOT EXECUTED
                    {                                                 
                        case 4:                                       
                            p += 5;                                   
 8018fa8:	35 6b 00 05 	addi r11,r11,5                                 <== NOT EXECUTED
                            break;                                    
 8018fac:	e0 00 00 04 	bi 8018fbc <msdos_dir_read+0x260>              <== NOT EXECUTED
                        case 10:                                      
                            p += 4;                                   
 8018fb0:	35 6b 00 04 	addi r11,r11,4                                 <== NOT EXECUTED
                            break;                                    
 8018fb4:	e0 00 00 02 	bi 8018fbc <msdos_dir_read+0x260>              <== NOT EXECUTED
                        default:                                      
                            p += 2;                                   
 8018fb8:	35 6b 00 02 	addi r11,r11,2                                 <== NOT EXECUTED
                                                                      
                lfn_entries--;                                        
                p = entry + 1;                                        
                o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;            
                                                                      
                for (q = 0; q < MSDOS_LFN_LEN_PER_ENTRY; q++)         
 8018fbc:	34 c6 00 01 	addi r6,r6,1                                   <== NOT EXECUTED
 8018fc0:	34 01 00 0d 	mvi r1,13                                      <== NOT EXECUTED
 8018fc4:	35 08 00 01 	addi r8,r8,1                                   <== NOT EXECUTED
 8018fc8:	44 c1 00 7d 	be r6,r1,80191bc <msdos_dir_read+0x460>        <== NOT EXECUTED
                {                                                     
                    if (o >= (sizeof(tmp_dirent.d_name) - 1))         
                        break;                                        
                                                                      
                    tmp_dirent.d_name[o++] = *p;                      
 8018fcc:	34 e7 00 01 	addi r7,r7,1                                   <== NOT EXECUTED
 8018fd0:	e3 ff ff eb 	bi 8018f7c <msdos_dir_read+0x220>              <== NOT EXECUTED
                fat_dir_pos_t dir_pos;                                
                                                                      
                /*                                                    
                 * Skip active entries until get the entry to start from.
                 */                                                   
                if (start)                                            
 8018fd4:	46 60 00 03 	be r19,r0,8018fe0 <msdos_dir_read+0x284>       <== NOT EXECUTED
                {                                                     
                    lfn_start = FAT_FILE_SHORT_NAME;                  
                    start--;                                          
 8018fd8:	36 73 ff ff 	addi r19,r19,-1                                <== NOT EXECUTED
 8018fdc:	e0 00 00 77 	bi 80191b8 <msdos_dir_read+0x45c>              <== NOT EXECUTED
                 * unfortunately there is no method to extract ino except to
                 * open fat-file descriptor :( ... so, open it        
                 */                                                   
                                                                      
                /* get number of cluster we are working with */       
                rc = fat_file_ioctl(&fs_info->fat, fat_fd, F_CLU_NUM, 
 8018fe0:	2b 82 00 4c 	lw r2,(sp+76)                                  <== NOT EXECUTED
 8018fe4:	ba 20 08 00 	mv r1,r17                                      <== NOT EXECUTED
 8018fe8:	34 03 00 01 	mvi r3,1                                       <== NOT EXECUTED
 8018fec:	ba c0 20 00 	mv r4,r22                                      <== NOT EXECUTED
 8018ff0:	37 85 01 78 	addi r5,sp,376                                 <== NOT EXECUTED
 8018ff4:	fb ff d9 91 	calli 800f638 <fat_file_ioctl>                 <== NOT EXECUTED
 8018ff8:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
                                    j * bts2rd, &cur_cln);            
                if (rc != RC_OK)                                      
 8018ffc:	5c 33 00 68 	bne r1,r19,801919c <msdos_dir_read+0x440>      <== NOT EXECUTED
                    rtems_semaphore_release(fs_info->vol_sema);       
                    return rc;                                        
                }                                                     
                                                                      
                fat_dir_pos_init(&dir_pos);                           
                dir_pos.sname.cln = cur_cln;                          
 8019000:	2b 83 01 78 	lw r3,(sp+376)                                 <== NOT EXECUTED
                dir_pos.sname.ofs = i;                                
                rc = fat_file_open(&fs_info->fat, &dir_pos, &tmp_fat_fd);
 8019004:	ba 20 08 00 	mv r1,r17                                      <== NOT EXECUTED
 8019008:	37 82 01 68 	addi r2,sp,360                                 <== NOT EXECUTED
                    rtems_semaphore_release(fs_info->vol_sema);       
                    return rc;                                        
                }                                                     
                                                                      
                fat_dir_pos_init(&dir_pos);                           
                dir_pos.sname.cln = cur_cln;                          
 801900c:	5b 83 01 68 	sw (sp+360),r3                                 <== NOT EXECUTED
                dir_pos.sname.ofs = i;                                
                rc = fat_file_open(&fs_info->fat, &dir_pos, &tmp_fat_fd);
 8019010:	37 83 01 7c 	addi r3,sp,380                                 <== NOT EXECUTED
 8019014:	5b 99 01 70 	sw (sp+368),r25                                <== NOT EXECUTED
  dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;                           
 8019018:	5b 99 01 74 	sw (sp+372),r25                                <== NOT EXECUTED
                    return rc;                                        
                }                                                     
                                                                      
                fat_dir_pos_init(&dir_pos);                           
                dir_pos.sname.cln = cur_cln;                          
                dir_pos.sname.ofs = i;                                
 801901c:	5b 8f 01 6c 	sw (sp+364),r15                                <== NOT EXECUTED
                rc = fat_file_open(&fs_info->fat, &dir_pos, &tmp_fat_fd);
 8019020:	fb ff d8 1b 	calli 800f08c <fat_file_open>                  <== NOT EXECUTED
 8019024:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
                if (rc != RC_OK)                                      
 8019028:	5c 20 00 5d 	bne r1,r0,801919c <msdos_dir_read+0x440>       <== NOT EXECUTED
                                                                      
                /* fill in dirent structure */                        
                /* XXX: from what and in what d_off should be computed ?! */
                tmp_dirent.d_off = start + cmpltd;                    
                tmp_dirent.d_reclen = sizeof(struct dirent);          
                tmp_dirent.d_ino = tmp_fat_fd->ino;                   
 801902c:	2b 83 01 7c 	lw r3,(sp+380)                                 <== NOT EXECUTED
                }                                                     
                                                                      
                /* fill in dirent structure */                        
                /* XXX: from what and in what d_off should be computed ?! */
                tmp_dirent.d_off = start + cmpltd;                    
                tmp_dirent.d_reclen = sizeof(struct dirent);          
 8019030:	34 02 01 0c 	mvi r2,268                                     <== NOT EXECUTED
                    return rc;                                        
                }                                                     
                                                                      
                /* fill in dirent structure */                        
                /* XXX: from what and in what d_off should be computed ?! */
                tmp_dirent.d_off = start + cmpltd;                    
 8019034:	5b 95 00 60 	sw (sp+96),r21                                 <== NOT EXECUTED
                tmp_dirent.d_reclen = sizeof(struct dirent);          
                tmp_dirent.d_ino = tmp_fat_fd->ino;                   
 8019038:	28 63 00 0c 	lw r3,(r3+12)                                  <== NOT EXECUTED
                }                                                     
                                                                      
                /* fill in dirent structure */                        
                /* XXX: from what and in what d_off should be computed ?! */
                tmp_dirent.d_off = start + cmpltd;                    
                tmp_dirent.d_reclen = sizeof(struct dirent);          
 801903c:	0f 82 00 64 	sh (sp+100),r2                                 <== NOT EXECUTED
                tmp_dirent.d_ino = tmp_fat_fd->ino;                   
 8019040:	5b 83 00 5c 	sw (sp+92),r3                                  <== NOT EXECUTED
                /*                                                    
                 * If a long file name check if the correct number of 
                 * entries have been found and if the checksum is correct.
                 * If not return the short file name.                 
                 */                                                   
                if (lfn_start != FAT_FILE_SHORT_NAME)                 
 8019044:	46 19 00 16 	be r16,r25,801909c <msdos_dir_read+0x340>      <== NOT EXECUTED
 8019048:	34 06 00 00 	mvi r6,0                                       <== NOT EXECUTED
 801904c:	34 0c 00 00 	mvi r12,0                                      <== NOT EXECUTED
 8019050:	b8 c0 08 00 	mv r1,r6                                       <== NOT EXECUTED
                    uint8_t  cs = 0;                                  
                    uint8_t* p = (uint8_t*) entry;                    
                    int      i;                                       
                                                                      
                    for (i = 0; i < 11; i++, p++)                     
                        cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;  
 8019054:	20 22 00 01 	andi r2,r1,0x1                                 <== NOT EXECUTED
 8019058:	34 0b 00 00 	mvi r11,0                                      <== NOT EXECUTED
 801905c:	44 40 00 02 	be r2,r0,8019064 <msdos_dir_read+0x308>        <== NOT EXECUTED
 8019060:	34 0b 00 80 	mvi r11,128                                    <== NOT EXECUTED
 8019064:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 8019068:	f8 00 4c 6a 	calli 802c210 <__lshrsi3>                      <== NOT EXECUTED
 * RETURNS:                                                           
 *     the number of bytes read on success, or -1 if error occured (errno
 *     set apropriately).                                             
 */                                                                   
ssize_t                                                               
msdos_dir_read(rtems_libio_t *iop, void *buffer, size_t count)        
 801906c:	b5 cc 10 00 	add r2,r14,r12                                 <== NOT EXECUTED
                    uint8_t  cs = 0;                                  
                    uint8_t* p = (uint8_t*) entry;                    
                    int      i;                                       
                                                                      
                    for (i = 0; i < 11; i++, p++)                     
                        cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;  
 8019070:	40 42 00 00 	lbu r2,(r2+0)                                  <== NOT EXECUTED
                {                                                     
                    uint8_t  cs = 0;                                  
                    uint8_t* p = (uint8_t*) entry;                    
                    int      i;                                       
                                                                      
                    for (i = 0; i < 11; i++, p++)                     
 8019074:	35 8c 00 01 	addi r12,r12,1                                 <== NOT EXECUTED
                        cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;  
 8019078:	b4 22 08 00 	add r1,r1,r2                                   <== NOT EXECUTED
 801907c:	b4 2b 08 00 	add r1,r1,r11                                  <== NOT EXECUTED
                {                                                     
                    uint8_t  cs = 0;                                  
                    uint8_t* p = (uint8_t*) entry;                    
                    int      i;                                       
                                                                      
                    for (i = 0; i < 11; i++, p++)                     
 8019080:	34 02 00 0b 	mvi r2,11                                      <== NOT EXECUTED
                        cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;  
 8019084:	20 21 00 ff 	andi r1,r1,0xff                                <== NOT EXECUTED
                {                                                     
                    uint8_t  cs = 0;                                  
                    uint8_t* p = (uint8_t*) entry;                    
                    int      i;                                       
                                                                      
                    for (i = 0; i < 11; i++, p++)                     
 8019088:	5d 82 ff f3 	bne r12,r2,8019054 <msdos_dir_read+0x2f8>      <== NOT EXECUTED
                        cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;  
                                                                      
                    if (lfn_entries || (lfn_checksum != cs))          
 801908c:	fe 81 58 00 	cmpne r11,r20,r1                               <== NOT EXECUTED
 8019090:	7e 45 00 00 	cmpnei r5,r18,0                                <== NOT EXECUTED
 8019094:	b9 65 58 00 	or r11,r11,r5                                  <== NOT EXECUTED
 8019098:	45 60 00 67 	be r11,r0,8019234 <msdos_dir_read+0x4d8>       <== NOT EXECUTED
                                                                      
  /*                                                                  
   * find last non-blank character of base name                       
   */                                                                 
  for ((i       =       MSDOS_SHORT_BASE_LEN  ,                       
	src_tmp = src + MSDOS_SHORT_BASE_LEN-1);                             
 801909c:	35 c5 00 07 	addi r5,r14,7                                  <== NOT EXECUTED
  const char *src_tmp;                                                
                                                                      
  /*                                                                  
   * find last non-blank character of base name                       
   */                                                                 
  for ((i       =       MSDOS_SHORT_BASE_LEN  ,                       
 80190a0:	34 08 00 08 	mvi r8,8                                       <== NOT EXECUTED
 80190a4:	e0 00 00 04 	bi 80190b4 <msdos_dir_read+0x358>              <== NOT EXECUTED
	src_tmp = src + MSDOS_SHORT_BASE_LEN-1);                             
       ((i > 0) &&                                                    
	(*src_tmp == ' '));                                                  
       i--,src_tmp--)                                                 
 80190a8:	35 08 ff ff 	addi r8,r8,-1                                  <== NOT EXECUTED
  const char *src_tmp;                                                
                                                                      
  /*                                                                  
   * find last non-blank character of base name                       
   */                                                                 
  for ((i       =       MSDOS_SHORT_BASE_LEN  ,                       
 80190ac:	45 00 00 04 	be r8,r0,80190bc <msdos_dir_read+0x360>        <== NOT EXECUTED
	src_tmp = src + MSDOS_SHORT_BASE_LEN-1);                             
       ((i > 0) &&                                                    
	(*src_tmp == ' '));                                                  
       i--,src_tmp--)                                                 
 80190b0:	34 a5 ff ff 	addi r5,r5,-1                                  <== NOT EXECUTED
  /*                                                                  
   * find last non-blank character of base name                       
   */                                                                 
  for ((i       =       MSDOS_SHORT_BASE_LEN  ,                       
	src_tmp = src + MSDOS_SHORT_BASE_LEN-1);                             
       ((i > 0) &&                                                    
 80190b4:	40 a1 00 00 	lbu r1,(r5+0)                                  <== NOT EXECUTED
 80190b8:	44 38 ff fc 	be r1,r24,80190a8 <msdos_dir_read+0x34c>       <== NOT EXECUTED
   * copy base name to destination                                    
   */                                                                 
  src_tmp = src;                                                      
  len = i;                                                            
  while (i-- > 0) {                                                   
    *dst++ = tolower((unsigned char)(*src_tmp++));                    
 80190bc:	2b 81 00 50 	lw r1,(sp+80)                                  <== NOT EXECUTED
 80190c0:	b9 00 30 00 	mv r6,r8                                       <== NOT EXECUTED
 80190c4:	b9 c0 48 00 	mv r9,r14                                      <== NOT EXECUTED
 80190c8:	28 2b 00 00 	lw r11,(r1+0)                                  <== NOT EXECUTED
                {                                                     
                    /*                                                
                     * convert dir entry from fixed 8+3 format (without dot)
                     * to 0..8 + 1dot + 0..3 format                   
                     */                                               
                    tmp_dirent.d_namlen = msdos_format_dirent_with_dot(
 80190cc:	37 87 00 68 	addi r7,sp,104                                 <== NOT EXECUTED
   * copy base name to destination                                    
   */                                                                 
  src_tmp = src;                                                      
  len = i;                                                            
  while (i-- > 0) {                                                   
    *dst++ = tolower((unsigned char)(*src_tmp++));                    
 80190d0:	34 0a 00 01 	mvi r10,1                                      <== NOT EXECUTED
 80190d4:	e0 00 00 0b 	bi 8019100 <msdos_dir_read+0x3a4>              <== NOT EXECUTED
 80190d8:	41 22 00 00 	lbu r2,(r9+0)                                  <== NOT EXECUTED
 80190dc:	35 29 00 01 	addi r9,r9,1                                   <== NOT EXECUTED
 80190e0:	b5 62 08 00 	add r1,r11,r2                                  <== NOT EXECUTED
 80190e4:	40 21 00 01 	lbu r1,(r1+1)                                  <== NOT EXECUTED
 80190e8:	20 21 00 03 	andi r1,r1,0x3                                 <== NOT EXECUTED
 80190ec:	5c 2a 00 02 	bne r1,r10,80190f4 <msdos_dir_read+0x398>      <== NOT EXECUTED
 80190f0:	34 42 00 20 	addi r2,r2,32                                  <== NOT EXECUTED
 80190f4:	30 e2 00 00 	sb (r7+0),r2                                   <== NOT EXECUTED
 80190f8:	34 c6 ff ff 	addi r6,r6,-1                                  <== NOT EXECUTED
 80190fc:	34 e7 00 01 	addi r7,r7,1                                   <== NOT EXECUTED
  /*                                                                  
   * copy base name to destination                                    
   */                                                                 
  src_tmp = src;                                                      
  len = i;                                                            
  while (i-- > 0) {                                                   
 8019100:	48 c0 ff f6 	bg r6,r0,80190d8 <msdos_dir_read+0x37c>        <== NOT EXECUTED
  /*                                                                  
   * find last non-blank character of extension                       
   */                                                                 
  for ((i       =                            MSDOS_SHORT_EXT_LEN  ,   
	src_tmp = src + MSDOS_SHORT_BASE_LEN+MSDOS_SHORT_EXT_LEN-1);         
       ((i > 0) &&                                                    
 8019104:	41 c5 00 0a 	lbu r5,(r14+10)                                <== NOT EXECUTED
 8019108:	5c b8 00 4f 	bne r5,r24,8019244 <msdos_dir_read+0x4e8>      <== NOT EXECUTED
 801910c:	41 c5 00 09 	lbu r5,(r14+9)                                 <== NOT EXECUTED
	(*src_tmp == ' '));                                                  
       i--,src_tmp--)                                                 
 8019110:	35 c6 00 09 	addi r6,r14,9                                  <== NOT EXECUTED
  /*                                                                  
   * find last non-blank character of extension                       
   */                                                                 
  for ((i       =                            MSDOS_SHORT_EXT_LEN  ,   
	src_tmp = src + MSDOS_SHORT_BASE_LEN+MSDOS_SHORT_EXT_LEN-1);         
       ((i > 0) &&                                                    
 8019114:	5c b8 00 4e 	bne r5,r24,801924c <msdos_dir_read+0x4f0>      <== NOT EXECUTED
 8019118:	40 c5 ff ff 	lbu r5,(r6+-1)                                 <== NOT EXECUTED
 801911c:	34 09 00 01 	mvi r9,1                                       <== NOT EXECUTED
 8019120:	44 b8 00 0f 	be r5,r24,801915c <msdos_dir_read+0x400>       <== NOT EXECUTED
 8019124:	e0 00 00 4b 	bi 8019250 <msdos_dir_read+0x4f4>              <== NOT EXECUTED
  if (i > 0) {                                                        
    *dst++ = '.'; /* append dot */                                    
    len += i + 1; /* extension + dot */                               
    src_tmp = src + MSDOS_SHORT_BASE_LEN;                             
    while (i-- > 0) {                                                 
      *dst++ = tolower((unsigned char)(*src_tmp++));                  
 8019128:	41 62 00 00 	lbu r2,(r11+0)                                 <== NOT EXECUTED
 801912c:	35 6b 00 01 	addi r11,r11,1                                 <== NOT EXECUTED
 8019130:	b5 82 08 00 	add r1,r12,r2                                  <== NOT EXECUTED
 8019134:	40 21 00 01 	lbu r1,(r1+1)                                  <== NOT EXECUTED
 8019138:	20 21 00 03 	andi r1,r1,0x3                                 <== NOT EXECUTED
 801913c:	5c 2a 00 02 	bne r1,r10,8019144 <msdos_dir_read+0x3e8>      <== NOT EXECUTED
 8019140:	34 42 00 20 	addi r2,r2,32                                  <== NOT EXECUTED
 8019144:	30 e2 00 00 	sb (r7+0),r2                                   <== NOT EXECUTED
 8019148:	34 c6 00 01 	addi r6,r6,1                                   <== NOT EXECUTED
 801914c:	34 e7 00 01 	addi r7,r7,1                                   <== NOT EXECUTED
 * RETURNS:                                                           
 *     the number of bytes read on success, or -1 if error occured (errno
 *     set apropriately).                                             
 */                                                                   
ssize_t                                                               
msdos_dir_read(rtems_libio_t *iop, void *buffer, size_t count)        
 8019150:	c9 26 08 00 	sub r1,r9,r6                                   <== NOT EXECUTED
 8019154:	b4 cd 40 00 	add r8,r6,r13                                  <== NOT EXECUTED
   */                                                                 
  if (i > 0) {                                                        
    *dst++ = '.'; /* append dot */                                    
    len += i + 1; /* extension + dot */                               
    src_tmp = src + MSDOS_SHORT_BASE_LEN;                             
    while (i-- > 0) {                                                 
 8019158:	48 20 ff f4 	bg r1,r0,8019128 <msdos_dir_read+0x3cc>        <== NOT EXECUTED
      *dst++ = tolower((unsigned char)(*src_tmp++));                  
      len++;                                                          
    }                                                                 
  }                                                                   
  *dst = '\0'; /* terminate string */                                 
 801915c:	30 e0 00 00 	sb (r7+0),r0                                   <== NOT EXECUTED
                {                                                     
                    /*                                                
                     * convert dir entry from fixed 8+3 format (without dot)
                     * to 0..8 + 1dot + 0..3 format                   
                     */                                               
                    tmp_dirent.d_namlen = msdos_format_dirent_with_dot(
 8019160:	0f 88 00 66 	sh (sp+102),r8                                 <== NOT EXECUTED
 8019164:	34 10 ff ff 	mvi r16,-1                                     <== NOT EXECUTED
                else                                                  
                {                                                     
                    tmp_dirent.d_namlen = strlen(tmp_dirent.d_name);  
                }                                                     
                                                                      
                memcpy(buffer + cmpltd, &tmp_dirent, sizeof(struct dirent));
 8019168:	2b 82 00 54 	lw r2,(sp+84)                                  <== NOT EXECUTED
 801916c:	34 03 01 0c 	mvi r3,268                                     <== NOT EXECUTED
 8019170:	b4 55 08 00 	add r1,r2,r21                                  <== NOT EXECUTED
 8019174:	37 82 00 5c 	addi r2,sp,92                                  <== NOT EXECUTED
 8019178:	f8 00 05 73 	calli 801a744 <memcpy>                         <== NOT EXECUTED
                                                                      
                iop->offset = iop->offset + sizeof(struct dirent);    
 801917c:	2a e3 00 04 	lw r3,(r23+4)                                  <== NOT EXECUTED
                cmpltd += (sizeof(struct dirent));                    
                count -= (sizeof(struct dirent));                     
                                                                      
                /* inode number extracted, close fat-file */          
                rc = fat_file_close(&fs_info->fat, tmp_fat_fd);       
 8019180:	2b 82 01 7c 	lw r2,(sp+380)                                 <== NOT EXECUTED
 8019184:	ba 20 08 00 	mv r1,r17                                      <== NOT EXECUTED
                    tmp_dirent.d_namlen = strlen(tmp_dirent.d_name);  
                }                                                     
                                                                      
                memcpy(buffer + cmpltd, &tmp_dirent, sizeof(struct dirent));
                                                                      
                iop->offset = iop->offset + sizeof(struct dirent);    
 8019188:	34 63 01 0c 	addi r3,r3,268                                 <== NOT EXECUTED
 801918c:	5a e3 00 04 	sw (r23+4),r3                                  <== NOT EXECUTED
                cmpltd += (sizeof(struct dirent));                    
                count -= (sizeof(struct dirent));                     
                                                                      
                /* inode number extracted, close fat-file */          
                rc = fat_file_close(&fs_info->fat, tmp_fat_fd);       
 8019190:	fb ff d8 f8 	calli 800f570 <fat_file_close>                 <== NOT EXECUTED
 8019194:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
                if (rc != RC_OK)                                      
 8019198:	44 20 00 04 	be r1,r0,80191a8 <msdos_dir_read+0x44c>        <== NOT EXECUTED
                {                                                     
                    rtems_semaphore_release(fs_info->vol_sema);       
 801919c:	2a 21 00 9c 	lw r1,(r17+156)                                <== NOT EXECUTED
 80191a0:	fb ff b2 05 	calli 80059b4 <rtems_semaphore_release>        <== NOT EXECUTED
                    return rc;                                        
 80191a4:	e0 00 00 10 	bi 80191e4 <msdos_dir_read+0x488>              <== NOT EXECUTED
                                                                      
                memcpy(buffer + cmpltd, &tmp_dirent, sizeof(struct dirent));
                                                                      
                iop->offset = iop->offset + sizeof(struct dirent);    
                cmpltd += (sizeof(struct dirent));                    
                count -= (sizeof(struct dirent));                     
 80191a8:	37 7b fe f4 	addi fp,fp,-268                                <== NOT EXECUTED
                }                                                     
                                                                      
                memcpy(buffer + cmpltd, &tmp_dirent, sizeof(struct dirent));
                                                                      
                iop->offset = iop->offset + sizeof(struct dirent);    
                cmpltd += (sizeof(struct dirent));                    
 80191ac:	36 b5 01 0c 	addi r21,r21,268                               <== NOT EXECUTED
                    rtems_semaphore_release(fs_info->vol_sema);       
                    return rc;                                        
                }                                                     
            }                                                         
                                                                      
            if (count <= 0)                                           
 80191b0:	5f 61 00 03 	bne fp,r1,80191bc <msdos_dir_read+0x460>       <== NOT EXECUTED
 80191b4:	e0 00 00 05 	bi 80191c8 <msdos_dir_read+0x46c>              <== NOT EXECUTED
                 */                                                   
                if ((lfn_entries != (*MSDOS_DIR_ENTRY_TYPE(entry) &   
                                     MSDOS_LAST_LONG_ENTRY_MASK)) ||  
                    (lfn_checksum != *MSDOS_DIR_LFN_CHECKSUM(entry))) 
                {                                                     
                    lfn_start = FAT_FILE_SHORT_NAME;                  
 80191b8:	34 10 ff ff 	mvi r16,-1                                     <== NOT EXECUTED
        {                                                             
            rtems_semaphore_release(fs_info->vol_sema);               
            rtems_set_errno_and_return_minus_one(EIO);                
        }                                                             
                                                                      
        for (i = 0; i < ret; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)  
 80191bc:	35 ef 00 20 	addi r15,r15,32                                <== NOT EXECUTED
 80191c0:	2b 81 00 58 	lw r1,(sp+88)                                  <== NOT EXECUTED
 80191c4:	54 2f ff 40 	bgu r1,r15,8018ec4 <msdos_dir_read+0x168>      <== NOT EXECUTED
 80191c8:	2b 82 00 48 	lw r2,(sp+72)                                  <== NOT EXECUTED
 80191cc:	ba 60 60 00 	mv r12,r19                                     <== NOT EXECUTED
 80191d0:	b6 c2 b0 00 	add r22,r22,r2                                 <== NOT EXECUTED
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    while (count > 0)                                                 
 80191d4:	5f 60 ff 27 	bne fp,r0,8018e70 <msdos_dir_read+0x114>       <== NOT EXECUTED
                break;                                                
        }                                                             
        j++;                                                          
    }                                                                 
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
 80191d8:	2a 21 00 9c 	lw r1,(r17+156)                                <== NOT EXECUTED
    return cmpltd;                                                    
 80191dc:	ba a0 68 00 	mv r13,r21                                     <== NOT EXECUTED
                break;                                                
        }                                                             
        j++;                                                          
    }                                                                 
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
 80191e0:	fb ff b1 f5 	calli 80059b4 <rtems_semaphore_release>        <== NOT EXECUTED
    return cmpltd;                                                    
}                                                                     
 80191e4:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 80191e8:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 80191ec:	2b 8b 00 44 	lw r11,(sp+68)                                 <== NOT EXECUTED
 80191f0:	2b 8c 00 40 	lw r12,(sp+64)                                 <== NOT EXECUTED
 80191f4:	2b 8d 00 3c 	lw r13,(sp+60)                                 <== NOT EXECUTED
 80191f8:	2b 8e 00 38 	lw r14,(sp+56)                                 <== NOT EXECUTED
 80191fc:	2b 8f 00 34 	lw r15,(sp+52)                                 <== NOT EXECUTED
 8019200:	2b 90 00 30 	lw r16,(sp+48)                                 <== NOT EXECUTED
 8019204:	2b 91 00 2c 	lw r17,(sp+44)                                 <== NOT EXECUTED
 8019208:	2b 92 00 28 	lw r18,(sp+40)                                 <== NOT EXECUTED
 801920c:	2b 93 00 24 	lw r19,(sp+36)                                 <== NOT EXECUTED
 8019210:	2b 94 00 20 	lw r20,(sp+32)                                 <== NOT EXECUTED
 8019214:	2b 95 00 1c 	lw r21,(sp+28)                                 <== NOT EXECUTED
 8019218:	2b 96 00 18 	lw r22,(sp+24)                                 <== NOT EXECUTED
 801921c:	2b 97 00 14 	lw r23,(sp+20)                                 <== NOT EXECUTED
 8019220:	2b 98 00 10 	lw r24,(sp+16)                                 <== NOT EXECUTED
 8019224:	2b 99 00 0c 	lw r25,(sp+12)                                 <== NOT EXECUTED
 8019228:	2b 9b 00 08 	lw fp,(sp+8)                                   <== NOT EXECUTED
 801922c:	37 9c 01 7c 	addi sp,sp,380                                 <== NOT EXECUTED
 8019230:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                    tmp_dirent.d_namlen = msdos_format_dirent_with_dot(
                        tmp_dirent.d_name, entry); /* src text */     
                }                                                     
                else                                                  
                {                                                     
                    tmp_dirent.d_namlen = strlen(tmp_dirent.d_name);  
 8019234:	37 81 00 68 	addi r1,sp,104                                 <== NOT EXECUTED
 8019238:	f8 00 09 f9 	calli 801ba1c <strlen>                         <== NOT EXECUTED
 801923c:	0f 81 00 66 	sh (sp+102),r1                                 <== NOT EXECUTED
 8019240:	e3 ff ff ca 	bi 8019168 <msdos_dir_read+0x40c>              <== NOT EXECUTED
    *dst++ = tolower((unsigned char)(*src_tmp++));                    
  }                                                                   
  /*                                                                  
   * find last non-blank character of extension                       
   */                                                                 
  for ((i       =                            MSDOS_SHORT_EXT_LEN  ,   
 8019244:	34 09 00 03 	mvi r9,3                                       <== NOT EXECUTED
 8019248:	e0 00 00 02 	bi 8019250 <msdos_dir_read+0x4f4>              <== NOT EXECUTED
	src_tmp = src + MSDOS_SHORT_BASE_LEN+MSDOS_SHORT_EXT_LEN-1);         
       ((i > 0) &&                                                    
	(*src_tmp == ' '));                                                  
       i--,src_tmp--)                                                 
 801924c:	34 09 00 02 	mvi r9,2                                       <== NOT EXECUTED
    {};                                                               
  /*                                                                  
   * extension is not empty                                           
   */                                                                 
  if (i > 0) {                                                        
    *dst++ = '.'; /* append dot */                                    
 8019250:	34 01 00 2e 	mvi r1,46                                      <== NOT EXECUTED
 8019254:	30 e1 00 00 	sb (r7+0),r1                                   <== NOT EXECUTED
    len += i + 1; /* extension + dot */                               
    src_tmp = src + MSDOS_SHORT_BASE_LEN;                             
    while (i-- > 0) {                                                 
      *dst++ = tolower((unsigned char)(*src_tmp++));                  
 8019258:	2b 82 00 50 	lw r2,(sp+80)                                  <== NOT EXECUTED
  /*                                                                  
   * extension is not empty                                           
   */                                                                 
  if (i > 0) {                                                        
    *dst++ = '.'; /* append dot */                                    
    len += i + 1; /* extension + dot */                               
 801925c:	35 03 00 01 	addi r3,r8,1                                   <== NOT EXECUTED
    {};                                                               
  /*                                                                  
   * extension is not empty                                           
   */                                                                 
  if (i > 0) {                                                        
    *dst++ = '.'; /* append dot */                                    
 8019260:	34 e7 00 01 	addi r7,r7,1                                   <== NOT EXECUTED
    len += i + 1; /* extension + dot */                               
 8019264:	b4 69 68 00 	add r13,r3,r9                                  <== NOT EXECUTED
    src_tmp = src + MSDOS_SHORT_BASE_LEN;                             
 8019268:	35 cb 00 08 	addi r11,r14,8                                 <== NOT EXECUTED
    while (i-- > 0) {                                                 
      *dst++ = tolower((unsigned char)(*src_tmp++));                  
 801926c:	28 4c 00 00 	lw r12,(r2+0)                                  <== NOT EXECUTED
 8019270:	34 06 00 00 	mvi r6,0                                       <== NOT EXECUTED
 8019274:	34 0a 00 01 	mvi r10,1                                      <== NOT EXECUTED
 8019278:	e3 ff ff b6 	bi 8019150 <msdos_dir_read+0x3f4>              <== NOT EXECUTED
                                                                      

0801927c <msdos_dir_stat>: int msdos_dir_stat( const rtems_filesystem_location_info_t *loc, struct stat *buf ) {
 801927c:	37 9c ff f0 	addi sp,sp,-16                                 
 8019280:	5b 8b 00 10 	sw (sp+16),r11                                 
 8019284:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8019288:	5b 8d 00 08 	sw (sp+8),r13                                  
 801928c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8019290:	b8 40 58 00 	mv r11,r2                                      
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = loc->mt_entry->fs_info;              
 8019294:	28 22 00 14 	lw r2,(r1+20)                                  
    fat_file_fd_t     *fat_fd = loc->node_access;                     
 8019298:	28 2c 00 08 	lw r12,(r1+8)                                  
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
 801929c:	34 03 00 00 	mvi r3,0                                       
    const rtems_filesystem_location_info_t *loc,                      
    struct stat *buf                                                  
)                                                                     
{                                                                     
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = loc->mt_entry->fs_info;              
 80192a0:	28 4d 00 08 	lw r13,(r2+8)                                  
    fat_file_fd_t     *fat_fd = loc->node_access;                     
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
 80192a4:	34 02 00 00 	mvi r2,0                                       
 80192a8:	29 a1 00 9c 	lw r1,(r13+156)                                
 80192ac:	fb ff b1 72 	calli 8005874 <rtems_semaphore_obtain>         
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
 80192b0:	44 20 00 06 	be r1,r0,80192c8 <msdos_dir_stat+0x4c>         <== ALWAYS TAKEN
        rtems_set_errno_and_return_minus_one(EIO);                    
 80192b4:	f8 00 01 d6 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 80192b8:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 80192bc:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 80192c0:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 80192c4:	e0 00 00 18 	bi 8019324 <msdos_dir_stat+0xa8>               <== NOT EXECUTED
                                                                      
static inline dev_t rtems_disk_get_device_identifier(                 
  const rtems_disk_device *dd                                         
)                                                                     
{                                                                     
  return dd->dev;                                                     
 80192c8:	29 a1 00 64 	lw r1,(r13+100)                                
                                                                      
    buf->st_dev = rtems_disk_get_device_identifier(fs_info->fat.vol.dd);
 80192cc:	28 22 00 00 	lw r2,(r1+0)                                   
 80192d0:	59 62 00 00 	sw (r11+0),r2                                  
 80192d4:	28 21 00 04 	lw r1,(r1+4)                                   
    buf->st_ino = fat_fd->ino;                                        
    buf->st_mode  = S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO;            
    buf->st_rdev = 0ll;                                               
    buf->st_size = fat_fd->fat_file_size;                             
    buf->st_blocks = fat_fd->fat_file_size >> FAT_SECTOR512_BITS;     
 80192d8:	34 02 00 09 	mvi r2,9                                       
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    buf->st_dev = rtems_disk_get_device_identifier(fs_info->fat.vol.dd);
 80192dc:	59 61 00 04 	sw (r11+4),r1                                  
    buf->st_ino = fat_fd->ino;                                        
 80192e0:	29 81 00 0c 	lw r1,(r12+12)                                 
    buf->st_mode  = S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO;            
    buf->st_rdev = 0ll;                                               
 80192e4:	59 60 00 18 	sw (r11+24),r0                                 
 80192e8:	59 60 00 1c 	sw (r11+28),r0                                 
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    buf->st_dev = rtems_disk_get_device_identifier(fs_info->fat.vol.dd);
    buf->st_ino = fat_fd->ino;                                        
 80192ec:	59 61 00 08 	sw (r11+8),r1                                  
    buf->st_mode  = S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO;            
 80192f0:	34 01 41 ff 	mvi r1,16895                                   
 80192f4:	59 61 00 0c 	sw (r11+12),r1                                 
    buf->st_rdev = 0ll;                                               
    buf->st_size = fat_fd->fat_file_size;                             
 80192f8:	29 81 00 18 	lw r1,(r12+24)                                 
 80192fc:	59 61 00 20 	sw (r11+32),r1                                 
    buf->st_blocks = fat_fd->fat_file_size >> FAT_SECTOR512_BITS;     
 8019300:	f8 00 4b c4 	calli 802c210 <__lshrsi3>                      
 8019304:	59 61 00 40 	sw (r11+64),r1                                 
    buf->st_blksize = fs_info->fat.vol.bps;                           
 8019308:	2d a1 00 00 	lhu r1,(r13+0)                                 
 801930c:	59 61 00 3c 	sw (r11+60),r1                                 
    buf->st_mtime = fat_fd->mtime;                                    
 8019310:	29 81 00 40 	lw r1,(r12+64)                                 
 8019314:	59 61 00 2c 	sw (r11+44),r1                                 
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
 8019318:	29 a1 00 9c 	lw r1,(r13+156)                                
 801931c:	fb ff b1 a6 	calli 80059b4 <rtems_semaphore_release>        
    return RC_OK;                                                     
 8019320:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 8019324:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8019328:	2b 8b 00 10 	lw r11,(sp+16)                                 
 801932c:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8019330:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8019334:	37 9c 00 10 	addi sp,sp,16                                  
 8019338:	c3 a0 00 00 	ret                                            
                                                                      

08015668 <msdos_eval_token>: rtems_filesystem_eval_path_context_t *ctx, void *arg, const char *token, size_t tokenlen ) {
 8015668:	37 9c ff f8 	addi sp,sp,-8                                  
 801566c:	5b 8b 00 08 	sw (sp+8),r11                                  
 8015670:	5b 9d 00 04 	sw (sp+4),ra                                   
 8015674:	b8 20 58 00 	mv r11,r1                                      
static inline bool rtems_filesystem_is_current_directory(             
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 1 && token [0] == '.';                           
 8015678:	34 01 00 01 	mvi r1,1                                       
 801567c:	b8 60 10 00 	mv r2,r3                                       
 8015680:	5c 81 00 1f 	bne r4,r1,80156fc <msdos_eval_token+0x94>      
 8015684:	40 63 00 00 	lbu r3,(r3+0)                                  
 8015688:	34 01 00 2e 	mvi r1,46                                      
 801568c:	5c 61 00 1c 	bne r3,r1,80156fc <msdos_eval_token+0x94>      
                                                                      
static inline void rtems_filesystem_eval_path_clear_token(            
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  ctx->tokenlen = 0;                                                  
 8015690:	59 60 00 0c 	sw (r11+12),r0                                 
  rtems_filesystem_eval_path_generic_status status =                  
    RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;                          
                                                                      
  if (rtems_filesystem_is_current_directory(token, tokenlen)) {       
    rtems_filesystem_eval_path_clear_token(ctx);                      
    status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE;             
 8015694:	34 01 00 00 	mvi r1,0                                       
 8015698:	e0 00 00 15 	bi 80156ec <msdos_eval_token+0x84>             
msdos_set_handlers(rtems_filesystem_location_info_t *loc)             
{                                                                     
    msdos_fs_info_t *fs_info = loc->mt_entry->fs_info;                
    fat_file_fd_t   *fat_fd = loc->node_access;                       
                                                                      
    if (fat_fd->fat_file_type == FAT_DIRECTORY)                       
 801569c:	29 63 00 20 	lw r3,(r11+32)                                 
 *     None                                                           
 */                                                                   
static void                                                           
msdos_set_handlers(rtems_filesystem_location_info_t *loc)             
{                                                                     
    msdos_fs_info_t *fs_info = loc->mt_entry->fs_info;                
 80156a0:	29 61 00 2c 	lw r1,(r11+44)                                 
 80156a4:	59 60 00 0c 	sw (r11+12),r0                                 
    fat_file_fd_t   *fat_fd = loc->node_access;                       
                                                                      
    if (fat_fd->fat_file_type == FAT_DIRECTORY)                       
 80156a8:	28 63 00 10 	lw r3,(r3+16)                                  
 *     None                                                           
 */                                                                   
static void                                                           
msdos_set_handlers(rtems_filesystem_location_info_t *loc)             
{                                                                     
    msdos_fs_info_t *fs_info = loc->mt_entry->fs_info;                
 80156ac:	28 21 00 08 	lw r1,(r1+8)                                   
    fat_file_fd_t   *fat_fd = loc->node_access;                       
                                                                      
    if (fat_fd->fat_file_type == FAT_DIRECTORY)                       
 80156b0:	5c 62 00 03 	bne r3,r2,80156bc <msdos_eval_token+0x54>      
        loc->handlers = fs_info->directory_handlers;                  
 80156b4:	28 21 00 94 	lw r1,(r1+148)                                 
 80156b8:	e0 00 00 02 	bi 80156c0 <msdos_eval_token+0x58>             
    else                                                              
        loc->handlers = fs_info->file_handlers;                       
 80156bc:	28 21 00 98 	lw r1,(r1+152)                                 
 80156c0:	59 61 00 28 	sw (r11+40),r1                                 
  rtems_filesystem_eval_path_generic_status status =                  
    RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;                          
                                                                      
  if (rtems_filesystem_is_current_directory(token, tokenlen)) {       
    rtems_filesystem_eval_path_clear_token(ctx);                      
    status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE;             
 80156c4:	29 61 00 04 	lw r1,(r11+4)                                  
 80156c8:	64 21 00 00 	cmpei r1,r1,0                                  
 80156cc:	e0 00 00 08 	bi 80156ec <msdos_eval_token+0x84>             
      rtems_filesystem_eval_path_clear_token(ctx);                    
      msdos_set_handlers(currentloc);                                 
      if (rtems_filesystem_eval_path_has_path(ctx)) {                 
        status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE;         
      }                                                               
    } else if (rc == MSDOS_NAME_NOT_FOUND_ERR) {                      
 80156d0:	34 03 7d 01 	mvi r3,32001                                   
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY;           
 80156d4:	34 01 00 02 	mvi r1,2                                       
      rtems_filesystem_eval_path_clear_token(ctx);                    
      msdos_set_handlers(currentloc);                                 
      if (rtems_filesystem_eval_path_has_path(ctx)) {                 
        status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE;         
      }                                                               
    } else if (rc == MSDOS_NAME_NOT_FOUND_ERR) {                      
 80156d8:	44 43 00 05 	be r2,r3,80156ec <msdos_eval_token+0x84>       <== ALWAYS TAKEN
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY;           
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, 0);                       
 80156dc:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 80156e0:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 80156e4:	fb ff bb 48 	calli 8004404 <rtems_filesystem_eval_path_error><== NOT EXECUTED
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_generic_status status =                  
 80156e8:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
      rtems_filesystem_eval_path_error(ctx, 0);                       
    }                                                                 
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
 80156ec:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80156f0:	2b 8b 00 08 	lw r11,(sp+8)                                  
 80156f4:	37 9c 00 08 	addi sp,sp,8                                   
 80156f8:	c3 a0 00 00 	ret                                            
    rtems_filesystem_eval_path_clear_token(ctx);                      
    status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE;             
  } else {                                                            
    rtems_filesystem_location_info_t *currentloc =                    
      rtems_filesystem_eval_path_get_currentloc(ctx);                 
    int rc = msdos_find_name(currentloc, token, tokenlen);            
 80156fc:	35 61 00 18 	addi r1,r11,24                                 
 8015700:	b8 80 18 00 	mv r3,r4                                       
 8015704:	f8 00 07 6a 	calli 80174ac <msdos_find_name>                
 8015708:	b8 20 10 00 	mv r2,r1                                       
                                                                      
    if (rc == RC_OK) {                                                
 801570c:	5c 20 ff f1 	bne r1,r0,80156d0 <msdos_eval_token+0x68>      
 8015710:	e3 ff ff e3 	bi 801569c <msdos_eval_token+0x34>             
                                                                      

080193b4 <msdos_file_close>: * RC_OK, if file closed successfully, or -1 if error occured (errno set * appropriately) */ int msdos_file_close(rtems_libio_t *iop) {
 80193b4:	37 9c ff f4 	addi sp,sp,-12                                 
 80193b8:	5b 8b 00 0c 	sw (sp+12),r11                                 
 80193bc:	5b 8c 00 08 	sw (sp+8),r12                                  
 80193c0:	5b 9d 00 04 	sw (sp+4),ra                                   
 80193c4:	b8 20 58 00 	mv r11,r1                                      
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
 80193c8:	28 21 00 20 	lw r1,(r1+32)                                  
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
 80193cc:	34 02 00 00 	mvi r2,0                                       
 80193d0:	34 03 00 00 	mvi r3,0                                       
int                                                                   
msdos_file_close(rtems_libio_t *iop)                                  
{                                                                     
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
 80193d4:	28 2c 00 08 	lw r12,(r1+8)                                  
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
 80193d8:	29 81 00 9c 	lw r1,(r12+156)                                
 80193dc:	fb ff b1 26 	calli 8005874 <rtems_semaphore_obtain>         
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
 80193e0:	44 20 00 06 	be r1,r0,80193f8 <msdos_file_close+0x44>       <== ALWAYS TAKEN
        rtems_set_errno_and_return_minus_one(EIO);                    
 80193e4:	f8 00 01 8a 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 80193e8:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 80193ec:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 80193f0:	34 0b ff ff 	mvi r11,-1                                     <== NOT EXECUTED
 80193f4:	e0 00 00 06 	bi 801940c <msdos_file_close+0x58>             <== NOT EXECUTED
                                                                      
    rc = msdos_file_update(iop);                                      
 80193f8:	b9 60 08 00 	mv r1,r11                                      
 80193fc:	fb ff ff d0 	calli 801933c <msdos_file_update>              
 8019400:	b8 20 58 00 	mv r11,r1                                      
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
 8019404:	29 81 00 9c 	lw r1,(r12+156)                                
 8019408:	fb ff b1 6b 	calli 80059b4 <rtems_semaphore_release>        
    return rc;                                                        
}                                                                     
 801940c:	b9 60 08 00 	mv r1,r11                                      
 8019410:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8019414:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8019418:	2b 8c 00 08 	lw r12,(sp+8)                                  
 801941c:	37 9c 00 0c 	addi sp,sp,12                                  
 8019420:	c3 a0 00 00 	ret                                            
                                                                      

080196a0 <msdos_file_ftruncate>: * RETURNS: * RC_OK on success, or -1 if error occured (errno set appropriately). */ int msdos_file_ftruncate(rtems_libio_t *iop, off_t length) {
 80196a0:	37 9c ff e4 	addi sp,sp,-28                                 
 80196a4:	5b 8b 00 18 	sw (sp+24),r11                                 
 80196a8:	5b 8c 00 14 	sw (sp+20),r12                                 
 80196ac:	5b 8d 00 10 	sw (sp+16),r13                                 
 80196b0:	5b 8e 00 0c 	sw (sp+12),r14                                 
 80196b4:	5b 8f 00 08 	sw (sp+8),r15                                  
 80196b8:	5b 9d 00 04 	sw (sp+4),ra                                   
 80196bc:	b8 40 70 00 	mv r14,r2                                      
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
 80196c0:	28 22 00 20 	lw r2,(r1+32)                                  
    fat_file_fd_t     *fat_fd = iop->pathinfo.node_access;            
 80196c4:	28 2d 00 14 	lw r13,(r1+20)                                 
    uint32_t old_length;                                              
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
 80196c8:	34 03 00 00 	mvi r3,0                                       
int                                                                   
msdos_file_ftruncate(rtems_libio_t *iop, off_t length)                
{                                                                     
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
 80196cc:	28 4c 00 08 	lw r12,(r2+8)                                  
    fat_file_fd_t     *fat_fd = iop->pathinfo.node_access;            
    uint32_t old_length;                                              
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
 80196d0:	34 02 00 00 	mvi r2,0                                       
 80196d4:	29 81 00 9c 	lw r1,(r12+156)                                
 80196d8:	fb ff b0 67 	calli 8005874 <rtems_semaphore_obtain>         
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
 80196dc:	44 20 00 06 	be r1,r0,80196f4 <msdos_file_ftruncate+0x54>   <== ALWAYS TAKEN
        rtems_set_errno_and_return_minus_one(EIO);                    
 80196e0:	f8 00 00 cb 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 80196e4:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 80196e8:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 80196ec:	34 0b ff ff 	mvi r11,-1                                     <== NOT EXECUTED
 80196f0:	e0 00 00 21 	bi 8019774 <msdos_file_ftruncate+0xd4>         <== NOT EXECUTED
                                                                      
    old_length = fat_fd->fat_file_size;                               
 80196f4:	29 af 00 18 	lw r15,(r13+24)                                
    if (length < old_length) {                                        
 80196f8:	51 cf 00 08 	bgeu r14,r15,8019718 <msdos_file_ftruncate+0x78>
        rc = fat_file_truncate(&fs_info->fat, fat_fd, length);        
 80196fc:	b9 80 08 00 	mv r1,r12                                      
 8019700:	b9 a0 10 00 	mv r2,r13                                      
 8019704:	b9 c0 18 00 	mv r3,r14                                      
 8019708:	fb ff d7 4d 	calli 800f43c <fat_file_truncate>              
 801970c:	b8 20 58 00 	mv r11,r1                                      
            errno = ENOSPC;                                           
            rc = -1;                                                  
        }                                                             
    }                                                                 
                                                                      
    if (rc == RC_OK) {                                                
 8019710:	44 20 00 15 	be r1,r0,8019764 <msdos_file_ftruncate+0xc4>   <== ALWAYS TAKEN
 8019714:	e0 00 00 16 	bi 801976c <msdos_file_ftruncate+0xcc>         <== NOT EXECUTED
    if (length < old_length) {                                        
        rc = fat_file_truncate(&fs_info->fat, fat_fd, length);        
    } else {                                                          
        uint32_t new_length;                                          
                                                                      
        rc = fat_file_extend(&fs_info->fat,                           
 8019718:	b9 80 08 00 	mv r1,r12                                      
 801971c:	b9 a0 10 00 	mv r2,r13                                      
 8019720:	34 03 00 01 	mvi r3,1                                       
 8019724:	b9 c0 20 00 	mv r4,r14                                      
 8019728:	37 85 00 1c 	addi r5,sp,28                                  
 801972c:	fb ff d7 f9 	calli 800f710 <fat_file_extend>                
 8019730:	b8 20 58 00 	mv r11,r1                                      
                             fat_fd,                                  
                             true,                                    
                             length,                                  
                             &new_length);                            
        if (rc == RC_OK && length != new_length) {                    
 8019734:	5c 20 00 0e 	bne r1,r0,801976c <msdos_file_ftruncate+0xcc>  <== NEVER TAKEN
 8019738:	2b 81 00 1c 	lw r1,(sp+28)                                  
 801973c:	45 c1 00 0a 	be r14,r1,8019764 <msdos_file_ftruncate+0xc4>  <== ALWAYS TAKEN
            fat_file_truncate(&fs_info->fat, fat_fd, old_length);     
 8019740:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 8019744:	b9 e0 18 00 	mv r3,r15                                      <== NOT EXECUTED
 8019748:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801974c:	fb ff d7 3c 	calli 800f43c <fat_file_truncate>              <== NOT EXECUTED
            errno = ENOSPC;                                           
 8019750:	f8 00 00 af 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 8019754:	34 02 00 1c 	mvi r2,28                                      <== NOT EXECUTED
 8019758:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
            rc = -1;                                                  
 801975c:	34 0b ff ff 	mvi r11,-1                                     <== NOT EXECUTED
 8019760:	e0 00 00 03 	bi 801976c <msdos_file_ftruncate+0xcc>         <== NOT EXECUTED
        }                                                             
    }                                                                 
                                                                      
    if (rc == RC_OK) {                                                
        fat_fd->fat_file_size = length;                               
 8019764:	59 ae 00 18 	sw (r13+24),r14                                
 8019768:	34 0b 00 00 	mvi r11,0                                      
    }                                                                 
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
 801976c:	29 81 00 9c 	lw r1,(r12+156)                                
 8019770:	fb ff b0 91 	calli 80059b4 <rtems_semaphore_release>        
                                                                      
    return rc;                                                        
}                                                                     
 8019774:	b9 60 08 00 	mv r1,r11                                      
 8019778:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801977c:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8019780:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8019784:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8019788:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 801978c:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8019790:	37 9c 00 1c 	addi sp,sp,28                                  
 8019794:	c3 a0 00 00 	ret                                            
                                                                      

08019424 <msdos_file_read>: * the number of bytes read on success, or -1 if error occured (errno set * appropriately) */ ssize_t msdos_file_read(rtems_libio_t *iop, void *buffer, size_t count) {
 8019424:	37 9c ff e4 	addi sp,sp,-28                                 
 8019428:	5b 8b 00 1c 	sw (sp+28),r11                                 
 801942c:	5b 8c 00 18 	sw (sp+24),r12                                 
 8019430:	5b 8d 00 14 	sw (sp+20),r13                                 
 8019434:	5b 8e 00 10 	sw (sp+16),r14                                 
 8019438:	5b 8f 00 0c 	sw (sp+12),r15                                 
 801943c:	5b 90 00 08 	sw (sp+8),r16                                  
 8019440:	5b 9d 00 04 	sw (sp+4),ra                                   
 8019444:	b8 20 58 00 	mv r11,r1                                      
    ssize_t            ret = 0;                                       
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
 8019448:	28 21 00 20 	lw r1,(r1+32)                                  
 *     the number of bytes read on success, or -1 if error occured (errno set
 *     appropriately)                                                 
 */                                                                   
ssize_t                                                               
msdos_file_read(rtems_libio_t *iop, void *buffer, size_t count)       
{                                                                     
 801944c:	b8 40 60 00 	mv r12,r2                                      
 8019450:	b8 60 78 00 	mv r15,r3                                      
    ssize_t            ret = 0;                                       
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
 8019454:	28 2d 00 08 	lw r13,(r1+8)                                  
    fat_file_fd_t     *fat_fd = iop->pathinfo.node_access;            
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
 8019458:	34 02 00 00 	mvi r2,0                                       
 801945c:	34 03 00 00 	mvi r3,0                                       
 8019460:	29 a1 00 9c 	lw r1,(r13+156)                                
msdos_file_read(rtems_libio_t *iop, void *buffer, size_t count)       
{                                                                     
    ssize_t            ret = 0;                                       
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
    fat_file_fd_t     *fat_fd = iop->pathinfo.node_access;            
 8019464:	29 70 00 14 	lw r16,(r11+20)                                
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
 8019468:	fb ff b1 03 	calli 8005874 <rtems_semaphore_obtain>         
 801946c:	b8 20 70 00 	mv r14,r1                                      
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
 8019470:	44 20 00 06 	be r1,r0,8019488 <msdos_file_read+0x64>        <== ALWAYS TAKEN
        rtems_set_errno_and_return_minus_one(EIO);                    
 8019474:	f8 00 01 66 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 8019478:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 801947c:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 8019480:	34 0c ff ff 	mvi r12,-1                                     <== NOT EXECUTED
 8019484:	e0 00 00 0e 	bi 80194bc <msdos_file_read+0x98>              <== NOT EXECUTED
                                                                      
    ret = fat_file_read(&fs_info->fat, fat_fd, iop->offset, count,    
 8019488:	29 63 00 04 	lw r3,(r11+4)                                  
 801948c:	b9 80 28 00 	mv r5,r12                                      
 8019490:	b9 a0 08 00 	mv r1,r13                                      
 8019494:	ba 00 10 00 	mv r2,r16                                      
 8019498:	b9 e0 20 00 	mv r4,r15                                      
 801949c:	fb ff d7 62 	calli 800f224 <fat_file_read>                  
 80194a0:	b8 20 60 00 	mv r12,r1                                      
                        buffer);                                      
    if (ret > 0)                                                      
 80194a4:	4d c1 00 04 	bge r14,r1,80194b4 <msdos_file_read+0x90>      
        iop->offset += ret;                                           
 80194a8:	29 61 00 04 	lw r1,(r11+4)                                  
 80194ac:	b4 2c 08 00 	add r1,r1,r12                                  
 80194b0:	59 61 00 04 	sw (r11+4),r1                                  
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
 80194b4:	29 a1 00 9c 	lw r1,(r13+156)                                
 80194b8:	fb ff b1 3f 	calli 80059b4 <rtems_semaphore_release>        
    return ret;                                                       
}                                                                     
 80194bc:	b9 80 08 00 	mv r1,r12                                      
 80194c0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80194c4:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 80194c8:	2b 8c 00 18 	lw r12,(sp+24)                                 
 80194cc:	2b 8d 00 14 	lw r13,(sp+20)                                 
 80194d0:	2b 8e 00 10 	lw r14,(sp+16)                                 
 80194d4:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 80194d8:	2b 90 00 08 	lw r16,(sp+8)                                  
 80194dc:	37 9c 00 1c 	addi sp,sp,28                                  
 80194e0:	c3 a0 00 00 	ret                                            
                                                                      

080195c4 <msdos_file_stat>: int msdos_file_stat( const rtems_filesystem_location_info_t *loc, struct stat *buf ) {
 80195c4:	37 9c ff ec 	addi sp,sp,-20                                 
 80195c8:	5b 8b 00 14 	sw (sp+20),r11                                 
 80195cc:	5b 8c 00 10 	sw (sp+16),r12                                 
 80195d0:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80195d4:	5b 8e 00 08 	sw (sp+8),r14                                  
 80195d8:	5b 9d 00 04 	sw (sp+4),ra                                   
 80195dc:	b8 40 58 00 	mv r11,r2                                      
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = loc->mt_entry->fs_info;              
 80195e0:	28 22 00 14 	lw r2,(r1+20)                                  
    fat_file_fd_t     *fat_fd = loc->node_access;                     
 80195e4:	28 2d 00 08 	lw r13,(r1+8)                                  
    uint32_t           cl_mask = fs_info->fat.vol.bpc - 1;            
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
 80195e8:	34 03 00 00 	mvi r3,0                                       
    const rtems_filesystem_location_info_t *loc,                      
    struct stat *buf                                                  
)                                                                     
{                                                                     
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = loc->mt_entry->fs_info;              
 80195ec:	28 4c 00 08 	lw r12,(r2+8)                                  
    fat_file_fd_t     *fat_fd = loc->node_access;                     
    uint32_t           cl_mask = fs_info->fat.vol.bpc - 1;            
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
 80195f0:	34 02 00 00 	mvi r2,0                                       
 80195f4:	29 81 00 9c 	lw r1,(r12+156)                                
)                                                                     
{                                                                     
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = loc->mt_entry->fs_info;              
    fat_file_fd_t     *fat_fd = loc->node_access;                     
    uint32_t           cl_mask = fs_info->fat.vol.bpc - 1;            
 80195f8:	2d 8e 00 06 	lhu r14,(r12+6)                                
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
 80195fc:	fb ff b0 9e 	calli 8005874 <rtems_semaphore_obtain>         
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
 8019600:	44 20 00 06 	be r1,r0,8019618 <msdos_file_stat+0x54>        <== ALWAYS TAKEN
        rtems_set_errno_and_return_minus_one(EIO);                    
 8019604:	f8 00 01 02 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 8019608:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 801960c:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 8019610:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 8019614:	e0 00 00 1c 	bi 8019684 <msdos_file_stat+0xc0>              <== NOT EXECUTED
 8019618:	29 82 00 64 	lw r2,(r12+100)                                
)                                                                     
{                                                                     
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = loc->mt_entry->fs_info;              
    fat_file_fd_t     *fat_fd = loc->node_access;                     
    uint32_t           cl_mask = fs_info->fat.vol.bpc - 1;            
 801961c:	35 c3 ff ff 	addi r3,r14,-1                                 
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    buf->st_dev = rtems_disk_get_device_identifier(fs_info->fat.vol.dd);
 8019620:	28 41 00 00 	lw r1,(r2+0)                                   
 8019624:	59 61 00 00 	sw (r11+0),r1                                  
 8019628:	28 41 00 04 	lw r1,(r2+4)                                   
    buf->st_ino = fat_fd->ino;                                        
    buf->st_mode  = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;            
    buf->st_rdev = 0ll;                                               
    buf->st_size = fat_fd->fat_file_size;                             
 801962c:	29 a2 00 18 	lw r2,(r13+24)                                 
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    buf->st_dev = rtems_disk_get_device_identifier(fs_info->fat.vol.dd);
 8019630:	59 61 00 04 	sw (r11+4),r1                                  
    buf->st_ino = fat_fd->ino;                                        
 8019634:	29 a1 00 0c 	lw r1,(r13+12)                                 
    buf->st_mode  = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;            
    buf->st_rdev = 0ll;                                               
    buf->st_size = fat_fd->fat_file_size;                             
 8019638:	59 62 00 20 	sw (r11+32),r2                                 
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    buf->st_dev = rtems_disk_get_device_identifier(fs_info->fat.vol.dd);
    buf->st_ino = fat_fd->ino;                                        
    buf->st_mode  = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;            
    buf->st_rdev = 0ll;                                               
 801963c:	59 60 00 18 	sw (r11+24),r0                                 
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    buf->st_dev = rtems_disk_get_device_identifier(fs_info->fat.vol.dd);
    buf->st_ino = fat_fd->ino;                                        
 8019640:	59 61 00 08 	sw (r11+8),r1                                  
    buf->st_mode  = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;            
 8019644:	38 01 81 ff 	mvu r1,0x81ff                                  
 8019648:	59 61 00 0c 	sw (r11+12),r1                                 
    buf->st_rdev = 0ll;                                               
    buf->st_size = fat_fd->fat_file_size;                             
    buf->st_blocks = ((fat_fd->fat_file_size + cl_mask) & ~cl_mask)   
 801964c:	a4 60 08 00 	not r1,r3                                      
 8019650:	b4 62 18 00 	add r3,r3,r2                                   
      >> FAT_SECTOR512_BITS;                                          
 8019654:	a0 23 08 00 	and r1,r1,r3                                   
 8019658:	34 02 00 09 	mvi r2,9                                       
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    buf->st_dev = rtems_disk_get_device_identifier(fs_info->fat.vol.dd);
    buf->st_ino = fat_fd->ino;                                        
    buf->st_mode  = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;            
    buf->st_rdev = 0ll;                                               
 801965c:	59 60 00 1c 	sw (r11+28),r0                                 
    buf->st_size = fat_fd->fat_file_size;                             
    buf->st_blocks = ((fat_fd->fat_file_size + cl_mask) & ~cl_mask)   
      >> FAT_SECTOR512_BITS;                                          
 8019660:	f8 00 4a ec 	calli 802c210 <__lshrsi3>                      
    buf->st_dev = rtems_disk_get_device_identifier(fs_info->fat.vol.dd);
    buf->st_ino = fat_fd->ino;                                        
    buf->st_mode  = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;            
    buf->st_rdev = 0ll;                                               
    buf->st_size = fat_fd->fat_file_size;                             
    buf->st_blocks = ((fat_fd->fat_file_size + cl_mask) & ~cl_mask)   
 8019664:	59 61 00 40 	sw (r11+64),r1                                 
      >> FAT_SECTOR512_BITS;                                          
    buf->st_blksize = fs_info->fat.vol.bpc;                           
 8019668:	2d 81 00 06 	lhu r1,(r12+6)                                 
 801966c:	59 61 00 3c 	sw (r11+60),r1                                 
    buf->st_mtime = fat_fd->mtime;                                    
 8019670:	29 a1 00 40 	lw r1,(r13+64)                                 
 8019674:	59 61 00 2c 	sw (r11+44),r1                                 
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
 8019678:	29 81 00 9c 	lw r1,(r12+156)                                
 801967c:	fb ff b0 ce 	calli 80059b4 <rtems_semaphore_release>        
    return RC_OK;                                                     
 8019680:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 8019684:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8019688:	2b 8b 00 14 	lw r11,(sp+20)                                 
 801968c:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8019690:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8019694:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8019698:	37 9c 00 14 	addi sp,sp,20                                  
 801969c:	c3 a0 00 00 	ret                                            
                                                                      

08019798 <msdos_file_sync>: * RETURNS: * RC_OK on success, or -1 if error occured (errno set appropriately) */ int msdos_file_sync(rtems_libio_t *iop) {
 8019798:	37 9c ff f0 	addi sp,sp,-16                                 
 801979c:	5b 8b 00 10 	sw (sp+16),r11                                 
 80197a0:	5b 8c 00 0c 	sw (sp+12),r12                                 
 80197a4:	5b 8d 00 08 	sw (sp+8),r13                                  
 80197a8:	5b 9d 00 04 	sw (sp+4),ra                                   
 80197ac:	b8 20 60 00 	mv r12,r1                                      
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
 80197b0:	28 21 00 20 	lw r1,(r1+32)                                  
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
 80197b4:	34 02 00 00 	mvi r2,0                                       
 80197b8:	34 03 00 00 	mvi r3,0                                       
int                                                                   
msdos_file_sync(rtems_libio_t *iop)                                   
{                                                                     
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
 80197bc:	28 2b 00 08 	lw r11,(r1+8)                                  
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
 80197c0:	29 61 00 9c 	lw r1,(r11+156)                                
 80197c4:	fb ff b0 2c 	calli 8005874 <rtems_semaphore_obtain>         
 80197c8:	b8 20 68 00 	mv r13,r1                                      
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
 80197cc:	44 20 00 06 	be r1,r0,80197e4 <msdos_file_sync+0x4c>        <== ALWAYS TAKEN
        rtems_set_errno_and_return_minus_one(EIO);                    
 80197d0:	f8 00 00 8f 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 80197d4:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 80197d8:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 80197dc:	34 0c ff ff 	mvi r12,-1                                     <== NOT EXECUTED
 80197e0:	e0 00 00 09 	bi 8019804 <msdos_file_sync+0x6c>              <== NOT EXECUTED
                                                                      
    rc = msdos_file_update(iop);                                      
 80197e4:	b9 80 08 00 	mv r1,r12                                      
 80197e8:	fb ff fe d5 	calli 801933c <msdos_file_update>              
 80197ec:	b8 20 60 00 	mv r12,r1                                      
    if (rc != RC_OK)                                                  
 80197f0:	5c 2d 00 03 	bne r1,r13,80197fc <msdos_file_sync+0x64>      <== NEVER TAKEN
    {                                                                 
        rtems_semaphore_release(fs_info->vol_sema);                   
        return rc;                                                    
    }                                                                 
                                                                      
    rc = fat_sync(&fs_info->fat);                                     
 80197f4:	b9 60 08 00 	mv r1,r11                                      
 80197f8:	fb ff dd 9f 	calli 8010e74 <fat_sync>                       
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
 80197fc:	29 61 00 9c 	lw r1,(r11+156)                                
 8019800:	fb ff b0 6d 	calli 80059b4 <rtems_semaphore_release>        
    return RC_OK;                                                     
}                                                                     
 8019804:	b9 80 08 00 	mv r1,r12                                      
 8019808:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801980c:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8019810:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8019814:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8019818:	37 9c 00 10 	addi sp,sp,16                                  
 801981c:	c3 a0 00 00 	ret                                            
                                                                      

0801933c <msdos_file_update>: #include "msdos.h" static int msdos_file_update(rtems_libio_t *iop) {
 801933c:	37 9c ff f0 	addi sp,sp,-16                                 
 8019340:	5b 8b 00 10 	sw (sp+16),r11                                 
 8019344:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8019348:	5b 8d 00 08 	sw (sp+8),r13                                  
 801934c:	5b 9d 00 04 	sw (sp+4),ra                                   
    int              rc = RC_OK;                                      
    fat_file_fd_t   *fat_fd = iop->pathinfo.node_access;              
 8019350:	28 2b 00 14 	lw r11,(r1+20)                                 
                                                                      
#include "msdos.h"                                                    
                                                                      
static int                                                            
msdos_file_update(rtems_libio_t *iop)                                 
{                                                                     
 8019354:	b8 20 60 00 	mv r12,r1                                      
    int              rc = RC_OK;                                      
 8019358:	34 01 00 00 	mvi r1,0                                       
                                                                      
    /*                                                                
     * if fat-file descriptor is not marked as "removed", synchronize 
     * size, first cluster number, write time and date fields of the file
     */                                                               
    if (!FAT_FILE_IS_REMOVED(fat_fd))                                 
 801935c:	41 6d 00 30 	lbu r13,(r11+48)                               
 8019360:	21 ad 00 01 	andi r13,r13,0x1                               
 8019364:	5d a0 00 09 	bne r13,r0,8019388 <msdos_file_update+0x4c>    <== NEVER TAKEN
 8019368:	e0 00 00 0e 	bi 80193a0 <msdos_file_update+0x64>            
        if (rc != RC_OK)                                              
        {                                                             
            return rc;                                                
        }                                                             
                                                                      
        rc = msdos_set_file_size(iop->pathinfo.mt_entry, fat_fd);     
 801936c:	29 81 00 20 	lw r1,(r12+32)                                 
 8019370:	b9 60 10 00 	mv r2,r11                                      
 8019374:	fb ff f2 8a 	calli 8015d9c <msdos_set_file_size>            
        if (rc != RC_OK)                                              
 8019378:	5c 20 00 04 	bne r1,r0,8019388 <msdos_file_update+0x4c>     <== NEVER TAKEN
        {                                                             
            return rc;                                                
        }                                                             
                                                                      
        rc = msdos_set_dir_wrt_time_and_date(iop->pathinfo.mt_entry, fat_fd);
 801937c:	29 81 00 20 	lw r1,(r12+32)                                 
 8019380:	b9 60 10 00 	mv r2,r11                                      
 8019384:	fb ff f1 db 	calli 8015af0 <msdos_set_dir_wrt_time_and_date>
            return rc;                                                
        }                                                             
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
 8019388:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801938c:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8019390:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8019394:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8019398:	37 9c 00 10 	addi sp,sp,16                                  
 801939c:	c3 a0 00 00 	ret                                            
     * if fat-file descriptor is not marked as "removed", synchronize 
     * size, first cluster number, write time and date fields of the file
     */                                                               
    if (!FAT_FILE_IS_REMOVED(fat_fd))                                 
    {                                                                 
        rc = msdos_set_first_cluster_num(iop->pathinfo.mt_entry, fat_fd);
 80193a0:	29 81 00 20 	lw r1,(r12+32)                                 
 80193a4:	b9 60 10 00 	mv r2,r11                                      
 80193a8:	fb ff f2 2d 	calli 8015c5c <msdos_set_first_cluster_num>    
        if (rc != RC_OK)                                              
 80193ac:	5c 2d ff f7 	bne r1,r13,8019388 <msdos_file_update+0x4c>    <== NEVER TAKEN
 80193b0:	e3 ff ff ef 	bi 801936c <msdos_file_update+0x30>            
                                                                      

080194e4 <msdos_file_write>: * the number of bytes written on success, or -1 if error occured * and errno set appropriately */ ssize_t msdos_file_write(rtems_libio_t *iop,const void *buffer, size_t count) {
 80194e4:	37 9c ff e8 	addi sp,sp,-24                                 
 80194e8:	5b 8b 00 18 	sw (sp+24),r11                                 
 80194ec:	5b 8c 00 14 	sw (sp+20),r12                                 
 80194f0:	5b 8d 00 10 	sw (sp+16),r13                                 
 80194f4:	5b 8e 00 0c 	sw (sp+12),r14                                 
 80194f8:	5b 8f 00 08 	sw (sp+8),r15                                  
 80194fc:	5b 9d 00 04 	sw (sp+4),ra                                   
 8019500:	b8 20 58 00 	mv r11,r1                                      
    ssize_t            ret = 0;                                       
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
 8019504:	28 21 00 20 	lw r1,(r1+32)                                  
 *     the number of bytes written on success, or -1 if error occured 
 *     and errno set appropriately                                    
 */                                                                   
ssize_t                                                               
msdos_file_write(rtems_libio_t *iop,const void *buffer, size_t count) 
{                                                                     
 8019508:	b8 40 68 00 	mv r13,r2                                      
 801950c:	b8 60 78 00 	mv r15,r3                                      
    ssize_t            ret = 0;                                       
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
 8019510:	28 2e 00 08 	lw r14,(r1+8)                                  
    fat_file_fd_t     *fat_fd = iop->pathinfo.node_access;            
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
 8019514:	34 02 00 00 	mvi r2,0                                       
 8019518:	34 03 00 00 	mvi r3,0                                       
 801951c:	29 c1 00 9c 	lw r1,(r14+156)                                
msdos_file_write(rtems_libio_t *iop,const void *buffer, size_t count) 
{                                                                     
    ssize_t            ret = 0;                                       
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
    fat_file_fd_t     *fat_fd = iop->pathinfo.node_access;            
 8019520:	29 6c 00 14 	lw r12,(r11+20)                                
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
 8019524:	fb ff b0 d4 	calli 8005874 <rtems_semaphore_obtain>         
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
 8019528:	44 20 00 05 	be r1,r0,801953c <msdos_file_write+0x58>       <== ALWAYS TAKEN
        rtems_set_errno_and_return_minus_one(EIO);                    
 801952c:	f8 00 01 38 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 8019530:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 8019534:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 8019538:	e0 00 00 10 	bi 8019578 <msdos_file_write+0x94>             <== NOT EXECUTED
                                                                      
    if ((iop->flags & LIBIO_FLAGS_APPEND) != 0)                       
 801953c:	29 62 00 08 	lw r2,(r11+8)                                  
 8019540:	20 42 02 00 	andi r2,r2,0x200                               
 8019544:	44 41 00 03 	be r2,r1,8019550 <msdos_file_write+0x6c>       
        iop->offset = fat_fd->fat_file_size;                          
 8019548:	29 81 00 18 	lw r1,(r12+24)                                 
 801954c:	59 61 00 04 	sw (r11+4),r1                                  
                                                                      
    ret = fat_file_write(&fs_info->fat, fat_fd, iop->offset, count,   
 8019550:	29 63 00 04 	lw r3,(r11+4)                                  
 8019554:	b9 a0 28 00 	mv r5,r13                                      
 8019558:	b9 c0 08 00 	mv r1,r14                                      
 801955c:	b9 80 10 00 	mv r2,r12                                      
 8019560:	b9 e0 20 00 	mv r4,r15                                      
 8019564:	fb ff d9 00 	calli 800f964 <fat_file_write>                 
 8019568:	b8 20 68 00 	mv r13,r1                                      
                         buffer);                                     
    if (ret < 0)                                                      
 801956c:	4c 20 00 05 	bge r1,r0,8019580 <msdos_file_write+0x9c>      <== ALWAYS TAKEN
    {                                                                 
        rtems_semaphore_release(fs_info->vol_sema);                   
 8019570:	29 c1 00 9c 	lw r1,(r14+156)                                <== NOT EXECUTED
 8019574:	fb ff b1 10 	calli 80059b4 <rtems_semaphore_release>        <== NOT EXECUTED
        return -1;                                                    
 8019578:	34 0d ff ff 	mvi r13,-1                                     <== NOT EXECUTED
 801957c:	e0 00 00 09 	bi 80195a0 <msdos_file_write+0xbc>             <== NOT EXECUTED
                                                                      
    /*                                                                
     * update file size in both fat-file descriptor and file control block if
     * file was extended                                              
     */                                                               
    iop->offset += ret;                                               
 8019580:	29 61 00 04 	lw r1,(r11+4)                                  
    if (iop->offset > fat_fd->fat_file_size)                          
 8019584:	29 82 00 18 	lw r2,(r12+24)                                 
                                                                      
    /*                                                                
     * update file size in both fat-file descriptor and file control block if
     * file was extended                                              
     */                                                               
    iop->offset += ret;                                               
 8019588:	b5 a1 08 00 	add r1,r13,r1                                  
 801958c:	59 61 00 04 	sw (r11+4),r1                                  
    if (iop->offset > fat_fd->fat_file_size)                          
 8019590:	50 41 00 02 	bgeu r2,r1,8019598 <msdos_file_write+0xb4>     
        fat_fd->fat_file_size = iop->offset;                          
 8019594:	59 81 00 18 	sw (r12+24),r1                                 
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
 8019598:	29 c1 00 9c 	lw r1,(r14+156)                                
 801959c:	fb ff b1 06 	calli 80059b4 <rtems_semaphore_release>        
    return ret;                                                       
}                                                                     
 80195a0:	b9 a0 08 00 	mv r1,r13                                      
 80195a4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80195a8:	2b 8b 00 18 	lw r11,(sp+24)                                 
 80195ac:	2b 8c 00 14 	lw r12,(sp+20)                                 
 80195b0:	2b 8d 00 10 	lw r13,(sp+16)                                 
 80195b4:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 80195b8:	2b 8f 00 08 	lw r15,(sp+8)                                  
 80195bc:	37 9c 00 18 	addi sp,sp,24                                  
 80195c0:	c3 a0 00 00 	ret                                            
                                                                      

08018c0c <msdos_filename_unix2dos>: /* * Fill the dos filename string with blanks. These are DOS's pad * characters. */ for (i = 0; i <= 10; i++)
 8018c0c:	34 04 00 00 	mvi r4,0                                       
		dn[i] = ' ';                                                        
 8018c10:	34 06 00 20 	mvi r6,32                                      
                                                                      
	/*                                                                   
	 * Fill the dos filename string with blanks. These are DOS's pad     
	 * characters.                                                       
	 */                                                                  
	for (i = 0; i <= 10; i++)                                            
 8018c14:	34 05 00 0b 	mvi r5,11                                      
/*                                                                    
 * Convert a unix filename to a DOS filename. Return -1 if wrong name is
 * supplied.                                                          
 */                                                                   
int                                                                   
msdos_filename_unix2dos(const char *un, int unlen, char *dn)          
 8018c18:	b4 64 38 00 	add r7,r3,r4                                   
	/*                                                                   
	 * Fill the dos filename string with blanks. These are DOS's pad     
	 * characters.                                                       
	 */                                                                  
	for (i = 0; i <= 10; i++)                                            
		dn[i] = ' ';                                                        
 8018c1c:	30 e6 00 00 	sb (r7+0),r6                                   
                                                                      
	/*                                                                   
	 * Fill the dos filename string with blanks. These are DOS's pad     
	 * characters.                                                       
	 */                                                                  
	for (i = 0; i <= 10; i++)                                            
 8018c20:	34 84 00 01 	addi r4,r4,1                                   
 8018c24:	5c 85 ff fd 	bne r4,r5,8018c18 <msdos_filename_unix2dos+0xc>
                                                                      
	/*                                                                   
	 * The filenames "." and ".." are handled specially, since they      
	 * don't follow dos filename rules.                                  
	 */                                                                  
	if (un[0] == '.' && unlen == 1) {                                    
 8018c28:	40 25 00 00 	lbu r5,(r1+0)                                  
 8018c2c:	64 44 00 01 	cmpei r4,r2,1                                  
 8018c30:	64 a5 00 2e 	cmpei r5,r5,46                                 
 8018c34:	a0 a4 20 00 	and r4,r5,r4                                   
 8018c38:	44 80 00 04 	be r4,r0,8018c48 <msdos_filename_unix2dos+0x3c><== ALWAYS TAKEN
		dn[0] = '.';                                                        
 8018c3c:	34 01 00 2e 	mvi r1,46                                      <== NOT EXECUTED
 8018c40:	30 61 00 00 	sb (r3+0),r1                                   <== NOT EXECUTED
		return 0;                                                           
 8018c44:	e0 00 00 44 	bi 8018d54 <msdos_filename_unix2dos+0x148>     <== NOT EXECUTED
	}                                                                    
	if (un[0] == '.' && un[1] == '.' && unlen == 2) {                    
 8018c48:	44 a4 00 0d 	be r5,r4,8018c7c <msdos_filename_unix2dos+0x70><== ALWAYS TAKEN
 8018c4c:	40 24 00 01 	lbu r4,(r1+1)                                  <== NOT EXECUTED
 8018c50:	64 45 00 02 	cmpei r5,r2,2                                  <== NOT EXECUTED
 8018c54:	64 84 00 2e 	cmpei r4,r4,46                                 <== NOT EXECUTED
 8018c58:	a0 85 20 00 	and r4,r4,r5                                   <== NOT EXECUTED
 8018c5c:	44 80 00 08 	be r4,r0,8018c7c <msdos_filename_unix2dos+0x70><== NOT EXECUTED
		dn[0] = '.';                                                        
 8018c60:	34 01 00 2e 	mvi r1,46                                      <== NOT EXECUTED
 8018c64:	30 61 00 00 	sb (r3+0),r1                                   <== NOT EXECUTED
		dn[1] = '.';                                                        
 8018c68:	30 61 00 01 	sb (r3+1),r1                                   <== NOT EXECUTED
		return 0;                                                           
 8018c6c:	e0 00 00 3a 	bi 8018d54 <msdos_filename_unix2dos+0x148>     <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Remove any dots from the start of a file name.                   
   */                                                                 
	while (unlen && (*un == '.')) {                                      
		un++;                                                               
 8018c70:	34 21 00 01 	addi r1,r1,1                                   <== NOT EXECUTED
		unlen--;                                                            
 8018c74:	34 42 ff ff 	addi r2,r2,-1                                  <== NOT EXECUTED
 8018c78:	e0 00 00 02 	bi 8018c80 <msdos_filename_unix2dos+0x74>      <== NOT EXECUTED
	}                                                                    
                                                                      
  /*                                                                  
   * Remove any dots from the start of a file name.                   
   */                                                                 
	while (unlen && (*un == '.')) {                                      
 8018c7c:	34 04 00 2e 	mvi r4,46                                      
 8018c80:	5c 40 00 07 	bne r2,r0,8018c9c <msdos_filename_unix2dos+0x90><== ALWAYS TAKEN
	 * of string, a '.', or 8 characters. Whichever happens first stops  
	 * us. This forms the name portion of the dos filename. Fold to      
	 * upper case.                                                       
	 */                                                                  
	for (i = 0; i <= 7 && unlen && (c = *un) && c != '.'; i++) {         
    if (msdos_map[c] == 0)                                            
 8018c84:	78 05 08 02 	mvhi r5,0x802                                  
                                                                      
	/*                                                                   
	 * Fill the dos filename string with blanks. These are DOS's pad     
	 * characters.                                                       
	 */                                                                  
	for (i = 0; i <= 10; i++)                                            
 8018c88:	34 04 00 00 	mvi r4,0                                       
	 * Copy the unix filename into the dos filename string upto the end  
	 * of string, a '.', or 8 characters. Whichever happens first stops  
	 * us. This forms the name portion of the dos filename. Fold to      
	 * upper case.                                                       
	 */                                                                  
	for (i = 0; i <= 7 && unlen && (c = *un) && c != '.'; i++) {         
 8018c8c:	34 08 00 07 	mvi r8,7                                       
 8018c90:	34 07 00 2e 	mvi r7,46                                      
    if (msdos_map[c] == 0)                                            
 8018c94:	38 a5 d8 84 	ori r5,r5,0xd884                               
 8018c98:	e0 00 00 0c 	bi 8018cc8 <msdos_filename_unix2dos+0xbc>      
	}                                                                    
                                                                      
  /*                                                                  
   * Remove any dots from the start of a file name.                   
   */                                                                 
	while (unlen && (*un == '.')) {                                      
 8018c9c:	40 25 00 00 	lbu r5,(r1+0)                                  
 8018ca0:	44 a4 ff f4 	be r5,r4,8018c70 <msdos_filename_unix2dos+0x64><== NEVER TAKEN
 8018ca4:	e3 ff ff f8 	bi 8018c84 <msdos_filename_unix2dos+0x78>      
	 * of string, a '.', or 8 characters. Whichever happens first stops  
	 * us. This forms the name portion of the dos filename. Fold to      
	 * upper case.                                                       
	 */                                                                  
	for (i = 0; i <= 7 && unlen && (c = *un) && c != '.'; i++) {         
    if (msdos_map[c] == 0)                                            
 8018ca8:	b4 a6 30 00 	add r6,r5,r6                                   
 8018cac:	40 c6 00 00 	lbu r6,(r6+0)                                  
 8018cb0:	44 c0 00 12 	be r6,r0,8018cf8 <msdos_filename_unix2dos+0xec>
/*                                                                    
 * Convert a unix filename to a DOS filename. Return -1 if wrong name is
 * supplied.                                                          
 */                                                                   
int                                                                   
msdos_filename_unix2dos(const char *un, int unlen, char *dn)          
 8018cb4:	b4 64 48 00 	add r9,r3,r4                                   
	 * upper case.                                                       
	 */                                                                  
	for (i = 0; i <= 7 && unlen && (c = *un) && c != '.'; i++) {         
    if (msdos_map[c] == 0)                                            
      break;                                                          
		dn[i] = msdos_map[c];                                               
 8018cb8:	31 26 00 00 	sb (r9+0),r6                                   
		un++;                                                               
 8018cbc:	34 21 00 01 	addi r1,r1,1                                   
		unlen--;                                                            
 8018cc0:	34 42 ff ff 	addi r2,r2,-1                                  
	 * Copy the unix filename into the dos filename string upto the end  
	 * of string, a '.', or 8 characters. Whichever happens first stops  
	 * us. This forms the name portion of the dos filename. Fold to      
	 * upper case.                                                       
	 */                                                                  
	for (i = 0; i <= 7 && unlen && (c = *un) && c != '.'; i++) {         
 8018cc4:	34 84 00 01 	addi r4,r4,1                                   
 8018cc8:	7c 49 00 00 	cmpnei r9,r2,0                                 
 8018ccc:	ed 04 30 00 	cmpge r6,r8,r4                                 
 8018cd0:	a1 26 30 00 	and r6,r9,r6                                   
 8018cd4:	44 c0 00 09 	be r6,r0,8018cf8 <msdos_filename_unix2dos+0xec>
 8018cd8:	40 26 00 00 	lbu r6,(r1+0)                                  
 8018cdc:	44 c0 00 07 	be r6,r0,8018cf8 <msdos_filename_unix2dos+0xec><== NEVER TAKEN
 8018ce0:	5c c7 ff f2 	bne r6,r7,8018ca8 <msdos_filename_unix2dos+0x9c>
 8018ce4:	e0 00 00 05 	bi 8018cf8 <msdos_filename_unix2dos+0xec>      
	/*                                                                   
	 * Strip any further characters up to a '.' or the end of the        
	 * string.                                                           
	 */                                                                  
	while (unlen && (c = *un)) {                                         
		un++;                                                               
 8018ce8:	34 21 00 01 	addi r1,r1,1                                   
		unlen--;                                                            
 8018cec:	34 42 ff ff 	addi r2,r2,-1                                  
		/* Make sure we've skipped over the dot before stopping. */         
		if (c == '.')                                                       
 8018cf0:	5c 85 00 03 	bne r4,r5,8018cfc <msdos_filename_unix2dos+0xf0>
 8018cf4:	e0 00 00 05 	bi 8018d08 <msdos_filename_unix2dos+0xfc>      
 8018cf8:	34 05 00 2e 	mvi r5,46                                      
                                                                      
	/*                                                                   
	 * Strip any further characters up to a '.' or the end of the        
	 * string.                                                           
	 */                                                                  
	while (unlen && (c = *un)) {                                         
 8018cfc:	44 40 00 03 	be r2,r0,8018d08 <msdos_filename_unix2dos+0xfc>
 8018d00:	40 24 00 00 	lbu r4,(r1+0)                                  
 8018d04:	5c 80 ff f9 	bne r4,r0,8018ce8 <msdos_filename_unix2dos+0xdc><== ALWAYS TAKEN
	 * Copy in the extension part of the name, if any. Force to upper    
	 * case. Note that the extension is allowed to contain '.'s.         
	 * Filenames in this form are probably inaccessable under dos.       
	 */                                                                  
	for (i = 8; i <= 10 && unlen && (c = *un); i++) {                    
    if (msdos_map[c] == 0)                                            
 8018d08:	78 05 08 02 	mvhi r5,0x802                                  
                                                                      
	/*                                                                   
	 * Fill the dos filename string with blanks. These are DOS's pad     
	 * characters.                                                       
	 */                                                                  
	for (i = 0; i <= 10; i++)                                            
 8018d0c:	34 04 00 08 	mvi r4,8                                       
	/*                                                                   
	 * Copy in the extension part of the name, if any. Force to upper    
	 * case. Note that the extension is allowed to contain '.'s.         
	 * Filenames in this form are probably inaccessable under dos.       
	 */                                                                  
	for (i = 8; i <= 10 && unlen && (c = *un); i++) {                    
 8018d10:	34 07 00 0a 	mvi r7,10                                      
    if (msdos_map[c] == 0)                                            
 8018d14:	38 a5 d8 84 	ori r5,r5,0xd884                               
 8018d18:	e0 00 00 09 	bi 8018d3c <msdos_filename_unix2dos+0x130>     
 8018d1c:	b4 a6 30 00 	add r6,r5,r6                                   
 8018d20:	40 c6 00 00 	lbu r6,(r6+0)                                  
 8018d24:	44 c0 00 0c 	be r6,r0,8018d54 <msdos_filename_unix2dos+0x148>
/*                                                                    
 * Convert a unix filename to a DOS filename. Return -1 if wrong name is
 * supplied.                                                          
 */                                                                   
int                                                                   
msdos_filename_unix2dos(const char *un, int unlen, char *dn)          
 8018d28:	b4 64 40 00 	add r8,r3,r4                                   
	 * Filenames in this form are probably inaccessable under dos.       
	 */                                                                  
	for (i = 8; i <= 10 && unlen && (c = *un); i++) {                    
    if (msdos_map[c] == 0)                                            
      break;                                                          
    dn[i] = msdos_map[c];                                             
 8018d2c:	31 06 00 00 	sb (r8+0),r6                                   
		un++;                                                               
 8018d30:	34 21 00 01 	addi r1,r1,1                                   
		unlen--;                                                            
 8018d34:	34 42 ff ff 	addi r2,r2,-1                                  
	/*                                                                   
	 * Copy in the extension part of the name, if any. Force to upper    
	 * case. Note that the extension is allowed to contain '.'s.         
	 * Filenames in this form are probably inaccessable under dos.       
	 */                                                                  
	for (i = 8; i <= 10 && unlen && (c = *un); i++) {                    
 8018d38:	34 84 00 01 	addi r4,r4,1                                   
 8018d3c:	7c 48 00 00 	cmpnei r8,r2,0                                 
 8018d40:	ec e4 30 00 	cmpge r6,r7,r4                                 
 8018d44:	a1 06 30 00 	and r6,r8,r6                                   
 8018d48:	44 c0 00 03 	be r6,r0,8018d54 <msdos_filename_unix2dos+0x148>
 8018d4c:	40 26 00 00 	lbu r6,(r1+0)                                  
 8018d50:	5c c0 ff f3 	bne r6,r0,8018d1c <msdos_filename_unix2dos+0x110><== ALWAYS TAKEN
    dn[i] = msdos_map[c];                                             
		un++;                                                               
		unlen--;                                                            
	}                                                                    
	return 0;                                                            
}                                                                     
 8018d54:	34 01 00 00 	mvi r1,0                                       
 8018d58:	c3 a0 00 00 	ret                                            
                                                                      

080174ac <msdos_find_name>: msdos_find_name( rtems_filesystem_location_info_t *parent_loc, const char *name, int name_len ) {
 80174ac:	37 9c ff a4 	addi sp,sp,-92                                 
 80174b0:	5b 8b 00 24 	sw (sp+36),r11                                 
 80174b4:	5b 8c 00 20 	sw (sp+32),r12                                 
 80174b8:	5b 8d 00 1c 	sw (sp+28),r13                                 
 80174bc:	5b 8e 00 18 	sw (sp+24),r14                                 
 80174c0:	5b 8f 00 14 	sw (sp+20),r15                                 
 80174c4:	5b 90 00 10 	sw (sp+16),r16                                 
 80174c8:	5b 91 00 0c 	sw (sp+12),r17                                 
 80174cc:	5b 92 00 08 	sw (sp+8),r18                                  
 80174d0:	5b 9d 00 04 	sw (sp+4),ra                                   
 80174d4:	b8 20 78 00 	mv r15,r1                                      
    int                rc = RC_OK;                                    
    msdos_fs_info_t   *fs_info = parent_loc->mt_entry->fs_info;       
 80174d8:	28 21 00 14 	lw r1,(r1+20)                                  
    fat_dir_pos_t      dir_pos;                                       
    unsigned short     time_val = 0;                                  
    unsigned short     date = 0;                                      
    char               node_entry[MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE]; 
                                                                      
    memset(node_entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);         
 80174dc:	37 8c 00 2c 	addi r12,sp,44                                 
msdos_find_name(                                                      
    rtems_filesystem_location_info_t *parent_loc,                     
    const char                       *name,                           
    int                               name_len                        
    )                                                                 
{                                                                     
 80174e0:	b8 60 58 00 	mv r11,r3                                      
 80174e4:	b8 40 68 00 	mv r13,r2                                      
    int                rc = RC_OK;                                    
    msdos_fs_info_t   *fs_info = parent_loc->mt_entry->fs_info;       
 80174e8:	28 2e 00 08 	lw r14,(r1+8)                                  
    fat_dir_pos_t      dir_pos;                                       
    unsigned short     time_val = 0;                                  
    unsigned short     date = 0;                                      
    char               node_entry[MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE]; 
                                                                      
    memset(node_entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);         
 80174ec:	34 02 00 00 	mvi r2,0                                       
 80174f0:	34 03 00 20 	mvi r3,32                                      
 80174f4:	b9 80 08 00 	mv r1,r12                                      
    int                               name_len                        
    )                                                                 
{                                                                     
    int                rc = RC_OK;                                    
    msdos_fs_info_t   *fs_info = parent_loc->mt_entry->fs_info;       
    fat_file_fd_t     *fat_fd = NULL;                                 
 80174f8:	5b 80 00 5c 	sw (sp+92),r0                                  
    fat_dir_pos_t      dir_pos;                                       
    unsigned short     time_val = 0;                                  
    unsigned short     date = 0;                                      
    char               node_entry[MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE]; 
                                                                      
    memset(node_entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);         
 80174fc:	f8 00 0c d3 	calli 801a848 <memset>                         
                                                                      
    name_type = msdos_long_to_short (name,                            
 8017500:	b9 60 10 00 	mv r2,r11                                      
 8017504:	b9 80 18 00 	mv r3,r12                                      
 8017508:	34 04 00 0b 	mvi r4,11                                      
 801750c:	b9 a0 08 00 	mv r1,r13                                      
 8017510:	fb ff f8 de 	calli 8015888 <msdos_long_to_short>            
                                                                      
    /*                                                                
     * find the node which correspondes to the name in the directory pointed by
     * 'parent_loc'                                                   
     */                                                               
    rc = msdos_get_name_node(parent_loc, false, name, name_len, name_type,
 8017514:	37 90 00 4c 	addi r16,sp,76                                 
    unsigned short     date = 0;                                      
    char               node_entry[MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE]; 
                                                                      
    memset(node_entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);         
                                                                      
    name_type = msdos_long_to_short (name,                            
 8017518:	b8 20 28 00 	mv r5,r1                                       
                                                                      
    /*                                                                
     * find the node which correspondes to the name in the directory pointed by
     * 'parent_loc'                                                   
     */                                                               
    rc = msdos_get_name_node(parent_loc, false, name, name_len, name_type,
 801751c:	b9 60 20 00 	mv r4,r11                                      
 8017520:	b9 e0 08 00 	mv r1,r15                                      
 8017524:	34 02 00 00 	mvi r2,0                                       
 8017528:	b9 a0 18 00 	mv r3,r13                                      
 801752c:	ba 00 30 00 	mv r6,r16                                      
 8017530:	b9 80 38 00 	mv r7,r12                                      
 8017534:	fb ff ff 86 	calli 801734c <msdos_get_name_node>            
 8017538:	b8 20 58 00 	mv r11,r1                                      
                             &dir_pos, node_entry);                   
    if (rc != RC_OK)                                                  
 801753c:	5c 20 00 78 	bne r1,r0,801771c <msdos_find_name+0x270>      
        return rc;                                                    
                                                                      
    if (((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_VOLUME_ID) ||     
 8017540:	43 81 00 37 	lbu r1,(sp+55)                                 
 8017544:	20 2d 00 08 	andi r13,r1,0x8                                
 8017548:	5d ab 00 74 	bne r13,r11,8017718 <msdos_find_name+0x26c>    <== NEVER TAKEN
        ((*MSDOS_DIR_ATTR(node_entry) & MSDOS_ATTR_LFN_MASK) == MSDOS_ATTR_LFN))
 801754c:	20 21 00 3f 	andi r1,r1,0x3f                                
    rc = msdos_get_name_node(parent_loc, false, name, name_len, name_type,
                             &dir_pos, node_entry);                   
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    if (((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_VOLUME_ID) ||     
 8017550:	34 02 00 0f 	mvi r2,15                                      
        ((*MSDOS_DIR_ATTR(node_entry) & MSDOS_ATTR_LFN_MASK) == MSDOS_ATTR_LFN))
        return MSDOS_NAME_NOT_FOUND_ERR;                              
 8017554:	34 0b 7d 01 	mvi r11,32001                                  
    rc = msdos_get_name_node(parent_loc, false, name, name_len, name_type,
                             &dir_pos, node_entry);                   
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    if (((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_VOLUME_ID) ||     
 8017558:	44 22 00 71 	be r1,r2,801771c <msdos_find_name+0x270>       <== NEVER TAKEN
        ((*MSDOS_DIR_ATTR(node_entry) & MSDOS_ATTR_LFN_MASK) == MSDOS_ATTR_LFN))
        return MSDOS_NAME_NOT_FOUND_ERR;                              
                                                                      
    /* open fat-file corresponded to the found node */                
    rc = fat_file_open(&fs_info->fat, &dir_pos, &fat_fd);             
 801755c:	b9 c0 08 00 	mv r1,r14                                      
 8017560:	ba 00 10 00 	mv r2,r16                                      
 8017564:	37 83 00 5c 	addi r3,sp,92                                  
 8017568:	fb ff de c9 	calli 800f08c <fat_file_open>                  
 801756c:	b8 20 58 00 	mv r11,r1                                      
    if (rc != RC_OK)                                                  
 8017570:	5c 2d 00 6b 	bne r1,r13,801771c <msdos_find_name+0x270>     <== NEVER TAKEN
        return rc;                                                    
                                                                      
    fat_fd->dir_pos = dir_pos;                                        
 8017574:	2b 8d 00 5c 	lw r13,(sp+92)                                 
 8017578:	2b 81 00 4c 	lw r1,(sp+76)                                  
     * size and first cluster num to the disk after each write operation
     * (even if one byte is written  - that is TOO slow) because      
     * otherwise real values of these fields stored in fat-file descriptor
     * may be accidentally rewritten with wrong values stored on the disk
     */                                                               
    if (fat_fd->links_num == 1)                                       
 801757c:	29 a2 00 08 	lw r2,(r13+8)                                  
    /* open fat-file corresponded to the found node */                
    rc = fat_file_open(&fs_info->fat, &dir_pos, &fat_fd);             
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    fat_fd->dir_pos = dir_pos;                                        
 8017580:	59 a1 00 20 	sw (r13+32),r1                                 
 8017584:	2b 81 00 50 	lw r1,(sp+80)                                  
 8017588:	59 a1 00 24 	sw (r13+36),r1                                 
 801758c:	2b 81 00 54 	lw r1,(sp+84)                                  
 8017590:	59 a1 00 28 	sw (r13+40),r1                                 
 8017594:	2b 81 00 58 	lw r1,(sp+88)                                  
 8017598:	59 a1 00 2c 	sw (r13+44),r1                                 
     * size and first cluster num to the disk after each write operation
     * (even if one byte is written  - that is TOO slow) because      
     * otherwise real values of these fields stored in fat-file descriptor
     * may be accidentally rewritten with wrong values stored on the disk
     */                                                               
    if (fat_fd->links_num == 1)                                       
 801759c:	34 01 00 01 	mvi r1,1                                       
 80175a0:	5c 41 00 53 	bne r2,r1,80176ec <msdos_find_name+0x240>      
    {                                                                 
        fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(node_entry);          
 80175a4:	2d 91 00 14 	lhu r17,(r12+20)                               
 80175a8:	34 02 00 08 	mvi r2,8                                       
 80175ac:	2d 90 00 1a 	lhu r16,(r12+26)                               
 80175b0:	ba 20 08 00 	mv r1,r17                                      
 80175b4:	fb ff a7 0d 	calli 80011e8 <__ashlsi3>                      
 80175b8:	b8 20 90 00 	mv r18,r1                                      
 80175bc:	34 02 00 08 	mvi r2,8                                       
 80175c0:	ba 20 08 00 	mv r1,r17                                      
 80175c4:	f8 00 53 13 	calli 802c210 <__lshrsi3>                      
 80175c8:	ba 41 08 00 	or r1,r18,r1                                   
 80175cc:	34 02 00 10 	mvi r2,16                                      
 80175d0:	20 21 ff ff 	andi r1,r1,0xffff                              
 80175d4:	fb ff a7 05 	calli 80011e8 <__ashlsi3>                      
 80175d8:	b8 20 88 00 	mv r17,r1                                      
 80175dc:	34 02 00 08 	mvi r2,8                                       
 80175e0:	ba 00 08 00 	mv r1,r16                                      
 80175e4:	fb ff a7 01 	calli 80011e8 <__ashlsi3>                      
 80175e8:	b8 20 90 00 	mv r18,r1                                      
 80175ec:	34 02 00 08 	mvi r2,8                                       
 80175f0:	ba 00 08 00 	mv r1,r16                                      
 80175f4:	f8 00 53 07 	calli 802c210 <__lshrsi3>                      
 80175f8:	ba 41 10 00 	or r2,r18,r1                                   
 80175fc:	20 42 ff ff 	andi r2,r2,0xffff                              
 8017600:	ba 22 10 00 	or r2,r17,r2                                   
                                                                      
        time_val = *MSDOS_DIR_WRITE_TIME(node_entry);                 
        date = *MSDOS_DIR_WRITE_DATE(node_entry);                     
 8017604:	2d 91 00 18 	lhu r17,(r12+24)                               
     * otherwise real values of these fields stored in fat-file descriptor
     * may be accidentally rewritten with wrong values stored on the disk
     */                                                               
    if (fat_fd->links_num == 1)                                       
    {                                                                 
        fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(node_entry);          
 8017608:	59 a2 00 1c 	sw (r13+28),r2                                 
 801760c:	34 02 00 08 	mvi r2,8                                       
 8017610:	ba 20 08 00 	mv r1,r17                                      
 8017614:	fb ff a6 f5 	calli 80011e8 <__ashlsi3>                      
                                                                      
        time_val = *MSDOS_DIR_WRITE_TIME(node_entry);                 
 8017618:	2d 90 00 16 	lhu r16,(r12+22)                               
 801761c:	b8 20 90 00 	mv r18,r1                                      
 8017620:	34 02 00 08 	mvi r2,8                                       
 8017624:	ba 20 08 00 	mv r1,r17                                      
 8017628:	f8 00 52 fa 	calli 802c210 <__lshrsi3>                      
 801762c:	ba 41 08 00 	or r1,r18,r1                                   
        date = *MSDOS_DIR_WRITE_DATE(node_entry);                     
                                                                      
        fat_fd->mtime = msdos_date_dos2unix(CF_LE_W(date), CF_LE_W(time_val));
 8017630:	20 31 ff ff 	andi r17,r1,0xffff                             
 8017634:	34 02 00 08 	mvi r2,8                                       
 8017638:	ba 00 08 00 	mv r1,r16                                      
 801763c:	fb ff a6 eb 	calli 80011e8 <__ashlsi3>                      
 8017640:	b8 20 90 00 	mv r18,r1                                      
 8017644:	34 02 00 08 	mvi r2,8                                       
 8017648:	ba 00 08 00 	mv r1,r16                                      
 801764c:	f8 00 52 f1 	calli 802c210 <__lshrsi3>                      
 8017650:	ba 41 10 00 	or r2,r18,r1                                   
 8017654:	20 42 ff ff 	andi r2,r2,0xffff                              
 8017658:	ba 20 08 00 	mv r1,r17                                      
 801765c:	f8 00 05 0c 	calli 8018a8c <msdos_date_dos2unix>            
 8017660:	59 a1 00 40 	sw (r13+64),r1                                 
                                                                      
        if ((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_DIRECTORY)     
 8017664:	43 81 00 37 	lbu r1,(sp+55)                                 
 8017668:	2b 82 00 5c 	lw r2,(sp+92)                                  
 801766c:	20 21 00 10 	andi r1,r1,0x10                                
 8017670:	44 2b 00 0b 	be r1,r11,801769c <msdos_find_name+0x1f0>      
        {                                                             
            fat_fd->fat_file_type = FAT_DIRECTORY;                    
            fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                
 8017674:	78 01 00 20 	mvhi r1,0x20                                   
 8017678:	58 41 00 14 	sw (r2+20),r1                                  
                                                                      
        fat_fd->mtime = msdos_date_dos2unix(CF_LE_W(date), CF_LE_W(time_val));
                                                                      
        if ((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_DIRECTORY)     
        {                                                             
            fat_fd->fat_file_type = FAT_DIRECTORY;                    
 801767c:	58 40 00 10 	sw (r2+16),r0                                  
            fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                
                                                                      
            rc = fat_file_size(&fs_info->fat, fat_fd);                
 8017680:	b9 c0 08 00 	mv r1,r14                                      
 8017684:	fb ff e1 7c 	calli 800fc74 <fat_file_size>                  
 8017688:	b8 20 58 00 	mv r11,r1                                      
            if (rc != RC_OK)                                          
 801768c:	44 20 00 0d 	be r1,r0,80176c0 <msdos_find_name+0x214>       <== ALWAYS TAKEN
            {                                                         
                fat_file_close(&fs_info->fat, fat_fd);                
 8017690:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 8017694:	2b 82 00 5c 	lw r2,(sp+92)                                  <== NOT EXECUTED
 8017698:	e0 00 00 1c 	bi 8017708 <msdos_find_name+0x25c>             <== NOT EXECUTED
                return rc;                                            
            }                                                         
        }                                                             
        else                                                          
        {                                                             
            fat_fd->fat_file_size = CF_LE_L(*MSDOS_DIR_FILE_SIZE(node_entry));
 801769c:	29 81 00 1c 	lw r1,(r12+28)                                 
 80176a0:	5b 82 00 28 	sw (sp+40),r2                                  
 80176a4:	fb ff f8 46 	calli 80157bc <CPU_swap_u32>                   
 80176a8:	2b 82 00 28 	lw r2,(sp+40)                                  
 80176ac:	58 41 00 18 	sw (r2+24),r1                                  
            fat_fd->fat_file_type = FAT_FILE;                         
 80176b0:	34 01 00 04 	mvi r1,4                                       
 80176b4:	58 41 00 10 	sw (r2+16),r1                                  
            fat_fd->size_limit = MSDOS_MAX_FILE_SIZE;                 
 80176b8:	34 01 ff ff 	mvi r1,-1                                      
 80176bc:	58 41 00 14 	sw (r2+20),r1                                  
        }                                                             
                                                                      
        /* these data is not actual for zero-length fat-file */       
        fat_fd->map.file_cln = 0;                                     
 80176c0:	2b 82 00 5c 	lw r2,(sp+92)                                  
        fat_fd->map.disk_cln = fat_fd->cln;                           
 80176c4:	28 41 00 1c 	lw r1,(r2+28)                                  
                                                                      
        if ((fat_fd->fat_file_size != 0) &&                           
 80176c8:	28 43 00 18 	lw r3,(r2+24)                                  
            fat_fd->fat_file_type = FAT_FILE;                         
            fat_fd->size_limit = MSDOS_MAX_FILE_SIZE;                 
        }                                                             
                                                                      
        /* these data is not actual for zero-length fat-file */       
        fat_fd->map.file_cln = 0;                                     
 80176cc:	58 40 00 34 	sw (r2+52),r0                                  
        fat_fd->map.disk_cln = fat_fd->cln;                           
 80176d0:	58 41 00 38 	sw (r2+56),r1                                  
                                                                      
        if ((fat_fd->fat_file_size != 0) &&                           
 80176d4:	44 60 00 04 	be r3,r0,80176e4 <msdos_find_name+0x238>       
            (fat_fd->fat_file_size <= fs_info->fat.vol.bpc))          
 80176d8:	2d c4 00 06 	lhu r4,(r14+6)                                 
                                                                      
        /* these data is not actual for zero-length fat-file */       
        fat_fd->map.file_cln = 0;                                     
        fat_fd->map.disk_cln = fat_fd->cln;                           
                                                                      
        if ((fat_fd->fat_file_size != 0) &&                           
 80176dc:	54 64 00 02 	bgu r3,r4,80176e4 <msdos_find_name+0x238>      
 80176e0:	e0 00 00 02 	bi 80176e8 <msdos_find_name+0x23c>             
        {                                                             
            fat_fd->map.last_cln = fat_fd->cln;                       
        }                                                             
        else                                                          
        {                                                             
            fat_fd->map.last_cln = FAT_UNDEFINED_VALUE;               
 80176e4:	34 01 ff ff 	mvi r1,-1                                      
 80176e8:	58 41 00 3c 	sw (r2+60),r1                                  
        }                                                             
    }                                                                 
                                                                      
    /* close fat-file corresponded to the node we searched in */      
    rc = fat_file_close(&fs_info->fat, parent_loc->node_access);      
 80176ec:	29 e2 00 08 	lw r2,(r15+8)                                  
 80176f0:	b9 c0 08 00 	mv r1,r14                                      
 80176f4:	fb ff df 9f 	calli 800f570 <fat_file_close>                 
 80176f8:	b8 20 58 00 	mv r11,r1                                      
 80176fc:	2b 82 00 5c 	lw r2,(sp+92)                                  
    if (rc != RC_OK)                                                  
 8017700:	44 20 00 04 	be r1,r0,8017710 <msdos_find_name+0x264>       <== ALWAYS TAKEN
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
 8017704:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 8017708:	fb ff df 9a 	calli 800f570 <fat_file_close>                 <== NOT EXECUTED
        return rc;                                                    
 801770c:	e0 00 00 04 	bi 801771c <msdos_find_name+0x270>             <== NOT EXECUTED
    }                                                                 
                                                                      
    /* update node_info_ptr field */                                  
    parent_loc->node_access = fat_fd;                                 
 8017710:	59 e2 00 08 	sw (r15+8),r2                                  
                                                                      
    return rc;                                                        
 8017714:	e0 00 00 02 	bi 801771c <msdos_find_name+0x270>             
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    if (((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_VOLUME_ID) ||     
        ((*MSDOS_DIR_ATTR(node_entry) & MSDOS_ATTR_LFN_MASK) == MSDOS_ATTR_LFN))
        return MSDOS_NAME_NOT_FOUND_ERR;                              
 8017718:	34 0b 7d 01 	mvi r11,32001                                  <== NOT EXECUTED
                                                                      
    /* update node_info_ptr field */                                  
    parent_loc->node_access = fat_fd;                                 
                                                                      
    return rc;                                                        
}                                                                     
 801771c:	b9 60 08 00 	mv r1,r11                                      
 8017720:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8017724:	2b 8b 00 24 	lw r11,(sp+36)                                 
 8017728:	2b 8c 00 20 	lw r12,(sp+32)                                 
 801772c:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 8017730:	2b 8e 00 18 	lw r14,(sp+24)                                 
 8017734:	2b 8f 00 14 	lw r15,(sp+20)                                 
 8017738:	2b 90 00 10 	lw r16,(sp+16)                                 
 801773c:	2b 91 00 0c 	lw r17,(sp+12)                                 
 8017740:	2b 92 00 08 	lw r18,(sp+8)                                  
 8017744:	37 9c 00 5c 	addi sp,sp,92                                  
 8017748:	c3 a0 00 00 	ret                                            
                                                                      

08016120 <msdos_find_name_in_fat_file>: int name_len, msdos_name_type_t name_type, fat_dir_pos_t *dir_pos, char *name_dir_entry ) {
 8016120:	37 9c ff 74 	addi sp,sp,-140                                
 8016124:	5b 8b 00 44 	sw (sp+68),r11                                 
 8016128:	5b 8c 00 40 	sw (sp+64),r12                                 
 801612c:	5b 8d 00 3c 	sw (sp+60),r13                                 
 8016130:	5b 8e 00 38 	sw (sp+56),r14                                 
 8016134:	5b 8f 00 34 	sw (sp+52),r15                                 
 8016138:	5b 90 00 30 	sw (sp+48),r16                                 
 801613c:	5b 91 00 2c 	sw (sp+44),r17                                 
 8016140:	5b 92 00 28 	sw (sp+40),r18                                 
 8016144:	5b 93 00 24 	sw (sp+36),r19                                 
 8016148:	5b 94 00 20 	sw (sp+32),r20                                 
 801614c:	5b 95 00 1c 	sw (sp+28),r21                                 
 8016150:	5b 96 00 18 	sw (sp+24),r22                                 
 8016154:	5b 97 00 14 	sw (sp+20),r23                                 
 8016158:	5b 98 00 10 	sw (sp+16),r24                                 
 801615c:	5b 99 00 0c 	sw (sp+12),r25                                 
 8016160:	5b 9b 00 08 	sw (sp+8),fp                                   
 8016164:	5b 9d 00 04 	sw (sp+4),ra                                   
    ssize_t          ret = 0;                                         
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
 8016168:	28 21 00 08 	lw r1,(r1+8)                                   
    int                                   name_len,                   
    msdos_name_type_t                     name_type,                  
    fat_dir_pos_t                        *dir_pos,                    
    char                                 *name_dir_entry              
                                )                                     
{                                                                     
 801616c:	5b 82 00 50 	sw (sp+80),r2                                  
 8016170:	5b 84 00 74 	sw (sp+116),r4                                 
 8016174:	5b 87 00 4c 	sw (sp+76),r7                                  
 8016178:	5b 88 00 48 	sw (sp+72),r8                                  
    ssize_t          ret = 0;                                         
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
 801617c:	5b 81 00 64 	sw (sp+100),r1                                 
    int                                   name_len,                   
    msdos_name_type_t                     name_type,                  
    fat_dir_pos_t                        *dir_pos,                    
    char                                 *name_dir_entry              
                                )                                     
{                                                                     
 8016180:	b8 a0 b8 00 	mv r23,r5                                      
 8016184:	b8 c0 d8 00 	mv fp,r6                                       
 8016188:	20 75 00 ff 	andi r21,r3,0xff                               
    uint32_t         empty_space_count = 0;                           
    bool             empty_space_found = false;                       
    uint32_t         entries_per_block;                               
    bool             read_cluster = false;                            
                                                                      
    assert(name_len > 0);                                             
 801618c:	48 a0 00 09 	bg r5,r0,80161b0 <msdos_find_name_in_fat_file+0x90><== ALWAYS TAKEN
 8016190:	78 01 08 02 	mvhi r1,0x802                                  <== NOT EXECUTED
 8016194:	78 03 08 02 	mvhi r3,0x802                                  <== NOT EXECUTED
 8016198:	78 04 08 02 	mvhi r4,0x802                                  <== NOT EXECUTED
 801619c:	38 21 d7 6c 	ori r1,r1,0xd76c                               <== NOT EXECUTED
 80161a0:	34 02 03 c9 	mvi r2,969                                     <== NOT EXECUTED
 80161a4:	38 63 d8 40 	ori r3,r3,0xd840                               <== NOT EXECUTED
 80161a8:	38 84 d7 ec 	ori r4,r4,0xd7ec                               <== NOT EXECUTED
 80161ac:	e0 00 00 41 	bi 80162b0 <msdos_find_name_in_fat_file+0x190> <== NOT EXECUTED
static inline void                                                    
fat_dir_pos_init(                                                     
    fat_dir_pos_t *dir_pos                                            
    )                                                                 
{                                                                     
  dir_pos->sname.cln = 0;                                             
 80161b0:	2b 81 00 4c 	lw r1,(sp+76)                                  
  dir_pos->sname.ofs = 0;                                             
  dir_pos->lname.cln = FAT_FILE_SHORT_NAME;                           
 80161b4:	34 09 ff ff 	mvi r9,-1                                      
                                                                      
    fat_dir_pos_init(dir_pos);                                        
                                                                      
    lfn_start.cln = lfn_start.ofs = FAT_FILE_SHORT_NAME;              
 80161b8:	5b 89 00 88 	sw (sp+136),r9                                 
static inline void                                                    
fat_dir_pos_init(                                                     
    fat_dir_pos_t *dir_pos                                            
    )                                                                 
{                                                                     
  dir_pos->sname.cln = 0;                                             
 80161bc:	58 20 00 00 	sw (r1+0),r0                                   
  dir_pos->sname.ofs = 0;                                             
 80161c0:	58 20 00 04 	sw (r1+4),r0                                   
  dir_pos->lname.cln = FAT_FILE_SHORT_NAME;                           
 80161c4:	58 29 00 08 	sw (r1+8),r9                                   
  dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;                           
 80161c8:	58 29 00 0c 	sw (r1+12),r9                                  
 80161cc:	5b 89 00 84 	sw (sp+132),r9                                 
     * is short still check for possible long entries with the short name.
     *                                                                
     * In PR1491 we need to have a LFN for a short file name entry. To
     * test this make this test always fail, ie add "0 &&".           
     */                                                               
    if (create_node && (name_type == MSDOS_NAME_SHORT))               
 80161d0:	46 a0 00 04 	be r21,r0,80161e0 <msdos_find_name_in_fat_file+0xc0>
      lfn_entries = 0;                                                
 80161d4:	5b 80 00 54 	sw (sp+84),r0                                  
     * is short still check for possible long entries with the short name.
     *                                                                
     * In PR1491 we need to have a LFN for a short file name entry. To
     * test this make this test always fail, ie add "0 &&".           
     */                                                               
    if (create_node && (name_type == MSDOS_NAME_SHORT))               
 80161d8:	34 09 00 01 	mvi r9,1                                       
 80161dc:	44 c9 00 05 	be r6,r9,80161f0 <msdos_find_name_in_fat_file+0xd0>
      lfn_entries = 0;                                                
    else                                                              
      lfn_entries =                                                   
 80161e0:	36 e1 00 0c 	addi r1,r23,12                                 
 80161e4:	34 02 00 0d 	mvi r2,13                                      
 80161e8:	fb ff ac 5a 	calli 8001350 <__divsi3>                       
 80161ec:	5b 81 00 54 	sw (sp+84),r1                                  
        ((name_len - 1) + MSDOS_LFN_LEN_PER_ENTRY) / MSDOS_LFN_LEN_PER_ENTRY;
                                                                      
    if (FAT_FD_OF_ROOT_DIR(fat_fd) &&                                 
 80161f0:	2b 82 00 50 	lw r2,(sp+80)                                  
 80161f4:	34 09 00 01 	mvi r9,1                                       
 80161f8:	28 4a 00 20 	lw r10,(r2+32)                                 
 80161fc:	5d 49 00 0a 	bne r10,r9,8016224 <msdos_find_name_in_fat_file+0x104>
 8016200:	28 49 00 24 	lw r9,(r2+36)                                  
 8016204:	5d 20 00 08 	bne r9,r0,8016224 <msdos_find_name_in_fat_file+0x104><== NEVER TAKEN
        (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))            
 8016208:	2b 83 00 64 	lw r3,(sp+100)                                 
 801620c:	40 6a 00 0e 	lbu r10,(r3+14)                                
 8016210:	21 4a 00 03 	andi r10,r10,0x3                               
      lfn_entries = 0;                                                
    else                                                              
      lfn_entries =                                                   
        ((name_len - 1) + MSDOS_LFN_LEN_PER_ENTRY) / MSDOS_LFN_LEN_PER_ENTRY;
                                                                      
    if (FAT_FD_OF_ROOT_DIR(fat_fd) &&                                 
 8016214:	45 49 00 04 	be r10,r9,8016224 <msdos_find_name_in_fat_file+0x104>
        (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))            
        bts2rd = fat_fd->fat_file_size;                               
 8016218:	28 44 00 18 	lw r4,(r2+24)                                  
 801621c:	5b 84 00 5c 	sw (sp+92),r4                                  
 8016220:	e0 00 00 04 	bi 8016230 <msdos_find_name_in_fat_file+0x110> 
    else                                                              
        bts2rd = fs_info->fat.vol.bpc;                                
 8016224:	2b 8f 00 64 	lw r15,(sp+100)                                
 8016228:	2d ef 00 06 	lhu r15,(r15+6)                                
 801622c:	5b 8f 00 5c 	sw (sp+92),r15                                 
                  /*                                                  
                   * Remainder is not empty so is this entry empty ?  
                   */                                                 
                  empty_space_count++;                                
                                                                      
                  if (empty_space_count == (lfn_entries + 1))         
 8016230:	2b 81 00 54 	lw r1,(sp+84)                                  
    /*                                                                
     * Scan the directory seeing if the file is present. While        
     * doing this see if a suitable location can be found to          
     * create the entry if the name is not found.                     
     */                                                               
    while ((ret = fat_file_read(&fs_info->fat, fat_fd, (dir_offset * bts2rd),
 8016234:	34 16 00 00 	mvi r22,0                                      
 8016238:	5b 97 00 6c 	sw (sp+108),r23                                
                  /*                                                  
                   * Remainder is not empty so is this entry empty ?  
                   */                                                 
                  empty_space_count++;                                
                                                                      
                  if (empty_space_count == (lfn_entries + 1))         
 801623c:	34 21 00 01 	addi r1,r1,1                                   
 8016240:	ba c0 b8 00 	mv r23,r22                                     
 8016244:	5b 9b 00 68 	sw (sp+104),fp                                 
    int              lfn_entries;                                     
    int              lfn_entry = 0;                                   
    uint32_t         empty_space_offset = 0;                          
    uint32_t         empty_space_entry = 0;                           
    uint32_t         empty_space_count = 0;                           
    bool             empty_space_found = false;                       
 8016248:	34 19 00 00 	mvi r25,0                                      
 801624c:	ba a0 d8 00 	mv fp,r21                                      
    uint8_t          lfn_checksum = 0;                                
    int              lfn_entries;                                     
    int              lfn_entry = 0;                                   
    uint32_t         empty_space_offset = 0;                          
    uint32_t         empty_space_entry = 0;                           
    uint32_t         empty_space_count = 0;                           
 8016250:	34 11 00 00 	mvi r17,0                                      
    bool             lfn_matched = false;                             
    uint8_t          lfn_checksum = 0;                                
    int              lfn_entries;                                     
    int              lfn_entry = 0;                                   
    uint32_t         empty_space_offset = 0;                          
    uint32_t         empty_space_entry = 0;                           
 8016254:	5b 80 00 60 	sw (sp+96),r0                                  
    fat_pos_t        lfn_start;                                       
    bool             lfn_matched = false;                             
    uint8_t          lfn_checksum = 0;                                
    int              lfn_entries;                                     
    int              lfn_entry = 0;                                   
    uint32_t         empty_space_offset = 0;                          
 8016258:	5b 80 00 58 	sw (sp+88),r0                                  
    uint32_t         bts2rd = 0;                                      
    fat_pos_t        lfn_start;                                       
    bool             lfn_matched = false;                             
    uint8_t          lfn_checksum = 0;                                
    int              lfn_entries;                                     
    int              lfn_entry = 0;                                   
 801625c:	34 12 00 00 	mvi r18,0                                      
    uint32_t         dir_offset = 0;                                  
    uint32_t         dir_entry = 0;                                   
    uint32_t         bts2rd = 0;                                      
    fat_pos_t        lfn_start;                                       
    bool             lfn_matched = false;                             
    uint8_t          lfn_checksum = 0;                                
 8016260:	34 18 00 00 	mvi r24,0                                      
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
    uint32_t         dir_offset = 0;                                  
    uint32_t         dir_entry = 0;                                   
    uint32_t         bts2rd = 0;                                      
    fat_pos_t        lfn_start;                                       
    bool             lfn_matched = false;                             
 8016264:	34 0c 00 00 	mvi r12,0                                      
    char                                 *name_dir_entry              
                                )                                     
{                                                                     
    ssize_t          ret = 0;                                         
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
    uint32_t         dir_offset = 0;                                  
 8016268:	34 13 00 00 	mvi r19,0                                      
                        memcpy(name_dir_entry, entry,                 
                               MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);    
                        return RC_OK;                                 
                    }                                                 
                                                                      
                    lfn_start.cln = FAT_FILE_SHORT_NAME;              
 801626c:	34 14 ff ff 	mvi r20,-1                                     
                  /*                                                  
                   * Remainder is not empty so is this entry empty ?  
                   */                                                 
                  empty_space_count++;                                
                                                                      
                  if (empty_space_count == (lfn_entries + 1))         
 8016270:	5b 81 00 70 	sw (sp+112),r1                                 
 8016274:	2b 8e 00 5c 	lw r14,(sp+92)                                 
 8016278:	2b 96 00 54 	lw r22,(sp+84)                                 
 801627c:	2b 95 00 64 	lw r21,(sp+100)                                
    /*                                                                
     * Scan the directory seeing if the file is present. While        
     * doing this see if a suitable location can be found to          
     * create the entry if the name is not found.                     
     */                                                               
    while ((ret = fat_file_read(&fs_info->fat, fat_fd, (dir_offset * bts2rd),
 8016280:	e0 00 01 06 	bi 8016698 <msdos_find_name_in_fat_file+0x578> 
        bool remainder_empty = false;                                 
#if MSDOS_FIND_PRINT                                                  
        printf ("MSFS:[2] dir_offset:%li\n", dir_offset);             
#endif                                                                
                                                                      
        if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)                  
 8016284:	34 02 00 1f 	mvi r2,31                                      
 8016288:	49 42 00 02 	bg r10,r2,8016290 <msdos_find_name_in_fat_file+0x170><== ALWAYS TAKEN
 801628c:	e0 00 02 61 	bi 8016c10 <msdos_find_name_in_fat_file+0xaf0> <== NOT EXECUTED
            rtems_set_errno_and_return_minus_one(EIO);                
                                                                      
        assert(ret == bts2rd);                                        
 8016290:	45 4e 00 09 	be r10,r14,80162b4 <msdos_find_name_in_fat_file+0x194><== ALWAYS TAKEN
 8016294:	78 01 08 02 	mvhi r1,0x802                                  <== NOT EXECUTED
 8016298:	78 03 08 02 	mvhi r3,0x802                                  <== NOT EXECUTED
 801629c:	78 04 08 02 	mvhi r4,0x802                                  <== NOT EXECUTED
 80162a0:	38 21 d7 6c 	ori r1,r1,0xd76c                               <== NOT EXECUTED
 80162a4:	34 02 03 f9 	mvi r2,1017                                    <== NOT EXECUTED
 80162a8:	38 63 d8 40 	ori r3,r3,0xd840                               <== NOT EXECUTED
 80162ac:	38 84 d7 fc 	ori r4,r4,0xd7fc                               <== NOT EXECUTED
 80162b0:	fb ff ee 41 	calli 8011bb4 <__assert_func>                  <== NOT EXECUTED
 80162b4:	34 10 00 00 	mvi r16,0                                      
        /* have to look at the DIR_NAME as "raw" 8-bit data */        
        for (dir_entry = 0;                                           
             dir_entry < bts2rd;                                      
             dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)          
        {                                                             
            char* entry = (char*) fs_info->cl_buf + dir_entry;        
 80162b8:	2a af 00 a0 	lw r15,(r21+160)                               
 80162bc:	b5 f0 78 00 	add r15,r15,r16                                
                                                                      
            /*                                                        
             * See if the entry is empty or the remainder of the directory is
             * empty ? Localise to make the code read better.         
             */                                                       
            bool entry_empty = (*MSDOS_DIR_ENTRY_TYPE(entry) ==       
 80162c0:	41 ea 00 00 	lbu r10,(r15+0)                                
             * to here and write the long file name if this is the start of
             * a series of empty entries. If empty_space_count is 0 then
             * we are currently not inside an empty series of entries. It
             * is a count of empty entries.                           
             */                                                       
            if (empty_space_count == 0)                               
 80162c4:	5e 20 00 03 	bne r17,r0,80162d0 <msdos_find_name_in_fat_file+0x1b0>
 80162c8:	5b 90 00 60 	sw (sp+96),r16                                 
 80162cc:	5b 93 00 58 	sw (sp+88),r19                                 
            {                                                         
                empty_space_entry = dir_entry;                        
                empty_space_offset = dir_offset;                      
            }                                                         
                                                                      
            if (remainder_empty)                                      
 80162d0:	5d 40 00 0f 	bne r10,r0,801630c <msdos_find_name_in_fat_file+0x1ec>
 80162d4:	bb 60 a8 00 	mv r21,fp                                      
                /*                                                    
                 * If just looking and there is no more entries in the
                 * directory - return name-not-found                  
                 */                                                   
                if (!create_node)                                     
                    return MSDOS_NAME_NOT_FOUND_ERR;                  
 80162d8:	34 0d 7d 01 	mvi r13,32001                                  
 80162dc:	2b 9b 00 68 	lw fp,(sp+104)                                 
#endif                                                                
                /*                                                    
                 * If just looking and there is no more entries in the
                 * directory - return name-not-found                  
                 */                                                   
                if (!create_node)                                     
 80162e0:	46 aa 02 5e 	be r21,r10,8016c58 <msdos_find_name_in_fat_file+0xb38>
                 * Lets go and write the directory entries. If we have not found
                 * any available space add the remaining number of entries to any that
                 * we may have already found that are just before this entry. If more
                 * are needed FAT_EOF is returned by the read and we extend the file.
                 */                                                   
                if (!empty_space_found)                               
 80162e4:	5f 20 00 f9 	bne r25,r0,80166c8 <msdos_find_name_in_fat_file+0x5a8>
        (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))            
        bts2rd = fat_fd->fat_file_size;                               
    else                                                              
        bts2rd = fs_info->fat.vol.bpc;                                
                                                                      
    entries_per_block = bts2rd / MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;   
 80162e8:	2b 81 00 5c 	lw r1,(sp+92)                                  
 80162ec:	34 02 00 05 	mvi r2,5                                       
 80162f0:	f8 00 57 c8 	calli 802c210 <__lshrsi3>                      
                 * are needed FAT_EOF is returned by the read and we extend the file.
                 */                                                   
                if (!empty_space_found)                               
                {                                                     
                  empty_space_count +=                                
                    entries_per_block - (dir_entry / MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);
 80162f4:	b6 21 60 00 	add r12,r17,r1                                 
 80162f8:	34 02 00 05 	mvi r2,5                                       
 80162fc:	ba 00 08 00 	mv r1,r16                                      
 8016300:	f8 00 57 c4 	calli 802c210 <__lshrsi3>                      
                 * we may have already found that are just before this entry. If more
                 * are needed FAT_EOF is returned by the read and we extend the file.
                 */                                                   
                if (!empty_space_found)                               
                {                                                     
                  empty_space_count +=                                
 8016304:	c9 81 88 00 	sub r17,r12,r1                                 
 8016308:	e0 00 00 f0 	bi 80166c8 <msdos_find_name_in_fat_file+0x5a8> 
                  printf ("MSFS:[3.2] esf:%i esc%i\n", empty_space_found, empty_space_count);
#endif                                                                
                }                                                     
                break;                                                
            }                                                         
            else if (entry_empty)                                     
 801630c:	34 03 00 e5 	mvi r3,229                                     
 8016310:	5d 43 00 06 	bne r10,r3,8016328 <msdos_find_name_in_fat_file+0x208>
            {                                                         
                if (create_node)                                      
 8016314:	47 60 00 dd 	be fp,r0,8016688 <msdos_find_name_in_fat_file+0x568>
                  /*                                                  
                   * Remainder is not empty so is this entry empty ?  
                   */                                                 
                  empty_space_count++;                                
                                                                      
                  if (empty_space_count == (lfn_entries + 1))         
 8016318:	2b 84 00 70 	lw r4,(sp+112)                                 
                if (create_node)                                      
                {                                                     
                  /*                                                  
                   * Remainder is not empty so is this entry empty ?  
                   */                                                 
                  empty_space_count++;                                
 801631c:	36 31 00 01 	addi r17,r17,1                                 
                                                                      
                  if (empty_space_count == (lfn_entries + 1))         
 8016320:	5e 24 00 da 	bne r17,r4,8016688 <msdos_find_name_in_fat_file+0x568>
 8016324:	e0 00 00 d8 	bi 8016684 <msdos_find_name_in_fat_file+0x564> 
                 * A valid entry so handle it.                        
                 *                                                    
                 * If empty space has not been found we need to start the
                 * count again.                                       
                 */                                                   
                if (create_node && !empty_space_found)                
 8016328:	47 60 00 04 	be fp,r0,8016338 <msdos_find_name_in_fat_file+0x218>
 801632c:	5f 20 00 03 	bne r25,r0,8016338 <msdos_find_name_in_fat_file+0x218><== NEVER TAKEN
                {                                                     
                    empty_space_entry = 0;                            
                    empty_space_count = 0;                            
 8016330:	34 11 00 00 	mvi r17,0                                      
                 * If empty space has not been found we need to start the
                 * count again.                                       
                 */                                                   
                if (create_node && !empty_space_found)                
                {                                                     
                    empty_space_entry = 0;                            
 8016334:	5b 80 00 60 	sw (sp+96),r0                                  
                                                                      
                /*                                                    
                 * Check the attribute to see if the entry is for a long
                 * file name.                                         
                 */                                                   
                if ((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) == 
 8016338:	41 e3 00 0b 	lbu r3,(r15+11)                                
 801633c:	34 01 00 0f 	mvi r1,15                                      
 8016340:	20 63 00 3f 	andi r3,r3,0x3f                                
 8016344:	5c 61 00 42 	bne r3,r1,801644c <msdos_find_name_in_fat_file+0x32c>
#endif                                                                
                    /*                                                
                     * If we are not already processing a LFN see if this is
                     * the first entry of a LFN ?                     
                     */                                               
                    if (lfn_start.cln == FAT_FILE_SHORT_NAME)         
 8016348:	2b 83 00 84 	lw r3,(sp+132)                                 
 801634c:	5c 74 00 0a 	bne r3,r20,8016374 <msdos_find_name_in_fat_file+0x254>
                                                                      
                        /*                                            
                         * The first entry must have the last long entry
                         * flag set.                                  
                         */                                           
                        if ((*MSDOS_DIR_ENTRY_TYPE(entry) &           
 8016350:	21 43 00 40 	andi r3,r10,0x40                               
                     * If we are not already processing a LFN see if this is
                     * the first entry of a LFN ?                     
                     */                                               
                    if (lfn_start.cln == FAT_FILE_SHORT_NAME)         
                    {                                                 
                        lfn_matched = false;                          
 8016354:	34 0c 00 00 	mvi r12,0                                      
                                                                      
                        /*                                            
                         * The first entry must have the last long entry
                         * flag set.                                  
                         */                                           
                        if ((*MSDOS_DIR_ENTRY_TYPE(entry) &           
 8016358:	44 60 00 cc 	be r3,r0,8016688 <msdos_find_name_in_fat_file+0x568>
                         * entry match the number we expect for this  
                         * file name. Note we do not know the number of
                         * characters in the entry so this is check further
                         * on when the characters are checked.        
                         */                                           
                        if (lfn_entries != (*MSDOS_DIR_ENTRY_TYPE(entry) &
 801635c:	21 4a 00 3f 	andi r10,r10,0x3f                              
 8016360:	5e ca 00 ca 	bne r22,r10,8016688 <msdos_find_name_in_fat_file+0x568>
                            continue;                                 
                                                                      
                        /*                                            
                         * Get the checksum of the short entry.       
                         */                                           
                        lfn_start.cln = dir_offset;                   
 8016364:	5b 93 00 84 	sw (sp+132),r19                                
                        lfn_start.ofs = dir_entry;                    
 8016368:	5b 90 00 88 	sw (sp+136),r16                                
                        lfn_entry = lfn_entries;                      
                        lfn_checksum = *MSDOS_DIR_LFN_CHECKSUM(entry);
 801636c:	41 f8 00 0d 	lbu r24,(r15+13)                               
 8016370:	ba c0 90 00 	mv r18,r22                                     
                     * If the entry number or the check sum do not match
                     * forget this series of long directory entries. These
                     * could be orphaned entries depending on the history
                     * of the disk.                                   
                     */                                               
                    if ((lfn_entry != (*MSDOS_DIR_ENTRY_TYPE(entry) & 
 8016374:	41 e3 00 00 	lbu r3,(r15+0)                                 
 8016378:	20 63 00 3f 	andi r3,r3,0x3f                                
 801637c:	5e 43 00 03 	bne r18,r3,8016388 <msdos_find_name_in_fat_file+0x268><== NEVER TAKEN
                                       MSDOS_LAST_LONG_ENTRY_MASK)) ||
 8016380:	41 e3 00 0d 	lbu r3,(r15+13)                                
 8016384:	44 78 00 03 	be r3,r24,8016390 <msdos_find_name_in_fat_file+0x270><== ALWAYS TAKEN
                        (lfn_checksum != *MSDOS_DIR_LFN_CHECKSUM(entry)))
                    {                                                 
#if MSDOS_FIND_PRINT                                                  
                        printf ("MSFS:[4.4] no match\n");             
#endif                                                                
                        lfn_start.cln = FAT_FILE_SHORT_NAME;          
 8016388:	5b 94 00 84 	sw (sp+132),r20                                <== NOT EXECUTED
                        continue;                                     
 801638c:	e0 00 00 bf 	bi 8016688 <msdos_find_name_in_fat_file+0x568> <== NOT EXECUTED
                    }                                                 
                                                                      
                    lfn_entry--;                                      
 8016390:	36 4b ff ff 	addi r11,r18,-1                                
                    o = lfn_entry * MSDOS_LFN_LEN_PER_ENTRY;          
 8016394:	34 02 00 01 	mvi r2,1                                       
 8016398:	b9 60 08 00 	mv r1,r11                                      
 801639c:	fb ff ab 93 	calli 80011e8 <__ashlsi3>                      
 80163a0:	b4 2b 08 00 	add r1,r1,r11                                  
 80163a4:	34 02 00 02 	mvi r2,2                                       
 80163a8:	fb ff ab 90 	calli 80011e8 <__ashlsi3>                      
 80163ac:	b4 2b 08 00 	add r1,r1,r11                                  
                    p = entry + 1;                                    
 80163b0:	35 ef 00 01 	addi r15,r15,1                                 
 80163b4:	b8 20 30 00 	mv r6,r1                                       
                                                                      
#if MSDOS_FIND_PRINT                                                  
                    printf ("MSFS:[5] lfne:%i\n", lfn_entry);         
#endif                                                                
                    for (i = 0; i < MSDOS_LFN_LEN_PER_ENTRY; i++)     
 80163b8:	34 05 00 00 	mvi r5,0                                       
                    {                                                 
#if MSDOS_FIND_PRINT > 1                                              
                        printf ("MSFS:[6] o:%i i:%i *p:%c(%02x) name[o + i]:%c(%02x)\n",
                                o, i, *p, *p, name[o + i], name[o + i]);
#endif                                                                
                        if (*p == '\0')                               
 80163bc:	41 e3 00 00 	lbu r3,(r15+0)                                 
 80163c0:	5c 60 00 06 	bne r3,r0,80163d8 <msdos_find_name_in_fat_file+0x2b8>
                            /*                                        
                             * If this is the first entry, ie the last part of the
                             * long file name and the length does not match then
                             * the file names do not match.           
                             */                                       
                            if (((lfn_entry + 1) == lfn_entries) &&   
 80163c4:	5e 56 00 1b 	bne r18,r22,8016430 <msdos_find_name_in_fat_file+0x310><== NEVER TAKEN
 80163c8:	2b 82 00 6c 	lw r2,(sp+108)                                 
                                ((o + i) != name_len))                
 80163cc:	b4 a1 18 00 	add r3,r5,r1                                   
                            /*                                        
                             * If this is the first entry, ie the last part of the
                             * long file name and the length does not match then
                             * the file names do not match.           
                             */                                       
                            if (((lfn_entry + 1) == lfn_entries) &&   
 80163d0:	5c 62 00 08 	bne r3,r2,80163f0 <msdos_find_name_in_fat_file+0x2d0><== NEVER TAKEN
 80163d4:	e0 00 00 17 	bi 8016430 <msdos_find_name_in_fat_file+0x310> 
                                ((o + i) != name_len))                
                                lfn_start.cln = FAT_FILE_SHORT_NAME;  
                            break;                                    
                        }                                             
                                                                      
                        if (((o + i) >= name_len) || (*p != name[o + i]))
 80163d8:	2b 84 00 6c 	lw r4,(sp+108)                                 
 80163dc:	4c c4 00 05 	bge r6,r4,80163f0 <msdos_find_name_in_fat_file+0x2d0>
 *     RC_OK on success, or error code if error occured (errno set    
 *     appropriately)                                                 
 *                                                                    
 */                                                                   
#define MSDOS_FIND_PRINT 0                                            
int msdos_find_name_in_fat_file(                                      
 80163e0:	2b 84 00 74 	lw r4,(sp+116)                                 
 80163e4:	b4 86 10 00 	add r2,r4,r6                                   
                                ((o + i) != name_len))                
                                lfn_start.cln = FAT_FILE_SHORT_NAME;  
                            break;                                    
                        }                                             
                                                                      
                        if (((o + i) >= name_len) || (*p != name[o + i]))
 80163e8:	40 42 00 00 	lbu r2,(r2+0)                                  
 80163ec:	44 43 00 03 	be r2,r3,80163f8 <msdos_find_name_in_fat_file+0x2d8>
                        {                                             
                            lfn_start.cln = FAT_FILE_SHORT_NAME;      
 80163f0:	5b 94 00 84 	sw (sp+132),r20                                
                            break;                                    
 80163f4:	e0 00 00 0f 	bi 8016430 <msdos_find_name_in_fat_file+0x310> 
                        }                                             
                                                                      
                        switch (i)                                    
 80163f8:	34 02 00 04 	mvi r2,4                                       
 80163fc:	44 a2 00 04 	be r5,r2,801640c <msdos_find_name_in_fat_file+0x2ec>
 8016400:	34 03 00 0a 	mvi r3,10                                      
 8016404:	5c a3 00 06 	bne r5,r3,801641c <msdos_find_name_in_fat_file+0x2fc>
 8016408:	e0 00 00 03 	bi 8016414 <msdos_find_name_in_fat_file+0x2f4> 
                        {                                             
                            case 4:                                   
                                p += 5;                               
 801640c:	35 ef 00 05 	addi r15,r15,5                                 
                                break;                                
 8016410:	e0 00 00 04 	bi 8016420 <msdos_find_name_in_fat_file+0x300> 
                            case 10:                                  
                                p += 4;                               
 8016414:	35 ef 00 04 	addi r15,r15,4                                 
                                break;                                
 8016418:	e0 00 00 02 	bi 8016420 <msdos_find_name_in_fat_file+0x300> 
                            default:                                  
                                p += 2;                               
 801641c:	35 ef 00 02 	addi r15,r15,2                                 
                    p = entry + 1;                                    
                                                                      
#if MSDOS_FIND_PRINT                                                  
                    printf ("MSFS:[5] lfne:%i\n", lfn_entry);         
#endif                                                                
                    for (i = 0; i < MSDOS_LFN_LEN_PER_ENTRY; i++)     
 8016420:	34 a5 00 01 	addi r5,r5,1                                   
 8016424:	34 04 00 0d 	mvi r4,13                                      
 8016428:	34 c6 00 01 	addi r6,r6,1                                   
 801642c:	5c a4 ff e4 	bne r5,r4,80163bc <msdos_find_name_in_fat_file+0x29c>
                                p += 2;                               
                                break;                                
                        }                                             
                    }                                                 
                                                                      
                    lfn_matched = ((lfn_entry == 0) &&                
 8016430:	34 0c 00 00 	mvi r12,0                                      
 8016434:	5d 60 00 03 	bne r11,r0,8016440 <msdos_find_name_in_fat_file+0x320>
 *     RC_OK on success, or error code if error occured (errno set    
 *     appropriately)                                                 
 *                                                                    
 */                                                                   
#define MSDOS_FIND_PRINT 0                                            
int msdos_find_name_in_fat_file(                                      
 8016438:	2b 8c 00 84 	lw r12,(sp+132)                                
 801643c:	7d 8c ff ff 	cmpnei r12,r12,-1                              
                                p += 2;                               
                                break;                                
                        }                                             
                    }                                                 
                                                                      
                    lfn_matched = ((lfn_entry == 0) &&                
 8016440:	21 8c 00 ff 	andi r12,r12,0xff                              
#endif                                                                
                        lfn_start.cln = FAT_FILE_SHORT_NAME;          
                        continue;                                     
                    }                                                 
                                                                      
                    lfn_entry--;                                      
 8016444:	b9 60 90 00 	mv r18,r11                                     
 8016448:	e0 00 00 90 	bi 8016688 <msdos_find_name_in_fat_file+0x568> 
                     * If a LFN has been found and it matched check the
                     * entries have all been found and the checksum is
                     * correct. If this is the case return the short file
                     * name entry.                                    
                     */                                               
                    if (lfn_matched)                                  
 801644c:	45 80 00 15 	be r12,r0,80164a0 <msdos_find_name_in_fat_file+0x380>
 8016450:	34 0c 00 00 	mvi r12,0                                      
 8016454:	34 01 00 00 	mvi r1,0                                       
                    {                                                 
                        uint8_t  cs = 0;                              
                        uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(entry);
                        int      i;                                   
                                                                      
                        for (i = 0; i < MSDOS_SHORT_NAME_LEN; i++, p++)
 8016458:	34 0d 00 0b 	mvi r13,11                                     
                            cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
 801645c:	20 22 00 01 	andi r2,r1,0x1                                 
 8016460:	34 0b 00 00 	mvi r11,0                                      
 8016464:	44 40 00 02 	be r2,r0,801646c <msdos_find_name_in_fat_file+0x34c>
 8016468:	34 0b 00 80 	mvi r11,128                                    
 801646c:	34 02 00 01 	mvi r2,1                                       
 8016470:	f8 00 57 68 	calli 802c210 <__lshrsi3>                      
 *     RC_OK on success, or error code if error occured (errno set    
 *     appropriately)                                                 
 *                                                                    
 */                                                                   
#define MSDOS_FIND_PRINT 0                                            
int msdos_find_name_in_fat_file(                                      
 8016474:	b5 ec 10 00 	add r2,r15,r12                                 
                        uint8_t  cs = 0;                              
                        uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(entry);
                        int      i;                                   
                                                                      
                        for (i = 0; i < MSDOS_SHORT_NAME_LEN; i++, p++)
                            cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
 8016478:	40 42 00 00 	lbu r2,(r2+0)                                  
                    {                                                 
                        uint8_t  cs = 0;                              
                        uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(entry);
                        int      i;                                   
                                                                      
                        for (i = 0; i < MSDOS_SHORT_NAME_LEN; i++, p++)
 801647c:	35 8c 00 01 	addi r12,r12,1                                 
                            cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
 8016480:	b4 22 08 00 	add r1,r1,r2                                   
 8016484:	b4 2b 08 00 	add r1,r1,r11                                  
 8016488:	20 21 00 ff 	andi r1,r1,0xff                                
                    {                                                 
                        uint8_t  cs = 0;                              
                        uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(entry);
                        int      i;                                   
                                                                      
                        for (i = 0; i < MSDOS_SHORT_NAME_LEN; i++, p++)
 801648c:	5d 8d ff f4 	bne r12,r13,801645c <msdos_find_name_in_fat_file+0x33c>
                            cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
                                                                      
                        if (lfn_entry || (lfn_checksum != cs))        
 8016490:	ff 01 58 00 	cmpne r11,r24,r1                               
 8016494:	7e 44 00 00 	cmpnei r4,r18,0                                
 8016498:	b9 64 58 00 	or r11,r11,r4                                  
 801649c:	45 60 00 0b 	be r11,r0,80164c8 <msdos_find_name_in_fat_file+0x3a8><== ALWAYS TAKEN
                     * short and they match then we have the entry. We will not
                     * match a long file name against a short file name because
                     * a long file name that generates a matching short file
                     * name is not a long file name.                  
                     */                                               
                    if (lfn_matched ||                                
 80164a0:	2b 81 00 68 	lw r1,(sp+104)                                 
 80164a4:	34 02 00 01 	mvi r2,1                                       
 80164a8:	5c 22 00 74 	bne r1,r2,8016678 <msdos_find_name_in_fat_file+0x558>
                        ((name_type == MSDOS_NAME_SHORT) &&           
 80164ac:	2b 83 00 84 	lw r3,(sp+132)                                 
 80164b0:	5c 74 00 72 	bne r3,r20,8016678 <msdos_find_name_in_fat_file+0x558><== NEVER TAKEN
                         (lfn_start.cln == FAT_FILE_SHORT_NAME) &&    
                         (memcmp(MSDOS_DIR_NAME(entry),               
 80164b4:	2b 82 00 48 	lw r2,(sp+72)                                  
 80164b8:	b9 e0 08 00 	mv r1,r15                                      
 80164bc:	34 03 00 0b 	mvi r3,11                                      
 80164c0:	f8 00 10 80 	calli 801a6c0 <memcmp>                         
                     * a long file name that generates a matching short file
                     * name is not a long file name.                  
                     */                                               
                    if (lfn_matched ||                                
                        ((name_type == MSDOS_NAME_SHORT) &&           
                         (lfn_start.cln == FAT_FILE_SHORT_NAME) &&    
 80164c4:	5c 20 00 6d 	bne r1,r0,8016678 <msdos_find_name_in_fat_file+0x558>
#endif                                                                
                        /*                                            
                         * We get the entry we looked for - fill the position
                         * structure and the 32 bytes of the short entry
                         */                                           
                        int rc = fat_file_ioctl(&fs_info->fat, fat_fd, F_CLU_NUM,
 80164c8:	2b 81 00 64 	lw r1,(sp+100)                                 
 80164cc:	2b 82 00 50 	lw r2,(sp+80)                                  
 80164d0:	2b 85 00 4c 	lw r5,(sp+76)                                  
 80164d4:	34 03 00 01 	mvi r3,1                                       
 80164d8:	ba e0 20 00 	mv r4,r23                                      
 80164dc:	fb ff e4 57 	calli 800f638 <fat_file_ioctl>                 
 80164e0:	b8 20 68 00 	mv r13,r1                                      
                                                dir_offset * bts2rd,  
                                                &dir_pos->sname.cln); 
                        if (rc != RC_OK)                              
 80164e4:	5c 20 01 dd 	bne r1,r0,8016c58 <msdos_find_name_in_fat_file+0xb38><== NEVER TAKEN
                            return rc;                                
                                                                      
                        dir_pos->sname.ofs = dir_entry;               
 80164e8:	2b 83 00 4c 	lw r3,(sp+76)                                  
                                                                      
                        if (lfn_start.cln != FAT_FILE_SHORT_NAME)     
 80164ec:	2b 8a 00 84 	lw r10,(sp+132)                                
 80164f0:	34 0b ff ff 	mvi r11,-1                                     
                                                dir_offset * bts2rd,  
                                                &dir_pos->sname.cln); 
                        if (rc != RC_OK)                              
                            return rc;                                
                                                                      
                        dir_pos->sname.ofs = dir_entry;               
 80164f4:	58 70 00 04 	sw (r3+4),r16                                  
                                                                      
                        if (lfn_start.cln != FAT_FILE_SHORT_NAME)     
 80164f8:	45 4b 00 0b 	be r10,r11,8016524 <msdos_find_name_in_fat_file+0x404>
                        {                                             
                          rc = fat_file_ioctl(&fs_info->fat, fat_fd, F_CLU_NUM,
 80164fc:	2b 81 00 5c 	lw r1,(sp+92)                                  
 8016500:	b9 40 10 00 	mv r2,r10                                      
 8016504:	fb ff ab 87 	calli 8001320 <__mulsi3>                       
 8016508:	b8 20 20 00 	mv r4,r1                                       
 801650c:	2b 82 00 50 	lw r2,(sp+80)                                  
 8016510:	2b 81 00 64 	lw r1,(sp+100)                                 
 8016514:	34 03 00 01 	mvi r3,1                                       
 8016518:	37 85 00 84 	addi r5,sp,132                                 
 801651c:	fb ff e4 47 	calli 800f638 <fat_file_ioctl>                 
                                              lfn_start.cln * bts2rd, 
                                              &lfn_start.cln);        
                          if (rc != RC_OK)                            
 8016520:	5c 20 01 c9 	bne r1,r0,8016c44 <msdos_find_name_in_fat_file+0xb24><== NEVER TAKEN
                            return rc;                                
                        }                                             
                                                                      
                        dir_pos->lname.cln = lfn_start.cln;           
 8016524:	2b 84 00 4c 	lw r4,(sp+76)                                  
 8016528:	2b 83 00 84 	lw r3,(sp+132)                                 
 801652c:	58 83 00 08 	sw (r4+8),r3                                   
                        dir_pos->lname.ofs = lfn_start.ofs;           
 8016530:	2b 83 00 88 	lw r3,(sp+136)                                 
 8016534:	58 83 00 0c 	sw (r4+12),r3                                  
                                                                      
                        memcpy(name_dir_entry, entry,                 
 8016538:	41 f6 00 06 	lbu r22,(r15+6)                                
 801653c:	41 e4 00 01 	lbu r4,(r15+1)                                 
 8016540:	41 e2 00 00 	lbu r2,(r15+0)                                 
 8016544:	41 e6 00 02 	lbu r6,(r15+2)                                 
 8016548:	41 e8 00 03 	lbu r8,(r15+3)                                 
 801654c:	41 ea 00 04 	lbu r10,(r15+4)                                
 8016550:	41 ec 00 05 	lbu r12,(r15+5)                                
 8016554:	33 96 00 4c 	sb (sp+76),r22                                 
 8016558:	41 e1 00 07 	lbu r1,(r15+7)                                 
 801655c:	33 81 00 54 	sb (sp+84),r1                                  
 8016560:	41 e3 00 08 	lbu r3,(r15+8)                                 
 8016564:	33 83 00 58 	sb (sp+88),r3                                  
 8016568:	41 f6 00 09 	lbu r22,(r15+9)                                
 801656c:	33 96 00 5c 	sb (sp+92),r22                                 
 8016570:	41 e1 00 0a 	lbu r1,(r15+10)                                
 8016574:	33 81 00 50 	sb (sp+80),r1                                  
 8016578:	41 e3 00 0b 	lbu r3,(r15+11)                                
 801657c:	33 83 00 64 	sb (sp+100),r3                                 
 8016580:	41 f6 00 0c 	lbu r22,(r15+12)                               
 8016584:	33 96 00 60 	sb (sp+96),r22                                 
 8016588:	41 fd 00 0d 	lbu ra,(r15+13)                                
 801658c:	41 fb 00 0e 	lbu fp,(r15+14)                                
 8016590:	41 f9 00 0f 	lbu r25,(r15+15)                               
 8016594:	41 f8 00 10 	lbu r24,(r15+16)                               
 8016598:	41 f7 00 11 	lbu r23,(r15+17)                               
 801659c:	41 f6 00 12 	lbu r22,(r15+18)                               
 80165a0:	41 f5 00 13 	lbu r21,(r15+19)                               
 80165a4:	41 f4 00 14 	lbu r20,(r15+20)                               
 80165a8:	41 f3 00 15 	lbu r19,(r15+21)                               
 80165ac:	41 f2 00 16 	lbu r18,(r15+22)                               
 80165b0:	41 f1 00 17 	lbu r17,(r15+23)                               
 80165b4:	41 f0 00 18 	lbu r16,(r15+24)                               
 80165b8:	41 eb 00 19 	lbu r11,(r15+25)                               
 80165bc:	41 e9 00 1a 	lbu r9,(r15+26)                                
 80165c0:	41 e7 00 1b 	lbu r7,(r15+27)                                
 80165c4:	41 e5 00 1c 	lbu r5,(r15+28)                                
 80165c8:	41 e3 00 1d 	lbu r3,(r15+29)                                
 80165cc:	41 e1 00 1e 	lbu r1,(r15+30)                                
 80165d0:	41 ee 00 1f 	lbu r14,(r15+31)                               
 80165d4:	2b 8f 00 48 	lw r15,(sp+72)                                 
 80165d8:	31 e2 00 00 	sb (r15+0),r2                                  
 80165dc:	31 e4 00 01 	sb (r15+1),r4                                  
 80165e0:	31 e6 00 02 	sb (r15+2),r6                                  
 80165e4:	31 e8 00 03 	sb (r15+3),r8                                  
 80165e8:	31 ea 00 04 	sb (r15+4),r10                                 
 80165ec:	31 ec 00 05 	sb (r15+5),r12                                 
 80165f0:	43 82 00 4c 	lbu r2,(sp+76)                                 
 80165f4:	31 e2 00 06 	sb (r15+6),r2                                  
 80165f8:	43 84 00 54 	lbu r4,(sp+84)                                 
 80165fc:	31 e4 00 07 	sb (r15+7),r4                                  
 8016600:	43 82 00 58 	lbu r2,(sp+88)                                 
 8016604:	31 e2 00 08 	sb (r15+8),r2                                  
 8016608:	43 84 00 5c 	lbu r4,(sp+92)                                 
 801660c:	31 e4 00 09 	sb (r15+9),r4                                  
 8016610:	43 82 00 50 	lbu r2,(sp+80)                                 
 8016614:	31 e2 00 0a 	sb (r15+10),r2                                 
 8016618:	43 84 00 64 	lbu r4,(sp+100)                                
 801661c:	31 e4 00 0b 	sb (r15+11),r4                                 
 8016620:	43 82 00 60 	lbu r2,(sp+96)                                 
 8016624:	31 fd 00 0d 	sb (r15+13),ra                                 
 8016628:	31 fb 00 0e 	sb (r15+14),fp                                 
 801662c:	31 e2 00 0c 	sb (r15+12),r2                                 
 8016630:	31 f9 00 0f 	sb (r15+15),r25                                
 8016634:	31 f8 00 10 	sb (r15+16),r24                                
 8016638:	31 f7 00 11 	sb (r15+17),r23                                
 801663c:	31 f6 00 12 	sb (r15+18),r22                                
 8016640:	31 f5 00 13 	sb (r15+19),r21                                
 8016644:	31 f4 00 14 	sb (r15+20),r20                                
 8016648:	31 f3 00 15 	sb (r15+21),r19                                
 801664c:	31 f2 00 16 	sb (r15+22),r18                                
 8016650:	31 f1 00 17 	sb (r15+23),r17                                
 8016654:	31 f0 00 18 	sb (r15+24),r16                                
 8016658:	31 eb 00 19 	sb (r15+25),r11                                
 801665c:	31 e9 00 1a 	sb (r15+26),r9                                 
 8016660:	31 e7 00 1b 	sb (r15+27),r7                                 
 8016664:	31 e5 00 1c 	sb (r15+28),r5                                 
 8016668:	31 e3 00 1d 	sb (r15+29),r3                                 
 801666c:	31 e1 00 1e 	sb (r15+30),r1                                 
 8016670:	31 ee 00 1f 	sb (r15+31),r14                                
                               MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);    
                        return RC_OK;                                 
 8016674:	e0 00 01 79 	bi 8016c58 <msdos_find_name_in_fat_file+0xb38> 
                    }                                                 
                                                                      
                    lfn_start.cln = FAT_FILE_SHORT_NAME;              
 8016678:	5b 94 00 84 	sw (sp+132),r20                                
                    lfn_matched = false;                              
 801667c:	34 0c 00 00 	mvi r12,0                                      
 8016680:	e0 00 00 02 	bi 8016688 <msdos_find_name_in_fat_file+0x568> 
                   * Remainder is not empty so is this entry empty ?  
                   */                                                 
                  empty_space_count++;                                
                                                                      
                  if (empty_space_count == (lfn_entries + 1))         
                    empty_space_found = true;                         
 8016684:	34 19 00 01 	mvi r25,1                                      
        assert(ret == bts2rd);                                        
                                                                      
        /* have to look at the DIR_NAME as "raw" 8-bit data */        
        for (dir_entry = 0;                                           
             dir_entry < bts2rd;                                      
             dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)          
 8016688:	36 10 00 20 	addi r16,r16,32                                
            rtems_set_errno_and_return_minus_one(EIO);                
                                                                      
        assert(ret == bts2rd);                                        
                                                                      
        /* have to look at the DIR_NAME as "raw" 8-bit data */        
        for (dir_entry = 0;                                           
 801668c:	55 d0 ff 0b 	bgu r14,r16,80162b8 <msdos_find_name_in_fat_file+0x198>
 8016690:	b6 ee b8 00 	add r23,r23,r14                                
        }                                                             
                                                                      
        if (remainder_empty)                                          
            break;                                                    
                                                                      
        dir_offset++;                                                 
 8016694:	36 73 00 01 	addi r19,r19,1                                 
    /*                                                                
     * Scan the directory seeing if the file is present. While        
     * doing this see if a suitable location can be found to          
     * create the entry if the name is not found.                     
     */                                                               
    while ((ret = fat_file_read(&fs_info->fat, fat_fd, (dir_offset * bts2rd),
 8016698:	2b 82 00 50 	lw r2,(sp+80)                                  
 801669c:	2a a5 00 a0 	lw r5,(r21+160)                                
 80166a0:	ba a0 08 00 	mv r1,r21                                      
 80166a4:	ba e0 18 00 	mv r3,r23                                      
 80166a8:	b9 c0 20 00 	mv r4,r14                                      
 80166ac:	fb ff e2 de 	calli 800f224 <fat_file_read>                  
 80166b0:	b8 20 50 00 	mv r10,r1                                      
 80166b4:	5c 20 fe f4 	bne r1,r0,8016284 <msdos_find_name_in_fat_file+0x164>
 80166b8:	bb 60 a8 00 	mv r21,fp                                      
                                                                      
    /*                                                                
     * If we are not to create the entry return a not found error.    
     */                                                               
    if (!create_node)                                                 
      return MSDOS_NAME_NOT_FOUND_ERR;                                
 80166bc:	34 0d 7d 01 	mvi r13,32001                                  
 80166c0:	2b 9b 00 68 	lw fp,(sp+104)                                 
    }                                                                 
                                                                      
    /*                                                                
     * If we are not to create the entry return a not found error.    
     */                                                               
    if (!create_node)                                                 
 80166c4:	46 a1 01 65 	be r21,r1,8016c58 <msdos_find_name_in_fat_file+0xb38>
     * data to place in each long file name entry. First set the short
     * file name to the slot of the SFN entry. This will mean no clashes
     * in this directory.                                             
     */                                                               
    lfn_checksum = 0;                                                 
    if (name_type == MSDOS_NAME_LONG)                                 
 80166c8:	34 09 00 02 	mvi r9,2                                       
 80166cc:	5f 69 00 30 	bne fp,r9,801678c <msdos_find_name_in_fat_file+0x66c>
    {                                                                 
        int      slot = (((empty_space_offset * bts2rd) + empty_space_entry) /
                         MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE) + lfn_entries + 1;
 80166d0:	2b 83 00 54 	lw r3,(sp+84)                                  
     * in this directory.                                             
     */                                                               
    lfn_checksum = 0;                                                 
    if (name_type == MSDOS_NAME_LONG)                                 
    {                                                                 
        int      slot = (((empty_space_offset * bts2rd) + empty_space_entry) /
 80166d4:	2b 82 00 5c 	lw r2,(sp+92)                                  
 80166d8:	2b 81 00 58 	lw r1,(sp+88)                                  
                         MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE) + lfn_entries + 1;
 80166dc:	34 70 00 01 	addi r16,r3,1                                  
     * in this directory.                                             
     */                                                               
    lfn_checksum = 0;                                                 
    if (name_type == MSDOS_NAME_LONG)                                 
    {                                                                 
        int      slot = (((empty_space_offset * bts2rd) + empty_space_entry) /
 80166e0:	fb ff ab 10 	calli 8001320 <__mulsi3>                       
 80166e4:	2b 84 00 60 	lw r4,(sp+96)                                  
 80166e8:	34 02 00 05 	mvi r2,5                                       
 80166ec:	b4 24 08 00 	add r1,r1,r4                                   
 80166f0:	f8 00 56 c8 	calli 802c210 <__lshrsi3>                      
{                                                                     
    static const char* hex = "0123456789ABCDEF";                      
    char* c = MSDOS_DIR_NAME(sfn);                                    
    int   i;                                                          
    for (i = 0; i < 2; i++, c++)                                      
      if ((*c == ' ') || (*c == '.'))                                 
 80166f4:	2b 8f 00 48 	lw r15,(sp+72)                                 
     */                                                               
    lfn_checksum = 0;                                                 
    if (name_type == MSDOS_NAME_LONG)                                 
    {                                                                 
        int      slot = (((empty_space_offset * bts2rd) + empty_space_entry) /
                         MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE) + lfn_entries + 1;
 80166f8:	b6 01 80 00 	add r16,r16,r1                                 
{                                                                     
    static const char* hex = "0123456789ABCDEF";                      
    char* c = MSDOS_DIR_NAME(sfn);                                    
    int   i;                                                          
    for (i = 0; i < 2; i++, c++)                                      
      if ((*c == ' ') || (*c == '.'))                                 
 80166fc:	41 e6 00 00 	lbu r6,(r15+0)                                 
 8016700:	64 c9 00 2e 	cmpei r9,r6,46                                 
 8016704:	64 c6 00 20 	cmpei r6,r6,32                                 
 8016708:	b9 26 30 00 	or r6,r9,r6                                    
 801670c:	44 c0 00 03 	be r6,r0,8016718 <msdos_find_name_in_fat_file+0x5f8>
        *c = '_';                                                     
 8016710:	34 06 00 5f 	mvi r6,95                                      
 8016714:	31 e6 00 00 	sb (r15+0),r6                                  
msdos_short_name_hex(char* sfn, int num)                              
{                                                                     
    static const char* hex = "0123456789ABCDEF";                      
    char* c = MSDOS_DIR_NAME(sfn);                                    
    int   i;                                                          
    for (i = 0; i < 2; i++, c++)                                      
 8016718:	2b 96 00 48 	lw r22,(sp+72)                                 
      if ((*c == ' ') || (*c == '.'))                                 
 801671c:	42 c6 00 01 	lbu r6,(r22+1)                                 
msdos_short_name_hex(char* sfn, int num)                              
{                                                                     
    static const char* hex = "0123456789ABCDEF";                      
    char* c = MSDOS_DIR_NAME(sfn);                                    
    int   i;                                                          
    for (i = 0; i < 2; i++, c++)                                      
 8016720:	36 cc 00 01 	addi r12,r22,1                                 
      if ((*c == ' ') || (*c == '.'))                                 
 8016724:	64 c9 00 2e 	cmpei r9,r6,46                                 
 8016728:	64 c6 00 20 	cmpei r6,r6,32                                 
 801672c:	b9 26 30 00 	or r6,r9,r6                                    
 8016730:	44 c0 00 03 	be r6,r0,801673c <msdos_find_name_in_fat_file+0x61c>
        *c = '_';                                                     
 8016734:	34 06 00 5f 	mvi r6,95                                      
 8016738:	32 c6 00 01 	sb (r22+1),r6                                  
msdos_short_name_hex(char* sfn, int num)                              
{                                                                     
    static const char* hex = "0123456789ABCDEF";                      
    char* c = MSDOS_DIR_NAME(sfn);                                    
    int   i;                                                          
    for (i = 0; i < 2; i++, c++)                                      
 801673c:	35 8c 00 01 	addi r12,r12,1                                 
      if ((*c == ' ') || (*c == '.'))                                 
        *c = '_';                                                     
    for (i = 0; i < 4; i++, c++)                                      
      *c = hex[(num >> ((3 - i) * 4)) & 0xf];                         
 8016740:	78 0d 08 02 	mvhi r13,0x802                                 
msdos_short_name_hex(char* sfn, int num)                              
{                                                                     
    static const char* hex = "0123456789ABCDEF";                      
    char* c = MSDOS_DIR_NAME(sfn);                                    
    int   i;                                                          
    for (i = 0; i < 2; i++, c++)                                      
 8016744:	b9 80 70 00 	mv r14,r12                                     
 8016748:	34 0b 00 0c 	mvi r11,12                                     
      if ((*c == ' ') || (*c == '.'))                                 
        *c = '_';                                                     
    for (i = 0; i < 4; i++, c++)                                      
      *c = hex[(num >> ((3 - i) * 4)) & 0xf];                         
 801674c:	39 ad d0 28 	ori r13,r13,0xd028                             
    char* c = MSDOS_DIR_NAME(sfn);                                    
    int   i;                                                          
    for (i = 0; i < 2; i++, c++)                                      
      if ((*c == ' ') || (*c == '.'))                                 
        *c = '_';                                                     
    for (i = 0; i < 4; i++, c++)                                      
 8016750:	34 0f ff fc 	mvi r15,-4                                     
      *c = hex[(num >> ((3 - i) * 4)) & 0xf];                         
 8016754:	b9 60 10 00 	mv r2,r11                                      
 8016758:	ba 00 08 00 	mv r1,r16                                      
 801675c:	fb ff aa ca 	calli 8001284 <__ashrsi3>                      
 8016760:	20 22 00 0f 	andi r2,r1,0xf                                 
 8016764:	b5 a2 10 00 	add r2,r13,r2                                  
 8016768:	40 42 00 00 	lbu r2,(r2+0)                                  
    char* c = MSDOS_DIR_NAME(sfn);                                    
    int   i;                                                          
    for (i = 0; i < 2; i++, c++)                                      
      if ((*c == ' ') || (*c == '.'))                                 
        *c = '_';                                                     
    for (i = 0; i < 4; i++, c++)                                      
 801676c:	35 6b ff fc 	addi r11,r11,-4                                
      *c = hex[(num >> ((3 - i) * 4)) & 0xf];                         
 8016770:	31 c2 00 00 	sb (r14+0),r2                                  
    char* c = MSDOS_DIR_NAME(sfn);                                    
    int   i;                                                          
    for (i = 0; i < 2; i++, c++)                                      
      if ((*c == ' ') || (*c == '.'))                                 
        *c = '_';                                                     
    for (i = 0; i < 4; i++, c++)                                      
 8016774:	35 ce 00 01 	addi r14,r14,1                                 
 8016778:	5d 6f ff f7 	bne r11,r15,8016754 <msdos_find_name_in_fat_file+0x634>
      *c = hex[(num >> ((3 - i) * 4)) & 0xf];                         
    *c++ = '~';                                                       
 801677c:	34 06 00 7e 	mvi r6,126                                     
 8016780:	31 86 00 04 	sb (r12+4),r6                                  
    *c++ = '1';                                                       
 8016784:	34 06 00 31 	mvi r6,49                                      
 8016788:	31 86 00 05 	sb (r12+5),r6                                  
        int      slot = (((empty_space_offset * bts2rd) + empty_space_entry) /
                         MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE) + lfn_entries + 1;
        msdos_short_name_hex(MSDOS_DIR_NAME(name_dir_entry), slot);   
    }                                                                 
                                                                      
    if (lfn_entries)                                                  
 801678c:	2b 81 00 54 	lw r1,(sp+84)                                  
     * If a long file name calculate the checksum of the short file name
     * data to place in each long file name entry. First set the short
     * file name to the slot of the SFN entry. This will mean no clashes
     * in this directory.                                             
     */                                                               
    lfn_checksum = 0;                                                 
 8016790:	5b 80 00 68 	sw (sp+104),r0                                 
        int      slot = (((empty_space_offset * bts2rd) + empty_space_entry) /
                         MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE) + lfn_entries + 1;
        msdos_short_name_hex(MSDOS_DIR_NAME(name_dir_entry), slot);   
    }                                                                 
                                                                      
    if (lfn_entries)                                                  
 8016794:	44 20 00 13 	be r1,r0,80167e0 <msdos_find_name_in_fat_file+0x6c0>
 8016798:	34 0b 00 00 	mvi r11,0                                      
    {                                                                 
        uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(name_dir_entry);       
        int      i;                                                   
        for (i = 0; i < 11; i++, p++)                                 
 801679c:	34 0d 00 0b 	mvi r13,11                                     
 80167a0:	34 01 00 00 	mvi r1,0                                       
            lfn_checksum =                                            
                ((lfn_checksum & 1) ? 0x80 : 0) + (lfn_checksum >> 1) + *p;
 80167a4:	20 22 00 01 	andi r2,r1,0x1                                 
    if (lfn_entries)                                                  
    {                                                                 
        uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(name_dir_entry);       
        int      i;                                                   
        for (i = 0; i < 11; i++, p++)                                 
            lfn_checksum =                                            
 80167a8:	34 0c 00 00 	mvi r12,0                                      
 80167ac:	44 40 00 02 	be r2,r0,80167b4 <msdos_find_name_in_fat_file+0x694>
 80167b0:	34 0c 00 80 	mvi r12,128                                    
 80167b4:	34 02 00 01 	mvi r2,1                                       
 80167b8:	f8 00 56 96 	calli 802c210 <__lshrsi3>                      
 *     RC_OK on success, or error code if error occured (errno set    
 *     appropriately)                                                 
 *                                                                    
 */                                                                   
#define MSDOS_FIND_PRINT 0                                            
int msdos_find_name_in_fat_file(                                      
 80167bc:	2b 83 00 48 	lw r3,(sp+72)                                  
 80167c0:	b4 6b 10 00 	add r2,r3,r11                                  
    if (lfn_entries)                                                  
    {                                                                 
        uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(name_dir_entry);       
        int      i;                                                   
        for (i = 0; i < 11; i++, p++)                                 
            lfn_checksum =                                            
 80167c4:	40 42 00 00 	lbu r2,(r2+0)                                  
                                                                      
    if (lfn_entries)                                                  
    {                                                                 
        uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(name_dir_entry);       
        int      i;                                                   
        for (i = 0; i < 11; i++, p++)                                 
 80167c8:	35 6b 00 01 	addi r11,r11,1                                 
            lfn_checksum =                                            
 80167cc:	b4 22 08 00 	add r1,r1,r2                                   
 80167d0:	b4 2c 08 00 	add r1,r1,r12                                  
 80167d4:	20 21 00 ff 	andi r1,r1,0xff                                
                                                                      
    if (lfn_entries)                                                  
    {                                                                 
        uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(name_dir_entry);       
        int      i;                                                   
        for (i = 0; i < 11; i++, p++)                                 
 80167d8:	5d 6d ff f3 	bne r11,r13,80167a4 <msdos_find_name_in_fat_file+0x684>
 80167dc:	5b 81 00 68 	sw (sp+104),r1                                 
     * empty_space_count is a count of empty entries in the currently 
     * read cluster so if 0 there is no space. Note, dir_offset will  
     * be at the next cluster so we can just make empty_space_offset  
     * that value.                                                    
     */                                                               
    if (empty_space_count == 0)                                       
 80167e0:	46 20 00 04 	be r17,r0,80167f0 <msdos_find_name_in_fat_file+0x6d0>
    uint32_t         empty_space_offset = 0;                          
    uint32_t         empty_space_entry = 0;                           
    uint32_t         empty_space_count = 0;                           
    bool             empty_space_found = false;                       
    uint32_t         entries_per_block;                               
    bool             read_cluster = false;                            
 80167e4:	2b 84 00 58 	lw r4,(sp+88)                                  
 80167e8:	fe 64 58 00 	cmpne r11,r19,r4                               
 80167ec:	e0 00 00 04 	bi 80167fc <msdos_find_name_in_fat_file+0x6dc> 
     * empty_space_count is a count of empty entries in the currently 
     * read cluster so if 0 there is no space. Note, dir_offset will  
     * be at the next cluster so we can just make empty_space_offset  
     * that value.                                                    
     */                                                               
    if (empty_space_count == 0)                                       
 80167f0:	5b 93 00 58 	sw (sp+88),r19                                 
    {                                                                 
        read_cluster = true;                                          
 80167f4:	34 0b 00 01 	mvi r11,1                                      
        empty_space_offset = dir_offset;                              
        empty_space_entry = 0;                                        
 80167f8:	5b 80 00 60 	sw (sp+96),r0                                  
        read_cluster = true;                                          
                                                                      
    /*                                                                
     * Handle the entry writes.                                       
     */                                                               
    lfn_start.cln = lfn_start.ofs = FAT_FILE_SHORT_NAME;              
 80167fc:	2b 81 00 58 	lw r1,(sp+88)                                  
 8016800:	2b 82 00 5c 	lw r2,(sp+92)                                  
 8016804:	34 06 ff ff 	mvi r6,-1                                      
 8016808:	5b 86 00 88 	sw (sp+136),r6                                 
 801680c:	5b 86 00 84 	sw (sp+132),r6                                 
 8016810:	fb ff aa c4 	calli 8001320 <__mulsi3>                       
 *     RC_OK on success, or error code if error occured (errno set    
 *     appropriately)                                                 
 *                                                                    
 */                                                                   
#define MSDOS_FIND_PRINT 0                                            
int msdos_find_name_in_fat_file(                                      
 8016814:	2b 8f 00 54 	lw r15,(sp+84)                                 
        read_cluster = true;                                          
                                                                      
    /*                                                                
     * Handle the entry writes.                                       
     */                                                               
    lfn_start.cln = lfn_start.ofs = FAT_FILE_SHORT_NAME;              
 8016818:	b8 20 90 00 	mv r18,r1                                      
    lfn_entry = 0;                                                    
 801681c:	34 13 00 00 	mvi r19,0                                      
 *     RC_OK on success, or error code if error occured (errno set    
 *     appropriately)                                                 
 *                                                                    
 */                                                                   
#define MSDOS_FIND_PRINT 0                                            
int msdos_find_name_in_fat_file(                                      
 8016820:	35 ef 00 01 	addi r15,r15,1                                 
 8016824:	5b 8f 00 6c 	sw (sp+108),r15                                
 8016828:	2b 91 00 5c 	lw r17,(sp+92)                                 
 801682c:	2b 97 00 60 	lw r23,(sp+96)                                 
 8016830:	2b 8f 00 64 	lw r15,(sp+100)                                
 8016834:	2b 94 00 50 	lw r20,(sp+80)                                 
 8016838:	2b 98 00 4c 	lw r24,(sp+76)                                 
 801683c:	2b 8d 00 48 	lw r13,(sp+72)                                 
#endif                                                                
                                                                      
    /*                                                                
     * The one more is the short entry.                               
     */                                                               
    while (lfn_entry < (lfn_entries + 1))                             
 8016840:	e0 00 00 fd 	bi 8016c34 <msdos_find_name_in_fat_file+0xb14> 
    {                                                                 
        int length = 0;                                               
                                                                      
        if (read_cluster)                                             
 8016844:	45 60 00 09 	be r11,r0,8016868 <msdos_find_name_in_fat_file+0x748>
        {                                                             
          uint32_t new_length;                                        
#if MSDOS_FIND_PRINT                                                  
          printf ("MSFS:[9.1] eso:%li\n", empty_space_offset);        
#endif                                                                
          ret = fat_file_read(&fs_info->fat, fat_fd,                  
 8016848:	29 e5 00 a0 	lw r5,(r15+160)                                
 801684c:	b9 e0 08 00 	mv r1,r15                                      
 8016850:	ba 80 10 00 	mv r2,r20                                      
 8016854:	ba 40 18 00 	mv r3,r18                                      
 8016858:	ba 20 20 00 	mv r4,r17                                      
 801685c:	fb ff e2 72 	calli 800f224 <fat_file_read>                  
 8016860:	b8 20 58 00 	mv r11,r1                                      
                              (empty_space_offset * bts2rd), bts2rd,  
                              fs_info->cl_buf);                       
                                                                      
          if (ret != bts2rd)                                          
 8016864:	5c 31 00 15 	bne r1,r17,80168b8 <msdos_find_name_in_fat_file+0x798><== ALWAYS TAKEN
 *     RC_OK on success, or error code if error occured (errno set    
 *     appropriately)                                                 
 *                                                                    
 */                                                                   
#define MSDOS_FIND_PRINT 0                                            
int msdos_find_name_in_fat_file(                                      
 8016868:	2b 81 00 54 	lw r1,(sp+84)                                  
#endif                                                                
          ret = fat_file_read(&fs_info->fat, fat_fd,                  
                              (empty_space_offset * bts2rd), bts2rd,  
                              fs_info->cl_buf);                       
                                                                      
          if (ret != bts2rd)                                          
 801686c:	2b 96 00 6c 	lw r22,(sp+108)                                
 *     RC_OK on success, or error code if error occured (errno set    
 *     appropriately)                                                 
 *                                                                    
 */                                                                   
#define MSDOS_FIND_PRINT 0                                            
int msdos_find_name_in_fat_file(                                      
 8016870:	a6 60 58 00 	not r11,r19                                    
 8016874:	b5 61 58 00 	add r11,r11,r1                                 
 8016878:	36 66 00 01 	addi r6,r19,1                                  
#endif                                                                
          ret = fat_file_read(&fs_info->fat, fat_fd,                  
                              (empty_space_offset * bts2rd), bts2rd,  
                              fs_info->cl_buf);                       
                                                                      
          if (ret != bts2rd)                                          
 801687c:	ca c6 30 00 	sub r6,r22,r6                                  
 *     RC_OK on success, or error code if error occured (errno set    
 *     appropriately)                                                 
 *                                                                    
 */                                                                   
#define MSDOS_FIND_PRINT 0                                            
int msdos_find_name_in_fat_file(                                      
 8016880:	b9 60 08 00 	mv r1,r11                                      
 8016884:	34 02 00 01 	mvi r2,1                                       
#endif                                                                
          ret = fat_file_read(&fs_info->fat, fat_fd,                  
                              (empty_space_offset * bts2rd), bts2rd,  
                              fs_info->cl_buf);                       
                                                                      
          if (ret != bts2rd)                                          
 8016888:	20 d0 00 ff 	andi r16,r6,0xff                               
 *     RC_OK on success, or error code if error occured (errno set    
 *     appropriately)                                                 
 *                                                                    
 */                                                                   
#define MSDOS_FIND_PRINT 0                                            
int msdos_find_name_in_fat_file(                                      
 801688c:	fb ff aa 57 	calli 80011e8 <__ashlsi3>                      
 8016890:	b4 2b 08 00 	add r1,r1,r11                                  
 8016894:	34 02 00 02 	mvi r2,2                                       
 8016898:	fb ff aa 54 	calli 80011e8 <__ashlsi3>                      
 801689c:	2b 82 00 74 	lw r2,(sp+116)                                 
 80168a0:	b4 2b 58 00 	add r11,r1,r11                                 
 80168a4:	ba e0 70 00 	mv r14,r23                                     
 80168a8:	b4 4b 58 00 	add r11,r2,r11                                 
 80168ac:	34 15 00 00 	mvi r21,0                                      
                        break;                                        
                }                                                     
            }                                                         
                                                                      
            *MSDOS_DIR_ENTRY_TYPE(entry) = (lfn_entries - lfn_entry) + 1;
            if (lfn_entry == 1)                                       
 80168b0:	34 16 00 01 	mvi r22,1                                      
 80168b4:	e0 00 00 cb 	bi 8016be0 <msdos_find_name_in_fat_file+0xac0> 
                              (empty_space_offset * bts2rd), bts2rd,  
                              fs_info->cl_buf);                       
                                                                      
          if (ret != bts2rd)                                          
          {                                                           
            if (ret != FAT_EOF)                                       
 80168b8:	5c 20 00 d6 	bne r1,r0,8016c10 <msdos_find_name_in_fat_file+0xaf0><== NEVER TAKEN
              rtems_set_errno_and_return_minus_one(EIO);              
                                                                      
#if MSDOS_FIND_PRINT                                                  
            printf ("MSFS:[9.2] extending file:%li\n", empty_space_offset);
#endif                                                                
            ret = fat_file_extend (&fs_info->fat, fat_fd, false,      
 80168bc:	b9 e0 08 00 	mv r1,r15                                      
 80168c0:	ba 80 10 00 	mv r2,r20                                      
 80168c4:	34 03 00 00 	mvi r3,0                                       
 80168c8:	ba 40 20 00 	mv r4,r18                                      
 80168cc:	37 85 00 8c 	addi r5,sp,140                                 
 80168d0:	fb ff e3 90 	calli 800f710 <fat_file_extend>                
 80168d4:	b8 20 30 00 	mv r6,r1                                       
                                   empty_space_offset * bts2rd, &new_length);
                                                                      
            if (ret != RC_OK)                                         
 80168d8:	5c 2b 00 dd 	bne r1,r11,8016c4c <msdos_find_name_in_fat_file+0xb2c><== NEVER TAKEN
              return ret;                                             
                                                                      
#if MSDOS_FIND_PRINT                                                  
            printf ("MSFS:[9.3] extended: %d <-> %d\n", new_length, empty_space_offset * bts2rd);
#endif                                                                
            if (new_length != (empty_space_offset * bts2rd))          
 80168dc:	2b 86 00 8c 	lw r6,(sp+140)                                 
 80168e0:	5c d2 00 cc 	bne r6,r18,8016c10 <msdos_find_name_in_fat_file+0xaf0><== NEVER TAKEN
              rtems_set_errno_and_return_minus_one(EIO);              
                                                                      
            memset(fs_info->cl_buf, 0, bts2rd);                       
 80168e4:	29 e1 00 a0 	lw r1,(r15+160)                                
 80168e8:	34 02 00 00 	mvi r2,0                                       
 80168ec:	ba 20 18 00 	mv r3,r17                                      
 80168f0:	f8 00 0f d6 	calli 801a848 <memset>                         
                                                                      
            ret = fat_file_write(&fs_info->fat, fat_fd,               
 80168f4:	29 e5 00 a0 	lw r5,(r15+160)                                
 80168f8:	ba 40 18 00 	mv r3,r18                                      
 80168fc:	b9 e0 08 00 	mv r1,r15                                      
 8016900:	ba 80 10 00 	mv r2,r20                                      
 8016904:	ba 20 20 00 	mv r4,r17                                      
 8016908:	fb ff e4 17 	calli 800f964 <fat_file_write>                 
                                 empty_space_offset * bts2rd,         
                                 bts2rd, fs_info->cl_buf);            
#if MSDOS_FIND_PRINT                                                  
            printf ("MSFS:[9.4] clear write: %d\n", ret);             
#endif                                                                
            if (ret == -1)                                            
 801690c:	34 03 ff ff 	mvi r3,-1                                      
 8016910:	44 23 00 d1 	be r1,r3,8016c54 <msdos_find_name_in_fat_file+0xb34><== ALWAYS TAKEN
              return ret;                                             
            else if (ret != bts2rd)                                   
 8016914:	44 31 ff d5 	be r1,r17,8016868 <msdos_find_name_in_fat_file+0x748><== NOT EXECUTED
 8016918:	e0 00 00 be 	bi 8016c10 <msdos_find_name_in_fat_file+0xaf0> <== NOT EXECUTED
                                                                      
        for (dir_entry = empty_space_entry;                           
             dir_entry < bts2rd;                                      
             dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)          
        {                                                             
            char*       entry = (char*) fs_info->cl_buf + dir_entry;  
 801691c:	29 ec 00 a0 	lw r12,(r15+160)                               
                    length, lfn_entry);                               
#endif                                                                
            /*                                                        
             * Time to write the short file name entry.               
             */                                                       
            if (lfn_entry == (lfn_entries + 1))                       
 8016920:	2b 84 00 6c 	lw r4,(sp+108)                                 
            const char* n;                                            
            int         i;                                            
            char        fill = 0;                                     
                                                                      
            length += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;              
            lfn_entry++;                                              
 8016924:	36 73 00 01 	addi r19,r19,1                                 
                                                                      
        for (dir_entry = empty_space_entry;                           
             dir_entry < bts2rd;                                      
             dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)          
        {                                                             
            char*       entry = (char*) fs_info->cl_buf + dir_entry;  
 8016928:	b5 8e 60 00 	add r12,r12,r14                                
            char*       p;                                            
            const char* n;                                            
            int         i;                                            
            char        fill = 0;                                     
                                                                      
            length += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;              
 801692c:	36 b5 00 20 	addi r21,r21,32                                
                    length, lfn_entry);                               
#endif                                                                
            /*                                                        
             * Time to write the short file name entry.               
             */                                                       
            if (lfn_entry == (lfn_entries + 1))                       
 8016930:	5e 64 00 7c 	bne r19,r4,8016b20 <msdos_find_name_in_fat_file+0xa00>
            {                                                         
                /* get current cluster number */                      
                int rc = fat_file_ioctl(&fs_info->fat, fat_fd, F_CLU_NUM,
 8016934:	b9 e0 08 00 	mv r1,r15                                      
 8016938:	ba 80 10 00 	mv r2,r20                                      
 801693c:	34 03 00 01 	mvi r3,1                                       
 8016940:	ba 40 20 00 	mv r4,r18                                      
 8016944:	bb 00 28 00 	mv r5,r24                                      
 8016948:	fb ff e3 3c 	calli 800f638 <fat_file_ioctl>                 
 801694c:	b8 20 30 00 	mv r6,r1                                       
                                        empty_space_offset * bts2rd,  
                                        &dir_pos->sname.cln);         
                if (rc != RC_OK)                                      
 8016950:	5c 20 00 bf 	bne r1,r0,8016c4c <msdos_find_name_in_fat_file+0xb2c><== NEVER TAKEN
                  return rc;                                          
                                                                      
                dir_pos->sname.ofs = dir_entry;                       
                                                                      
                if (lfn_start.cln != FAT_FILE_SHORT_NAME)             
 8016954:	2b 86 00 84 	lw r6,(sp+132)                                 
                                        empty_space_offset * bts2rd,  
                                        &dir_pos->sname.cln);         
                if (rc != RC_OK)                                      
                  return rc;                                          
                                                                      
                dir_pos->sname.ofs = dir_entry;                       
 8016958:	5b 0e 00 04 	sw (r24+4),r14                                 
                                                                      
                if (lfn_start.cln != FAT_FILE_SHORT_NAME)             
 801695c:	34 16 ff ff 	mvi r22,-1                                     
 8016960:	44 d6 00 0d 	be r6,r22,8016994 <msdos_find_name_in_fat_file+0x874>
                {                                                     
                  rc = fat_file_ioctl(&fs_info->fat, fat_fd, F_CLU_NUM,
 8016964:	b8 c0 10 00 	mv r2,r6                                       
 8016968:	ba 20 08 00 	mv r1,r17                                      
 801696c:	fb ff aa 6d 	calli 8001320 <__mulsi3>                       
 8016970:	b8 20 30 00 	mv r6,r1                                       
 8016974:	b8 c0 20 00 	mv r4,r6                                       
 8016978:	b9 e0 08 00 	mv r1,r15                                      
 801697c:	ba 80 10 00 	mv r2,r20                                      
 8016980:	34 03 00 01 	mvi r3,1                                       
 8016984:	37 85 00 84 	addi r5,sp,132                                 
 8016988:	fb ff e3 2c 	calli 800f638 <fat_file_ioctl>                 
 801698c:	b8 20 30 00 	mv r6,r1                                       
                                      lfn_start.cln * bts2rd,         
                                      &lfn_start.cln);                
                  if (rc != RC_OK)                                    
 8016990:	5c 20 00 af 	bne r1,r0,8016c4c <msdos_find_name_in_fat_file+0xb2c><== NEVER TAKEN
                    return rc;                                        
                }                                                     
                                                                      
                dir_pos->lname.cln = lfn_start.cln;                   
 8016994:	2b 86 00 84 	lw r6,(sp+132)                                 
 8016998:	5b 06 00 08 	sw (r24+8),r6                                  
                dir_pos->lname.ofs = lfn_start.ofs;                   
 801699c:	2b 86 00 88 	lw r6,(sp+136)                                 
 80169a0:	5b 06 00 0c 	sw (r24+12),r6                                 
                                                                      
                /* write new node entry */                            
                memcpy (entry, (uint8_t *) name_dir_entry,            
 80169a4:	41 a1 00 07 	lbu r1,(r13+7)                                 
 80169a8:	41 a3 00 01 	lbu r3,(r13+1)                                 
 80169ac:	41 a5 00 02 	lbu r5,(r13+2)                                 
 80169b0:	41 a7 00 03 	lbu r7,(r13+3)                                 
 80169b4:	41 a9 00 04 	lbu r9,(r13+4)                                 
 80169b8:	41 ab 00 05 	lbu r11,(r13+5)                                
 80169bc:	41 b0 00 06 	lbu r16,(r13+6)                                
 80169c0:	33 81 00 4c 	sb (sp+76),r1                                  
 80169c4:	41 a2 00 08 	lbu r2,(r13+8)                                 
 80169c8:	33 82 00 50 	sb (sp+80),r2                                  
 80169cc:	41 a4 00 09 	lbu r4,(r13+9)                                 
 80169d0:	33 84 00 60 	sb (sp+96),r4                                  
 80169d4:	41 b6 00 0a 	lbu r22,(r13+10)                               
 80169d8:	33 96 00 70 	sb (sp+112),r22                                
 80169dc:	41 a1 00 0b 	lbu r1,(r13+11)                                
 80169e0:	33 81 00 7a 	sb (sp+122),r1                                 
 80169e4:	41 a2 00 0c 	lbu r2,(r13+12)                                
 80169e8:	33 82 00 7b 	sb (sp+123),r2                                 
 80169ec:	41 a4 00 0d 	lbu r4,(r13+13)                                
 80169f0:	33 84 00 7c 	sb (sp+124),r4                                 
 80169f4:	41 b6 00 0e 	lbu r22,(r13+14)                               
 80169f8:	33 96 00 7d 	sb (sp+125),r22                                
 80169fc:	41 a1 00 0f 	lbu r1,(r13+15)                                
 8016a00:	33 81 00 7e 	sb (sp+126),r1                                 
 8016a04:	41 a2 00 10 	lbu r2,(r13+16)                                
 8016a08:	33 82 00 7f 	sb (sp+127),r2                                 
 8016a0c:	41 a4 00 11 	lbu r4,(r13+17)                                
 8016a10:	33 84 00 80 	sb (sp+128),r4                                 
 8016a14:	41 b6 00 12 	lbu r22,(r13+18)                               
 8016a18:	33 96 00 81 	sb (sp+129),r22                                
 8016a1c:	41 a1 00 13 	lbu r1,(r13+19)                                
 8016a20:	33 81 00 82 	sb (sp+130),r1                                 
 8016a24:	41 a2 00 14 	lbu r2,(r13+20)                                
 8016a28:	33 82 00 83 	sb (sp+131),r2                                 
 8016a2c:	41 a4 00 18 	lbu r4,(r13+24)                                
 8016a30:	41 bd 00 15 	lbu ra,(r13+21)                                
 8016a34:	41 bb 00 16 	lbu fp,(r13+22)                                
 8016a38:	41 b9 00 17 	lbu r25,(r13+23)                               
 8016a3c:	33 84 00 48 	sb (sp+72),r4                                  
 8016a40:	41 b6 00 00 	lbu r22,(r13+0)                                
 8016a44:	41 ae 00 19 	lbu r14,(r13+25)                               
 8016a48:	41 aa 00 1a 	lbu r10,(r13+26)                               
 8016a4c:	41 a8 00 1b 	lbu r8,(r13+27)                                
 8016a50:	41 a6 00 1c 	lbu r6,(r13+28)                                
 8016a54:	41 a4 00 1d 	lbu r4,(r13+29)                                
 8016a58:	41 a2 00 1e 	lbu r2,(r13+30)                                
 8016a5c:	41 a1 00 1f 	lbu r1,(r13+31)                                
 8016a60:	31 96 00 00 	sb (r12+0),r22                                 
 8016a64:	31 83 00 01 	sb (r12+1),r3                                  
 8016a68:	31 85 00 02 	sb (r12+2),r5                                  
 8016a6c:	31 87 00 03 	sb (r12+3),r7                                  
 8016a70:	31 89 00 04 	sb (r12+4),r9                                  
 8016a74:	31 8b 00 05 	sb (r12+5),r11                                 
 8016a78:	31 90 00 06 	sb (r12+6),r16                                 
 8016a7c:	43 83 00 4c 	lbu r3,(sp+76)                                 
 8016a80:	31 83 00 07 	sb (r12+7),r3                                  
 8016a84:	43 96 00 50 	lbu r22,(sp+80)                                
 8016a88:	31 96 00 08 	sb (r12+8),r22                                 
 8016a8c:	43 83 00 60 	lbu r3,(sp+96)                                 
 8016a90:	31 83 00 09 	sb (r12+9),r3                                  
 8016a94:	43 96 00 70 	lbu r22,(sp+112)                               
 8016a98:	31 96 00 0a 	sb (r12+10),r22                                
 8016a9c:	43 83 00 7a 	lbu r3,(sp+122)                                
 8016aa0:	31 83 00 0b 	sb (r12+11),r3                                 
 8016aa4:	43 96 00 7b 	lbu r22,(sp+123)                               
 8016aa8:	31 96 00 0c 	sb (r12+12),r22                                
 8016aac:	43 83 00 7c 	lbu r3,(sp+124)                                
 8016ab0:	31 83 00 0d 	sb (r12+13),r3                                 
 8016ab4:	43 96 00 7d 	lbu r22,(sp+125)                               
 8016ab8:	31 96 00 0e 	sb (r12+14),r22                                
 8016abc:	43 83 00 7e 	lbu r3,(sp+126)                                
 8016ac0:	31 83 00 0f 	sb (r12+15),r3                                 
 8016ac4:	43 96 00 7f 	lbu r22,(sp+127)                               
 8016ac8:	31 96 00 10 	sb (r12+16),r22                                
 8016acc:	43 83 00 80 	lbu r3,(sp+128)                                
 8016ad0:	31 83 00 11 	sb (r12+17),r3                                 
 8016ad4:	43 96 00 81 	lbu r22,(sp+129)                               
 8016ad8:	31 96 00 12 	sb (r12+18),r22                                
 8016adc:	43 83 00 82 	lbu r3,(sp+130)                                
 8016ae0:	31 83 00 13 	sb (r12+19),r3                                 
 8016ae4:	43 96 00 83 	lbu r22,(sp+131)                               
 8016ae8:	31 9d 00 15 	sb (r12+21),ra                                 
 8016aec:	31 9b 00 16 	sb (r12+22),fp                                 
 8016af0:	31 96 00 14 	sb (r12+20),r22                                
 8016af4:	31 99 00 17 	sb (r12+23),r25                                
 8016af8:	43 83 00 48 	lbu r3,(sp+72)                                 
 8016afc:	31 8e 00 19 	sb (r12+25),r14                                
 8016b00:	31 8a 00 1a 	sb (r12+26),r10                                
 8016b04:	31 83 00 18 	sb (r12+24),r3                                 
 8016b08:	31 88 00 1b 	sb (r12+27),r8                                 
 8016b0c:	31 86 00 1c 	sb (r12+28),r6                                 
 8016b10:	31 84 00 1d 	sb (r12+29),r4                                 
 8016b14:	31 82 00 1e 	sb (r12+30),r2                                 
 8016b18:	31 81 00 1f 	sb (r12+31),r1                                 
                        MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);           
                break;                                                
 8016b1c:	e0 00 00 32 	bi 8016be4 <msdos_find_name_in_fat_file+0xac4> 
             * This is a long file name and we need to write          
             * a long file name entry. See if this is the             
             * first entry written and if so remember the             
             * the location of the long file name.                    
             */                                                       
            if (lfn_start.cln == FAT_FILE_SHORT_NAME)                 
 8016b20:	2b 82 00 84 	lw r2,(sp+132)                                 
 8016b24:	34 04 ff ff 	mvi r4,-1                                      
 8016b28:	5c 44 00 04 	bne r2,r4,8016b38 <msdos_find_name_in_fat_file+0xa18>
            {                                                         
              lfn_start.cln = empty_space_offset;                     
 8016b2c:	2b 81 00 58 	lw r1,(sp+88)                                  
              lfn_start.ofs = dir_entry;                              
 8016b30:	5b 8e 00 88 	sw (sp+136),r14                                
             * first entry written and if so remember the             
             * the location of the long file name.                    
             */                                                       
            if (lfn_start.cln == FAT_FILE_SHORT_NAME)                 
            {                                                         
              lfn_start.cln = empty_space_offset;                     
 8016b34:	5b 81 00 84 	sw (sp+132),r1                                 
            }                                                         
                                                                      
            /*                                                        
             * Clear the entry before loading the data.               
             */                                                       
            memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);     
 8016b38:	34 02 00 00 	mvi r2,0                                       
 8016b3c:	34 03 00 20 	mvi r3,32                                      
 8016b40:	b9 80 08 00 	mv r1,r12                                      
 8016b44:	f8 00 0f 41 	calli 801a848 <memset>                         
                                                                      
            *MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;            
 8016b48:	2b 82 00 68 	lw r2,(sp+104)                                 
                                                                      
            p = entry + 1;                                            
 8016b4c:	35 83 00 01 	addi r3,r12,1                                  
 8016b50:	b9 60 28 00 	mv r5,r11                                      
            /*                                                        
             * Clear the entry before loading the data.               
             */                                                       
            memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);     
                                                                      
            *MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;            
 8016b54:	31 82 00 0d 	sb (r12+13),r2                                 
        {                                                             
            char*       entry = (char*) fs_info->cl_buf + dir_entry;  
            char*       p;                                            
            const char* n;                                            
            int         i;                                            
            char        fill = 0;                                     
 8016b58:	34 04 00 00 	mvi r4,0                                       
            *MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;            
                                                                      
            p = entry + 1;                                            
            n = name + (lfn_entries - lfn_entry) * MSDOS_LFN_LEN_PER_ENTRY;
                                                                      
            for (i = 0; i < MSDOS_LFN_LEN_PER_ENTRY; i++)             
 8016b5c:	34 01 00 00 	mvi r1,0                                       
            {                                                         
                if (*n != 0)                                          
 8016b60:	40 a2 00 00 	lbu r2,(r5+0)                                  
 8016b64:	44 40 00 04 	be r2,r0,8016b74 <msdos_find_name_in_fat_file+0xa54>
                {                                                     
                    *p = *n;                                          
 8016b68:	30 62 00 00 	sb (r3+0),r2                                   
                    n++;                                              
 8016b6c:	34 a5 00 01 	addi r5,r5,1                                   
 8016b70:	e0 00 00 04 	bi 8016b80 <msdos_find_name_in_fat_file+0xa60> 
                }                                                     
                else                                                  
                {                                                     
                    p [0] = fill;                                     
 8016b74:	30 64 00 00 	sb (r3+0),r4                                   
                    p [1] = fill;                                     
 8016b78:	30 64 00 01 	sb (r3+1),r4                                   
                    fill = 0xff;                                      
 8016b7c:	34 04 00 ff 	mvi r4,255                                     
                }                                                     
                                                                      
                switch (i)                                            
 8016b80:	34 02 00 04 	mvi r2,4                                       
 8016b84:	44 22 00 04 	be r1,r2,8016b94 <msdos_find_name_in_fat_file+0xa74>
 8016b88:	34 02 00 0a 	mvi r2,10                                      
 8016b8c:	5c 22 00 06 	bne r1,r2,8016ba4 <msdos_find_name_in_fat_file+0xa84>
 8016b90:	e0 00 00 03 	bi 8016b9c <msdos_find_name_in_fat_file+0xa7c> 
                {                                                     
                    case 4:                                           
                        p += 5;                                       
 8016b94:	34 63 00 05 	addi r3,r3,5                                   
                        break;                                        
 8016b98:	e0 00 00 04 	bi 8016ba8 <msdos_find_name_in_fat_file+0xa88> 
                    case 10:                                          
                        p += 4;                                       
 8016b9c:	34 63 00 04 	addi r3,r3,4                                   
                        break;                                        
 8016ba0:	e0 00 00 02 	bi 8016ba8 <msdos_find_name_in_fat_file+0xa88> 
                    default:                                          
                        p += 2;                                       
 8016ba4:	34 63 00 02 	addi r3,r3,2                                   
            *MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;            
                                                                      
            p = entry + 1;                                            
            n = name + (lfn_entries - lfn_entry) * MSDOS_LFN_LEN_PER_ENTRY;
                                                                      
            for (i = 0; i < MSDOS_LFN_LEN_PER_ENTRY; i++)             
 8016ba8:	34 21 00 01 	addi r1,r1,1                                   
 8016bac:	34 02 00 0d 	mvi r2,13                                      
 8016bb0:	5c 22 ff ec 	bne r1,r2,8016b60 <msdos_find_name_in_fat_file+0xa40>
                        p += 2;                                       
                        break;                                        
                }                                                     
            }                                                         
                                                                      
            *MSDOS_DIR_ENTRY_TYPE(entry) = (lfn_entries - lfn_entry) + 1;
 8016bb4:	31 90 00 00 	sb (r12+0),r16                                 
            if (lfn_entry == 1)                                       
 8016bb8:	5e 76 00 03 	bne r19,r22,8016bc4 <msdos_find_name_in_fat_file+0xaa4>
                *MSDOS_DIR_ENTRY_TYPE(entry) |= MSDOS_LAST_LONG_ENTRY;
 8016bbc:	3a 02 00 40 	ori r2,r16,0x40                                
 8016bc0:	31 82 00 00 	sb (r12+0),r2                                  
            *MSDOS_DIR_ATTR(entry) |= MSDOS_ATTR_LFN;                 
 8016bc4:	41 82 00 0b 	lbu r2,(r12+11)                                
        printf ("MSFS:[10] eso:%li\n", empty_space_offset);           
#endif                                                                
                                                                      
        for (dir_entry = empty_space_entry;                           
             dir_entry < bts2rd;                                      
             dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)          
 8016bc8:	36 10 ff ff 	addi r16,r16,-1                                
 8016bcc:	35 ce 00 20 	addi r14,r14,32                                
            }                                                         
                                                                      
            *MSDOS_DIR_ENTRY_TYPE(entry) = (lfn_entries - lfn_entry) + 1;
            if (lfn_entry == 1)                                       
                *MSDOS_DIR_ENTRY_TYPE(entry) |= MSDOS_LAST_LONG_ENTRY;
            *MSDOS_DIR_ATTR(entry) |= MSDOS_ATTR_LFN;                 
 8016bd0:	38 42 00 0f 	ori r2,r2,0xf                                  
 8016bd4:	31 82 00 0b 	sb (r12+11),r2                                 
        printf ("MSFS:[10] eso:%li\n", empty_space_offset);           
#endif                                                                
                                                                      
        for (dir_entry = empty_space_entry;                           
             dir_entry < bts2rd;                                      
             dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)          
 8016bd8:	22 10 00 ff 	andi r16,r16,0xff                              
 8016bdc:	35 6b ff f3 	addi r11,r11,-13                               
                                                                      
#if MSDOS_FIND_PRINT                                                  
        printf ("MSFS:[10] eso:%li\n", empty_space_offset);           
#endif                                                                
                                                                      
        for (dir_entry = empty_space_entry;                           
 8016be0:	56 2e ff 4f 	bgu r17,r14,801691c <msdos_find_name_in_fat_file+0x7fc><== ALWAYS TAKEN
            if (lfn_entry == 1)                                       
                *MSDOS_DIR_ENTRY_TYPE(entry) |= MSDOS_LAST_LONG_ENTRY;
            *MSDOS_DIR_ATTR(entry) |= MSDOS_ATTR_LFN;                 
        }                                                             
                                                                      
        ret = fat_file_write(&fs_info->fat, fat_fd,                   
 8016be4:	29 e6 00 a0 	lw r6,(r15+160)                                
 8016be8:	b6 57 18 00 	add r3,r18,r23                                 
 8016bec:	b9 e0 08 00 	mv r1,r15                                      
 8016bf0:	ba 80 10 00 	mv r2,r20                                      
 8016bf4:	ba a0 20 00 	mv r4,r21                                      
 8016bf8:	b4 d7 28 00 	add r5,r6,r23                                  
 8016bfc:	fb ff e3 5a 	calli 800f964 <fat_file_write>                 
                             (empty_space_offset * bts2rd) + empty_space_entry,
                             length, fs_info->cl_buf + empty_space_entry);
        if (ret == -1)                                                
 8016c00:	34 03 ff ff 	mvi r3,-1                                      
 8016c04:	44 23 00 14 	be r1,r3,8016c54 <msdos_find_name_in_fat_file+0xb34><== NEVER TAKEN
 8016c08:	b6 51 90 00 	add r18,r18,r17                                
            return ret;                                               
        else if (ret != length)                                       
 8016c0c:	44 35 00 05 	be r1,r21,8016c20 <msdos_find_name_in_fat_file+0xb00><== ALWAYS TAKEN
            rtems_set_errno_and_return_minus_one(EIO);                
 8016c10:	f8 00 0b 7f 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 8016c14:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 8016c18:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 8016c1c:	e0 00 00 0e 	bi 8016c54 <msdos_find_name_in_fat_file+0xb34> <== NOT EXECUTED
                                                                      
        empty_space_offset++;                                         
 8016c20:	2b 84 00 58 	lw r4,(sp+88)                                  
        empty_space_entry = 0;                                        
 8016c24:	34 17 00 00 	mvi r23,0                                      
        read_cluster = true;                                          
 8016c28:	34 0b 00 01 	mvi r11,1                                      
        if (ret == -1)                                                
            return ret;                                               
        else if (ret != length)                                       
            rtems_set_errno_and_return_minus_one(EIO);                
                                                                      
        empty_space_offset++;                                         
 8016c2c:	34 84 00 01 	addi r4,r4,1                                   
 8016c30:	5b 84 00 58 	sw (sp+88),r4                                  
#endif                                                                
                                                                      
    /*                                                                
     * The one more is the short entry.                               
     */                                                               
    while (lfn_entry < (lfn_entries + 1))                             
 8016c34:	2b 96 00 54 	lw r22,(sp+84)                                 
 8016c38:	4e d3 ff 03 	bge r22,r19,8016844 <msdos_find_name_in_fat_file+0x724>
        empty_space_offset++;                                         
        empty_space_entry = 0;                                        
        read_cluster = true;                                          
    }                                                                 
                                                                      
    return 0;                                                         
 8016c3c:	34 0d 00 00 	mvi r13,0                                      
 8016c40:	e0 00 00 06 	bi 8016c58 <msdos_find_name_in_fat_file+0xb38> 
                        if (lfn_start.cln != FAT_FILE_SHORT_NAME)     
                        {                                             
                          rc = fat_file_ioctl(&fs_info->fat, fat_fd, F_CLU_NUM,
                                              lfn_start.cln * bts2rd, 
                                              &lfn_start.cln);        
                          if (rc != RC_OK)                            
 8016c44:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
 8016c48:	e0 00 00 04 	bi 8016c58 <msdos_find_name_in_fat_file+0xb38> <== NOT EXECUTED
                                                                      
                dir_pos->sname.ofs = dir_entry;                       
                                                                      
                if (lfn_start.cln != FAT_FILE_SHORT_NAME)             
                {                                                     
                  rc = fat_file_ioctl(&fs_info->fat, fat_fd, F_CLU_NUM,
 8016c4c:	b8 c0 68 00 	mv r13,r6                                      <== NOT EXECUTED
 8016c50:	e0 00 00 02 	bi 8016c58 <msdos_find_name_in_fat_file+0xb38> <== NOT EXECUTED
        }                                                             
                                                                      
        ret = fat_file_write(&fs_info->fat, fat_fd,                   
                             (empty_space_offset * bts2rd) + empty_space_entry,
                             length, fs_info->cl_buf + empty_space_entry);
        if (ret == -1)                                                
 8016c54:	34 0d ff ff 	mvi r13,-1                                     
        empty_space_entry = 0;                                        
        read_cluster = true;                                          
    }                                                                 
                                                                      
    return 0;                                                         
}                                                                     
 8016c58:	b9 a0 08 00 	mv r1,r13                                      
 8016c5c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8016c60:	2b 8b 00 44 	lw r11,(sp+68)                                 
 8016c64:	2b 8c 00 40 	lw r12,(sp+64)                                 
 8016c68:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 8016c6c:	2b 8e 00 38 	lw r14,(sp+56)                                 
 8016c70:	2b 8f 00 34 	lw r15,(sp+52)                                 
 8016c74:	2b 90 00 30 	lw r16,(sp+48)                                 
 8016c78:	2b 91 00 2c 	lw r17,(sp+44)                                 
 8016c7c:	2b 92 00 28 	lw r18,(sp+40)                                 
 8016c80:	2b 93 00 24 	lw r19,(sp+36)                                 
 8016c84:	2b 94 00 20 	lw r20,(sp+32)                                 
 8016c88:	2b 95 00 1c 	lw r21,(sp+28)                                 
 8016c8c:	2b 96 00 18 	lw r22,(sp+24)                                 
 8016c90:	2b 97 00 14 	lw r23,(sp+20)                                 
 8016c94:	2b 98 00 10 	lw r24,(sp+16)                                 
 8016c98:	2b 99 00 0c 	lw r25,(sp+12)                                 
 8016c9c:	2b 9b 00 08 	lw fp,(sp+8)                                   
 8016ca0:	37 9c 00 8c 	addi sp,sp,140                                 
 8016ca4:	c3 a0 00 00 	ret                                            
                                                                      

08016ca8 <msdos_find_node_by_cluster_num_in_fat_file>: fat_file_fd_t *fat_fd, uint32_t cl4find, fat_dir_pos_t *dir_pos, char *dir_entry ) {
 8016ca8:	37 9c ff b4 	addi sp,sp,-76                                 
 8016cac:	5b 8b 00 44 	sw (sp+68),r11                                 
 8016cb0:	5b 8c 00 40 	sw (sp+64),r12                                 
 8016cb4:	5b 8d 00 3c 	sw (sp+60),r13                                 
 8016cb8:	5b 8e 00 38 	sw (sp+56),r14                                 
 8016cbc:	5b 8f 00 34 	sw (sp+52),r15                                 
 8016cc0:	5b 90 00 30 	sw (sp+48),r16                                 
 8016cc4:	5b 91 00 2c 	sw (sp+44),r17                                 
 8016cc8:	5b 92 00 28 	sw (sp+40),r18                                 
 8016ccc:	5b 93 00 24 	sw (sp+36),r19                                 
 8016cd0:	5b 94 00 20 	sw (sp+32),r20                                 
 8016cd4:	5b 95 00 1c 	sw (sp+28),r21                                 
 8016cd8:	5b 96 00 18 	sw (sp+24),r22                                 
 8016cdc:	5b 97 00 14 	sw (sp+20),r23                                 
 8016ce0:	5b 98 00 10 	sw (sp+16),r24                                 
 8016ce4:	5b 99 00 0c 	sw (sp+12),r25                                 
 8016ce8:	5b 9b 00 08 	sw (sp+8),fp                                   
 8016cec:	5b 9d 00 04 	sw (sp+4),ra                                   
 8016cf0:	b8 40 58 00 	mv r11,r2                                      
    ssize_t          ret = 0;                                         
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
    uint32_t         bts2rd = 0;                                      
    uint32_t         i = 0, j = 0;                                    
                                                                      
    if (FAT_FD_OF_ROOT_DIR(fat_fd) &&                                 
 8016cf4:	28 42 00 20 	lw r2,(r2+32)                                  
    char                                 *dir_entry                   
    )                                                                 
{                                                                     
    int              rc = RC_OK;                                      
    ssize_t          ret = 0;                                         
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
 8016cf8:	28 2c 00 08 	lw r12,(r1+8)                                  
    uint32_t         bts2rd = 0;                                      
    uint32_t         i = 0, j = 0;                                    
                                                                      
    if (FAT_FD_OF_ROOT_DIR(fat_fd) &&                                 
 8016cfc:	34 01 00 01 	mvi r1,1                                       
    fat_file_fd_t                        *fat_fd,                     
    uint32_t                              cl4find,                    
    fat_dir_pos_t                        *dir_pos,                    
    char                                 *dir_entry                   
    )                                                                 
{                                                                     
 8016d00:	b8 60 a8 00 	mv r21,r3                                      
 8016d04:	b8 80 78 00 	mv r15,r4                                      
 8016d08:	b8 a0 90 00 	mv r18,r5                                      
    ssize_t          ret = 0;                                         
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
    uint32_t         bts2rd = 0;                                      
    uint32_t         i = 0, j = 0;                                    
                                                                      
    if (FAT_FD_OF_ROOT_DIR(fat_fd) &&                                 
 8016d0c:	5c 41 00 0b 	bne r2,r1,8016d38 <msdos_find_node_by_cluster_num_in_fat_file+0x90><== ALWAYS TAKEN
 8016d10:	29 61 00 24 	lw r1,(r11+36)                                 <== NOT EXECUTED
 8016d14:	5c 20 00 09 	bne r1,r0,8016d38 <msdos_find_node_by_cluster_num_in_fat_file+0x90><== NOT EXECUTED
       (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))             
 8016d18:	41 82 00 0e 	lbu r2,(r12+14)                                <== NOT EXECUTED
 8016d1c:	20 42 00 03 	andi r2,r2,0x3                                 <== NOT EXECUTED
    ssize_t          ret = 0;                                         
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
    uint32_t         bts2rd = 0;                                      
    uint32_t         i = 0, j = 0;                                    
                                                                      
    if (FAT_FD_OF_ROOT_DIR(fat_fd) &&                                 
 8016d20:	44 41 00 06 	be r2,r1,8016d38 <msdos_find_node_by_cluster_num_in_fat_file+0x90><== NOT EXECUTED
       (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))             
        bts2rd = fat_fd->fat_file_size;                               
 8016d24:	29 6d 00 18 	lw r13,(r11+24)                                <== NOT EXECUTED
                                                                      
        assert(ret == bts2rd);                                        
                                                                      
        for (i = 0; i < bts2rd; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
        {                                                             
            char* entry = (char*) fs_info->cl_buf + i;                
 8016d28:	34 11 00 00 	mvi r17,0                                      
        bts2rd = fs_info->fat.vol.bpc;                                
                                                                      
    while ((ret = fat_file_read(&fs_info->fat, fat_fd, j * bts2rd, bts2rd,
                                  fs_info->cl_buf)) != FAT_EOF)       
    {                                                                 
        if ( ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE )                
 8016d2c:	34 17 00 1f 	mvi r23,31                                     
            if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==                     
                MSDOS_THIS_DIR_ENTRY_AND_REST_EMPTY)                  
                return MSDOS_NAME_NOT_FOUND_ERR;                      
                                                                      
            /* if this entry is empty - skip it */                    
            if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==                     
 8016d30:	34 16 00 e5 	mvi r22,229                                    
 8016d34:	e0 00 00 8e 	bi 8016f6c <msdos_find_node_by_cluster_num_in_fat_file+0x2c4>
                                                                      
    if (FAT_FD_OF_ROOT_DIR(fat_fd) &&                                 
       (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))             
        bts2rd = fat_fd->fat_file_size;                               
    else                                                              
        bts2rd = fs_info->fat.vol.bpc;                                
 8016d38:	2d 8d 00 06 	lhu r13,(r12+6)                                
 8016d3c:	e3 ff ff fb 	bi 8016d28 <msdos_find_node_by_cluster_num_in_fat_file+0x80>
                                                                      
    while ((ret = fat_file_read(&fs_info->fat, fat_fd, j * bts2rd, bts2rd,
                                  fs_info->cl_buf)) != FAT_EOF)       
    {                                                                 
        if ( ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE )                
 8016d40:	48 37 00 06 	bg r1,r23,8016d58 <msdos_find_node_by_cluster_num_in_fat_file+0xb0><== ALWAYS TAKEN
            rtems_set_errno_and_return_minus_one( EIO );              
 8016d44:	f8 00 0b 32 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 8016d48:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 8016d4c:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 8016d50:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 8016d54:	e0 00 00 8e 	bi 8016f8c <msdos_find_node_by_cluster_num_in_fat_file+0x2e4><== NOT EXECUTED
                                                                      
        assert(ret == bts2rd);                                        
 8016d58:	44 2d 00 09 	be r1,r13,8016d7c <msdos_find_node_by_cluster_num_in_fat_file+0xd4><== ALWAYS TAKEN
 8016d5c:	78 01 08 02 	mvhi r1,0x802                                  <== NOT EXECUTED
 8016d60:	78 03 08 02 	mvhi r3,0x802                                  <== NOT EXECUTED
 8016d64:	78 04 08 02 	mvhi r4,0x802                                  <== NOT EXECUTED
 8016d68:	38 21 d7 6c 	ori r1,r1,0xd76c                               <== NOT EXECUTED
 8016d6c:	34 02 06 4e 	mvi r2,1614                                    <== NOT EXECUTED
 8016d70:	38 63 d8 14 	ori r3,r3,0xd814                               <== NOT EXECUTED
 8016d74:	38 84 d7 fc 	ori r4,r4,0xd7fc                               <== NOT EXECUTED
 8016d78:	fb ff eb 8f 	calli 8011bb4 <__assert_func>                  <== NOT EXECUTED
 8016d7c:	29 8e 00 a0 	lw r14,(r12+160)                               
                                                                      
        for (i = 0; i < bts2rd; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
        {                                                             
            char* entry = (char*) fs_info->cl_buf + i;                
 8016d80:	34 10 00 00 	mvi r16,0                                      
                                                                      
            /* if this and all rest entries are empty - return not-found */
            if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==                     
 8016d84:	41 c1 00 00 	lbu r1,(r14+0)                                 
 8016d88:	44 20 00 80 	be r1,r0,8016f88 <msdos_find_node_by_cluster_num_in_fat_file+0x2e0><== NEVER TAKEN
                MSDOS_THIS_DIR_ENTRY_AND_REST_EMPTY)                  
                return MSDOS_NAME_NOT_FOUND_ERR;                      
                                                                      
            /* if this entry is empty - skip it */                    
            if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==                     
 8016d8c:	44 36 00 74 	be r1,r22,8016f5c <msdos_find_node_by_cluster_num_in_fat_file+0x2b4><== NEVER TAKEN
                MSDOS_THIS_DIR_ENTRY_EMPTY)                           
                continue;                                             
                                                                      
            /* if get a non-empty entry - compare clusters num */     
            if (MSDOS_EXTRACT_CLUSTER_NUM(entry) == cl4find)          
 8016d90:	2d d4 00 14 	lhu r20,(r14+20)                               
 8016d94:	34 02 00 08 	mvi r2,8                                       
 8016d98:	2d d3 00 1a 	lhu r19,(r14+26)                               
 8016d9c:	ba 80 08 00 	mv r1,r20                                      
 8016da0:	fb ff a9 12 	calli 80011e8 <__ashlsi3>                      
 8016da4:	b8 20 c0 00 	mv r24,r1                                      
 8016da8:	34 02 00 08 	mvi r2,8                                       
 8016dac:	ba 80 08 00 	mv r1,r20                                      
 8016db0:	f8 00 55 18 	calli 802c210 <__lshrsi3>                      
 8016db4:	bb 01 08 00 	or r1,r24,r1                                   
 8016db8:	34 02 00 10 	mvi r2,16                                      
 8016dbc:	20 21 ff ff 	andi r1,r1,0xffff                              
 8016dc0:	fb ff a9 0a 	calli 80011e8 <__ashlsi3>                      
 8016dc4:	b8 20 a0 00 	mv r20,r1                                      
 8016dc8:	34 02 00 08 	mvi r2,8                                       
 8016dcc:	ba 60 08 00 	mv r1,r19                                      
 8016dd0:	fb ff a9 06 	calli 80011e8 <__ashlsi3>                      
 8016dd4:	b8 20 c0 00 	mv r24,r1                                      
 8016dd8:	34 02 00 08 	mvi r2,8                                       
 8016ddc:	ba 60 08 00 	mv r1,r19                                      
 8016de0:	f8 00 55 0c 	calli 802c210 <__lshrsi3>                      
 8016de4:	bb 01 18 00 	or r3,r24,r1                                   
 8016de8:	20 63 ff ff 	andi r3,r3,0xffff                              
 8016dec:	ba 83 18 00 	or r3,r20,r3                                   
 8016df0:	5c 75 00 5b 	bne r3,r21,8016f5c <msdos_find_node_by_cluster_num_in_fat_file+0x2b4>
            {                                                         
                /* on success fill aux structure and copy all 32 bytes */
                rc = fat_file_ioctl(&fs_info->fat, fat_fd, F_CLU_NUM, j * bts2rd,
 8016df4:	b9 80 08 00 	mv r1,r12                                      
 8016df8:	b9 60 10 00 	mv r2,r11                                      
 8016dfc:	34 03 00 01 	mvi r3,1                                       
 8016e00:	ba 20 20 00 	mv r4,r17                                      
 8016e04:	b9 e0 28 00 	mv r5,r15                                      
 8016e08:	fb ff e2 0c 	calli 800f638 <fat_file_ioctl>                 
                                    &dir_pos->sname.cln);             
                if (rc != RC_OK)                                      
 8016e0c:	5c 20 00 60 	bne r1,r0,8016f8c <msdos_find_node_by_cluster_num_in_fat_file+0x2e4><== NEVER TAKEN
                    return rc;                                        
                                                                      
                dir_pos->sname.ofs = i;                               
                dir_pos->lname.cln = FAT_FILE_SHORT_NAME;             
 8016e10:	34 02 ff ff 	mvi r2,-1                                      
                rc = fat_file_ioctl(&fs_info->fat, fat_fd, F_CLU_NUM, j * bts2rd,
                                    &dir_pos->sname.cln);             
                if (rc != RC_OK)                                      
                    return rc;                                        
                                                                      
                dir_pos->sname.ofs = i;                               
 8016e14:	59 f0 00 04 	sw (r15+4),r16                                 
                dir_pos->lname.cln = FAT_FILE_SHORT_NAME;             
 8016e18:	59 e2 00 08 	sw (r15+8),r2                                  
                dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;             
 8016e1c:	59 e2 00 0c 	sw (r15+12),r2                                 
                                                                      
                memcpy(dir_entry, entry,                              
 8016e20:	41 c2 00 06 	lbu r2,(r14+6)                                 
 8016e24:	41 c3 00 00 	lbu r3,(r14+0)                                 
 8016e28:	41 c5 00 01 	lbu r5,(r14+1)                                 
 8016e2c:	41 c7 00 02 	lbu r7,(r14+2)                                 
 8016e30:	41 c9 00 03 	lbu r9,(r14+3)                                 
 8016e34:	41 cb 00 04 	lbu r11,(r14+4)                                
 8016e38:	41 cd 00 05 	lbu r13,(r14+5)                                
 8016e3c:	33 82 00 49 	sb (sp+73),r2                                  
 8016e40:	41 c2 00 07 	lbu r2,(r14+7)                                 
 8016e44:	33 82 00 4a 	sb (sp+74),r2                                  
 8016e48:	41 c2 00 08 	lbu r2,(r14+8)                                 
 8016e4c:	33 82 00 4b 	sb (sp+75),r2                                  
 8016e50:	41 c2 00 09 	lbu r2,(r14+9)                                 
 8016e54:	33 82 00 4c 	sb (sp+76),r2                                  
 8016e58:	41 c2 00 0a 	lbu r2,(r14+10)                                
 8016e5c:	33 82 00 4d 	sb (sp+77),r2                                  
 8016e60:	41 c2 00 0b 	lbu r2,(r14+11)                                
 8016e64:	33 82 00 4e 	sb (sp+78),r2                                  
 8016e68:	41 c2 00 0c 	lbu r2,(r14+12)                                
 8016e6c:	33 82 00 4f 	sb (sp+79),r2                                  
 8016e70:	41 dd 00 0d 	lbu ra,(r14+13)                                
 8016e74:	41 db 00 0e 	lbu fp,(r14+14)                                
 8016e78:	41 d9 00 0f 	lbu r25,(r14+15)                               
 8016e7c:	41 d8 00 10 	lbu r24,(r14+16)                               
 8016e80:	41 d7 00 11 	lbu r23,(r14+17)                               
 8016e84:	41 d6 00 12 	lbu r22,(r14+18)                               
 8016e88:	41 d5 00 13 	lbu r21,(r14+19)                               
 8016e8c:	41 d4 00 14 	lbu r20,(r14+20)                               
 8016e90:	41 d3 00 15 	lbu r19,(r14+21)                               
 8016e94:	41 d1 00 16 	lbu r17,(r14+22)                               
 8016e98:	41 d0 00 17 	lbu r16,(r14+23)                               
 8016e9c:	41 cf 00 18 	lbu r15,(r14+24)                               
 8016ea0:	41 cc 00 19 	lbu r12,(r14+25)                               
 8016ea4:	41 ca 00 1a 	lbu r10,(r14+26)                               
 8016ea8:	41 c8 00 1b 	lbu r8,(r14+27)                                
 8016eac:	41 c6 00 1c 	lbu r6,(r14+28)                                
 8016eb0:	41 c4 00 1d 	lbu r4,(r14+29)                                
 8016eb4:	41 c2 00 1e 	lbu r2,(r14+30)                                
 8016eb8:	41 ce 00 1f 	lbu r14,(r14+31)                               
 8016ebc:	32 43 00 00 	sb (r18+0),r3                                  
 8016ec0:	43 83 00 49 	lbu r3,(sp+73)                                 
 8016ec4:	32 45 00 01 	sb (r18+1),r5                                  
 8016ec8:	32 47 00 02 	sb (r18+2),r7                                  
 8016ecc:	32 43 00 06 	sb (r18+6),r3                                  
 8016ed0:	43 83 00 4a 	lbu r3,(sp+74)                                 
 8016ed4:	32 49 00 03 	sb (r18+3),r9                                  
 8016ed8:	32 4b 00 04 	sb (r18+4),r11                                 
 8016edc:	32 43 00 07 	sb (r18+7),r3                                  
 8016ee0:	43 83 00 4b 	lbu r3,(sp+75)                                 
 8016ee4:	32 4d 00 05 	sb (r18+5),r13                                 
 8016ee8:	32 5d 00 0d 	sb (r18+13),ra                                 
 8016eec:	32 43 00 08 	sb (r18+8),r3                                  
 8016ef0:	43 83 00 4c 	lbu r3,(sp+76)                                 
 8016ef4:	32 5b 00 0e 	sb (r18+14),fp                                 
 8016ef8:	32 59 00 0f 	sb (r18+15),r25                                
 8016efc:	32 43 00 09 	sb (r18+9),r3                                  
 8016f00:	43 83 00 4d 	lbu r3,(sp+77)                                 
 8016f04:	32 58 00 10 	sb (r18+16),r24                                
 8016f08:	32 57 00 11 	sb (r18+17),r23                                
 8016f0c:	32 43 00 0a 	sb (r18+10),r3                                 
 8016f10:	43 83 00 4e 	lbu r3,(sp+78)                                 
 8016f14:	32 56 00 12 	sb (r18+18),r22                                
 8016f18:	32 55 00 13 	sb (r18+19),r21                                
 8016f1c:	32 43 00 0b 	sb (r18+11),r3                                 
 8016f20:	43 83 00 4f 	lbu r3,(sp+79)                                 
 8016f24:	32 54 00 14 	sb (r18+20),r20                                
 8016f28:	32 53 00 15 	sb (r18+21),r19                                
 8016f2c:	32 43 00 0c 	sb (r18+12),r3                                 
 8016f30:	32 51 00 16 	sb (r18+22),r17                                
 8016f34:	32 50 00 17 	sb (r18+23),r16                                
 8016f38:	32 4f 00 18 	sb (r18+24),r15                                
 8016f3c:	32 4c 00 19 	sb (r18+25),r12                                
 8016f40:	32 4a 00 1a 	sb (r18+26),r10                                
 8016f44:	32 48 00 1b 	sb (r18+27),r8                                 
 8016f48:	32 46 00 1c 	sb (r18+28),r6                                 
 8016f4c:	32 44 00 1d 	sb (r18+29),r4                                 
 8016f50:	32 42 00 1e 	sb (r18+30),r2                                 
 8016f54:	32 4e 00 1f 	sb (r18+31),r14                                
                       MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);            
                return RC_OK;                                         
 8016f58:	e0 00 00 0d 	bi 8016f8c <msdos_find_node_by_cluster_num_in_fat_file+0x2e4>
        if ( ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE )                
            rtems_set_errno_and_return_minus_one( EIO );              
                                                                      
        assert(ret == bts2rd);                                        
                                                                      
        for (i = 0; i < bts2rd; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
 8016f5c:	36 10 00 20 	addi r16,r16,32                                
 8016f60:	35 ce 00 20 	addi r14,r14,32                                
 8016f64:	55 b0 ff 88 	bgu r13,r16,8016d84 <msdos_find_node_by_cluster_num_in_fat_file+0xdc><== ALWAYS TAKEN
 8016f68:	b6 2d 88 00 	add r17,r17,r13                                <== NOT EXECUTED
       (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))             
        bts2rd = fat_fd->fat_file_size;                               
    else                                                              
        bts2rd = fs_info->fat.vol.bpc;                                
                                                                      
    while ((ret = fat_file_read(&fs_info->fat, fat_fd, j * bts2rd, bts2rd,
 8016f6c:	29 85 00 a0 	lw r5,(r12+160)                                
 8016f70:	b9 80 08 00 	mv r1,r12                                      
 8016f74:	b9 60 10 00 	mv r2,r11                                      
 8016f78:	ba 20 18 00 	mv r3,r17                                      
 8016f7c:	b9 a0 20 00 	mv r4,r13                                      
 8016f80:	fb ff e0 a9 	calli 800f224 <fat_file_read>                  
 8016f84:	5c 20 ff 6f 	bne r1,r0,8016d40 <msdos_find_node_by_cluster_num_in_fat_file+0x98><== ALWAYS TAKEN
            char* entry = (char*) fs_info->cl_buf + i;                
                                                                      
            /* if this and all rest entries are empty - return not-found */
            if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==                     
                MSDOS_THIS_DIR_ENTRY_AND_REST_EMPTY)                  
                return MSDOS_NAME_NOT_FOUND_ERR;                      
 8016f88:	34 01 7d 01 	mvi r1,32001                                   <== NOT EXECUTED
            }                                                         
        }                                                             
        j++;                                                          
    }                                                                 
    return MSDOS_NAME_NOT_FOUND_ERR;                                  
}                                                                     
 8016f8c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8016f90:	2b 8b 00 44 	lw r11,(sp+68)                                 
 8016f94:	2b 8c 00 40 	lw r12,(sp+64)                                 
 8016f98:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 8016f9c:	2b 8e 00 38 	lw r14,(sp+56)                                 
 8016fa0:	2b 8f 00 34 	lw r15,(sp+52)                                 
 8016fa4:	2b 90 00 30 	lw r16,(sp+48)                                 
 8016fa8:	2b 91 00 2c 	lw r17,(sp+44)                                 
 8016fac:	2b 92 00 28 	lw r18,(sp+40)                                 
 8016fb0:	2b 93 00 24 	lw r19,(sp+36)                                 
 8016fb4:	2b 94 00 20 	lw r20,(sp+32)                                 
 8016fb8:	2b 95 00 1c 	lw r21,(sp+28)                                 
 8016fbc:	2b 96 00 18 	lw r22,(sp+24)                                 
 8016fc0:	2b 97 00 14 	lw r23,(sp+20)                                 
 8016fc4:	2b 98 00 10 	lw r24,(sp+16)                                 
 8016fc8:	2b 99 00 0c 	lw r25,(sp+12)                                 
 8016fcc:	2b 9b 00 08 	lw fp,(sp+8)                                   
 8016fd0:	37 9c 00 4c 	addi sp,sp,76                                  
 8016fd4:	c3 a0 00 00 	ret                                            
                                                                      

08009d78 <msdos_format>: ) /*-------------------------------------------------------------------------*\ | Return Value: | | 0, if success, -1 and errno if failed | \*=========================================================================*/ {
 8009d78:	37 9c fd 00 	addi sp,sp,-768                                
 8009d7c:	5b 8b 00 44 	sw (sp+68),r11                                 
 8009d80:	5b 8c 00 40 	sw (sp+64),r12                                 
 8009d84:	5b 8d 00 3c 	sw (sp+60),r13                                 
 8009d88:	5b 8e 00 38 	sw (sp+56),r14                                 
 8009d8c:	5b 8f 00 34 	sw (sp+52),r15                                 
 8009d90:	5b 90 00 30 	sw (sp+48),r16                                 
 8009d94:	5b 91 00 2c 	sw (sp+44),r17                                 
 8009d98:	5b 92 00 28 	sw (sp+40),r18                                 
 8009d9c:	5b 93 00 24 	sw (sp+36),r19                                 
 8009da0:	5b 94 00 20 	sw (sp+32),r20                                 
 8009da4:	5b 95 00 1c 	sw (sp+28),r21                                 
 8009da8:	5b 96 00 18 	sw (sp+24),r22                                 
 8009dac:	5b 97 00 14 	sw (sp+20),r23                                 
 8009db0:	5b 98 00 10 	sw (sp+16),r24                                 
 8009db4:	5b 99 00 0c 	sw (sp+12),r25                                 
 8009db8:	5b 9b 00 08 	sw (sp+8),fp                                   
 8009dbc:	5b 9d 00 04 	sw (sp+4),ra                                   
  msdos_format_param_t fmt_params;                                    
                                                                      
  /*                                                                  
   * open device for writing                                          
   */                                                                 
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, "open device\n");
 8009dc0:	78 03 08 02 	mvhi r3,0x802                                  
 )                                                                    
/*-------------------------------------------------------------------------*\
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
 8009dc4:	b8 20 58 00 	mv r11,r1                                      
  msdos_format_param_t fmt_params;                                    
                                                                      
  /*                                                                  
   * open device for writing                                          
   */                                                                 
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, "open device\n");
 8009dc8:	38 63 d2 18 	ori r3,r3,0xd218                               
 8009dcc:	b8 40 08 00 	mv r1,r2                                       
 )                                                                    
/*-------------------------------------------------------------------------*\
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
 8009dd0:	b8 40 c0 00 	mv r24,r2                                      
  msdos_format_param_t fmt_params;                                    
                                                                      
  /*                                                                  
   * open device for writing                                          
   */                                                                 
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, "open device\n");
 8009dd4:	34 02 00 02 	mvi r2,2                                       
 8009dd8:	fb ff ff 49 	calli 8009afc <msdos_format_printf>            
  fd = open(devname, O_RDWR);                                         
 8009ddc:	34 02 00 02 	mvi r2,2                                       
 8009de0:	b9 60 08 00 	mv r1,r11                                      
 8009de4:	fb ff e8 50 	calli 8003f24 <open>                           
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
  char                 tmp_sec[FAT_TOTAL_MBR_SIZE];                   
  struct stat          stat_buf;                                      
  int                  ret_val   = 0;                                 
 8009de8:	64 2c ff ff 	cmpei r12,r1,-1                                
  }                                                                   
                                                                      
  /*                                                                  
   * sanity check on device                                           
   */                                                                 
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,           
 8009dec:	78 03 08 02 	mvhi r3,0x802                                  
                                                                      
  /*                                                                  
   * open device for writing                                          
   */                                                                 
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, "open device\n");
  fd = open(devname, O_RDWR);                                         
 8009df0:	b8 20 c8 00 	mv r25,r1                                      
  }                                                                   
                                                                      
  /*                                                                  
   * sanity check on device                                           
   */                                                                 
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,           
 8009df4:	34 02 00 02 	mvi r2,2                                       
 8009df8:	bb 00 08 00 	mv r1,r24                                      
 8009dfc:	38 63 d2 28 	ori r3,r3,0xd228                               
 8009e00:	b9 60 20 00 	mv r4,r11                                      
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
  char                 tmp_sec[FAT_TOTAL_MBR_SIZE];                   
  struct stat          stat_buf;                                      
  int                  ret_val   = 0;                                 
 8009e04:	c8 0c 60 00 	sub r12,r0,r12                                 
  }                                                                   
                                                                      
  /*                                                                  
   * sanity check on device                                           
   */                                                                 
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,           
 8009e08:	fb ff ff 3d 	calli 8009afc <msdos_format_printf>            
                       "stat check: %s\n", devname);                  
  if (ret_val == 0) {                                                 
 8009e0c:	34 17 ff ff 	mvi r23,-1                                     
 8009e10:	5d 80 00 05 	bne r12,r0,8009e24 <msdos_format+0xac>         <== NEVER TAKEN
    ret_val = fstat(fd, &stat_buf);                                   
 8009e14:	bb 20 08 00 	mv r1,r25                                      
 8009e18:	37 82 02 b0 	addi r2,sp,688                                 
 8009e1c:	fb ff e4 9a 	calli 8003084 <fstat>                          
 8009e20:	b8 20 b8 00 	mv r23,r1                                      
  }                                                                   
                                                                      
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_INFO,             
 8009e24:	78 03 08 02 	mvhi r3,0x802                                  
 8009e28:	bb 00 08 00 	mv r1,r24                                      
 8009e2c:	34 02 00 01 	mvi r2,1                                       
 8009e30:	38 63 d2 38 	ori r3,r3,0xd238                               
 8009e34:	b9 60 20 00 	mv r4,r11                                      
 8009e38:	fb ff ff 31 	calli 8009afc <msdos_format_printf>            
                       "formating: %s\n", devname);                   
  /* rtems feature: no block devices, all are character devices */    
  if ((ret_val == 0) && (!S_ISBLK(stat_buf.st_mode))) {               
 8009e3c:	5e e0 01 da 	bne r23,r0,800a5a4 <msdos_format+0x82c>        <== NEVER TAKEN
 8009e40:	2b 84 02 bc 	lw r4,(sp+700)                                 
 8009e44:	34 03 60 00 	mvi r3,24576                                   
 8009e48:	20 84 f0 00 	andi r4,r4,0xf000                              
 8009e4c:	44 83 03 a2 	be r4,r3,800acd4 <msdos_format+0xf5c>          
    errno = ENOTTY;                                                   
 8009e50:	f8 00 3e ef 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 8009e54:	34 03 00 19 	mvi r3,25                                      <== NOT EXECUTED
 8009e58:	58 23 00 00 	sw (r1+0),r3                                   <== NOT EXECUTED
    ret_val = -1;                                                     
 8009e5c:	34 17 ff ff 	mvi r23,-1                                     <== NOT EXECUTED
 8009e60:	e0 00 01 d1 	bi 800a5a4 <msdos_format+0x82c>                <== NOT EXECUTED
static inline int rtems_disk_fd_get_block_count(                      
  int fd,                                                             
  rtems_blkdev_bnum *block_count                                      
)                                                                     
{                                                                     
  return ioctl(fd, RTEMS_BLKIO_GETSIZE, block_count);                 
 8009e64:	78 03 08 02 	mvhi r3,0x802                                  
 8009e68:	38 63 d3 1c 	ori r3,r3,0xd31c                               
 8009e6c:	28 62 00 00 	lw r2,(r3+0)                                   
 8009e70:	bb 20 08 00 	mv r1,r25                                      
 8009e74:	37 83 02 60 	addi r3,sp,608                                 
 8009e78:	f8 00 20 00 	calli 8011e78 <ioctl>                          
 8009e7c:	b8 20 b8 00 	mv r23,r1                                      
    ret_val = rtems_disk_fd_get_media_block_size(fd, &fmt_params->bytes_per_sector);
  }                                                                   
  if (ret_val == 0) {                                                 
    ret_val = rtems_disk_fd_get_block_count(fd, &fmt_params->totl_sector_cnt);
  }                                                                   
  if (ret_val == 0) {                                                 
 8009e80:	5c 20 01 48 	bne r1,r0,800a3a0 <msdos_format+0x628>         <== NEVER TAKEN
    total_size = fmt_params->bytes_per_sector * fmt_params->totl_sector_cnt;
 8009e84:	2b 8d 02 5c 	lw r13,(sp+604)                                
 8009e88:	2b 8c 02 60 	lw r12,(sp+608)                                
 8009e8c:	b9 a0 10 00 	mv r2,r13                                      
 8009e90:	b9 80 08 00 	mv r1,r12                                      
 8009e94:	fb ff dd 23 	calli 8001320 <__mulsi3>                       
 8009e98:	b8 20 58 00 	mv r11,r1                                      
    msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,         
 8009e9c:	78 03 08 02 	mvhi r3,0x802                                  
 8009ea0:	bb 00 08 00 	mv r1,r24                                      
 8009ea4:	34 02 00 02 	mvi r2,2                                       
 8009ea8:	38 63 d2 48 	ori r3,r3,0xd248                               
 8009eac:	b9 a0 20 00 	mv r4,r13                                      
 8009eb0:	b9 80 28 00 	mv r5,r12                                      
 8009eb4:	34 06 00 00 	mvi r6,0                                       
 8009eb8:	b9 60 38 00 	mv r7,r11                                      
 8009ebc:	fb ff ff 10 	calli 8009afc <msdos_format_printf>            
                                                                      
  /*                                                                  
   * determine number of FATs                                         
   */                                                                 
  if (ret_val == 0) {                                                 
    if ((rqdata == NULL) ||                                           
 8009ec0:	47 00 00 03 	be r24,r0,8009ecc <msdos_format+0x154>         
	(rqdata->fat_num == 0)) {                                            
 8009ec4:	2b 03 00 0c 	lw r3,(r24+12)                                 
                                                                      
  /*                                                                  
   * determine number of FATs                                         
   */                                                                 
  if (ret_val == 0) {                                                 
    if ((rqdata == NULL) ||                                           
 8009ec8:	5c 60 00 03 	bne r3,r0,8009ed4 <msdos_format+0x15c>         
	(rqdata->fat_num == 0)) {                                            
      fmt_params->fat_num = 2;                                        
 8009ecc:	34 03 00 02 	mvi r3,2                                       
 8009ed0:	e0 00 00 03 	bi 8009edc <msdos_format+0x164>                
    }                                                                 
    else if (rqdata->fat_num <= 6) {                                  
 8009ed4:	34 04 00 06 	mvi r4,6                                       
 8009ed8:	54 64 00 0a 	bgu r3,r4,8009f00 <msdos_format+0x188>         
      fmt_params->fat_num = rqdata->fat_num;                          
 8009edc:	33 83 02 8c 	sb (sp+652),r3                                 
      ret_val = -1;                                                   
    }                                                                 
  }                                                                   
                                                                      
  if (ret_val == 0)                                                   
    msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,         
 8009ee0:	43 84 02 8c 	lbu r4,(sp+652)                                
 8009ee4:	78 03 08 02 	mvhi r3,0x802                                  
 8009ee8:	bb 00 08 00 	mv r1,r24                                      
 8009eec:	34 02 00 02 	mvi r2,2                                       
 8009ef0:	38 63 d2 f0 	ori r3,r3,0xd2f0                               
 8009ef4:	fb ff ff 02 	calli 8009afc <msdos_format_printf>            
     * are a compromise concerning capacity and efficency             
     */                                                               
    uint32_t fat12_sect_per_clust = 8;                                
    uint32_t fat16_sect_per_clust = 32;                               
                                                                      
    if (rqdata != NULL && rqdata->sectors_per_cluster != 0) {         
 8009ef8:	5f 00 00 07 	bne r24,r0,8009f14 <msdos_format+0x19c>        
 8009efc:	e0 00 00 09 	bi 8009f20 <msdos_format+0x1a8>                
    }                                                                 
    else if (rqdata->fat_num <= 6) {                                  
      fmt_params->fat_num = rqdata->fat_num;                          
    }                                                                 
    else {                                                            
      errno = EINVAL;                                                 
 8009f00:	f8 00 3e c3 	calli 8019a0c <__errno>                        
 8009f04:	34 03 00 16 	mvi r3,22                                      
 8009f08:	58 23 00 00 	sw (r1+0),r3                                   
      ret_val = -1;                                                   
 8009f0c:	34 17 ff ff 	mvi r23,-1                                     
 8009f10:	e0 00 01 24 	bi 800a3a0 <msdos_format+0x628>                
     * are a compromise concerning capacity and efficency             
     */                                                               
    uint32_t fat12_sect_per_clust = 8;                                
    uint32_t fat16_sect_per_clust = 32;                               
                                                                      
    if (rqdata != NULL && rqdata->sectors_per_cluster != 0) {         
 8009f14:	2b 03 00 08 	lw r3,(r24+8)                                  
 8009f18:	b8 60 60 00 	mv r12,r3                                      
 8009f1c:	5c 60 00 03 	bne r3,r0,8009f28 <msdos_format+0x1b0>         
     * limiting values for disk size, fat type, sectors per cluster   
     * NOTE: maximum sect_per_clust is arbitrarily choosen with values that
     * are a compromise concerning capacity and efficency             
     */                                                               
    uint32_t fat12_sect_per_clust = 8;                                
    uint32_t fat16_sect_per_clust = 32;                               
 8009f20:	34 0c 00 20 	mvi r12,32                                     
    /*                                                                
     * limiting values for disk size, fat type, sectors per cluster   
     * NOTE: maximum sect_per_clust is arbitrarily choosen with values that
     * are a compromise concerning capacity and efficency             
     */                                                               
    uint32_t fat12_sect_per_clust = 8;                                
 8009f24:	34 03 00 08 	mvi r3,8                                       
    if (rqdata != NULL && rqdata->sectors_per_cluster != 0) {         
      fat12_sect_per_clust = rqdata->sectors_per_cluster;             
      fat16_sect_per_clust = rqdata->sectors_per_cluster;             
    }                                                                 
                                                                      
    if (fmt_params->totl_sector_cnt < FAT_FAT12_MAX_CLN * fat12_sect_per_clust) {
 8009f28:	2b 8d 02 60 	lw r13,(sp+608)                                
 8009f2c:	b8 60 08 00 	mv r1,r3                                       
 8009f30:	34 02 0f f5 	mvi r2,4085                                    
 8009f34:	fb ff dc fb 	calli 8001320 <__mulsi3>                       
 8009f38:	51 a1 00 03 	bgeu r13,r1,8009f44 <msdos_format+0x1cc>       
      fmt_params->fattype = FAT_FAT12;                                
 8009f3c:	34 03 00 01 	mvi r3,1                                       
 8009f40:	e0 00 00 06 	bi 8009f58 <msdos_format+0x1e0>                
      /* start trying with small clusters */                          
      fmt_params->sectors_per_cluster = 2;                            
    }                                                                 
    else if (fmt_params->totl_sector_cnt < FAT_FAT16_MAX_CLN * fat16_sect_per_clust) {
 8009f44:	b9 80 08 00 	mv r1,r12                                      
 8009f48:	38 02 ff f5 	mvu r2,0xfff5                                  
 8009f4c:	fb ff dc f5 	calli 8001320 <__mulsi3>                       
 8009f50:	51 a1 00 06 	bgeu r13,r1,8009f68 <msdos_format+0x1f0>       
      fmt_params->fattype = FAT_FAT16;                                
 8009f54:	34 03 00 02 	mvi r3,2                                       
 8009f58:	33 83 02 8e 	sb (sp+654),r3                                 
      /* start trying with small clusters */                          
      fmt_params->sectors_per_cluster = 2;                            
 8009f5c:	34 03 00 02 	mvi r3,2                                       
 8009f60:	5b 83 02 68 	sw (sp+616),r3                                 
 8009f64:	e0 00 00 16 	bi 8009fbc <msdos_format+0x244>                
    }                                                                 
    else {                                                            
      #define ONE_GB (1024L * 1024L * 1024L)                          
      uint32_t gigs = (total_size + ONE_GB) / ONE_GB;                 
 8009f68:	78 03 40 00 	mvhi r3,0x4000                                 
 8009f6c:	b5 63 18 00 	add r3,r11,r3                                  
 8009f70:	f5 63 08 00 	cmpgu r1,r11,r3                                
 8009f74:	b8 60 10 00 	mv r2,r3                                       
 8009f78:	34 03 00 1e 	mvi r3,30                                      
 8009f7c:	f8 00 73 c9 	calli 8026ea0 <__lshrdi3>                      
      int b;                                                          
      fmt_params->fattype = FAT_FAT32;                                
 8009f80:	34 03 00 04 	mvi r3,4                                       
      /* start trying with small clusters */                          
      fmt_params->sectors_per_cluster = 2;                            
    }                                                                 
    else {                                                            
      #define ONE_GB (1024L * 1024L * 1024L)                          
      uint32_t gigs = (total_size + ONE_GB) / ONE_GB;                 
 8009f84:	b8 40 68 00 	mv r13,r2                                      
      int b;                                                          
      fmt_params->fattype = FAT_FAT32;                                
 8009f88:	33 83 02 8e 	sb (sp+654),r3                                 
      /* scale with the size of disk... */                            
      for (b = 31; b > 0; b--)                                        
 8009f8c:	34 0c 00 1f 	mvi r12,31                                     
        if ((gigs & (1 << b)) != 0)                                   
 8009f90:	34 01 00 01 	mvi r1,1                                       
 8009f94:	b9 80 10 00 	mv r2,r12                                      
 8009f98:	fb ff dc 94 	calli 80011e8 <__ashlsi3>                      
 8009f9c:	a0 2d 08 00 	and r1,r1,r13                                  
 8009fa0:	5c 20 00 03 	bne r1,r0,8009fac <msdos_format+0x234>         
      #define ONE_GB (1024L * 1024L * 1024L)                          
      uint32_t gigs = (total_size + ONE_GB) / ONE_GB;                 
      int b;                                                          
      fmt_params->fattype = FAT_FAT32;                                
      /* scale with the size of disk... */                            
      for (b = 31; b > 0; b--)                                        
 8009fa4:	35 8c ff ff 	addi r12,r12,-1                                
 8009fa8:	5d 81 ff fa 	bne r12,r1,8009f90 <msdos_format+0x218>        
        if ((gigs & (1 << b)) != 0)                                   
          break;                                                      
      fmt_params->sectors_per_cluster = 1 << b;                       
 8009fac:	34 01 00 01 	mvi r1,1                                       
 8009fb0:	b9 80 10 00 	mv r2,r12                                      
 8009fb4:	fb ff dc 8d 	calli 80011e8 <__ashlsi3>                      
 8009fb8:	5b 81 02 68 	sw (sp+616),r1                                 
                                                                      
  /*                                                                  
   * compute formatting parameters                                    
   */                                                                 
  if (ret_val == 0) {                                                 
    ret_val = msdos_format_determine_fmt_params(fd,rqdata,&fmt_params);
 8009fbc:	37 8c 02 5c 	addi r12,sp,604                                
        if ((gigs & (1 << b)) != 0)                                   
          break;                                                      
      fmt_params->sectors_per_cluster = 1 << b;                       
    }                                                                 
                                                                      
    ret_val = msdos_set_sectors_per_cluster_from_request( rqdata, fmt_params );
 8009fc0:	b9 80 10 00 	mv r2,r12                                      
 8009fc4:	bb 00 08 00 	mv r1,r24                                      
 8009fc8:	fb ff fe a7 	calli 8009a64 <msdos_set_sectors_per_cluster_from_request>
    /* start trying with small clusters */                            
    fmt_params->sectors_per_cluster = 2;                              
  }                                                                   
  else {                                                              
    #define ONE_GB ( 1024L * 1024L * 1024L )                          
    uint32_t gigs = ( total_size + ONE_GB ) / ONE_GB;                 
 8009fcc:	78 03 40 00 	mvhi r3,0x4000                                 
 8009fd0:	b5 63 18 00 	add r3,r11,r3                                  
        if ((gigs & (1 << b)) != 0)                                   
          break;                                                      
      fmt_params->sectors_per_cluster = 1 << b;                       
    }                                                                 
                                                                      
    ret_val = msdos_set_sectors_per_cluster_from_request( rqdata, fmt_params );
 8009fd4:	b8 20 b8 00 	mv r23,r1                                      
    /* start trying with small clusters */                            
    fmt_params->sectors_per_cluster = 2;                              
  }                                                                   
  else {                                                              
    #define ONE_GB ( 1024L * 1024L * 1024L )                          
    uint32_t gigs = ( total_size + ONE_GB ) / ONE_GB;                 
 8009fd8:	f5 63 08 00 	cmpgu r1,r11,r3                                
 8009fdc:	b8 60 10 00 	mv r2,r3                                       
 8009fe0:	34 03 00 1e 	mvi r3,30                                      
 8009fe4:	f8 00 73 af 	calli 8026ea0 <__lshrdi3>                      
          && fmt_params->fattype != fat_type                          
          && fmt_params->totl_sector_cnt > 0 ) {                      
      /*                                                              
       * Skip aligning structures or d align them                     
       */                                                             
      if (ret_val == 0 && rqdata != NULL)                             
 8009fe8:	7f 01 00 00 	cmpnei r1,r24,0                                
    /* start trying with small clusters */                            
    fmt_params->sectors_per_cluster = 2;                              
  }                                                                   
  else {                                                              
    #define ONE_GB ( 1024L * 1024L * 1024L )                          
    uint32_t gigs = ( total_size + ONE_GB ) / ONE_GB;                 
 8009fec:	5b 82 00 54 	sw (sp+84),r2                                  
       */                                                             
      if (ret_val == 0 && rqdata != NULL)                             
        fmt_params->skip_alignment = rqdata->skip_alignment;          
                                                                      
      if (ret_val == 0) {                                             
        msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,     
 8009ff0:	78 02 08 02 	mvhi r2,0x802                                  
 8009ff4:	38 42 d2 84 	ori r2,r2,0xd284                               
 8009ff8:	5b 99 00 4c 	sw (sp+76),r25                                 
    /* start trying with small clusters */                            
    fmt_params->sectors_per_cluster = 2;                              
  }                                                                   
  else {                                                              
    #define ONE_GB ( 1024L * 1024L * 1024L )                          
    uint32_t gigs = ( total_size + ONE_GB ) / ONE_GB;                 
 8009ffc:	34 1b 00 ff 	mvi fp,255                                     
 800a000:	34 15 00 00 	mvi r21,0                                      
          && fmt_params->fattype != fat_type                          
          && fmt_params->totl_sector_cnt > 0 ) {                      
      /*                                                              
       * Skip aligning structures or d align them                     
       */                                                             
      if (ret_val == 0 && rqdata != NULL)                             
 800a004:	5b 81 00 50 	sw (sp+80),r1                                  
 800a008:	5b 81 00 58 	sw (sp+88),r1                                  
        fmt_params->skip_alignment = rqdata->skip_alignment;          
                                                                      
      if (ret_val == 0) {                                             
        msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,     
 800a00c:	5b 82 00 48 	sw (sp+72),r2                                  
 800a010:	ba e0 c8 00 	mv r25,r23                                     
 800a014:	e0 00 00 dc 	bi 800a384 <msdos_format+0x60c>                
          && fmt_params->fattype != fat_type                          
          && fmt_params->totl_sector_cnt > 0 ) {                      
      /*                                                              
       * Skip aligning structures or d align them                     
       */                                                             
      if (ret_val == 0 && rqdata != NULL)                             
 800a018:	2b 83 00 58 	lw r3,(sp+88)                                  
 800a01c:	44 60 00 03 	be r3,r0,800a028 <msdos_format+0x2b0>          
        fmt_params->skip_alignment = rqdata->skip_alignment;          
 800a020:	43 04 00 16 	lbu r4,(r24+22)                                
 800a024:	33 84 02 ac 	sb (sp+684),r4                                 
                                                                      
      if (ret_val == 0) {                                             
        msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,     
 800a028:	2b 83 00 48 	lw r3,(sp+72)                                  
 800a02c:	2b 84 02 68 	lw r4,(sp+616)                                 
 800a030:	bb 00 08 00 	mv r1,r24                                      
 800a034:	34 02 00 02 	mvi r2,2                                       
 800a038:	fb ff fe b1 	calli 8009afc <msdos_format_printf>            
                             "sectors per cluster: %d\n", fmt_params->sectors_per_cluster);
                                                                      
        if (fmt_params->fattype == FAT_FAT32) {                       
 800a03c:	43 82 02 8e 	lbu r2,(sp+654)                                
 800a040:	34 01 00 04 	mvi r1,4                                       
 800a044:	5c 41 00 09 	bne r2,r1,800a068 <msdos_format+0x2f0>         
          /* recommended: for FAT32, always set reserved sector count to 32 */
          fmt_params->rsvd_sector_cnt = 32;                           
 800a048:	34 02 00 20 	mvi r2,32                                      
          /* for FAT32, always set files per root directory 0 */      
          fmt_params->files_per_root_dir = 0;                         
          /* location of copy of MBR */                               
          fmt_params->mbr_copy_sec = 6;                               
 800a04c:	34 03 00 06 	mvi r3,6                                       
          /* location of fsinfo sector */                             
          fmt_params->fsinfo_sec = 1;                                 
 800a050:	34 01 00 01 	mvi r1,1                                       
        msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,     
                             "sectors per cluster: %d\n", fmt_params->sectors_per_cluster);
                                                                      
        if (fmt_params->fattype == FAT_FAT32) {                       
          /* recommended: for FAT32, always set reserved sector count to 32 */
          fmt_params->rsvd_sector_cnt = 32;                           
 800a054:	5b 82 02 64 	sw (sp+612),r2                                 
          /* for FAT32, always set files per root directory 0 */      
          fmt_params->files_per_root_dir = 0;                         
 800a058:	5b 80 02 74 	sw (sp+628),r0                                 
          /* location of copy of MBR */                               
          fmt_params->mbr_copy_sec = 6;                               
 800a05c:	5b 83 02 84 	sw (sp+644),r3                                 
          /* location of fsinfo sector */                             
          fmt_params->fsinfo_sec = 1;                                 
 800a060:	5b 81 02 88 	sw (sp+648),r1                                 
 800a064:	e0 00 00 1d 	bi 800a0d8 <msdos_format+0x360>                
          /* recommended: for FAT12/FAT16, always set reserved sector count to 1 */
          fmt_params->rsvd_sector_cnt = 1;                            
          /* recommended: for FAT16, set files per root directory to 512 */
          /* for FAT12/FAT16, set files per root directory */         
          /* must fill up an even count of sectors         */         
          if ((rqdata != NULL) &&                                     
 800a068:	2b 81 00 50 	lw r1,(sp+80)                                  
          fmt_params->fsinfo_sec = 1;                                 
                                                                      
        }                                                             
        else {                                                        
          /* recommended: for FAT12/FAT16, always set reserved sector count to 1 */
          fmt_params->rsvd_sector_cnt = 1;                            
 800a06c:	34 03 00 01 	mvi r3,1                                       
 800a070:	5b 83 02 64 	sw (sp+612),r3                                 
          /* recommended: for FAT16, set files per root directory to 512 */
          /* for FAT12/FAT16, set files per root directory */         
          /* must fill up an even count of sectors         */         
          if ((rqdata != NULL) &&                                     
 800a074:	44 20 00 05 	be r1,r0,800a088 <msdos_format+0x310>          
              (rqdata->files_per_root_dir > 0)) {                     
 800a078:	2b 04 00 10 	lw r4,(r24+16)                                 
          /* recommended: for FAT12/FAT16, always set reserved sector count to 1 */
          fmt_params->rsvd_sector_cnt = 1;                            
          /* recommended: for FAT16, set files per root directory to 512 */
          /* for FAT12/FAT16, set files per root directory */         
          /* must fill up an even count of sectors         */         
          if ((rqdata != NULL) &&                                     
 800a07c:	44 80 00 03 	be r4,r0,800a088 <msdos_format+0x310>          
              (rqdata->files_per_root_dir > 0)) {                     
            fmt_params->files_per_root_dir = rqdata->files_per_root_dir;
 800a080:	5b 84 02 74 	sw (sp+628),r4                                 
 800a084:	e0 00 00 08 	bi 800a0a4 <msdos_format+0x32c>                
          }                                                           
          else {                                                      
            if (fmt_params->fattype == FAT_FAT16) {                   
 800a088:	34 04 00 02 	mvi r4,2                                       
 800a08c:	5c 44 00 04 	bne r2,r4,800a09c <msdos_format+0x324>         
              fmt_params->files_per_root_dir = 512;                   
 800a090:	34 02 02 00 	mvi r2,512                                     
 800a094:	5b 82 02 74 	sw (sp+628),r2                                 
 800a098:	e0 00 00 03 	bi 800a0a4 <msdos_format+0x32c>                
            }                                                         
            else {                                                    
              fmt_params->files_per_root_dir = 64;                    
 800a09c:	34 03 00 40 	mvi r3,64                                      
 800a0a0:	5b 83 02 74 	sw (sp+628),r3                                 
            }                                                         
          }                                                           
          fmt_params->files_per_root_dir = (fmt_params->files_per_root_dir +
                                           (2*fmt_params->bytes_per_sector/
 800a0a4:	2b 81 02 5c 	lw r1,(sp+604)                                 
 800a0a8:	34 02 00 01 	mvi r2,1                                       
 800a0ac:	fb ff dc 4f 	calli 80011e8 <__ashlsi3>                      
 800a0b0:	34 02 00 05 	mvi r2,5                                       
 800a0b4:	f8 00 88 57 	calli 802c210 <__lshrsi3>                      
            }                                                         
            else {                                                    
              fmt_params->files_per_root_dir = 64;                    
            }                                                         
          }                                                           
          fmt_params->files_per_root_dir = (fmt_params->files_per_root_dir +
 800a0b8:	2b 8b 02 74 	lw r11,(sp+628)                                
                                           (2*fmt_params->bytes_per_sector/
 800a0bc:	b8 20 10 00 	mv r2,r1                                       
            }                                                         
            else {                                                    
              fmt_params->files_per_root_dir = 64;                    
            }                                                         
          }                                                           
          fmt_params->files_per_root_dir = (fmt_params->files_per_root_dir +
 800a0c0:	35 6b ff ff 	addi r11,r11,-1                                
 800a0c4:	b5 61 58 00 	add r11,r11,r1                                 
                                           (2*fmt_params->bytes_per_sector/
                                           FAT_DIRENTRY_SIZE-1));     
          fmt_params->files_per_root_dir -= (fmt_params->files_per_root_dir %
 800a0c8:	b9 60 08 00 	mv r1,r11                                      
 800a0cc:	f8 00 88 b1 	calli 802c390 <__umodsi3>                      
 800a0d0:	c9 61 58 00 	sub r11,r11,r1                                 
 800a0d4:	5b 8b 02 74 	sw (sp+628),r11                                
                                            /FAT_DIRENTRY_SIZE));     
                                                                      
        }                                                             
        fmt_params->root_dir_sectors =                                
          (((fmt_params->files_per_root_dir * FAT_DIRENTRY_SIZE)      
            + fmt_params->bytes_per_sector - 1)                       
 800a0d8:	2b 8f 02 5c 	lw r15,(sp+604)                                
                                            (2*fmt_params->bytes_per_sector
                                            /FAT_DIRENTRY_SIZE));     
                                                                      
        }                                                             
        fmt_params->root_dir_sectors =                                
          (((fmt_params->files_per_root_dir * FAT_DIRENTRY_SIZE)      
 800a0dc:	2b 81 02 74 	lw r1,(sp+628)                                 
 800a0e0:	34 02 00 05 	mvi r2,5                                       
            + fmt_params->bytes_per_sector - 1)                       
 800a0e4:	35 f4 ff ff 	addi r20,r15,-1                                
                                            (2*fmt_params->bytes_per_sector
                                            /FAT_DIRENTRY_SIZE));     
                                                                      
        }                                                             
        fmt_params->root_dir_sectors =                                
          (((fmt_params->files_per_root_dir * FAT_DIRENTRY_SIZE)      
 800a0e8:	fb ff dc 40 	calli 80011e8 <__ashlsi3>                      
            + fmt_params->bytes_per_sector - 1)                       
           / fmt_params->bytes_per_sector);                           
 800a0ec:	b9 e0 10 00 	mv r2,r15                                      
 800a0f0:	b6 81 08 00 	add r1,r20,r1                                  
 800a0f4:	f8 00 88 97 	calli 802c350 <__udivsi3>                      
      if (ret_val == 0) {                                             
        /*                                                            
         * check values to get legal arrangement of FAT type and cluster count
         */                                                           
                                                                      
        ret_val = msdos_format_eval_sectors_per_cluster(fmt_params->fattype,
 800a0f8:	43 9b 02 8e 	lbu fp,(sp+654)                                
 800a0fc:	2b 8d 02 68 	lw r13,(sp+616)                                
          fmt_params->files_per_root_dir -= (fmt_params->files_per_root_dir %
                                            (2*fmt_params->bytes_per_sector
                                            /FAT_DIRENTRY_SIZE));     
                                                                      
        }                                                             
        fmt_params->root_dir_sectors =                                
 800a100:	5b 81 02 78 	sw (sp+632),r1                                 
          (((fmt_params->files_per_root_dir * FAT_DIRENTRY_SIZE)      
            + fmt_params->bytes_per_sector - 1)                       
           / fmt_params->bytes_per_sector);                           
 800a104:	b8 20 88 00 	mv r17,r1                                      
  uint32_t fatdata_sect_cnt;                                          
  uint32_t fat_sectors_cnt;                                           
  /*                                                                  
   * ensure, that maximum cluster size (32KByte) is not exceeded      
   */                                                                 
  while (MS_BYTES_PER_CLUSTER_LIMIT / bytes_per_sector < sectors_per_cluster) {
 800a108:	b9 e0 10 00 	mv r2,r15                                      
 800a10c:	38 01 80 00 	mvu r1,0x8000                                  
 800a110:	f8 00 88 90 	calli 802c350 <__udivsi3>                      
 800a114:	b8 20 58 00 	mv r11,r1                                      
      if (ret_val == 0) {                                             
        /*                                                            
         * check values to get legal arrangement of FAT type and cluster count
         */                                                           
                                                                      
        ret_val = msdos_format_eval_sectors_per_cluster(fmt_params->fattype,
 800a118:	2b 96 02 60 	lw r22,(sp+608)                                
 800a11c:	2b 97 02 64 	lw r23,(sp+612)                                
                                                        fmt_params->bytes_per_sector,
                                                        fmt_params->totl_sector_cnt,
                                                        fmt_params->rsvd_sector_cnt,
                                                        fmt_params->root_dir_sectors,
                                                        fmt_params->fat_num,
 800a120:	43 93 02 8c 	lbu r19,(sp+652)                               
      if (ret_val == 0) {                                             
        /*                                                            
         * check values to get legal arrangement of FAT type and cluster count
         */                                                           
                                                                      
        ret_val = msdos_format_eval_sectors_per_cluster(fmt_params->fattype,
 800a124:	43 90 02 ac 	lbu r16,(sp+684)                               
 800a128:	b9 a0 08 00 	mv r1,r13                                      
 800a12c:	e0 00 00 03 	bi 800a138 <msdos_format+0x3c0>                
  uint32_t fat_sectors_cnt;                                           
  /*                                                                  
   * ensure, that maximum cluster size (32KByte) is not exceeded      
   */                                                                 
  while (MS_BYTES_PER_CLUSTER_LIMIT / bytes_per_sector < sectors_per_cluster) {
    sectors_per_cluster /= 2;                                         
 800a130:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 800a134:	f8 00 88 37 	calli 802c210 <__lshrsi3>                      <== NOT EXECUTED
  uint32_t fatdata_sect_cnt;                                          
  uint32_t fat_sectors_cnt;                                           
  /*                                                                  
   * ensure, that maximum cluster size (32KByte) is not exceeded      
   */                                                                 
  while (MS_BYTES_PER_CLUSTER_LIMIT / bytes_per_sector < sectors_per_cluster) {
 800a138:	54 2b ff fe 	bgu r1,r11,800a130 <msdos_format+0x3b8>        <== NEVER TAKEN
 800a13c:	b8 20 68 00 	mv r13,r1                                      
      fatdata_sect_cnt    = fatdata_sect_cnt                          
        - loc_align_object (root_dir_sector_cnt, sectors_per_cluster, skip_alignment);
      fatdata_cluster_cnt = fatdata_sect_cnt/sectors_per_cluster;     
      fat_capacity        = fatdata_cluster_cnt * 3 / 2;              
    }                                                                 
    else if (fattype == FAT_FAT16) {                                  
 800a140:	34 12 00 02 	mvi r18,2                                      
     * - compute cluster count for data AND fat                       
     * - compute storage size for FAT                                 
     * - subtract from total cluster count                            
     */                                                               
    fatdata_sect_cnt = total_sector_cnt                               
      - loc_align_object (rsvd_sector_cnt, sectors_per_cluster, skip_alignment);
 800a144:	ba e0 08 00 	mv r1,r23                                      
 800a148:	b9 a0 10 00 	mv r2,r13                                      
 800a14c:	ba 00 18 00 	mv r3,r16                                      
 800a150:	fb ff fe 3f 	calli 8009a4c <loc_align_object>               
     * compute number of data clusters for current data:              
     * - compute cluster count for data AND fat                       
     * - compute storage size for FAT                                 
     * - subtract from total cluster count                            
     */                                                               
    fatdata_sect_cnt = total_sector_cnt                               
 800a154:	ca c1 58 00 	sub r11,r22,r1                                 
      - loc_align_object (rsvd_sector_cnt, sectors_per_cluster, skip_alignment);
    if (fattype == FAT_FAT12) {                                       
 800a158:	34 01 00 01 	mvi r1,1                                       
 800a15c:	5f 61 00 0f 	bne fp,r1,800a198 <msdos_format+0x420>         
      fatdata_sect_cnt    = fatdata_sect_cnt                          
        - loc_align_object (root_dir_sector_cnt, sectors_per_cluster, skip_alignment);
 800a160:	ba 00 18 00 	mv r3,r16                                      
 800a164:	b9 a0 10 00 	mv r2,r13                                      
 800a168:	ba 20 08 00 	mv r1,r17                                      
 800a16c:	fb ff fe 38 	calli 8009a4c <loc_align_object>               
      fatdata_cluster_cnt = fatdata_sect_cnt/sectors_per_cluster;     
 800a170:	b9 a0 10 00 	mv r2,r13                                      
 800a174:	c9 61 08 00 	sub r1,r11,r1                                  
 800a178:	f8 00 88 76 	calli 802c350 <__udivsi3>                      
      fat_capacity        = fatdata_cluster_cnt * 3 / 2;              
 800a17c:	34 02 00 01 	mvi r2,1                                       
    fatdata_sect_cnt = total_sector_cnt                               
      - loc_align_object (rsvd_sector_cnt, sectors_per_cluster, skip_alignment);
    if (fattype == FAT_FAT12) {                                       
      fatdata_sect_cnt    = fatdata_sect_cnt                          
        - loc_align_object (root_dir_sector_cnt, sectors_per_cluster, skip_alignment);
      fatdata_cluster_cnt = fatdata_sect_cnt/sectors_per_cluster;     
 800a180:	b8 20 70 00 	mv r14,r1                                      
      fat_capacity        = fatdata_cluster_cnt * 3 / 2;              
 800a184:	fb ff dc 19 	calli 80011e8 <__ashlsi3>                      
 800a188:	b4 2e 08 00 	add r1,r1,r14                                  
 800a18c:	34 02 00 01 	mvi r2,1                                       
 800a190:	f8 00 88 20 	calli 802c210 <__lshrsi3>                      
 800a194:	e0 00 00 12 	bi 800a1dc <msdos_format+0x464>                
    }                                                                 
    else if (fattype == FAT_FAT16) {                                  
 800a198:	5f 72 00 0b 	bne fp,r18,800a1c4 <msdos_format+0x44c>        
      fatdata_sect_cnt    = fatdata_sect_cnt                          
        - loc_align_object (root_dir_sector_cnt, sectors_per_cluster, skip_alignment);
 800a19c:	b9 a0 10 00 	mv r2,r13                                      
 800a1a0:	ba 00 18 00 	mv r3,r16                                      
 800a1a4:	ba 20 08 00 	mv r1,r17                                      
 800a1a8:	fb ff fe 29 	calli 8009a4c <loc_align_object>               
      fatdata_cluster_cnt = fatdata_sect_cnt/sectors_per_cluster;     
 800a1ac:	b9 a0 10 00 	mv r2,r13                                      
 800a1b0:	c9 61 08 00 	sub r1,r11,r1                                  
 800a1b4:	f8 00 88 67 	calli 802c350 <__udivsi3>                      
 800a1b8:	b8 20 70 00 	mv r14,r1                                      
      fat_capacity        = fatdata_cluster_cnt * 2;                  
 800a1bc:	34 02 00 01 	mvi r2,1                                       
 800a1c0:	e0 00 00 06 	bi 800a1d8 <msdos_format+0x460>                
    }                                                                 
    else { /* FAT32 */                                                
      fatdata_cluster_cnt = fatdata_sect_cnt/sectors_per_cluster;     
 800a1c4:	b9 a0 10 00 	mv r2,r13                                      
 800a1c8:	b9 60 08 00 	mv r1,r11                                      
 800a1cc:	f8 00 88 61 	calli 802c350 <__udivsi3>                      
 800a1d0:	b8 20 70 00 	mv r14,r1                                      
      fat_capacity        = fatdata_cluster_cnt * 4;                  
 800a1d4:	34 02 00 02 	mvi r2,2                                       
 800a1d8:	fb ff dc 04 	calli 80011e8 <__ashlsi3>                      
    }                                                                 
                                                                      
    sectors_per_fat = ((fat_capacity                                  
 800a1dc:	b9 e0 10 00 	mv r2,r15                                      
 800a1e0:	b4 34 08 00 	add r1,r1,r20                                  
 800a1e4:	f8 00 88 5b 	calli 802c350 <__udivsi3>                      
			+ (bytes_per_sector - 1))                                          
		       / bytes_per_sector);                                         
                                                                      
    fat_sectors_cnt = loc_align_object (sectors_per_fat * fat_num,    
 800a1e8:	ba 60 10 00 	mv r2,r19                                      
 800a1ec:	fb ff dc 4d 	calli 8001320 <__mulsi3>                       
 800a1f0:	b9 a0 10 00 	mv r2,r13                                      
 800a1f4:	ba 00 18 00 	mv r3,r16                                      
 800a1f8:	fb ff fe 15 	calli 8009a4c <loc_align_object>               
                                        sectors_per_cluster,          
                                        skip_alignment);              
                                                                      
    *data_cluster_cnt = (fatdata_cluster_cnt -                        
			((fat_sectors_cnt                                                  
			  + (sectors_per_cluster - 1))                                     
 800a1fc:	35 a4 ff ff 	addi r4,r13,-1                                 
			 / sectors_per_cluster));                                          
 800a200:	b9 a0 10 00 	mv r2,r13                                      
                                                                      
    sectors_per_fat = ((fat_capacity                                  
			+ (bytes_per_sector - 1))                                          
		       / bytes_per_sector);                                         
                                                                      
    fat_sectors_cnt = loc_align_object (sectors_per_fat * fat_num,    
 800a204:	b8 20 60 00 	mv r12,r1                                      
                                        skip_alignment);              
                                                                      
    *data_cluster_cnt = (fatdata_cluster_cnt -                        
			((fat_sectors_cnt                                                  
			  + (sectors_per_cluster - 1))                                     
			 / sectors_per_cluster));                                          
 800a208:	b4 81 08 00 	add r1,r4,r1                                   
 800a20c:	f8 00 88 51 	calli 802c350 <__udivsi3>                      
    /*                                                                
     * data cluster count too big? Then make clusters bigger          
     */                                                               
    if (((fattype == FAT_FAT12) && (*data_cluster_cnt > FAT_FAT12_MAX_CLN)) ||
 800a210:	34 02 00 01 	mvi r2,1                                       
                                                                      
    fat_sectors_cnt = loc_align_object (sectors_per_fat * fat_num,    
                                        sectors_per_cluster,          
                                        skip_alignment);              
                                                                      
    *data_cluster_cnt = (fatdata_cluster_cnt -                        
 800a214:	c9 c1 70 00 	sub r14,r14,r1                                 
			  + (sectors_per_cluster - 1))                                     
			 / sectors_per_cluster));                                          
    /*                                                                
     * data cluster count too big? Then make clusters bigger          
     */                                                               
    if (((fattype == FAT_FAT12) && (*data_cluster_cnt > FAT_FAT12_MAX_CLN)) ||
 800a218:	5f 62 00 05 	bne fp,r2,800a22c <msdos_format+0x4b4>         
 800a21c:	34 03 0f f5 	mvi r3,4085                                    
 800a220:	55 c3 00 07 	bgu r14,r3,800a23c <msdos_format+0x4c4>        
        ((fattype == FAT_FAT16) && (*data_cluster_cnt > FAT_FAT16_MAX_CLN))) {
      sectors_per_cluster *= 2;                                       
    }                                                                 
    else {                                                            
      finished = true;                                                
 800a224:	34 0b 00 01 	mvi r11,1                                      
 800a228:	e0 00 00 0c 	bi 800a258 <msdos_format+0x4e0>                
 800a22c:	34 0b 00 01 	mvi r11,1                                      
			  + (sectors_per_cluster - 1))                                     
			 / sectors_per_cluster));                                          
    /*                                                                
     * data cluster count too big? Then make clusters bigger          
     */                                                               
    if (((fattype == FAT_FAT12) && (*data_cluster_cnt > FAT_FAT12_MAX_CLN)) ||
 800a230:	5f 72 00 11 	bne fp,r18,800a274 <msdos_format+0x4fc>        
        ((fattype == FAT_FAT16) && (*data_cluster_cnt > FAT_FAT16_MAX_CLN))) {
 800a234:	38 01 ff f5 	mvu r1,0xfff5                                  
 800a238:	50 2e 00 0f 	bgeu r1,r14,800a274 <msdos_format+0x4fc>       
      sectors_per_cluster *= 2;                                       
 800a23c:	b9 a0 08 00 	mv r1,r13                                      
 800a240:	34 02 00 01 	mvi r2,1                                       
 800a244:	fb ff db e9 	calli 80011e8 <__ashlsi3>                      
      finished = true;                                                
    }                                                                 
    /*                                                                
     * when maximum cluster size is exceeded, we have invalid data, abort...
     */                                                               
    if (fattype == FAT_FAT12) {                                       
 800a248:	34 02 00 01 	mvi r2,1                                       
    /*                                                                
     * data cluster count too big? Then make clusters bigger          
     */                                                               
    if (((fattype == FAT_FAT12) && (*data_cluster_cnt > FAT_FAT12_MAX_CLN)) ||
        ((fattype == FAT_FAT16) && (*data_cluster_cnt > FAT_FAT16_MAX_CLN))) {
      sectors_per_cluster *= 2;                                       
 800a24c:	b8 20 68 00 	mv r13,r1                                      
      finished = true;                                                
    }                                                                 
    /*                                                                
     * when maximum cluster size is exceeded, we have invalid data, abort...
     */                                                               
    if (fattype == FAT_FAT12) {                                       
 800a250:	5f 62 00 08 	bne fp,r2,800a270 <msdos_format+0x4f8>         
 800a254:	34 0b 00 00 	mvi r11,0                                      
      if (MS_BYTES_PER_CLUSTER_LIMIT_FAT12 < (sectors_per_cluster * bytes_per_sector)) {
 800a258:	b9 a0 08 00 	mv r1,r13                                      
 800a25c:	b9 e0 10 00 	mv r2,r15                                      
 800a260:	fb ff dc 30 	calli 8001320 <__mulsi3>                       
 800a264:	34 03 10 00 	mvi r3,4096                                    
 800a268:	54 23 00 09 	bgu r1,r3,800a28c <msdos_format+0x514>         
 800a26c:	e0 00 00 07 	bi 800a288 <msdos_format+0x510>                
      finished = true;                                                
    }                                                                 
    /*                                                                
     * when maximum cluster size is exceeded, we have invalid data, abort...
     */                                                               
    if (fattype == FAT_FAT12) {                                       
 800a270:	34 0b 00 00 	mvi r11,0                                      
      if (MS_BYTES_PER_CLUSTER_LIMIT_FAT12 < (sectors_per_cluster * bytes_per_sector)) {
        finished = true;                                              
      }                                                               
    } else if ((sectors_per_cluster * bytes_per_sector)               
 800a274:	b9 e0 10 00 	mv r2,r15                                      
 800a278:	b9 a0 08 00 	mv r1,r13                                      
 800a27c:	fb ff dc 29 	calli 8001320 <__mulsi3>                       
 800a280:	38 02 80 00 	mvu r2,0x8000                                  
 800a284:	54 22 00 02 	bgu r1,r2,800a28c <msdos_format+0x514>         
	> MS_BYTES_PER_CLUSTER_LIMIT) {                                      
      finished = true;                                                
    }                                                                 
  } while (!finished);                                                
 800a288:	45 60 ff af 	be r11,r0,800a144 <msdos_format+0x3cc>         
                                                                      
  *sectors_per_cluster_adj = sectors_per_cluster;                     
  *sectors_per_fat_ptr     = fat_sectors_cnt / fat_num;               
 800a28c:	b9 80 08 00 	mv r1,r12                                      
 800a290:	ba 60 10 00 	mv r2,r19                                      
 800a294:	f8 00 88 2f 	calli 802c350 <__udivsi3>                      
 800a298:	5b 81 02 6c 	sw (sp+620),r1                                 
static uint8_t                                                        
msdos_get_fat_type( const uint32_t bytes_per_sector,                  
                    const uint32_t sectors_per_cluster,               
                    const uint32_t number_of_clusters )               
{                                                                     
  uint32_t ms_sectors_per_cluster_limit_FAT12 =                       
 800a29c:	b9 e0 10 00 	mv r2,r15                                      
 800a2a0:	34 01 10 01 	mvi r1,4097                                    
                                                        fmt_params->sectors_per_cluster,
                                                        fmt_params->skip_alignment,
                                                        §ors_per_cluster_adj,
                                                        &fmt_params->sectors_per_fat,
                                                        &data_clusters_cnt);
        fmt_params->sectors_per_cluster = sectors_per_cluster_adj;    
 800a2a4:	5b 8d 02 68 	sw (sp+616),r13                                
static uint8_t                                                        
msdos_get_fat_type( const uint32_t bytes_per_sector,                  
                    const uint32_t sectors_per_cluster,               
                    const uint32_t number_of_clusters )               
{                                                                     
  uint32_t ms_sectors_per_cluster_limit_FAT12 =                       
 800a2a8:	f8 00 88 2a 	calli 802c350 <__udivsi3>                      
    ( MS_BYTES_PER_CLUSTER_LIMIT_FAT12 +1 ) / bytes_per_sector;       
  uint32_t ms_sectors_per_cluster_limit_FAT16 =                       
    ( MS_BYTES_PER_CLUSTER_LIMIT +1 ) / bytes_per_sector;             
  uint8_t fattype = FAT_FAT32;                                        
                                                                      
  if (   number_of_clusters < FAT_FAT12_MAX_CLN                       
 800a2ac:	34 03 0f f4 	mvi r3,4084                                    
      && sectors_per_cluster <= ms_sectors_per_cluster_limit_FAT12 ) {
 800a2b0:	f0 2d 20 00 	cmpgeu r4,r1,r13                               
    ( MS_BYTES_PER_CLUSTER_LIMIT_FAT12 +1 ) / bytes_per_sector;       
  uint32_t ms_sectors_per_cluster_limit_FAT16 =                       
    ( MS_BYTES_PER_CLUSTER_LIMIT +1 ) / bytes_per_sector;             
  uint8_t fattype = FAT_FAT32;                                        
                                                                      
  if (   number_of_clusters < FAT_FAT12_MAX_CLN                       
 800a2b4:	f0 6e 60 00 	cmpgeu r12,r3,r14                              
 800a2b8:	a0 8c 60 00 	and r12,r4,r12                                 
      && sectors_per_cluster <= ms_sectors_per_cluster_limit_FAT12 ) {
    fattype = FAT_FAT12;                                              
 800a2bc:	34 04 00 01 	mvi r4,1                                       
    ( MS_BYTES_PER_CLUSTER_LIMIT_FAT12 +1 ) / bytes_per_sector;       
  uint32_t ms_sectors_per_cluster_limit_FAT16 =                       
    ( MS_BYTES_PER_CLUSTER_LIMIT +1 ) / bytes_per_sector;             
  uint8_t fattype = FAT_FAT32;                                        
                                                                      
  if (   number_of_clusters < FAT_FAT12_MAX_CLN                       
 800a2c0:	5d 80 00 0d 	bne r12,r0,800a2f4 <msdos_format+0x57c>        
                    const uint32_t sectors_per_cluster,               
                    const uint32_t number_of_clusters )               
{                                                                     
  uint32_t ms_sectors_per_cluster_limit_FAT12 =                       
    ( MS_BYTES_PER_CLUSTER_LIMIT_FAT12 +1 ) / bytes_per_sector;       
  uint32_t ms_sectors_per_cluster_limit_FAT16 =                       
 800a2c4:	b9 e0 10 00 	mv r2,r15                                      
 800a2c8:	38 01 80 01 	mvu r1,0x8001                                  
 800a2cc:	f8 00 88 21 	calli 802c350 <__udivsi3>                      
  if (   number_of_clusters < FAT_FAT12_MAX_CLN                       
      && sectors_per_cluster <= ms_sectors_per_cluster_limit_FAT12 ) {
    fattype = FAT_FAT12;                                              
  }                                                                   
  else if (   number_of_clusters < FAT_FAT16_MAX_CLN                  
           && sectors_per_cluster <= ms_sectors_per_cluster_limit_FAT16 ) {
 800a2d0:	f0 2d 10 00 	cmpgeu r2,r1,r13                               
                                                                      
  if (   number_of_clusters < FAT_FAT12_MAX_CLN                       
      && sectors_per_cluster <= ms_sectors_per_cluster_limit_FAT12 ) {
    fattype = FAT_FAT12;                                              
  }                                                                   
  else if (   number_of_clusters < FAT_FAT16_MAX_CLN                  
 800a2d4:	38 01 ff f4 	mvu r1,0xfff4                                  
 800a2d8:	f0 2e 20 00 	cmpgeu r4,r1,r14                               
{                                                                     
  uint32_t ms_sectors_per_cluster_limit_FAT12 =                       
    ( MS_BYTES_PER_CLUSTER_LIMIT_FAT12 +1 ) / bytes_per_sector;       
  uint32_t ms_sectors_per_cluster_limit_FAT16 =                       
    ( MS_BYTES_PER_CLUSTER_LIMIT +1 ) / bytes_per_sector;             
  uint8_t fattype = FAT_FAT32;                                        
 800a2dc:	34 05 ff fe 	mvi r5,-2                                      
                                                                      
  if (   number_of_clusters < FAT_FAT12_MAX_CLN                       
      && sectors_per_cluster <= ms_sectors_per_cluster_limit_FAT12 ) {
    fattype = FAT_FAT12;                                              
  }                                                                   
  else if (   number_of_clusters < FAT_FAT16_MAX_CLN                  
 800a2e0:	a0 44 20 00 	and r4,r2,r4                                   
{                                                                     
  uint32_t ms_sectors_per_cluster_limit_FAT12 =                       
    ( MS_BYTES_PER_CLUSTER_LIMIT_FAT12 +1 ) / bytes_per_sector;       
  uint32_t ms_sectors_per_cluster_limit_FAT16 =                       
    ( MS_BYTES_PER_CLUSTER_LIMIT +1 ) / bytes_per_sector;             
  uint8_t fattype = FAT_FAT32;                                        
 800a2e4:	fc 8c 20 00 	cmpne r4,r4,r12                                
 800a2e8:	c8 04 20 00 	sub r4,r0,r4                                   
 800a2ec:	a0 85 20 00 	and r4,r4,r5                                   
 800a2f0:	34 84 00 04 	addi r4,r4,4                                   
        fmt_params->sectors_per_cluster = sectors_per_cluster_adj;    
        fat_type = fmt_params->fattype;                               
                                                                      
        /* Correct the FAT type according to the new data cluster count */
        if ( ret_val == 0 ) {                                         
          fmt_params->fattype = msdos_get_fat_type(                   
 800a2f4:	33 84 02 8e 	sb (sp+654),r4                                 
            fmt_params->bytes_per_sector,                             
            fmt_params->sectors_per_cluster,                          
            data_clusters_cnt );                                      
          /* Correct sectors per cluster to the fat type specific default value */
          if (fat_type != fmt_params->fattype) {                      
 800a2f8:	47 64 00 19 	be fp,r4,800a35c <msdos_format+0x5e4>          
msdos_set_default_sectors_per_cluster_for_fattype(                    
  msdos_format_param_t *fmt_params,                                   
  const uint64_t        total_size )                                  
{                                                                     
  if (   fmt_params->fattype == FAT_FAT12                             
      || fmt_params->fattype == FAT_FAT16 ) {                         
 800a2fc:	34 84 ff ff 	addi r4,r4,-1                                  
static void                                                           
msdos_set_default_sectors_per_cluster_for_fattype(                    
  msdos_format_param_t *fmt_params,                                   
  const uint64_t        total_size )                                  
{                                                                     
  if (   fmt_params->fattype == FAT_FAT12                             
 800a300:	20 84 00 ff 	andi r4,r4,0xff                                
 800a304:	34 02 00 01 	mvi r2,1                                       
 800a308:	34 0b 00 1f 	mvi r11,31                                     
 800a30c:	54 82 00 04 	bgu r4,r2,800a31c <msdos_format+0x5a4>         
      || fmt_params->fattype == FAT_FAT16 ) {                         
    /* start trying with small clusters */                            
    fmt_params->sectors_per_cluster = 2;                              
 800a310:	34 04 00 02 	mvi r4,2                                       
 800a314:	5b 84 02 68 	sw (sp+616),r4                                 
 800a318:	e0 00 00 0d 	bi 800a34c <msdos_format+0x5d4>                
    #define ONE_GB ( 1024L * 1024L * 1024L )                          
    uint32_t gigs = ( total_size + ONE_GB ) / ONE_GB;                 
    int b;                                                            
    /* scale with the size of disk... */                              
    for ( b = 31; b > 0; b-- ) {                                      
      if ( (gigs & ( 1 << b) ) != 0 )                                 
 800a31c:	34 01 00 01 	mvi r1,1                                       
 800a320:	b9 60 10 00 	mv r2,r11                                      
 800a324:	fb ff db b1 	calli 80011e8 <__ashlsi3>                      
 800a328:	2b 83 00 54 	lw r3,(sp+84)                                  
 800a32c:	a0 23 08 00 	and r1,r1,r3                                   
 800a330:	5c 20 00 03 	bne r1,r0,800a33c <msdos_format+0x5c4>         
  else {                                                              
    #define ONE_GB ( 1024L * 1024L * 1024L )                          
    uint32_t gigs = ( total_size + ONE_GB ) / ONE_GB;                 
    int b;                                                            
    /* scale with the size of disk... */                              
    for ( b = 31; b > 0; b-- ) {                                      
 800a334:	35 6b ff ff 	addi r11,r11,-1                                
 800a338:	5d 61 ff f9 	bne r11,r1,800a31c <msdos_format+0x5a4>        <== ALWAYS TAKEN
      if ( (gigs & ( 1 << b) ) != 0 )                                 
        break;                                                        
    }                                                                 
    fmt_params->sectors_per_cluster = 1 << b;                         
 800a33c:	34 01 00 01 	mvi r1,1                                       
 800a340:	b9 60 10 00 	mv r2,r11                                      
 800a344:	fb ff db a9 	calli 80011e8 <__ashlsi3>                      
 800a348:	5b 81 02 68 	sw (sp+616),r1                                 
            data_clusters_cnt );                                      
          /* Correct sectors per cluster to the fat type specific default value */
          if (fat_type != fmt_params->fattype) {                      
            msdos_set_default_sectors_per_cluster_for_fattype( fmt_params,
                                                               total_size );
            ret_val = msdos_set_sectors_per_cluster_from_request( rqdata,
 800a34c:	bb 00 08 00 	mv r1,r24                                      
 800a350:	37 82 02 5c 	addi r2,sp,604                                 
 800a354:	fb ff fd c4 	calli 8009a64 <msdos_set_sectors_per_cluster_from_request>
 800a358:	b8 20 c8 00 	mv r25,r1                                      
                                                                  fmt_params );
          }                                                           
        }                                                             
        if (fat_type != fmt_params->fattype && 1 < iteration_cnt) {   
 800a35c:	43 84 02 8e 	lbu r4,(sp+654)                                
 800a360:	76 a5 00 01 	cmpgui r5,r21,0x1                              
 800a364:	fc 9b 20 00 	cmpne r4,r4,fp                                 
 800a368:	a0 a4 20 00 	and r4,r5,r4                                   
 800a36c:	44 80 00 04 	be r4,r0,800a37c <msdos_format+0x604>          
          --fmt_params->totl_sector_cnt;                              
 800a370:	2b 84 02 60 	lw r4,(sp+608)                                 
 800a374:	34 84 ff ff 	addi r4,r4,-1                                  
 800a378:	5b 84 02 60 	sw (sp+608),r4                                 
        }                                                             
                                                                      
      }                                                               
                                                                      
      ++iteration_cnt;                                                
 800a37c:	36 a2 00 01 	addi r2,r21,1                                  
 800a380:	20 55 00 ff 	andi r21,r2,0xff                               
    if (ret_val == 0) {                                               
      data_clusters_cnt =                                             
        fmt_params->totl_sector_cnt / fmt_params->sectors_per_cluster;
    }                                                                 
                                                                      
    while(   ret_val == 0                                             
 800a384:	5f 20 00 05 	bne r25,r0,800a398 <msdos_format+0x620>        <== NEVER TAKEN
          && fmt_params->fattype != fat_type                          
 800a388:	43 82 02 8e 	lbu r2,(sp+654)                                
 800a38c:	44 5b 00 03 	be r2,fp,800a398 <msdos_format+0x620>          
          && fmt_params->totl_sector_cnt > 0 ) {                      
 800a390:	2b 84 02 60 	lw r4,(sp+608)                                 
 800a394:	5c 80 ff 21 	bne r4,r0,800a018 <msdos_format+0x2a0>         <== ALWAYS TAKEN
 800a398:	bb 20 b8 00 	mv r23,r25                                     
 800a39c:	2b 99 00 4c 	lw r25,(sp+76)                                 
      }                                                               
                                                                      
      ++iteration_cnt;                                                
    }                                                                 
  }                                                                   
  if ( fmt_params->totl_sector_cnt == 0 )                             
 800a3a0:	2b 83 02 60 	lw r3,(sp+608)                                 
 800a3a4:	44 60 00 27 	be r3,r0,800a440 <msdos_format+0x6c8>          <== NEVER TAKEN
  {                                                                   
    errno = EINVAL;                                                   
    ret_val = -1;                                                     
  }                                                                   
                                                                      
  if (0 == ret_val)                                                   
 800a3a8:	5e e0 00 2f 	bne r23,r0,800a464 <msdos_format+0x6ec>        
  {                                                                   
    if (FAT_FAT32 != fmt_params->fattype)                             
 800a3ac:	43 84 02 8e 	lbu r4,(sp+654)                                
 800a3b0:	34 03 00 04 	mvi r3,4                                       
 800a3b4:	44 83 00 0e 	be r4,r3,800a3ec <msdos_format+0x674>          
    {                                                                 
      fmt_params->files_per_root_dir = loc_align_object (fmt_params->root_dir_sectors,
 800a3b8:	43 83 02 ac 	lbu r3,(sp+684)                                
 800a3bc:	2b 82 02 68 	lw r2,(sp+616)                                 
 800a3c0:	2b 81 02 78 	lw r1,(sp+632)                                 
 800a3c4:	fb ff fd a2 	calli 8009a4c <loc_align_object>               
 800a3c8:	b8 20 58 00 	mv r11,r1                                      
                                                         fmt_params->sectors_per_cluster,
                                                         fmt_params->skip_alignment)
                                       * (fmt_params->bytes_per_sector / FAT_DIRENTRY_SIZE);
 800a3cc:	2b 81 02 5c 	lw r1,(sp+604)                                 
 800a3d0:	34 02 00 05 	mvi r2,5                                       
 800a3d4:	f8 00 87 8f 	calli 802c210 <__lshrsi3>                      
 800a3d8:	b8 20 18 00 	mv r3,r1                                       
 800a3dc:	b8 60 10 00 	mv r2,r3                                       
 800a3e0:	b9 60 08 00 	mv r1,r11                                      
 800a3e4:	fb ff db cf 	calli 8001320 <__mulsi3>                       
                                                                      
  if (0 == ret_val)                                                   
  {                                                                   
    if (FAT_FAT32 != fmt_params->fattype)                             
    {                                                                 
      fmt_params->files_per_root_dir = loc_align_object (fmt_params->root_dir_sectors,
 800a3e8:	5b 81 02 74 	sw (sp+628),r1                                 
                                                         fmt_params->sectors_per_cluster,
                                                         fmt_params->skip_alignment)
                                       * (fmt_params->bytes_per_sector / FAT_DIRENTRY_SIZE);
    }                                                                 
                                                                      
    fmt_params->rsvd_sector_cnt = loc_align_object (fmt_params->rsvd_sector_cnt,
 800a3ec:	2b 81 02 64 	lw r1,(sp+612)                                 
 800a3f0:	2b 82 02 68 	lw r2,(sp+616)                                 
 800a3f4:	43 83 02 ac 	lbu r3,(sp+684)                                
 800a3f8:	fb ff fd 95 	calli 8009a4c <loc_align_object>               
 800a3fc:	5b 81 02 64 	sw (sp+612),r1                                 
                                                                      
  /*                                                                  
   * determine media code                                             
   */                                                                 
  if (ret_val == 0) {                                                 
    if ((rqdata != NULL) &&                                           
 800a400:	47 00 00 17 	be r24,r0,800a45c <msdos_format+0x6e4>         
	(rqdata->media != 0)) {                                              
 800a404:	43 0b 00 14 	lbu r11,(r24+20)                               
                                                                      
  /*                                                                  
   * determine media code                                             
   */                                                                 
  if (ret_val == 0) {                                                 
    if ((rqdata != NULL) &&                                           
 800a408:	45 60 00 15 	be r11,r0,800a45c <msdos_format+0x6e4>         
	(rqdata->media != 0)) {                                              
      const char valid_media_codes[] =                                
 800a40c:	78 03 08 02 	mvhi r3,0x802                                  
 800a410:	38 63 d3 28 	ori r3,r3,0xd328                               
 800a414:	28 65 00 00 	lw r5,(r3+0)                                   
 800a418:	28 64 00 04 	lw r4,(r3+4)                                   
 800a41c:	40 63 00 08 	lbu r3,(r3+8)                                  
	{0xF0,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF};                      
      if (NULL==memchr(valid_media_codes,                             
 800a420:	37 81 02 f8 	addi r1,sp,760                                 
 800a424:	b9 60 10 00 	mv r2,r11                                      
   * determine media code                                             
   */                                                                 
  if (ret_val == 0) {                                                 
    if ((rqdata != NULL) &&                                           
	(rqdata->media != 0)) {                                              
      const char valid_media_codes[] =                                
 800a428:	33 83 03 00 	sb (sp+768),r3                                 
	{0xF0,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF};                      
      if (NULL==memchr(valid_media_codes,                             
 800a42c:	34 03 00 09 	mvi r3,9                                       
   * determine media code                                             
   */                                                                 
  if (ret_val == 0) {                                                 
    if ((rqdata != NULL) &&                                           
	(rqdata->media != 0)) {                                              
      const char valid_media_codes[] =                                
 800a430:	5b 85 02 f8 	sw (sp+760),r5                                 
 800a434:	5b 84 02 fc 	sw (sp+764),r4                                 
	{0xF0,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF};                      
      if (NULL==memchr(valid_media_codes,                             
 800a438:	f8 00 40 4d 	calli 801a56c <memchr>                         
 800a43c:	5c 20 00 06 	bne r1,r0,800a454 <msdos_format+0x6dc>         <== NEVER TAKEN
		       rqdata->media,                                               
		       sizeof(valid_media_codes))) {                                
	ret_val = -1;                                                        
	errno = EINVAL;                                                      
 800a440:	f8 00 3d 73 	calli 8019a0c <__errno>                        
 800a444:	34 03 00 16 	mvi r3,22                                      
 800a448:	58 23 00 00 	sw (r1+0),r3                                   
      const char valid_media_codes[] =                                
	{0xF0,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF};                      
      if (NULL==memchr(valid_media_codes,                             
		       rqdata->media,                                               
		       sizeof(valid_media_codes))) {                                
	ret_val = -1;                                                        
 800a44c:	34 17 ff ff 	mvi r23,-1                                     
 800a450:	e0 00 00 05 	bi 800a464 <msdos_format+0x6ec>                
	errno = EINVAL;                                                      
      }                                                               
      else {                                                          
	fmt_params->media_code = rqdata->media;                              
 800a454:	33 8b 02 8d 	sb (sp+653),r11                                <== NOT EXECUTED
 800a458:	e0 00 00 03 	bi 800a464 <msdos_format+0x6ec>                <== NOT EXECUTED
      }                                                               
    }                                                                 
    else {                                                            
      fmt_params->media_code = FAT_BR_MEDIA_FIXED;                    
 800a45c:	34 03 ff f8 	mvi r3,-8                                      
 800a460:	33 83 02 8d 	sb (sp+653),r3                                 
  }                                                                   
  /*                                                                  
   * determine location and size of root directory                    
   * for formatting                                                   
   */                                                                 
  if (fmt_params->root_dir_sectors > 0) {                             
 800a464:	2b 8c 02 78 	lw r12,(sp+632)                                
 800a468:	2b 8b 02 64 	lw r11,(sp+612)                                
 800a46c:	43 83 02 8c 	lbu r3,(sp+652)                                
 800a470:	45 80 00 08 	be r12,r0,800a490 <msdos_format+0x718>         
    fmt_params->root_dir_start_sec =                                  
      fmt_params->rsvd_sector_cnt                                     
      + (fmt_params-> fat_num*fmt_params->sectors_per_fat);           
 800a474:	2b 82 02 6c 	lw r2,(sp+620)                                 
 800a478:	b8 60 08 00 	mv r1,r3                                       
 800a47c:	fb ff db a9 	calli 8001320 <__mulsi3>                       
 800a480:	b4 2b 58 00 	add r11,r1,r11                                 
  /*                                                                  
   * determine location and size of root directory                    
   * for formatting                                                   
   */                                                                 
  if (fmt_params->root_dir_sectors > 0) {                             
    fmt_params->root_dir_start_sec =                                  
 800a484:	5b 8b 02 7c 	sw (sp+636),r11                                
      fmt_params->rsvd_sector_cnt                                     
      + (fmt_params-> fat_num*fmt_params->sectors_per_fat);           
    fmt_params->root_dir_fmt_sec_cnt = fmt_params->root_dir_sectors;  
 800a488:	5b 8c 02 80 	sw (sp+640),r12                                
 800a48c:	e0 00 00 08 	bi 800a4ac <msdos_format+0x734>                
    /*                                                                
     * for FAT32: root directory is in cluster 2                      
     */                                                               
    fmt_params->root_dir_start_sec =                                  
      fmt_params->rsvd_sector_cnt                                     
      + (fmt_params-> fat_num*fmt_params->sectors_per_fat);           
 800a490:	2b 82 02 6c 	lw r2,(sp+620)                                 
 800a494:	b8 60 08 00 	mv r1,r3                                       
 800a498:	fb ff db a2 	calli 8001320 <__mulsi3>                       
    fmt_params->root_dir_fmt_sec_cnt = fmt_params->sectors_per_cluster;
 800a49c:	2b 83 02 68 	lw r3,(sp+616)                                 
    /*                                                                
     * for FAT32: root directory is in cluster 2                      
     */                                                               
    fmt_params->root_dir_start_sec =                                  
      fmt_params->rsvd_sector_cnt                                     
      + (fmt_params-> fat_num*fmt_params->sectors_per_fat);           
 800a4a0:	b4 2b 58 00 	add r11,r1,r11                                 
  }                                                                   
  else {                                                              
    /*                                                                
     * for FAT32: root directory is in cluster 2                      
     */                                                               
    fmt_params->root_dir_start_sec =                                  
 800a4a4:	5b 8b 02 7c 	sw (sp+636),r11                                
      fmt_params->rsvd_sector_cnt                                     
      + (fmt_params-> fat_num*fmt_params->sectors_per_fat);           
    fmt_params->root_dir_fmt_sec_cnt = fmt_params->sectors_per_cluster;
 800a4a8:	5b 83 02 80 	sw (sp+640),r3                                 
  }                                                                   
  /*                                                                  
   * determine usable OEMName                                         
   */                                                                 
  if (ret_val == 0) {                                                 
 800a4ac:	5e e0 00 3e 	bne r23,r0,800a5a4 <msdos_format+0x82c>        
      const char *from;                                               
      char        *to = fmt_params->OEMName;                          
      int          cnt;                                               
      from = "RTEMS"; /* default: make "from" point to OS Name */     
 800a4b0:	78 03 08 02 	mvhi r3,0x802                                  
 800a4b4:	38 63 d1 f8 	ori r3,r3,0xd1f8                               
    if ((rqdata != NULL) &&                                           
 800a4b8:	47 17 00 05 	be r24,r23,800a4cc <msdos_format+0x754>        
	(rqdata->OEMName != NULL)) {                                         
 800a4bc:	2b 03 00 00 	lw r3,(r24+0)                                  
  if (ret_val == 0) {                                                 
      const char *from;                                               
      char        *to = fmt_params->OEMName;                          
      int          cnt;                                               
      from = "RTEMS"; /* default: make "from" point to OS Name */     
    if ((rqdata != NULL) &&                                           
 800a4c0:	5c 60 00 03 	bne r3,r0,800a4cc <msdos_format+0x754>         
   */                                                                 
  if (ret_val == 0) {                                                 
      const char *from;                                               
      char        *to = fmt_params->OEMName;                          
      int          cnt;                                               
      from = "RTEMS"; /* default: make "from" point to OS Name */     
 800a4c4:	78 03 08 02 	mvhi r3,0x802                                  
 800a4c8:	38 63 d1 f8 	ori r3,r3,0xd1f8                               
      from = rqdata->OEMName;                                         
    }                                                                 
    for (cnt = 0;                                                     
	 cnt < (sizeof(fmt_params->OEMName)-1);                              
	 cnt++) {                                                            
      if (isprint((unsigned char)*from)) {                            
 800a4cc:	78 04 08 02 	mvhi r4,0x802                                  
 800a4d0:	38 84 f2 2c 	ori r4,r4,0xf22c                               
 800a4d4:	28 88 00 00 	lw r8,(r4+0)                                   
}                                                                     
                                                                      
/*=========================================================================*\
| Function:                                                                 |
\*-------------------------------------------------------------------------*/
int msdos_format                                                      
 800a4d8:	37 87 02 98 	addi r7,sp,664                                 
      from = rqdata->OEMName;                                         
    }                                                                 
    for (cnt = 0;                                                     
	 cnt < (sizeof(fmt_params->OEMName)-1);                              
	 cnt++) {                                                            
      if (isprint((unsigned char)*from)) {                            
 800a4dc:	37 84 02 90 	addi r4,sp,656                                 
	/*                                                                   
	 * non-printable character in given name, so keep stuck              
	 * at that character and replace all following characters            
	 * with a ' '                                                        
	 */                                                                  
	*to++=' ';                                                           
 800a4e0:	34 06 00 20 	mvi r6,32                                      
 800a4e4:	e0 00 00 0c 	bi 800a514 <msdos_format+0x79c>                
      from = rqdata->OEMName;                                         
    }                                                                 
    for (cnt = 0;                                                     
	 cnt < (sizeof(fmt_params->OEMName)-1);                              
	 cnt++) {                                                            
      if (isprint((unsigned char)*from)) {                            
 800a4e8:	40 61 00 00 	lbu r1,(r3+0)                                  
 800a4ec:	b5 01 10 00 	add r2,r8,r1                                   
 800a4f0:	40 42 00 01 	lbu r2,(r2+1)                                  
 800a4f4:	20 42 00 97 	andi r2,r2,0x97                                
 800a4f8:	44 40 00 04 	be r2,r0,800a508 <msdos_format+0x790>          
	*to++ = *from++;                                                     
 800a4fc:	30 81 ff ff 	sb (r4+-1),r1                                  
 800a500:	34 63 00 01 	addi r3,r3,1                                   
 800a504:	e0 00 00 02 	bi 800a50c <msdos_format+0x794>                
	/*                                                                   
	 * non-printable character in given name, so keep stuck              
	 * at that character and replace all following characters            
	 * with a ' '                                                        
	 */                                                                  
	*to++=' ';                                                           
 800a508:	30 86 ff ff 	sb (r4+-1),r6                                  
      }                                                               
      *to = '\0';                                                     
 800a50c:	30 80 00 00 	sb (r4+0),r0                                   
 800a510:	34 84 00 01 	addi r4,r4,1                                   
      from = "RTEMS"; /* default: make "from" point to OS Name */     
    if ((rqdata != NULL) &&                                           
	(rqdata->OEMName != NULL)) {                                         
      from = rqdata->OEMName;                                         
    }                                                                 
    for (cnt = 0;                                                     
 800a514:	5c 87 ff f5 	bne r4,r7,800a4e8 <msdos_format+0x770>         
 800a518:	e0 00 01 fd 	bi 800ad0c <msdos_format+0xf94>                
      const char *from;                                               
      char        *to = fmt_params->VolLabel;                         
      int          cnt;                                               
      from = ""; /* default: make "from" point to empty string */     
    if ((rqdata != NULL) &&                                           
	(rqdata->VolLabel != NULL)) {                                        
 800a51c:	2b 03 00 04 	lw r3,(r24+4)                                  
  if (ret_val == 0) {                                                 
      const char *from;                                               
      char        *to = fmt_params->VolLabel;                         
      int          cnt;                                               
      from = ""; /* default: make "from" point to empty string */     
    if ((rqdata != NULL) &&                                           
 800a520:	44 60 00 04 	be r3,r0,800a530 <msdos_format+0x7b8>          
	(rqdata->VolLabel != NULL)) {                                        
      from = rqdata->VolLabel;                                        
      fmt_params->VolLabel_present = true;                            
 800a524:	34 04 00 01 	mvi r4,1                                       
 800a528:	33 84 02 a4 	sb (sp+676),r4                                 
 800a52c:	e0 00 00 03 	bi 800a538 <msdos_format+0x7c0>                
   */                                                                 
  if (ret_val == 0) {                                                 
      const char *from;                                               
      char        *to = fmt_params->VolLabel;                         
      int          cnt;                                               
      from = ""; /* default: make "from" point to empty string */     
 800a530:	78 03 08 02 	mvhi r3,0x802                                  
 800a534:	38 63 d2 9c 	ori r3,r3,0xd29c                               
      fmt_params->VolLabel_present = true;                            
    }                                                                 
    for (cnt = 0;                                                     
	 cnt < (sizeof(fmt_params->VolLabel)-1);                             
	 cnt++) {                                                            
      if (isprint((unsigned char)*from)) {                            
 800a538:	78 04 08 02 	mvhi r4,0x802                                  
 800a53c:	38 84 f2 2c 	ori r4,r4,0xf22c                               
}                                                                     
                                                                      
/*=========================================================================*\
| Function:                                                                 |
\*-------------------------------------------------------------------------*/
int msdos_format                                                      
 800a540:	37 87 02 5c 	addi r7,sp,604                                 
      fmt_params->VolLabel_present = true;                            
    }                                                                 
    for (cnt = 0;                                                     
	 cnt < (sizeof(fmt_params->VolLabel)-1);                             
	 cnt++) {                                                            
      if (isprint((unsigned char)*from)) {                            
 800a544:	28 88 00 00 	lw r8,(r4+0)                                   
}                                                                     
                                                                      
/*=========================================================================*\
| Function:                                                                 |
\*-------------------------------------------------------------------------*/
int msdos_format                                                      
 800a548:	34 e7 00 48 	addi r7,r7,72                                  
      fmt_params->VolLabel_present = true;                            
    }                                                                 
    for (cnt = 0;                                                     
	 cnt < (sizeof(fmt_params->VolLabel)-1);                             
	 cnt++) {                                                            
      if (isprint((unsigned char)*from)) {                            
 800a54c:	37 84 02 99 	addi r4,sp,665                                 
	/*                                                                   
	 * non-printable character in given name, so keep stuck              
	 * at that character and replace all following characters            
	 * with a ' '                                                        
	 */                                                                  
	*to++=' ';                                                           
 800a550:	34 06 00 20 	mvi r6,32                                      
 800a554:	e0 00 00 0c 	bi 800a584 <msdos_format+0x80c>                
      fmt_params->VolLabel_present = true;                            
    }                                                                 
    for (cnt = 0;                                                     
	 cnt < (sizeof(fmt_params->VolLabel)-1);                             
	 cnt++) {                                                            
      if (isprint((unsigned char)*from)) {                            
 800a558:	40 61 00 00 	lbu r1,(r3+0)                                  
 800a55c:	b5 01 10 00 	add r2,r8,r1                                   
 800a560:	40 42 00 01 	lbu r2,(r2+1)                                  
 800a564:	20 42 00 97 	andi r2,r2,0x97                                
 800a568:	44 40 00 04 	be r2,r0,800a578 <msdos_format+0x800>          
	*to++ = *from++;                                                     
 800a56c:	30 81 ff ff 	sb (r4+-1),r1                                  
 800a570:	34 63 00 01 	addi r3,r3,1                                   
 800a574:	e0 00 00 02 	bi 800a57c <msdos_format+0x804>                
	/*                                                                   
	 * non-printable character in given name, so keep stuck              
	 * at that character and replace all following characters            
	 * with a ' '                                                        
	 */                                                                  
	*to++=' ';                                                           
 800a578:	30 86 ff ff 	sb (r4+-1),r6                                  
      }                                                               
      *to = '\0';                                                     
 800a57c:	30 80 00 00 	sb (r4+0),r0                                   
 800a580:	34 84 00 01 	addi r4,r4,1                                   
    if ((rqdata != NULL) &&                                           
	(rqdata->VolLabel != NULL)) {                                        
      from = rqdata->VolLabel;                                        
      fmt_params->VolLabel_present = true;                            
    }                                                                 
    for (cnt = 0;                                                     
 800a584:	5c 87 ff f5 	bne r4,r7,800a558 <msdos_format+0x7e0>         
 800a588:	e0 00 01 e3 	bi 800ad14 <msdos_format+0xf9c>                
  int rc;                                                             
  struct timeval time_value;                                          
                                                                      
  rc = rtems_clock_get_tod_timeval(&time_value);                      
  if (rc == RTEMS_SUCCESSFUL) {                                       
    *volid_ptr = time_value.tv_sec + time_value.tv_sec;               
 800a58c:	2b 83 02 f8 	lw r3,(sp+760)                                 <== NOT EXECUTED
 800a590:	b4 63 18 00 	add r3,r3,r3                                   <== NOT EXECUTED
 800a594:	5b 83 02 a8 	sw (sp+680),r3                                 <== NOT EXECUTED
 800a598:	e0 00 00 03 	bi 800a5a4 <msdos_format+0x82c>                <== NOT EXECUTED
  }                                                                   
  else {                                                              
    *volid_ptr = rand();                                              
 800a59c:	f8 00 43 27 	calli 801b238 <rand>                           
 800a5a0:	5b 81 02 a8 	sw (sp+680),r1                                 
  }                                                                   
  /*                                                                  
   * if requested, write whole disk/partition with 0xe5               
   */                                                                 
  if ((ret_val == 0) &&                                               
      (rqdata != NULL) &&                                             
 800a5a4:	7f 0d 00 00 	cmpnei r13,r24,0                               
    ret_val = msdos_format_determine_fmt_params(fd,rqdata,&fmt_params);
  }                                                                   
  /*                                                                  
   * if requested, write whole disk/partition with 0xe5               
   */                                                                 
  if ((ret_val == 0) &&                                               
 800a5a8:	66 e3 00 00 	cmpei r3,r23,0                                 
 800a5ac:	a1 a3 18 00 	and r3,r13,r3                                  
 800a5b0:	44 60 00 0a 	be r3,r0,800a5d8 <msdos_format+0x860>          
      (rqdata != NULL) &&                                             
 800a5b4:	43 03 00 15 	lbu r3,(r24+21)                                
 800a5b8:	5c 60 00 09 	bne r3,r0,800a5dc <msdos_format+0x864>         
      !(rqdata->quick_format)) {                                      
    ret_val = msdos_format_fill_sectors                               
 800a5bc:	2b 84 02 60 	lw r4,(sp+608)                                 
 800a5c0:	2b 85 02 5c 	lw r5,(sp+604)                                 
 800a5c4:	bb 00 08 00 	mv r1,r24                                      
 800a5c8:	bb 20 10 00 	mv r2,r25                                      
 800a5cc:	34 06 00 e5 	mvi r6,229                                     
 800a5d0:	fb ff fd 83 	calli 8009bdc <msdos_format_fill_sectors>      
 800a5d4:	b8 20 b8 00 	mv r23,r1                                      
  }                                                                   
                                                                      
  /*                                                                  
   * create master boot record                                        
   */                                                                 
  if (ret_val == 0) {                                                 
 800a5d8:	5e e0 01 dd 	bne r23,r0,800ad4c <msdos_format+0xfd4>        
    /*                                                                
     * Read the current MBR to obtain the partition table.            
     */                                                               
    msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,         
 800a5dc:	78 03 08 02 	mvhi r3,0x802                                  
 800a5e0:	bb 00 08 00 	mv r1,r24                                      
 800a5e4:	34 02 00 02 	mvi r2,2                                       
 800a5e8:	38 63 d2 a0 	ori r3,r3,0xd2a0                               
 800a5ec:	fb ff fd 44 	calli 8009afc <msdos_format_printf>            
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
  int ret_val = 0;                                                    
                                                                      
  if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {     
 800a5f0:	bb 20 08 00 	mv r1,r25                                      
 800a5f4:	34 02 00 00 	mvi r2,0                                       
 800a5f8:	34 03 00 00 	mvi r3,0                                       
    /*                                                                
     * Read the current MBR to obtain the partition table.            
     */                                                               
    msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,         
                         "read MRB sector\n");                        
    ret_val = msdos_format_read_sec(fd,                               
 800a5fc:	2b 8b 02 5c 	lw r11,(sp+604)                                
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
  int ret_val = 0;                                                    
                                                                      
  if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {     
 800a600:	f8 00 1e 47 	calli 8011f1c <lseek>                          
 800a604:	48 01 00 06 	bg r0,r1,800a61c <msdos_format+0x8a4>          <== NEVER TAKEN
    ret_val = -1;                                                     
  }                                                                   
  if (ret_val == 0) {                                                 
    if (0 > read(fd,buffer,sector_size)) {                            
 800a608:	bb 20 08 00 	mv r1,r25                                      
 800a60c:	37 82 00 5c 	addi r2,sp,92                                  
 800a610:	b9 60 18 00 	mv r3,r11                                      
 800a614:	f8 00 1f 30 	calli 80122d4 <read>                           
 800a618:	4c 20 01 c3 	bge r1,r0,800ad24 <msdos_format+0xfac>         <== ALWAYS TAKEN
         fmt_params.bytes_per_sector,                                 
         tmp_sec);                                                    
    }                                                                 
  }                                                                   
                                                                      
  if (ret_val == 0 && rqdata != NULL && rqdata->sync_device) {        
 800a61c:	34 17 ff ff 	mvi r23,-1                                     <== NOT EXECUTED
 800a620:	e0 00 01 cb 	bi 800ad4c <msdos_format+0xfd4>                <== NOT EXECUTED
{                                                                     
  uint32_t  total_sectors_num16 = 0;                                  
  uint32_t  total_sectors_num32 = 0;                                  
                                                                      
  /* store total sector count in either 16 or 32 bit field in mbr */  
  if (fmt_params->totl_sector_cnt < 0x10000) {                        
 800a624:	b9 60 60 00 	mv r12,r11                                     
/*-------------------------------------------------------------------------*\
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
  uint32_t  total_sectors_num16 = 0;                                  
 800a628:	34 0b 00 00 	mvi r11,0                                      
   * finally we are there: let's fill in the values into the MBR      
   * but first clear the MRB leaving the partition table.             
   */                                                                 
#define RTEMS_IDE_PARTITION_TABLE_OFFSET                  0x1be       
#define RTEMS_IDE_PARTITION_TABLE_SIZE                    (4 * 16)    
  memset(mbr,0,RTEMS_IDE_PARTITION_TABLE_OFFSET);                     
 800a62c:	34 02 00 00 	mvi r2,0                                       
 800a630:	34 03 01 be 	mvi r3,446                                     
 800a634:	37 81 00 5c 	addi r1,sp,92                                  
 800a638:	f8 00 40 84 	calli 801a848 <memset>                         
   */                                                                 
  /*                                                                  
   * fill OEMName                                                     
   */                                                                 
  memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),                                
	 fmt_params->OEMName,                                                
 800a63c:	37 83 02 8f 	addi r3,sp,655                                 
   * with 0xEB,....                                                   
   */                                                                 
  /*                                                                  
   * fill OEMName                                                     
   */                                                                 
  memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),                                
 800a640:	40 6a 00 01 	lbu r10,(r3+1)                                 
 800a644:	40 69 00 02 	lbu r9,(r3+2)                                  
 800a648:	40 68 00 03 	lbu r8,(r3+3)                                  
 800a64c:	40 67 00 04 	lbu r7,(r3+4)                                  
 800a650:	40 66 00 05 	lbu r6,(r3+5)                                  
 800a654:	40 65 00 06 	lbu r5,(r3+6)                                  
 800a658:	40 63 00 07 	lbu r3,(r3+7)                                  
 800a65c:	37 84 00 5f 	addi r4,sp,95                                  
 800a660:	43 8e 02 8f 	lbu r14,(sp+655)                               
 800a664:	30 83 00 07 	sb (r4+7),r3                                   
	 fmt_params->OEMName,                                                
	 FAT_BR_OEMNAME_SIZE);                                               
  FAT_SET_BR_BYTES_PER_SECTOR(mbr    , fmt_params->bytes_per_sector); 
 800a668:	2b 83 02 5c 	lw r3,(sp+604)                                 
   * with 0xEB,....                                                   
   */                                                                 
  /*                                                                  
   * fill OEMName                                                     
   */                                                                 
  memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),                                
 800a66c:	30 8a 00 01 	sb (r4+1),r10                                  
 800a670:	30 89 00 02 	sb (r4+2),r9                                   
 800a674:	30 88 00 03 	sb (r4+3),r8                                   
 800a678:	30 87 00 04 	sb (r4+4),r7                                   
 800a67c:	30 86 00 05 	sb (r4+5),r6                                   
 800a680:	30 85 00 06 	sb (r4+6),r5                                   
	 fmt_params->OEMName,                                                
	 FAT_BR_OEMNAME_SIZE);                                               
  FAT_SET_BR_BYTES_PER_SECTOR(mbr    , fmt_params->bytes_per_sector); 
 800a684:	b8 60 08 00 	mv r1,r3                                       
 800a688:	34 02 00 08 	mvi r2,8                                       
   * with 0xEB,....                                                   
   */                                                                 
  /*                                                                  
   * fill OEMName                                                     
   */                                                                 
  memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),                                
 800a68c:	33 8e 00 5f 	sb (sp+95),r14                                 
	 fmt_params->OEMName,                                                
	 FAT_BR_OEMNAME_SIZE);                                               
  FAT_SET_BR_BYTES_PER_SECTOR(mbr    , fmt_params->bytes_per_sector); 
 800a690:	33 83 00 67 	sb (sp+103),r3                                 
   * but first clear the MRB leaving the partition table.             
   */                                                                 
#define RTEMS_IDE_PARTITION_TABLE_OFFSET                  0x1be       
#define RTEMS_IDE_PARTITION_TABLE_SIZE                    (4 * 16)    
  memset(mbr,0,RTEMS_IDE_PARTITION_TABLE_OFFSET);                     
  memset(mbr + RTEMS_IDE_PARTITION_TABLE_OFFSET + RTEMS_IDE_PARTITION_TABLE_SIZE,
 800a694:	0f 80 02 5a 	sh (sp+602),r0                                 
   * fill OEMName                                                     
   */                                                                 
  memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),                                
	 fmt_params->OEMName,                                                
	 FAT_BR_OEMNAME_SIZE);                                               
  FAT_SET_BR_BYTES_PER_SECTOR(mbr    , fmt_params->bytes_per_sector); 
 800a698:	f8 00 86 de 	calli 802c210 <__lshrsi3>                      
  FAT_SET_BR_SECTORS_PER_CLUSTER(mbr , fmt_params->sectors_per_cluster);
 800a69c:	2b 83 02 68 	lw r3,(sp+616)                                 
   * fill OEMName                                                     
   */                                                                 
  memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),                                
	 fmt_params->OEMName,                                                
	 FAT_BR_OEMNAME_SIZE);                                               
  FAT_SET_BR_BYTES_PER_SECTOR(mbr    , fmt_params->bytes_per_sector); 
 800a6a0:	33 81 00 68 	sb (sp+104),r1                                 
  FAT_SET_BR_SECTORS_PER_CLUSTER(mbr , fmt_params->sectors_per_cluster);
  FAT_SET_BR_RESERVED_SECTORS_NUM(mbr, fmt_params->rsvd_sector_cnt);  
 800a6a4:	34 02 00 08 	mvi r2,8                                       
   */                                                                 
  memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),                                
	 fmt_params->OEMName,                                                
	 FAT_BR_OEMNAME_SIZE);                                               
  FAT_SET_BR_BYTES_PER_SECTOR(mbr    , fmt_params->bytes_per_sector); 
  FAT_SET_BR_SECTORS_PER_CLUSTER(mbr , fmt_params->sectors_per_cluster);
 800a6a8:	33 83 00 69 	sb (sp+105),r3                                 
  FAT_SET_BR_RESERVED_SECTORS_NUM(mbr, fmt_params->rsvd_sector_cnt);  
 800a6ac:	2b 83 02 64 	lw r3,(sp+612)                                 
                                                                      
  /* number of FATs on medium */                                      
  FAT_SET_BR_FAT_NUM(mbr             , 2); /* standard/recommended value */
 800a6b0:	34 0f 00 02 	mvi r15,2                                      
  FAT_SET_BR_TOTAL_SECTORS_NUM16(mbr , total_sectors_num16);          
  FAT_SET_BR_MEDIA(mbr               , fmt_params->media_code);       
                                                                      
  FAT_SET_BR_SECTORS_PER_TRACK(mbr   , 255); /* only needed for INT13... */
  FAT_SET_BR_NUMBER_OF_HEADS(mbr     , 6);   /* only needed for INT13... */
  FAT_SET_BR_HIDDEN_SECTORS(mbr      , 1);   /* only needed for INT13... */
 800a6b4:	34 0e 00 01 	mvi r14,1                                      
  memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),                                
	 fmt_params->OEMName,                                                
	 FAT_BR_OEMNAME_SIZE);                                               
  FAT_SET_BR_BYTES_PER_SECTOR(mbr    , fmt_params->bytes_per_sector); 
  FAT_SET_BR_SECTORS_PER_CLUSTER(mbr , fmt_params->sectors_per_cluster);
  FAT_SET_BR_RESERVED_SECTORS_NUM(mbr, fmt_params->rsvd_sector_cnt);  
 800a6b8:	b8 60 08 00 	mv r1,r3                                       
 800a6bc:	33 83 00 6a 	sb (sp+106),r3                                 
 800a6c0:	f8 00 86 d4 	calli 802c210 <__lshrsi3>                      
                                                                      
  /* number of FATs on medium */                                      
  FAT_SET_BR_FAT_NUM(mbr             , 2); /* standard/recommended value */
  FAT_SET_BR_FILES_PER_ROOT_DIR(mbr  , fmt_params->files_per_root_dir);
 800a6c4:	2b 83 02 74 	lw r3,(sp+628)                                 
  memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),                                
	 fmt_params->OEMName,                                                
	 FAT_BR_OEMNAME_SIZE);                                               
  FAT_SET_BR_BYTES_PER_SECTOR(mbr    , fmt_params->bytes_per_sector); 
  FAT_SET_BR_SECTORS_PER_CLUSTER(mbr , fmt_params->sectors_per_cluster);
  FAT_SET_BR_RESERVED_SECTORS_NUM(mbr, fmt_params->rsvd_sector_cnt);  
 800a6c8:	33 81 00 6b 	sb (sp+107),r1                                 
                                                                      
  /* number of FATs on medium */                                      
  FAT_SET_BR_FAT_NUM(mbr             , 2); /* standard/recommended value */
  FAT_SET_BR_FILES_PER_ROOT_DIR(mbr  , fmt_params->files_per_root_dir);
 800a6cc:	34 02 00 08 	mvi r2,8                                       
 800a6d0:	b8 60 08 00 	mv r1,r3                                       
 800a6d4:	33 83 00 6d 	sb (sp+109),r3                                 
  FAT_SET_BR_BYTES_PER_SECTOR(mbr    , fmt_params->bytes_per_sector); 
  FAT_SET_BR_SECTORS_PER_CLUSTER(mbr , fmt_params->sectors_per_cluster);
  FAT_SET_BR_RESERVED_SECTORS_NUM(mbr, fmt_params->rsvd_sector_cnt);  
                                                                      
  /* number of FATs on medium */                                      
  FAT_SET_BR_FAT_NUM(mbr             , 2); /* standard/recommended value */
 800a6d8:	33 8f 00 6c 	sb (sp+108),r15                                
  FAT_SET_BR_FILES_PER_ROOT_DIR(mbr  , fmt_params->files_per_root_dir);
 800a6dc:	f8 00 86 cd 	calli 802c210 <__lshrsi3>                      
 800a6e0:	33 81 00 6e 	sb (sp+110),r1                                 
  FAT_SET_BR_TOTAL_SECTORS_NUM16(mbr , total_sectors_num16);          
 800a6e4:	34 02 00 08 	mvi r2,8                                       
 800a6e8:	b9 60 08 00 	mv r1,r11                                      
 800a6ec:	33 8b 00 6f 	sb (sp+111),r11                                
 800a6f0:	f8 00 86 c8 	calli 802c210 <__lshrsi3>                      
  FAT_SET_BR_MEDIA(mbr               , fmt_params->media_code);       
 800a6f4:	43 83 02 8d 	lbu r3,(sp+653)                                
  FAT_SET_BR_RESERVED_SECTORS_NUM(mbr, fmt_params->rsvd_sector_cnt);  
                                                                      
  /* number of FATs on medium */                                      
  FAT_SET_BR_FAT_NUM(mbr             , 2); /* standard/recommended value */
  FAT_SET_BR_FILES_PER_ROOT_DIR(mbr  , fmt_params->files_per_root_dir);
  FAT_SET_BR_TOTAL_SECTORS_NUM16(mbr , total_sectors_num16);          
 800a6f8:	33 81 00 70 	sb (sp+112),r1                                 
                                                                      
  FAT_SET_BR_SECTORS_PER_TRACK(mbr   , 255); /* only needed for INT13... */
  FAT_SET_BR_NUMBER_OF_HEADS(mbr     , 6);   /* only needed for INT13... */
  FAT_SET_BR_HIDDEN_SECTORS(mbr      , 1);   /* only needed for INT13... */
                                                                      
  FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);          
 800a6fc:	34 02 00 08 	mvi r2,8                                       
                                                                      
  /* number of FATs on medium */                                      
  FAT_SET_BR_FAT_NUM(mbr             , 2); /* standard/recommended value */
  FAT_SET_BR_FILES_PER_ROOT_DIR(mbr  , fmt_params->files_per_root_dir);
  FAT_SET_BR_TOTAL_SECTORS_NUM16(mbr , total_sectors_num16);          
  FAT_SET_BR_MEDIA(mbr               , fmt_params->media_code);       
 800a700:	33 83 00 71 	sb (sp+113),r3                                 
                                                                      
  FAT_SET_BR_SECTORS_PER_TRACK(mbr   , 255); /* only needed for INT13... */
 800a704:	34 03 ff ff 	mvi r3,-1                                      
 800a708:	33 83 00 74 	sb (sp+116),r3                                 
  FAT_SET_BR_NUMBER_OF_HEADS(mbr     , 6);   /* only needed for INT13... */
  FAT_SET_BR_HIDDEN_SECTORS(mbr      , 1);   /* only needed for INT13... */
                                                                      
  FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);          
 800a70c:	21 81 ff ff 	andi r1,r12,0xffff                             
  FAT_SET_BR_FILES_PER_ROOT_DIR(mbr  , fmt_params->files_per_root_dir);
  FAT_SET_BR_TOTAL_SECTORS_NUM16(mbr , total_sectors_num16);          
  FAT_SET_BR_MEDIA(mbr               , fmt_params->media_code);       
                                                                      
  FAT_SET_BR_SECTORS_PER_TRACK(mbr   , 255); /* only needed for INT13... */
  FAT_SET_BR_NUMBER_OF_HEADS(mbr     , 6);   /* only needed for INT13... */
 800a710:	34 03 00 06 	mvi r3,6                                       
 800a714:	33 83 00 76 	sb (sp+118),r3                                 
  FAT_SET_BR_HIDDEN_SECTORS(mbr      , 1);   /* only needed for INT13... */
                                                                      
  FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);          
 800a718:	33 8c 00 7c 	sb (sp+124),r12                                
  FAT_SET_BR_TOTAL_SECTORS_NUM16(mbr , total_sectors_num16);          
  FAT_SET_BR_MEDIA(mbr               , fmt_params->media_code);       
                                                                      
  FAT_SET_BR_SECTORS_PER_TRACK(mbr   , 255); /* only needed for INT13... */
  FAT_SET_BR_NUMBER_OF_HEADS(mbr     , 6);   /* only needed for INT13... */
  FAT_SET_BR_HIDDEN_SECTORS(mbr      , 1);   /* only needed for INT13... */
 800a71c:	33 8e 00 78 	sb (sp+120),r14                                
                                                                      
  FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);          
 800a720:	f8 00 86 bc 	calli 802c210 <__lshrsi3>                      
 800a724:	33 81 00 7d 	sb (sp+125),r1                                 
 800a728:	34 02 00 10 	mvi r2,16                                      
 800a72c:	b9 80 08 00 	mv r1,r12                                      
 800a730:	f8 00 86 b8 	calli 802c210 <__lshrsi3>                      
 800a734:	33 81 00 7e 	sb (sp+126),r1                                 
 800a738:	34 02 00 18 	mvi r2,24                                      
 800a73c:	b9 80 08 00 	mv r1,r12                                      
 800a740:	f8 00 86 b4 	calli 802c210 <__lshrsi3>                      
  if (fmt_params->fattype != FAT_FAT32) {                             
 800a744:	43 8c 02 8e 	lbu r12,(sp+654)                               
                                                                      
  FAT_SET_BR_SECTORS_PER_TRACK(mbr   , 255); /* only needed for INT13... */
  FAT_SET_BR_NUMBER_OF_HEADS(mbr     , 6);   /* only needed for INT13... */
  FAT_SET_BR_HIDDEN_SECTORS(mbr      , 1);   /* only needed for INT13... */
                                                                      
  FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);          
 800a748:	33 81 00 7f 	sb (sp+127),r1                                 
  if (fmt_params->fattype != FAT_FAT32) {                             
 800a74c:	34 03 00 04 	mvi r3,4                                       
 800a750:	2b 8b 02 6c 	lw r11,(sp+620)                                
 800a754:	45 83 00 46 	be r12,r3,800a86c <msdos_format+0xaf4>         
    FAT_SET_BR_SECTORS_PER_FAT(mbr   ,fmt_params->sectors_per_fat);   
 800a758:	b9 60 08 00 	mv r1,r11                                      
 800a75c:	34 02 00 08 	mvi r2,8                                       
 800a760:	33 8b 00 72 	sb (sp+114),r11                                
 800a764:	f8 00 86 ab 	calli 802c210 <__lshrsi3>                      
    FAT_SET_BR_DRVNUM(mbr            , 0); /* only needed for INT13... */
    FAT_SET_BR_RSVD1(mbr             , 0); /* fill with zero */       
    FAT_SET_BR_BOOTSIG(mbr           , FAT_BR_BOOTSIG_VAL);           
    FAT_SET_BR_VOLID(mbr             , fmt_params->vol_id); /* volume id */
 800a768:	2b 8b 02 a8 	lw r11,(sp+680)                                
  FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);          
  if (fmt_params->fattype != FAT_FAT32) {                             
    FAT_SET_BR_SECTORS_PER_FAT(mbr   ,fmt_params->sectors_per_fat);   
    FAT_SET_BR_DRVNUM(mbr            , 0); /* only needed for INT13... */
    FAT_SET_BR_RSVD1(mbr             , 0); /* fill with zero */       
    FAT_SET_BR_BOOTSIG(mbr           , FAT_BR_BOOTSIG_VAL);           
 800a76c:	34 03 00 29 	mvi r3,41                                      
  FAT_SET_BR_NUMBER_OF_HEADS(mbr     , 6);   /* only needed for INT13... */
  FAT_SET_BR_HIDDEN_SECTORS(mbr      , 1);   /* only needed for INT13... */
                                                                      
  FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);          
  if (fmt_params->fattype != FAT_FAT32) {                             
    FAT_SET_BR_SECTORS_PER_FAT(mbr   ,fmt_params->sectors_per_fat);   
 800a770:	33 81 00 73 	sb (sp+115),r1                                 
    FAT_SET_BR_DRVNUM(mbr            , 0); /* only needed for INT13... */
    FAT_SET_BR_RSVD1(mbr             , 0); /* fill with zero */       
    FAT_SET_BR_BOOTSIG(mbr           , FAT_BR_BOOTSIG_VAL);           
    FAT_SET_BR_VOLID(mbr             , fmt_params->vol_id); /* volume id */
 800a774:	34 02 00 08 	mvi r2,8                                       
 800a778:	21 61 ff ff 	andi r1,r11,0xffff                             
  FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);          
  if (fmt_params->fattype != FAT_FAT32) {                             
    FAT_SET_BR_SECTORS_PER_FAT(mbr   ,fmt_params->sectors_per_fat);   
    FAT_SET_BR_DRVNUM(mbr            , 0); /* only needed for INT13... */
    FAT_SET_BR_RSVD1(mbr             , 0); /* fill with zero */       
    FAT_SET_BR_BOOTSIG(mbr           , FAT_BR_BOOTSIG_VAL);           
 800a77c:	33 83 00 82 	sb (sp+130),r3                                 
    FAT_SET_BR_VOLID(mbr             , fmt_params->vol_id); /* volume id */
 800a780:	33 8b 00 83 	sb (sp+131),r11                                
 800a784:	f8 00 86 a3 	calli 802c210 <__lshrsi3>                      
 800a788:	33 81 00 84 	sb (sp+132),r1                                 
 800a78c:	34 02 00 10 	mvi r2,16                                      
 800a790:	b9 60 08 00 	mv r1,r11                                      
 800a794:	f8 00 86 9f 	calli 802c210 <__lshrsi3>                      
 800a798:	33 81 00 85 	sb (sp+133),r1                                 
 800a79c:	34 02 00 18 	mvi r2,24                                      
 800a7a0:	b9 60 08 00 	mv r1,r11                                      
 800a7a4:	f8 00 86 9b 	calli 802c210 <__lshrsi3>                      
  memcpy(FAT_GET_ADDR_BR_VOLLAB(mbr),                                 
	 fmt_params->VolLabel,                                               
 800a7a8:	37 83 02 98 	addi r3,sp,664                                 
    FAT_SET_BR_SECTORS_PER_FAT(mbr   ,fmt_params->sectors_per_fat);   
    FAT_SET_BR_DRVNUM(mbr            , 0); /* only needed for INT13... */
    FAT_SET_BR_RSVD1(mbr             , 0); /* fill with zero */       
    FAT_SET_BR_BOOTSIG(mbr           , FAT_BR_BOOTSIG_VAL);           
    FAT_SET_BR_VOLID(mbr             , fmt_params->vol_id); /* volume id */
  memcpy(FAT_GET_ADDR_BR_VOLLAB(mbr),                                 
 800a7ac:	40 6f 00 01 	lbu r15,(r3+1)                                 
 800a7b0:	40 6e 00 02 	lbu r14,(r3+2)                                 
 800a7b4:	40 6b 00 03 	lbu r11,(r3+3)                                 
 800a7b8:	40 6a 00 04 	lbu r10,(r3+4)                                 
 800a7bc:	40 69 00 05 	lbu r9,(r3+5)                                  
 800a7c0:	40 68 00 06 	lbu r8,(r3+6)                                  
 800a7c4:	40 67 00 07 	lbu r7,(r3+7)                                  
 800a7c8:	40 66 00 08 	lbu r6,(r3+8)                                  
 800a7cc:	40 65 00 09 	lbu r5,(r3+9)                                  
 800a7d0:	43 90 02 98 	lbu r16,(sp+664)                               
 800a7d4:	40 63 00 0a 	lbu r3,(r3+10)                                 
 800a7d8:	37 84 00 87 	addi r4,sp,135                                 
 800a7dc:	30 8f 00 01 	sb (r4+1),r15                                  
 800a7e0:	30 83 00 0a 	sb (r4+10),r3                                  
 800a7e4:	30 8e 00 02 	sb (r4+2),r14                                  
 800a7e8:	30 8b 00 03 	sb (r4+3),r11                                  
 800a7ec:	30 8a 00 04 	sb (r4+4),r10                                  
 800a7f0:	30 89 00 05 	sb (r4+5),r9                                   
 800a7f4:	30 88 00 06 	sb (r4+6),r8                                   
 800a7f8:	30 87 00 07 	sb (r4+7),r7                                   
 800a7fc:	30 86 00 08 	sb (r4+8),r6                                   
 800a800:	30 85 00 09 	sb (r4+9),r5                                   
	 fmt_params->VolLabel,                                               
	 FAT_BR_VOLLAB_SIZE);                                                
    memcpy(FAT_GET_ADDR_BR_FILSYSTYPE(mbr),                           
 800a804:	78 03 08 02 	mvhi r3,0x802                                  
  if (fmt_params->fattype != FAT_FAT32) {                             
    FAT_SET_BR_SECTORS_PER_FAT(mbr   ,fmt_params->sectors_per_fat);   
    FAT_SET_BR_DRVNUM(mbr            , 0); /* only needed for INT13... */
    FAT_SET_BR_RSVD1(mbr             , 0); /* fill with zero */       
    FAT_SET_BR_BOOTSIG(mbr           , FAT_BR_BOOTSIG_VAL);           
    FAT_SET_BR_VOLID(mbr             , fmt_params->vol_id); /* volume id */
 800a808:	33 81 00 86 	sb (sp+134),r1                                 
  memcpy(FAT_GET_ADDR_BR_VOLLAB(mbr),                                 
 800a80c:	33 90 00 87 	sb (sp+135),r16                                
	 fmt_params->VolLabel,                                               
	 FAT_BR_VOLLAB_SIZE);                                                
    memcpy(FAT_GET_ADDR_BR_FILSYSTYPE(mbr),                           
 800a810:	34 04 00 01 	mvi r4,1                                       
 800a814:	38 63 d2 0c 	ori r3,r3,0xd20c                               
 800a818:	5d 84 00 03 	bne r12,r4,800a824 <msdos_format+0xaac>        
 800a81c:	78 03 08 02 	mvhi r3,0x802                                  
 800a820:	38 63 d2 00 	ori r3,r3,0xd200                               
 800a824:	40 6b 00 00 	lbu r11,(r3+0)                                 
 800a828:	40 6a 00 01 	lbu r10,(r3+1)                                 
 800a82c:	40 69 00 02 	lbu r9,(r3+2)                                  
 800a830:	40 68 00 03 	lbu r8,(r3+3)                                  
 800a834:	40 67 00 04 	lbu r7,(r3+4)                                  
 800a838:	40 66 00 05 	lbu r6,(r3+5)                                  
 800a83c:	40 65 00 06 	lbu r5,(r3+6)                                  
 800a840:	40 63 00 07 	lbu r3,(r3+7)                                  
 800a844:	37 84 00 92 	addi r4,sp,146                                 
 800a848:	33 8b 00 92 	sb (sp+146),r11                                
 800a84c:	30 8a 00 01 	sb (r4+1),r10                                  
 800a850:	30 89 00 02 	sb (r4+2),r9                                   
 800a854:	30 88 00 03 	sb (r4+3),r8                                   
 800a858:	30 87 00 04 	sb (r4+4),r7                                   
 800a85c:	30 86 00 05 	sb (r4+5),r6                                   
 800a860:	30 85 00 06 	sb (r4+6),r5                                   
 800a864:	30 83 00 07 	sb (r4+7),r3                                   
 800a868:	e0 00 00 2b 	bi 800a914 <msdos_format+0xb9c>                
	   ? "FAT12   "                                                      
	   : "FAT16   ",                                                     
	   FAT_BR_FILSYSTYPE_SIZE);                                          
  }                                                                   
  else {                                                              
    FAT_SET_BR_SECTORS_PER_FAT32(mbr   ,fmt_params->sectors_per_fat); 
 800a86c:	34 02 00 08 	mvi r2,8                                       
 800a870:	21 61 ff ff 	andi r1,r11,0xffff                             
 800a874:	33 8b 00 80 	sb (sp+128),r11                                
 800a878:	f8 00 86 66 	calli 802c210 <__lshrsi3>                      
 800a87c:	33 81 00 81 	sb (sp+129),r1                                 
 800a880:	34 02 00 10 	mvi r2,16                                      
 800a884:	b9 60 08 00 	mv r1,r11                                      
 800a888:	f8 00 86 62 	calli 802c210 <__lshrsi3>                      
 800a88c:	33 81 00 82 	sb (sp+130),r1                                 
 800a890:	34 02 00 18 	mvi r2,24                                      
 800a894:	b9 60 08 00 	mv r1,r11                                      
 800a898:	f8 00 86 5e 	calli 802c210 <__lshrsi3>                      
    FAT_SET_BR_EXT_FLAGS(mbr           , 0);                          
    FAT_SET_BR_FSVER(mbr               , 0); /* FAT32 Version:0.0 */  
    FAT_SET_BR_FAT32_ROOT_CLUSTER(mbr  , 2); /* put root dir to cluster 2 */
    FAT_SET_BR_FAT32_FS_INFO_SECTOR(mbr, 1); /* Put fsinfo  to rsrvd sec 1*/
    FAT_SET_BR_FAT32_BK_BOOT_SECTOR(mbr, fmt_params->mbr_copy_sec ); /* Put MBR copy to rsrvd sec */
 800a89c:	2b 83 02 84 	lw r3,(sp+644)                                 
	   ? "FAT12   "                                                      
	   : "FAT16   ",                                                     
	   FAT_BR_FILSYSTYPE_SIZE);                                          
  }                                                                   
  else {                                                              
    FAT_SET_BR_SECTORS_PER_FAT32(mbr   ,fmt_params->sectors_per_fat); 
 800a8a0:	33 81 00 83 	sb (sp+131),r1                                 
    FAT_SET_BR_EXT_FLAGS(mbr           , 0);                          
    FAT_SET_BR_FSVER(mbr               , 0); /* FAT32 Version:0.0 */  
    FAT_SET_BR_FAT32_ROOT_CLUSTER(mbr  , 2); /* put root dir to cluster 2 */
    FAT_SET_BR_FAT32_FS_INFO_SECTOR(mbr, 1); /* Put fsinfo  to rsrvd sec 1*/
    FAT_SET_BR_FAT32_BK_BOOT_SECTOR(mbr, fmt_params->mbr_copy_sec ); /* Put MBR copy to rsrvd sec */
 800a8a4:	34 02 00 08 	mvi r2,8                                       
 800a8a8:	b8 60 08 00 	mv r1,r3                                       
 800a8ac:	33 83 00 8e 	sb (sp+142),r3                                 
  }                                                                   
  else {                                                              
    FAT_SET_BR_SECTORS_PER_FAT32(mbr   ,fmt_params->sectors_per_fat); 
    FAT_SET_BR_EXT_FLAGS(mbr           , 0);                          
    FAT_SET_BR_FSVER(mbr               , 0); /* FAT32 Version:0.0 */  
    FAT_SET_BR_FAT32_ROOT_CLUSTER(mbr  , 2); /* put root dir to cluster 2 */
 800a8b0:	33 8f 00 88 	sb (sp+136),r15                                
    FAT_SET_BR_FAT32_FS_INFO_SECTOR(mbr, 1); /* Put fsinfo  to rsrvd sec 1*/
 800a8b4:	33 8e 00 8c 	sb (sp+140),r14                                
    FAT_SET_BR_FAT32_BK_BOOT_SECTOR(mbr, fmt_params->mbr_copy_sec ); /* Put MBR copy to rsrvd sec */
 800a8b8:	f8 00 86 56 	calli 802c210 <__lshrsi3>                      
 800a8bc:	33 81 00 8f 	sb (sp+143),r1                                 
    memset(FAT_GET_ADDR_BR_FAT32_RESERVED(mbr),0,FAT_BR_FAT32_RESERVED_SIZE);
 800a8c0:	34 02 00 00 	mvi r2,0                                       
 800a8c4:	34 03 00 0c 	mvi r3,12                                      
 800a8c8:	37 81 00 90 	addi r1,sp,144                                 
 800a8cc:	f8 00 3f df 	calli 801a848 <memset>                         
                                                                      
    FAT_SET_BR_FAT32_DRVNUM(mbr      , 0); /* only needed for INT13... */
    FAT_SET_BR_FAT32_RSVD1(mbr       , 0); /* fill with zero */       
    FAT_SET_BR_FAT32_BOOTSIG(mbr     ,FAT_BR_FAT32_BOOTSIG_VAL);      
 800a8d0:	34 03 00 29 	mvi r3,41                                      
 800a8d4:	33 83 00 9e 	sb (sp+158),r3                                 
    FAT_SET_BR_FAT32_VOLID(mbr       , 0); /* not set */              
    memset(FAT_GET_ADDR_BR_FAT32_VOLLAB(mbr)   ,0,FAT_BR_VOLLAB_SIZE);
 800a8d8:	37 81 00 a3 	addi r1,sp,163                                 
 800a8dc:	34 03 00 0b 	mvi r3,11                                      
 800a8e0:	34 02 00 00 	mvi r2,0                                       
 800a8e4:	f8 00 3f d9 	calli 801a848 <memset>                         
    memcpy(FAT_GET_ADDR_BR_FAT32_FILSYSTYPE(mbr),                     
 800a8e8:	78 03 08 02 	mvhi r3,0x802                                  
 800a8ec:	38 63 d2 b4 	ori r3,r3,0xd2b4                               
 800a8f0:	2c 67 00 00 	lhu r7,(r3+0)                                  
 800a8f4:	2c 66 00 02 	lhu r6,(r3+2)                                  
 800a8f8:	2c 65 00 04 	lhu r5,(r3+4)                                  
 800a8fc:	2c 63 00 06 	lhu r3,(r3+6)                                  
 800a900:	37 84 00 ae 	addi r4,sp,174                                 
 800a904:	0f 87 00 ae 	sh (sp+174),r7                                 
 800a908:	0c 86 00 02 	sh (r4+2),r6                                   
 800a90c:	0c 85 00 04 	sh (r4+4),r5                                   
 800a910:	0c 83 00 06 	sh (r4+6),r3                                   
	   FAT_BR_FILSYSTYPE_SIZE);                                          
  }                                                                   
  /*                                                                  
   * add boot record signature                                        
   */                                                                 
  FAT_SET_BR_SIGNATURE(mbr,      FAT_BR_SIGNATURE_VAL);               
 800a914:	34 03 00 55 	mvi r3,85                                      
 800a918:	33 83 02 5a 	sb (sp+602),r3                                 
 800a91c:	34 03 ff aa 	mvi r3,-86                                     
 800a920:	33 83 02 5b 	sb (sp+603),r3                                 
                                                                      
  /*                                                                  
   * add jump to boot loader at start of sector                       
   */                                                                 
  FAT_SET_VAL8(mbr,0,0xeb);                                           
 800a924:	34 03 ff eb 	mvi r3,-21                                     
 800a928:	33 83 00 5c 	sb (sp+92),r3                                  
  FAT_SET_VAL8(mbr,1,0x3c);                                           
 800a92c:	34 03 00 3c 	mvi r3,60                                      
 800a930:	33 83 00 5d 	sb (sp+93),r3                                  
  FAT_SET_VAL8(mbr,2,0x90);                                           
 800a934:	34 03 ff 90 	mvi r3,-112                                    
 800a938:	33 83 00 5e 	sb (sp+94),r3                                  
    /*                                                                
     * write master boot record to disk                               
     * also write copy of MBR to disk                                 
     */                                                               
    if (ret_val == 0) {                                               
      msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,       
 800a93c:	78 03 08 02 	mvhi r3,0x802                                  
 800a940:	bb 00 08 00 	mv r1,r24                                      
 800a944:	34 02 00 02 	mvi r2,2                                       
 800a948:	38 63 d2 c0 	ori r3,r3,0xd2c0                               
 800a94c:	fb ff fc 6c 	calli 8009afc <msdos_format_printf>            
                           "write MRB sector\n");                     
      ret_val = msdos_format_write_sec(fd,                            
 800a950:	2b 83 02 5c 	lw r3,(sp+604)                                 
 800a954:	37 8b 00 5c 	addi r11,sp,92                                 
 800a958:	bb 20 08 00 	mv r1,r25                                      
 800a95c:	34 02 00 00 	mvi r2,0                                       
 800a960:	b9 60 20 00 	mv r4,r11                                      
 800a964:	fb ff fc 80 	calli 8009b64 <msdos_format_write_sec>         
 800a968:	b8 20 b8 00 	mv r23,r1                                      
                                       0,                             
                                       fmt_params.bytes_per_sector,   
                                       tmp_sec);                      
    }                                                                 
    if ((ret_val == 0) &&                                             
 800a96c:	5c 20 00 f8 	bne r1,r0,800ad4c <msdos_format+0xfd4>         <== NEVER TAKEN
 800a970:	2b 83 02 84 	lw r3,(sp+644)                                 
 800a974:	44 61 00 0d 	be r3,r1,800a9a8 <msdos_format+0xc30>          
        (fmt_params.mbr_copy_sec != 0)) {                             
      /*                                                              
       * write copy of MBR                                            
       */                                                             
      msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,       
 800a978:	78 03 08 02 	mvhi r3,0x802                                  
 800a97c:	bb 00 08 00 	mv r1,r24                                      
 800a980:	34 02 00 02 	mvi r2,2                                       
 800a984:	38 63 d2 d4 	ori r3,r3,0xd2d4                               
 800a988:	fb ff fc 5d 	calli 8009afc <msdos_format_printf>            
                           "write back up MRB sector\n");             
      ret_val = msdos_format_write_sec(fd,                            
 800a98c:	2b 82 02 84 	lw r2,(sp+644)                                 
 800a990:	2b 83 02 5c 	lw r3,(sp+604)                                 
 800a994:	bb 20 08 00 	mv r1,r25                                      
 800a998:	b9 60 20 00 	mv r4,r11                                      
 800a99c:	fb ff fc 72 	calli 8009b64 <msdos_format_write_sec>         
 800a9a0:	b8 20 b8 00 	mv r23,r1                                      
    }                                                                 
  }                                                                   
  /*                                                                  
   * for FAT32: initialize info sector on disk                        
   */                                                                 
  if ((ret_val == 0) &&                                               
 800a9a4:	5c 20 00 ea 	bne r1,r0,800ad4c <msdos_format+0xfd4>         <== NEVER TAKEN
      (fmt_params.fsinfo_sec != 0)) {                                 
 800a9a8:	2b 8c 02 88 	lw r12,(sp+648)                                
    }                                                                 
  }                                                                   
  /*                                                                  
   * for FAT32: initialize info sector on disk                        
   */                                                                 
  if ((ret_val == 0) &&                                               
 800a9ac:	45 80 00 26 	be r12,r0,800aa44 <msdos_format+0xccc>         
      (fmt_params.fsinfo_sec != 0)) {                                 
      ret_val = msdos_format_gen_fsinfo(tmp_sec);                     
 800a9b0:	37 8b 00 5c 	addi r11,sp,92                                 
\*=========================================================================*/
{                                                                     
  /*                                                                  
   * clear fsinfo sector data                                         
   */                                                                 
  memset(fsinfo,0,FAT_TOTAL_FSINFO_SIZE);                             
 800a9b4:	34 02 00 00 	mvi r2,0                                       
 800a9b8:	34 03 02 00 	mvi r3,512                                     
 800a9bc:	b9 60 08 00 	mv r1,r11                                      
 800a9c0:	f8 00 3f a2 	calli 801a848 <memset>                         
  /*                                                                  
   * write LEADSIG, STRUCTSIG, TRAILSIG                               
   */                                                                 
  FAT_SET_FSINFO_LEAD_SIGNATURE (fsinfo,FAT_FSINFO_LEAD_SIGNATURE_VALUE );
 800a9c4:	34 03 00 52 	mvi r3,82                                      
 800a9c8:	33 83 00 5c 	sb (sp+92),r3                                  
 800a9cc:	33 83 00 5d 	sb (sp+93),r3                                  
 800a9d0:	34 03 00 61 	mvi r3,97                                      
 800a9d4:	33 83 00 5e 	sb (sp+94),r3                                  
  FAT_SET_FSINFO_STRUC_SIGNATURE(fsinfo,FAT_FSINFO_STRUC_SIGNATURE_VALUE);
 800a9d8:	33 83 02 43 	sb (sp+579),r3                                 
  FAT_SET_FSINFO_TRAIL_SIGNATURE(fsinfo,FAT_FSINFO_TRAIL_SIGNATURE_VALUE);
 800a9dc:	34 03 00 55 	mvi r3,85                                      
 800a9e0:	33 83 02 5a 	sb (sp+602),r3                                 
 800a9e4:	34 03 ff aa 	mvi r3,-86                                     
 800a9e8:	33 83 02 5b 	sb (sp+603),r3                                 
  /*                                                                  
   * write "empty" values for free cluster count and next cluster number
   */                                                                 
  FAT_SET_FSINFO_FREE_CLUSTER_COUNT(fsinfo+FAT_FSI_INFO,              
 800a9ec:	34 03 ff ff 	mvi r3,-1                                      
 800a9f0:	33 83 02 44 	sb (sp+580),r3                                 
 800a9f4:	33 83 02 45 	sb (sp+581),r3                                 
 800a9f8:	33 83 02 46 	sb (sp+582),r3                                 
 800a9fc:	33 83 02 47 	sb (sp+583),r3                                 
				    0xffffffff);                                                  
  FAT_SET_FSINFO_NEXT_FREE_CLUSTER (fsinfo+FAT_FSI_INFO,              
 800aa00:	33 83 02 48 	sb (sp+584),r3                                 
 800aa04:	33 83 02 49 	sb (sp+585),r3                                 
 800aa08:	33 83 02 4a 	sb (sp+586),r3                                 
 800aa0c:	33 83 02 4b 	sb (sp+587),r3                                 
  /*                                                                  
   * write fsinfo sector                                              
   */                                                                 
  if ((ret_val == 0) &&                                               
      (fmt_params.fsinfo_sec != 0)) {                                 
    ret_val = msdos_format_write_sec(fd,                              
 800aa10:	2b 83 02 5c 	lw r3,(sp+604)                                 
   */                                                                 
  memset(fsinfo,0,FAT_TOTAL_FSINFO_SIZE);                             
  /*                                                                  
   * write LEADSIG, STRUCTSIG, TRAILSIG                               
   */                                                                 
  FAT_SET_FSINFO_LEAD_SIGNATURE (fsinfo,FAT_FSINFO_LEAD_SIGNATURE_VALUE );
 800aa14:	34 04 00 41 	mvi r4,65                                      
  FAT_SET_FSINFO_STRUC_SIGNATURE(fsinfo,FAT_FSINFO_STRUC_SIGNATURE_VALUE);
 800aa18:	34 05 00 72 	mvi r5,114                                     
   */                                                                 
  memset(fsinfo,0,FAT_TOTAL_FSINFO_SIZE);                             
  /*                                                                  
   * write LEADSIG, STRUCTSIG, TRAILSIG                               
   */                                                                 
  FAT_SET_FSINFO_LEAD_SIGNATURE (fsinfo,FAT_FSINFO_LEAD_SIGNATURE_VALUE );
 800aa1c:	33 84 00 5f 	sb (sp+95),r4                                  
  FAT_SET_FSINFO_STRUC_SIGNATURE(fsinfo,FAT_FSINFO_STRUC_SIGNATURE_VALUE);
 800aa20:	33 84 02 42 	sb (sp+578),r4                                 
  /*                                                                  
   * write fsinfo sector                                              
   */                                                                 
  if ((ret_val == 0) &&                                               
      (fmt_params.fsinfo_sec != 0)) {                                 
    ret_val = msdos_format_write_sec(fd,                              
 800aa24:	bb 20 08 00 	mv r1,r25                                      
 800aa28:	b9 80 10 00 	mv r2,r12                                      
 800aa2c:	b9 60 20 00 	mv r4,r11                                      
  memset(fsinfo,0,FAT_TOTAL_FSINFO_SIZE);                             
  /*                                                                  
   * write LEADSIG, STRUCTSIG, TRAILSIG                               
   */                                                                 
  FAT_SET_FSINFO_LEAD_SIGNATURE (fsinfo,FAT_FSINFO_LEAD_SIGNATURE_VALUE );
  FAT_SET_FSINFO_STRUC_SIGNATURE(fsinfo,FAT_FSINFO_STRUC_SIGNATURE_VALUE);
 800aa30:	33 85 02 40 	sb (sp+576),r5                                 
 800aa34:	33 85 02 41 	sb (sp+577),r5                                 
  /*                                                                  
   * write fsinfo sector                                              
   */                                                                 
  if ((ret_val == 0) &&                                               
      (fmt_params.fsinfo_sec != 0)) {                                 
    ret_val = msdos_format_write_sec(fd,                              
 800aa38:	fb ff fc 4b 	calli 8009b64 <msdos_format_write_sec>         
 800aa3c:	b8 20 b8 00 	mv r23,r1                                      
  }                                                                   
  /*                                                                  
   * write FAT as all empty                                           
   * -> write all FAT sectors as zero                                 
   */                                                                 
  if (ret_val == 0) {                                                 
 800aa40:	5c 20 00 c3 	bne r1,r0,800ad4c <msdos_format+0xfd4>         <== NEVER TAKEN
    ret_val = msdos_format_fill_sectors                               
      (rqdata,                                                        
 800aa44:	2b 82 02 6c 	lw r2,(sp+620)                                 
 800aa48:	43 81 02 8c 	lbu r1,(sp+652)                                
 800aa4c:	fb ff da 35 	calli 8001320 <__mulsi3>                       
  /*                                                                  
   * write FAT as all empty                                           
   * -> write all FAT sectors as zero                                 
   */                                                                 
  if (ret_val == 0) {                                                 
    ret_val = msdos_format_fill_sectors                               
 800aa50:	2b 83 02 64 	lw r3,(sp+612)                                 
 800aa54:	2b 85 02 5c 	lw r5,(sp+604)                                 
      (rqdata,                                                        
 800aa58:	b8 20 20 00 	mv r4,r1                                       
  /*                                                                  
   * write FAT as all empty                                           
   * -> write all FAT sectors as zero                                 
   */                                                                 
  if (ret_val == 0) {                                                 
    ret_val = msdos_format_fill_sectors                               
 800aa5c:	bb 20 10 00 	mv r2,r25                                      
 800aa60:	bb 00 08 00 	mv r1,r24                                      
 800aa64:	34 06 00 00 	mvi r6,0                                       
 800aa68:	fb ff fc 5d 	calli 8009bdc <msdos_format_fill_sectors>      
 800aa6c:	b8 20 b8 00 	mv r23,r1                                      
  }                                                                   
  /*                                                                  
   * clear/init root directory                                        
   * -> write all directory sectors as 0x00                           
   */                                                                 
  if (ret_val == 0) {                                                 
 800aa70:	5c 20 00 b7 	bne r1,r0,800ad4c <msdos_format+0xfd4>         <== NEVER TAKEN
    ret_val = msdos_format_fill_sectors                               
 800aa74:	2b 83 02 7c 	lw r3,(sp+636)                                 
 800aa78:	2b 84 02 80 	lw r4,(sp+640)                                 
 800aa7c:	2b 85 02 5c 	lw r5,(sp+604)                                 
 800aa80:	bb 00 08 00 	mv r1,r24                                      
 800aa84:	bb 20 10 00 	mv r2,r25                                      
 800aa88:	34 06 00 00 	mvi r6,0                                       
 800aa8c:	fb ff fc 54 	calli 8009bdc <msdos_format_fill_sectors>      
 800aa90:	b8 20 b8 00 	mv r23,r1                                      
       0x00);                                                         
  }                                                                   
  /*                                                                  
   * write volume label to first entry of directory                   
   */                                                                 
  if ((ret_val == 0) && fmt_params.VolLabel_present) {                
 800aa94:	5c 20 00 ae 	bne r1,r0,800ad4c <msdos_format+0xfd4>         <== NEVER TAKEN
 800aa98:	43 83 02 a4 	lbu r3,(sp+676)                                
 800aa9c:	44 61 00 18 	be r3,r1,800aafc <msdos_format+0xd84>          
    memset(tmp_sec,0,sizeof(tmp_sec));                                
 800aaa0:	37 8b 00 5c 	addi r11,sp,92                                 
 800aaa4:	b9 60 08 00 	mv r1,r11                                      
 800aaa8:	34 02 00 00 	mvi r2,0                                       
 800aaac:	34 03 02 00 	mvi r3,512                                     
 800aab0:	f8 00 3f 66 	calli 801a848 <memset>                         
    memcpy(MSDOS_DIR_NAME(tmp_sec),fmt_params.VolLabel,MSDOS_SHORT_NAME_LEN);
 800aab4:	37 83 02 98 	addi r3,sp,664                                 
 800aab8:	28 64 00 04 	lw r4,(r3+4)                                   
 800aabc:	2b 85 02 98 	lw r5,(sp+664)                                 
    *MSDOS_DIR_ATTR(tmp_sec) = MSDOS_ATTR_VOLUME_ID;                  
    ret_val = msdos_format_write_sec                                  
 800aac0:	2b 82 02 7c 	lw r2,(sp+636)                                 
  /*                                                                  
   * write volume label to first entry of directory                   
   */                                                                 
  if ((ret_val == 0) && fmt_params.VolLabel_present) {                
    memset(tmp_sec,0,sizeof(tmp_sec));                                
    memcpy(MSDOS_DIR_NAME(tmp_sec),fmt_params.VolLabel,MSDOS_SHORT_NAME_LEN);
 800aac4:	59 64 00 04 	sw (r11+4),r4                                  
 800aac8:	2c 64 00 08 	lhu r4,(r3+8)                                  
 800aacc:	40 63 00 0a 	lbu r3,(r3+10)                                 
    *MSDOS_DIR_ATTR(tmp_sec) = MSDOS_ATTR_VOLUME_ID;                  
    ret_val = msdos_format_write_sec                                  
 800aad0:	bb 20 08 00 	mv r1,r25                                      
  /*                                                                  
   * write volume label to first entry of directory                   
   */                                                                 
  if ((ret_val == 0) && fmt_params.VolLabel_present) {                
    memset(tmp_sec,0,sizeof(tmp_sec));                                
    memcpy(MSDOS_DIR_NAME(tmp_sec),fmt_params.VolLabel,MSDOS_SHORT_NAME_LEN);
 800aad4:	0d 64 00 08 	sh (r11+8),r4                                  
 800aad8:	31 63 00 0a 	sb (r11+10),r3                                 
    *MSDOS_DIR_ATTR(tmp_sec) = MSDOS_ATTR_VOLUME_ID;                  
 800aadc:	34 03 00 08 	mvi r3,8                                       
 800aae0:	33 83 00 67 	sb (sp+103),r3                                 
    ret_val = msdos_format_write_sec                                  
 800aae4:	2b 83 02 5c 	lw r3,(sp+604)                                 
 800aae8:	b9 60 20 00 	mv r4,r11                                      
  /*                                                                  
   * write volume label to first entry of directory                   
   */                                                                 
  if ((ret_val == 0) && fmt_params.VolLabel_present) {                
    memset(tmp_sec,0,sizeof(tmp_sec));                                
    memcpy(MSDOS_DIR_NAME(tmp_sec),fmt_params.VolLabel,MSDOS_SHORT_NAME_LEN);
 800aaec:	5b 85 00 5c 	sw (sp+92),r5                                  
    *MSDOS_DIR_ATTR(tmp_sec) = MSDOS_ATTR_VOLUME_ID;                  
    ret_val = msdos_format_write_sec                                  
 800aaf0:	fb ff fc 1d 	calli 8009b64 <msdos_format_write_sec>         
 800aaf4:	b8 20 58 00 	mv r11,r1                                      
  /*                                                                  
   * write FAT entry 0 as (0xffffff00|Media_type)EOC,                 
   * write FAT entry 1 as EOC                                         
   * allocate directory in a FAT32 FS                                 
   */                                                                 
  if (ret_val == 0) {                                                 
 800aaf8:	5c 20 00 53 	bne r1,r0,800ac44 <msdos_format+0xecc>         <== NEVER TAKEN
    uint32_t start_sector;                                            
                                                                      
    /*                                                                
     * empty sector: all clusters are free/do not link further on     
     */                                                               
    memset(tmp_sec,0,sizeof(tmp_sec));                                
 800aafc:	34 03 02 00 	mvi r3,512                                     
 800ab00:	37 81 00 5c 	addi r1,sp,92                                  
 800ab04:	34 02 00 00 	mvi r2,0                                       
 800ab08:	f8 00 3f 50 	calli 801a848 <memset>                         
                                                                      
    switch(fmt_params.fattype) {                                      
 800ab0c:	43 83 02 8e 	lbu r3,(sp+654)                                
 800ab10:	34 04 00 02 	mvi r4,2                                       
 800ab14:	44 64 00 0c 	be r3,r4,800ab44 <msdos_format+0xdcc>          
 800ab18:	34 04 00 04 	mvi r4,4                                       
 800ab1c:	44 64 00 12 	be r3,r4,800ab64 <msdos_format+0xdec>          
 800ab20:	34 04 00 01 	mvi r4,1                                       
 800ab24:	5c 64 00 22 	bne r3,r4,800abac <msdos_format+0xe34>         <== NEVER TAKEN
    case FAT_FAT12:                                                   
      /* LSBits of FAT entry 0: media_type */                         
      FAT_SET_VAL8(tmp_sec,0,(fmt_params.media_code));                
 800ab28:	43 83 02 8d 	lbu r3,(sp+653)                                
 800ab2c:	33 83 00 5c 	sb (sp+92),r3                                  
      /* MSBits of FAT entry 0:0xf, LSBits of FAT entry 1: LSB of EOC */
      FAT_SET_VAL8(tmp_sec,1,(0x0f | (FAT_FAT12_EOC << 4)));          
 800ab30:	34 03 ff 8f 	mvi r3,-113                                    
 800ab34:	33 83 00 5d 	sb (sp+93),r3                                  
      /* MSBits of FAT entry 1: MSBits of EOC */                      
      FAT_SET_VAL8(tmp_sec,2,(FAT_FAT12_EOC >> 4));                   
 800ab38:	34 03 ff ff 	mvi r3,-1                                      
 800ab3c:	33 83 00 5e 	sb (sp+94),r3                                  
      break;                                                          
 800ab40:	e0 00 00 1f 	bi 800abbc <msdos_format+0xe44>                
                                                                      
    case FAT_FAT16:                                                   
      /* FAT entry 0: 0xff00|media_type */                            
      FAT_SET_VAL8(tmp_sec,0,fmt_params.media_code);                  
 800ab44:	43 83 02 8d 	lbu r3,(sp+653)                                
      FAT_SET_VAL8(tmp_sec,1,0xff);                                   
      /* FAT entry 1: EOC */                                          
      FAT_SET_VAL16(tmp_sec,2,FAT_FAT16_EOC);                         
 800ab48:	34 04 ff f8 	mvi r4,-8                                      
 800ab4c:	33 84 00 5e 	sb (sp+94),r4                                  
      FAT_SET_VAL8(tmp_sec,2,(FAT_FAT12_EOC >> 4));                   
      break;                                                          
                                                                      
    case FAT_FAT16:                                                   
      /* FAT entry 0: 0xff00|media_type */                            
      FAT_SET_VAL8(tmp_sec,0,fmt_params.media_code);                  
 800ab50:	33 83 00 5c 	sb (sp+92),r3                                  
      FAT_SET_VAL8(tmp_sec,1,0xff);                                   
 800ab54:	34 03 ff ff 	mvi r3,-1                                      
 800ab58:	33 83 00 5d 	sb (sp+93),r3                                  
      /* FAT entry 1: EOC */                                          
      FAT_SET_VAL16(tmp_sec,2,FAT_FAT16_EOC);                         
 800ab5c:	33 83 00 5f 	sb (sp+95),r3                                  
      break;                                                          
 800ab60:	e0 00 00 17 	bi 800abbc <msdos_format+0xe44>                
                                                                      
    case FAT_FAT32:                                                   
      /* FAT entry 0: 0xffffff00|media_type */                        
      FAT_SET_VAL32(tmp_sec,0,0xffffff00|fmt_params.media_code);      
 800ab64:	43 84 02 8d 	lbu r4,(sp+653)                                
 800ab68:	34 03 ff 00 	mvi r3,-256                                    
 800ab6c:	34 02 00 08 	mvi r2,8                                       
 800ab70:	b8 83 18 00 	or r3,r4,r3                                    
 800ab74:	20 61 ff ff 	andi r1,r3,0xffff                              
 800ab78:	33 83 00 5c 	sb (sp+92),r3                                  
 800ab7c:	f8 00 85 a5 	calli 802c210 <__lshrsi3>                      
 800ab80:	34 03 ff ff 	mvi r3,-1                                      
 800ab84:	33 83 00 5e 	sb (sp+94),r3                                  
 800ab88:	33 83 00 5f 	sb (sp+95),r3                                  
      /* FAT entry 1: EOC */                                          
      FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);                         
 800ab8c:	34 04 ff f8 	mvi r4,-8                                      
 800ab90:	33 83 00 61 	sb (sp+97),r3                                  
 800ab94:	33 83 00 62 	sb (sp+98),r3                                  
 800ab98:	34 03 00 0f 	mvi r3,15                                      
      FAT_SET_VAL16(tmp_sec,2,FAT_FAT16_EOC);                         
      break;                                                          
                                                                      
    case FAT_FAT32:                                                   
      /* FAT entry 0: 0xffffff00|media_type */                        
      FAT_SET_VAL32(tmp_sec,0,0xffffff00|fmt_params.media_code);      
 800ab9c:	33 81 00 5d 	sb (sp+93),r1                                  
      /* FAT entry 1: EOC */                                          
      FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);                         
 800aba0:	33 84 00 60 	sb (sp+96),r4                                  
 800aba4:	33 83 00 63 	sb (sp+99),r3                                  
      break;                                                          
 800aba8:	e0 00 00 05 	bi 800abbc <msdos_format+0xe44>                
                                                                      
    default:                                                          
      ret_val = -1;                                                   
      errno = EINVAL;                                                 
 800abac:	f8 00 3b 98 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 800abb0:	34 03 00 16 	mvi r3,22                                      <== NOT EXECUTED
 800abb4:	58 23 00 00 	sw (r1+0),r3                                   <== NOT EXECUTED
      /* FAT entry 1: EOC */                                          
      FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);                         
      break;                                                          
                                                                      
    default:                                                          
      ret_val = -1;                                                   
 800abb8:	34 17 ff ff 	mvi r23,-1                                     <== NOT EXECUTED
      errno = EINVAL;                                                 
    }                                                                 
    if (fmt_params.fattype == FAT_FAT32) {                            
 800abbc:	43 84 02 8e 	lbu r4,(sp+654)                                
 800abc0:	34 03 00 04 	mvi r3,4                                       
 800abc4:	5c 83 00 08 	bne r4,r3,800abe4 <msdos_format+0xe6c>         
      /*                                                              
       * only first valid cluster (cluster number 2) belongs          
       * to root directory, and is end of chain                       
       * mark this in every copy of the FAT                           
       */                                                             
      FAT_SET_VAL32(tmp_sec,8,FAT_FAT32_EOC);                         
 800abc8:	34 03 ff f8 	mvi r3,-8                                      
 800abcc:	33 83 00 64 	sb (sp+100),r3                                 
 800abd0:	34 03 ff ff 	mvi r3,-1                                      
 800abd4:	33 83 00 65 	sb (sp+101),r3                                 
 800abd8:	33 83 00 66 	sb (sp+102),r3                                 
 800abdc:	34 03 00 0f 	mvi r3,15                                      
 800abe0:	33 83 00 67 	sb (sp+103),r3                                 
    }                                                                 
                                                                      
    start_sector = loc_align_object (fmt_params.rsvd_sector_cnt,      
 800abe4:	2b 81 02 64 	lw r1,(sp+612)                                 
 800abe8:	2b 82 02 68 	lw r2,(sp+616)                                 
 800abec:	43 83 02 ac 	lbu r3,(sp+684)                                
                                     fmt_params.sectors_per_cluster,  
                                     fmt_params.skip_alignment);      
    for (i = 0;                                                       
 800abf0:	ba e0 58 00 	mv r11,r23                                     
 800abf4:	34 0c 00 00 	mvi r12,0                                      
       * mark this in every copy of the FAT                           
       */                                                             
      FAT_SET_VAL32(tmp_sec,8,FAT_FAT32_EOC);                         
    }                                                                 
                                                                      
    start_sector = loc_align_object (fmt_params.rsvd_sector_cnt,      
 800abf8:	fb ff fb 95 	calli 8009a4c <loc_align_object>               
 800abfc:	b8 20 78 00 	mv r15,r1                                      
                                     fmt_params.skip_alignment);      
    for (i = 0;                                                       
	 (i < fmt_params.fat_num) && (ret_val == 0);                         
	 i++) {                                                              
      ret_val = msdos_format_write_sec                                
        (fd,                                                          
 800ac00:	37 8e 00 5c 	addi r14,sp,92                                 
    }                                                                 
                                                                      
    start_sector = loc_align_object (fmt_params.rsvd_sector_cnt,      
                                     fmt_params.sectors_per_cluster,  
                                     fmt_params.skip_alignment);      
    for (i = 0;                                                       
 800ac04:	e0 00 00 0b 	bi 800ac30 <msdos_format+0xeb8>                
	 (i < fmt_params.fat_num) && (ret_val == 0);                         
	 i++) {                                                              
      ret_val = msdos_format_write_sec                                
        (fd,                                                          
         start_sector                                                 
         + (i * fmt_params.sectors_per_fat),                          
 800ac08:	2b 82 02 6c 	lw r2,(sp+620)                                 
 800ac0c:	b9 80 08 00 	mv r1,r12                                      
    start_sector = loc_align_object (fmt_params.rsvd_sector_cnt,      
                                     fmt_params.sectors_per_cluster,  
                                     fmt_params.skip_alignment);      
    for (i = 0;                                                       
	 (i < fmt_params.fat_num) && (ret_val == 0);                         
	 i++) {                                                              
 800ac10:	35 8c 00 01 	addi r12,r12,1                                 
      ret_val = msdos_format_write_sec                                
        (fd,                                                          
         start_sector                                                 
         + (i * fmt_params.sectors_per_fat),                          
 800ac14:	fb ff d9 c3 	calli 8001320 <__mulsi3>                       
                                     fmt_params.sectors_per_cluster,  
                                     fmt_params.skip_alignment);      
    for (i = 0;                                                       
	 (i < fmt_params.fat_num) && (ret_val == 0);                         
	 i++) {                                                              
      ret_val = msdos_format_write_sec                                
 800ac18:	2b 83 02 5c 	lw r3,(sp+604)                                 
        (fd,                                                          
 800ac1c:	b4 2f 10 00 	add r2,r1,r15                                  
                                     fmt_params.sectors_per_cluster,  
                                     fmt_params.skip_alignment);      
    for (i = 0;                                                       
	 (i < fmt_params.fat_num) && (ret_val == 0);                         
	 i++) {                                                              
      ret_val = msdos_format_write_sec                                
 800ac20:	b9 c0 20 00 	mv r4,r14                                      
 800ac24:	bb 20 08 00 	mv r1,r25                                      
 800ac28:	fb ff fb cf 	calli 8009b64 <msdos_format_write_sec>         
 800ac2c:	b8 20 58 00 	mv r11,r1                                      
                                                                      
    start_sector = loc_align_object (fmt_params.rsvd_sector_cnt,      
                                     fmt_params.sectors_per_cluster,  
                                     fmt_params.skip_alignment);      
    for (i = 0;                                                       
	 (i < fmt_params.fat_num) && (ret_val == 0);                         
 800ac30:	43 82 02 8c 	lbu r2,(sp+652)                                
 800ac34:	65 63 00 00 	cmpei r3,r11,0                                 
 800ac38:	e8 4c 10 00 	cmpg r2,r2,r12                                 
    }                                                                 
                                                                      
    start_sector = loc_align_object (fmt_params.rsvd_sector_cnt,      
                                     fmt_params.sectors_per_cluster,  
                                     fmt_params.skip_alignment);      
    for (i = 0;                                                       
 800ac3c:	a0 62 10 00 	and r2,r3,r2                                   
 800ac40:	5c 40 ff f2 	bne r2,r0,800ac08 <msdos_format+0xe90>         
         fmt_params.bytes_per_sector,                                 
         tmp_sec);                                                    
    }                                                                 
  }                                                                   
                                                                      
  if (ret_val == 0 && rqdata != NULL && rqdata->sync_device) {        
 800ac44:	65 63 00 00 	cmpei r3,r11,0                                 
 800ac48:	a1 a3 68 00 	and r13,r13,r3                                 
 800ac4c:	45 a0 00 0a 	be r13,r0,800ac74 <msdos_format+0xefc>         
 800ac50:	43 03 00 17 	lbu r3,(r24+23)                                
 800ac54:	34 0b 00 00 	mvi r11,0                                      
 800ac58:	44 60 00 07 	be r3,r0,800ac74 <msdos_format+0xefc>          
  return ioctl(fd, RTEMS_BLKIO_GETDISKDEV, dd_ptr);                   
}                                                                     
                                                                      
static inline int rtems_disk_fd_sync(int fd)                          
{                                                                     
  return ioctl(fd, RTEMS_BLKIO_SYNCDEV);                              
 800ac5c:	78 03 08 02 	mvhi r3,0x802                                  
 800ac60:	38 63 d3 20 	ori r3,r3,0xd320                               
 800ac64:	28 62 00 00 	lw r2,(r3+0)                                   
 800ac68:	bb 20 08 00 	mv r1,r25                                      
 800ac6c:	f8 00 1c 83 	calli 8011e78 <ioctl>                          
 800ac70:	b8 20 58 00 	mv r11,r1                                      
  /*                                                                  
   * cleanup:                                                         
   * sync and unlock disk                                             
   * free any data structures (not needed now)                        
   */                                                                 
  if (fd != -1) {                                                     
 800ac74:	34 03 ff ff 	mvi r3,-1                                      
 800ac78:	47 23 00 03 	be r25,r3,800ac84 <msdos_format+0xf0c>         <== NEVER TAKEN
    close(fd);                                                        
 800ac7c:	bb 20 08 00 	mv r1,r25                                      
 800ac80:	fb ff e0 a8 	calli 8002f20 <close>                          
  }                                                                   
                                                                      
  return ret_val;                                                     
}                                                                     
 800ac84:	b9 60 08 00 	mv r1,r11                                      
 800ac88:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800ac8c:	2b 8b 00 44 	lw r11,(sp+68)                                 
 800ac90:	2b 8c 00 40 	lw r12,(sp+64)                                 
 800ac94:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 800ac98:	2b 8e 00 38 	lw r14,(sp+56)                                 
 800ac9c:	2b 8f 00 34 	lw r15,(sp+52)                                 
 800aca0:	2b 90 00 30 	lw r16,(sp+48)                                 
 800aca4:	2b 91 00 2c 	lw r17,(sp+44)                                 
 800aca8:	2b 92 00 28 	lw r18,(sp+40)                                 
 800acac:	2b 93 00 24 	lw r19,(sp+36)                                 
 800acb0:	2b 94 00 20 	lw r20,(sp+32)                                 
 800acb4:	2b 95 00 1c 	lw r21,(sp+28)                                 
 800acb8:	2b 96 00 18 	lw r22,(sp+24)                                 
 800acbc:	2b 97 00 14 	lw r23,(sp+20)                                 
 800acc0:	2b 98 00 10 	lw r24,(sp+16)                                 
 800acc4:	2b 99 00 0c 	lw r25,(sp+12)                                 
 800acc8:	2b 9b 00 08 	lw fp,(sp+8)                                   
 800accc:	37 9c 03 00 	addi sp,sp,768                                 
 800acd0:	c3 a0 00 00 	ret                                            
                                                                      
  /*                                                                  
   * compute formatting parameters                                    
   */                                                                 
  if (ret_val == 0) {                                                 
    ret_val = msdos_format_determine_fmt_params(fd,rqdata,&fmt_params);
 800acd4:	37 8b 02 5c 	addi r11,sp,604                                
  uint64_t total_size = 0;                                            
  uint32_t data_clusters_cnt;                                         
  uint8_t  iteration_cnt = 0;                                         
  uint8_t  fat_type = UINT8_MAX;                                      
                                                                      
  memset(fmt_params,0,sizeof(*fmt_params));                           
 800acd8:	34 02 00 00 	mvi r2,0                                       
 800acdc:	34 03 00 54 	mvi r3,84                                      
 800ace0:	b9 60 08 00 	mv r1,r11                                      
 800ace4:	f8 00 3e d9 	calli 801a848 <memset>                         
static inline int rtems_disk_fd_get_media_block_size(                 
  int fd,                                                             
  uint32_t *media_block_size                                          
)                                                                     
{                                                                     
  return ioctl(fd, RTEMS_BLKIO_GETMEDIABLKSIZE, media_block_size);    
 800ace8:	78 03 08 02 	mvhi r3,0x802                                  
 800acec:	38 63 d3 24 	ori r3,r3,0xd324                               
 800acf0:	28 62 00 00 	lw r2,(r3+0)                                   
 800acf4:	bb 20 08 00 	mv r1,r25                                      
 800acf8:	b9 60 18 00 	mv r3,r11                                      
 800acfc:	f8 00 1c 5f 	calli 8011e78 <ioctl>                          
 800ad00:	b8 20 b8 00 	mv r23,r1                                      
   * At least one thing we don't have to magically guess...           
   */                                                                 
  if (ret_val == 0) {                                                 
    ret_val = rtems_disk_fd_get_media_block_size(fd, &fmt_params->bytes_per_sector);
  }                                                                   
  if (ret_val == 0) {                                                 
 800ad04:	5c 20 fd a7 	bne r1,r0,800a3a0 <msdos_format+0x628>         <== NEVER TAKEN
 800ad08:	e3 ff fc 57 	bi 8009e64 <msdos_format+0xec>                 
  if (ret_val == 0) {                                                 
      const char *from;                                               
      char        *to = fmt_params->VolLabel;                         
      int          cnt;                                               
      from = ""; /* default: make "from" point to empty string */     
    if ((rqdata != NULL) &&                                           
 800ad0c:	5f 00 fe 04 	bne r24,r0,800a51c <msdos_format+0x7a4>        
 800ad10:	e3 ff fe 08 	bi 800a530 <msdos_format+0x7b8>                
{                                                                     
  int ret_val = 0;                                                    
  int rc;                                                             
  struct timeval time_value;                                          
                                                                      
  rc = rtems_clock_get_tod_timeval(&time_value);                      
 800ad14:	37 81 02 f8 	addi r1,sp,760                                 
 800ad18:	f8 00 1e d7 	calli 8012874 <rtems_clock_get_tod_timeval>    
  if (rc == RTEMS_SUCCESSFUL) {                                       
 800ad1c:	44 20 fe 1c 	be r1,r0,800a58c <msdos_format+0x814>          <== NEVER TAKEN
 800ad20:	e3 ff fe 1f 	bi 800a59c <msdos_format+0x824>                
    ret_val = msdos_format_read_sec(fd,                               
                                    0,                                
                                    fmt_params.bytes_per_sector,      
                                    tmp_sec);                         
    if (ret_val == 0) {                                               
      msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,       
 800ad24:	78 03 08 02 	mvhi r3,0x802                                  
 800ad28:	38 63 d3 04 	ori r3,r3,0xd304                               
 800ad2c:	bb 00 08 00 	mv r1,r24                                      
 800ad30:	34 02 00 02 	mvi r2,2                                       
 800ad34:	fb ff fb 72 	calli 8009afc <msdos_format_printf>            
{                                                                     
  uint32_t  total_sectors_num16 = 0;                                  
  uint32_t  total_sectors_num32 = 0;                                  
                                                                      
  /* store total sector count in either 16 or 32 bit field in mbr */  
  if (fmt_params->totl_sector_cnt < 0x10000) {                        
 800ad38:	2b 8b 02 60 	lw r11,(sp+608)                                
 800ad3c:	38 03 ff ff 	mvu r3,0xffff                                  
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
  uint32_t  total_sectors_num16 = 0;                                  
  uint32_t  total_sectors_num32 = 0;                                  
 800ad40:	34 0c 00 00 	mvi r12,0                                      
                                                                      
  /* store total sector count in either 16 or 32 bit field in mbr */  
  if (fmt_params->totl_sector_cnt < 0x10000) {                        
 800ad44:	50 6b fe 3a 	bgeu r3,r11,800a62c <msdos_format+0x8b4>       
 800ad48:	e3 ff fe 37 	bi 800a624 <msdos_format+0x8ac>                
    }                                                                 
                                                                      
    start_sector = loc_align_object (fmt_params.rsvd_sector_cnt,      
                                     fmt_params.sectors_per_cluster,  
                                     fmt_params.skip_alignment);      
    for (i = 0;                                                       
 800ad4c:	ba e0 58 00 	mv r11,r23                                     
 800ad50:	e3 ff ff bd 	bi 800ac44 <msdos_format+0xecc>                
                                                                      

08009bdc <msdos_format_fill_sectors>: ) /*-------------------------------------------------------------------------*\ | Return Value: | | 0, if success, -1 and errno if failed | \*=========================================================================*/ {
 8009bdc:	37 9c ff cc 	addi sp,sp,-52                                 
 8009be0:	5b 8b 00 34 	sw (sp+52),r11                                 
 8009be4:	5b 8c 00 30 	sw (sp+48),r12                                 
 8009be8:	5b 8d 00 2c 	sw (sp+44),r13                                 
 8009bec:	5b 8e 00 28 	sw (sp+40),r14                                 
 8009bf0:	5b 8f 00 24 	sw (sp+36),r15                                 
 8009bf4:	5b 90 00 20 	sw (sp+32),r16                                 
 8009bf8:	5b 91 00 1c 	sw (sp+28),r17                                 
 8009bfc:	5b 92 00 18 	sw (sp+24),r18                                 
 8009c00:	5b 93 00 14 	sw (sp+20),r19                                 
 8009c04:	5b 94 00 10 	sw (sp+16),r20                                 
 8009c08:	5b 95 00 0c 	sw (sp+12),r21                                 
 8009c0c:	5b 96 00 08 	sw (sp+8),r22                                  
 8009c10:	5b 9d 00 04 	sw (sp+4),ra                                   
 8009c14:	b8 20 70 00 	mv r14,r1                                      
                                                                      
  /*                                                                  
   * allocate and fill buffer                                         
   */                                                                 
  if (ret_val == 0) {                                                 
    fill_buffer = malloc(sector_size);                                
 8009c18:	b8 a0 08 00 	mv r1,r5                                       
 )                                                                    
/*-------------------------------------------------------------------------*\
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
 8009c1c:	b8 40 b0 00 	mv r22,r2                                      
 8009c20:	b8 60 68 00 	mv r13,r3                                      
 8009c24:	b8 80 88 00 	mv r17,r4                                      
 8009c28:	b8 a0 98 00 	mv r19,r5                                      
 8009c2c:	b8 c0 58 00 	mv r11,r6                                      
                                                                      
  /*                                                                  
   * allocate and fill buffer                                         
   */                                                                 
  if (ret_val == 0) {                                                 
    fill_buffer = malloc(sector_size);                                
 8009c30:	fb ff e6 7d 	calli 8003624 <malloc>                         
 8009c34:	b8 20 60 00 	mv r12,r1                                      
    if (fill_buffer == NULL) {                                        
 8009c38:	5c 20 00 06 	bne r1,r0,8009c50 <msdos_format_fill_sectors+0x74><== ALWAYS TAKEN
      errno = ENOMEM;                                                 
 8009c3c:	f8 00 3f 74 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 8009c40:	34 02 00 0c 	mvi r2,12                                      <== NOT EXECUTED
 8009c44:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
      ret_val = -1;                                                   
 8009c48:	34 0b ff ff 	mvi r11,-1                                     <== NOT EXECUTED
 8009c4c:	e0 00 00 05 	bi 8009c60 <msdos_format_fill_sectors+0x84>    <== NOT EXECUTED
    }                                                                 
    else {                                                            
      memset(fill_buffer,fill_byte,sector_size);                      
 8009c50:	b9 60 10 00 	mv r2,r11                                      
 8009c54:	ba 60 18 00 	mv r3,r19                                      
 8009c58:	f8 00 42 fc 	calli 801a848 <memset>                         
/*-------------------------------------------------------------------------*\
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
  int ret_val = 0;                                                    
 8009c5c:	34 0b 00 00 	mvi r11,0                                      
    else {                                                            
      memset(fill_buffer,fill_byte,sector_size);                      
    }                                                                 
  }                                                                   
                                                                      
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,           
 8009c60:	78 03 08 02 	mvhi r3,0x802                                  
 8009c64:	b9 c0 08 00 	mv r1,r14                                      
 8009c68:	34 02 00 02 	mvi r2,2                                       
 8009c6c:	38 63 d1 cc 	ori r3,r3,0xd1cc                               
 8009c70:	fb ff ff a3 	calli 8009afc <msdos_format_printf>            
 8009c74:	ba 20 08 00 	mv r1,r17                                      
 8009c78:	34 02 00 64 	mvi r2,100                                     
 8009c7c:	fb ff dd a9 	calli 8001320 <__mulsi3>                       
  while ((ret_val == 0) &&                                            
	 (sector_cnt > 0)) {                                                 
    int percent = (sector_cnt * 100) / total_sectors;                 
    if (percent != last_percent) {                                    
      if ((percent & 1) == 0)                                         
        msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, ".");
 8009c80:	78 0f 08 02 	mvhi r15,0x802                                 
    else {                                                            
      memset(fill_buffer,fill_byte,sector_size);                      
    }                                                                 
  }                                                                   
                                                                      
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,           
 8009c84:	b8 20 90 00 	mv r18,r1                                      
                       "Filling : ");                                 
  /*                                                                  
   * write to consecutive sectors                                     
   */                                                                 
  while ((ret_val == 0) &&                                            
 8009c88:	ba 20 80 00 	mv r16,r17                                     
\*=========================================================================*/
{                                                                     
  int ret_val = 0;                                                    
  char *fill_buffer = NULL;                                           
  uint32_t total_sectors = sector_cnt;                                
  int last_percent = -1;                                              
 8009c8c:	34 15 ff ff 	mvi r21,-1                                     
  while ((ret_val == 0) &&                                            
	 (sector_cnt > 0)) {                                                 
    int percent = (sector_cnt * 100) / total_sectors;                 
    if (percent != last_percent) {                                    
      if ((percent & 1) == 0)                                         
        msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, ".");
 8009c90:	39 ef cf a4 	ori r15,r15,0xcfa4                             
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,           
                       "Filling : ");                                 
  /*                                                                  
   * write to consecutive sectors                                     
   */                                                                 
  while ((ret_val == 0) &&                                            
 8009c94:	e0 00 00 16 	bi 8009cec <msdos_format_fill_sectors+0x110>   
	 (sector_cnt > 0)) {                                                 
    int percent = (sector_cnt * 100) / total_sectors;                 
 8009c98:	ba 40 08 00 	mv r1,r18                                      
 8009c9c:	ba 20 10 00 	mv r2,r17                                      
 8009ca0:	f8 00 89 ac 	calli 802c350 <__udivsi3>                      
 8009ca4:	b8 20 30 00 	mv r6,r1                                       
    if (percent != last_percent) {                                    
 8009ca8:	44 35 00 08 	be r1,r21,8009cc8 <msdos_format_fill_sectors+0xec>
      if ((percent & 1) == 0)                                         
 8009cac:	20 21 00 01 	andi r1,r1,0x1                                 
 8009cb0:	b8 c0 a8 00 	mv r21,r6                                      
 8009cb4:	5c 20 00 05 	bne r1,r0,8009cc8 <msdos_format_fill_sectors+0xec>
        msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, ".");
 8009cb8:	b9 c0 08 00 	mv r1,r14                                      
 8009cbc:	34 02 00 02 	mvi r2,2                                       
 8009cc0:	b9 e0 18 00 	mv r3,r15                                      
 8009cc4:	fb ff ff 8e 	calli 8009afc <msdos_format_printf>            
      last_percent = percent;                                         
    }                                                                 
    ret_val = msdos_format_write_sec(fd,start_sector,sector_size,fill_buffer);
 8009cc8:	b9 a0 10 00 	mv r2,r13                                      
 8009ccc:	ba c0 08 00 	mv r1,r22                                      
 8009cd0:	ba 60 18 00 	mv r3,r19                                      
 8009cd4:	b9 80 20 00 	mv r4,r12                                      
 8009cd8:	fb ff ff a3 	calli 8009b64 <msdos_format_write_sec>         
 8009cdc:	b8 20 58 00 	mv r11,r1                                      
    start_sector++;                                                   
 8009ce0:	35 ad 00 01 	addi r13,r13,1                                 
    sector_cnt--;                                                     
 8009ce4:	36 10 ff ff 	addi r16,r16,-1                                
 8009ce8:	36 52 ff 9c 	addi r18,r18,-100                              
                       "Filling : ");                                 
  /*                                                                  
   * write to consecutive sectors                                     
   */                                                                 
  while ((ret_val == 0) &&                                            
	 (sector_cnt > 0)) {                                                 
 8009cec:	7e 14 00 00 	cmpnei r20,r16,0                               
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,           
                       "Filling : ");                                 
  /*                                                                  
   * write to consecutive sectors                                     
   */                                                                 
  while ((ret_val == 0) &&                                            
 8009cf0:	65 61 00 00 	cmpei r1,r11,0                                 
 8009cf4:	a2 81 a0 00 	and r20,r20,r1                                 
 8009cf8:	5e 80 ff e8 	bne r20,r0,8009c98 <msdos_format_fill_sectors+0xbc>
    ret_val = msdos_format_write_sec(fd,start_sector,sector_size,fill_buffer);
    start_sector++;                                                   
    sector_cnt--;                                                     
  }                                                                   
                                                                      
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, "\n");    
 8009cfc:	78 03 08 02 	mvhi r3,0x802                                  
 8009d00:	b9 c0 08 00 	mv r1,r14                                      
 8009d04:	34 02 00 02 	mvi r2,2                                       
 8009d08:	38 63 d2 d0 	ori r3,r3,0xd2d0                               
 8009d0c:	fb ff ff 7c 	calli 8009afc <msdos_format_printf>            
                                                                      
  if (ret_val)                                                        
 8009d10:	45 74 00 07 	be r11,r20,8009d2c <msdos_format_fill_sectors+0x150><== ALWAYS TAKEN
    msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_INFO,           
 8009d14:	78 03 08 02 	mvhi r3,0x802                                  <== NOT EXECUTED
 8009d18:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 8009d1c:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 8009d20:	38 63 d1 d8 	ori r3,r3,0xd1d8                               <== NOT EXECUTED
 8009d24:	b9 a0 20 00 	mv r4,r13                                      <== NOT EXECUTED
 8009d28:	fb ff ff 75 	calli 8009afc <msdos_format_printf>            <== NOT EXECUTED
                         "filling error on sector: %d\n", start_sector);
                                                                      
  /*                                                                  
   * cleanup                                                          
   */                                                                 
  if (fill_buffer != NULL) {                                          
 8009d2c:	45 80 00 03 	be r12,r0,8009d38 <msdos_format_fill_sectors+0x15c><== NEVER TAKEN
    free(fill_buffer);                                                
 8009d30:	b9 80 08 00 	mv r1,r12                                      
 8009d34:	fb ff e4 a6 	calli 8002fcc <free>                           
    fill_buffer = NULL;                                               
  }                                                                   
  return ret_val;                                                     
}                                                                     
 8009d38:	b9 60 08 00 	mv r1,r11                                      
 8009d3c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009d40:	2b 8b 00 34 	lw r11,(sp+52)                                 
 8009d44:	2b 8c 00 30 	lw r12,(sp+48)                                 
 8009d48:	2b 8d 00 2c 	lw r13,(sp+44)                                 
 8009d4c:	2b 8e 00 28 	lw r14,(sp+40)                                 
 8009d50:	2b 8f 00 24 	lw r15,(sp+36)                                 
 8009d54:	2b 90 00 20 	lw r16,(sp+32)                                 
 8009d58:	2b 91 00 1c 	lw r17,(sp+28)                                 
 8009d5c:	2b 92 00 18 	lw r18,(sp+24)                                 
 8009d60:	2b 93 00 14 	lw r19,(sp+20)                                 
 8009d64:	2b 94 00 10 	lw r20,(sp+16)                                 
 8009d68:	2b 95 00 0c 	lw r21,(sp+12)                                 
 8009d6c:	2b 96 00 08 	lw r22,(sp+8)                                  
 8009d70:	37 9c 00 34 	addi sp,sp,52                                  
 8009d74:	c3 a0 00 00 	ret                                            
                                                                      

08009afc <msdos_format_printf>: */ static void msdos_format_printf (const msdos_format_request_param_t *rqdata, int info_level, const char *format, ...) {
 8009afc:	37 9c ff e0 	addi sp,sp,-32                                 
 8009b00:	5b 8b 00 08 	sw (sp+8),r11                                  
 8009b04:	5b 9d 00 04 	sw (sp+4),ra                                   
 8009b08:	5b 83 00 0c 	sw (sp+12),r3                                  
 8009b0c:	5b 84 00 10 	sw (sp+16),r4                                  
 8009b10:	5b 85 00 14 	sw (sp+20),r5                                  
 8009b14:	5b 86 00 18 	sw (sp+24),r6                                  
 8009b18:	5b 87 00 1c 	sw (sp+28),r7                                  
 8009b1c:	5b 88 00 20 	sw (sp+32),r8                                  
  va_list args;                                                       
  va_start (args, format);                                            
  if (rqdata != NULL && rqdata->info_level >= info_level)             
 8009b20:	44 20 00 0d 	be r1,r0,8009b54 <msdos_format_printf+0x58>    
 8009b24:	28 21 00 18 	lw r1,(r1+24)                                  
 8009b28:	48 41 00 0b 	bg r2,r1,8009b54 <msdos_format_printf+0x58>    <== ALWAYS TAKEN
  {                                                                   
    vfprintf (stdout, format, args);                                  
 8009b2c:	78 0b 08 02 	mvhi r11,0x802                                 <== NOT EXECUTED
 8009b30:	39 6b f2 30 	ori r11,r11,0xf230                             <== NOT EXECUTED
 8009b34:	29 61 00 00 	lw r1,(r11+0)                                  <== NOT EXECUTED
 8009b38:	b8 60 10 00 	mv r2,r3                                       <== NOT EXECUTED
 8009b3c:	37 83 00 10 	addi r3,sp,16                                  <== NOT EXECUTED
 8009b40:	28 21 00 08 	lw r1,(r1+8)                                   <== NOT EXECUTED
 8009b44:	f8 00 5f a8 	calli 80219e4 <vfprintf>                       <== NOT EXECUTED
    fflush (stdout);                                                  
 8009b48:	29 61 00 00 	lw r1,(r11+0)                                  <== NOT EXECUTED
 8009b4c:	28 21 00 08 	lw r1,(r1+8)                                   <== NOT EXECUTED
 8009b50:	f8 00 40 bf 	calli 8019e4c <fflush>                         <== NOT EXECUTED
  }                                                                   
  va_end (args);                                                      
}                                                                     
 8009b54:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009b58:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8009b5c:	37 9c 00 20 	addi sp,sp,32                                  
 8009b60:	c3 a0 00 00 	ret                                            
                                                                      

08009b64 <msdos_format_write_sec>: ) /*-------------------------------------------------------------------------*\ | Return Value: | | 0, if success, -1 and errno if failed | \*=========================================================================*/ {
 8009b64:	37 9c ff f0 	addi sp,sp,-16                                 
 8009b68:	5b 8b 00 10 	sw (sp+16),r11                                 
 8009b6c:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8009b70:	5b 8d 00 08 	sw (sp+8),r13                                  
 8009b74:	5b 9d 00 04 	sw (sp+4),ra                                   
 8009b78:	b8 20 60 00 	mv r12,r1                                      
  int ret_val = 0;                                                    
                                                                      
  if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {     
 8009b7c:	b8 60 08 00 	mv r1,r3                                       
 )                                                                    
/*-------------------------------------------------------------------------*\
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
 8009b80:	b8 60 58 00 	mv r11,r3                                      
 8009b84:	b8 80 68 00 	mv r13,r4                                      
  int ret_val = 0;                                                    
                                                                      
  if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {     
 8009b88:	fb ff dd e6 	calli 8001320 <__mulsi3>                       
 8009b8c:	b8 20 10 00 	mv r2,r1                                       
 8009b90:	34 03 00 00 	mvi r3,0                                       
 8009b94:	b9 80 08 00 	mv r1,r12                                      
 8009b98:	f8 00 20 e1 	calli 8011f1c <lseek>                          
 8009b9c:	34 05 ff ff 	mvi r5,-1                                      
 8009ba0:	48 01 00 08 	bg r0,r1,8009bc0 <msdos_format_write_sec+0x5c> <== NEVER TAKEN
    ret_val = -1;                                                     
  }                                                                   
  if (ret_val == 0) {                                                 
    if (0 > write(fd,buffer,sector_size)) {                           
 8009ba4:	b9 a0 10 00 	mv r2,r13                                      
 8009ba8:	b9 60 18 00 	mv r3,r11                                      
 8009bac:	b9 80 08 00 	mv r1,r12                                      
 8009bb0:	fb ff ee 30 	calli 8005470 <write>                          
 8009bb4:	34 02 00 1f 	mvi r2,31                                      
 8009bb8:	f8 00 89 96 	calli 802c210 <__lshrsi3>                      
 8009bbc:	c8 01 28 00 	sub r5,r0,r1                                   
      ret_val = -1;                                                   
    }                                                                 
  }                                                                   
                                                                      
  return ret_val;                                                     
}                                                                     
 8009bc0:	b8 a0 08 00 	mv r1,r5                                       
 8009bc4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009bc8:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8009bcc:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8009bd0:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8009bd4:	37 9c 00 10 	addi sp,sp,16                                  
 8009bd8:	c3 a0 00 00 	ret                                            
                                                                      

08016fd8 <msdos_get_dotdot_dir_info_cluster_num_and_offset>: rtems_filesystem_mount_table_entry_t *mt_entry, uint32_t cln, fat_dir_pos_t *dir_pos, char *dir_entry ) {
 8016fd8:	37 9c ff 90 	addi sp,sp,-112                                
 8016fdc:	5b 8b 00 2c 	sw (sp+44),r11                                 
 8016fe0:	5b 8c 00 28 	sw (sp+40),r12                                 
 8016fe4:	5b 8d 00 24 	sw (sp+36),r13                                 
 8016fe8:	5b 8e 00 20 	sw (sp+32),r14                                 
 8016fec:	5b 8f 00 1c 	sw (sp+28),r15                                 
 8016ff0:	5b 90 00 18 	sw (sp+24),r16                                 
 8016ff4:	5b 91 00 14 	sw (sp+20),r17                                 
 8016ff8:	5b 92 00 10 	sw (sp+16),r18                                 
 8016ffc:	5b 93 00 0c 	sw (sp+12),r19                                 
 8017000:	5b 94 00 08 	sw (sp+8),r20                                  
 8017004:	5b 9d 00 04 	sw (sp+4),ra                                   
    int              rc = RC_OK;                                      
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
 8017008:	28 2d 00 08 	lw r13,(r1+8)                                  
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    uint32_t                              cln,                        
    fat_dir_pos_t                        *dir_pos,                    
    char                                 *dir_entry                   
    )                                                                 
{                                                                     
 801700c:	b8 20 80 00 	mv r16,r1                                      
 8017010:	b8 40 60 00 	mv r12,r2                                      
 8017014:	b8 60 70 00 	mv r14,r3                                      
    uint32_t         cl4find = 0;                                     
                                                                      
    /*                                                                
     * open fat-file corresponded to ".."                             
     */                                                               
    rc = fat_file_open(&fs_info->fat, dir_pos, &fat_fd);              
 8017018:	b8 60 10 00 	mv r2,r3                                       
 801701c:	b9 a0 08 00 	mv r1,r13                                      
 8017020:	37 83 00 70 	addi r3,sp,112                                 
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    uint32_t                              cln,                        
    fat_dir_pos_t                        *dir_pos,                    
    char                                 *dir_entry                   
    )                                                                 
{                                                                     
 8017024:	b8 80 98 00 	mv r19,r4                                      
    int              rc = RC_OK;                                      
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
    fat_file_fd_t   *fat_fd = NULL;                                   
 8017028:	5b 80 00 70 	sw (sp+112),r0                                 
    uint32_t         cl4find = 0;                                     
                                                                      
    /*                                                                
     * open fat-file corresponded to ".."                             
     */                                                               
    rc = fat_file_open(&fs_info->fat, dir_pos, &fat_fd);              
 801702c:	fb ff e0 18 	calli 800f08c <fat_file_open>                  
 8017030:	b8 20 58 00 	mv r11,r1                                      
    if (rc != RC_OK)                                                  
 8017034:	5c 20 00 b8 	bne r1,r0,8017314 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x33c><== NEVER TAKEN
        return rc;                                                    
                                                                      
    fat_fd->cln = cln;                                                
 8017038:	2b 82 00 70 	lw r2,(sp+112)                                 
    fat_fd->fat_file_type = FAT_DIRECTORY;                            
    fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                        
 801703c:	78 01 00 20 	mvhi r1,0x20                                   
 8017040:	58 41 00 14 	sw (r2+20),r1                                  
     */                                                               
    rc = fat_file_open(&fs_info->fat, dir_pos, &fat_fd);              
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    fat_fd->cln = cln;                                                
 8017044:	58 4c 00 1c 	sw (r2+28),r12                                 
    fat_fd->fat_file_type = FAT_DIRECTORY;                            
 8017048:	58 40 00 10 	sw (r2+16),r0                                  
    fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                        
                                                                      
    fat_fd->map.file_cln = 0;                                         
 801704c:	58 40 00 34 	sw (r2+52),r0                                  
    fat_fd->map.disk_cln = fat_fd->cln;                               
 8017050:	58 4c 00 38 	sw (r2+56),r12                                 
                                                                      
    rc = fat_file_size(&fs_info->fat, fat_fd);                        
 8017054:	b9 a0 08 00 	mv r1,r13                                      
 8017058:	fb ff e3 07 	calli 800fc74 <fat_file_size>                  
 801705c:	b8 20 58 00 	mv r11,r1                                      
    if (rc != RC_OK)                                                  
 8017060:	5c 20 00 18 	bne r1,r0,80170c0 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0xe8><== NEVER TAKEN
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
                                                                      
    /* find "." node in opened directory */                           
    memset(dot_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);           
 8017064:	37 8f 00 50 	addi r15,sp,80                                 
 8017068:	34 02 00 00 	mvi r2,0                                       
 801706c:	34 03 00 20 	mvi r3,32                                      
 8017070:	b9 e0 08 00 	mv r1,r15                                      
    msdos_long_to_short(".", 1, dot_node, MSDOS_SHORT_NAME_LEN);      
 8017074:	78 0b 08 02 	mvhi r11,0x802                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
                                                                      
    /* find "." node in opened directory */                           
    memset(dot_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);           
 8017078:	f8 00 0d f4 	calli 801a848 <memset>                         
    msdos_long_to_short(".", 1, dot_node, MSDOS_SHORT_NAME_LEN);      
 801707c:	39 6b cf a4 	ori r11,r11,0xcfa4                             
 8017080:	b9 60 08 00 	mv r1,r11                                      
 8017084:	34 02 00 01 	mvi r2,1                                       
 8017088:	b9 e0 18 00 	mv r3,r15                                      
 801708c:	34 04 00 0b 	mvi r4,11                                      
 8017090:	fb ff f9 fe 	calli 8015888 <msdos_long_to_short>            
    rc = msdos_find_name_in_fat_file(mt_entry, fat_fd, false, ".", 1, 
 8017094:	2b 82 00 70 	lw r2,(sp+112)                                 
 8017098:	b9 60 20 00 	mv r4,r11                                      
 801709c:	ba 00 08 00 	mv r1,r16                                      
 80170a0:	34 03 00 00 	mvi r3,0                                       
 80170a4:	34 05 00 01 	mvi r5,1                                       
 80170a8:	34 06 00 01 	mvi r6,1                                       
 80170ac:	b9 c0 38 00 	mv r7,r14                                      
 80170b0:	b9 e0 40 00 	mv r8,r15                                      
 80170b4:	fb ff fc 1b 	calli 8016120 <msdos_find_name_in_fat_file>    
 80170b8:	b8 20 58 00 	mv r11,r1                                      
                                     MSDOS_NAME_SHORT, dir_pos, dot_node);
                                                                      
    if (rc != RC_OK)                                                  
 80170bc:	44 20 00 04 	be r1,r0,80170cc <msdos_get_dotdot_dir_info_cluster_num_and_offset+0xf4><== ALWAYS TAKEN
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
 80170c0:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 80170c4:	2b 82 00 70 	lw r2,(sp+112)                                 <== NOT EXECUTED
 80170c8:	e0 00 00 8d 	bi 80172fc <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x324><== NOT EXECUTED
        return rc;                                                    
    }                                                                 
                                                                      
    /* find ".." node in opened directory */                          
    memset(dotdot_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);        
 80170cc:	37 8c 00 30 	addi r12,sp,48                                 
 80170d0:	b9 80 08 00 	mv r1,r12                                      
 80170d4:	34 02 00 00 	mvi r2,0                                       
 80170d8:	34 03 00 20 	mvi r3,32                                      
    msdos_long_to_short("..", 2, dotdot_node, MSDOS_SHORT_NAME_LEN);  
 80170dc:	78 0b 08 02 	mvhi r11,0x802                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
                                                                      
    /* find ".." node in opened directory */                          
    memset(dotdot_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);        
 80170e0:	f8 00 0d da 	calli 801a848 <memset>                         
    msdos_long_to_short("..", 2, dotdot_node, MSDOS_SHORT_NAME_LEN);  
 80170e4:	39 6b d6 ec 	ori r11,r11,0xd6ec                             
 80170e8:	b9 80 18 00 	mv r3,r12                                      
 80170ec:	b9 60 08 00 	mv r1,r11                                      
 80170f0:	34 02 00 02 	mvi r2,2                                       
 80170f4:	34 04 00 0b 	mvi r4,11                                      
 80170f8:	fb ff f9 e4 	calli 8015888 <msdos_long_to_short>            
    rc = msdos_find_name_in_fat_file(mt_entry, fat_fd, false, "..", 2,
 80170fc:	2b 82 00 70 	lw r2,(sp+112)                                 
 8017100:	b9 60 20 00 	mv r4,r11                                      
 8017104:	b9 80 40 00 	mv r8,r12                                      
 8017108:	ba 00 08 00 	mv r1,r16                                      
 801710c:	34 03 00 00 	mvi r3,0                                       
 8017110:	34 05 00 02 	mvi r5,2                                       
 8017114:	34 06 00 01 	mvi r6,1                                       
 8017118:	b9 c0 38 00 	mv r7,r14                                      
 801711c:	fb ff fc 01 	calli 8016120 <msdos_find_name_in_fat_file>    
 8017120:	b8 20 58 00 	mv r11,r1                                      
 8017124:	2b 8c 00 70 	lw r12,(sp+112)                                
                                     MSDOS_NAME_SHORT, dir_pos,       
                                     dotdot_node);                    
                                                                      
    if (rc != RC_OK)                                                  
 8017128:	5c 20 00 73 	bne r1,r0,80172f4 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x31c><== NEVER TAKEN
    }                                                                 
                                                                      
    cl4find = MSDOS_EXTRACT_CLUSTER_NUM(dot_node);                    
                                                                      
    /* close fat-file corresponded to ".." directory */               
    rc = fat_file_close(&fs_info->fat, fat_fd);                       
 801712c:	b9 a0 08 00 	mv r1,r13                                      
 8017130:	b9 80 10 00 	mv r2,r12                                      
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
                                                                      
    cl4find = MSDOS_EXTRACT_CLUSTER_NUM(dot_node);                    
 8017134:	2d f1 00 1a 	lhu r17,(r15+26)                               
 8017138:	2d ef 00 14 	lhu r15,(r15+20)                               
                                                                      
    /* close fat-file corresponded to ".." directory */               
    rc = fat_file_close(&fs_info->fat, fat_fd);                       
 801713c:	fb ff e1 0d 	calli 800f570 <fat_file_close>                 
 8017140:	b8 20 58 00 	mv r11,r1                                      
    if ( rc != RC_OK )                                                
 8017144:	5c 20 00 74 	bne r1,r0,8017314 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x33c><== NEVER TAKEN
        return rc;                                                    
                                                                      
    if ( (MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)               
 8017148:	2f 92 00 44 	lhu r18,(sp+68)                                
 801714c:	34 02 00 08 	mvi r2,8                                       
 8017150:	2f 8c 00 4a 	lhu r12,(sp+74)                                
 8017154:	ba 40 08 00 	mv r1,r18                                      
 8017158:	fb ff a8 24 	calli 80011e8 <__ashlsi3>                      
 801715c:	b8 20 a0 00 	mv r20,r1                                      
 8017160:	34 02 00 08 	mvi r2,8                                       
 8017164:	ba 40 08 00 	mv r1,r18                                      
 8017168:	f8 00 54 2a 	calli 802c210 <__lshrsi3>                      
 801716c:	ba 81 08 00 	or r1,r20,r1                                   
 8017170:	34 02 00 10 	mvi r2,16                                      
 8017174:	20 21 ff ff 	andi r1,r1,0xffff                              
 8017178:	fb ff a8 1c 	calli 80011e8 <__ashlsi3>                      
 801717c:	b8 20 90 00 	mv r18,r1                                      
 8017180:	34 02 00 08 	mvi r2,8                                       
 8017184:	b9 80 08 00 	mv r1,r12                                      
 8017188:	fb ff a8 18 	calli 80011e8 <__ashlsi3>                      
 801718c:	b8 20 a0 00 	mv r20,r1                                      
 8017190:	34 02 00 08 	mvi r2,8                                       
 8017194:	b9 80 08 00 	mv r1,r12                                      
 8017198:	f8 00 54 1e 	calli 802c210 <__lshrsi3>                      
 801719c:	ba 81 10 00 	or r2,r20,r1                                   
 80171a0:	20 42 ff ff 	andi r2,r2,0xffff                              
 80171a4:	ba 42 10 00 	or r2,r18,r2                                   
 80171a8:	5c 4b 00 07 	bne r2,r11,80171c4 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x1ec><== ALWAYS TAKEN
    fat_dir_pos_t *dir_pos                                            
    )                                                                 
{                                                                     
  dir_pos->sname.cln = 0;                                             
  dir_pos->sname.ofs = 0;                                             
  dir_pos->lname.cln = FAT_FILE_SHORT_NAME;                           
 80171ac:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 80171b0:	59 c1 00 08 	sw (r14+8),r1                                  <== NOT EXECUTED
  dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;                           
 80171b4:	59 c1 00 0c 	sw (r14+12),r1                                 <== NOT EXECUTED
        /*                                                            
         * we handle root dir for all FAT types in the same way with the
         * ordinary directories ( through fat_file_* calls )          
         */                                                           
        fat_dir_pos_init(dir_pos);                                    
        dir_pos->sname.cln = FAT_ROOTDIR_CLUSTER_NUM;                 
 80171b8:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
fat_dir_pos_init(                                                     
    fat_dir_pos_t *dir_pos                                            
    )                                                                 
{                                                                     
  dir_pos->sname.cln = 0;                                             
  dir_pos->sname.ofs = 0;                                             
 80171bc:	59 c0 00 04 	sw (r14+4),r0                                  <== NOT EXECUTED
 80171c0:	59 c1 00 00 	sw (r14+0),r1                                  <== NOT EXECUTED
    }                                                                 
                                                                      
    /* open fat-file corresponded to second ".." */                   
    rc = fat_file_open(&fs_info->fat, dir_pos, &fat_fd);              
 80171c4:	b9 a0 08 00 	mv r1,r13                                      
 80171c8:	b9 c0 10 00 	mv r2,r14                                      
 80171cc:	37 83 00 70 	addi r3,sp,112                                 
 80171d0:	fb ff df af 	calli 800f08c <fat_file_open>                  
 80171d4:	b8 20 58 00 	mv r11,r1                                      
    if (rc != RC_OK)                                                  
 80171d8:	5c 20 00 4f 	bne r1,r0,8017314 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x33c><== NEVER TAKEN
        return rc;                                                    
                                                                      
    if ((MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)                
 80171dc:	2f 92 00 44 	lhu r18,(sp+68)                                
 80171e0:	34 02 00 08 	mvi r2,8                                       
 80171e4:	2f 8c 00 4a 	lhu r12,(sp+74)                                
 80171e8:	ba 40 08 00 	mv r1,r18                                      
 80171ec:	fb ff a7 ff 	calli 80011e8 <__ashlsi3>                      
 80171f0:	b8 20 a0 00 	mv r20,r1                                      
 80171f4:	34 02 00 08 	mvi r2,8                                       
 80171f8:	ba 40 08 00 	mv r1,r18                                      
 80171fc:	f8 00 54 05 	calli 802c210 <__lshrsi3>                      
 8017200:	ba 81 08 00 	or r1,r20,r1                                   
 8017204:	34 02 00 10 	mvi r2,16                                      
 8017208:	20 21 ff ff 	andi r1,r1,0xffff                              
 801720c:	fb ff a7 f7 	calli 80011e8 <__ashlsi3>                      
 8017210:	b8 20 90 00 	mv r18,r1                                      
 8017214:	34 02 00 08 	mvi r2,8                                       
 8017218:	b9 80 08 00 	mv r1,r12                                      
 801721c:	fb ff a7 f3 	calli 80011e8 <__ashlsi3>                      
 8017220:	b8 20 a0 00 	mv r20,r1                                      
 8017224:	34 02 00 08 	mvi r2,8                                       
 8017228:	b9 80 08 00 	mv r1,r12                                      
 801722c:	f8 00 53 f9 	calli 802c210 <__lshrsi3>                      
 8017230:	ba 81 10 00 	or r2,r20,r1                                   
 8017234:	20 42 ff ff 	andi r2,r2,0xffff                              
 8017238:	ba 42 08 00 	or r1,r18,r2                                   
 801723c:	2b 8c 00 70 	lw r12,(sp+112)                                
 8017240:	5c 2b 00 02 	bne r1,r11,8017248 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x270><== ALWAYS TAKEN
        fat_fd->cln = fs_info->fat.vol.rdir_cl;                       
 8017244:	29 a1 00 3c 	lw r1,(r13+60)                                 <== NOT EXECUTED
    else                                                              
        fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node);         
                                                                      
    fat_fd->fat_file_type = FAT_DIRECTORY;                            
 8017248:	2b 82 00 70 	lw r2,(sp+112)                                 
        return rc;                                                    
                                                                      
    if ((MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)                
        fat_fd->cln = fs_info->fat.vol.rdir_cl;                       
    else                                                              
        fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node);         
 801724c:	59 81 00 1c 	sw (r12+28),r1                                 
                                                                      
    fat_fd->fat_file_type = FAT_DIRECTORY;                            
    fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                        
 8017250:	78 01 00 20 	mvhi r1,0x20                                   
 8017254:	58 41 00 14 	sw (r2+20),r1                                  
                                                                      
    fat_fd->map.file_cln = 0;                                         
    fat_fd->map.disk_cln = fat_fd->cln;                               
 8017258:	28 41 00 1c 	lw r1,(r2+28)                                  
    if ((MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)                
        fat_fd->cln = fs_info->fat.vol.rdir_cl;                       
    else                                                              
        fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node);         
                                                                      
    fat_fd->fat_file_type = FAT_DIRECTORY;                            
 801725c:	58 40 00 10 	sw (r2+16),r0                                  
    fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                        
                                                                      
    fat_fd->map.file_cln = 0;                                         
 8017260:	58 40 00 34 	sw (r2+52),r0                                  
    fat_fd->map.disk_cln = fat_fd->cln;                               
 8017264:	58 41 00 38 	sw (r2+56),r1                                  
                                                                      
    rc = fat_file_size(&fs_info->fat, fat_fd);                        
 8017268:	b9 a0 08 00 	mv r1,r13                                      
 801726c:	fb ff e2 82 	calli 800fc74 <fat_file_size>                  
 8017270:	b8 20 58 00 	mv r11,r1                                      
 8017274:	2b 8c 00 70 	lw r12,(sp+112)                                
    if (rc != RC_OK)                                                  
 8017278:	5c 20 00 1f 	bne r1,r0,80172f4 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x31c><== NEVER TAKEN
 801727c:	b9 e0 08 00 	mv r1,r15                                      
 8017280:	34 02 00 08 	mvi r2,8                                       
 8017284:	fb ff a7 d9 	calli 80011e8 <__ashlsi3>                      
 8017288:	b8 20 58 00 	mv r11,r1                                      
 801728c:	34 02 00 08 	mvi r2,8                                       
 8017290:	b9 e0 08 00 	mv r1,r15                                      
 8017294:	f8 00 53 df 	calli 802c210 <__lshrsi3>                      
 8017298:	b9 61 08 00 	or r1,r11,r1                                   
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
                                                                      
    cl4find = MSDOS_EXTRACT_CLUSTER_NUM(dot_node);                    
 801729c:	34 02 00 10 	mvi r2,16                                      
 80172a0:	20 21 ff ff 	andi r1,r1,0xffff                              
 80172a4:	fb ff a7 d1 	calli 80011e8 <__ashlsi3>                      
 80172a8:	b8 20 58 00 	mv r11,r1                                      
 80172ac:	34 02 00 08 	mvi r2,8                                       
 80172b0:	ba 20 08 00 	mv r1,r17                                      
 80172b4:	fb ff a7 cd 	calli 80011e8 <__ashlsi3>                      
 80172b8:	b8 20 78 00 	mv r15,r1                                      
 80172bc:	34 02 00 08 	mvi r2,8                                       
 80172c0:	ba 20 08 00 	mv r1,r17                                      
 80172c4:	f8 00 53 d3 	calli 802c210 <__lshrsi3>                      
 80172c8:	b9 e1 18 00 	or r3,r15,r1                                   
 80172cc:	20 63 ff ff 	andi r3,r3,0xffff                              
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
                                                                      
    /* in this directory find slot with specified cluster num */      
    rc = msdos_find_node_by_cluster_num_in_fat_file(mt_entry, fat_fd, cl4find,
 80172d0:	b9 80 10 00 	mv r2,r12                                      
 80172d4:	b9 63 18 00 	or r3,r11,r3                                   
 80172d8:	ba 00 08 00 	mv r1,r16                                      
 80172dc:	b9 c0 20 00 	mv r4,r14                                      
 80172e0:	ba 60 28 00 	mv r5,r19                                      
 80172e4:	fb ff fe 71 	calli 8016ca8 <msdos_find_node_by_cluster_num_in_fat_file>
 80172e8:	b8 20 58 00 	mv r11,r1                                      
 80172ec:	2b 8c 00 70 	lw r12,(sp+112)                                
                                                    dir_pos, dir_entry);
    if (rc != RC_OK)                                                  
 80172f0:	44 20 00 05 	be r1,r0,8017304 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x32c><== ALWAYS TAKEN
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
 80172f4:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 80172f8:	b9 80 10 00 	mv r2,r12                                      <== NOT EXECUTED
 80172fc:	fb ff e0 9d 	calli 800f570 <fat_file_close>                 <== NOT EXECUTED
        return rc;                                                    
 8017300:	e0 00 00 05 	bi 8017314 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x33c><== NOT EXECUTED
    }                                                                 
    rc = fat_file_close(&fs_info->fat, fat_fd);                       
 8017304:	b9 a0 08 00 	mv r1,r13                                      
 8017308:	b9 80 10 00 	mv r2,r12                                      
 801730c:	fb ff e0 99 	calli 800f570 <fat_file_close>                 
 8017310:	b8 20 58 00 	mv r11,r1                                      
    return rc;                                                        
}                                                                     
 8017314:	b9 60 08 00 	mv r1,r11                                      
 8017318:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801731c:	2b 8b 00 2c 	lw r11,(sp+44)                                 
 8017320:	2b 8c 00 28 	lw r12,(sp+40)                                 
 8017324:	2b 8d 00 24 	lw r13,(sp+36)                                 
 8017328:	2b 8e 00 20 	lw r14,(sp+32)                                 
 801732c:	2b 8f 00 1c 	lw r15,(sp+28)                                 
 8017330:	2b 90 00 18 	lw r16,(sp+24)                                 
 8017334:	2b 91 00 14 	lw r17,(sp+20)                                 
 8017338:	2b 92 00 10 	lw r18,(sp+16)                                 
 801733c:	2b 93 00 0c 	lw r19,(sp+12)                                 
 8017340:	2b 94 00 08 	lw r20,(sp+8)                                  
 8017344:	37 9c 00 70 	addi sp,sp,112                                 
 8017348:	c3 a0 00 00 	ret                                            
                                                                      

0801734c <msdos_get_name_node>: int name_len, msdos_name_type_t name_type, fat_dir_pos_t *dir_pos, char *name_dir_entry ) {
 801734c:	37 9c ff e0 	addi sp,sp,-32                                 
 8017350:	5b 8b 00 20 	sw (sp+32),r11                                 
 8017354:	5b 8c 00 1c 	sw (sp+28),r12                                 
 8017358:	5b 8d 00 18 	sw (sp+24),r13                                 
 801735c:	5b 8e 00 14 	sw (sp+20),r14                                 
 8017360:	5b 8f 00 10 	sw (sp+16),r15                                 
 8017364:	5b 90 00 0c 	sw (sp+12),r16                                 
 8017368:	5b 91 00 08 	sw (sp+8),r17                                  
 801736c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8017370:	b8 20 70 00 	mv r14,r1                                      
 8017374:	20 4f 00 ff 	andi r15,r2,0xff                               
    int              rc = RC_OK;                                      
    fat_file_fd_t   *fat_fd = parent_loc->node_access;                
    uint32_t         dotdot_cln = 0;                                  
                                                                      
    /* find name in fat-file which corresponds to the directory */    
    rc = msdos_find_name_in_fat_file(parent_loc->mt_entry, fat_fd,    
 8017378:	28 21 00 14 	lw r1,(r1+20)                                  
 801737c:	29 c2 00 08 	lw r2,(r14+8)                                  
    int                                     name_len,                 
    msdos_name_type_t                       name_type,                
    fat_dir_pos_t                          *dir_pos,                  
    char                                   *name_dir_entry            
    )                                                                 
{                                                                     
 8017380:	b8 80 48 00 	mv r9,r4                                       
 8017384:	b8 a0 40 00 	mv r8,r5                                       
 8017388:	b8 60 80 00 	mv r16,r3                                      
 801738c:	b8 c0 60 00 	mv r12,r6                                      
 8017390:	b8 e0 68 00 	mv r13,r7                                      
    int              rc = RC_OK;                                      
    fat_file_fd_t   *fat_fd = parent_loc->node_access;                
    uint32_t         dotdot_cln = 0;                                  
                                                                      
    /* find name in fat-file which corresponds to the directory */    
    rc = msdos_find_name_in_fat_file(parent_loc->mt_entry, fat_fd,    
 8017394:	b9 00 30 00 	mv r6,r8                                       
 8017398:	b9 e0 18 00 	mv r3,r15                                      
 801739c:	ba 00 20 00 	mv r4,r16                                      
 80173a0:	b9 20 28 00 	mv r5,r9                                       
 80173a4:	b9 80 38 00 	mv r7,r12                                      
 80173a8:	b9 a0 40 00 	mv r8,r13                                      
 80173ac:	fb ff fb 5d 	calli 8016120 <msdos_find_name_in_fat_file>    
                                     create_node, name, name_len, name_type,
                                     dir_pos, name_dir_entry);        
    if ((rc != RC_OK) && (rc != MSDOS_NAME_NOT_FOUND_ERR))            
 80173b0:	7c 22 7d 01 	cmpnei r2,r1,32001                             
    int              rc = RC_OK;                                      
    fat_file_fd_t   *fat_fd = parent_loc->node_access;                
    uint32_t         dotdot_cln = 0;                                  
                                                                      
    /* find name in fat-file which corresponds to the directory */    
    rc = msdos_find_name_in_fat_file(parent_loc->mt_entry, fat_fd,    
 80173b4:	b8 20 58 00 	mv r11,r1                                      
                                     create_node, name, name_len, name_type,
                                     dir_pos, name_dir_entry);        
    if ((rc != RC_OK) && (rc != MSDOS_NAME_NOT_FOUND_ERR))            
 80173b8:	7c 21 00 00 	cmpnei r1,r1,0                                 
 80173bc:	a0 41 08 00 	and r1,r2,r1                                   
 80173c0:	5c 20 00 30 	bne r1,r0,8017480 <msdos_get_name_node+0x134>  
        return rc;                                                    
                                                                      
    if (!create_node)                                                 
 80173c4:	5d e1 00 2f 	bne r15,r1,8017480 <msdos_get_name_node+0x134> 
    {                                                                 
        /* if we search for valid name and name not found -> return */
        if (rc == MSDOS_NAME_NOT_FOUND_ERR)                           
 80173c8:	34 01 7d 01 	mvi r1,32001                                   
 80173cc:	45 61 00 2d 	be r11,r1,8017480 <msdos_get_name_node+0x134>  
         * if we have deal with ".." - it is a special case :(((      
         *                                                            
         * Really, we should return cluster num and offset not of ".." slot, but
         * slot which correspondes to real directory name.            
         */                                                           
        if (rc == RC_OK)                                              
 80173d0:	5d 6f 00 2c 	bne r11,r15,8017480 <msdos_get_name_node+0x134><== NEVER TAKEN
        {                                                             
            if (strncmp(name, "..", 2) == 0)                          
 80173d4:	78 02 08 02 	mvhi r2,0x802                                  
 80173d8:	ba 00 08 00 	mv r1,r16                                      
 80173dc:	38 42 d6 ec 	ori r2,r2,0xd6ec                               
 80173e0:	34 03 00 02 	mvi r3,2                                       
 80173e4:	f8 00 11 bd 	calli 801bad8 <strncmp>                        
 80173e8:	5c 2b 00 26 	bne r1,r11,8017480 <msdos_get_name_node+0x134> 
            {                                                         
                dotdot_cln = MSDOS_EXTRACT_CLUSTER_NUM((name_dir_entry));
 80173ec:	2d b0 00 14 	lhu r16,(r13+20)                               
 80173f0:	34 02 00 08 	mvi r2,8                                       
 80173f4:	2d af 00 1a 	lhu r15,(r13+26)                               
 80173f8:	ba 00 08 00 	mv r1,r16                                      
 80173fc:	fb ff a7 7b 	calli 80011e8 <__ashlsi3>                      
 8017400:	b8 20 88 00 	mv r17,r1                                      
 8017404:	34 02 00 08 	mvi r2,8                                       
 8017408:	ba 00 08 00 	mv r1,r16                                      
 801740c:	f8 00 53 81 	calli 802c210 <__lshrsi3>                      
 8017410:	ba 21 08 00 	or r1,r17,r1                                   
 8017414:	34 02 00 10 	mvi r2,16                                      
 8017418:	20 21 ff ff 	andi r1,r1,0xffff                              
 801741c:	fb ff a7 73 	calli 80011e8 <__ashlsi3>                      
 8017420:	b8 20 80 00 	mv r16,r1                                      
 8017424:	34 02 00 08 	mvi r2,8                                       
 8017428:	b9 e0 08 00 	mv r1,r15                                      
 801742c:	fb ff a7 6f 	calli 80011e8 <__ashlsi3>                      
 8017430:	b8 20 88 00 	mv r17,r1                                      
 8017434:	34 02 00 08 	mvi r2,8                                       
 8017438:	b9 e0 08 00 	mv r1,r15                                      
 801743c:	f8 00 53 75 	calli 802c210 <__lshrsi3>                      
 8017440:	ba 21 18 00 	or r3,r17,r1                                   
 8017444:	20 63 ff ff 	andi r3,r3,0xffff                              
 8017448:	ba 03 10 00 	or r2,r16,r3                                   
                                                                      
                /* are we right under root dir ? */                   
                if (dotdot_cln == 0)                                  
 801744c:	5c 4b 00 08 	bne r2,r11,801746c <msdos_get_name_node+0x120> 
  dir_pos->lname.cln = FAT_FILE_SHORT_NAME;                           
 8017450:	34 01 ff ff 	mvi r1,-1                                      
 8017454:	59 81 00 08 	sw (r12+8),r1                                  
  dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;                           
 8017458:	59 81 00 0c 	sw (r12+12),r1                                 
                    /*                                                
                     * we can relax about first_char field - it never should be
                     * used for root dir                              
                     */                                               
                    fat_dir_pos_init(dir_pos);                        
                    dir_pos->sname.cln = FAT_ROOTDIR_CLUSTER_NUM;     
 801745c:	34 01 00 01 	mvi r1,1                                       
fat_dir_pos_init(                                                     
    fat_dir_pos_t *dir_pos                                            
    )                                                                 
{                                                                     
  dir_pos->sname.cln = 0;                                             
  dir_pos->sname.ofs = 0;                                             
 8017460:	59 80 00 04 	sw (r12+4),r0                                  
 8017464:	59 81 00 00 	sw (r12+0),r1                                  
 8017468:	e0 00 00 06 	bi 8017480 <msdos_get_name_node+0x134>         
                }                                                     
                else                                                  
                {                                                     
                    rc =                                              
 801746c:	29 c1 00 14 	lw r1,(r14+20)                                 
 8017470:	b9 80 18 00 	mv r3,r12                                      
 8017474:	b9 a0 20 00 	mv r4,r13                                      
 8017478:	fb ff fe d8 	calli 8016fd8 <msdos_get_dotdot_dir_info_cluster_num_and_offset>
 801747c:	b8 20 58 00 	mv r11,r1                                      
                }                                                     
            }                                                         
        }                                                             
    }                                                                 
    return rc;                                                        
}                                                                     
 8017480:	b9 60 08 00 	mv r1,r11                                      
 8017484:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8017488:	2b 8b 00 20 	lw r11,(sp+32)                                 
 801748c:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 8017490:	2b 8d 00 18 	lw r13,(sp+24)                                 
 8017494:	2b 8e 00 14 	lw r14,(sp+20)                                 
 8017498:	2b 8f 00 10 	lw r15,(sp+16)                                 
 801749c:	2b 90 00 0c 	lw r16,(sp+12)                                 
 80174a0:	2b 91 00 08 	lw r17,(sp+8)                                  
 80174a4:	37 9c 00 20 	addi sp,sp,32                                  
 80174a8:	c3 a0 00 00 	ret                                            
                                                                      

0800ae10 <msdos_initialize_support>: rtems_filesystem_mount_table_entry_t *temp_mt_entry, const rtems_filesystem_operations_table *op_table, const rtems_filesystem_file_handlers_r *file_handlers, const rtems_filesystem_file_handlers_r *directory_handlers ) {
 800ae10:	37 9c ff d0 	addi sp,sp,-48                                 
 800ae14:	5b 8b 00 1c 	sw (sp+28),r11                                 
 800ae18:	5b 8c 00 18 	sw (sp+24),r12                                 
 800ae1c:	5b 8d 00 14 	sw (sp+20),r13                                 
 800ae20:	5b 8e 00 10 	sw (sp+16),r14                                 
 800ae24:	5b 8f 00 0c 	sw (sp+12),r15                                 
 800ae28:	5b 90 00 08 	sw (sp+8),r16                                  
 800ae2c:	5b 9d 00 04 	sw (sp+4),ra                                   
 800ae30:	b8 20 68 00 	mv r13,r1                                      
 800ae34:	b8 40 80 00 	mv r16,r2                                      
    msdos_fs_info_t   *fs_info = NULL;                                
    fat_file_fd_t     *fat_fd = NULL;                                 
    fat_dir_pos_t      root_pos;                                      
    uint32_t           cl_buf_size;                                   
                                                                      
    fs_info = (msdos_fs_info_t *)calloc(1, sizeof(msdos_fs_info_t));  
 800ae38:	34 01 00 01 	mvi r1,1                                       
 800ae3c:	34 02 00 a4 	mvi r2,164                                     
    rtems_filesystem_mount_table_entry_t    *temp_mt_entry,           
    const rtems_filesystem_operations_table *op_table,                
    const rtems_filesystem_file_handlers_r  *file_handlers,           
    const rtems_filesystem_file_handlers_r  *directory_handlers       
    )                                                                 
{                                                                     
 800ae40:	b8 60 78 00 	mv r15,r3                                      
 800ae44:	b8 80 70 00 	mv r14,r4                                      
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = NULL;                                
    fat_file_fd_t     *fat_fd = NULL;                                 
 800ae48:	5b 80 00 30 	sw (sp+48),r0                                  
    fat_dir_pos_t      root_pos;                                      
    uint32_t           cl_buf_size;                                   
                                                                      
    fs_info = (msdos_fs_info_t *)calloc(1, sizeof(msdos_fs_info_t));  
 800ae4c:	fb ff e0 16 	calli 8002ea4 <calloc>                         
 800ae50:	b8 20 58 00 	mv r11,r1                                      
    if (!fs_info)                                                     
 800ae54:	44 20 00 41 	be r1,r0,800af58 <msdos_initialize_support+0x148><== NEVER TAKEN
        rtems_set_errno_and_return_minus_one(ENOMEM);                 
                                                                      
    temp_mt_entry->fs_info = fs_info;                                 
                                                                      
    rc = fat_init_volume_info(&fs_info->fat, temp_mt_entry->dev);     
 800ae58:	29 a2 00 38 	lw r2,(r13+56)                                 
                                                                      
    fs_info = (msdos_fs_info_t *)calloc(1, sizeof(msdos_fs_info_t));  
    if (!fs_info)                                                     
        rtems_set_errno_and_return_minus_one(ENOMEM);                 
                                                                      
    temp_mt_entry->fs_info = fs_info;                                 
 800ae5c:	59 a1 00 08 	sw (r13+8),r1                                  
                                                                      
    rc = fat_init_volume_info(&fs_info->fat, temp_mt_entry->dev);     
 800ae60:	f8 00 15 e3 	calli 80105ec <fat_init_volume_info>           
 800ae64:	b8 20 60 00 	mv r12,r1                                      
    if (rc != RC_OK)                                                  
 800ae68:	5c 20 00 11 	bne r1,r0,800aeac <msdos_initialize_support+0x9c><== NEVER TAKEN
    fat_dir_pos_t *dir_pos                                            
    )                                                                 
{                                                                     
  dir_pos->sname.cln = 0;                                             
  dir_pos->sname.ofs = 0;                                             
  dir_pos->lname.cln = FAT_FILE_SHORT_NAME;                           
 800ae6c:	34 01 ff ff 	mvi r1,-1                                      
 800ae70:	5b 81 00 28 	sw (sp+40),r1                                  
  dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;                           
 800ae74:	5b 81 00 2c 	sw (sp+44),r1                                  
    /*                                                                
     * open fat-file which correspondes to  root directory            
     * (so inode number 0x00000010 is always used for root directory) 
     */                                                               
    fat_dir_pos_init(&root_pos);                                      
    root_pos.sname.cln = FAT_ROOTDIR_CLUSTER_NUM;                     
 800ae78:	34 01 00 01 	mvi r1,1                                       
 800ae7c:	5b 81 00 20 	sw (sp+32),r1                                  
    rc = fat_file_open(&fs_info->fat, &root_pos, &fat_fd);            
 800ae80:	37 82 00 20 	addi r2,sp,32                                  
 800ae84:	b9 60 08 00 	mv r1,r11                                      
 800ae88:	37 83 00 30 	addi r3,sp,48                                  
    {                                                                 
        free(fs_info);                                                
        return rc;                                                    
    }                                                                 
                                                                      
    fs_info->file_handlers      = file_handlers;                      
 800ae8c:	59 6f 00 98 	sw (r11+152),r15                               
    fs_info->directory_handlers = directory_handlers;                 
 800ae90:	59 6e 00 94 	sw (r11+148),r14                               
fat_dir_pos_init(                                                     
    fat_dir_pos_t *dir_pos                                            
    )                                                                 
{                                                                     
  dir_pos->sname.cln = 0;                                             
  dir_pos->sname.ofs = 0;                                             
 800ae94:	5b 80 00 24 	sw (sp+36),r0                                  
     * open fat-file which correspondes to  root directory            
     * (so inode number 0x00000010 is always used for root directory) 
     */                                                               
    fat_dir_pos_init(&root_pos);                                      
    root_pos.sname.cln = FAT_ROOTDIR_CLUSTER_NUM;                     
    rc = fat_file_open(&fs_info->fat, &root_pos, &fat_fd);            
 800ae98:	f8 00 10 7d 	calli 800f08c <fat_file_open>                  
 800ae9c:	b8 20 60 00 	mv r12,r1                                      
    if (rc != RC_OK)                                                  
 800aea0:	44 20 00 06 	be r1,r0,800aeb8 <msdos_initialize_support+0xa8><== ALWAYS TAKEN
    {                                                                 
        fat_shutdown_drive(&fs_info->fat);                            
 800aea4:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800aea8:	f8 00 18 35 	calli 8010f7c <fat_shutdown_drive>             <== NOT EXECUTED
        free(fs_info);                                                
 800aeac:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800aeb0:	fb ff e0 47 	calli 8002fcc <free>                           <== NOT EXECUTED
        return rc;                                                    
 800aeb4:	e0 00 00 45 	bi 800afc8 <msdos_initialize_support+0x1b8>    <== NOT EXECUTED
    }                                                                 
                                                                      
    /* again: unfortunately "fat-file" is just almost fat file :( */  
    fat_fd->fat_file_type = FAT_DIRECTORY;                            
 800aeb8:	2b 82 00 30 	lw r2,(sp+48)                                  
    fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                        
 800aebc:	78 01 00 20 	mvhi r1,0x20                                   
 800aec0:	58 41 00 14 	sw (r2+20),r1                                  
    fat_fd->cln = fs_info->fat.vol.rdir_cl;                           
 800aec4:	29 61 00 3c 	lw r1,(r11+60)                                 
        free(fs_info);                                                
        return rc;                                                    
    }                                                                 
                                                                      
    /* again: unfortunately "fat-file" is just almost fat file :( */  
    fat_fd->fat_file_type = FAT_DIRECTORY;                            
 800aec8:	58 40 00 10 	sw (r2+16),r0                                  
    fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                        
    fat_fd->cln = fs_info->fat.vol.rdir_cl;                           
                                                                      
    fat_fd->map.file_cln = 0;                                         
 800aecc:	58 40 00 34 	sw (r2+52),r0                                  
    }                                                                 
                                                                      
    /* again: unfortunately "fat-file" is just almost fat file :( */  
    fat_fd->fat_file_type = FAT_DIRECTORY;                            
    fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                        
    fat_fd->cln = fs_info->fat.vol.rdir_cl;                           
 800aed0:	58 41 00 1c 	sw (r2+28),r1                                  
                                                                      
    fat_fd->map.file_cln = 0;                                         
    fat_fd->map.disk_cln = fat_fd->cln;                               
 800aed4:	58 41 00 38 	sw (r2+56),r1                                  
                                                                      
    /* if we have FAT12/16 */                                         
    if ( fat_fd->cln == 0 )                                           
 800aed8:	5c 2c 00 07 	bne r1,r12,800aef4 <msdos_initialize_support+0xe4>
    {                                                                 
        fat_fd->fat_file_size = fs_info->fat.vol.rdir_size;           
 800aedc:	29 63 00 2c 	lw r3,(r11+44)                                 
        cl_buf_size = (fs_info->fat.vol.bpc > fs_info->fat.vol.rdir_size) ?
                      fs_info->fat.vol.bpc                                :
 800aee0:	2d 61 00 06 	lhu r1,(r11+6)                                 
    fat_fd->map.disk_cln = fat_fd->cln;                               
                                                                      
    /* if we have FAT12/16 */                                         
    if ( fat_fd->cln == 0 )                                           
    {                                                                 
        fat_fd->fat_file_size = fs_info->fat.vol.rdir_size;           
 800aee4:	58 43 00 18 	sw (r2+24),r3                                  
        cl_buf_size = (fs_info->fat.vol.bpc > fs_info->fat.vol.rdir_size) ?
 800aee8:	50 23 00 11 	bgeu r1,r3,800af2c <msdos_initialize_support+0x11c>
 800aeec:	b8 60 08 00 	mv r1,r3                                       
 800aef0:	e0 00 00 0f 	bi 800af2c <msdos_initialize_support+0x11c>    
                      fs_info->fat.vol.bpc                                :
                      fs_info->fat.vol.rdir_size;                     
    }                                                                 
    else                                                              
    {                                                                 
        rc = fat_file_size(&fs_info->fat, fat_fd);                    
 800aef4:	b9 60 08 00 	mv r1,r11                                      
 800aef8:	f8 00 13 5f 	calli 800fc74 <fat_file_size>                  
 800aefc:	b8 20 78 00 	mv r15,r1                                      
        if ( rc != RC_OK )                                            
 800af00:	44 20 00 0a 	be r1,r0,800af28 <msdos_initialize_support+0x118><== ALWAYS TAKEN
        {                                                             
            fat_file_close(&fs_info->fat, fat_fd);                    
 800af04:	2b 82 00 30 	lw r2,(sp+48)                                  <== NOT EXECUTED
 800af08:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
            fat_shutdown_drive(&fs_info->fat);                        
            free(fs_info);                                            
            return rc;                                                
 800af0c:	b9 e0 60 00 	mv r12,r15                                     <== NOT EXECUTED
    else                                                              
    {                                                                 
        rc = fat_file_size(&fs_info->fat, fat_fd);                    
        if ( rc != RC_OK )                                            
        {                                                             
            fat_file_close(&fs_info->fat, fat_fd);                    
 800af10:	f8 00 11 98 	calli 800f570 <fat_file_close>                 <== NOT EXECUTED
            fat_shutdown_drive(&fs_info->fat);                        
 800af14:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800af18:	f8 00 18 19 	calli 8010f7c <fat_shutdown_drive>             <== NOT EXECUTED
            free(fs_info);                                            
 800af1c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800af20:	fb ff e0 2b 	calli 8002fcc <free>                           <== NOT EXECUTED
            return rc;                                                
 800af24:	e0 00 00 29 	bi 800afc8 <msdos_initialize_support+0x1b8>    <== NOT EXECUTED
        }                                                             
        cl_buf_size = fs_info->fat.vol.bpc;                           
 800af28:	2d 61 00 06 	lhu r1,(r11+6)                                 
    }                                                                 
                                                                      
    fs_info->cl_buf = (uint8_t *)calloc(cl_buf_size, sizeof(char));   
 800af2c:	34 02 00 01 	mvi r2,1                                       
 800af30:	fb ff df dd 	calli 8002ea4 <calloc>                         
 800af34:	59 61 00 a0 	sw (r11+160),r1                                
    if (fs_info->cl_buf == NULL)                                      
 800af38:	5c 20 00 0d 	bne r1,r0,800af6c <msdos_initialize_support+0x15c><== ALWAYS TAKEN
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
 800af3c:	2b 82 00 30 	lw r2,(sp+48)                                  <== NOT EXECUTED
 800af40:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800af44:	f8 00 11 8b 	calli 800f570 <fat_file_close>                 <== NOT EXECUTED
        fat_shutdown_drive(&fs_info->fat);                            
 800af48:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800af4c:	f8 00 18 0c 	calli 8010f7c <fat_shutdown_drive>             <== NOT EXECUTED
        free(fs_info);                                                
 800af50:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800af54:	fb ff e0 1e 	calli 8002fcc <free>                           <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one(ENOMEM);                 
 800af58:	f8 00 3a ad 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 800af5c:	34 02 00 0c 	mvi r2,12                                      <== NOT EXECUTED
 800af60:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 800af64:	34 0c ff ff 	mvi r12,-1                                     <== NOT EXECUTED
 800af68:	e0 00 00 18 	bi 800afc8 <msdos_initialize_support+0x1b8>    <== NOT EXECUTED
    }                                                                 
                                                                      
    sc = rtems_semaphore_create(3,                                    
 800af6c:	34 02 00 01 	mvi r2,1                                       
 800af70:	34 01 00 03 	mvi r1,3                                       
 800af74:	34 03 00 10 	mvi r3,16                                      
 800af78:	34 04 00 00 	mvi r4,0                                       
 800af7c:	35 65 00 9c 	addi r5,r11,156                                
 800af80:	fb ff e9 91 	calli 80055c4 <rtems_semaphore_create>         
 800af84:	2b 82 00 30 	lw r2,(sp+48)                                  
                                1,                                    
                                RTEMS_BINARY_SEMAPHORE | RTEMS_FIFO,  
                                0,                                    
                                &fs_info->vol_sema);                  
    if (sc != RTEMS_SUCCESSFUL)                                       
 800af88:	44 20 00 0c 	be r1,r0,800afb8 <msdos_initialize_support+0x1a8><== ALWAYS TAKEN
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
 800af8c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800af90:	f8 00 11 78 	calli 800f570 <fat_file_close>                 <== NOT EXECUTED
        fat_shutdown_drive(&fs_info->fat);                            
 800af94:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800af98:	f8 00 17 f9 	calli 8010f7c <fat_shutdown_drive>             <== NOT EXECUTED
        free(fs_info->cl_buf);                                        
 800af9c:	29 61 00 a0 	lw r1,(r11+160)                                <== NOT EXECUTED
 800afa0:	fb ff e0 0b 	calli 8002fcc <free>                           <== NOT EXECUTED
        free(fs_info);                                                
 800afa4:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800afa8:	fb ff e0 09 	calli 8002fcc <free>                           <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one( EIO );                  
 800afac:	f8 00 3a 98 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 800afb0:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 800afb4:	e3 ff ff eb 	bi 800af60 <msdos_initialize_support+0x150>    <== NOT EXECUTED
    }                                                                 
                                                                      
    temp_mt_entry->mt_fs_root->location.node_access = fat_fd;         
 800afb8:	29 a1 00 24 	lw r1,(r13+36)                                 
 800afbc:	58 22 00 08 	sw (r1+8),r2                                   
    temp_mt_entry->mt_fs_root->location.handlers = directory_handlers;
 800afc0:	58 2e 00 10 	sw (r1+16),r14                                 
    temp_mt_entry->ops = op_table;                                    
 800afc4:	59 b0 00 0c 	sw (r13+12),r16                                
                                                                      
    return rc;                                                        
}                                                                     
 800afc8:	b9 80 08 00 	mv r1,r12                                      
 800afcc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800afd0:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 800afd4:	2b 8c 00 18 	lw r12,(sp+24)                                 
 800afd8:	2b 8d 00 14 	lw r13,(sp+20)                                 
 800afdc:	2b 8e 00 10 	lw r14,(sp+16)                                 
 800afe0:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 800afe4:	2b 90 00 08 	lw r16,(sp+8)                                  
 800afe8:	37 9c 00 30 	addi sp,sp,48                                  
 800afec:	c3 a0 00 00 	ret                                            
                                                                      

0800add4 <msdos_lock>: .rename_h = msdos_rename, .statvfs_h = rtems_filesystem_default_statvfs }; void msdos_lock(const rtems_filesystem_mount_table_entry_t *mt_entry) {
 800add4:	37 9c ff fc 	addi sp,sp,-4                                  
 800add8:	5b 9d 00 04 	sw (sp+4),ra                                   
  msdos_fs_info_t *fs_info = mt_entry->fs_info;                       
  rtems_status_code sc = rtems_semaphore_obtain(                      
    fs_info->vol_sema,                                                
 800addc:	28 21 00 08 	lw r1,(r1+8)                                   
};                                                                    
                                                                      
void msdos_lock(const rtems_filesystem_mount_table_entry_t *mt_entry) 
{                                                                     
  msdos_fs_info_t *fs_info = mt_entry->fs_info;                       
  rtems_status_code sc = rtems_semaphore_obtain(                      
 800ade0:	34 02 00 00 	mvi r2,0                                       
 800ade4:	34 03 00 00 	mvi r3,0                                       
 800ade8:	28 21 00 9c 	lw r1,(r1+156)                                 
 800adec:	fb ff ea a2 	calli 8005874 <rtems_semaphore_obtain>         
    fs_info->vol_sema,                                                
    RTEMS_WAIT,                                                       
    RTEMS_NO_TIMEOUT                                                  
  );                                                                  
  if (sc != RTEMS_SUCCESSFUL) {                                       
 800adf0:	44 20 00 05 	be r1,r0,800ae04 <msdos_lock+0x30>             <== ALWAYS TAKEN
    rtems_fatal_error_occurred(0xdeadbeef);                           
 800adf4:	78 02 08 02 	mvhi r2,0x802                                  <== NOT EXECUTED
 800adf8:	38 42 cd ec 	ori r2,r2,0xcdec                               <== NOT EXECUTED
 800adfc:	28 41 00 00 	lw r1,(r2+0)                                   <== NOT EXECUTED
 800ae00:	fb ff ec 0e 	calli 8005e38 <rtems_fatal_error_occurred>     <== NOT EXECUTED
  }                                                                   
}                                                                     
 800ae04:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800ae08:	37 9c 00 04 	addi sp,sp,4                                   
 800ae0c:	c3 a0 00 00 	ret                                            
                                                                      

08015888 <msdos_long_to_short>: * */ #define MSDOS_L2S_PRINT 0 msdos_name_type_t msdos_long_to_short(const char *lfn, int lfn_len, char* sfn, int sfn_len) {
 8015888:	37 9c ff bc 	addi sp,sp,-68                                 
 801588c:	5b 8b 00 44 	sw (sp+68),r11                                 
 8015890:	5b 8c 00 40 	sw (sp+64),r12                                 
 8015894:	5b 8d 00 3c 	sw (sp+60),r13                                 
 8015898:	5b 8e 00 38 	sw (sp+56),r14                                 
 801589c:	5b 8f 00 34 	sw (sp+52),r15                                 
 80158a0:	5b 90 00 30 	sw (sp+48),r16                                 
 80158a4:	5b 91 00 2c 	sw (sp+44),r17                                 
 80158a8:	5b 92 00 28 	sw (sp+40),r18                                 
 80158ac:	5b 93 00 24 	sw (sp+36),r19                                 
 80158b0:	5b 94 00 20 	sw (sp+32),r20                                 
 80158b4:	5b 95 00 1c 	sw (sp+28),r21                                 
 80158b8:	5b 96 00 18 	sw (sp+24),r22                                 
 80158bc:	5b 97 00 14 	sw (sp+20),r23                                 
 80158c0:	5b 98 00 10 	sw (sp+16),r24                                 
 80158c4:	5b 99 00 0c 	sw (sp+12),r25                                 
 80158c8:	5b 9b 00 08 	sw (sp+8),fp                                   
 80158cc:	5b 9d 00 04 	sw (sp+4),ra                                   
 80158d0:	b8 20 78 00 	mv r15,r1                                      
 80158d4:	b8 40 70 00 	mv r14,r2                                      
    int               i;                                              
                                                                      
    /*                                                                
     * Fill with spaces. This is how a short directory entry is padded.
     */                                                               
    memset (sfn, ' ', sfn_len);                                       
 80158d8:	b8 60 08 00 	mv r1,r3                                       
 80158dc:	34 02 00 20 	mvi r2,32                                      
 *                                                                    
 */                                                                   
#define MSDOS_L2S_PRINT 0                                             
msdos_name_type_t                                                     
msdos_long_to_short(const char *lfn, int lfn_len, char* sfn, int sfn_len)
{                                                                     
 80158e0:	b8 60 80 00 	mv r16,r3                                      
    int               i;                                              
                                                                      
    /*                                                                
     * Fill with spaces. This is how a short directory entry is padded.
     */                                                               
    memset (sfn, ' ', sfn_len);                                       
 80158e4:	b8 80 18 00 	mv r3,r4                                       
 80158e8:	f8 00 13 d8 	calli 801a848 <memset>                         
                                                                      
    /*                                                                
     * Handle '.' and '..' specially.                                 
     */                                                               
    if ((lfn[0] == '.') && (lfn_len == 1))                            
 80158ec:	41 e2 00 00 	lbu r2,(r15+0)                                 
 80158f0:	65 c1 00 01 	cmpei r1,r14,1                                 
 80158f4:	64 42 00 2e 	cmpei r2,r2,46                                 
 80158f8:	a0 41 08 00 	and r1,r2,r1                                   
 80158fc:	44 20 00 03 	be r1,r0,8015908 <msdos_long_to_short+0x80>    
    {                                                                 
        sfn[0] = '.';                                                 
 8015900:	34 01 00 2e 	mvi r1,46                                      
 8015904:	e0 00 00 0b 	bi 8015930 <msdos_long_to_short+0xa8>          
        printf ("MSDOS_L2S: SHORT[1]: lfn:'%s' SFN:'%s'\n", lfn, sfn);
#endif                                                                
        return MSDOS_NAME_SHORT;                                      
    }                                                                 
                                                                      
    if ((lfn[0] == '.') && (lfn[1] == '.') && (lfn_len == 2))         
 8015908:	34 04 00 00 	mvi r4,0                                       
 801590c:	44 41 00 13 	be r2,r1,8015958 <msdos_long_to_short+0xd0>    
 8015910:	41 e2 00 01 	lbu r2,(r15+1)                                 
 8015914:	65 c3 00 02 	cmpei r3,r14,2                                 
 8015918:	b8 20 20 00 	mv r4,r1                                       
 801591c:	64 42 00 2e 	cmpei r2,r2,46                                 
 8015920:	a0 43 10 00 	and r2,r2,r3                                   
 8015924:	44 40 00 0d 	be r2,r0,8015958 <msdos_long_to_short+0xd0>    <== NEVER TAKEN
    {                                                                 
        sfn[0] = sfn[1] = '.';                                        
 8015928:	34 01 00 2e 	mvi r1,46                                      
 801592c:	32 01 00 01 	sb (r16+1),r1                                  
 8015930:	32 01 00 00 	sb (r16+0),r1                                  
#if MSDOS_L2S_PRINT                                                   
        printf ("MSDOS_L2S: SHORT[2]: lfn:'%s' SFN:'%s'\n", lfn, sfn);
#endif                                                                
        return MSDOS_NAME_SHORT;                                      
 8015934:	34 02 00 01 	mvi r2,1                                       
 8015938:	e0 00 00 58 	bi 8015a98 <msdos_long_to_short+0x210>         
 *     true the name is long, else the name is short.                 
 *                                                                    
 */                                                                   
#define MSDOS_L2S_PRINT 0                                             
msdos_name_type_t                                                     
msdos_long_to_short(const char *lfn, int lfn_len, char* sfn, int sfn_len)
 801593c:	b5 e4 08 00 	add r1,r15,r4                                  
                                                                      
    /*                                                                
     * Filenames with only blanks and dots are not allowed!           
     */                                                               
    for (i = 0; i < lfn_len; i++)                                     
        if ((lfn[i] != ' ') && (lfn[i] != '.'))                       
 8015940:	40 21 00 00 	lbu r1,(r1+0)                                  
 8015944:	7c 22 00 2e 	cmpnei r2,r1,46                                
 8015948:	7c 21 00 20 	cmpnei r1,r1,32                                
 801594c:	a0 41 08 00 	and r1,r2,r1                                   
 8015950:	5c 20 00 34 	bne r1,r0,8015a20 <msdos_long_to_short+0x198>  
    }                                                                 
                                                                      
    /*                                                                
     * Filenames with only blanks and dots are not allowed!           
     */                                                               
    for (i = 0; i < lfn_len; i++)                                     
 8015954:	34 84 00 01 	addi r4,r4,1                                   
 8015958:	49 c4 ff f9 	bg r14,r4,801593c <msdos_long_to_short+0xb4>   <== ALWAYS TAKEN
    if (i == lfn_len)                                                 
    {                                                                 
#if MSDOS_L2S_PRINT                                                   
        printf ("MSDOS_L2S: INVALID[1]: lfn:'%s' SFN:'%s'\n", lfn, sfn);
#endif                                                                
        return MSDOS_NAME_INVALID;                                    
 801595c:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
     */                                                               
    for (i = 0; i < lfn_len; i++)                                     
        if ((lfn[i] != ' ') && (lfn[i] != '.'))                       
            break;                                                    
                                                                      
    if (i == lfn_len)                                                 
 8015960:	44 8e 00 4e 	be r4,r14,8015a98 <msdos_long_to_short+0x210>  <== NOT EXECUTED
 8015964:	e0 00 00 2f 	bi 8015a20 <msdos_long_to_short+0x198>         <== NOT EXECUTED
 *                                                                    
 */                                                                   
static msdos_name_type_t                                              
msdos_is_valid_name_char(const char ch)                               
{                                                                     
    if (strchr(" +,;=[]", ch) != NULL)                                
 8015968:	ba e0 08 00 	mv r1,r23                                      
 801596c:	b9 a0 10 00 	mv r2,r13                                      
 8015970:	f8 00 17 38 	calli 801b650 <strchr>                         
    int  dot_at = -1;                                                 
    int  count = 0;                                                   
                                                                      
    while (*name && (count < name_len))                               
    {                                                                 
        bool is_dot = *name == '.';                                   
 8015974:	65 b2 00 2e 	cmpei r18,r13,46                               
 */                                                                   
static msdos_name_type_t                                              
msdos_is_valid_name_char(const char ch)                               
{                                                                     
    if (strchr(" +,;=[]", ch) != NULL)                                
        return MSDOS_NAME_LONG;                                       
 8015978:	34 0b 00 02 	mvi r11,2                                      
 *                                                                    
 */                                                                   
static msdos_name_type_t                                              
msdos_is_valid_name_char(const char ch)                               
{                                                                     
    if (strchr(" +,;=[]", ch) != NULL)                                
 801597c:	5c 20 00 0c 	bne r1,r0,80159ac <msdos_long_to_short+0x124>  <== NEVER TAKEN
        return MSDOS_NAME_LONG;                                       
                                                                      
    if ((ch == '.') || isalnum((unsigned char)ch) ||                  
        (strchr("$%'-_@~`!(){}^#&", ch) != NULL))                     
        return MSDOS_NAME_SHORT;                                      
 8015980:	34 0b 00 01 	mvi r11,1                                      
msdos_is_valid_name_char(const char ch)                               
{                                                                     
    if (strchr(" +,;=[]", ch) != NULL)                                
        return MSDOS_NAME_LONG;                                       
                                                                      
    if ((ch == '.') || isalnum((unsigned char)ch) ||                  
 8015984:	5e 41 00 0a 	bne r18,r1,80159ac <msdos_long_to_short+0x124> 
 8015988:	2a 61 00 00 	lw r1,(r19+0)                                  
 801598c:	b4 2d 08 00 	add r1,r1,r13                                  
 8015990:	40 21 00 01 	lbu r1,(r1+1)                                  
 8015994:	20 21 00 07 	andi r1,r1,0x7                                 
 8015998:	5c 32 00 05 	bne r1,r18,80159ac <msdos_long_to_short+0x124> 
        (strchr("$%'-_@~`!(){}^#&", ch) != NULL))                     
 801599c:	ba c0 08 00 	mv r1,r22                                      
 80159a0:	b9 a0 10 00 	mv r2,r13                                      
 80159a4:	f8 00 17 2b 	calli 801b650 <strchr>                         
 */                                                                   
static msdos_name_type_t                                              
msdos_is_valid_name_char(const char ch)                               
{                                                                     
    if (strchr(" +,;=[]", ch) != NULL)                                
        return MSDOS_NAME_LONG;                                       
 80159a8:	7c 2b 00 00 	cmpnei r11,r1,0                                
                                                                      
#if MSDOS_NAME_TYPE_PRINT                                             
        printf ("MSDOS_NAME_TYPE: c:%02x type:%d\n", *name, type);    
#endif                                                                
                                                                      
        if ((type == MSDOS_NAME_INVALID) || (type == MSDOS_NAME_LONG))
 80159ac:	65 62 00 02 	cmpei r2,r11,2                                 
 80159b0:	65 61 00 00 	cmpei r1,r11,0                                 
 80159b4:	b8 41 08 00 	or r1,r2,r1                                    
 80159b8:	5c 20 00 31 	bne r1,r0,8015a7c <msdos_long_to_short+0x1f4>  
            return type;                                              
                                                                      
        if (dot_at >= 0)                                              
 80159bc:	34 01 ff ff 	mvi r1,-1                                      
 80159c0:	46 21 00 05 	be r17,r1,80159d4 <msdos_long_to_short+0x14c>  
        {                                                             
            if (is_dot || ((count - dot_at) > 3))                     
 80159c4:	5e 40 00 49 	bne r18,r0,8015ae8 <msdos_long_to_short+0x260> 
 80159c8:	c9 91 08 00 	sub r1,r12,r17                                 
 80159cc:	48 39 00 47 	bg r1,r25,8015ae8 <msdos_long_to_short+0x260>  <== NEVER TAKEN
 80159d0:	e0 00 00 06 	bi 80159e8 <msdos_long_to_short+0x160>         
                return MSDOS_NAME_LONG;                               
            }                                                         
        }                                                             
        else                                                          
        {                                                             
            if (count == 8 && !is_dot)                                
 80159d4:	5d 9b 00 04 	bne r12,fp,80159e4 <msdos_long_to_short+0x15c> 
 80159d8:	46 40 00 44 	be r18,r0,8015ae8 <msdos_long_to_short+0x260>  <== ALWAYS TAKEN
 80159dc:	34 11 00 08 	mvi r17,8                                      <== NOT EXECUTED
 80159e0:	e0 00 00 0e 	bi 8015a18 <msdos_long_to_short+0x190>         <== NOT EXECUTED
#endif                                                                
                return MSDOS_NAME_LONG;                               
            }                                                         
        }                                                             
                                                                      
        if (is_dot)                                                   
 80159e4:	5e 40 00 08 	bne r18,r0,8015a04 <msdos_long_to_short+0x17c> 
            dot_at = count;                                           
        else if ((*name >= 'A') && (*name <= 'Z'))                    
 80159e8:	35 a1 ff bf 	addi r1,r13,-65                                
 80159ec:	20 21 00 ff 	andi r1,r1,0xff                                
 80159f0:	53 01 00 07 	bgeu r24,r1,8015a0c <msdos_long_to_short+0x184>
            uppercase = true;                                         
        else if ((*name >= 'a') && (*name <= 'z'))                    
 80159f4:	35 ad ff 9f 	addi r13,r13,-97                               
 80159f8:	21 ad 00 ff 	andi r13,r13,0xff                              
 80159fc:	53 0d 00 06 	bgeu r24,r13,8015a14 <msdos_long_to_short+0x18c>
 8015a00:	e0 00 00 06 	bi 8015a18 <msdos_long_to_short+0x190>         
#endif                                                                
                return MSDOS_NAME_LONG;                               
            }                                                         
        }                                                             
                                                                      
        if (is_dot)                                                   
 8015a04:	b9 80 88 00 	mv r17,r12                                     
 8015a08:	e0 00 00 04 	bi 8015a18 <msdos_long_to_short+0x190>         
            dot_at = count;                                           
        else if ((*name >= 'A') && (*name <= 'Z'))                    
            uppercase = true;                                         
 8015a0c:	34 14 00 01 	mvi r20,1                                      
 8015a10:	e0 00 00 02 	bi 8015a18 <msdos_long_to_short+0x190>         
        else if ((*name >= 'a') && (*name <= 'z'))                    
            lowercase = true;                                         
 8015a14:	34 15 00 01 	mvi r21,1                                      
                                                                      
        count++;                                                      
 8015a18:	35 8c 00 01 	addi r12,r12,1                                 
 8015a1c:	e0 00 00 0e 	bi 8015a54 <msdos_long_to_short+0x1cc>         
 *                                                                    
 */                                                                   
static msdos_name_type_t                                              
msdos_is_valid_name_char(const char ch)                               
{                                                                     
    if (strchr(" +,;=[]", ch) != NULL)                                
 8015a20:	78 17 08 02 	mvhi r23,0x802                                 
        return MSDOS_NAME_LONG;                                       
                                                                      
    if ((ch == '.') || isalnum((unsigned char)ch) ||                  
 8015a24:	78 13 08 02 	mvhi r19,0x802                                 
        (strchr("$%'-_@~`!(){}^#&", ch) != NULL))                     
 8015a28:	78 16 08 02 	mvhi r22,0x802                                 
                                                                      
    /*                                                                
     * Filenames with only blanks and dots are not allowed!           
     */                                                               
    for (i = 0; i < lfn_len; i++)                                     
        if ((lfn[i] != ' ') && (lfn[i] != '.'))                       
 8015a2c:	34 0c 00 00 	mvi r12,0                                      
 8015a30:	34 11 ff ff 	mvi r17,-1                                     
 8015a34:	34 14 00 00 	mvi r20,0                                      
 8015a38:	34 15 00 00 	mvi r21,0                                      
 *                                                                    
 */                                                                   
static msdos_name_type_t                                              
msdos_is_valid_name_char(const char ch)                               
{                                                                     
    if (strchr(" +,;=[]", ch) != NULL)                                
 8015a3c:	3a f7 d7 50 	ori r23,r23,0xd750                             
        return MSDOS_NAME_LONG;                                       
                                                                      
    if ((ch == '.') || isalnum((unsigned char)ch) ||                  
 8015a40:	3a 73 f2 2c 	ori r19,r19,0xf22c                             
        (strchr("$%'-_@~`!(){}^#&", ch) != NULL))                     
 8015a44:	3a d6 d7 58 	ori r22,r22,0xd758                             
            }                                                         
        }                                                             
                                                                      
        if (is_dot)                                                   
            dot_at = count;                                           
        else if ((*name >= 'A') && (*name <= 'Z'))                    
 8015a48:	34 18 00 19 	mvi r24,25                                     
                return MSDOS_NAME_LONG;                               
            }                                                         
        }                                                             
        else                                                          
        {                                                             
            if (count == 8 && !is_dot)                                
 8015a4c:	34 1b 00 08 	mvi fp,8                                       
        if ((type == MSDOS_NAME_INVALID) || (type == MSDOS_NAME_LONG))
            return type;                                              
                                                                      
        if (dot_at >= 0)                                              
        {                                                             
            if (is_dot || ((count - dot_at) > 3))                     
 8015a50:	34 19 00 03 	mvi r25,3                                      
 *     true the name is long, else the name is short.                 
 *                                                                    
 */                                                                   
#define MSDOS_L2S_PRINT 0                                             
msdos_name_type_t                                                     
msdos_long_to_short(const char *lfn, int lfn_len, char* sfn, int sfn_len)
 8015a54:	b5 ec 08 00 	add r1,r15,r12                                 
    bool lowercase = false;                                           
    bool uppercase = false;                                           
    int  dot_at = -1;                                                 
    int  count = 0;                                                   
                                                                      
    while (*name && (count < name_len))                               
 8015a58:	40 2d 00 00 	lbu r13,(r1+0)                                 
 8015a5c:	e9 cc 10 00 	cmpg r2,r14,r12                                
 8015a60:	7d a1 00 00 	cmpnei r1,r13,0                                
 8015a64:	a0 41 08 00 	and r1,r2,r1                                   
 8015a68:	5c 20 ff c0 	bne r1,r0,8015968 <msdos_long_to_short+0xe0>   
    }                                                                 
                                                                      
#if MSDOS_NAME_TYPE_PRINT                                             
    printf ("MSDOS_NAME_TYPE: SHORT[1]\n");                           
#endif                                                                
    return MSDOS_NAME_SHORT;                                          
 8015a6c:	34 0b 00 01 	mvi r11,1                                      
                                                                      
        count++;                                                      
        name++;                                                       
    }                                                                 
                                                                      
    if (lowercase && uppercase)                                       
 8015a70:	46 a1 00 05 	be r21,r1,8015a84 <msdos_long_to_short+0x1fc>  
    }                                                                 
                                                                      
#if MSDOS_NAME_TYPE_PRINT                                             
    printf ("MSDOS_NAME_TYPE: SHORT[1]\n");                           
#endif                                                                
    return MSDOS_NAME_SHORT;                                          
 8015a74:	36 8b 00 01 	addi r11,r20,1                                 
 8015a78:	e0 00 00 03 	bi 8015a84 <msdos_long_to_short+0x1fc>         
                                                                      
#if MSDOS_NAME_TYPE_PRINT                                             
        printf ("MSDOS_NAME_TYPE: c:%02x type:%d\n", *name, type);    
#endif                                                                
                                                                      
        if ((type == MSDOS_NAME_INVALID) || (type == MSDOS_NAME_LONG))
 8015a7c:	b9 60 10 00 	mv r2,r11                                      
     * Is this a short name ?                                         
     */                                                               
                                                                      
    type = msdos_name_type (lfn, lfn_len);                            
                                                                      
    if (type == MSDOS_NAME_INVALID)                                   
 8015a80:	45 60 00 06 	be r11,r0,8015a98 <msdos_long_to_short+0x210>  <== NEVER TAKEN
        printf ("MSDOS_L2S: INVALID[2]: lfn:'%s' SFN:'%s'\n", lfn, sfn);
#endif                                                                
        return MSDOS_NAME_INVALID;                                    
    }                                                                 
                                                                      
    msdos_filename_unix2dos (lfn, lfn_len, sfn);                      
 8015a84:	b9 c0 10 00 	mv r2,r14                                      
 8015a88:	b9 e0 08 00 	mv r1,r15                                      
 8015a8c:	ba 00 18 00 	mv r3,r16                                      
 8015a90:	f8 00 0c 5f 	calli 8018c0c <msdos_filename_unix2dos>        
                                                                      
#if MSDOS_L2S_PRINT                                                   
    printf ("MSDOS_L2S: TYPE:%d lfn:'%s' SFN:'%s'\n", type, lfn, sfn);
#endif                                                                
    return type;                                                      
 8015a94:	b9 60 10 00 	mv r2,r11                                      
}                                                                     
 8015a98:	b8 40 08 00 	mv r1,r2                                       
 8015a9c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8015aa0:	2b 8b 00 44 	lw r11,(sp+68)                                 
 8015aa4:	2b 8c 00 40 	lw r12,(sp+64)                                 
 8015aa8:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 8015aac:	2b 8e 00 38 	lw r14,(sp+56)                                 
 8015ab0:	2b 8f 00 34 	lw r15,(sp+52)                                 
 8015ab4:	2b 90 00 30 	lw r16,(sp+48)                                 
 8015ab8:	2b 91 00 2c 	lw r17,(sp+44)                                 
 8015abc:	2b 92 00 28 	lw r18,(sp+40)                                 
 8015ac0:	2b 93 00 24 	lw r19,(sp+36)                                 
 8015ac4:	2b 94 00 20 	lw r20,(sp+32)                                 
 8015ac8:	2b 95 00 1c 	lw r21,(sp+28)                                 
 8015acc:	2b 96 00 18 	lw r22,(sp+24)                                 
 8015ad0:	2b 97 00 14 	lw r23,(sp+20)                                 
 8015ad4:	2b 98 00 10 	lw r24,(sp+16)                                 
 8015ad8:	2b 99 00 0c 	lw r25,(sp+12)                                 
 8015adc:	2b 9b 00 08 	lw fp,(sp+8)                                   
 8015ae0:	37 9c 00 44 	addi sp,sp,68                                  
 8015ae4:	c3 a0 00 00 	ret                                            
            {                                                         
#if MSDOS_NAME_TYPE_PRINT                                             
                printf ("MSDOS_NAME_TYPE: LONG[2]: is_dot:%d, at:%d cnt\n",
                        is_dot, dot_at, count);                       
#endif                                                                
                return MSDOS_NAME_LONG;                               
 8015ae8:	34 0b 00 02 	mvi r11,2                                      
 8015aec:	e3 ff ff e6 	bi 8015a84 <msdos_long_to_short+0x1fc>         
                                                                      

0800aff0 <msdos_mknod>: const char *name, size_t namelen, mode_t mode, dev_t dev ) {
 800aff0:	37 9c ff fc 	addi sp,sp,-4                                  
 800aff4:	5b 9d 00 04 	sw (sp+4),ra                                   
 800aff8:	b8 40 38 00 	mv r7,r2                                       
 800affc:	b8 60 30 00 	mv r6,r3                                       
    msdos_node_type_t    type = 0;                                    
                                                                      
    /*                                                                
     *  Figure out what type of msdos node this is.                   
     */                                                               
    if (S_ISDIR(mode))                                                
 800b000:	34 02 40 00 	mvi r2,16384                                   
 800b004:	20 83 f0 00 	andi r3,r4,0xf000                              
    const char *name,                                                 
    size_t namelen,                                                   
    mode_t mode,                                                      
    dev_t dev                                                         
)                                                                     
{                                                                     
 800b008:	b8 80 28 00 	mv r5,r4                                       
    msdos_node_type_t    type = 0;                                    
                                                                      
    /*                                                                
     *  Figure out what type of msdos node this is.                   
     */                                                               
    if (S_ISDIR(mode))                                                
 800b00c:	44 62 00 09 	be r3,r2,800b030 <msdos_mknod+0x40>            
    {                                                                 
       type = MSDOS_DIRECTORY;                                        
    }                                                                 
    else if (S_ISREG(mode))                                           
 800b010:	38 04 80 00 	mvu r4,0x8000                                  
    {                                                                 
        type = MSDOS_REGULAR_FILE;                                    
 800b014:	34 02 00 04 	mvi r2,4                                       
     */                                                               
    if (S_ISDIR(mode))                                                
    {                                                                 
       type = MSDOS_DIRECTORY;                                        
    }                                                                 
    else if (S_ISREG(mode))                                           
 800b018:	44 64 00 07 	be r3,r4,800b034 <msdos_mknod+0x44>            <== ALWAYS TAKEN
    {                                                                 
        type = MSDOS_REGULAR_FILE;                                    
    }                                                                 
    else                                                              
        rtems_set_errno_and_return_minus_one(EINVAL);                 
 800b01c:	f8 00 3a 7c 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 800b020:	34 02 00 16 	mvi r2,22                                      <== NOT EXECUTED
 800b024:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 800b028:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 800b02c:	e0 00 00 06 	bi 800b044 <msdos_mknod+0x54>                  <== NOT EXECUTED
    /*                                                                
     *  Figure out what type of msdos node this is.                   
     */                                                               
    if (S_ISDIR(mode))                                                
    {                                                                 
       type = MSDOS_DIRECTORY;                                        
 800b030:	34 02 00 00 	mvi r2,0                                       
    }                                                                 
    else                                                              
        rtems_set_errno_and_return_minus_one(EINVAL);                 
                                                                      
    /* Create an MSDOS node */                                        
    rc = msdos_creat_node(parentloc, type, name, namelen, mode, NULL);
 800b034:	b8 c0 20 00 	mv r4,r6                                       
 800b038:	b8 e0 18 00 	mv r3,r7                                       
 800b03c:	34 06 00 00 	mvi r6,0                                       
 800b040:	f8 00 27 ca 	calli 8014f68 <msdos_creat_node>               
                                                                      
    return rc;                                                        
}                                                                     
 800b044:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800b048:	37 9c 00 04 	addi sp,sp,4                                   
 800b04c:	c3 a0 00 00 	ret                                            
                                                                      

0800b05c <msdos_rename>: const rtems_filesystem_location_info_t *old_loc, const rtems_filesystem_location_info_t *new_parent_loc, const char *new_name, size_t new_namelen ) {
 800b05c:	37 9c ff f4 	addi sp,sp,-12                                 <== NOT EXECUTED
 800b060:	5b 8b 00 0c 	sw (sp+12),r11                                 <== NOT EXECUTED
 800b064:	5b 8c 00 08 	sw (sp+8),r12                                  <== NOT EXECUTED
 800b068:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
    int                rc = RC_OK;                                    
    fat_file_fd_t     *old_fat_fd  = old_loc->node_access;            
 800b06c:	28 4b 00 08 	lw r11,(r2+8)                                  <== NOT EXECUTED
    const rtems_filesystem_location_info_t *old_loc,                  
    const rtems_filesystem_location_info_t *new_parent_loc,           
    const char *new_name,                                             
    size_t new_namelen                                                
)                                                                     
{                                                                     
 800b070:	b8 40 60 00 	mv r12,r2                                      <== NOT EXECUTED
                                                                      
    /*                                                                
     * create new directory entry as "hard link", copying relevant info from
     * existing file                                                  
     */                                                               
    rc = msdos_creat_node(new_parent_loc,                             
 800b074:	b8 60 08 00 	mv r1,r3                                       <== NOT EXECUTED
 800b078:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
 800b07c:	b8 80 18 00 	mv r3,r4                                       <== NOT EXECUTED
 800b080:	b9 60 30 00 	mv r6,r11                                      <== NOT EXECUTED
 800b084:	b8 a0 20 00 	mv r4,r5                                       <== NOT EXECUTED
 800b088:	38 05 80 00 	mvu r5,0x8000                                  <== NOT EXECUTED
 800b08c:	f8 00 27 b7 	calli 8014f68 <msdos_creat_node>               <== NOT EXECUTED
                          MSDOS_HARD_LINK,new_name,new_namelen,S_IFREG,
                          old_fat_fd);                                
    if (rc != RC_OK)                                                  
 800b090:	5c 20 00 05 	bne r1,r0,800b0a4 <msdos_rename+0x48>          <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * mark file removed                                              
     */                                                               
    rc = msdos_set_first_char4file_name(old_loc->mt_entry,            
 800b094:	29 81 00 14 	lw r1,(r12+20)                                 <== NOT EXECUTED
 800b098:	35 62 00 20 	addi r2,r11,32                                 <== NOT EXECUTED
 800b09c:	34 03 00 e5 	mvi r3,229                                     <== NOT EXECUTED
 800b0a0:	f8 00 2b 68 	calli 8015e40 <msdos_set_first_char4file_name> <== NOT EXECUTED
                                        &old_fat_fd->dir_pos,         
                                        MSDOS_THIS_DIR_ENTRY_EMPTY);  
                                                                      
    return rc;                                                        
}                                                                     
 800b0a4:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 800b0a8:	2b 8b 00 0c 	lw r11,(sp+12)                                 <== NOT EXECUTED
 800b0ac:	2b 8c 00 08 	lw r12,(sp+8)                                  <== NOT EXECUTED
 800b0b0:	37 9c 00 0c 	addi sp,sp,12                                  <== NOT EXECUTED
 800b0b4:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0800b0b8 <msdos_rmnod>: #include "msdos.h" int msdos_rmnod(const rtems_filesystem_location_info_t *parent_pathloc, const rtems_filesystem_location_info_t *pathloc) {
 800b0b8:	37 9c ff e4 	addi sp,sp,-28                                 
 800b0bc:	5b 8b 00 18 	sw (sp+24),r11                                 
 800b0c0:	5b 8c 00 14 	sw (sp+20),r12                                 
 800b0c4:	5b 8d 00 10 	sw (sp+16),r13                                 
 800b0c8:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800b0cc:	5b 8f 00 08 	sw (sp+8),r15                                  
 800b0d0:	5b 9d 00 04 	sw (sp+4),ra                                   
    int                rc = RC_OK;                                    
    msdos_fs_info_t   *fs_info = pathloc->mt_entry->fs_info;          
    fat_file_fd_t     *fat_fd = pathloc->node_access;                 
 800b0d4:	28 4c 00 08 	lw r12,(r2+8)                                  
int                                                                   
msdos_rmnod(const rtems_filesystem_location_info_t *parent_pathloc,   
            const rtems_filesystem_location_info_t *pathloc)          
{                                                                     
    int                rc = RC_OK;                                    
    msdos_fs_info_t   *fs_info = pathloc->mt_entry->fs_info;          
 800b0d8:	28 41 00 14 	lw r1,(r2+20)                                  
#include "msdos.h"                                                    
                                                                      
int                                                                   
msdos_rmnod(const rtems_filesystem_location_info_t *parent_pathloc,   
            const rtems_filesystem_location_info_t *pathloc)          
{                                                                     
 800b0dc:	b8 40 68 00 	mv r13,r2                                      
    int                rc = RC_OK;                                    
    msdos_fs_info_t   *fs_info = pathloc->mt_entry->fs_info;          
    fat_file_fd_t     *fat_fd = pathloc->node_access;                 
                                                                      
    if (fat_fd->fat_file_type == MSDOS_DIRECTORY)                     
 800b0e0:	29 8e 00 10 	lw r14,(r12+16)                                
int                                                                   
msdos_rmnod(const rtems_filesystem_location_info_t *parent_pathloc,   
            const rtems_filesystem_location_info_t *pathloc)          
{                                                                     
    int                rc = RC_OK;                                    
    msdos_fs_info_t   *fs_info = pathloc->mt_entry->fs_info;          
 800b0e4:	28 2f 00 08 	lw r15,(r1+8)                                  
    fat_file_fd_t     *fat_fd = pathloc->node_access;                 
                                                                      
    if (fat_fd->fat_file_type == MSDOS_DIRECTORY)                     
 800b0e8:	5d c0 00 14 	bne r14,r0,800b138 <msdos_rmnod+0x80>          
        bool is_empty = false;                                        
                                                                      
        /*                                                            
         * You cannot remove a node that still has children           
         */                                                           
        rc = msdos_dir_is_empty(pathloc->mt_entry, fat_fd, &is_empty);
 800b0ec:	b9 80 10 00 	mv r2,r12                                      
 800b0f0:	37 83 00 1f 	addi r3,sp,31                                  
    msdos_fs_info_t   *fs_info = pathloc->mt_entry->fs_info;          
    fat_file_fd_t     *fat_fd = pathloc->node_access;                 
                                                                      
    if (fat_fd->fat_file_type == MSDOS_DIRECTORY)                     
    {                                                                 
        bool is_empty = false;                                        
 800b0f4:	33 80 00 1f 	sb (sp+31),r0                                  
                                                                      
        /*                                                            
         * You cannot remove a node that still has children           
         */                                                           
        rc = msdos_dir_is_empty(pathloc->mt_entry, fat_fd, &is_empty);
 800b0f8:	f8 00 2b a7 	calli 8015f94 <msdos_dir_is_empty>             
 800b0fc:	b8 20 58 00 	mv r11,r1                                      
        if (rc != RC_OK)                                              
 800b100:	5c 2e 00 17 	bne r1,r14,800b15c <msdos_rmnod+0xa4>          <== NEVER TAKEN
        {                                                             
            return rc;                                                
        }                                                             
                                                                      
        if (!is_empty)                                                
 800b104:	43 81 00 1f 	lbu r1,(sp+31)                                 
 800b108:	5c 2b 00 04 	bne r1,r11,800b118 <msdos_rmnod+0x60>          
        {                                                             
            rtems_set_errno_and_return_minus_one(ENOTEMPTY);          
 800b10c:	f8 00 3a 40 	calli 8019a0c <__errno>                        
 800b110:	34 02 00 5a 	mvi r2,90                                      
 800b114:	e0 00 00 06 	bi 800b12c <msdos_rmnod+0x74>                  
                                                                      
        /*                                                            
         * We deny attempts to delete open directory (if directory is current
         * directory we assume it is open one)                        
         */                                                           
        if (fat_fd->links_num > 1)                                    
 800b118:	29 82 00 08 	lw r2,(r12+8)                                  
 800b11c:	34 01 00 01 	mvi r1,1                                       
 800b120:	50 22 00 06 	bgeu r1,r2,800b138 <msdos_rmnod+0x80>          <== ALWAYS TAKEN
        {                                                             
            rtems_set_errno_and_return_minus_one(EBUSY);              
 800b124:	f8 00 3a 3a 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 800b128:	34 02 00 10 	mvi r2,16                                      <== NOT EXECUTED
 800b12c:	58 22 00 00 	sw (r1+0),r2                                   
 800b130:	34 0b ff ff 	mvi r11,-1                                     
 800b134:	e0 00 00 0a 	bi 800b15c <msdos_rmnod+0xa4>                  
         * not used - mount() not implemenetd yet.                    
         */                                                           
    }                                                                 
                                                                      
    /* mark file removed */                                           
    rc = msdos_set_first_char4file_name(pathloc->mt_entry, &fat_fd->dir_pos,
 800b138:	29 a1 00 14 	lw r1,(r13+20)                                 
 800b13c:	35 82 00 20 	addi r2,r12,32                                 
 800b140:	34 03 00 e5 	mvi r3,229                                     
 800b144:	f8 00 2b 3f 	calli 8015e40 <msdos_set_first_char4file_name> 
 800b148:	b8 20 58 00 	mv r11,r1                                      
                                        MSDOS_THIS_DIR_ENTRY_EMPTY);  
    if (rc != RC_OK)                                                  
 800b14c:	5c 20 00 04 	bne r1,r0,800b15c <msdos_rmnod+0xa4>           <== NEVER TAKEN
    {                                                                 
        return rc;                                                    
    }                                                                 
                                                                      
    fat_file_mark_removed(&fs_info->fat, fat_fd);                     
 800b150:	b9 e0 08 00 	mv r1,r15                                      
 800b154:	b9 80 10 00 	mv r2,r12                                      
 800b158:	f8 00 12 a7 	calli 800fbf4 <fat_file_mark_removed>          
                                                                      
    return rc;                                                        
}                                                                     
 800b15c:	b9 60 08 00 	mv r1,r11                                      
 800b160:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800b164:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800b168:	2b 8c 00 14 	lw r12,(sp+20)                                 
 800b16c:	2b 8d 00 10 	lw r13,(sp+16)                                 
 800b170:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800b174:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800b178:	37 9c 00 1c 	addi sp,sp,28                                  
 800b17c:	c3 a0 00 00 	ret                                            
                                                                      

08015af0 <msdos_set_dir_wrt_time_and_date>: int msdos_set_dir_wrt_time_and_date( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd ) {
 8015af0:	37 9c ff e0 	addi sp,sp,-32                                 
 8015af4:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8015af8:	5b 8c 00 18 	sw (sp+24),r12                                 
 8015afc:	5b 8d 00 14 	sw (sp+20),r13                                 
 8015b00:	5b 8e 00 10 	sw (sp+16),r14                                 
 8015b04:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8015b08:	5b 90 00 08 	sw (sp+8),r16                                  
 8015b0c:	5b 9d 00 04 	sw (sp+4),ra                                   
    ssize_t          ret1 = 0, ret2 = 0, ret3 = 0;                    
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
 8015b10:	28 2b 00 08 	lw r11,(r1+8)                                  
    uint16_t         time_val;                                        
    uint16_t         date;                                            
    uint32_t         sec = 0;                                         
    uint32_t         byte = 0;                                        
                                                                      
    msdos_date_unix2dos(fat_fd->mtime, &date, &time_val);             
 8015b14:	28 41 00 40 	lw r1,(r2+64)                                  
 8015b18:	37 8e 00 22 	addi r14,sp,34                                 
 8015b1c:	b9 c0 18 00 	mv r3,r14                                      
int                                                                   
msdos_set_dir_wrt_time_and_date(                                      
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    fat_file_fd_t                        *fat_fd                      
    )                                                                 
{                                                                     
 8015b20:	b8 40 60 00 	mv r12,r2                                      
    uint16_t         time_val;                                        
    uint16_t         date;                                            
    uint32_t         sec = 0;                                         
    uint32_t         byte = 0;                                        
                                                                      
    msdos_date_unix2dos(fat_fd->mtime, &date, &time_val);             
 8015b24:	37 82 00 20 	addi r2,sp,32                                  
 8015b28:	f8 00 0b 73 	calli 80188f4 <msdos_date_unix2dos>            
                                                                      
    /*                                                                
     * calculate input for fat_sector_write: convert (cluster num, offset) to
     * (sector num, new offset)                                       
     */                                                               
    sec = fat_cluster_num_to_sector_num(&fs_info->fat, fat_fd->dir_pos.sname.cln);
 8015b2c:	29 82 00 20 	lw r2,(r12+32)                                 
 8015b30:	b9 60 08 00 	mv r1,r11                                      
 8015b34:	fb ff ff 42 	calli 801583c <fat_cluster_num_to_sector_num>  
    sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);  
 8015b38:	29 8f 00 24 	lw r15,(r12+36)                                
 8015b3c:	41 62 00 02 	lbu r2,(r11+2)                                 
                                                                      
    /*                                                                
     * calculate input for fat_sector_write: convert (cluster num, offset) to
     * (sector num, new offset)                                       
     */                                                               
    sec = fat_cluster_num_to_sector_num(&fs_info->fat, fat_fd->dir_pos.sname.cln);
 8015b40:	b8 20 68 00 	mv r13,r1                                      
    sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);  
 8015b44:	b9 e0 08 00 	mv r1,r15                                      
 8015b48:	f8 00 59 b2 	calli 802c210 <__lshrsi3>                      
    /* byte points to start of 32bytes structure */                   
    byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);    
 8015b4c:	2d 6c 00 00 	lhu r12,(r11+0)                                
    /*                                                                
     * calculate input for fat_sector_write: convert (cluster num, offset) to
     * (sector num, new offset)                                       
     */                                                               
    sec = fat_cluster_num_to_sector_num(&fs_info->fat, fat_fd->dir_pos.sname.cln);
    sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);  
 8015b50:	b5 a1 68 00 	add r13,r13,r1                                 
 *  @param[in] value is the value to be swapped                       
 *  @return the value after being endian swapped                      
 */                                                                   
static inline uint16_t CPU_swap_u16(uint16_t v)                       
{                                                                     
    return v << 8 | v >> 8;                                           
 8015b54:	34 02 00 08 	mvi r2,8                                       
    /* byte points to start of 32bytes structure */                   
    byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);    
 8015b58:	35 8c ff ff 	addi r12,r12,-1                                
 8015b5c:	a1 8f 60 00 	and r12,r12,r15                                
                                                                      
    time_val = CT_LE_W(time_val);                                     
 8015b60:	2f 8f 00 22 	lhu r15,(sp+34)                                
 8015b64:	b9 e0 08 00 	mv r1,r15                                      
 8015b68:	fb ff ad a0 	calli 80011e8 <__ashlsi3>                      
 8015b6c:	b8 20 80 00 	mv r16,r1                                      
 8015b70:	34 02 00 08 	mvi r2,8                                       
 8015b74:	b9 e0 08 00 	mv r1,r15                                      
 8015b78:	f8 00 59 a6 	calli 802c210 <__lshrsi3>                      
 8015b7c:	ba 01 08 00 	or r1,r16,r1                                   
    ret1 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_WTIME_OFFSET,
 8015b80:	35 83 00 16 	addi r3,r12,22                                 
 8015b84:	b9 c0 28 00 	mv r5,r14                                      
 8015b88:	34 04 00 02 	mvi r4,2                                       
    sec = fat_cluster_num_to_sector_num(&fs_info->fat, fat_fd->dir_pos.sname.cln);
    sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);  
    /* byte points to start of 32bytes structure */                   
    byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);    
                                                                      
    time_val = CT_LE_W(time_val);                                     
 8015b8c:	0f 81 00 22 	sh (sp+34),r1                                  
    ret1 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_WTIME_OFFSET,
 8015b90:	b9 a0 10 00 	mv r2,r13                                      
 8015b94:	b9 60 08 00 	mv r1,r11                                      
 8015b98:	fb ff e9 76 	calli 8010170 <fat_sector_write>               
                            2, (char *)(&time_val));                  
    date = CT_LE_W(date);                                             
 8015b9c:	2f 8e 00 20 	lhu r14,(sp+32)                                
    sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);  
    /* byte points to start of 32bytes structure */                   
    byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);    
                                                                      
    time_val = CT_LE_W(time_val);                                     
    ret1 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_WTIME_OFFSET,
 8015ba0:	b8 20 78 00 	mv r15,r1                                      
 8015ba4:	34 02 00 08 	mvi r2,8                                       
 8015ba8:	b9 c0 08 00 	mv r1,r14                                      
 8015bac:	fb ff ad 8f 	calli 80011e8 <__ashlsi3>                      
 8015bb0:	b8 20 80 00 	mv r16,r1                                      
 8015bb4:	34 02 00 08 	mvi r2,8                                       
 8015bb8:	b9 c0 08 00 	mv r1,r14                                      
 8015bbc:	f8 00 59 95 	calli 802c210 <__lshrsi3>                      
 8015bc0:	ba 01 10 00 	or r2,r16,r1                                   
                            2, (char *)(&time_val));                  
    date = CT_LE_W(date);                                             
    ret2 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_WDATE_OFFSET,
 8015bc4:	35 83 00 18 	addi r3,r12,24                                 
    byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);    
                                                                      
    time_val = CT_LE_W(time_val);                                     
    ret1 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_WTIME_OFFSET,
                            2, (char *)(&time_val));                  
    date = CT_LE_W(date);                                             
 8015bc8:	0f 82 00 20 	sh (sp+32),r2                                  
    ret2 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_WDATE_OFFSET,
 8015bcc:	b9 60 08 00 	mv r1,r11                                      
 8015bd0:	b9 a0 10 00 	mv r2,r13                                      
 8015bd4:	34 04 00 02 	mvi r4,2                                       
 8015bd8:	37 85 00 20 	addi r5,sp,32                                  
 8015bdc:	fb ff e9 65 	calli 8010170 <fat_sector_write>               
                            2, (char *)(&date));                      
    ret3 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_ADATE_OFFSET,
 8015be0:	35 83 00 12 	addi r3,r12,18                                 
 8015be4:	34 04 00 02 	mvi r4,2                                       
 8015be8:	37 85 00 20 	addi r5,sp,32                                  
                                                                      
    time_val = CT_LE_W(time_val);                                     
    ret1 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_WTIME_OFFSET,
                            2, (char *)(&time_val));                  
    date = CT_LE_W(date);                                             
    ret2 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_WDATE_OFFSET,
 8015bec:	b8 20 70 00 	mv r14,r1                                      
                            2, (char *)(&date));                      
    ret3 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_ADATE_OFFSET,
 8015bf0:	b9 a0 10 00 	mv r2,r13                                      
 8015bf4:	b9 60 08 00 	mv r1,r11                                      
 8015bf8:	fb ff e9 5e 	calli 8010170 <fat_sector_write>               
                            2, (char *)(&date));                      
                                                                      
    if ( (ret1 < 0) || (ret2 < 0) || (ret3 < 0) )                     
 8015bfc:	34 02 00 1f 	mvi r2,31                                      
    ret1 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_WTIME_OFFSET,
                            2, (char *)(&time_val));                  
    date = CT_LE_W(date);                                             
    ret2 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_WDATE_OFFSET,
                            2, (char *)(&date));                      
    ret3 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_ADATE_OFFSET,
 8015c00:	b8 20 58 00 	mv r11,r1                                      
                            2, (char *)(&date));                      
                                                                      
    if ( (ret1 < 0) || (ret2 < 0) || (ret3 < 0) )                     
 8015c04:	b9 c0 08 00 	mv r1,r14                                      
 8015c08:	f8 00 59 82 	calli 802c210 <__lshrsi3>                      
 8015c0c:	b8 20 60 00 	mv r12,r1                                      
 8015c10:	34 02 00 1f 	mvi r2,31                                      
 8015c14:	b9 e0 08 00 	mv r1,r15                                      
 8015c18:	f8 00 59 7e 	calli 802c210 <__lshrsi3>                      
 8015c1c:	b9 81 18 00 	or r3,r12,r1                                   
 8015c20:	20 63 00 ff 	andi r3,r3,0xff                                
        return -1;                                                    
 8015c24:	34 02 ff ff 	mvi r2,-1                                      
    ret2 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_WDATE_OFFSET,
                            2, (char *)(&date));                      
    ret3 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_ADATE_OFFSET,
                            2, (char *)(&date));                      
                                                                      
    if ( (ret1 < 0) || (ret2 < 0) || (ret3 < 0) )                     
 8015c28:	5c 60 00 03 	bne r3,r0,8015c34 <msdos_set_dir_wrt_time_and_date+0x144><== NEVER TAKEN
        return -1;                                                    
 8015c2c:	ed 63 10 00 	cmpge r2,r11,r3                                
 8015c30:	34 42 ff ff 	addi r2,r2,-1                                  
                                                                      
    return RC_OK;                                                     
}                                                                     
 8015c34:	b8 40 08 00 	mv r1,r2                                       
 8015c38:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8015c3c:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8015c40:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8015c44:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8015c48:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8015c4c:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8015c50:	2b 90 00 08 	lw r16,(sp+8)                                  
 8015c54:	37 9c 00 20 	addi sp,sp,32                                  
 8015c58:	c3 a0 00 00 	ret                                            
                                                                      

08015e40 <msdos_set_first_char4file_name>: msdos_set_first_char4file_name( rtems_filesystem_mount_table_entry_t *mt_entry, fat_dir_pos_t *dir_pos, unsigned char fchar ) {
 8015e40:	37 9c ff d0 	addi sp,sp,-48                                 
 8015e44:	5b 8b 00 24 	sw (sp+36),r11                                 
 8015e48:	5b 8c 00 20 	sw (sp+32),r12                                 
 8015e4c:	5b 8d 00 1c 	sw (sp+28),r13                                 
 8015e50:	5b 8e 00 18 	sw (sp+24),r14                                 
 8015e54:	5b 8f 00 14 	sw (sp+20),r15                                 
 8015e58:	5b 90 00 10 	sw (sp+16),r16                                 
 8015e5c:	5b 91 00 0c 	sw (sp+12),r17                                 
 8015e60:	5b 92 00 08 	sw (sp+8),r18                                  
 8015e64:	5b 9d 00 04 	sw (sp+4),ra                                   
 8015e68:	33 83 00 28 	sb (sp+40),r3                                  
    ssize_t          ret;                                             
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
 8015e6c:	28 2b 00 08 	lw r11,(r1+8)                                  
    uint32_t         dir_block_size;                                  
    fat_pos_t        start = dir_pos->lname;                          
 8015e70:	28 41 00 08 	lw r1,(r2+8)                                   
 8015e74:	28 4c 00 00 	lw r12,(r2+0)                                  
 8015e78:	28 50 00 04 	lw r16,(r2+4)                                  
 8015e7c:	5b 81 00 2c 	sw (sp+44),r1                                  
 8015e80:	28 41 00 0c 	lw r1,(r2+12)                                  
 8015e84:	5b 81 00 30 	sw (sp+48),r1                                  
    fat_pos_t        end = dir_pos->sname;                            
                                                                      
    if ((end.cln == fs_info->fat.vol.rdir_cl) &&                      
 8015e88:	29 61 00 3c 	lw r1,(r11+60)                                 
 8015e8c:	5d 81 00 06 	bne r12,r1,8015ea4 <msdos_set_first_char4file_name+0x64><== NEVER TAKEN
        (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))            
 8015e90:	41 61 00 0e 	lbu r1,(r11+14)                                
 8015e94:	20 21 00 03 	andi r1,r1,0x3                                 
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
    uint32_t         dir_block_size;                                  
    fat_pos_t        start = dir_pos->lname;                          
    fat_pos_t        end = dir_pos->sname;                            
                                                                      
    if ((end.cln == fs_info->fat.vol.rdir_cl) &&                      
 8015e98:	44 20 00 03 	be r1,r0,8015ea4 <msdos_set_first_char4file_name+0x64><== NEVER TAKEN
        (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))            
      dir_block_size = fs_info->fat.vol.rdir_size;                    
 8015e9c:	29 6d 00 2c 	lw r13,(r11+44)                                
 8015ea0:	e0 00 00 02 	bi 8015ea8 <msdos_set_first_char4file_name+0x68>
    else                                                              
      dir_block_size = fs_info->fat.vol.bpc;                          
 8015ea4:	2d 6d 00 06 	lhu r13,(r11+6)                                <== NOT EXECUTED
                                                                      
    if (dir_pos->lname.cln == FAT_FILE_SHORT_NAME)                    
 8015ea8:	28 43 00 08 	lw r3,(r2+8)                                   
 8015eac:	34 01 ff ff 	mvi r1,-1                                      
 8015eb0:	5c 61 00 05 	bne r3,r1,8015ec4 <msdos_set_first_char4file_name+0x84>
      start = dir_pos->sname;                                         
 8015eb4:	28 41 00 00 	lw r1,(r2+0)                                   
 8015eb8:	5b 81 00 2c 	sw (sp+44),r1                                  
 8015ebc:	28 41 00 04 	lw r1,(r2+4)                                   
 8015ec0:	5b 81 00 30 	sw (sp+48),r1                                  
      uint32_t sec = (fat_cluster_num_to_sector_num(&fs_info->fat, start.cln) +
                      (start.ofs >> fs_info->fat.vol.sec_log2));      
      uint32_t byte = (start.ofs & (fs_info->fat.vol.bps - 1));       
                                                                      
      ret = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_NAME_OFFSET,
                             1, &fchar);                              
 8015ec4:	37 8f 00 28 	addi r15,sp,40                                 
      {                                                               
        int rc;                                                       
        if ((end.cln == fs_info->fat.vol.rdir_cl) &&                  
            (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))        
          break;                                                      
        rc = fat_get_fat_cluster(&fs_info->fat, start.cln, &start.cln);
 8015ec8:	37 8e 00 2c 	addi r14,sp,44                                 
     * name code was written rather than use the fat_file_write       
     * interface.                                                     
     */                                                               
    while (true)                                                      
    {                                                                 
      uint32_t sec = (fat_cluster_num_to_sector_num(&fs_info->fat, start.cln) +
 8015ecc:	2b 82 00 2c 	lw r2,(sp+44)                                  
 8015ed0:	b9 60 08 00 	mv r1,r11                                      
 8015ed4:	fb ff fe 5a 	calli 801583c <fat_cluster_num_to_sector_num>  
                      (start.ofs >> fs_info->fat.vol.sec_log2));      
 8015ed8:	2b 91 00 30 	lw r17,(sp+48)                                 
 8015edc:	41 62 00 02 	lbu r2,(r11+2)                                 
     * name code was written rather than use the fat_file_write       
     * interface.                                                     
     */                                                               
    while (true)                                                      
    {                                                                 
      uint32_t sec = (fat_cluster_num_to_sector_num(&fs_info->fat, start.cln) +
 8015ee0:	b8 20 90 00 	mv r18,r1                                      
                      (start.ofs >> fs_info->fat.vol.sec_log2));      
 8015ee4:	ba 20 08 00 	mv r1,r17                                      
 8015ee8:	f8 00 58 ca 	calli 802c210 <__lshrsi3>                      
      uint32_t byte = (start.ofs & (fs_info->fat.vol.bps - 1));       
 8015eec:	2d 64 00 00 	lhu r4,(r11+0)                                 
     * name code was written rather than use the fat_file_write       
     * interface.                                                     
     */                                                               
    while (true)                                                      
    {                                                                 
      uint32_t sec = (fat_cluster_num_to_sector_num(&fs_info->fat, start.cln) +
 8015ef0:	b6 41 10 00 	add r2,r18,r1                                  
                      (start.ofs >> fs_info->fat.vol.sec_log2));      
      uint32_t byte = (start.ofs & (fs_info->fat.vol.bps - 1));       
                                                                      
      ret = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_NAME_OFFSET,
 8015ef4:	b9 e0 28 00 	mv r5,r15                                      
     */                                                               
    while (true)                                                      
    {                                                                 
      uint32_t sec = (fat_cluster_num_to_sector_num(&fs_info->fat, start.cln) +
                      (start.ofs >> fs_info->fat.vol.sec_log2));      
      uint32_t byte = (start.ofs & (fs_info->fat.vol.bps - 1));       
 8015ef8:	34 84 ff ff 	addi r4,r4,-1                                  
                                                                      
      ret = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_NAME_OFFSET,
 8015efc:	a0 91 18 00 	and r3,r4,r17                                  
 8015f00:	b9 60 08 00 	mv r1,r11                                      
 8015f04:	34 04 00 01 	mvi r4,1                                       
 8015f08:	fb ff e8 9a 	calli 8010170 <fat_sector_write>               
                             1, &fchar);                              
      if (ret < 0)                                                    
 8015f0c:	48 01 00 14 	bg r0,r1,8015f5c <msdos_set_first_char4file_name+0x11c><== NEVER TAKEN
        return -1;                                                    
                                                                      
      if ((start.cln == end.cln) && (start.ofs == end.ofs))           
 8015f10:	2b 82 00 2c 	lw r2,(sp+44)                                  
 8015f14:	5c 4c 00 03 	bne r2,r12,8015f20 <msdos_set_first_char4file_name+0xe0><== NEVER TAKEN
 8015f18:	2b 81 00 30 	lw r1,(sp+48)                                  
 8015f1c:	44 30 00 12 	be r1,r16,8015f64 <msdos_set_first_char4file_name+0x124>
        break;                                                        
                                                                      
      start.ofs += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;                 
 8015f20:	2b 81 00 30 	lw r1,(sp+48)                                  
 8015f24:	34 21 00 20 	addi r1,r1,32                                  
 8015f28:	5b 81 00 30 	sw (sp+48),r1                                  
      if (start.ofs >= dir_block_size)                                
 8015f2c:	55 a1 ff e8 	bgu r13,r1,8015ecc <msdos_set_first_char4file_name+0x8c><== ALWAYS TAKEN
      {                                                               
        int rc;                                                       
        if ((end.cln == fs_info->fat.vol.rdir_cl) &&                  
 8015f30:	29 61 00 3c 	lw r1,(r11+60)                                 <== NOT EXECUTED
 8015f34:	5d 81 00 04 	bne r12,r1,8015f44 <msdos_set_first_char4file_name+0x104><== NOT EXECUTED
            (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))        
 8015f38:	41 61 00 0e 	lbu r1,(r11+14)                                <== NOT EXECUTED
 8015f3c:	20 21 00 03 	andi r1,r1,0x3                                 <== NOT EXECUTED
                                                                      
      start.ofs += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;                 
      if (start.ofs >= dir_block_size)                                
      {                                                               
        int rc;                                                       
        if ((end.cln == fs_info->fat.vol.rdir_cl) &&                  
 8015f40:	5c 20 00 09 	bne r1,r0,8015f64 <msdos_set_first_char4file_name+0x124><== NOT EXECUTED
            (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))        
          break;                                                      
        rc = fat_get_fat_cluster(&fs_info->fat, start.cln, &start.cln);
 8015f44:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8015f48:	b9 c0 18 00 	mv r3,r14                                      <== NOT EXECUTED
 8015f4c:	f8 00 06 89 	calli 8017970 <fat_get_fat_cluster>            <== NOT EXECUTED
        if ( rc != RC_OK )                                            
 8015f50:	5c 20 00 06 	bne r1,r0,8015f68 <msdos_set_first_char4file_name+0x128><== NOT EXECUTED
          return rc;                                                  
        start.ofs = 0;                                                
 8015f54:	5b 80 00 30 	sw (sp+48),r0                                  <== NOT EXECUTED
 8015f58:	e3 ff ff dd 	bi 8015ecc <msdos_set_first_char4file_name+0x8c><== NOT EXECUTED
      uint32_t byte = (start.ofs & (fs_info->fat.vol.bps - 1));       
                                                                      
      ret = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_NAME_OFFSET,
                             1, &fchar);                              
      if (ret < 0)                                                    
        return -1;                                                    
 8015f5c:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 8015f60:	e0 00 00 02 	bi 8015f68 <msdos_set_first_char4file_name+0x128><== NOT EXECUTED
          return rc;                                                  
        start.ofs = 0;                                                
      }                                                               
    }                                                                 
                                                                      
    return  RC_OK;                                                    
 8015f64:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 8015f68:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8015f6c:	2b 8b 00 24 	lw r11,(sp+36)                                 
 8015f70:	2b 8c 00 20 	lw r12,(sp+32)                                 
 8015f74:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 8015f78:	2b 8e 00 18 	lw r14,(sp+24)                                 
 8015f7c:	2b 8f 00 14 	lw r15,(sp+20)                                 
 8015f80:	2b 90 00 10 	lw r16,(sp+16)                                 
 8015f84:	2b 91 00 0c 	lw r17,(sp+12)                                 
 8015f88:	2b 92 00 08 	lw r18,(sp+8)                                  
 8015f8c:	37 9c 00 30 	addi sp,sp,48                                  
 8015f90:	c3 a0 00 00 	ret                                            
                                                                      

08009a64 <msdos_set_sectors_per_cluster_from_request>: static int msdos_set_sectors_per_cluster_from_request( const msdos_format_request_param_t *rqdata, msdos_format_param_t *fmt_params ) {
 8009a64:	37 9c ff f0 	addi sp,sp,-16                                 
 8009a68:	5b 8b 00 10 	sw (sp+16),r11                                 
 8009a6c:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8009a70:	5b 8d 00 08 	sw (sp+8),r13                                  
 8009a74:	5b 9d 00 04 	sw (sp+4),ra                                   
 8009a78:	b8 40 60 00 	mv r12,r2                                      
  int      ret_val = -1;                                              
  uint32_t onebit;                                                    
                                                                      
  if ( rqdata != NULL && rqdata->sectors_per_cluster > 0 ) {          
 8009a7c:	44 20 00 04 	be r1,r0,8009a8c <msdos_set_sectors_per_cluster_from_request+0x28>
 8009a80:	28 21 00 08 	lw r1,(r1+8)                                   
 8009a84:	44 20 00 02 	be r1,r0,8009a8c <msdos_set_sectors_per_cluster_from_request+0x28>
    fmt_params->sectors_per_cluster = rqdata->sectors_per_cluster;    
 8009a88:	58 41 00 0c 	sw (r2+12),r1                                  
                                                                      
static int                                                            
msdos_set_sectors_per_cluster_from_request(                           
  const msdos_format_request_param_t *rqdata,                         
  msdos_format_param_t               *fmt_params )                    
{                                                                     
 8009a8c:	34 0b 00 80 	mvi r11,128                                    
 8009a90:	34 0d ff ff 	mvi r13,-1                                     
   * must be power of 2                                               
   * must be smaller than or equal to 128                             
   * sectors_per_cluster*bytes_per_sector must not be bigger than 32K 
   */                                                                 
  for ( onebit = 128; onebit >= 1; onebit = onebit >> 1 ) {           
    if ( fmt_params->sectors_per_cluster >= onebit ) {                
 8009a94:	29 81 00 0c 	lw r1,(r12+12)                                 
 8009a98:	55 61 00 09 	bgu r11,r1,8009abc <msdos_set_sectors_per_cluster_from_request+0x58>
      fmt_params->sectors_per_cluster = onebit;                       
      if (   fmt_params->sectors_per_cluster                          
          <= 32768L / fmt_params->bytes_per_sector ) {                
 8009a9c:	29 82 00 00 	lw r2,(r12+0)                                  
   * must be smaller than or equal to 128                             
   * sectors_per_cluster*bytes_per_sector must not be bigger than 32K 
   */                                                                 
  for ( onebit = 128; onebit >= 1; onebit = onebit >> 1 ) {           
    if ( fmt_params->sectors_per_cluster >= onebit ) {                
      fmt_params->sectors_per_cluster = onebit;                       
 8009aa0:	59 8b 00 0c 	sw (r12+12),r11                                
      if (   fmt_params->sectors_per_cluster                          
          <= 32768L / fmt_params->bytes_per_sector ) {                
 8009aa4:	38 01 80 00 	mvu r1,0x8000                                  
 8009aa8:	f8 00 8a 2a 	calli 802c350 <__udivsi3>                      
   * sectors_per_cluster*bytes_per_sector must not be bigger than 32K 
   */                                                                 
  for ( onebit = 128; onebit >= 1; onebit = onebit >> 1 ) {           
    if ( fmt_params->sectors_per_cluster >= onebit ) {                
      fmt_params->sectors_per_cluster = onebit;                       
      if (   fmt_params->sectors_per_cluster                          
 8009aac:	50 2b 00 02 	bgeu r1,r11,8009ab4 <msdos_set_sectors_per_cluster_from_request+0x50><== ALWAYS TAKEN
 8009ab0:	e0 00 00 03 	bi 8009abc <msdos_set_sectors_per_cluster_from_request+0x58><== NOT EXECUTED
          <= 32768L / fmt_params->bytes_per_sector ) {                
        /* value is small enough so this value is ok */               
        onebit = 1;                                                   
 8009ab4:	34 0b 00 01 	mvi r11,1                                      
        ret_val = 0;                                                  
 8009ab8:	34 0d 00 00 	mvi r13,0                                      
   * check sectors per cluster.                                       
   * must be power of 2                                               
   * must be smaller than or equal to 128                             
   * sectors_per_cluster*bytes_per_sector must not be bigger than 32K 
   */                                                                 
  for ( onebit = 128; onebit >= 1; onebit = onebit >> 1 ) {           
 8009abc:	b9 60 08 00 	mv r1,r11                                      
 8009ac0:	34 02 00 01 	mvi r2,1                                       
 8009ac4:	f8 00 89 d3 	calli 802c210 <__lshrsi3>                      
 8009ac8:	b8 20 58 00 	mv r11,r1                                      
 8009acc:	5c 20 ff f2 	bne r1,r0,8009a94 <msdos_set_sectors_per_cluster_from_request+0x30>
        ret_val = 0;                                                  
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if (ret_val != 0) {                                                 
 8009ad0:	45 a1 00 04 	be r13,r1,8009ae0 <msdos_set_sectors_per_cluster_from_request+0x7c><== ALWAYS TAKEN
    errno = EINVAL;                                                   
 8009ad4:	f8 00 3f ce 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 8009ad8:	34 02 00 16 	mvi r2,22                                      <== NOT EXECUTED
 8009adc:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
  }                                                                   
                                                                      
  return ret_val;                                                     
}                                                                     
 8009ae0:	b9 a0 08 00 	mv r1,r13                                      
 8009ae4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009ae8:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8009aec:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8009af0:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8009af4:	37 9c 00 10 	addi sp,sp,16                                  
 8009af8:	c3 a0 00 00 	ret                                            
                                                                      

0801774c <msdos_sync>: return MSDOS_NAME_NOT_FOUND_ERR; } int msdos_sync(rtems_libio_t *iop) {
 801774c:	37 9c ff f4 	addi sp,sp,-12                                 
 8017750:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8017754:	5b 8c 00 08 	sw (sp+8),r12                                  
 8017758:	5b 9d 00 04 	sw (sp+4),ra                                   
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
 801775c:	28 21 00 20 	lw r1,(r1+32)                                  
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
 8017760:	34 02 00 00 	mvi r2,0                                       
 8017764:	34 03 00 00 	mvi r3,0                                       
int                                                                   
msdos_sync(rtems_libio_t *iop)                                        
{                                                                     
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
 8017768:	28 2b 00 08 	lw r11,(r1+8)                                  
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
 801776c:	29 61 00 9c 	lw r1,(r11+156)                                
 8017770:	fb ff b8 41 	calli 8005874 <rtems_semaphore_obtain>         
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
 8017774:	44 20 00 06 	be r1,r0,801778c <msdos_sync+0x40>             <== ALWAYS TAKEN
        rtems_set_errno_and_return_minus_one(EIO);                    
 8017778:	f8 00 08 a5 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 801777c:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 8017780:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 8017784:	34 0c ff ff 	mvi r12,-1                                     <== NOT EXECUTED
 8017788:	e0 00 00 06 	bi 80177a0 <msdos_sync+0x54>                   <== NOT EXECUTED
                                                                      
    rc = fat_sync(&fs_info->fat);                                     
 801778c:	b9 60 08 00 	mv r1,r11                                      
 8017790:	fb ff e5 b9 	calli 8010e74 <fat_sync>                       
 8017794:	b8 20 60 00 	mv r12,r1                                      
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
 8017798:	29 61 00 9c 	lw r1,(r11+156)                                
 801779c:	fb ff b8 86 	calli 80059b4 <rtems_semaphore_release>        
    return rc;                                                        
}                                                                     
 80177a0:	b9 80 08 00 	mv r1,r12                                      
 80177a4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80177a8:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80177ac:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80177b0:	37 9c 00 0c 	addi sp,sp,12                                  
 80177b4:	c3 a0 00 00 	ret                                            
                                                                      

0800ada0 <msdos_unlock>: rtems_fatal_error_occurred(0xdeadbeef); } } void msdos_unlock(const rtems_filesystem_mount_table_entry_t *mt_entry) {
 800ada0:	37 9c ff fc 	addi sp,sp,-4                                  
 800ada4:	5b 9d 00 04 	sw (sp+4),ra                                   
  msdos_fs_info_t *fs_info = mt_entry->fs_info;                       
  rtems_status_code sc = rtems_semaphore_release(fs_info->vol_sema);  
 800ada8:	28 21 00 08 	lw r1,(r1+8)                                   
 800adac:	28 21 00 9c 	lw r1,(r1+156)                                 
 800adb0:	fb ff eb 01 	calli 80059b4 <rtems_semaphore_release>        
  if (sc != RTEMS_SUCCESSFUL) {                                       
 800adb4:	44 20 00 05 	be r1,r0,800adc8 <msdos_unlock+0x28>           <== ALWAYS TAKEN
    rtems_fatal_error_occurred(0xdeadbeef);                           
 800adb8:	78 02 08 02 	mvhi r2,0x802                                  <== NOT EXECUTED
 800adbc:	38 42 cd ec 	ori r2,r2,0xcdec                               <== NOT EXECUTED
 800adc0:	28 41 00 00 	lw r1,(r2+0)                                   <== NOT EXECUTED
 800adc4:	fb ff ec 1d 	calli 8005e38 <rtems_fatal_error_occurred>     <== NOT EXECUTED
  }                                                                   
}                                                                     
 800adc8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800adcc:	37 9c 00 04 	addi sp,sp,4                                   
 800add0:	c3 a0 00 00 	ret                                            
                                                                      

080021dc <newlib_delete_hook>: void newlib_delete_hook( rtems_tcb *current_task, rtems_tcb *deleted_task ) {
 80021dc:	37 9c ff f0 	addi sp,sp,-16                                 
 80021e0:	5b 8b 00 10 	sw (sp+16),r11                                 
 80021e4:	5b 8c 00 0c 	sw (sp+12),r12                                 
 80021e8:	5b 8d 00 08 	sw (sp+8),r13                                  
 80021ec:	5b 9d 00 04 	sw (sp+4),ra                                   
 80021f0:	b8 20 68 00 	mv r13,r1                                      
 80021f4:	b8 40 60 00 	mv r12,r2                                      
                                                                      
  /*                                                                  
   * The reentrancy structure was allocated by newlib using malloc()  
   */                                                                 
                                                                      
  if (current_task == deleted_task) {                                 
 80021f8:	5c 22 00 05 	bne r1,r2,800220c <newlib_delete_hook+0x30>    
    ptr = _REENT;                                                     
 80021fc:	78 02 08 01 	mvhi r2,0x801                                  
 8002200:	38 42 d2 28 	ori r2,r2,0xd228                               
 8002204:	28 4b 00 00 	lw r11,(r2+0)                                  
 8002208:	e0 00 00 02 	bi 8002210 <newlib_delete_hook+0x34>           
  } else {                                                            
    ptr = deleted_task->libc_reent;                                   
 800220c:	28 4b 01 10 	lw r11,(r2+272)                                
  }                                                                   
                                                                      
  if (ptr && ptr != _global_impure_ptr) {                             
 8002210:	45 60 00 0b 	be r11,r0,800223c <newlib_delete_hook+0x60>    <== NEVER TAKEN
 8002214:	78 02 08 01 	mvhi r2,0x801                                  
 8002218:	38 42 be 78 	ori r2,r2,0xbe78                               
 800221c:	28 41 00 00 	lw r1,(r2+0)                                   
 8002220:	45 61 00 07 	be r11,r1,800223c <newlib_delete_hook+0x60>    
    _reclaim_reent(ptr);                                              
*/                                                                    
    /*                                                                
     *  Just in case there are some buffers lying around.             
     */                                                               
    _fwalk(ptr, newlib_free_buffers);                                 
 8002224:	78 02 08 00 	mvhi r2,0x800                                  
 8002228:	b9 60 08 00 	mv r1,r11                                      
 800222c:	38 42 1f b8 	ori r2,r2,0x1fb8                               
 8002230:	f8 00 28 03 	calli 800c23c <_fwalk>                         
#if REENT_MALLOCED                                                    
    free(ptr);                                                        
#else                                                                 
    _Workspace_Free(ptr);                                             
 8002234:	b9 60 08 00 	mv r1,r11                                      
 8002238:	f8 00 15 cf 	calli 8007974 <_Workspace_Free>                
#endif                                                                
  }                                                                   
                                                                      
  deleted_task->libc_reent = NULL;                                    
 800223c:	59 80 01 10 	sw (r12+272),r0                                
                                                                      
  /*                                                                  
   * Require the switch back to another task to install its own       
   */                                                                 
                                                                      
  if ( current_task == deleted_task ) {                               
 8002240:	5d ac 00 04 	bne r13,r12,8002250 <newlib_delete_hook+0x74>  
    _REENT = 0;                                                       
 8002244:	78 01 08 01 	mvhi r1,0x801                                  
 8002248:	38 21 d2 28 	ori r1,r1,0xd228                               
 800224c:	58 20 00 00 	sw (r1+0),r0                                   
  }                                                                   
}                                                                     
 8002250:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002254:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8002258:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 800225c:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8002260:	37 9c 00 10 	addi sp,sp,16                                  
 8002264:	c3 a0 00 00 	ret                                            
                                                                      

08001fb8 <newlib_free_buffers>: * task. */ int newlib_free_buffers( FILE *fp ) {
 8001fb8:	37 9c ff f8 	addi sp,sp,-8                                  
 8001fbc:	5b 8b 00 08 	sw (sp+8),r11                                  
 8001fc0:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001fc4:	b8 20 58 00 	mv r11,r1                                      
  switch ( fileno(fp) ) {                                             
 8001fc8:	f8 00 27 35 	calli 800bc9c <fileno>                         
 8001fcc:	34 02 00 02 	mvi r2,2                                       
 8001fd0:	54 22 00 0c 	bgu r1,r2,8002000 <newlib_free_buffers+0x48>   <== NEVER TAKEN
    case 0:                                                           
    case 1:                                                           
    case 2:                                                           
      if (fp->_flags & __SMBF) {                                      
 8001fd4:	2d 61 00 0c 	lhu r1,(r11+12)                                
 8001fd8:	20 21 00 80 	andi r1,r1,0x80                                
 8001fdc:	44 20 00 0b 	be r1,r0,8002008 <newlib_free_buffers+0x50>    <== ALWAYS TAKEN
        free( fp->_bf._base );                                        
 8001fe0:	29 61 00 10 	lw r1,(r11+16)                                 <== NOT EXECUTED
 8001fe4:	fb ff fd 5c 	calli 8001554 <free>                           <== NOT EXECUTED
        fp->_flags &= ~__SMBF;                                        
 8001fe8:	2d 61 00 0c 	lhu r1,(r11+12)                                <== NOT EXECUTED
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
 8001fec:	59 60 00 00 	sw (r11+0),r0                                  <== NOT EXECUTED
 8001ff0:	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;                                        
 8001ff4:	20 21 ff 7f 	andi r1,r1,0xff7f                              <== NOT EXECUTED
 8001ff8:	0d 61 00 0c 	sh (r11+12),r1                                 <== NOT EXECUTED
 8001ffc:	e0 00 00 03 	bi 8002008 <newlib_free_buffers+0x50>          <== NOT EXECUTED
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
      }                                                               
      break;                                                          
    default:                                                          
     fclose(fp);                                                      
 8002000:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8002004:	f8 00 26 5a 	calli 800b96c <fclose>                         <== NOT EXECUTED
  }                                                                   
  return 0;                                                           
}                                                                     
 8002008:	34 01 00 00 	mvi r1,0                                       
 800200c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002010:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8002014:	37 9c 00 08 	addi sp,sp,8                                   
 8002018:	c3 a0 00 00 	ret                                            
                                                                      

080012d8 <notify>: void notify (s) char *s; {
 80012d8:	37 9c ff fc 	addi sp,sp,-4                                  <== NOT EXECUTED
 80012dc:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
 80012e0:	b8 20 10 00 	mv r2,r1                                       <== NOT EXECUTED
    printf ("%s test appears to be inconsistent...\n", s);            
 80012e4:	78 01 08 02 	mvhi r1,0x802                                  <== NOT EXECUTED
 80012e8:	38 21 87 d4 	ori r1,r1,0x87d4                               <== NOT EXECUTED
 80012ec:	f8 00 6e d8 	calli 801ce4c <printf>                         <== NOT EXECUTED
    printf ("   PLEASE NOTIFY KARPINKSI!\n");                         
 80012f0:	78 01 08 02 	mvhi r1,0x802                                  <== NOT EXECUTED
 80012f4:	38 21 87 fc 	ori r1,r1,0x87fc                               <== NOT EXECUTED
 80012f8:	f8 00 6f 33 	calli 801cfc4 <puts>                           <== NOT EXECUTED
}                                                                     
 80012fc:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 8001300:	37 9c 00 04 	addi sp,sp,4                                   <== NOT EXECUTED
 8001304:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

080031b0 <null_op_fsmount_me>: rtems_filesystem_mount_table_entry_t *mt_entry, const void *data ) { return -1; }
 80031b0:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 80031b4:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

080031c0 <null_op_fsunmount_me>: static void null_op_fsunmount_me( rtems_filesystem_mount_table_entry_t *mt_entry ) { /* Do nothing */ }
 80031c0:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08003188 <null_op_link>: const char *name, size_t namelen ) { return -1; }
 8003188:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 800318c:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

080031a8 <null_op_mount>: static int null_op_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { return -1; }
 80031a8:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 80031ac:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

080031d4 <null_op_readlink>: char *buf, size_t bufsize ) { return -1; }
 80031d4:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 80031d8:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

080031dc <null_op_rename>: const char *name, size_t namelen ) { return -1; }
 80031dc:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 80031e0:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08003180 <null_op_rmnod>: const rtems_filesystem_location_info_t *parentloc, const rtems_filesystem_location_info_t *loc ) { return -1; }
 8003180:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 8003184:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08004b94 <oproc>: /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) {
 8004b94:	37 9c ff f4 	addi sp,sp,-12                                 
 8004b98:	5b 8b 00 08 	sw (sp+8),r11                                  
 8004b9c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004ba0:	33 81 00 0c 	sb (sp+12),r1                                  
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
 8004ba4:	28 41 00 34 	lw r1,(r2+52)                                  
/*                                                                    
 * Handle output processing                                           
 */                                                                   
static void                                                           
oproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
 8004ba8:	b8 40 58 00 	mv r11,r2                                      
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
 8004bac:	20 22 00 01 	andi r2,r1,0x1                                 
 8004bb0:	44 40 00 4d 	be r2,r0,8004ce4 <oproc+0x150>                 <== NEVER TAKEN
    switch (c) {                                                      
 8004bb4:	43 82 00 0c 	lbu r2,(sp+12)                                 
 8004bb8:	34 03 00 09 	mvi r3,9                                       
 8004bbc:	44 43 00 21 	be r2,r3,8004c40 <oproc+0xac>                  
 8004bc0:	54 43 00 04 	bgu r2,r3,8004bd0 <oproc+0x3c>                 <== ALWAYS TAKEN
 8004bc4:	34 03 00 08 	mvi r3,8                                       <== NOT EXECUTED
 8004bc8:	5c 43 00 30 	bne r2,r3,8004c88 <oproc+0xf4>                 <== NOT EXECUTED
 8004bcc:	e0 00 00 2b 	bi 8004c78 <oproc+0xe4>                        <== NOT EXECUTED
 8004bd0:	34 03 00 0a 	mvi r3,10                                      
 8004bd4:	44 43 00 04 	be r2,r3,8004be4 <oproc+0x50>                  
 8004bd8:	34 03 00 0d 	mvi r3,13                                      
 8004bdc:	5c 43 00 2b 	bne r2,r3,8004c88 <oproc+0xf4>                 <== ALWAYS TAKEN
 8004be0:	e0 00 00 0c 	bi 8004c10 <oproc+0x7c>                        <== NOT EXECUTED
    case '\n':                                                        
      if (tty->termios.c_oflag & ONLRET)                              
 8004be4:	20 22 00 20 	andi r2,r1,0x20                                
 8004be8:	44 40 00 02 	be r2,r0,8004bf0 <oproc+0x5c>                  <== ALWAYS TAKEN
        tty->column = 0;                                              
 8004bec:	59 60 00 28 	sw (r11+40),r0                                 <== NOT EXECUTED
      if (tty->termios.c_oflag & ONLCR) {                             
 8004bf0:	20 21 00 04 	andi r1,r1,0x4                                 
 8004bf4:	44 20 00 3c 	be r1,r0,8004ce4 <oproc+0x150>                 <== NEVER TAKEN
        rtems_termios_puts ("\r", 1, tty);                            
 8004bf8:	78 01 08 02 	mvhi r1,0x802                                  
 8004bfc:	38 21 3b 78 	ori r1,r1,0x3b78                               
 8004c00:	34 02 00 01 	mvi r2,1                                       
 8004c04:	b9 60 18 00 	mv r3,r11                                      
 8004c08:	fb ff ff 90 	calli 8004a48 <rtems_termios_puts>             
 8004c0c:	e0 00 00 0b 	bi 8004c38 <oproc+0xa4>                        
        tty->column = 0;                                              
      }                                                               
      break;                                                          
                                                                      
    case '\r':                                                        
      if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))       
 8004c10:	20 22 00 10 	andi r2,r1,0x10                                <== NOT EXECUTED
 8004c14:	44 40 00 03 	be r2,r0,8004c20 <oproc+0x8c>                  <== NOT EXECUTED
 8004c18:	29 62 00 28 	lw r2,(r11+40)                                 <== NOT EXECUTED
 8004c1c:	44 40 00 36 	be r2,r0,8004cf4 <oproc+0x160>                 <== NOT EXECUTED
        return;                                                       
      if (tty->termios.c_oflag & OCRNL) {                             
 8004c20:	20 22 00 08 	andi r2,r1,0x8                                 <== NOT EXECUTED
 8004c24:	44 40 00 05 	be r2,r0,8004c38 <oproc+0xa4>                  <== NOT EXECUTED
        c = '\n';                                                     
 8004c28:	34 02 00 0a 	mvi r2,10                                      <== NOT EXECUTED
 8004c2c:	33 82 00 0c 	sb (sp+12),r2                                  <== NOT EXECUTED
        if (tty->termios.c_oflag & ONLRET)                            
 8004c30:	20 21 00 20 	andi r1,r1,0x20                                <== NOT EXECUTED
 8004c34:	44 20 00 2c 	be r1,r0,8004ce4 <oproc+0x150>                 <== NOT EXECUTED
          tty->column = 0;                                            
        break;                                                        
      }                                                               
      tty->column = 0;                                                
 8004c38:	59 60 00 28 	sw (r11+40),r0                                 
      break;                                                          
 8004c3c:	e0 00 00 2a 	bi 8004ce4 <oproc+0x150>                       
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
 8004c40:	29 63 00 28 	lw r3,(r11+40)                                 
 8004c44:	34 04 00 08 	mvi r4,8                                       
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
 8004c48:	20 21 18 00 	andi r1,r1,0x1800                              
      }                                                               
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
 8004c4c:	20 62 00 07 	andi r2,r3,0x7                                 
 8004c50:	c8 82 10 00 	sub r2,r4,r2                                   
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
 8004c54:	34 04 18 00 	mvi r4,6144                                    
 8004c58:	b4 43 18 00 	add r3,r2,r3                                   
 8004c5c:	5c 24 00 05 	bne r1,r4,8004c70 <oproc+0xdc>                 <== NEVER TAKEN
        tty->column += i;                                             
        rtems_termios_puts ( "        ",  i, tty);                    
 8004c60:	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;                                             
 8004c64:	59 63 00 28 	sw (r11+40),r3                                 
        rtems_termios_puts ( "        ",  i, tty);                    
 8004c68:	38 21 3b 7c 	ori r1,r1,0x3b7c                               
 8004c6c:	e0 00 00 20 	bi 8004cec <oproc+0x158>                       
        return;                                                       
      }                                                               
      tty->column += i;                                               
 8004c70:	59 63 00 28 	sw (r11+40),r3                                 <== NOT EXECUTED
      break;                                                          
 8004c74:	e0 00 00 1c 	bi 8004ce4 <oproc+0x150>                       <== NOT EXECUTED
                                                                      
    case '\b':                                                        
      if (tty->column > 0)                                            
 8004c78:	29 61 00 28 	lw r1,(r11+40)                                 <== NOT EXECUTED
 8004c7c:	4c 01 00 1a 	bge r0,r1,8004ce4 <oproc+0x150>                <== NOT EXECUTED
        tty->column--;                                                
 8004c80:	34 21 ff ff 	addi r1,r1,-1                                  <== NOT EXECUTED
 8004c84:	e0 00 00 17 	bi 8004ce0 <oproc+0x14c>                       <== NOT EXECUTED
      break;                                                          
                                                                      
    default:                                                          
      if (tty->termios.c_oflag & OLCUC)                               
 8004c88:	20 21 00 02 	andi r1,r1,0x2                                 
 8004c8c:	44 20 00 0b 	be r1,r0,8004cb8 <oproc+0x124>                 <== ALWAYS TAKEN
        c = toupper(c);                                               
 8004c90:	78 01 08 02 	mvhi r1,0x802                                  <== NOT EXECUTED
 8004c94:	38 21 62 94 	ori r1,r1,0x6294                               <== NOT EXECUTED
 8004c98:	28 21 00 00 	lw r1,(r1+0)                                   <== NOT EXECUTED
 8004c9c:	b4 22 08 00 	add r1,r1,r2                                   <== NOT EXECUTED
 8004ca0:	40 23 00 01 	lbu r3,(r1+1)                                  <== NOT EXECUTED
 8004ca4:	34 01 00 02 	mvi r1,2                                       <== NOT EXECUTED
 8004ca8:	20 63 00 03 	andi r3,r3,0x3                                 <== NOT EXECUTED
 8004cac:	5c 61 00 02 	bne r3,r1,8004cb4 <oproc+0x120>                <== NOT EXECUTED
 8004cb0:	34 42 ff e0 	addi r2,r2,-32                                 <== NOT EXECUTED
 8004cb4:	33 82 00 0c 	sb (sp+12),r2                                  <== NOT EXECUTED
      if (!iscntrl(c))                                                
 8004cb8:	78 01 08 02 	mvhi r1,0x802                                  
 8004cbc:	38 21 62 94 	ori r1,r1,0x6294                               
 8004cc0:	43 82 00 0c 	lbu r2,(sp+12)                                 
 8004cc4:	28 21 00 00 	lw r1,(r1+0)                                   
 8004cc8:	b4 22 08 00 	add r1,r1,r2                                   
 8004ccc:	40 21 00 01 	lbu r1,(r1+1)                                  
 8004cd0:	20 21 00 20 	andi r1,r1,0x20                                
 8004cd4:	5c 20 00 04 	bne r1,r0,8004ce4 <oproc+0x150>                <== NEVER TAKEN
        tty->column++;                                                
 8004cd8:	29 61 00 28 	lw r1,(r11+40)                                 
 8004cdc:	34 21 00 01 	addi r1,r1,1                                   
 8004ce0:	59 61 00 28 	sw (r11+40),r1                                 
      break;                                                          
    }                                                                 
  }                                                                   
  rtems_termios_puts (&c, 1, tty);                                    
 8004ce4:	37 81 00 0c 	addi r1,sp,12                                  
 8004ce8:	34 02 00 01 	mvi r2,1                                       
 8004cec:	b9 60 18 00 	mv r3,r11                                      
 8004cf0:	fb ff ff 56 	calli 8004a48 <rtems_termios_puts>             
}                                                                     
 8004cf4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004cf8:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8004cfc:	37 9c 00 0c 	addi sp,sp,12                                  
 8004d00:	c3 a0 00 00 	ret                                            
                                                                      

08002efc <partition_free>: * RETURNS: * N/A */ static void partition_free(rtems_part_desc_t *part_desc) {
 8002efc:	37 9c ff f0 	addi sp,sp,-16                                 
 8002f00:	5b 8b 00 10 	sw (sp+16),r11                                 
 8002f04:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8002f08:	5b 8d 00 08 	sw (sp+8),r13                                  
 8002f0c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8002f10:	b8 20 58 00 	mv r11,r1                                      
    int part_num;                                                     
                                                                      
    if (part_desc == NULL)                                            
 8002f14:	44 20 00 0f 	be r1,r0,8002f50 <partition_free+0x54>         
        return;                                                       
                                                                      
    if (is_extended(part_desc->sys_type))                             
 8002f18:	40 21 00 01 	lbu r1,(r1+1)                                  
 *      true if partition type is extended, false otherwise           
 */                                                                   
static bool                                                           
is_extended(uint8_t type)                                             
{                                                                     
    return ((type == EXTENDED_PARTITION) || (type == LINUX_EXTENDED));
 8002f1c:	64 22 00 85 	cmpei r2,r1,133                                
 8002f20:	64 21 00 05 	cmpei r1,r1,5                                  
 8002f24:	b8 41 08 00 	or r1,r2,r1                                    
    int part_num;                                                     
                                                                      
    if (part_desc == NULL)                                            
        return;                                                       
                                                                      
    if (is_extended(part_desc->sys_type))                             
 8002f28:	44 20 00 08 	be r1,r0,8002f48 <partition_free+0x4c>         <== ALWAYS TAKEN
 8002f2c:	b9 60 68 00 	mv r13,r11                                     <== NOT EXECUTED
 8002f30:	34 0c 00 04 	mvi r12,4                                      <== NOT EXECUTED
    {                                                                 
        for (part_num = 0;                                            
             part_num < RTEMS_IDE_PARTITION_MAX_SUB_PARTITION_NUMBER; 
             part_num++)                                              
        {                                                             
            partition_free(part_desc->sub_part[part_num]);            
 8002f34:	29 a1 00 18 	lw r1,(r13+24)                                 <== NOT EXECUTED
 8002f38:	35 8c ff ff 	addi r12,r12,-1                                <== NOT EXECUTED
 8002f3c:	35 ad 00 04 	addi r13,r13,4                                 <== NOT EXECUTED
 8002f40:	fb ff ff ef 	calli 8002efc <partition_free>                 <== NOT EXECUTED
    if (part_desc == NULL)                                            
        return;                                                       
                                                                      
    if (is_extended(part_desc->sys_type))                             
    {                                                                 
        for (part_num = 0;                                            
 8002f44:	5d 80 ff fc 	bne r12,r0,8002f34 <partition_free+0x38>       <== NOT EXECUTED
        {                                                             
            partition_free(part_desc->sub_part[part_num]);            
        }                                                             
    }                                                                 
                                                                      
    free(part_desc);                                                  
 8002f48:	b9 60 08 00 	mv r1,r11                                      
 8002f4c:	f8 00 04 13 	calli 8003f98 <free>                           
}                                                                     
 8002f50:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002f54:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8002f58:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8002f5c:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8002f60:	37 9c 00 10 	addi sp,sp,16                                  
 8002f64:	c3 a0 00 00 	ret                                            
                                                                      

08003344 <partition_table_get>: * RTEMS_SUCCESSFUL if success, * RTEMS_INTERNAL_ERROR otherwise */ static rtems_status_code partition_table_get(const char *dev_name, rtems_disk_desc_t *disk_desc) {
 8003344:	37 9c ff 88 	addi sp,sp,-120                                
 8003348:	5b 8b 00 28 	sw (sp+40),r11                                 
 800334c:	5b 8c 00 24 	sw (sp+36),r12                                 
 8003350:	5b 8d 00 20 	sw (sp+32),r13                                 
 8003354:	5b 8e 00 1c 	sw (sp+28),r14                                 
 8003358:	5b 8f 00 18 	sw (sp+24),r15                                 
 800335c:	5b 90 00 14 	sw (sp+20),r16                                 
 8003360:	5b 91 00 10 	sw (sp+16),r17                                 
 8003364:	5b 92 00 0c 	sw (sp+12),r18                                 
 8003368:	5b 93 00 08 	sw (sp+8),r19                                  
 800336c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003370:	b8 40 58 00 	mv r11,r2                                      
    struct stat         dev_stat;                                     
    rtems_status_code   rc;                                           
    int                 fd;                                           
                                                                      
    fd = open(dev_name, O_RDONLY);                                    
 8003374:	34 02 00 00 	mvi r2,0                                       
 *      RTEMS_SUCCESSFUL if success,                                  
 *      RTEMS_INTERNAL_ERROR otherwise                                
 */                                                                   
static rtems_status_code                                              
partition_table_get(const char *dev_name, rtems_disk_desc_t *disk_desc)
{                                                                     
 8003378:	b8 20 78 00 	mv r15,r1                                      
    struct stat         dev_stat;                                     
    rtems_status_code   rc;                                           
    int                 fd;                                           
                                                                      
    fd = open(dev_name, O_RDONLY);                                    
 800337c:	f8 00 07 32 	calli 8005044 <open>                           
 8003380:	b8 20 68 00 	mv r13,r1                                      
    if (fd < 0)                                                       
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
 8003384:	34 0c 00 19 	mvi r12,25                                     
    struct stat         dev_stat;                                     
    rtems_status_code   rc;                                           
    int                 fd;                                           
                                                                      
    fd = open(dev_name, O_RDONLY);                                    
    if (fd < 0)                                                       
 8003388:	48 01 00 5f 	bg r0,r1,8003504 <partition_table_get+0x1c0>   <== NEVER TAKEN
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    rc = fstat(fd, &dev_stat);                                        
 800338c:	37 82 00 2c 	addi r2,sp,44                                  
 8003390:	f8 00 03 30 	calli 8004050 <fstat>                          
 8003394:	b8 20 70 00 	mv r14,r1                                      
    if (rc != RTEMS_SUCCESSFUL)                                       
 8003398:	5c 20 00 59 	bne r1,r0,80034fc <partition_table_get+0x1b8>  <== NEVER TAKEN
    {                                                                 
        close(fd);                                                    
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    strncpy (disk_desc->dev_name, dev_name, 15);                      
 800339c:	b9 e0 10 00 	mv r2,r15                                      
 80033a0:	34 03 00 0f 	mvi r3,15                                      
 80033a4:	35 61 00 08 	addi r1,r11,8                                  
 80033a8:	f8 00 42 6a 	calli 8013d50 <strncpy>                        
    disk_desc->dev = dev_stat.st_rdev;                                
 80033ac:	2b 81 00 44 	lw r1,(sp+68)                                  
    disk_desc->sector_size = (dev_stat.st_blksize) ? dev_stat.st_blksize :
 80033b0:	2b 83 00 68 	lw r3,(sp+104)                                 
 80033b4:	34 02 02 00 	mvi r2,512                                     
        close(fd);                                                    
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    strncpy (disk_desc->dev_name, dev_name, 15);                      
    disk_desc->dev = dev_stat.st_rdev;                                
 80033b8:	59 61 00 00 	sw (r11+0),r1                                  
 80033bc:	2b 81 00 48 	lw r1,(sp+72)                                  
 80033c0:	59 61 00 04 	sw (r11+4),r1                                  
    disk_desc->sector_size = (dev_stat.st_blksize) ? dev_stat.st_blksize :
 80033c4:	44 6e 00 02 	be r3,r14,80033cc <partition_table_get+0x88>   <== ALWAYS TAKEN
 80033c8:	b8 60 10 00 	mv r2,r3                                       <== NOT EXECUTED
 80033cc:	59 62 00 18 	sw (r11+24),r2                                 
    rtems_part_desc_t   *part_desc;                                   
    uint8_t             *data;                                        
    rtems_status_code    rc;                                          
                                                                      
    /* get MBR sector */                                              
    rc = get_sector(fd, 0, §or);                                  
 80033d0:	b9 a0 08 00 	mv r1,r13                                      
 80033d4:	34 02 00 00 	mvi r2,0                                       
 80033d8:	37 83 00 78 	addi r3,sp,120                                 
 */                                                                   
static rtems_status_code                                              
read_mbr(int fd, rtems_disk_desc_t *disk_desc)                        
{                                                                     
    int                  part_num;                                    
    rtems_sector_data_t *sector = NULL;                               
 80033dc:	5b 80 00 78 	sw (sp+120),r0                                 
    rtems_part_desc_t   *part_desc;                                   
    uint8_t             *data;                                        
    rtems_status_code    rc;                                          
                                                                      
    /* get MBR sector */                                              
    rc = get_sector(fd, 0, §or);                                  
 80033e0:	fb ff fe f7 	calli 8002fbc <get_sector>                     
 80033e4:	b8 20 60 00 	mv r12,r1                                      
 80033e8:	2b 82 00 78 	lw r2,(sp+120)                                 
    if (rc != RTEMS_SUCCESSFUL)                                       
 80033ec:	44 20 00 04 	be r1,r0,80033fc <partition_table_get+0xb8>    <== ALWAYS TAKEN
    {                                                                 
        if (sector)                                                   
            free(sector);                                             
 80033f0:	b8 40 08 00 	mv r1,r2                                       <== NOT EXECUTED
                                                                      
    /* get MBR sector */                                              
    rc = get_sector(fd, 0, §or);                                  
    if (rc != RTEMS_SUCCESSFUL)                                       
    {                                                                 
        if (sector)                                                   
 80033f4:	5c 40 00 19 	bne r2,r0,8003458 <partition_table_get+0x114>  <== NOT EXECUTED
 80033f8:	e0 00 00 41 	bi 80034fc <partition_table_get+0x1b8>         <== NOT EXECUTED
static bool                                                           
msdos_signature_check (rtems_sector_data_t *sector)                   
{                                                                     
    uint8_t *p = sector->data + RTEMS_IDE_PARTITION_MSDOS_SIGNATURE_OFFSET;
                                                                      
    return ((p[0] == RTEMS_IDE_PARTITION_MSDOS_SIGNATURE_DATA1) &&    
 80033fc:	40 44 02 02 	lbu r4,(r2+514)                                
 8003400:	34 03 00 55 	mvi r3,85                                      
 8003404:	34 01 00 00 	mvi r1,0                                       
 8003408:	5c 83 00 03 	bne r4,r3,8003414 <partition_table_get+0xd0>   <== NEVER TAKEN
 * RETURNS:                                                           
 *      RTEMS_SUCCESSFUL if success,                                  
 *      RTEMS_INTERNAL_ERROR otherwise                                
 */                                                                   
static rtems_status_code                                              
partition_table_get(const char *dev_name, rtems_disk_desc_t *disk_desc)
 800340c:	40 41 02 03 	lbu r1,(r2+515)                                
 8003410:	64 21 00 aa 	cmpei r1,r1,170                                
            free(sector);                                             
        return rc;                                                    
    }                                                                 
                                                                      
    /* check if the partition table structure is MS-DOS style */      
    if (!msdos_signature_check(sector))                               
 8003414:	5c 20 00 05 	bne r1,r0,8003428 <partition_table_get+0xe4>   <== ALWAYS TAKEN
    {                                                                 
        free(sector);                                                 
 8003418:	b8 40 08 00 	mv r1,r2                                       <== NOT EXECUTED
 800341c:	f8 00 02 df 	calli 8003f98 <free>                           <== NOT EXECUTED
        return RTEMS_INTERNAL_ERROR;                                  
 8003420:	34 0c 00 19 	mvi r12,25                                     <== NOT EXECUTED
 8003424:	e0 00 00 36 	bi 80034fc <partition_table_get+0x1b8>         <== NOT EXECUTED
    }                                                                 
                                                                      
    /* read and process 4 primary partition descriptors */            
                                                                      
    data = sector->data + RTEMS_IDE_PARTITION_TABLE_OFFSET;           
 8003428:	34 51 01 c2 	addi r17,r2,450                                
 800342c:	b9 60 70 00 	mv r14,r11                                     
 8003430:	b9 60 80 00 	mv r16,r11                                     
 8003434:	34 0f 00 01 	mvi r15,1                                      
                                                                      
    for (part_num = 0;                                                
         part_num < RTEMS_IDE_PARTITION_MAX_SUB_PARTITION_NUMBER;     
         part_num++)                                                  
    {                                                                 
        rc = data_to_part_desc(data, &part_desc);                     
 8003438:	37 93 00 74 	addi r19,sp,116                                
                                                                      
    /* read and process 4 primary partition descriptors */            
                                                                      
    data = sector->data + RTEMS_IDE_PARTITION_TABLE_OFFSET;           
                                                                      
    for (part_num = 0;                                                
 800343c:	34 12 00 05 	mvi r18,5                                      
         part_num < RTEMS_IDE_PARTITION_MAX_SUB_PARTITION_NUMBER;     
         part_num++)                                                  
    {                                                                 
        rc = data_to_part_desc(data, &part_desc);                     
 8003440:	ba 20 08 00 	mv r1,r17                                      
 8003444:	ba 60 10 00 	mv r2,r19                                      
 8003448:	fb ff ff 0c 	calli 8003078 <data_to_part_desc>              
 800344c:	b8 20 60 00 	mv r12,r1                                      
        if (rc != RTEMS_SUCCESSFUL)                                   
 8003450:	44 20 00 04 	be r1,r0,8003460 <partition_table_get+0x11c>   <== ALWAYS TAKEN
        {                                                             
            free(sector);                                             
 8003454:	2b 81 00 78 	lw r1,(sp+120)                                 <== NOT EXECUTED
 8003458:	f8 00 02 d0 	calli 8003f98 <free>                           <== NOT EXECUTED
 800345c:	e0 00 00 28 	bi 80034fc <partition_table_get+0x1b8>         <== NOT EXECUTED
            return rc;                                                
        }                                                             
                                                                      
        if (part_desc != NULL)                                        
 8003460:	2b 83 00 74 	lw r3,(sp+116)                                 
 8003464:	44 61 00 0a 	be r3,r1,800348c <partition_table_get+0x148>   <== NEVER TAKEN
        {                                                             
            part_desc->log_id = part_num + 1;                         
            part_desc->disk_desc = disk_desc;                         
            part_desc->end = part_desc->start + part_desc->size - 1;  
 8003468:	28 62 00 04 	lw r2,(r3+4)                                   
 800346c:	28 61 00 08 	lw r1,(r3+8)                                   
            return rc;                                                
        }                                                             
                                                                      
        if (part_desc != NULL)                                        
        {                                                             
            part_desc->log_id = part_num + 1;                         
 8003470:	30 6f 00 02 	sb (r3+2),r15                                  
            part_desc->disk_desc = disk_desc;                         
 8003474:	58 6b 00 10 	sw (r3+16),r11                                 
            part_desc->end = part_desc->start + part_desc->size - 1;  
 8003478:	b4 41 08 00 	add r1,r2,r1                                   
 800347c:	34 21 ff ff 	addi r1,r1,-1                                  
 8003480:	58 61 00 0c 	sw (r3+12),r1                                  
            disk_desc->partitions[part_num] = part_desc;              
 8003484:	5a 03 00 28 	sw (r16+40),r3                                 
 8003488:	e0 00 00 02 	bi 8003490 <partition_table_get+0x14c>         
        }                                                             
        else                                                          
        {                                                             
            disk_desc->partitions[part_num] = NULL;                   
 800348c:	5a 00 00 28 	sw (r16+40),r0                                 <== NOT EXECUTED
 8003490:	35 ef 00 01 	addi r15,r15,1                                 
 8003494:	36 10 00 04 	addi r16,r16,4                                 
                                                                      
    /* read and process 4 primary partition descriptors */            
                                                                      
    data = sector->data + RTEMS_IDE_PARTITION_TABLE_OFFSET;           
                                                                      
    for (part_num = 0;                                                
 8003498:	45 f2 00 03 	be r15,r18,80034a4 <partition_table_get+0x160> 
        else                                                          
        {                                                             
            disk_desc->partitions[part_num] = NULL;                   
        }                                                             
                                                                      
        data += RTEMS_IDE_PARTITION_DESCRIPTOR_SIZE;                  
 800349c:	36 31 00 10 	addi r17,r17,16                                
 80034a0:	e3 ff ff e8 	bi 8003440 <partition_table_get+0xfc>          
    }                                                                 
                                                                      
    free(sector);                                                     
 80034a4:	2b 81 00 78 	lw r1,(sp+120)                                 
 80034a8:	f8 00 02 bc 	calli 8003f98 <free>                           
                                                                      
    disk_desc->last_log_id = RTEMS_IDE_PARTITION_MAX_SUB_PARTITION_NUMBER;
 80034ac:	34 01 00 04 	mvi r1,4                                       
 80034b0:	59 61 00 24 	sw (r11+36),r1                                 
 80034b4:	34 0b 00 04 	mvi r11,4                                      
       but we are to process each primary partition */                
    for (part_num = 0;                                                
         part_num < RTEMS_IDE_PARTITION_MAX_SUB_PARTITION_NUMBER;     
         part_num++)                                                  
    {                                                                 
        part_desc = disk_desc->partitions[part_num];                  
 80034b8:	29 c3 00 28 	lw r3,(r14+40)                                 
 80034bc:	5b 83 00 74 	sw (sp+116),r3                                 
        if (part_desc != NULL && is_extended(part_desc->sys_type))    
 80034c0:	44 60 00 0c 	be r3,r0,80034f0 <partition_table_get+0x1ac>   <== NEVER TAKEN
 80034c4:	40 61 00 01 	lbu r1,(r3+1)                                  
 *      true if partition type is extended, false otherwise           
 */                                                                   
static bool                                                           
is_extended(uint8_t type)                                             
{                                                                     
    return ((type == EXTENDED_PARTITION) || (type == LINUX_EXTENDED));
 80034c8:	64 22 00 85 	cmpei r2,r1,133                                
 80034cc:	64 21 00 05 	cmpei r1,r1,5                                  
 80034d0:	b8 41 08 00 	or r1,r2,r1                                    
    for (part_num = 0;                                                
         part_num < RTEMS_IDE_PARTITION_MAX_SUB_PARTITION_NUMBER;     
         part_num++)                                                  
    {                                                                 
        part_desc = disk_desc->partitions[part_num];                  
        if (part_desc != NULL && is_extended(part_desc->sys_type))    
 80034d4:	44 20 00 07 	be r1,r0,80034f0 <partition_table_get+0x1ac>   
        {                                                             
            read_extended_partition(fd, part_desc->start, part_desc); 
 80034d8:	28 62 00 04 	lw r2,(r3+4)                                   
 80034dc:	b9 a0 08 00 	mv r1,r13                                      
 80034e0:	fb ff ff 2d 	calli 8003194 <read_extended_partition>        
            free(part_desc);                                          
 80034e4:	2b 81 00 74 	lw r1,(sp+116)                                 
 80034e8:	f8 00 02 ac 	calli 8003f98 <free>                           
            disk_desc->partitions[part_num] = NULL;                   
 80034ec:	59 c0 00 28 	sw (r14+40),r0                                 
 80034f0:	35 6b ff ff 	addi r11,r11,-1                                
 80034f4:	35 ce 00 04 	addi r14,r14,4                                 
                                                                      
    disk_desc->last_log_id = RTEMS_IDE_PARTITION_MAX_SUB_PARTITION_NUMBER;
                                                                      
    /* There cannot be more than one extended partition,              
       but we are to process each primary partition */                
    for (part_num = 0;                                                
 80034f8:	5d 60 ff f0 	bne r11,r0,80034b8 <partition_table_get+0x174> 
    disk_desc->sector_size = (dev_stat.st_blksize) ? dev_stat.st_blksize :
                                              RTEMS_IDE_SECTOR_SIZE;  
                                                                      
    rc = read_mbr(fd, disk_desc);                                     
                                                                      
    close(fd);                                                        
 80034fc:	b9 a0 08 00 	mv r1,r13                                      
 8003500:	f8 00 02 7b 	calli 8003eec <close>                          
                                                                      
    return rc;                                                        
}                                                                     
 8003504:	b9 80 08 00 	mv r1,r12                                      
 8003508:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800350c:	2b 8b 00 28 	lw r11,(sp+40)                                 
 8003510:	2b 8c 00 24 	lw r12,(sp+36)                                 
 8003514:	2b 8d 00 20 	lw r13,(sp+32)                                 
 8003518:	2b 8e 00 1c 	lw r14,(sp+28)                                 
 800351c:	2b 8f 00 18 	lw r15,(sp+24)                                 
 8003520:	2b 90 00 14 	lw r16,(sp+20)                                 
 8003524:	2b 91 00 10 	lw r17,(sp+16)                                 
 8003528:	2b 92 00 0c 	lw r18,(sp+12)                                 
 800352c:	2b 93 00 08 	lw r19,(sp+8)                                  
 8003530:	37 9c 00 78 	addi sp,sp,120                                 
 8003534:	c3 a0 00 00 	ret                                            
                                                                      

08002a58 <pathconf>: */ long pathconf( const char *path, int name ) {
 8002a58:	37 9c ff f0 	addi sp,sp,-16                                 
 8002a5c:	5b 8b 00 10 	sw (sp+16),r11                                 
 8002a60:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8002a64:	5b 8d 00 08 	sw (sp+8),r13                                  
 8002a68:	5b 9d 00 04 	sw (sp+4),ra                                   
 8002a6c:	b8 40 68 00 	mv r13,r2                                      
  int status;                                                         
  int fd;                                                             
                                                                      
  fd = open( path, O_RDONLY );                                        
 8002a70:	34 02 00 00 	mvi r2,0                                       
 8002a74:	fb ff ff 60 	calli 80027f4 <open>                           
  if ( fd == -1 )                                                     
    return -1;                                                        
 8002a78:	34 0b ff ff 	mvi r11,-1                                     
)                                                                     
{                                                                     
  int status;                                                         
  int fd;                                                             
                                                                      
  fd = open( path, O_RDONLY );                                        
 8002a7c:	b8 20 60 00 	mv r12,r1                                      
  if ( fd == -1 )                                                     
 8002a80:	44 2b 00 06 	be r1,r11,8002a98 <pathconf+0x40>              <== ALWAYS TAKEN
    return -1;                                                        
                                                                      
  status = fpathconf( fd, name );                                     
 8002a84:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 8002a88:	f8 00 17 41 	calli 800878c <fpathconf>                      <== NOT EXECUTED
 8002a8c:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
                                                                      
  (void) close( fd );                                                 
 8002a90:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8002a94:	f8 00 17 13 	calli 80086e0 <close>                          <== NOT EXECUTED
                                                                      
  return status;                                                      
}                                                                     
 8002a98:	b9 60 08 00 	mv r1,r11                                      
 8002a9c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002aa0:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8002aa4:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8002aa8:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8002aac:	37 9c 00 10 	addi sp,sp,16                                  
 8002ab0:	c3 a0 00 00 	ret                                            
                                                                      

080092c0 <pipe_create>: static uint16_t rtems_pipe_no = 0; int pipe_create( int filsdes[2] ) {
 80092c0:	37 9c ff d8 	addi sp,sp,-40                                 
 80092c4:	5b 8b 00 18 	sw (sp+24),r11                                 
 80092c8:	5b 8c 00 14 	sw (sp+20),r12                                 
 80092cc:	5b 8d 00 10 	sw (sp+16),r13                                 
 80092d0:	5b 8e 00 0c 	sw (sp+12),r14                                 
 80092d4:	5b 8f 00 08 	sw (sp+8),r15                                  
 80092d8:	5b 9d 00 04 	sw (sp+4),ra                                   
 80092dc:	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)          
 80092e0:	78 01 08 01 	mvhi r1,0x801                                  
 80092e4:	38 21 d6 f8 	ori r1,r1,0xd6f8                               
 80092e8:	34 02 01 ff 	mvi r2,511                                     
 80092ec:	f8 00 05 9b 	calli 800a958 <rtems_mkdir>                    
 80092f0:	b8 20 78 00 	mv r15,r1                                      
    return -1;                                                        
 80092f4:	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)          
 80092f8:	5c 20 00 43 	bne r1,r0,8009404 <pipe_create+0x144>          
    return -1;                                                        
                                                                      
  /* /tmp/.fifoXXXX */                                                
  char fifopath[15];                                                  
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
 80092fc:	78 02 08 01 	mvhi r2,0x801                                  
 8009300:	38 42 d7 00 	ori r2,r2,0xd700                               
 8009304:	28 43 00 00 	lw r3,(r2+0)                                   
 8009308:	28 41 00 04 	lw r1,(r2+4)                                   
 800930c:	37 8b 00 1c 	addi r11,sp,28                                 
 8009310:	5b 83 00 1c 	sw (sp+28),r3                                  
 8009314:	59 61 00 04 	sw (r11+4),r1                                  
 8009318:	2c 41 00 08 	lhu r1,(r2+8)                                  
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
 800931c:	78 02 08 01 	mvhi r2,0x801                                  
 8009320:	38 42 f7 0c 	ori r2,r2,0xf70c                               
 8009324:	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);                                 
 8009328:	0d 61 00 08 	sh (r11+8),r1                                  
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
 800932c:	34 61 00 01 	addi r1,r3,1                                   
 8009330:	0c 41 00 00 	sh (r2+0),r1                                   
 8009334:	78 02 08 01 	mvhi r2,0x801                                  
 8009338:	38 42 d7 0c 	ori r2,r2,0xd70c                               
 800933c:	37 81 00 26 	addi r1,sp,38                                  
 8009340:	f8 00 11 16 	calli 800d798 <sprintf>                        
                                                                      
  /* Try creating FIFO file until find an available file name */      
  while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {                    
 8009344:	b9 60 08 00 	mv r1,r11                                      
 8009348:	34 02 01 80 	mvi r2,384                                     
 800934c:	f8 00 04 b8 	calli 800a62c <mkfifo>                         
 8009350:	b8 20 60 00 	mv r12,r1                                      
 8009354:	44 2f 00 03 	be r1,r15,8009360 <pipe_create+0xa0>           <== ALWAYS TAKEN
    if (errno != EEXIST){                                             
 8009358:	f8 00 0d 78 	calli 800c938 <__errno>                        <== NOT EXECUTED
 800935c:	e0 00 00 2a 	bi 8009404 <pipe_create+0x144>                 <== NOT EXECUTED
    return -1;                                                        
    /* sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); */           
  }                                                                   
                                                                      
  /* Non-blocking open to avoid waiting for writers */                
  filsdes[0] = open(fifopath, O_RDONLY | O_NONBLOCK);                 
 8009360:	b9 60 08 00 	mv r1,r11                                      
 8009364:	34 02 40 00 	mvi r2,16384                                   
 8009368:	fb ff e5 ff 	calli 8002b64 <open>                           
 800936c:	59 c1 00 00 	sw (r14+0),r1                                  
  if (filsdes[0] < 0) {                                               
 8009370:	4c 2c 00 05 	bge r1,r12,8009384 <pipe_create+0xc4>          
    err = errno;                                                      
 8009374:	f8 00 0d 71 	calli 800c938 <__errno>                        
 8009378:	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);                                                 
 800937c:	b9 60 08 00 	mv r1,r11                                      
 8009380:	e0 00 00 1b 	bi 80093ec <pipe_create+0x12c>                 
  }                                                                   
  else {                                                              
  /* Reset open file to blocking mode */                              
    iop = rtems_libio_iop(filsdes[0]);                                
 8009384:	78 02 08 01 	mvhi r2,0x801                                  
 8009388:	38 42 f0 10 	ori r2,r2,0xf010                               
 800938c:	28 44 00 00 	lw r4,(r2+0)                                   
 8009390:	34 02 00 00 	mvi r2,0                                       
 8009394:	50 24 00 07 	bgeu r1,r4,80093b0 <pipe_create+0xf0>          <== NEVER TAKEN
 8009398:	34 02 00 2c 	mvi r2,44                                      
 800939c:	78 0b 08 01 	mvhi r11,0x801                                 
 80093a0:	f8 00 4b 10 	calli 801bfe0 <__mulsi3>                       
 80093a4:	39 6b f7 84 	ori r11,r11,0xf784                             
 80093a8:	29 62 00 00 	lw r2,(r11+0)                                  
 80093ac:	b4 41 10 00 	add r2,r2,r1                                   
    iop->flags &= ~LIBIO_FLAGS_NO_DELAY;                              
 80093b0:	28 43 00 08 	lw r3,(r2+8)                                   
 80093b4:	34 01 ff fe 	mvi r1,-2                                      
int pipe_create(                                                      
  int filsdes[2]                                                      
)                                                                     
{                                                                     
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
 80093b8:	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;                              
 80093bc:	a0 61 08 00 	and r1,r3,r1                                   
 80093c0:	58 41 00 08 	sw (r2+8),r1                                   
                                                                      
    filsdes[1] = open(fifopath, O_WRONLY);                            
 80093c4:	37 81 00 1c 	addi r1,sp,28                                  
 80093c8:	34 02 00 01 	mvi r2,1                                       
 80093cc:	fb ff e5 e6 	calli 8002b64 <open>                           
 80093d0:	59 c1 00 04 	sw (r14+4),r1                                  
                                                                      
    if (filsdes[1] < 0) {                                             
 80093d4:	4c 20 00 05 	bge r1,r0,80093e8 <pipe_create+0x128>          
    err = errno;                                                      
 80093d8:	f8 00 0d 58 	calli 800c938 <__errno>                        
 80093dc:	28 2c 00 00 	lw r12,(r1+0)                                  
    close(filsdes[0]);                                                
 80093e0:	29 c1 00 00 	lw r1,(r14+0)                                  
 80093e4:	fb ff e2 10 	calli 8001c24 <close>                          
    }                                                                 
  unlink(fifopath);                                                   
 80093e8:	37 81 00 1c 	addi r1,sp,28                                  
 80093ec:	fb ff ea a2 	calli 8003e74 <unlink>                         
  }                                                                   
  if(err != 0)                                                        
    rtems_set_errno_and_return_minus_one(err);                        
  return 0;                                                           
 80093f0:	34 0d 00 00 	mvi r13,0                                      
    err = errno;                                                      
    close(filsdes[0]);                                                
    }                                                                 
  unlink(fifopath);                                                   
  }                                                                   
  if(err != 0)                                                        
 80093f4:	45 80 00 04 	be r12,r0,8009404 <pipe_create+0x144>          
    rtems_set_errno_and_return_minus_one(err);                        
 80093f8:	f8 00 0d 50 	calli 800c938 <__errno>                        
 80093fc:	58 2c 00 00 	sw (r1+0),r12                                  
 8009400:	34 0d ff ff 	mvi r13,-1                                     
  return 0;                                                           
}                                                                     
 8009404:	b9 a0 08 00 	mv r1,r13                                      
 8009408:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800940c:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8009410:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8009414:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8009418:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800941c:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8009420:	37 9c 00 28 	addi sp,sp,40                                  
 8009424:	c3 a0 00 00 	ret                                            
                                                                      

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

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

0800a09c <pipe_release>: void pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) {
 800a09c:	37 9c ff ec 	addi sp,sp,-20                                 
 800a0a0:	5b 8b 00 10 	sw (sp+16),r11                                 
 800a0a4:	5b 8c 00 0c 	sw (sp+12),r12                                 
 800a0a8:	5b 8d 00 08 	sw (sp+8),r13                                  
 800a0ac:	5b 9d 00 04 	sw (sp+4),ra                                   
 800a0b0:	b8 20 68 00 	mv r13,r1                                      
  pipe_control_t *pipe = *pipep;                                      
 800a0b4:	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);                                          
 800a0b8:	28 41 00 08 	lw r1,(r2+8)                                   
 800a0bc:	20 2c 00 06 	andi r12,r1,0x6                                
  if (mode & LIBIO_FLAGS_READ)                                        
 800a0c0:	20 21 00 02 	andi r1,r1,0x2                                 
 800a0c4:	44 20 00 04 	be r1,r0,800a0d4 <pipe_release+0x38>           
     pipe->Readers --;                                                
 800a0c8:	29 61 00 10 	lw r1,(r11+16)                                 
 800a0cc:	34 21 ff ff 	addi r1,r1,-1                                  
 800a0d0:	59 61 00 10 	sw (r11+16),r1                                 
  if (mode & LIBIO_FLAGS_WRITE)                                       
 800a0d4:	21 81 00 04 	andi r1,r12,0x4                                
 800a0d8:	44 20 00 04 	be r1,r0,800a0e8 <pipe_release+0x4c>           
     pipe->Writers --;                                                
 800a0dc:	29 61 00 14 	lw r1,(r11+20)                                 
 800a0e0:	34 21 ff ff 	addi r1,r1,-1                                  
 800a0e4:	59 61 00 14 	sw (r11+20),r1                                 
                                                                      
  PIPE_UNLOCK(pipe);                                                  
 800a0e8:	29 61 00 28 	lw r1,(r11+40)                                 
 800a0ec:	fb ff eb e5 	calli 8005080 <rtems_semaphore_release>        
                                                                      
  if (pipe->Readers == 0 && pipe->Writers == 0) {                     
 800a0f0:	29 62 00 10 	lw r2,(r11+16)                                 
 800a0f4:	5c 40 00 07 	bne r2,r0,800a110 <pipe_release+0x74>          
 800a0f8:	29 61 00 14 	lw r1,(r11+20)                                 
 800a0fc:	5c 22 00 05 	bne r1,r2,800a110 <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);                                                  
 800a100:	b9 60 08 00 	mv r1,r11                                      
 800a104:	fb ff ff d4 	calli 800a054 <pipe_free>                      
    *pipep = NULL;                                                    
 800a108:	59 a0 00 00 	sw (r13+0),r0                                  
 800a10c:	e0 00 00 0f 	bi 800a148 <pipe_release+0xac>                 
  }                                                                   
  else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)           
 800a110:	7d 81 00 04 	cmpnei r1,r12,4                                
 800a114:	64 42 00 00 	cmpei r2,r2,0                                  
 800a118:	a0 22 10 00 	and r2,r1,r2                                   
 800a11c:	44 40 00 03 	be r2,r0,800a128 <pipe_release+0x8c>           
    /* Notify waiting Writers that all their partners left */         
    PIPE_WAKEUPWRITERS(pipe);                                         
 800a120:	29 61 00 30 	lw r1,(r11+48)                                 
 800a124:	e0 00 00 07 	bi 800a140 <pipe_release+0xa4>                 
  else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ)            
 800a128:	29 61 00 14 	lw r1,(r11+20)                                 
 800a12c:	7d 8c 00 02 	cmpnei r12,r12,2                               
 800a130:	64 21 00 00 	cmpei r1,r1,0                                  
 800a134:	a1 81 60 00 	and r12,r12,r1                                 
 800a138:	45 82 00 04 	be r12,r2,800a148 <pipe_release+0xac>          <== NEVER TAKEN
    PIPE_WAKEUPREADERS(pipe);                                         
 800a13c:	29 61 00 2c 	lw r1,(r11+44)                                 
 800a140:	37 82 00 14 	addi r2,sp,20                                  
 800a144:	f8 00 05 08 	calli 800b564 <rtems_barrier_release>          
                                                                      
  pipe_unlock();                                                      
 800a148:	fb ff ff ba 	calli 800a030 <pipe_unlock>                    
  iop->flags &= ~LIBIO_FLAGS_OPEN;                                    
  if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))                     
    return;                                                           
#endif                                                                
                                                                      
}                                                                     
 800a14c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a150:	2b 8b 00 10 	lw r11,(sp+16)                                 
 800a154:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 800a158:	2b 8d 00 08 	lw r13,(sp+8)                                  
 800a15c:	37 9c 00 14 	addi sp,sp,20                                  
 800a160:	c3 a0 00 00 	ret                                            
                                                                      

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

08009090 <ramdisk_allocate>: void *area_begin, uint32_t media_block_size, rtems_blkdev_bnum media_block_count, bool trace ) {
 8009090:	37 9c ff e4 	addi sp,sp,-28                                 
 8009094:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8009098:	5b 8c 00 18 	sw (sp+24),r12                                 
 800909c:	5b 8d 00 14 	sw (sp+20),r13                                 
 80090a0:	5b 8e 00 10 	sw (sp+16),r14                                 
 80090a4:	5b 8f 00 0c 	sw (sp+12),r15                                 
 80090a8:	5b 90 00 08 	sw (sp+8),r16                                  
 80090ac:	5b 9d 00 04 	sw (sp+4),ra                                   
 80090b0:	b8 20 68 00 	mv r13,r1                                      
  struct ramdisk *rd = malloc(sizeof(struct ramdisk));                
 80090b4:	34 01 00 10 	mvi r1,16                                      
  void *area_begin,                                                   
  uint32_t media_block_size,                                          
  rtems_blkdev_bnum media_block_count,                                
  bool trace                                                          
)                                                                     
{                                                                     
 80090b8:	b8 40 78 00 	mv r15,r2                                      
 80090bc:	b8 60 70 00 	mv r14,r3                                      
 80090c0:	20 90 00 ff 	andi r16,r4,0xff                               
  struct ramdisk *rd = malloc(sizeof(struct ramdisk));                
 80090c4:	fb ff e7 a1 	calli 8002f48 <malloc>                         
 80090c8:	b8 20 60 00 	mv r12,r1                                      
 80090cc:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  if (rd == NULL) {                                                   
 80090d0:	44 20 00 15 	be r1,r0,8009124 <ramdisk_allocate+0x94>       <== NEVER TAKEN
    return NULL;                                                      
  }                                                                   
                                                                      
  if (area_begin == NULL) {                                           
 80090d4:	5d a0 00 0d 	bne r13,r0,8009108 <ramdisk_allocate+0x78>     
    area_begin = calloc(media_block_count, media_block_size);         
 80090d8:	b9 c0 08 00 	mv r1,r14                                      
 80090dc:	b9 e0 10 00 	mv r2,r15                                      
 80090e0:	fb ff e5 c2 	calli 80027e8 <calloc>                         
 80090e4:	b8 20 68 00 	mv r13,r1                                      
    if (area_begin == NULL) {                                         
 80090e8:	5c 20 00 05 	bne r1,r0,80090fc <ramdisk_allocate+0x6c>      <== ALWAYS TAKEN
      free(rd);                                                       
 80090ec:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 80090f0:	fb ff e6 08 	calli 8002910 <free>                           <== NOT EXECUTED
                                                                      
      return NULL;                                                    
 80090f4:	34 0c 00 00 	mvi r12,0                                      <== NOT EXECUTED
 80090f8:	e0 00 00 0b 	bi 8009124 <ramdisk_allocate+0x94>             <== NOT EXECUTED
    }                                                                 
    rd->malloced = true;                                              
 80090fc:	34 01 00 01 	mvi r1,1                                       
 8009100:	31 81 00 0d 	sb (r12+13),r1                                 
 8009104:	e0 00 00 02 	bi 800910c <ramdisk_allocate+0x7c>             
  } else {                                                            
    rd->malloced = false;                                             
 8009108:	30 20 00 0d 	sb (r1+13),r0                                  
  }                                                                   
  rd->block_size = media_block_size;                                  
  rd->block_num = media_block_count;                                  
  rd->area = area_begin;                                              
  rd->trace = trace;                                                  
  rd->initialized = true;                                             
 800910c:	34 01 00 01 	mvi r1,1                                       
    }                                                                 
    rd->malloced = true;                                              
  } else {                                                            
    rd->malloced = false;                                             
  }                                                                   
  rd->block_size = media_block_size;                                  
 8009110:	59 6f 00 00 	sw (r11+0),r15                                 
  rd->block_num = media_block_count;                                  
 8009114:	59 6e 00 04 	sw (r11+4),r14                                 
  rd->area = area_begin;                                              
 8009118:	59 6d 00 08 	sw (r11+8),r13                                 
  rd->trace = trace;                                                  
 800911c:	31 70 00 0e 	sb (r11+14),r16                                
  rd->initialized = true;                                             
 8009120:	31 61 00 0c 	sb (r11+12),r1                                 
                                                                      
  return rd;                                                          
}                                                                     
 8009124:	b9 80 08 00 	mv r1,r12                                      
 8009128:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800912c:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8009130:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8009134:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8009138:	2b 8e 00 10 	lw r14,(sp+16)                                 
 800913c:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8009140:	2b 90 00 08 	lw r16,(sp+8)                                  
 8009144:	37 9c 00 1c 	addi sp,sp,28                                  
 8009148:	c3 a0 00 00 	ret                                            
                                                                      

0800914c <ramdisk_free>: void ramdisk_free(ramdisk *rd) {
 800914c:	37 9c ff f8 	addi sp,sp,-8                                  
 8009150:	5b 8b 00 08 	sw (sp+8),r11                                  
 8009154:	5b 9d 00 04 	sw (sp+4),ra                                   
 8009158:	b8 20 58 00 	mv r11,r1                                      
  if (rd != NULL) {                                                   
 800915c:	44 20 00 07 	be r1,r0,8009178 <ramdisk_free+0x2c>           <== NEVER TAKEN
    if (rd->malloced) {                                               
 8009160:	40 21 00 0d 	lbu r1,(r1+13)                                 
 8009164:	44 20 00 03 	be r1,r0,8009170 <ramdisk_free+0x24>           
      free(rd->area);                                                 
 8009168:	29 61 00 08 	lw r1,(r11+8)                                  
 800916c:	fb ff e5 e9 	calli 8002910 <free>                           
    }                                                                 
    free(rd);                                                         
 8009170:	b9 60 08 00 	mv r1,r11                                      
 8009174:	fb ff e5 e7 	calli 8002910 <free>                           
  }                                                                   
}                                                                     
 8009178:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800917c:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8009180:	37 9c 00 08 	addi sp,sp,8                                   
 8009184:	c3 a0 00 00 	ret                                            
                                                                      

0800a9e4 <ramdisk_initialize>: rtems_device_driver ramdisk_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *arg __attribute__((unused))) {
 800a9e4:	37 9c ff c0 	addi sp,sp,-64                                 
 800a9e8:	5b 8b 00 34 	sw (sp+52),r11                                 
 800a9ec:	5b 8c 00 30 	sw (sp+48),r12                                 
 800a9f0:	5b 8d 00 2c 	sw (sp+44),r13                                 
 800a9f4:	5b 8e 00 28 	sw (sp+40),r14                                 
 800a9f8:	5b 8f 00 24 	sw (sp+36),r15                                 
 800a9fc:	5b 90 00 20 	sw (sp+32),r16                                 
 800aa00:	5b 91 00 1c 	sw (sp+28),r17                                 
 800aa04:	5b 92 00 18 	sw (sp+24),r18                                 
 800aa08:	5b 93 00 14 	sw (sp+20),r19                                 
 800aa0c:	5b 94 00 10 	sw (sp+16),r20                                 
 800aa10:	5b 95 00 0c 	sw (sp+12),r21                                 
 800aa14:	5b 96 00 08 	sw (sp+8),r22                                  
 800aa18:	5b 9d 00 04 	sw (sp+4),ra                                   
 800aa1c:	b8 20 b0 00 	mv r22,r1                                      
    rtems_device_minor_number i;                                      
    rtems_ramdisk_config *c = rtems_ramdisk_configuration;            
    struct ramdisk *r;                                                
    rtems_status_code rc;                                             
                                                                      
    rc = rtems_disk_io_initialize();                                  
 800aa20:	fb ff e0 a5 	calli 8002cb4 <rtems_disk_io_initialize>       
 800aa24:	b8 20 10 00 	mv r2,r1                                       
    if (rc != RTEMS_SUCCESSFUL)                                       
 800aa28:	5c 20 00 40 	bne r1,r0,800ab28 <ramdisk_initialize+0x144>   <== NEVER TAKEN
     * This is allocating memory for a RAM disk which will persist for
     * the life of the system. RTEMS has no "de-initialize" driver call
     * so there is no corresponding free(r).  Coverity is correct that
     * it is never freed but this is not a problem.                   
     */                                                               
    r = calloc(rtems_ramdisk_configuration_size, sizeof(struct ramdisk));
 800aa2c:	78 0d 08 02 	mvhi r13,0x802                                 
 800aa30:	39 ad 70 10 	ori r13,r13,0x7010                             
 800aa34:	29 a1 00 00 	lw r1,(r13+0)                                  
 800aa38:	34 02 00 10 	mvi r2,16                                      
    rtems_device_major_number major,                                  
    rtems_device_minor_number minor __attribute__((unused)),          
    void *arg __attribute__((unused)))                                
{                                                                     
    rtems_device_minor_number i;                                      
    rtems_ramdisk_config *c = rtems_ramdisk_configuration;            
 800aa3c:	78 0c 08 02 	mvhi r12,0x802                                 
     * This is allocating memory for a RAM disk which will persist for
     * the life of the system. RTEMS has no "de-initialize" driver call
     * so there is no corresponding free(r).  Coverity is correct that
     * it is never freed but this is not a problem.                   
     */                                                               
    r = calloc(rtems_ramdisk_configuration_size, sizeof(struct ramdisk));
 800aa40:	fb ff e5 0c 	calli 8003e70 <calloc>                         
    r->trace = false;                                                 
    for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)  
 800aa44:	b9 a0 a0 00 	mv r20,r13                                     
        {                                                             
            r->malloced = false;                                      
            r->initialized = true;                                    
            r->area = c->location;                                    
        }                                                             
        rc = rtems_disk_create_phys(dev, c->block_size, c->block_num, 
 800aa48:	78 10 08 00 	mvhi r16,0x800                                 
    r = calloc(rtems_ramdisk_configuration_size, sizeof(struct ramdisk));
    r->trace = false;                                                 
    for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)  
    {                                                                 
        dev_t dev = rtems_filesystem_make_dev_t(major, i);            
        char name [] = RAMDISK_DEVICE_BASE_NAME "a";                  
 800aa4c:	78 0d 08 02 	mvhi r13,0x802                                 
     * This is allocating memory for a RAM disk which will persist for
     * the life of the system. RTEMS has no "de-initialize" driver call
     * so there is no corresponding free(r).  Coverity is correct that
     * it is never freed but this is not a problem.                   
     */                                                               
    r = calloc(rtems_ramdisk_configuration_size, sizeof(struct ramdisk));
 800aa50:	b8 20 58 00 	mv r11,r1                                      
    r->trace = false;                                                 
 800aa54:	30 20 00 0e 	sb (r1+14),r0                                  
    rtems_device_major_number major,                                  
    rtems_device_minor_number minor __attribute__((unused)),          
    void *arg __attribute__((unused)))                                
{                                                                     
    rtems_device_minor_number i;                                      
    rtems_ramdisk_config *c = rtems_ramdisk_configuration;            
 800aa58:	39 8c 70 04 	ori r12,r12,0x7004                             
     * so there is no corresponding free(r).  Coverity is correct that
     * it is never freed but this is not a problem.                   
     */                                                               
    r = calloc(rtems_ramdisk_configuration_size, sizeof(struct ramdisk));
    r->trace = false;                                                 
    for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)  
 800aa5c:	34 0e 00 00 	mvi r14,0                                      
    {                                                                 
        dev_t dev = rtems_filesystem_make_dev_t(major, i);            
        char name [] = RAMDISK_DEVICE_BASE_NAME "a";                  
 800aa60:	39 ad 56 7c 	ori r13,r13,0x567c                             
        {                                                             
            r->malloced = false;                                      
            r->initialized = true;                                    
            r->area = c->location;                                    
        }                                                             
        rc = rtems_disk_create_phys(dev, c->block_size, c->block_num, 
 800aa64:	3a 10 ab 68 	ori r16,r16,0xab68                             
 800aa68:	37 95 00 38 	addi r21,sp,56                                 
            }                                                         
        }                                                             
        else                                                          
        {                                                             
            r->malloced = false;                                      
            r->initialized = true;                                    
 800aa6c:	34 0f 00 01 	mvi r15,1                                      
     * so there is no corresponding free(r).  Coverity is correct that
     * it is never freed but this is not a problem.                   
     */                                                               
    r = calloc(rtems_ramdisk_configuration_size, sizeof(struct ramdisk));
    r->trace = false;                                                 
    for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)  
 800aa70:	e0 00 00 2b 	bi 800ab1c <ramdisk_initialize+0x138>          
    {                                                                 
        dev_t dev = rtems_filesystem_make_dev_t(major, i);            
        char name [] = RAMDISK_DEVICE_BASE_NAME "a";                  
 800aa74:	29 a1 00 04 	lw r1,(r13+4)                                  
 800aa78:	29 a2 00 00 	lw r2,(r13+0)                                  
        name [sizeof(RAMDISK_DEVICE_BASE_NAME)] += i;                 
        r->block_size = c->block_size;                                
 800aa7c:	29 92 00 00 	lw r18,(r12+0)                                 
    r = calloc(rtems_ramdisk_configuration_size, sizeof(struct ramdisk));
    r->trace = false;                                                 
    for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)  
    {                                                                 
        dev_t dev = rtems_filesystem_make_dev_t(major, i);            
        char name [] = RAMDISK_DEVICE_BASE_NAME "a";                  
 800aa80:	5b 81 00 3c 	sw (sp+60),r1                                  
 800aa84:	5b 82 00 38 	sw (sp+56),r2                                  
 800aa88:	41 a1 00 08 	lbu r1,(r13+8)                                 
        name [sizeof(RAMDISK_DEVICE_BASE_NAME)] += i;                 
        r->block_size = c->block_size;                                
        r->block_num = c->block_num;                                  
 800aa8c:	29 91 00 04 	lw r17,(r12+4)                                 
        if (c->location == NULL)                                      
 800aa90:	29 93 00 08 	lw r19,(r12+8)                                 
    r->trace = false;                                                 
    for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)  
    {                                                                 
        dev_t dev = rtems_filesystem_make_dev_t(major, i);            
        char name [] = RAMDISK_DEVICE_BASE_NAME "a";                  
        name [sizeof(RAMDISK_DEVICE_BASE_NAME)] += i;                 
 800aa94:	b5 c1 08 00 	add r1,r14,r1                                  
 800aa98:	33 81 00 40 	sb (sp+64),r1                                  
        r->block_size = c->block_size;                                
 800aa9c:	59 72 00 00 	sw (r11+0),r18                                 
        r->block_num = c->block_num;                                  
 800aaa0:	59 71 00 04 	sw (r11+4),r17                                 
        if (c->location == NULL)                                      
 800aaa4:	5e 60 00 0a 	bne r19,r0,800aacc <ramdisk_initialize+0xe8>   <== NEVER TAKEN
        {                                                             
            r->malloced = true;                                       
            r->area = malloc(r->block_size * r->block_num);           
 800aaa8:	ba 40 10 00 	mv r2,r18                                      
 800aaac:	ba 20 08 00 	mv r1,r17                                      
        name [sizeof(RAMDISK_DEVICE_BASE_NAME)] += i;                 
        r->block_size = c->block_size;                                
        r->block_num = c->block_num;                                  
        if (c->location == NULL)                                      
        {                                                             
            r->malloced = true;                                       
 800aab0:	31 6f 00 0d 	sb (r11+13),r15                                
            r->area = malloc(r->block_size * r->block_num);           
 800aab4:	fb ff d7 43 	calli 80007c0 <__mulsi3>                       
 800aab8:	fb ff e7 23 	calli 8004744 <malloc>                         
 800aabc:	59 61 00 08 	sw (r11+8),r1                                  
            if (r->area == NULL) /* No enough memory for this disk */ 
 800aac0:	44 33 00 13 	be r1,r19,800ab0c <ramdisk_initialize+0x128>   <== NEVER TAKEN
                r->initialized = false;                               
                continue;                                             
            }                                                         
            else                                                      
            {                                                         
                r->initialized = true;                                
 800aac4:	31 6f 00 0c 	sb (r11+12),r15                                
 800aac8:	e0 00 00 04 	bi 800aad8 <ramdisk_initialize+0xf4>           
            }                                                         
        }                                                             
        else                                                          
        {                                                             
            r->malloced = false;                                      
 800aacc:	31 60 00 0d 	sb (r11+13),r0                                 <== NOT EXECUTED
            r->initialized = true;                                    
 800aad0:	31 6f 00 0c 	sb (r11+12),r15                                <== NOT EXECUTED
            r->area = c->location;                                    
 800aad4:	59 73 00 08 	sw (r11+8),r19                                 <== NOT EXECUTED
        }                                                             
        rc = rtems_disk_create_phys(dev, c->block_size, c->block_num, 
 800aad8:	ba c0 08 00 	mv r1,r22                                      
 800aadc:	b9 c0 10 00 	mv r2,r14                                      
 800aae0:	ba 40 18 00 	mv r3,r18                                      
 800aae4:	ba 20 20 00 	mv r4,r17                                      
 800aae8:	ba 00 28 00 	mv r5,r16                                      
 800aaec:	b9 60 30 00 	mv r6,r11                                      
 800aaf0:	ba a0 38 00 	mv r7,r21                                      
 800aaf4:	fb ff df a4 	calli 8002984 <rtems_disk_create_phys>         
                                    ramdisk_ioctl, r, name);          
        if (rc != RTEMS_SUCCESSFUL)                                   
 800aaf8:	44 20 00 06 	be r1,r0,800ab10 <ramdisk_initialize+0x12c>    <== ALWAYS TAKEN
        {                                                             
            if (r->malloced)                                          
 800aafc:	41 61 00 0d 	lbu r1,(r11+13)                                <== NOT EXECUTED
 800ab00:	44 20 00 03 	be r1,r0,800ab0c <ramdisk_initialize+0x128>    <== NOT EXECUTED
            {                                                         
                free(r->area);                                        
 800ab04:	29 61 00 08 	lw r1,(r11+8)                                  <== NOT EXECUTED
 800ab08:	fb ff e5 24 	calli 8003f98 <free>                           <== NOT EXECUTED
            }                                                         
            r->initialized = false;                                   
 800ab0c:	31 60 00 0c 	sb (r11+12),r0                                 <== NOT EXECUTED
     * so there is no corresponding free(r).  Coverity is correct that
     * it is never freed but this is not a problem.                   
     */                                                               
    r = calloc(rtems_ramdisk_configuration_size, sizeof(struct ramdisk));
    r->trace = false;                                                 
    for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)  
 800ab10:	35 ce 00 01 	addi r14,r14,1                                 
 800ab14:	35 8c 00 0c 	addi r12,r12,12                                
 800ab18:	35 6b 00 10 	addi r11,r11,16                                
 800ab1c:	2a 81 00 00 	lw r1,(r20+0)                                  
 800ab20:	54 2e ff d5 	bgu r1,r14,800aa74 <ramdisk_initialize+0x90>   
                free(r->area);                                        
            }                                                         
            r->initialized = false;                                   
        }                                                             
    }                                                                 
    return RTEMS_SUCCESSFUL;                                          
 800ab24:	34 02 00 00 	mvi r2,0                                       
}                                                                     
 800ab28:	b8 40 08 00 	mv r1,r2                                       
 800ab2c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800ab30:	2b 8b 00 34 	lw r11,(sp+52)                                 
 800ab34:	2b 8c 00 30 	lw r12,(sp+48)                                 
 800ab38:	2b 8d 00 2c 	lw r13,(sp+44)                                 
 800ab3c:	2b 8e 00 28 	lw r14,(sp+40)                                 
 800ab40:	2b 8f 00 24 	lw r15,(sp+36)                                 
 800ab44:	2b 90 00 20 	lw r16,(sp+32)                                 
 800ab48:	2b 91 00 1c 	lw r17,(sp+28)                                 
 800ab4c:	2b 92 00 18 	lw r18,(sp+24)                                 
 800ab50:	2b 93 00 14 	lw r19,(sp+20)                                 
 800ab54:	2b 94 00 10 	lw r20,(sp+16)                                 
 800ab58:	2b 95 00 0c 	lw r21,(sp+12)                                 
 800ab5c:	2b 96 00 08 	lw r22,(sp+8)                                  
 800ab60:	37 9c 00 40 	addi sp,sp,64                                  
 800ab64:	c3 a0 00 00 	ret                                            
                                                                      

08008f4c <ramdisk_ioctl>: return 0; } int ramdisk_ioctl(rtems_disk_device *dd, uint32_t req, void *argp) {
 8008f4c:	37 9c ff e4 	addi sp,sp,-28                                 
 8008f50:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8008f54:	5b 8c 00 18 	sw (sp+24),r12                                 
 8008f58:	5b 8d 00 14 	sw (sp+20),r13                                 
 8008f5c:	5b 8e 00 10 	sw (sp+16),r14                                 
 8008f60:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8008f64:	5b 90 00 08 	sw (sp+8),r16                                  
 8008f68:	5b 9d 00 04 	sw (sp+4),ra                                   
    struct ramdisk *rd = rtems_disk_get_driver_data(dd);              
                                                                      
    switch (req)                                                      
 8008f6c:	78 06 08 01 	mvhi r6,0x801                                  
 8008f70:	38 c6 76 68 	ori r6,r6,0x7668                               
 8008f74:	28 c5 00 00 	lw r5,(r6+0)                                   
    return 0;                                                         
}                                                                     
                                                                      
int                                                                   
ramdisk_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)        
{                                                                     
 8008f78:	b8 60 58 00 	mv r11,r3                                      
    struct ramdisk *rd = rtems_disk_get_driver_data(dd);              
 8008f7c:	28 2c 00 3c 	lw r12,(r1+60)                                 
                                                                      
    switch (req)                                                      
 8008f80:	44 45 00 30 	be r2,r5,8009040 <ramdisk_ioctl+0xf4>          
 8008f84:	78 06 08 01 	mvhi r6,0x801                                  
 8008f88:	38 c6 7a 44 	ori r6,r6,0x7a44                               
 8008f8c:	28 c5 00 00 	lw r5,(r6+0)                                   
 8008f90:	5c 45 00 31 	bne r2,r5,8009054 <ramdisk_ioctl+0x108>        
    {                                                                 
        case RTEMS_BLKIO_REQUEST:                                     
        {                                                             
            rtems_blkdev_request *r = argp;                           
                                                                      
            switch (r->req)                                           
 8008f94:	28 61 00 00 	lw r1,(r3+0)                                   
 8008f98:	44 20 00 04 	be r1,r0,8008fa8 <ramdisk_ioctl+0x5c>          
 8008f9c:	34 02 00 01 	mvi r2,1                                       
 8008fa0:	5c 22 00 2f 	bne r1,r2,800905c <ramdisk_ioctl+0x110>        <== NEVER TAKEN
 8008fa4:	e0 00 00 12 	bi 8008fec <ramdisk_ioctl+0xa0>                
#endif                                                                
                                                                      
static int                                                            
ramdisk_read(struct ramdisk *rd, rtems_blkdev_request *req)           
{                                                                     
    uint8_t *from = rd->area;                                         
 8008fa8:	29 8f 00 08 	lw r15,(r12+8)                                 
#if RTEMS_RAMDISK_TRACE                                               
    rtems_ramdisk_printf (rd, "ramdisk read: start=%d, blocks=%d",    
                          req->bufs[0].block, req->bufnum);           
#endif                                                                
                                                                      
    for (i = 0, sg = req->bufs; i < req->bufnum; i++, sg++)           
 8008fac:	34 6d 00 18 	addi r13,r3,24                                 
 8008fb0:	34 0e 00 00 	mvi r14,0                                      
 8008fb4:	e0 00 00 0b 	bi 8008fe0 <ramdisk_ioctl+0x94>                
#if RTEMS_RAMDISK_TRACE                                               
        rtems_ramdisk_printf (rd, "ramdisk read: buf=%d block=%d length=%d off=%d addr=%p",
                              i, sg->block, sg->length, sg->block * rd->block_size,
                              from + (sg->block * rd->block_size));   
#endif                                                                
        memcpy(sg->buffer, from + (sg->block * rd->block_size), sg->length);
 8008fb8:	29 a2 00 00 	lw r2,(r13+0)                                  
 8008fbc:	29 81 00 00 	lw r1,(r12+0)                                  
 8008fc0:	29 b0 00 08 	lw r16,(r13+8)                                 
#if RTEMS_RAMDISK_TRACE                                               
    rtems_ramdisk_printf (rd, "ramdisk read: start=%d, blocks=%d",    
                          req->bufs[0].block, req->bufnum);           
#endif                                                                
                                                                      
    for (i = 0, sg = req->bufs; i < req->bufnum; i++, sg++)           
 8008fc4:	35 ce 00 01 	addi r14,r14,1                                 
#if RTEMS_RAMDISK_TRACE                                               
        rtems_ramdisk_printf (rd, "ramdisk read: buf=%d block=%d length=%d off=%d addr=%p",
                              i, sg->block, sg->length, sg->block * rd->block_size,
                              from + (sg->block * rd->block_size));   
#endif                                                                
        memcpy(sg->buffer, from + (sg->block * rd->block_size), sg->length);
 8008fc8:	f8 00 36 41 	calli 80168cc <__mulsi3>                       
 8008fcc:	29 a3 00 04 	lw r3,(r13+4)                                  
 8008fd0:	b5 e1 10 00 	add r2,r15,r1                                  
 8008fd4:	ba 00 08 00 	mv r1,r16                                      
 8008fd8:	f8 00 21 83 	calli 80115e4 <memcpy>                         
#if RTEMS_RAMDISK_TRACE                                               
    rtems_ramdisk_printf (rd, "ramdisk read: start=%d, blocks=%d",    
                          req->bufs[0].block, req->bufnum);           
#endif                                                                
                                                                      
    for (i = 0, sg = req->bufs; i < req->bufnum; i++, sg++)           
 8008fdc:	35 ad 00 10 	addi r13,r13,16                                
 8008fe0:	29 61 00 10 	lw r1,(r11+16)                                 
 8008fe4:	54 2e ff f5 	bgu r1,r14,8008fb8 <ramdisk_ioctl+0x6c>        
 8008fe8:	e0 00 00 10 	bi 8009028 <ramdisk_ioctl+0xdc>                
}                                                                     
                                                                      
static int                                                            
ramdisk_write(struct ramdisk *rd, rtems_blkdev_request *req)          
{                                                                     
    uint8_t *to = rd->area;                                           
 8008fec:	29 8f 00 08 	lw r15,(r12+8)                                 
                                                                      
#if RTEMS_RAMDISK_TRACE                                               
    rtems_ramdisk_printf (rd, "ramdisk write: start=%d, blocks=%d",   
                          req->bufs[0].block, req->bufnum);           
#endif                                                                
    for (i = 0, sg = req->bufs; i < req->bufnum; i++, sg++)           
 8008ff0:	34 6d 00 18 	addi r13,r3,24                                 
 8008ff4:	34 0e 00 00 	mvi r14,0                                      
 8008ff8:	e0 00 00 0a 	bi 8009020 <ramdisk_ioctl+0xd4>                
#if RTEMS_RAMDISK_TRACE                                               
        rtems_ramdisk_printf (rd, "ramdisk write: buf=%d block=%d length=%d off=%d addr=%p",
                              i, sg->block, sg->length, sg->block * rd->block_size,
                              to + (sg->block * rd->block_size));     
#endif                                                                
        memcpy(to + (sg->block * rd->block_size), sg->buffer, sg->length);
 8008ffc:	29 a2 00 00 	lw r2,(r13+0)                                  
 8009000:	29 81 00 00 	lw r1,(r12+0)                                  
                                                                      
#if RTEMS_RAMDISK_TRACE                                               
    rtems_ramdisk_printf (rd, "ramdisk write: start=%d, blocks=%d",   
                          req->bufs[0].block, req->bufnum);           
#endif                                                                
    for (i = 0, sg = req->bufs; i < req->bufnum; i++, sg++)           
 8009004:	35 ce 00 01 	addi r14,r14,1                                 
#if RTEMS_RAMDISK_TRACE                                               
        rtems_ramdisk_printf (rd, "ramdisk write: buf=%d block=%d length=%d off=%d addr=%p",
                              i, sg->block, sg->length, sg->block * rd->block_size,
                              to + (sg->block * rd->block_size));     
#endif                                                                
        memcpy(to + (sg->block * rd->block_size), sg->buffer, sg->length);
 8009008:	f8 00 36 31 	calli 80168cc <__mulsi3>                       
 800900c:	29 a2 00 08 	lw r2,(r13+8)                                  
 8009010:	29 a3 00 04 	lw r3,(r13+4)                                  
 8009014:	b5 e1 08 00 	add r1,r15,r1                                  
                                                                      
#if RTEMS_RAMDISK_TRACE                                               
    rtems_ramdisk_printf (rd, "ramdisk write: start=%d, blocks=%d",   
                          req->bufs[0].block, req->bufnum);           
#endif                                                                
    for (i = 0, sg = req->bufs; i < req->bufnum; i++, sg++)           
 8009018:	35 ad 00 10 	addi r13,r13,16                                
#if RTEMS_RAMDISK_TRACE                                               
        rtems_ramdisk_printf (rd, "ramdisk write: buf=%d block=%d length=%d off=%d addr=%p",
                              i, sg->block, sg->length, sg->block * rd->block_size,
                              to + (sg->block * rd->block_size));     
#endif                                                                
        memcpy(to + (sg->block * rd->block_size), sg->buffer, sg->length);
 800901c:	f8 00 21 72 	calli 80115e4 <memcpy>                         
                                                                      
#if RTEMS_RAMDISK_TRACE                                               
    rtems_ramdisk_printf (rd, "ramdisk write: start=%d, blocks=%d",   
                          req->bufs[0].block, req->bufnum);           
#endif                                                                
    for (i = 0, sg = req->bufs; i < req->bufnum; i++, sg++)           
 8009020:	29 61 00 10 	lw r1,(r11+16)                                 
 8009024:	54 2e ff f6 	bgu r1,r14,8008ffc <ramdisk_ioctl+0xb0>        
static inline void rtems_blkdev_request_done(                         
  rtems_blkdev_request *req,                                          
  rtems_status_code status                                            
)                                                                     
{                                                                     
  (*req->done)(req, status);                                          
 8009028:	29 63 00 04 	lw r3,(r11+4)                                  
 800902c:	b9 60 08 00 	mv r1,r11                                      
 8009030:	34 02 00 00 	mvi r2,0                                       
 8009034:	d8 60 00 00 	call r3                                        
            {                                                         
                case RTEMS_BLKDEV_REQ_READ:                           
                    return ramdisk_read(rd, r);                       
                                                                      
                case RTEMS_BLKDEV_REQ_WRITE:                          
                    return ramdisk_write(rd, r);                      
 8009038:	34 01 00 00 	mvi r1,0                                       
 800903c:	e0 00 00 0c 	bi 800906c <ramdisk_ioctl+0x120>               
            }                                                         
            break;                                                    
        }                                                             
                                                                      
        case RTEMS_BLKIO_DELETED:                                     
            if (rd->free_at_delete_request) {                         
 8009040:	41 81 00 0f 	lbu r1,(r12+15)                                
 8009044:	44 20 00 06 	be r1,r0,800905c <ramdisk_ioctl+0x110>         
              ramdisk_free(rd);                                       
 8009048:	b9 80 08 00 	mv r1,r12                                      
 800904c:	f8 00 00 40 	calli 800914c <ramdisk_free>                   
 8009050:	e0 00 00 03 	bi 800905c <ramdisk_ioctl+0x110>               
            }                                                         
            break;                                                    
                                                                      
        default:                                                      
            return rtems_blkdev_ioctl (dd, req, argp);                
 8009054:	f8 00 0b 97 	calli 800beb0 <rtems_blkdev_ioctl>             
 8009058:	e0 00 00 05 	bi 800906c <ramdisk_ioctl+0x120>               
            break;                                                    
    }                                                                 
                                                                      
    errno = EINVAL;                                                   
 800905c:	f8 00 1e 8a 	calli 8010a84 <__errno>                        
 8009060:	34 02 00 16 	mvi r2,22                                      
 8009064:	58 22 00 00 	sw (r1+0),r2                                   
    return -1;                                                        
 8009068:	34 01 ff ff 	mvi r1,-1                                      
}                                                                     
 800906c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009070:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8009074:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8009078:	2b 8d 00 14 	lw r13,(sp+20)                                 
 800907c:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8009080:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8009084:	2b 90 00 08 	lw r16,(sp+8)                                  
 8009088:	37 9c 00 1c 	addi sp,sp,28                                  
 800908c:	c3 a0 00 00 	ret                                            
                                                                      

08009188 <ramdisk_register>: rtems_blkdev_bnum media_block_count, bool trace, const char *disk, dev_t *dev_ptr ) {
 8009188:	37 9c ff d8 	addi sp,sp,-40                                 
 800918c:	5b 8b 00 24 	sw (sp+36),r11                                 
 8009190:	5b 8c 00 20 	sw (sp+32),r12                                 
 8009194:	5b 8d 00 1c 	sw (sp+28),r13                                 
 8009198:	5b 8e 00 18 	sw (sp+24),r14                                 
 800919c:	5b 8f 00 14 	sw (sp+20),r15                                 
 80091a0:	5b 90 00 10 	sw (sp+16),r16                                 
 80091a4:	5b 91 00 0c 	sw (sp+12),r17                                 
 80091a8:	5b 92 00 08 	sw (sp+8),r18                                  
 80091ac:	5b 9d 00 04 	sw (sp+4),ra                                   
 80091b0:	b8 40 78 00 	mv r15,r2                                      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_device_major_number major = 0;                                
  ramdisk *rd = NULL;                                                 
  dev_t dev = 0;                                                      
                                                                      
  sc = rtems_io_register_driver(0, &ramdisk_ops, &major);             
 80091b4:	78 02 08 01 	mvhi r2,0x801                                  
  rtems_blkdev_bnum media_block_count,                                
  bool trace,                                                         
  const char *disk,                                                   
  dev_t *dev_ptr                                                      
)                                                                     
{                                                                     
 80091b8:	b8 20 80 00 	mv r16,r1                                      
 80091bc:	20 6b 00 ff 	andi r11,r3,0xff                               
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_device_major_number major = 0;                                
  ramdisk *rd = NULL;                                                 
  dev_t dev = 0;                                                      
                                                                      
  sc = rtems_io_register_driver(0, &ramdisk_ops, &major);             
 80091c0:	34 01 00 00 	mvi r1,0                                       
 80091c4:	38 42 7a 48 	ori r2,r2,0x7a48                               
 80091c8:	37 83 00 28 	addi r3,sp,40                                  
  rtems_blkdev_bnum media_block_count,                                
  bool trace,                                                         
  const char *disk,                                                   
  dev_t *dev_ptr                                                      
)                                                                     
{                                                                     
 80091cc:	b8 80 90 00 	mv r18,r4                                      
 80091d0:	b8 a0 70 00 	mv r14,r5                                      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_device_major_number major = 0;                                
 80091d4:	5b 80 00 28 	sw (sp+40),r0                                  
  ramdisk *rd = NULL;                                                 
  dev_t dev = 0;                                                      
                                                                      
  sc = rtems_io_register_driver(0, &ramdisk_ops, &major);             
 80091d8:	fb ff f1 00 	calli 80055d8 <rtems_io_register_driver>       
 80091dc:	b8 20 88 00 	mv r17,r1                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return RTEMS_UNSATISFIED;                                         
 80091e0:	34 0d 00 0d 	mvi r13,13                                     
  rtems_device_major_number major = 0;                                
  ramdisk *rd = NULL;                                                 
  dev_t dev = 0;                                                      
                                                                      
  sc = rtems_io_register_driver(0, &ramdisk_ops, &major);             
  if (sc != RTEMS_SUCCESSFUL) {                                       
 80091e4:	5c 20 00 1b 	bne r1,r0,8009250 <ramdisk_register+0xc8>      <== NEVER TAKEN
    return RTEMS_UNSATISFIED;                                         
  }                                                                   
                                                                      
  rd = ramdisk_allocate(NULL, media_block_size, media_block_count, trace);
 80091e8:	b9 60 20 00 	mv r4,r11                                      
 80091ec:	ba 00 10 00 	mv r2,r16                                      
 80091f0:	b9 e0 18 00 	mv r3,r15                                      
 80091f4:	fb ff ff a7 	calli 8009090 <ramdisk_allocate>               
 80091f8:	2b 8b 00 28 	lw r11,(sp+40)                                 
 80091fc:	b8 20 60 00 	mv r12,r1                                      
  if (rd == NULL) {                                                   
    rtems_io_unregister_driver(major);                                
 8009200:	b9 60 08 00 	mv r1,r11                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return RTEMS_UNSATISFIED;                                         
  }                                                                   
                                                                      
  rd = ramdisk_allocate(NULL, media_block_size, media_block_count, trace);
  if (rd == NULL) {                                                   
 8009204:	45 91 00 0e 	be r12,r17,800923c <ramdisk_register+0xb4>     <== NEVER TAKEN
    return RTEMS_UNSATISFIED;                                         
  }                                                                   
                                                                      
  dev = rtems_filesystem_make_dev_t(major, 0);                        
                                                                      
  sc = rtems_disk_create_phys(                                        
 8009208:	78 05 08 00 	mvhi r5,0x800                                  
 800920c:	b9 60 08 00 	mv r1,r11                                      
 8009210:	34 02 00 00 	mvi r2,0                                       
 8009214:	ba 00 18 00 	mv r3,r16                                      
 8009218:	b9 e0 20 00 	mv r4,r15                                      
 800921c:	38 a5 8f 4c 	ori r5,r5,0x8f4c                               
 8009220:	b9 80 30 00 	mv r6,r12                                      
 8009224:	ba 40 38 00 	mv r7,r18                                      
 8009228:	fb ff e2 43 	calli 8001b34 <rtems_disk_create_phys>         
    media_block_count,                                                
    ramdisk_ioctl,                                                    
    rd,                                                               
    disk                                                              
  );                                                                  
  if (sc != RTEMS_SUCCESSFUL) {                                       
 800922c:	44 20 00 06 	be r1,r0,8009244 <ramdisk_register+0xbc>       <== ALWAYS TAKEN
    ramdisk_free(rd);                                                 
 8009230:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8009234:	fb ff ff c6 	calli 800914c <ramdisk_free>                   <== NOT EXECUTED
    rtems_io_unregister_driver(major);                                
 8009238:	2b 81 00 28 	lw r1,(sp+40)                                  <== NOT EXECUTED
 800923c:	fb ff f1 54 	calli 800578c <rtems_io_unregister_driver>     <== NOT EXECUTED
                                                                      
    return RTEMS_UNSATISFIED;                                         
 8009240:	e0 00 00 04 	bi 8009250 <ramdisk_register+0xc8>             <== NOT EXECUTED
  }                                                                   
                                                                      
  *dev_ptr = dev;                                                     
 8009244:	59 cb 00 00 	sw (r14+0),r11                                 
 8009248:	59 c0 00 04 	sw (r14+4),r0                                  
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800924c:	34 0d 00 00 	mvi r13,0                                      
}                                                                     
 8009250:	b9 a0 08 00 	mv r1,r13                                      
 8009254:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009258:	2b 8b 00 24 	lw r11,(sp+36)                                 
 800925c:	2b 8c 00 20 	lw r12,(sp+32)                                 
 8009260:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 8009264:	2b 8e 00 18 	lw r14,(sp+24)                                 
 8009268:	2b 8f 00 14 	lw r15,(sp+20)                                 
 800926c:	2b 90 00 10 	lw r16,(sp+16)                                 
 8009270:	2b 91 00 0c 	lw r17,(sp+12)                                 
 8009274:	2b 92 00 08 	lw r18,(sp+8)                                  
 8009278:	37 9c 00 28 	addi sp,sp,40                                  
 800927c:	c3 a0 00 00 	ret                                            
                                                                      

0801a9cc <read>: ssize_t read( int fd, void *buffer, size_t count ) {
 801a9cc:	37 9c ff f0 	addi sp,sp,-16                                 
 801a9d0:	5b 8b 00 0c 	sw (sp+12),r11                                 
 801a9d4:	5b 8c 00 08 	sw (sp+8),r12                                  
 801a9d8:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
 801a9dc:	78 04 08 01 	mvhi r4,0x801                                  
 801a9e0:	38 84 d0 10 	ori r4,r4,0xd010                               
ssize_t read(                                                         
  int         fd,                                                     
  void       *buffer,                                                 
  size_t      count                                                   
)                                                                     
{                                                                     
 801a9e4:	b8 40 60 00 	mv r12,r2                                      
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
 801a9e8:	28 82 00 00 	lw r2,(r4+0)                                   
 801a9ec:	54 41 00 02 	bgu r2,r1,801a9f4 <read+0x28>                  
 801a9f0:	e0 00 00 14 	bi 801aa40 <read+0x74>                         
  iop = rtems_libio_iop( fd );                                        
 801a9f4:	34 02 00 2c 	mvi r2,44                                      
 801a9f8:	78 0b 08 01 	mvhi r11,0x801                                 
 801a9fc:	5b 83 00 10 	sw (sp+16),r3                                  
 801aa00:	39 6b d7 a0 	ori r11,r11,0xd7a0                             
 801aa04:	fb ff fe 82 	calli 801a40c <__mulsi3>                       
 801aa08:	29 64 00 00 	lw r4,(r11+0)                                  
  rtems_libio_check_is_open( iop );                                   
 801aa0c:	2b 83 00 10 	lw r3,(sp+16)                                  
)                                                                     
{                                                                     
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
 801aa10:	b4 81 20 00 	add r4,r4,r1                                   
  rtems_libio_check_is_open( iop );                                   
 801aa14:	28 82 00 08 	lw r2,(r4+8)                                   
 801aa18:	20 41 01 00 	andi r1,r2,0x100                               
 801aa1c:	44 20 00 09 	be r1,r0,801aa40 <read+0x74>                   
  rtems_libio_check_buffer( buffer );                                 
 801aa20:	5d 80 00 04 	bne r12,r0,801aa30 <read+0x64>                 <== ALWAYS TAKEN
 801aa24:	fb ff c3 7a 	calli 800b80c <__errno>                        <== NOT EXECUTED
 801aa28:	34 02 00 16 	mvi r2,22                                      <== NOT EXECUTED
 801aa2c:	e0 00 00 07 	bi 801aa48 <read+0x7c>                         <== NOT EXECUTED
  rtems_libio_check_count( count );                                   
 801aa30:	34 01 00 00 	mvi r1,0                                       
 801aa34:	44 60 00 0d 	be r3,r0,801aa68 <read+0x9c>                   
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
 801aa38:	20 42 00 02 	andi r2,r2,0x2                                 
 801aa3c:	5c 40 00 06 	bne r2,r0,801aa54 <read+0x88>                  
 801aa40:	fb ff c3 73 	calli 800b80c <__errno>                        
 801aa44:	34 02 00 09 	mvi r2,9                                       
 801aa48:	58 22 00 00 	sw (r1+0),r2                                   
 801aa4c:	34 01 ff ff 	mvi r1,-1                                      
 801aa50:	e0 00 00 06 	bi 801aa68 <read+0x9c>                         
                                                                      
  /*                                                                  
   *  Now process the read().                                         
   */                                                                 
  return (*iop->pathinfo.handlers->read_h)( iop, buffer, count );     
 801aa54:	28 81 00 1c 	lw r1,(r4+28)                                  
 801aa58:	b9 80 10 00 	mv r2,r12                                      
 801aa5c:	28 25 00 08 	lw r5,(r1+8)                                   
 801aa60:	b8 80 08 00 	mv r1,r4                                       
 801aa64:	d8 a0 00 00 	call r5                                        
}                                                                     
 801aa68:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801aa6c:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 801aa70:	2b 8c 00 08 	lw r12,(sp+8)                                  
 801aa74:	37 9c 00 10 	addi sp,sp,16                                  
 801aa78:	c3 a0 00 00 	ret                                            
                                                                      

08003194 <read_extended_partition>: * RTEMS_NO_MEMOTY if cannot allocate memory for part_desc_t strucure, * RTEMS_INTERNAL_ERROR if other error occurs. */ static rtems_status_code read_extended_partition(int fd, uint32_t start, rtems_part_desc_t *ext_part) {
 8003194:	37 9c ff c0 	addi sp,sp,-64                                 
 8003198:	5b 8b 00 38 	sw (sp+56),r11                                 
 800319c:	5b 8c 00 34 	sw (sp+52),r12                                 
 80031a0:	5b 8d 00 30 	sw (sp+48),r13                                 
 80031a4:	5b 8e 00 2c 	sw (sp+44),r14                                 
 80031a8:	5b 8f 00 28 	sw (sp+40),r15                                 
 80031ac:	5b 90 00 24 	sw (sp+36),r16                                 
 80031b0:	5b 91 00 20 	sw (sp+32),r17                                 
 80031b4:	5b 92 00 1c 	sw (sp+28),r18                                 
 80031b8:	5b 93 00 18 	sw (sp+24),r19                                 
 80031bc:	5b 94 00 14 	sw (sp+20),r20                                 
 80031c0:	5b 95 00 10 	sw (sp+16),r21                                 
 80031c4:	5b 96 00 0c 	sw (sp+12),r22                                 
 80031c8:	5b 97 00 08 	sw (sp+8),r23                                  
 80031cc:	5b 9d 00 04 	sw (sp+4),ra                                   
    int                  i;                                           
    rtems_sector_data_t *sector = NULL;                               
 80031d0:	5b 80 00 40 	sw (sp+64),r0                                  
 *      RTEMS_NO_MEMOTY if cannot allocate memory for part_desc_t strucure,
 *      RTEMS_INTERNAL_ERROR if other error occurs.                   
 */                                                                   
static rtems_status_code                                              
read_extended_partition(int fd, uint32_t start, rtems_part_desc_t *ext_part)
{                                                                     
 80031d4:	b8 20 b0 00 	mv r22,r1                                      
 80031d8:	b8 40 90 00 	mv r18,r2                                      
 80031dc:	b8 60 60 00 	mv r12,r3                                      
    rtems_part_desc_t   *new_part_desc;                               
    rtems_status_code    rc;                                          
                                                                      
    if ((ext_part == NULL) || (ext_part->disk_desc == NULL))          
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
 80031e0:	34 0d 00 19 	mvi r13,25                                     
    uint32_t             here;                                        
    uint8_t             *data;                                        
    rtems_part_desc_t   *new_part_desc;                               
    rtems_status_code    rc;                                          
                                                                      
    if ((ext_part == NULL) || (ext_part->disk_desc == NULL))          
 80031e4:	44 60 00 47 	be r3,r0,8003300 <read_extended_partition+0x16c><== NEVER TAKEN
 80031e8:	28 62 00 10 	lw r2,(r3+16)                                  
 80031ec:	44 40 00 45 	be r2,r0,8003300 <read_extended_partition+0x16c><== NEVER TAKEN
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    /* get start sector of current extended partition */              
    here = ext_part->start;                                           
 80031f0:	28 71 00 04 	lw r17,(r3+4)                                  
                                                                      
    /* get first extended partition sector */                         
                                                                      
    rc = get_sector(fd, here, §or);                               
 80031f4:	37 83 00 40 	addi r3,sp,64                                  
 80031f8:	ba 20 10 00 	mv r2,r17                                      
 80031fc:	fb ff ff 70 	calli 8002fbc <get_sector>                     
 8003200:	b8 20 68 00 	mv r13,r1                                      
 8003204:	2b 81 00 40 	lw r1,(sp+64)                                  
    if (rc != RTEMS_SUCCESSFUL)                                       
 8003208:	45 a0 00 03 	be r13,r0,8003214 <read_extended_partition+0x80><== ALWAYS TAKEN
    {                                                                 
        if (sector)                                                   
 800320c:	5c 20 00 3c 	bne r1,r0,80032fc <read_extended_partition+0x168><== NOT EXECUTED
 8003210:	e0 00 00 3c 	bi 8003300 <read_extended_partition+0x16c>     <== NOT EXECUTED
static bool                                                           
msdos_signature_check (rtems_sector_data_t *sector)                   
{                                                                     
    uint8_t *p = sector->data + RTEMS_IDE_PARTITION_MSDOS_SIGNATURE_OFFSET;
                                                                      
    return ((p[0] == RTEMS_IDE_PARTITION_MSDOS_SIGNATURE_DATA1) &&    
 8003214:	40 24 02 02 	lbu r4,(r1+514)                                
 8003218:	34 02 00 55 	mvi r2,85                                      
 800321c:	34 03 00 00 	mvi r3,0                                       
 8003220:	5c 82 00 03 	bne r4,r2,800322c <read_extended_partition+0x98><== NEVER TAKEN
 *      RTEMS_SUCCESSFUL if success,                                  
 *      RTEMS_NO_MEMOTY if cannot allocate memory for part_desc_t strucure,
 *      RTEMS_INTERNAL_ERROR if other error occurs.                   
 */                                                                   
static rtems_status_code                                              
read_extended_partition(int fd, uint32_t start, rtems_part_desc_t *ext_part)
 8003224:	40 23 02 03 	lbu r3,(r1+515)                                
 8003228:	64 63 00 aa 	cmpei r3,r3,170                                
 800322c:	34 30 01 d2 	addi r16,r1,466                                
    }                                                                 
                                                                      
    if (!msdos_signature_check(sector))                               
    {                                                                 
        free(sector);                                                 
        return RTEMS_INTERNAL_ERROR;                                  
 8003230:	b9 80 78 00 	mv r15,r12                                     
 *      RTEMS_SUCCESSFUL if success,                                  
 *      RTEMS_NO_MEMOTY if cannot allocate memory for part_desc_t strucure,
 *      RTEMS_INTERNAL_ERROR if other error occurs.                   
 */                                                                   
static rtems_status_code                                              
read_extended_partition(int fd, uint32_t start, rtems_part_desc_t *ext_part)
 8003234:	35 95 00 10 	addi r21,r12,16                                
    for (i = 0; i < RTEMS_IDE_PARTITION_MAX_SUB_PARTITION_NUMBER; i++)
    {                                                                 
        /* if data_to_part_desc fails skip this partition             
         * and parse the next one                                     
         */                                                           
        rc = data_to_part_desc(data, &new_part_desc);                 
 8003238:	37 94 00 3c 	addi r20,sp,60                                 
        if (sector)                                                   
            free(sector);                                             
        return rc;                                                    
    }                                                                 
                                                                      
    if (!msdos_signature_check(sector))                               
 800323c:	5c 60 00 04 	bne r3,r0,800324c <read_extended_partition+0xb8><== ALWAYS TAKEN
    {                                                                 
        free(sector);                                                 
 8003240:	f8 00 03 56 	calli 8003f98 <free>                           <== NOT EXECUTED
        return RTEMS_INTERNAL_ERROR;                                  
 8003244:	34 0d 00 19 	mvi r13,25                                     <== NOT EXECUTED
 8003248:	e0 00 00 2e 	bi 8003300 <read_extended_partition+0x16c>     <== NOT EXECUTED
    for (i = 0; i < RTEMS_IDE_PARTITION_MAX_SUB_PARTITION_NUMBER; i++)
    {                                                                 
        /* if data_to_part_desc fails skip this partition             
         * and parse the next one                                     
         */                                                           
        rc = data_to_part_desc(data, &new_part_desc);                 
 800324c:	36 01 ff f0 	addi r1,r16,-16                                
 8003250:	ba 80 10 00 	mv r2,r20                                      
 8003254:	fb ff ff 89 	calli 8003078 <data_to_part_desc>              
 8003258:	b8 20 68 00 	mv r13,r1                                      
        if (rc != RTEMS_SUCCESSFUL)                                   
 800325c:	5c 20 00 27 	bne r1,r0,80032f8 <read_extended_partition+0x164><== NEVER TAKEN
        {                                                             
            free(sector);                                             
            return rc;                                                
        }                                                             
                                                                      
        if (new_part_desc == NULL)                                    
 8003260:	2b 8b 00 3c 	lw r11,(sp+60)                                 
 8003264:	45 61 00 22 	be r11,r1,80032ec <read_extended_partition+0x158>
                                                                      
        ext_part->sub_part[i] = new_part_desc;                        
        new_part_desc->ext_part = ext_part;                           
        new_part_desc->disk_desc = ext_part->disk_desc;               
                                                                      
        if (is_extended(new_part_desc->sys_type))                     
 8003268:	41 63 00 01 	lbu r3,(r11+1)                                 
            continue;                                                 
        }                                                             
                                                                      
        ext_part->sub_part[i] = new_part_desc;                        
        new_part_desc->ext_part = ext_part;                           
        new_part_desc->disk_desc = ext_part->disk_desc;               
 800326c:	29 8e 00 10 	lw r14,(r12+16)                                
        {                                                             
            data += RTEMS_IDE_PARTITION_DESCRIPTOR_SIZE;              
            continue;                                                 
        }                                                             
                                                                      
        ext_part->sub_part[i] = new_part_desc;                        
 8003270:	59 eb 00 18 	sw (r15+24),r11                                
 *      true if partition type is extended, false otherwise           
 */                                                                   
static bool                                                           
is_extended(uint8_t type)                                             
{                                                                     
    return ((type == EXTENDED_PARTITION) || (type == LINUX_EXTENDED));
 8003274:	64 61 00 85 	cmpei r1,r3,133                                
 8003278:	64 63 00 05 	cmpei r3,r3,5                                  
            data += RTEMS_IDE_PARTITION_DESCRIPTOR_SIZE;              
            continue;                                                 
        }                                                             
                                                                      
        ext_part->sub_part[i] = new_part_desc;                        
        new_part_desc->ext_part = ext_part;                           
 800327c:	59 6c 00 14 	sw (r11+20),r12                                
        new_part_desc->disk_desc = ext_part->disk_desc;               
 8003280:	59 6e 00 10 	sw (r11+16),r14                                
 *      true if partition type is extended, false otherwise           
 */                                                                   
static bool                                                           
is_extended(uint8_t type)                                             
{                                                                     
    return ((type == EXTENDED_PARTITION) || (type == LINUX_EXTENDED));
 8003284:	b8 23 18 00 	or r3,r1,r3                                    
 8003288:	29 73 00 04 	lw r19,(r11+4)                                 
                                                                      
        ext_part->sub_part[i] = new_part_desc;                        
        new_part_desc->ext_part = ext_part;                           
        new_part_desc->disk_desc = ext_part->disk_desc;               
                                                                      
        if (is_extended(new_part_desc->sys_type))                     
 800328c:	44 60 00 09 	be r3,r0,80032b0 <read_extended_partition+0x11c>
        {                                                             
            new_part_desc->log_id = EMPTY_PARTITION;                  
            new_part_desc->start += start;                            
 8003290:	b6 72 98 00 	add r19,r19,r18                                
        new_part_desc->ext_part = ext_part;                           
        new_part_desc->disk_desc = ext_part->disk_desc;               
                                                                      
        if (is_extended(new_part_desc->sys_type))                     
        {                                                             
            new_part_desc->log_id = EMPTY_PARTITION;                  
 8003294:	31 60 00 02 	sb (r11+2),r0                                  
            new_part_desc->start += start;                            
 8003298:	59 73 00 04 	sw (r11+4),r19                                 
            read_extended_partition(fd, start, new_part_desc);        
 800329c:	ba c0 08 00 	mv r1,r22                                      
 80032a0:	ba 40 10 00 	mv r2,r18                                      
 80032a4:	b9 60 18 00 	mv r3,r11                                      
 80032a8:	fb ff ff bb 	calli 8003194 <read_extended_partition>        
 80032ac:	e0 00 00 10 	bi 80032ec <read_extended_partition+0x158>     
        }                                                             
        else                                                          
        {                                                             
            rtems_disk_desc_t *disk_desc = new_part_desc->disk_desc;  
            disk_desc->partitions[disk_desc->last_log_id] = new_part_desc;
 80032b0:	29 d7 00 24 	lw r23,(r14+36)                                
 80032b4:	34 02 00 02 	mvi r2,2                                       
 80032b8:	36 e1 00 0a 	addi r1,r23,10                                 
 80032bc:	fb ff f5 1a 	calli 8000724 <__ashlsi3>                      
 80032c0:	b5 c1 20 00 	add r4,r14,r1                                  
            new_part_desc->log_id = ++disk_desc->last_log_id;         
            new_part_desc->start += here;                             
            new_part_desc->end = new_part_desc->start + new_part_desc->size - 1;
 80032c4:	29 61 00 08 	lw r1,(r11+8)                                  
        }                                                             
        else                                                          
        {                                                             
            rtems_disk_desc_t *disk_desc = new_part_desc->disk_desc;  
            disk_desc->partitions[disk_desc->last_log_id] = new_part_desc;
            new_part_desc->log_id = ++disk_desc->last_log_id;         
 80032c8:	36 e3 00 01 	addi r3,r23,1                                  
 80032cc:	59 c3 00 24 	sw (r14+36),r3                                 
            read_extended_partition(fd, start, new_part_desc);        
        }                                                             
        else                                                          
        {                                                             
            rtems_disk_desc_t *disk_desc = new_part_desc->disk_desc;  
            disk_desc->partitions[disk_desc->last_log_id] = new_part_desc;
 80032d0:	58 8b 00 00 	sw (r4+0),r11                                  
            new_part_desc->log_id = ++disk_desc->last_log_id;         
 80032d4:	31 63 00 02 	sb (r11+2),r3                                  
            new_part_desc->start += here;                             
            new_part_desc->end = new_part_desc->start + new_part_desc->size - 1;
 80032d8:	34 21 ff ff 	addi r1,r1,-1                                  
        else                                                          
        {                                                             
            rtems_disk_desc_t *disk_desc = new_part_desc->disk_desc;  
            disk_desc->partitions[disk_desc->last_log_id] = new_part_desc;
            new_part_desc->log_id = ++disk_desc->last_log_id;         
            new_part_desc->start += here;                             
 80032dc:	b6 33 18 00 	add r3,r17,r19                                 
 80032e0:	59 63 00 04 	sw (r11+4),r3                                  
            new_part_desc->end = new_part_desc->start + new_part_desc->size - 1;
 80032e4:	b4 23 18 00 	add r3,r1,r3                                   
 80032e8:	59 63 00 0c 	sw (r11+12),r3                                 
 80032ec:	35 ef 00 04 	addi r15,r15,4                                 
 80032f0:	36 10 00 10 	addi r16,r16,16                                
                                                                      
    /* read and process up to 4 logical partition descriptors */      
                                                                      
    data = sector->data + RTEMS_IDE_PARTITION_TABLE_OFFSET;           
                                                                      
    for (i = 0; i < RTEMS_IDE_PARTITION_MAX_SUB_PARTITION_NUMBER; i++)
 80032f4:	5d f5 ff d6 	bne r15,r21,800324c <read_extended_partition+0xb8>
            new_part_desc->end = new_part_desc->start + new_part_desc->size - 1;
        }                                                             
        data += RTEMS_IDE_PARTITION_DESCRIPTOR_SIZE;                  
    }                                                                 
                                                                      
    free(sector);                                                     
 80032f8:	2b 81 00 40 	lw r1,(sp+64)                                  
 80032fc:	f8 00 03 27 	calli 8003f98 <free>                           
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
 8003300:	b9 a0 08 00 	mv r1,r13                                      
 8003304:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003308:	2b 8b 00 38 	lw r11,(sp+56)                                 
 800330c:	2b 8c 00 34 	lw r12,(sp+52)                                 
 8003310:	2b 8d 00 30 	lw r13,(sp+48)                                 
 8003314:	2b 8e 00 2c 	lw r14,(sp+44)                                 
 8003318:	2b 8f 00 28 	lw r15,(sp+40)                                 
 800331c:	2b 90 00 24 	lw r16,(sp+36)                                 
 8003320:	2b 91 00 20 	lw r17,(sp+32)                                 
 8003324:	2b 92 00 1c 	lw r18,(sp+28)                                 
 8003328:	2b 93 00 18 	lw r19,(sp+24)                                 
 800332c:	2b 94 00 14 	lw r20,(sp+20)                                 
 8003330:	2b 95 00 10 	lw r21,(sp+16)                                 
 8003334:	2b 96 00 0c 	lw r22,(sp+12)                                 
 8003338:	2b 97 00 08 	lw r23,(sp+8)                                  
 800333c:	37 9c 00 40 	addi sp,sp,64                                  
 8003340:	c3 a0 00 00 	ret                                            
                                                                      

08003080 <readv>: ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) {
 8003080:	37 9c ff e8 	addi sp,sp,-24                                 
 8003084:	5b 8b 00 18 	sw (sp+24),r11                                 
 8003088:	5b 8c 00 14 	sw (sp+20),r12                                 
 800308c:	5b 8d 00 10 	sw (sp+16),r13                                 
 8003090:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8003094:	5b 8f 00 08 	sw (sp+8),r15                                  
 8003098:	5b 9d 00 04 	sw (sp+4),ra                                   
 800309c:	b8 60 70 00 	mv r14,r3                                      
  int            v;                                                   
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
 80030a0:	78 03 08 01 	mvhi r3,0x801                                  
 80030a4:	38 63 50 10 	ori r3,r3,0x5010                               
ssize_t readv(                                                        
  int                 fd,                                             
  const struct iovec *iov,                                            
  int                 iovcnt                                          
)                                                                     
{                                                                     
 80030a8:	b8 40 60 00 	mv r12,r2                                      
  int            v;                                                   
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
 80030ac:	28 62 00 00 	lw r2,(r3+0)                                   
 80030b0:	54 41 00 02 	bgu r2,r1,80030b8 <readv+0x38>                 
 80030b4:	e0 00 00 0c 	bi 80030e4 <readv+0x64>                        
  iop = rtems_libio_iop( fd );                                        
 80030b8:	78 0b 08 01 	mvhi r11,0x801                                 
 80030bc:	34 02 00 2c 	mvi r2,44                                      
 80030c0:	39 6b 57 7c 	ori r11,r11,0x577c                             
 80030c4:	f8 00 3c 6b 	calli 8012270 <__mulsi3>                       
 80030c8:	29 6d 00 00 	lw r13,(r11+0)                                 
 80030cc:	b5 a1 68 00 	add r13,r13,r1                                 
  rtems_libio_check_is_open( iop );                                   
 80030d0:	29 a1 00 08 	lw r1,(r13+8)                                  
 80030d4:	20 22 01 00 	andi r2,r1,0x100                               
 80030d8:	44 40 00 03 	be r2,r0,80030e4 <readv+0x64>                  
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
 80030dc:	20 21 00 02 	andi r1,r1,0x2                                 
 80030e0:	5c 20 00 04 	bne r1,r0,80030f0 <readv+0x70>                 <== ALWAYS TAKEN
 80030e4:	f8 00 23 cc 	calli 800c014 <__errno>                        
 80030e8:	34 02 00 09 	mvi r2,9                                       
 80030ec:	e0 00 00 14 	bi 800313c <readv+0xbc>                        
                                                                      
  /*                                                                  
   *  Argument validation on IO vector                                
   */                                                                 
  if ( !iov )                                                         
 80030f0:	45 80 00 11 	be r12,r0,8003134 <readv+0xb4>                 
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt <= 0 )                                                  
 80030f4:	49 c0 00 02 	bg r14,r0,80030fc <readv+0x7c>                 
 80030f8:	e0 00 00 0f 	bi 8003134 <readv+0xb4>                        
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt > IOV_MAX )                                             
 80030fc:	34 01 04 00 	mvi r1,1024                                    
 8003100:	4c 2e 00 02 	bge r1,r14,8003108 <readv+0x88>                <== ALWAYS TAKEN
 8003104:	e0 00 00 0c 	bi 8003134 <readv+0xb4>                        <== NOT EXECUTED
 8003108:	b9 80 10 00 	mv r2,r12                                      
 800310c:	34 01 00 01 	mvi r1,1                                       
 8003110:	34 04 00 00 	mvi r4,0                                       
 8003114:	34 03 00 00 	mvi r3,0                                       
 8003118:	e0 00 00 02 	bi 8003120 <readv+0xa0>                        
    if ( iov[v].iov_base == 0 )                                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
 800311c:	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 )                                       
 8003120:	28 45 00 00 	lw r5,(r2+0)                                   
 8003124:	44 a0 00 04 	be r5,r0,8003134 <readv+0xb4>                  
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
 8003128:	28 45 00 04 	lw r5,(r2+4)                                   
 800312c:	b4 65 30 00 	add r6,r3,r5                                   
    if ( total < old )                                                
 8003130:	4c c3 00 05 	bge r6,r3,8003144 <readv+0xc4>                 
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 8003134:	f8 00 23 b8 	calli 800c014 <__errno>                        
 8003138:	34 02 00 16 	mvi r2,22                                      
 800313c:	58 22 00 00 	sw (r1+0),r2                                   
 8003140:	e0 00 00 19 	bi 80031a4 <readv+0x124>                       
                                                                      
    if ( iov[v].iov_len )                                             
      all_zeros = false;                                              
 8003144:	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++ ) {                           
 8003148:	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;                                              
 800314c:	c8 05 28 00 	sub r5,r0,r5                                   
 8003150:	a0 25 08 00 	and r1,r1,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++ ) {                           
 8003154:	34 42 00 08 	addi r2,r2,8                                   
 8003158:	49 c4 ff f1 	bg r14,r4,800311c <readv+0x9c>                 
   *  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;                                                         
 800315c:	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 ) {                                          
 8003160:	5c 20 00 12 	bne r1,r0,80031a8 <readv+0x128>                
 8003164:	34 0f 00 00 	mvi r15,0                                      
                                                                      
  /*                                                                  
   *  Now process the readv().                                        
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
    bytes = (*iop->pathinfo.handlers->read_h)(                        
 8003168:	29 a1 00 1c 	lw r1,(r13+28)                                 
 800316c:	29 82 00 00 	lw r2,(r12+0)                                  
 8003170:	29 83 00 04 	lw r3,(r12+4)                                  
 8003174:	28 24 00 08 	lw r4,(r1+8)                                   
 8003178:	b9 a0 08 00 	mv r1,r13                                      
 800317c:	d8 80 00 00 	call r4                                        
      iop,                                                            
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
 8003180:	48 01 00 09 	bg r0,r1,80031a4 <readv+0x124>                 <== NEVER TAKEN
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
 8003184:	44 20 00 02 	be r1,r0,800318c <readv+0x10c>                 <== NEVER TAKEN
      total       += bytes;                                           
 8003188:	b5 61 58 00 	add r11,r11,r1                                 
    }                                                                 
                                                                      
    if (bytes != iov[ v ].iov_len)                                    
 800318c:	29 82 00 04 	lw r2,(r12+4)                                  
 8003190:	5c 22 00 06 	bne r1,r2,80031a8 <readv+0x128>                <== NEVER TAKEN
  }                                                                   
                                                                      
  /*                                                                  
   *  Now process the readv().                                        
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
 8003194:	35 ef 00 01 	addi r15,r15,1                                 
 8003198:	35 8c 00 08 	addi r12,r12,8                                 
 800319c:	49 cf ff f3 	bg r14,r15,8003168 <readv+0xe8>                
 80031a0:	e0 00 00 02 	bi 80031a8 <readv+0x128>                       
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
      return -1;                                                      
 80031a4:	34 0b ff ff 	mvi r11,-1                                     
    if (bytes != iov[ v ].iov_len)                                    
      break;                                                          
  }                                                                   
                                                                      
  return total;                                                       
}                                                                     
 80031a8:	b9 60 08 00 	mv r1,r11                                      
 80031ac:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80031b0:	2b 8b 00 18 	lw r11,(sp+24)                                 
 80031b4:	2b 8c 00 14 	lw r12,(sp+20)                                 
 80031b8:	2b 8d 00 10 	lw r13,(sp+16)                                 
 80031bc:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 80031c0:	2b 8f 00 08 	lw r15,(sp+8)                                  
 80031c4:	37 9c 00 18 	addi sp,sp,24                                  
 80031c8:	c3 a0 00 00 	ret                                            
                                                                      

0801aae4 <realloc>: void *realloc( void *ptr, size_t size ) {
 801aae4:	37 9c ff e8 	addi sp,sp,-24                                 
 801aae8:	5b 8b 00 14 	sw (sp+20),r11                                 
 801aaec:	5b 8c 00 10 	sw (sp+16),r12                                 
 801aaf0:	5b 8d 00 0c 	sw (sp+12),r13                                 
 801aaf4:	5b 8e 00 08 	sw (sp+8),r14                                  
 801aaf8:	5b 9d 00 04 	sw (sp+4),ra                                   
 801aafc:	b8 20 58 00 	mv r11,r1                                      
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
 801ab00:	78 01 08 01 	mvhi r1,0x801                                  
 801ab04:	38 21 d7 b0 	ori r1,r1,0xd7b0                               
                                                                      
void *realloc(                                                        
  void *ptr,                                                          
  size_t size                                                         
)                                                                     
{                                                                     
 801ab08:	b8 40 60 00 	mv r12,r2                                      
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
 801ab0c:	28 22 00 10 	lw r2,(r1+16)                                  
 801ab10:	34 42 00 01 	addi r2,r2,1                                   
 801ab14:	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())) {                     
 801ab18:	78 01 08 01 	mvhi r1,0x801                                  
 801ab1c:	38 21 da 54 	ori r1,r1,0xda54                               
 801ab20:	28 22 00 00 	lw r2,(r1+0)                                   
 801ab24:	34 01 00 03 	mvi r1,3                                       
 801ab28:	5c 41 00 09 	bne r2,r1,801ab4c <realloc+0x68>               
   * This routine returns true if thread dispatch indicates           
   * that we are in a critical section.                               
   */                                                                 
  RTEMS_INLINE_ROUTINE bool _Thread_Dispatch_in_critical_section(void)
  {                                                                   
     if (  _Thread_Dispatch_disable_level == 0 )                      
 801ab2c:	78 01 08 01 	mvhi r1,0x801                                  
 801ab30:	38 21 d8 e0 	ori r1,r1,0xd8e0                               
 801ab34:	28 22 00 00 	lw r2,(r1+0)                                   
 801ab38:	5c 40 00 33 	bne r2,r0,801ac04 <realloc+0x120>              <== NEVER TAKEN
    if (_Thread_Dispatch_in_critical_section())                       
      return (void *) 0;                                              
                                                                      
    if (_ISR_Nest_level > 0)                                          
 801ab3c:	78 01 08 01 	mvhi r1,0x801                                  
 801ab40:	38 21 da 60 	ori r1,r1,0xda60                               
 801ab44:	28 21 00 08 	lw r1,(r1+8)                                   
 801ab48:	5c 22 00 2f 	bne r1,r2,801ac04 <realloc+0x120>              <== NEVER TAKEN
  }                                                                   
                                                                      
  /*                                                                  
   * Continue with realloc().                                         
   */                                                                 
  if ( !ptr )                                                         
 801ab4c:	5d 60 00 05 	bne r11,r0,801ab60 <realloc+0x7c>              
    return malloc( size );                                            
 801ab50:	b9 80 08 00 	mv r1,r12                                      
 801ab54:	fb ff 9b 7c 	calli 8001944 <malloc>                         
 801ab58:	b8 20 58 00 	mv r11,r1                                      
 801ab5c:	e0 00 00 2b 	bi 801ac08 <realloc+0x124>                     
                                                                      
  if ( !size ) {                                                      
 801ab60:	5d 80 00 04 	bne r12,r0,801ab70 <realloc+0x8c>              <== ALWAYS TAKEN
    free( ptr );                                                      
 801ab64:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801ab68:	fb ff 9a 7b 	calli 8001554 <free>                           <== NOT EXECUTED
 801ab6c:	e0 00 00 26 	bi 801ac04 <realloc+0x120>                     <== NOT EXECUTED
    return (void *) 0;                                                
  }                                                                   
                                                                      
  if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
 801ab70:	78 0d 08 01 	mvhi r13,0x801                                 
 801ab74:	39 ad d0 54 	ori r13,r13,0xd054                             
 801ab78:	29 a1 00 00 	lw r1,(r13+0)                                  
 801ab7c:	b9 60 10 00 	mv r2,r11                                      
 801ab80:	37 83 00 18 	addi r3,sp,24                                  
 801ab84:	f8 00 00 55 	calli 801acd8 <_Protected_heap_Get_block_size> 
 801ab88:	5c 20 00 05 	bne r1,r0,801ab9c <realloc+0xb8>               
    errno = EINVAL;                                                   
 801ab8c:	fb ff c3 20 	calli 800b80c <__errno>                        
 801ab90:	34 02 00 16 	mvi r2,22                                      
 801ab94:	58 22 00 00 	sw (r1+0),r2                                   
 801ab98:	e0 00 00 1b 	bi 801ac04 <realloc+0x120>                     
  }                                                                   
                                                                      
  /*                                                                  
   *  Now resize it.                                                  
   */                                                                 
  if ( _Protected_heap_Resize_block( RTEMS_Malloc_Heap, ptr, size ) ) {
 801ab9c:	29 a1 00 00 	lw r1,(r13+0)                                  
 801aba0:	b9 60 10 00 	mv r2,r11                                      
 801aba4:	b9 80 18 00 	mv r3,r12                                      
 801aba8:	f8 00 00 64 	calli 801ad38 <_Protected_heap_Resize_block>   
 801abac:	b8 20 70 00 	mv r14,r1                                      
 801abb0:	5c 20 00 16 	bne r1,r0,801ac08 <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 );                                          
 801abb4:	b9 80 08 00 	mv r1,r12                                      
 801abb8:	fb ff 9b 63 	calli 8001944 <malloc>                         
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
 801abbc:	78 02 08 01 	mvhi r2,0x801                                  
 801abc0:	38 42 d7 b0 	ori r2,r2,0xd7b0                               
   *  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 );                                          
 801abc4:	b8 20 68 00 	mv r13,r1                                      
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
 801abc8:	28 41 00 04 	lw r1,(r2+4)                                   
 801abcc:	34 21 ff ff 	addi r1,r1,-1                                  
 801abd0:	58 41 00 04 	sw (r2+4),r1                                   
                                                                      
  if ( !new_area ) {                                                  
 801abd4:	45 ae 00 0c 	be r13,r14,801ac04 <realloc+0x120>             
    return (void *) 0;                                                
  }                                                                   
                                                                      
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
 801abd8:	2b 81 00 18 	lw r1,(sp+24)                                  
 801abdc:	b9 80 18 00 	mv r3,r12                                      
 801abe0:	50 2c 00 02 	bgeu r1,r12,801abe8 <realloc+0x104>            <== NEVER TAKEN
 801abe4:	b8 20 18 00 	mv r3,r1                                       
 801abe8:	b9 60 10 00 	mv r2,r11                                      
 801abec:	b9 a0 08 00 	mv r1,r13                                      
 801abf0:	fb ff c6 01 	calli 800c3f4 <memcpy>                         
  free( ptr );                                                        
 801abf4:	b9 60 08 00 	mv r1,r11                                      
 801abf8:	fb ff 9a 57 	calli 8001554 <free>                           
                                                                      
  return new_area;                                                    
 801abfc:	b9 a0 58 00 	mv r11,r13                                     
 801ac00:	e0 00 00 02 	bi 801ac08 <realloc+0x124>                     
  new_area = malloc( size );                                          
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
                                                                      
  if ( !new_area ) {                                                  
    return (void *) 0;                                                
 801ac04:	34 0b 00 00 	mvi r11,0                                      
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
  free( ptr );                                                        
                                                                      
  return new_area;                                                    
                                                                      
}                                                                     
 801ac08:	b9 60 08 00 	mv r1,r11                                      
 801ac0c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801ac10:	2b 8b 00 14 	lw r11,(sp+20)                                 
 801ac14:	2b 8c 00 10 	lw r12,(sp+16)                                 
 801ac18:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 801ac1c:	2b 8e 00 08 	lw r14,(sp+8)                                  
 801ac20:	37 9c 00 18 	addi sp,sp,24                                  
 801ac24:	c3 a0 00 00 	ret                                            
                                                                      

08009564 <rtems_bdbuf_add_to_modified_list_after_access>: } } static void rtems_bdbuf_add_to_modified_list_after_access (rtems_bdbuf_buffer *bd) {
 8009564:	37 9c ff f8 	addi sp,sp,-8                                  
 8009568:	5b 8b 00 08 	sw (sp+8),r11                                  
 800956c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8009570:	b8 20 58 00 	mv r11,r1                                      
  if (bdbuf_cache.sync_active && bdbuf_cache.sync_device == bd->dd)   
 8009574:	78 01 08 01 	mvhi r1,0x801                                  
 8009578:	38 21 96 f8 	ori r1,r1,0x96f8                               
 800957c:	40 22 00 30 	lbu r2,(r1+48)                                 
 8009580:	44 40 00 08 	be r2,r0,80095a0 <rtems_bdbuf_add_to_modified_list_after_access+0x3c><== ALWAYS TAKEN
 8009584:	28 21 00 38 	lw r1,(r1+56)                                  <== NOT EXECUTED
 8009588:	29 62 00 14 	lw r2,(r11+20)                                 <== NOT EXECUTED
 800958c:	5c 22 00 05 	bne r1,r2,80095a0 <rtems_bdbuf_add_to_modified_list_after_access+0x3c><== NOT EXECUTED
  {                                                                   
    rtems_bdbuf_unlock_cache ();                                      
 8009590:	fb ff ff c8 	calli 80094b0 <rtems_bdbuf_unlock_cache>       <== NOT EXECUTED
                                                                      
    /*                                                                
     * Wait for the sync lock.                                        
     */                                                               
    rtems_bdbuf_lock_sync ();                                         
 8009594:	fb ff ff a5 	calli 8009428 <rtems_bdbuf_lock_sync>          <== NOT EXECUTED
                                                                      
    rtems_bdbuf_unlock_sync ();                                       
 8009598:	fb ff ff d0 	calli 80094d8 <rtems_bdbuf_unlock_sync>        <== NOT EXECUTED
    rtems_bdbuf_lock_cache ();                                        
 800959c:	fb ff ff 99 	calli 8009400 <rtems_bdbuf_lock_cache>         <== NOT EXECUTED
   * difficult question. Is a snapshot of a block that is changing better than
   * nothing being written? We have tended to think we should hold changes for
   * only a specific period of time even if still changing and get onto disk
   * and letting the file system try and recover this position if it can.
   */                                                                 
  if (bd->state == RTEMS_BDBUF_STATE_ACCESS_CACHED                    
 80095a0:	29 61 00 20 	lw r1,(r11+32)                                 
        || bd->state == RTEMS_BDBUF_STATE_ACCESS_EMPTY)               
 80095a4:	64 22 00 05 	cmpei r2,r1,5                                  
 80095a8:	64 21 00 03 	cmpei r1,r1,3                                  
   * difficult question. Is a snapshot of a block that is changing better than
   * nothing being written? We have tended to think we should hold changes for
   * only a specific period of time even if still changing and get onto disk
   * and letting the file system try and recover this position if it can.
   */                                                                 
  if (bd->state == RTEMS_BDBUF_STATE_ACCESS_CACHED                    
 80095ac:	b8 41 08 00 	or r1,r2,r1                                    
 80095b0:	44 20 00 05 	be r1,r0,80095c4 <rtems_bdbuf_add_to_modified_list_after_access+0x60>
        || bd->state == RTEMS_BDBUF_STATE_ACCESS_EMPTY)               
    bd->hold_timer = bdbuf_config.swap_block_hold;                    
 80095b4:	78 01 08 01 	mvhi r1,0x801                                  
 80095b8:	38 21 75 6c 	ori r1,r1,0x756c                               
 80095bc:	28 21 00 10 	lw r1,(r1+16)                                  
 80095c0:	59 61 00 2c 	sw (r11+44),r1                                 
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 80095c4:	34 01 00 07 	mvi r1,7                                       
 80095c8:	59 61 00 20 	sw (r11+32),r1                                 
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
 80095cc:	78 01 08 01 	mvhi r1,0x801                                  
 80095d0:	38 21 96 f8 	ori r1,r1,0x96f8                               
                                                                      
  the_node->next = tail;                                              
 80095d4:	78 02 08 01 	mvhi r2,0x801                                  
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
 80095d8:	28 23 00 54 	lw r3,(r1+84)                                  
                                                                      
  the_node->next = tail;                                              
 80095dc:	38 42 97 48 	ori r2,r2,0x9748                               
 80095e0:	59 62 00 00 	sw (r11+0),r2                                  
    bd->hold_timer = bdbuf_config.swap_block_hold;                    
                                                                      
  rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_MODIFIED);             
  rtems_chain_append_unprotected (&bdbuf_cache.modified, &bd->link);  
                                                                      
  if (bd->waiters)                                                    
 80095e4:	29 62 00 24 	lw r2,(r11+36)                                 
  tail->previous = the_node;                                          
 80095e8:	58 2b 00 54 	sw (r1+84),r11                                 
  old_last->next = the_node;                                          
 80095ec:	58 6b 00 00 	sw (r3+0),r11                                  
  the_node->previous = old_last;                                      
 80095f0:	59 63 00 04 	sw (r11+4),r3                                  
 80095f4:	44 40 00 05 	be r2,r0,8009608 <rtems_bdbuf_add_to_modified_list_after_access+0xa4>
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
 80095f8:	78 01 08 01 	mvhi r1,0x801                                  
 80095fc:	38 21 97 5c 	ori r1,r1,0x975c                               
 8009600:	fb ff ff c0 	calli 8009500 <rtems_bdbuf_wake>               
 8009604:	e0 00 00 04 	bi 8009614 <rtems_bdbuf_add_to_modified_list_after_access+0xb0>
  else if (rtems_bdbuf_has_buffer_waiters ())                         
 8009608:	28 21 00 74 	lw r1,(r1+116)                                 
 800960c:	44 22 00 02 	be r1,r2,8009614 <rtems_bdbuf_add_to_modified_list_after_access+0xb0>
    rtems_bdbuf_wake_swapper ();                                      
 8009610:	fb ff ff c8 	calli 8009530 <rtems_bdbuf_wake_swapper>       
}                                                                     
 8009614:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009618:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800961c:	37 9c 00 08 	addi sp,sp,8                                   
 8009620:	c3 a0 00 00 	ret                                            
                                                                      

080096c0 <rtems_bdbuf_anonymous_wait>: * The function assumes the cache is locked on entry and it will be locked on * exit. */ static void rtems_bdbuf_anonymous_wait (rtems_bdbuf_waiters *waiters) {
 80096c0:	37 9c ff f4 	addi sp,sp,-12                                 
 80096c4:	5b 8b 00 0c 	sw (sp+12),r11                                 
 80096c8:	5b 8c 00 08 	sw (sp+8),r12                                  
 80096cc:	5b 9d 00 04 	sw (sp+4),ra                                   
 80096d0:	b8 20 58 00 	mv r11,r1                                      
  rtems_mode        prev_mode;                                        
                                                                      
  /*                                                                  
   * Indicate we are waiting.                                         
   */                                                                 
  ++waiters->count;                                                   
 80096d4:	28 21 00 00 	lw r1,(r1+0)                                   
 80096d8:	34 21 00 01 	addi r1,r1,1                                   
 80096dc:	59 61 00 00 	sw (r11+0),r1                                  
   * blocking or just hits that window, and before this task has blocked on the
   * semaphore. If the preempting task flushes the queue this task will not see
   * the flush and may block for ever or until another transaction flushes this
   * semaphore.                                                       
   */                                                                 
  prev_mode = rtems_bdbuf_disable_preemption ();                      
 80096e0:	fb ff ff de 	calli 8009658 <rtems_bdbuf_disable_preemption> 
 80096e4:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  /*                                                                  
   * Unlock the cache, wait, and lock the cache when we return.       
   */                                                                 
  rtems_bdbuf_unlock_cache ();                                        
 80096e8:	fb ff ff 72 	calli 80094b0 <rtems_bdbuf_unlock_cache>       
                                                                      
  sc = rtems_semaphore_obtain (waiters->sema, RTEMS_WAIT, RTEMS_BDBUF_WAIT_TIMEOUT);
 80096ec:	29 61 00 04 	lw r1,(r11+4)                                  
 80096f0:	34 02 00 00 	mvi r2,0                                       
 80096f4:	34 03 00 00 	mvi r3,0                                       
 80096f8:	fb ff ee 0d 	calli 8004f2c <rtems_semaphore_obtain>         
 80096fc:	b8 20 10 00 	mv r2,r1                                       
                                                                      
  if (sc == RTEMS_TIMEOUT)                                            
 8009700:	34 01 00 06 	mvi r1,6                                       
 8009704:	5c 41 00 04 	bne r2,r1,8009714 <rtems_bdbuf_anonymous_wait+0x54><== ALWAYS TAKEN
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_CACHE_WAIT_TO);              
 8009708:	34 01 00 03 	mvi r1,3                                       <== NOT EXECUTED
 800970c:	fb ff ff 2a 	calli 80093b4 <rtems_bdbuf_fatal>              <== NOT EXECUTED
 8009710:	e0 00 00 03 	bi 800971c <rtems_bdbuf_anonymous_wait+0x5c>   <== NOT EXECUTED
                                                                      
  if (sc != RTEMS_UNSATISFIED)                                        
 8009714:	34 01 00 0d 	mvi r1,13                                      
 8009718:	44 41 00 03 	be r2,r1,8009724 <rtems_bdbuf_anonymous_wait+0x64><== ALWAYS TAKEN
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_CACHE_WAIT_2);               
 800971c:	34 01 00 02 	mvi r1,2                                       <== NOT EXECUTED
 8009720:	fb ff ff 25 	calli 80093b4 <rtems_bdbuf_fatal>              <== NOT EXECUTED
                                                                      
  rtems_bdbuf_lock_cache ();                                          
 8009724:	fb ff ff 37 	calli 8009400 <rtems_bdbuf_lock_cache>         
                                                                      
  rtems_bdbuf_restore_preemption (prev_mode);                         
 8009728:	b9 80 08 00 	mv r1,r12                                      
 800972c:	fb ff ff d9 	calli 8009690 <rtems_bdbuf_restore_preemption> 
                                                                      
  --waiters->count;                                                   
 8009730:	29 61 00 00 	lw r1,(r11+0)                                  
 8009734:	34 21 ff ff 	addi r1,r1,-1                                  
 8009738:	59 61 00 00 	sw (r11+0),r1                                  
}                                                                     
 800973c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009740:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8009744:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8009748:	37 9c 00 0c 	addi sp,sp,12                                  
 800974c:	c3 a0 00 00 	ret                                            
                                                                      

080098d8 <rtems_bdbuf_create_task.clone.11>: return NULL; } static rtems_status_code rtems_bdbuf_create_task(
 80098d8:	37 9c ff f0 	addi sp,sp,-16                                 
 80098dc:	5b 8b 00 10 	sw (sp+16),r11                                 
 80098e0:	5b 8c 00 0c 	sw (sp+12),r12                                 
 80098e4:	5b 8d 00 08 	sw (sp+8),r13                                  
 80098e8:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_task_argument arg,                                            
  rtems_id *id                                                        
)                                                                     
{                                                                     
  rtems_status_code sc;                                               
  size_t stack_size = bdbuf_config.task_stack_size ?                  
 80098ec:	78 07 08 01 	mvhi r7,0x801                                  
 80098f0:	38 e7 75 6c 	ori r7,r7,0x756c                               
 80098f4:	28 e7 00 1c 	lw r7,(r7+28)                                  
                                                                      
  return NULL;                                                        
}                                                                     
                                                                      
static rtems_status_code                                              
rtems_bdbuf_create_task(                                              
 80098f8:	b8 60 68 00 	mv r13,r3                                      
 80098fc:	b8 80 60 00 	mv r12,r4                                      
 8009900:	b8 a0 58 00 	mv r11,r5                                      
  rtems_id *id                                                        
)                                                                     
{                                                                     
  rtems_status_code sc;                                               
  size_t stack_size = bdbuf_config.task_stack_size ?                  
    bdbuf_config.task_stack_size : RTEMS_BDBUF_TASK_STACK_SIZE_DEFAULT;
 8009904:	5c e0 00 02 	bne r7,r0,800990c <rtems_bdbuf_create_task.clone.11+0x34><== ALWAYS TAKEN
 8009908:	34 07 10 00 	mvi r7,4096                                    <== NOT EXECUTED
                                                                      
  priority = priority != 0 ? priority : default_priority;             
 800990c:	5c 40 00 02 	bne r2,r0,8009914 <rtems_bdbuf_create_task.clone.11+0x3c><== ALWAYS TAKEN
 8009910:	34 02 00 0f 	mvi r2,15                                      <== NOT EXECUTED
                                                                      
  sc = rtems_task_create (name,                                       
 8009914:	b8 e0 18 00 	mv r3,r7                                       
 8009918:	34 04 04 00 	mvi r4,1024                                    
 800991c:	34 05 00 00 	mvi r5,0                                       
 8009920:	b9 60 30 00 	mv r6,r11                                      
 8009924:	f8 00 11 46 	calli 800de3c <rtems_task_create>              
                          stack_size,                                 
                          RTEMS_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_NO_ASR,
                          RTEMS_LOCAL | RTEMS_NO_FLOATING_POINT,      
                          id);                                        
                                                                      
  if (sc == RTEMS_SUCCESSFUL)                                         
 8009928:	5c 20 00 05 	bne r1,r0,800993c <rtems_bdbuf_create_task.clone.11+0x64><== NEVER TAKEN
    sc = rtems_task_start (*id, entry, arg);                          
 800992c:	29 61 00 00 	lw r1,(r11+0)                                  
 8009930:	b9 a0 10 00 	mv r2,r13                                      
 8009934:	b9 80 18 00 	mv r3,r12                                      
 8009938:	fb ff ee 4f 	calli 8005274 <rtems_task_start>               
                                                                      
  return sc;                                                          
}                                                                     
 800993c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009940:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8009944:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8009948:	2b 8d 00 08 	lw r13,(sp+8)                                  
 800994c:	37 9c 00 10 	addi sp,sp,16                                  
 8009950:	c3 a0 00 00 	ret                                            
                                                                      

08009658 <rtems_bdbuf_disable_preemption>: --bd->group->users; } static rtems_mode rtems_bdbuf_disable_preemption (void) {
 8009658:	37 9c ff f8 	addi sp,sp,-8                                  
 800965c:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_mode prev_mode = 0;                                           
                                                                      
  sc = rtems_task_mode (RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &prev_mode);
 8009660:	34 01 01 00 	mvi r1,256                                     
 8009664:	34 02 01 00 	mvi r2,256                                     
 8009668:	37 83 00 08 	addi r3,sp,8                                   
                                                                      
static rtems_mode                                                     
rtems_bdbuf_disable_preemption (void)                                 
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_mode prev_mode = 0;                                           
 800966c:	5b 80 00 08 	sw (sp+8),r0                                   
                                                                      
  sc = rtems_task_mode (RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &prev_mode);
 8009670:	f8 00 12 6e 	calli 800e028 <rtems_task_mode>                
  if (sc != RTEMS_SUCCESSFUL)                                         
 8009674:	44 20 00 03 	be r1,r0,8009680 <rtems_bdbuf_disable_preemption+0x28><== ALWAYS TAKEN
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_PREEMPT_DIS);                
 8009678:	34 01 00 05 	mvi r1,5                                       <== NOT EXECUTED
 800967c:	fb ff ff 4e 	calli 80093b4 <rtems_bdbuf_fatal>              <== NOT EXECUTED
                                                                      
  return prev_mode;                                                   
}                                                                     
 8009680:	2b 81 00 08 	lw r1,(sp+8)                                   
 8009684:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009688:	37 9c 00 08 	addi sp,sp,8                                   
 800968c:	c3 a0 00 00 	ret                                            
                                                                      

0800aab4 <rtems_bdbuf_execute_read_request>: static rtems_status_code rtems_bdbuf_execute_read_request (rtems_disk_device *dd, rtems_bdbuf_buffer *bd, uint32_t transfer_count) {
 800aab4:	37 9c ff d0 	addi sp,sp,-48                                 
 800aab8:	5b 9b 00 08 	sw (sp+8),fp                                   
 800aabc:	34 1b 00 30 	mvi fp,48                                      
 800aac0:	b7 7c d8 00 	add fp,fp,sp                                   
 800aac4:	5b 8b 00 30 	sw (sp+48),r11                                 
 800aac8:	5b 8c 00 2c 	sw (sp+44),r12                                 
 800aacc:	5b 8d 00 28 	sw (sp+40),r13                                 
 800aad0:	5b 8e 00 24 	sw (sp+36),r14                                 
 800aad4:	5b 8f 00 20 	sw (sp+32),r15                                 
 800aad8:	5b 90 00 1c 	sw (sp+28),r16                                 
 800aadc:	5b 91 00 18 	sw (sp+24),r17                                 
 800aae0:	5b 92 00 14 	sw (sp+20),r18                                 
 800aae4:	5b 93 00 10 	sw (sp+16),r19                                 
 800aae8:	5b 94 00 0c 	sw (sp+12),r20                                 
 800aaec:	5b 9d 00 04 	sw (sp+4),ra                                   
 800aaf0:	b8 40 60 00 	mv r12,r2                                      
  rtems_blkdev_request *req = NULL;                                   
  rtems_blkdev_bnum media_block = bd->block;                          
 800aaf4:	28 4d 00 18 	lw r13,(r2+24)                                 
  uint32_t media_blocks_per_block = dd->media_blocks_per_block;       
  uint32_t block_size = dd->block_size;                               
 800aaf8:	28 30 00 24 	lw r16,(r1+36)                                 
                                  rtems_bdbuf_buffer *bd,             
                                  uint32_t            transfer_count) 
{                                                                     
  rtems_blkdev_request *req = NULL;                                   
  rtems_blkdev_bnum media_block = bd->block;                          
  uint32_t media_blocks_per_block = dd->media_blocks_per_block;       
 800aafc:	28 34 00 2c 	lw r20,(r1+44)                                 
  /*                                                                  
   * TODO: This type of request structure is wrong and should be removed.
   */                                                                 
#define bdbuf_alloc(size) __builtin_alloca (size)                     
                                                                      
  req = bdbuf_alloc (sizeof (rtems_blkdev_request) +                  
 800ab00:	34 02 00 04 	mvi r2,4                                       
                                                                      
static rtems_status_code                                              
rtems_bdbuf_execute_read_request (rtems_disk_device  *dd,             
                                  rtems_bdbuf_buffer *bd,             
                                  uint32_t            transfer_count) 
{                                                                     
 800ab04:	b8 20 70 00 	mv r14,r1                                      
  /*                                                                  
   * TODO: This type of request structure is wrong and should be removed.
   */                                                                 
#define bdbuf_alloc(size) __builtin_alloca (size)                     
                                                                      
  req = bdbuf_alloc (sizeof (rtems_blkdev_request) +                  
 800ab08:	b8 60 08 00 	mv r1,r3                                       
                                                                      
static rtems_status_code                                              
rtems_bdbuf_execute_read_request (rtems_disk_device  *dd,             
                                  rtems_bdbuf_buffer *bd,             
                                  uint32_t            transfer_count) 
{                                                                     
 800ab0c:	b8 60 88 00 	mv r17,r3                                      
  /*                                                                  
   * TODO: This type of request structure is wrong and should be removed.
   */                                                                 
#define bdbuf_alloc(size) __builtin_alloca (size)                     
                                                                      
  req = bdbuf_alloc (sizeof (rtems_blkdev_request) +                  
 800ab10:	f8 00 2e fa 	calli 80166f8 <__ashlsi3>                      
 800ab14:	34 02 00 02 	mvi r2,2                                       
 800ab18:	34 21 00 22 	addi r1,r1,34                                  
 800ab1c:	f8 00 2f 45 	calli 8016830 <__lshrsi3>                      
 800ab20:	34 02 00 02 	mvi r2,2                                       
 800ab24:	f8 00 2e f5 	calli 80166f8 <__ashlsi3>                      
  }                                                                   
                                                                      
  req->bufnum = transfer_index;                                       
                                                                      
  return rtems_bdbuf_execute_transfer_request (dd, req, true);        
}                                                                     
 800ab28:	bb 80 90 00 	mv r18,sp                                      
  /*                                                                  
   * TODO: This type of request structure is wrong and should be removed.
   */                                                                 
#define bdbuf_alloc(size) __builtin_alloca (size)                     
                                                                      
  req = bdbuf_alloc (sizeof (rtems_blkdev_request) +                  
 800ab2c:	cb 81 e0 00 	sub sp,sp,r1                                   
 800ab30:	34 02 00 03 	mvi r2,3                                       
 800ab34:	37 81 00 0b 	addi r1,sp,11                                  
 800ab38:	f8 00 2f 3e 	calli 8016830 <__lshrsi3>                      
 800ab3c:	34 02 00 03 	mvi r2,3                                       
 800ab40:	f8 00 2e ee 	calli 80166f8 <__ashlsi3>                      
                     sizeof (rtems_blkdev_sg_buffer) * transfer_count);
                                                                      
  req->req = RTEMS_BLKDEV_REQ_READ;                                   
  req->done = rtems_bdbuf_transfer_done;                              
 800ab44:	78 02 08 00 	mvhi r2,0x800                                  
 800ab48:	38 42 97 50 	ori r2,r2,0x9750                               
#define bdbuf_alloc(size) __builtin_alloca (size)                     
                                                                      
  req = bdbuf_alloc (sizeof (rtems_blkdev_request) +                  
                     sizeof (rtems_blkdev_sg_buffer) * transfer_count);
                                                                      
  req->req = RTEMS_BLKDEV_REQ_READ;                                   
 800ab4c:	58 20 00 00 	sw (r1+0),r0                                   
  req->done = rtems_bdbuf_transfer_done;                              
 800ab50:	58 22 00 04 	sw (r1+4),r2                                   
  /*                                                                  
   * TODO: This type of request structure is wrong and should be removed.
   */                                                                 
#define bdbuf_alloc(size) __builtin_alloca (size)                     
                                                                      
  req = bdbuf_alloc (sizeof (rtems_blkdev_request) +                  
 800ab54:	b8 20 58 00 	mv r11,r1                                      
                     sizeof (rtems_blkdev_sg_buffer) * transfer_count);
                                                                      
  req->req = RTEMS_BLKDEV_REQ_READ;                                   
  req->done = rtems_bdbuf_transfer_done;                              
  req->io_task = rtems_task_self ();                                  
 800ab58:	f8 00 0d 9d 	calli 800e1cc <rtems_task_self>                
 800ab5c:	59 61 00 14 	sw (r11+20),r1                                 
  req->bufnum = 0;                                                    
 800ab60:	59 60 00 10 	sw (r11+16),r0                                 
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 800ab64:	34 01 00 09 	mvi r1,9                                       
 800ab68:	59 81 00 20 	sw (r12+32),r1                                 
  rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);             
                                                                      
  req->bufs [0].user   = bd;                                          
  req->bufs [0].block  = media_block;                                 
  req->bufs [0].length = block_size;                                  
  req->bufs [0].buffer = bd->buffer;                                  
 800ab6c:	29 81 00 1c 	lw r1,(r12+28)                                 
  req->io_task = rtems_task_self ();                                  
  req->bufnum = 0;                                                    
                                                                      
  rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);             
                                                                      
  req->bufs [0].user   = bd;                                          
 800ab70:	59 6c 00 24 	sw (r11+36),r12                                
  req->bufs [0].block  = media_block;                                 
 800ab74:	59 6d 00 18 	sw (r11+24),r13                                
  req->bufs [0].length = block_size;                                  
 800ab78:	59 70 00 1c 	sw (r11+28),r16                                
  req->bufs [0].buffer = bd->buffer;                                  
 800ab7c:	59 61 00 20 	sw (r11+32),r1                                 
 800ab80:	b9 60 60 00 	mv r12,r11                                     
{                                                                     
  rtems_blkdev_request *req = NULL;                                   
  rtems_blkdev_bnum media_block = bd->block;                          
  uint32_t media_blocks_per_block = dd->media_blocks_per_block;       
  uint32_t block_size = dd->block_size;                               
  uint32_t transfer_index = 1;                                        
 800ab84:	34 0f 00 01 	mvi r15,1                                      
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 800ab88:	34 13 00 09 	mvi r19,9                                      
  req->bufs [0].buffer = bd->buffer;                                  
                                                                      
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_users ("read", bd);                              
                                                                      
  while (transfer_index < transfer_count)                             
 800ab8c:	e0 00 00 0e 	bi 800abc4 <rtems_bdbuf_execute_read_request+0x110>
  {                                                                   
    media_block += media_blocks_per_block;                            
 800ab90:	b5 b4 68 00 	add r13,r13,r20                                
                                                                      
    bd = rtems_bdbuf_get_buffer_for_read_ahead (dd, media_block);     
 800ab94:	b9 c0 08 00 	mv r1,r14                                      
 800ab98:	b9 a0 10 00 	mv r2,r13                                      
 800ab9c:	fb ff ff a6 	calli 800aa34 <rtems_bdbuf_get_buffer_for_read_ahead>
 800aba0:	35 8c 00 10 	addi r12,r12,16                                
                                                                      
    if (bd == NULL)                                                   
 800aba4:	44 20 00 09 	be r1,r0,800abc8 <rtems_bdbuf_execute_read_request+0x114><== NEVER TAKEN
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 800aba8:	58 33 00 20 	sw (r1+32),r19                                 
    if (bd == NULL)                                                   
      break;                                                          
                                                                      
    rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);           
                                                                      
    req->bufs [transfer_index].user   = bd;                           
 800abac:	59 81 00 24 	sw (r12+36),r1                                 
    req->bufs [transfer_index].block  = media_block;                  
    req->bufs [transfer_index].length = block_size;                   
    req->bufs [transfer_index].buffer = bd->buffer;                   
 800abb0:	28 21 00 1c 	lw r1,(r1+28)                                  
      break;                                                          
                                                                      
    rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);           
                                                                      
    req->bufs [transfer_index].user   = bd;                           
    req->bufs [transfer_index].block  = media_block;                  
 800abb4:	59 8d 00 18 	sw (r12+24),r13                                
    req->bufs [transfer_index].length = block_size;                   
 800abb8:	59 90 00 1c 	sw (r12+28),r16                                
    req->bufs [transfer_index].buffer = bd->buffer;                   
 800abbc:	59 81 00 20 	sw (r12+32),r1                                 
                                                                      
    if (rtems_bdbuf_tracer)                                           
      rtems_bdbuf_show_users ("read", bd);                            
                                                                      
    ++transfer_index;                                                 
 800abc0:	35 ef 00 01 	addi r15,r15,1                                 
  req->bufs [0].buffer = bd->buffer;                                  
                                                                      
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_users ("read", bd);                              
                                                                      
  while (transfer_index < transfer_count)                             
 800abc4:	56 2f ff f3 	bgu r17,r15,800ab90 <rtems_bdbuf_execute_read_request+0xdc>
      rtems_bdbuf_show_users ("read", bd);                            
                                                                      
    ++transfer_index;                                                 
  }                                                                   
                                                                      
  req->bufnum = transfer_index;                                       
 800abc8:	59 6f 00 10 	sw (r11+16),r15                                
                                                                      
  return rtems_bdbuf_execute_transfer_request (dd, req, true);        
 800abcc:	b9 c0 08 00 	mv r1,r14                                      
 800abd0:	b9 60 10 00 	mv r2,r11                                      
 800abd4:	34 03 00 01 	mvi r3,1                                       
 800abd8:	fb ff fc 8b 	calli 8009e04 <rtems_bdbuf_execute_transfer_request>
}                                                                     
 800abdc:	ba 40 e0 00 	mv sp,r18                                      
 800abe0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800abe4:	2b 8b 00 30 	lw r11,(sp+48)                                 
 800abe8:	2b 8c 00 2c 	lw r12,(sp+44)                                 
 800abec:	2b 8d 00 28 	lw r13,(sp+40)                                 
 800abf0:	2b 8e 00 24 	lw r14,(sp+36)                                 
 800abf4:	2b 8f 00 20 	lw r15,(sp+32)                                 
 800abf8:	2b 90 00 1c 	lw r16,(sp+28)                                 
 800abfc:	2b 91 00 18 	lw r17,(sp+24)                                 
 800ac00:	2b 92 00 14 	lw r18,(sp+20)                                 
 800ac04:	2b 93 00 10 	lw r19,(sp+16)                                 
 800ac08:	2b 94 00 0c 	lw r20,(sp+12)                                 
 800ac0c:	2b 9b 00 08 	lw fp,(sp+8)                                   
 800ac10:	37 9c 00 30 	addi sp,sp,48                                  
 800ac14:	c3 a0 00 00 	ret                                            
                                                                      

080093b4 <rtems_bdbuf_fatal>: #define RTEMS_BDBUF_AVL_MAX_HEIGHT (32) #endif static void rtems_bdbuf_fatal (rtems_fatal_code error) {
 80093b4:	37 9c ff fc 	addi sp,sp,-4                                  <== NOT EXECUTED
 80093b8:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
 80093bc:	b8 20 10 00 	mv r2,r1                                       <== NOT EXECUTED
  rtems_fatal (RTEMS_FATAL_SOURCE_BDBUF, error);                      
 80093c0:	34 01 00 03 	mvi r1,3                                       <== NOT EXECUTED
 80093c4:	fb ff f0 21 	calli 8005448 <rtems_fatal>                    <== NOT EXECUTED
                                                                      

08009450 <rtems_bdbuf_fatal_with_state>: } static void rtems_bdbuf_fatal_with_state (rtems_bdbuf_buf_state state, rtems_bdbuf_fatal_code error) {
 8009450:	37 9c ff f8 	addi sp,sp,-8                                  <== NOT EXECUTED
 8009454:	5b 8b 00 08 	sw (sp+8),r11                                  <== NOT EXECUTED
 8009458:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
 800945c:	b8 40 58 00 	mv r11,r2                                      <== NOT EXECUTED
  rtems_bdbuf_fatal ((((uint32_t) state) << 16) | error);             
 8009460:	34 02 00 10 	mvi r2,16                                      <== NOT EXECUTED
 8009464:	f8 00 34 a5 	calli 80166f8 <__ashlsi3>                      <== NOT EXECUTED
 8009468:	b9 61 08 00 	or r1,r11,r1                                   <== NOT EXECUTED
 800946c:	fb ff ff d2 	calli 80093b4 <rtems_bdbuf_fatal>              <== NOT EXECUTED
}                                                                     
 8009470:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 8009474:	2b 8b 00 08 	lw r11,(sp+8)                                  <== NOT EXECUTED
 8009478:	37 9c 00 08 	addi sp,sp,8                                   <== NOT EXECUTED
 800947c:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0800b4c0 <rtems_bdbuf_get>: rtems_status_code rtems_bdbuf_get (rtems_disk_device *dd, rtems_blkdev_bnum block, rtems_bdbuf_buffer **bd_ptr) {
 800b4c0:	37 9c ff e8 	addi sp,sp,-24                                 
 800b4c4:	5b 8b 00 18 	sw (sp+24),r11                                 
 800b4c8:	5b 8c 00 14 	sw (sp+20),r12                                 
 800b4cc:	5b 8d 00 10 	sw (sp+16),r13                                 
 800b4d0:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800b4d4:	5b 8f 00 08 	sw (sp+8),r15                                  
 800b4d8:	5b 9d 00 04 	sw (sp+4),ra                                   
 800b4dc:	b8 20 58 00 	mv r11,r1                                      
 800b4e0:	b8 40 70 00 	mv r14,r2                                      
 800b4e4:	b8 60 78 00 	mv r15,r3                                      
  rtems_status_code   sc = RTEMS_SUCCESSFUL;                          
  rtems_bdbuf_buffer *bd = NULL;                                      
  rtems_blkdev_bnum   media_block;                                    
                                                                      
  rtems_bdbuf_lock_cache ();                                          
 800b4e8:	fb ff f7 c6 	calli 8009400 <rtems_bdbuf_lock_cache>         
                             rtems_blkdev_bnum        block,          
                             rtems_blkdev_bnum       *media_block_ptr)
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (block < dd->block_count)                                        
 800b4ec:	29 61 00 28 	lw r1,(r11+40)                                 
     */                                                               
    *media_block_ptr = rtems_bdbuf_media_block (dd, block) + dd->start;
  }                                                                   
  else                                                                
  {                                                                   
    sc = RTEMS_INVALID_ID;                                            
 800b4f0:	34 0d 00 04 	mvi r13,4                                      
rtems_bdbuf_get (rtems_disk_device   *dd,                             
                 rtems_blkdev_bnum    block,                          
                 rtems_bdbuf_buffer **bd_ptr)                         
{                                                                     
  rtems_status_code   sc = RTEMS_SUCCESSFUL;                          
  rtems_bdbuf_buffer *bd = NULL;                                      
 800b4f4:	34 0c 00 00 	mvi r12,0                                      
                             rtems_blkdev_bnum        block,          
                             rtems_blkdev_bnum       *media_block_ptr)
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (block < dd->block_count)                                        
 800b4f8:	51 c1 00 26 	bgeu r14,r1,800b590 <rtems_bdbuf_get+0xd0>     <== NEVER TAKEN
}                                                                     
                                                                      
static rtems_blkdev_bnum                                              
rtems_bdbuf_media_block (const rtems_disk_device *dd, rtems_blkdev_bnum block)
{                                                                     
  if (dd->block_to_media_block_shift >= 0)                            
 800b4fc:	29 62 00 30 	lw r2,(r11+48)                                 
 800b500:	48 02 00 05 	bg r0,r2,800b514 <rtems_bdbuf_get+0x54>        <== NEVER TAKEN
    return block << dd->block_to_media_block_shift;                   
 800b504:	b9 c0 08 00 	mv r1,r14                                      
 800b508:	f8 00 2c 7c 	calli 80166f8 <__ashlsi3>                      
 800b50c:	b8 20 10 00 	mv r2,r1                                       
 800b510:	e0 00 00 09 	bi 800b534 <rtems_bdbuf_get+0x74>              
    /*                                                                
     * Change the block number for the block size to the block number for the media
     * block size. We have to use 64bit maths. There is no short cut here.
     */                                                               
    return (rtems_blkdev_bnum)                                        
      ((((uint64_t) block) * dd->block_size) / dd->media_block_size); 
 800b514:	29 64 00 24 	lw r4,(r11+36)                                 <== NOT EXECUTED
 800b518:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 800b51c:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 800b520:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 800b524:	f8 00 24 36 	calli 80145fc <__muldi3>                       <== NOT EXECUTED
 800b528:	29 64 00 20 	lw r4,(r11+32)                                 <== NOT EXECUTED
 800b52c:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 800b530:	f8 00 28 a9 	calli 80157d4 <__udivdi3>                      <== NOT EXECUTED
    /*                                                                
     * Compute the media block number. Drivers work with media block number not
     * the block number a BD may have as this depends on the block size set by
     * the user.                                                      
     */                                                               
    *media_block_ptr = rtems_bdbuf_media_block (dd, block) + dd->start;
 800b534:	29 64 00 18 	lw r4,(r11+24)                                 
     */                                                               
    if (rtems_bdbuf_tracer)                                           
      printf ("bdbuf:get: %" PRIu32 " (%" PRIu32 ") (dev = %08x)\n",  
              media_block, block, (unsigned) dd->dev);                
                                                                      
    bd = rtems_bdbuf_get_buffer_for_access (dd, media_block);         
 800b538:	b9 60 08 00 	mv r1,r11                                      
 800b53c:	b4 44 10 00 	add r2,r2,r4                                   
 800b540:	fb ff fe 19 	calli 800ada4 <rtems_bdbuf_get_buffer_for_access>
 800b544:	b8 20 60 00 	mv r12,r1                                      
                                                                      
    switch (bd->state)                                                
 800b548:	28 21 00 20 	lw r1,(r1+32)                                  
 800b54c:	34 02 00 02 	mvi r2,2                                       
 800b550:	44 22 00 06 	be r1,r2,800b568 <rtems_bdbuf_get+0xa8>        
 800b554:	34 02 00 07 	mvi r2,7                                       
 800b558:	44 22 00 08 	be r1,r2,800b578 <rtems_bdbuf_get+0xb8>        
 800b55c:	34 02 00 01 	mvi r2,1                                       
 800b560:	5c 22 00 09 	bne r1,r2,800b584 <rtems_bdbuf_get+0xc4>       <== NEVER TAKEN
 800b564:	e0 00 00 03 	bi 800b570 <rtems_bdbuf_get+0xb0>              
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 800b568:	34 01 00 03 	mvi r1,3                                       
 800b56c:	e0 00 00 04 	bi 800b57c <rtems_bdbuf_get+0xbc>              
 800b570:	34 01 00 05 	mvi r1,5                                       
 800b574:	e0 00 00 02 	bi 800b57c <rtems_bdbuf_get+0xbc>              
 800b578:	34 01 00 04 	mvi r1,4                                       
 800b57c:	59 81 00 20 	sw (r12+32),r1                                 
 800b580:	e0 00 00 03 	bi 800b58c <rtems_bdbuf_get+0xcc>              
         * record of this so just gets the block to fill.             
         */                                                           
        rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_ACCESS_MODIFIED);
        break;                                                        
      default:                                                        
        rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_2);
 800b584:	34 02 00 0f 	mvi r2,15                                      <== NOT EXECUTED
 800b588:	fb ff f7 b2 	calli 8009450 <rtems_bdbuf_fatal_with_state>   <== NOT EXECUTED
static rtems_status_code                                              
rtems_bdbuf_get_media_block (const rtems_disk_device *dd,             
                             rtems_blkdev_bnum        block,          
                             rtems_blkdev_bnum       *media_block_ptr)
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
 800b58c:	34 0d 00 00 	mvi r13,0                                      
      rtems_bdbuf_show_users ("get", bd);                             
      rtems_bdbuf_show_usage ();                                      
    }                                                                 
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
 800b590:	fb ff f7 c8 	calli 80094b0 <rtems_bdbuf_unlock_cache>       
                                                                      
  *bd_ptr = bd;                                                       
                                                                      
  return sc;                                                          
}                                                                     
 800b594:	b9 a0 08 00 	mv r1,r13                                      
    }                                                                 
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
                                                                      
  *bd_ptr = bd;                                                       
 800b598:	59 ec 00 00 	sw (r15+0),r12                                 
                                                                      
  return sc;                                                          
}                                                                     
 800b59c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800b5a0:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800b5a4:	2b 8c 00 14 	lw r12,(sp+20)                                 
 800b5a8:	2b 8d 00 10 	lw r13,(sp+16)                                 
 800b5ac:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800b5b0:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800b5b4:	37 9c 00 18 	addi sp,sp,24                                  
 800b5b8:	c3 a0 00 00 	ret                                            
                                                                      

0800ada4 <rtems_bdbuf_get_buffer_for_access>: } static rtems_bdbuf_buffer * rtems_bdbuf_get_buffer_for_access (rtems_disk_device *dd, rtems_blkdev_bnum block) {
 800ada4:	37 9c ff c8 	addi sp,sp,-56                                 
 800ada8:	5b 8b 00 38 	sw (sp+56),r11                                 
 800adac:	5b 8c 00 34 	sw (sp+52),r12                                 
 800adb0:	5b 8d 00 30 	sw (sp+48),r13                                 
 800adb4:	5b 8e 00 2c 	sw (sp+44),r14                                 
 800adb8:	5b 8f 00 28 	sw (sp+40),r15                                 
 800adbc:	5b 90 00 24 	sw (sp+36),r16                                 
 800adc0:	5b 91 00 20 	sw (sp+32),r17                                 
 800adc4:	5b 92 00 1c 	sw (sp+28),r18                                 
 800adc8:	5b 93 00 18 	sw (sp+24),r19                                 
 800adcc:	5b 94 00 14 	sw (sp+20),r20                                 
 800add0:	5b 95 00 10 	sw (sp+16),r21                                 
 800add4:	5b 96 00 0c 	sw (sp+12),r22                                 
 800add8:	5b 97 00 08 	sw (sp+8),r23                                  
 800addc:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_bdbuf_buffer *bd = NULL;                                      
                                                                      
  do                                                                  
  {                                                                   
    bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dd, block);       
 800ade0:	78 0c 08 01 	mvhi r12,0x801                                 
static bool                                                           
rtems_bdbuf_wait_for_recycle (rtems_bdbuf_buffer *bd)                 
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
 800ade4:	78 14 08 01 	mvhi r20,0x801                                 
        rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);           
        break;                                                        
      case RTEMS_BDBUF_STATE_SYNC:                                    
      case RTEMS_BDBUF_STATE_TRANSFER:                                
      case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                         
        rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);         
 800ade8:	78 13 08 01 	mvhi r19,0x801                                 
        }                                                             
      case RTEMS_BDBUF_STATE_ACCESS_CACHED:                           
      case RTEMS_BDBUF_STATE_ACCESS_EMPTY:                            
      case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                         
      case RTEMS_BDBUF_STATE_ACCESS_PURGED:                           
        rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);           
 800adec:	78 12 08 01 	mvhi r18,0x801                                 
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
 800adf0:	78 11 08 01 	mvhi r17,0x801                                 
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
 800adf4:	78 10 08 01 	mvhi r16,0x801                                 
      {                                                               
        if (rtems_bdbuf_wait_for_recycle (bd))                        
        {                                                             
          rtems_bdbuf_remove_from_tree_and_lru_list (bd);             
          rtems_bdbuf_make_free_and_add_to_lru_list (bd);             
          rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);             
 800adf8:	78 0d 08 01 	mvhi r13,0x801                                 
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_wait_for_buffer (void)                                    
{                                                                     
  if (!rtems_chain_is_empty (&bdbuf_cache.modified))                  
 800adfc:	78 0f 08 01 	mvhi r15,0x801                                 
}                                                                     
                                                                      
static rtems_bdbuf_buffer *                                           
rtems_bdbuf_get_buffer_for_access (rtems_disk_device *dd,             
                                   rtems_blkdev_bnum  block)          
{                                                                     
 800ae00:	b8 20 70 00 	mv r14,r1                                      
 800ae04:	b8 40 a8 00 	mv r21,r2                                      
  rtems_bdbuf_buffer *bd = NULL;                                      
                                                                      
  do                                                                  
  {                                                                   
    bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dd, block);       
 800ae08:	39 8c 96 f8 	ori r12,r12,0x96f8                             
static bool                                                           
rtems_bdbuf_wait_for_recycle (rtems_bdbuf_buffer *bd)                 
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
 800ae0c:	34 17 00 0a 	mvi r23,10                                     
 800ae10:	3a 94 7a 80 	ori r20,r20,0x7a80                             
        rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);           
        break;                                                        
      case RTEMS_BDBUF_STATE_SYNC:                                    
      case RTEMS_BDBUF_STATE_TRANSFER:                                
      case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                         
        rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);         
 800ae14:	3a 73 97 64 	ori r19,r19,0x9764                             
        }                                                             
      case RTEMS_BDBUF_STATE_ACCESS_CACHED:                           
      case RTEMS_BDBUF_STATE_ACCESS_EMPTY:                            
      case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                         
      case RTEMS_BDBUF_STATE_ACCESS_PURGED:                           
        rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);           
 800ae18:	3a 52 97 5c 	ori r18,r18,0x975c                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 800ae1c:	34 16 00 08 	mvi r22,8                                      
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
 800ae20:	3a 31 97 54 	ori r17,r17,0x9754                             
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
 800ae24:	3a 10 97 38 	ori r16,r16,0x9738                             
      {                                                               
        if (rtems_bdbuf_wait_for_recycle (bd))                        
        {                                                             
          rtems_bdbuf_remove_from_tree_and_lru_list (bd);             
          rtems_bdbuf_make_free_and_add_to_lru_list (bd);             
          rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);             
 800ae28:	39 ad 97 6c 	ori r13,r13,0x976c                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_wait_for_buffer (void)                                    
{                                                                     
  if (!rtems_chain_is_empty (&bdbuf_cache.modified))                  
 800ae2c:	39 ef 97 48 	ori r15,r15,0x9748                             
{                                                                     
  rtems_bdbuf_buffer *bd = NULL;                                      
                                                                      
  do                                                                  
  {                                                                   
    bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dd, block);       
 800ae30:	29 81 00 3c 	lw r1,(r12+60)                                 
 800ae34:	b9 c0 10 00 	mv r2,r14                                      
 800ae38:	ba a0 18 00 	mv r3,r21                                      
 800ae3c:	fb ff fa 7a 	calli 8009824 <rtems_bdbuf_avl_search.clone.5> 
 800ae40:	b8 20 58 00 	mv r11,r1                                      
                                                                      
    if (bd != NULL)                                                   
 800ae44:	44 20 00 30 	be r1,r0,800af04 <rtems_bdbuf_get_buffer_for_access+0x160>
    {                                                                 
      if (bd->group->bds_per_group != dd->bds_per_group)              
 800ae48:	28 21 00 28 	lw r1,(r1+40)                                  
 800ae4c:	29 c2 00 34 	lw r2,(r14+52)                                 
 800ae50:	28 21 00 08 	lw r1,(r1+8)                                   
 800ae54:	44 22 00 37 	be r1,r2,800af30 <rtems_bdbuf_get_buffer_for_access+0x18c>
static bool                                                           
rtems_bdbuf_wait_for_recycle (rtems_bdbuf_buffer *bd)                 
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
 800ae58:	29 61 00 20 	lw r1,(r11+32)                                 
 800ae5c:	54 37 00 1c 	bgu r1,r23,800aecc <rtems_bdbuf_get_buffer_for_access+0x128><== NEVER TAKEN
 800ae60:	34 02 00 02 	mvi r2,2                                       
 800ae64:	f8 00 2e 25 	calli 80166f8 <__ashlsi3>                      
 800ae68:	b6 81 08 00 	add r1,r20,r1                                  
 800ae6c:	28 21 00 00 	lw r1,(r1+0)                                   
 800ae70:	c0 20 00 00 	b r1                                           
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
 800ae74:	29 61 00 04 	lw r1,(r11+4)                                  <== NOT EXECUTED
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
 800ae78:	29 62 00 00 	lw r2,(r11+0)                                  <== NOT EXECUTED
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 800ae7c:	59 76 00 20 	sw (r11+32),r22                                <== NOT EXECUTED
  previous       = the_node->previous;                                
  next->previous = previous;                                          
 800ae80:	58 41 00 04 	sw (r2+4),r1                                   <== NOT EXECUTED
  previous->next = next;                                              
 800ae84:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
 800ae88:	29 81 00 60 	lw r1,(r12+96)                                 <== NOT EXECUTED
                                                                      
  the_node->next = tail;                                              
 800ae8c:	59 71 00 00 	sw (r11+0),r17                                 <== NOT EXECUTED
  tail->previous = the_node;                                          
 800ae90:	59 8b 00 60 	sw (r12+96),r11                                <== NOT EXECUTED
  old_last->next = the_node;                                          
 800ae94:	58 2b 00 00 	sw (r1+0),r11                                  <== NOT EXECUTED
  the_node->previous = old_last;                                      
 800ae98:	59 61 00 04 	sw (r11+4),r1                                  <== NOT EXECUTED
rtems_bdbuf_request_sync_for_modified_buffer (rtems_bdbuf_buffer *bd) 
{                                                                     
  rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_SYNC);                 
  rtems_chain_extract_unprotected (&bd->link);                        
  rtems_chain_append_unprotected (&bdbuf_cache.sync, &bd->link);      
  rtems_bdbuf_wake_swapper ();                                        
 800ae9c:	fb ff f9 a5 	calli 8009530 <rtems_bdbuf_wake_swapper>       <== NOT EXECUTED
 800aea0:	e3 ff ff ee 	bi 800ae58 <rtems_bdbuf_get_buffer_for_access+0xb4><== NOT EXECUTED
      case RTEMS_BDBUF_STATE_MODIFIED:                                
        rtems_bdbuf_request_sync_for_modified_buffer (bd);            
        break;                                                        
      case RTEMS_BDBUF_STATE_CACHED:                                  
      case RTEMS_BDBUF_STATE_EMPTY:                                   
        if (bd->waiters == 0)                                         
 800aea4:	29 61 00 24 	lw r1,(r11+36)                                 
 800aea8:	44 20 00 0c 	be r1,r0,800aed8 <rtems_bdbuf_get_buffer_for_access+0x134><== NEVER TAKEN
 800aeac:	e0 00 00 1e 	bi 800af24 <rtems_bdbuf_get_buffer_for_access+0x180>
        }                                                             
      case RTEMS_BDBUF_STATE_ACCESS_CACHED:                           
      case RTEMS_BDBUF_STATE_ACCESS_EMPTY:                            
      case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                         
      case RTEMS_BDBUF_STATE_ACCESS_PURGED:                           
        rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);           
 800aeb0:	b9 60 08 00 	mv r1,r11                                      
 800aeb4:	ba 40 10 00 	mv r2,r18                                      
 800aeb8:	e0 00 00 03 	bi 800aec4 <rtems_bdbuf_get_buffer_for_access+0x120>
        break;                                                        
      case RTEMS_BDBUF_STATE_SYNC:                                    
      case RTEMS_BDBUF_STATE_TRANSFER:                                
      case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                         
        rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);         
 800aebc:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800aec0:	ba 60 10 00 	mv r2,r19                                      <== NOT EXECUTED
 800aec4:	fb ff fa 6e 	calli 800987c <rtems_bdbuf_wait>               
 800aec8:	e3 ff ff e4 	bi 800ae58 <rtems_bdbuf_get_buffer_for_access+0xb4>
        break;                                                        
      default:                                                        
        rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_8);
 800aecc:	34 02 00 14 	mvi r2,20                                      <== NOT EXECUTED
 800aed0:	fb ff f9 60 	calli 8009450 <rtems_bdbuf_fatal_with_state>   <== NOT EXECUTED
 800aed4:	e3 ff ff e1 	bi 800ae58 <rtems_bdbuf_get_buffer_for_access+0xb4><== NOT EXECUTED
    {                                                                 
      if (bd->group->bds_per_group != dd->bds_per_group)              
      {                                                               
        if (rtems_bdbuf_wait_for_recycle (bd))                        
        {                                                             
          rtems_bdbuf_remove_from_tree_and_lru_list (bd);             
 800aed8:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800aedc:	fb ff fd aa 	calli 800a584 <rtems_bdbuf_remove_from_tree_and_lru_list><== NOT EXECUTED
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
 800aee0:	29 81 00 40 	lw r1,(r12+64)                                 <== NOT EXECUTED
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 800aee4:	59 60 00 20 	sw (r11+32),r0                                 <== NOT EXECUTED
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
 800aee8:	59 70 00 04 	sw (r11+4),r16                                 <== NOT EXECUTED
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
 800aeec:	59 8b 00 40 	sw (r12+64),r11                                <== NOT EXECUTED
  the_node->next        = before_node;                                
 800aef0:	59 61 00 00 	sw (r11+0),r1                                  <== NOT EXECUTED
  before_node->previous = the_node;                                   
 800aef4:	58 2b 00 04 	sw (r1+4),r11                                  <== NOT EXECUTED
      {                                                               
        if (rtems_bdbuf_wait_for_recycle (bd))                        
        {                                                             
          rtems_bdbuf_remove_from_tree_and_lru_list (bd);             
          rtems_bdbuf_make_free_and_add_to_lru_list (bd);             
          rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);             
 800aef8:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 800aefc:	fb ff f9 81 	calli 8009500 <rtems_bdbuf_wake>               <== NOT EXECUTED
 800af00:	e3 ff ff cc 	bi 800ae30 <rtems_bdbuf_get_buffer_for_access+0x8c><== NOT EXECUTED
        bd = NULL;                                                    
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      bd = rtems_bdbuf_get_buffer_from_lru_list (dd, block);          
 800af04:	b9 c0 08 00 	mv r1,r14                                      
 800af08:	ba a0 10 00 	mv r2,r21                                      
 800af0c:	fb ff fd b3 	calli 800a5d8 <rtems_bdbuf_get_buffer_from_lru_list>
 800af10:	b8 20 58 00 	mv r11,r1                                      
                                                                      
      if (bd == NULL)                                                 
 800af14:	5c 20 00 07 	bne r1,r0,800af30 <rtems_bdbuf_get_buffer_for_access+0x18c>
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_wait_for_buffer (void)                                    
{                                                                     
  if (!rtems_chain_is_empty (&bdbuf_cache.modified))                  
 800af18:	29 81 00 4c 	lw r1,(r12+76)                                 
 800af1c:	44 2f 00 02 	be r1,r15,800af24 <rtems_bdbuf_get_buffer_for_access+0x180>
    rtems_bdbuf_wake_swapper ();                                      
 800af20:	fb ff f9 84 	calli 8009530 <rtems_bdbuf_wake_swapper>       
                                                                      
  rtems_bdbuf_anonymous_wait (&bdbuf_cache.buffer_waiters);           
 800af24:	b9 a0 08 00 	mv r1,r13                                      
 800af28:	fb ff f9 e6 	calli 80096c0 <rtems_bdbuf_anonymous_wait>     
 800af2c:	e3 ff ff c1 	bi 800ae30 <rtems_bdbuf_get_buffer_for_access+0x8c>
static void                                                           
rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)                  
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
 800af30:	78 0e 08 01 	mvhi r14,0x801                                 
        rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);           
        break;                                                        
      case RTEMS_BDBUF_STATE_SYNC:                                    
      case RTEMS_BDBUF_STATE_TRANSFER:                                
      case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                         
        rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);         
 800af34:	78 0d 08 01 	mvhi r13,0x801                                 
        return;                                                       
      case RTEMS_BDBUF_STATE_ACCESS_CACHED:                           
      case RTEMS_BDBUF_STATE_ACCESS_EMPTY:                            
      case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                         
      case RTEMS_BDBUF_STATE_ACCESS_PURGED:                           
        rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);           
 800af38:	78 0c 08 01 	mvhi r12,0x801                                 
static void                                                           
rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)                  
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
 800af3c:	34 0f 00 09 	mvi r15,9                                      
 800af40:	39 ce 7a ac 	ori r14,r14,0x7aac                             
        rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);           
        break;                                                        
      case RTEMS_BDBUF_STATE_SYNC:                                    
      case RTEMS_BDBUF_STATE_TRANSFER:                                
      case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                         
        rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);         
 800af44:	39 ad 97 64 	ori r13,r13,0x9764                             
        return;                                                       
      case RTEMS_BDBUF_STATE_ACCESS_CACHED:                           
      case RTEMS_BDBUF_STATE_ACCESS_EMPTY:                            
      case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                         
      case RTEMS_BDBUF_STATE_ACCESS_PURGED:                           
        rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);           
 800af48:	39 8c 97 5c 	ori r12,r12,0x975c                             
static void                                                           
rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)                  
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
 800af4c:	29 61 00 20 	lw r1,(r11+32)                                 
 800af50:	34 22 ff ff 	addi r2,r1,-1                                  
 800af54:	54 4f 00 15 	bgu r2,r15,800afa8 <rtems_bdbuf_get_buffer_for_access+0x204><== NEVER TAKEN
 800af58:	b8 40 08 00 	mv r1,r2                                       
 800af5c:	34 02 00 02 	mvi r2,2                                       
 800af60:	f8 00 2d e6 	calli 80166f8 <__ashlsi3>                      
 800af64:	b5 c1 08 00 	add r1,r14,r1                                  
 800af68:	28 21 00 00 	lw r1,(r1+0)                                   
 800af6c:	c0 20 00 00 	b r1                                           
    {                                                                 
      case RTEMS_BDBUF_STATE_MODIFIED:                                
        rtems_bdbuf_group_release (bd);                               
 800af70:	29 61 00 28 	lw r1,(r11+40)                                 
 800af74:	fb ff fa 3e 	calli 800986c <rtems_bdbuf_group_release.clone.8>
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
 800af78:	29 62 00 00 	lw r2,(r11+0)                                  
  previous       = the_node->previous;                                
 800af7c:	29 61 00 04 	lw r1,(r11+4)                                  
  next->previous = previous;                                          
 800af80:	58 41 00 04 	sw (r2+4),r1                                   
  previous->next = next;                                              
 800af84:	58 22 00 00 	sw (r1+0),r2                                   
 800af88:	e0 00 00 0b 	bi 800afb4 <rtems_bdbuf_get_buffer_for_access+0x210>
        return;                                                       
      case RTEMS_BDBUF_STATE_ACCESS_CACHED:                           
      case RTEMS_BDBUF_STATE_ACCESS_EMPTY:                            
      case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                         
      case RTEMS_BDBUF_STATE_ACCESS_PURGED:                           
        rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);           
 800af8c:	b9 60 08 00 	mv r1,r11                                      
 800af90:	b9 80 10 00 	mv r2,r12                                      
 800af94:	e0 00 00 03 	bi 800afa0 <rtems_bdbuf_get_buffer_for_access+0x1fc>
        break;                                                        
      case RTEMS_BDBUF_STATE_SYNC:                                    
      case RTEMS_BDBUF_STATE_TRANSFER:                                
      case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                         
        rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);         
 800af98:	b9 60 08 00 	mv r1,r11                                      
 800af9c:	b9 a0 10 00 	mv r2,r13                                      
 800afa0:	fb ff fa 37 	calli 800987c <rtems_bdbuf_wait>               
 800afa4:	e3 ff ff ea 	bi 800af4c <rtems_bdbuf_get_buffer_for_access+0x1a8>
        break;                                                        
      default:                                                        
        rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_7);
 800afa8:	34 02 00 13 	mvi r2,19                                      <== NOT EXECUTED
 800afac:	fb ff f9 29 	calli 8009450 <rtems_bdbuf_fatal_with_state>   <== NOT EXECUTED
 800afb0:	e3 ff ff e7 	bi 800af4c <rtems_bdbuf_get_buffer_for_access+0x1a8><== NOT EXECUTED
    }                                                                 
  }                                                                   
  while (bd == NULL);                                                 
                                                                      
  rtems_bdbuf_wait_for_access (bd);                                   
  rtems_bdbuf_group_obtain (bd);                                      
 800afb4:	29 61 00 28 	lw r1,(r11+40)                                 
 800afb8:	fb ff fa 29 	calli 800985c <rtems_bdbuf_group_obtain.clone.7>
                                                                      
  return bd;                                                          
}                                                                     
 800afbc:	b9 60 08 00 	mv r1,r11                                      
 800afc0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800afc4:	2b 8b 00 38 	lw r11,(sp+56)                                 
 800afc8:	2b 8c 00 34 	lw r12,(sp+52)                                 
 800afcc:	2b 8d 00 30 	lw r13,(sp+48)                                 
 800afd0:	2b 8e 00 2c 	lw r14,(sp+44)                                 
 800afd4:	2b 8f 00 28 	lw r15,(sp+40)                                 
 800afd8:	2b 90 00 24 	lw r16,(sp+36)                                 
 800afdc:	2b 91 00 20 	lw r17,(sp+32)                                 
 800afe0:	2b 92 00 1c 	lw r18,(sp+28)                                 
 800afe4:	2b 93 00 18 	lw r19,(sp+24)                                 
 800afe8:	2b 94 00 14 	lw r20,(sp+20)                                 
 800afec:	2b 95 00 10 	lw r21,(sp+16)                                 
 800aff0:	2b 96 00 0c 	lw r22,(sp+12)                                 
 800aff4:	2b 97 00 08 	lw r23,(sp+8)                                  
 800aff8:	37 9c 00 38 	addi sp,sp,56                                  
 800affc:	c3 a0 00 00 	ret                                            
                                                                      

0800aa34 <rtems_bdbuf_get_buffer_for_read_ahead>: } static rtems_bdbuf_buffer * rtems_bdbuf_get_buffer_for_read_ahead (rtems_disk_device *dd, rtems_blkdev_bnum block) {
 800aa34:	37 9c ff ec 	addi sp,sp,-20                                 
 800aa38:	5b 8b 00 14 	sw (sp+20),r11                                 
 800aa3c:	5b 8c 00 10 	sw (sp+16),r12                                 
 800aa40:	5b 8d 00 0c 	sw (sp+12),r13                                 
 800aa44:	5b 8e 00 08 	sw (sp+8),r14                                  
 800aa48:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_bdbuf_buffer *bd = NULL;                                      
                                                                      
  bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dd, block);         
 800aa4c:	78 04 08 01 	mvhi r4,0x801                                  
 800aa50:	38 84 96 f8 	ori r4,r4,0x96f8                               
}                                                                     
                                                                      
static rtems_bdbuf_buffer *                                           
rtems_bdbuf_get_buffer_for_read_ahead (rtems_disk_device *dd,         
                                       rtems_blkdev_bnum  block)      
{                                                                     
 800aa54:	b8 20 70 00 	mv r14,r1                                      
  rtems_bdbuf_buffer *bd = NULL;                                      
                                                                      
  bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dd, block);         
 800aa58:	28 81 00 3c 	lw r1,(r4+60)                                  
}                                                                     
                                                                      
static rtems_bdbuf_buffer *                                           
rtems_bdbuf_get_buffer_for_read_ahead (rtems_disk_device *dd,         
                                       rtems_blkdev_bnum  block)      
{                                                                     
 800aa5c:	b8 40 68 00 	mv r13,r2                                      
  rtems_bdbuf_buffer *bd = NULL;                                      
                                                                      
  bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dd, block);         
 800aa60:	b9 a0 18 00 	mv r3,r13                                      
 800aa64:	b9 c0 10 00 	mv r2,r14                                      
 800aa68:	fb ff fb 6f 	calli 8009824 <rtems_bdbuf_avl_search.clone.5> 
 800aa6c:	b8 20 60 00 	mv r12,r1                                      
  else                                                                
    /*                                                                
     * The buffer is in the cache.  So it is already available or in use, and
     * thus no need for a read ahead.                                 
     */                                                               
    bd = NULL;                                                        
 800aa70:	34 0b 00 00 	mvi r11,0                                      
{                                                                     
  rtems_bdbuf_buffer *bd = NULL;                                      
                                                                      
  bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dd, block);         
                                                                      
  if (bd == NULL)                                                     
 800aa74:	5c 20 00 08 	bne r1,r0,800aa94 <rtems_bdbuf_get_buffer_for_read_ahead+0x60><== NEVER TAKEN
  {                                                                   
    bd = rtems_bdbuf_get_buffer_from_lru_list (dd, block);            
 800aa78:	b9 c0 08 00 	mv r1,r14                                      
 800aa7c:	b9 a0 10 00 	mv r2,r13                                      
 800aa80:	fb ff fe d6 	calli 800a5d8 <rtems_bdbuf_get_buffer_from_lru_list>
 800aa84:	b8 20 58 00 	mv r11,r1                                      
                                                                      
    if (bd != NULL)                                                   
 800aa88:	44 2c 00 03 	be r1,r12,800aa94 <rtems_bdbuf_get_buffer_for_read_ahead+0x60><== NEVER TAKEN
      rtems_bdbuf_group_obtain (bd);                                  
 800aa8c:	28 21 00 28 	lw r1,(r1+40)                                  
 800aa90:	fb ff fb 73 	calli 800985c <rtems_bdbuf_group_obtain.clone.7>
     * thus no need for a read ahead.                                 
     */                                                               
    bd = NULL;                                                        
                                                                      
  return bd;                                                          
}                                                                     
 800aa94:	b9 60 08 00 	mv r1,r11                                      
 800aa98:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800aa9c:	2b 8b 00 14 	lw r11,(sp+20)                                 
 800aaa0:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800aaa4:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800aaa8:	2b 8e 00 08 	lw r14,(sp+8)                                  
 800aaac:	37 9c 00 14 	addi sp,sp,20                                  
 800aab0:	c3 a0 00 00 	ret                                            
                                                                      

0800a5d8 <rtems_bdbuf_get_buffer_from_lru_list>: } static rtems_bdbuf_buffer * rtems_bdbuf_get_buffer_from_lru_list (rtems_disk_device *dd, rtems_blkdev_bnum block) {
 800a5d8:	37 9c ff 48 	addi sp,sp,-184                                
 800a5dc:	5b 8b 00 38 	sw (sp+56),r11                                 
 800a5e0:	5b 8c 00 34 	sw (sp+52),r12                                 
 800a5e4:	5b 8d 00 30 	sw (sp+48),r13                                 
 800a5e8:	5b 8e 00 2c 	sw (sp+44),r14                                 
 800a5ec:	5b 8f 00 28 	sw (sp+40),r15                                 
 800a5f0:	5b 90 00 24 	sw (sp+36),r16                                 
 800a5f4:	5b 91 00 20 	sw (sp+32),r17                                 
 800a5f8:	5b 92 00 1c 	sw (sp+28),r18                                 
 800a5fc:	5b 93 00 18 	sw (sp+24),r19                                 
 800a600:	5b 94 00 14 	sw (sp+20),r20                                 
 800a604:	5b 95 00 10 	sw (sp+16),r21                                 
 800a608:	5b 96 00 0c 	sw (sp+12),r22                                 
 800a60c:	5b 97 00 08 	sw (sp+8),r23                                  
 800a610:	5b 9d 00 04 	sw (sp+4),ra                                   
void rtems_bdbuf_reset_device_stats (rtems_disk_device *dd)           
{                                                                     
  rtems_bdbuf_lock_cache ();                                          
  memset (&dd->stats, 0, sizeof(dd->stats));                          
  rtems_bdbuf_unlock_cache ();                                        
}                                                                     
 800a614:	78 0f 08 01 	mvhi r15,0x801                                 
 800a618:	39 ef 96 f8 	ori r15,r15,0x96f8                             
rtems_bdbuf_get_buffer_from_lru_list (rtems_disk_device *dd,          
                                      rtems_blkdev_bnum  block)       
{                                                                     
  rtems_chain_node *node = rtems_chain_first (&bdbuf_cache.lru);      
                                                                      
  while (!rtems_chain_is_tail (&bdbuf_cache.lru, node))               
 800a61c:	78 13 08 01 	mvhi r19,0x801                                 
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
 800a620:	78 12 08 01 	mvhi r18,0x801                                 
       b < group->bds_per_group;                                      
       b++, bd += bufs_per_bd)                                        
    rtems_bdbuf_make_free_and_add_to_lru_list (bd);                   
                                                                      
  if (b > 1)                                                          
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
 800a624:	78 10 08 01 	mvhi r16,0x801                                 
}                                                                     
                                                                      
static rtems_bdbuf_buffer *                                           
rtems_bdbuf_get_buffer_from_lru_list (rtems_disk_device *dd,          
                                      rtems_blkdev_bnum  block)       
{                                                                     
 800a628:	b8 20 70 00 	mv r14,r1                                      
 800a62c:	b8 40 88 00 	mv r17,r2                                      
void rtems_bdbuf_reset_device_stats (rtems_disk_device *dd)           
{                                                                     
  rtems_bdbuf_lock_cache ();                                          
  memset (&dd->stats, 0, sizeof(dd->stats));                          
  rtems_bdbuf_unlock_cache ();                                        
}                                                                     
 800a630:	29 ed 00 40 	lw r13,(r15+64)                                
rtems_bdbuf_get_buffer_from_lru_list (rtems_disk_device *dd,          
                                      rtems_blkdev_bnum  block)       
{                                                                     
  rtems_chain_node *node = rtems_chain_first (&bdbuf_cache.lru);      
                                                                      
  while (!rtems_chain_is_tail (&bdbuf_cache.lru, node))               
 800a634:	3a 73 97 3c 	ori r19,r19,0x973c                             
    rtems_bdbuf_remove_from_tree_and_lru_list (bd);                   
                                                                      
  group->bds_per_group = new_bds_per_group;                           
  bufs_per_bd = bdbuf_cache.max_bds_per_group / new_bds_per_group;    
                                                                      
  for (b = 1, bd = group->bdbuf + bufs_per_bd;                        
 800a638:	34 16 00 01 	mvi r22,1                                      
 800a63c:	3a 52 97 38 	ori r18,r18,0x9738                             
       b < group->bds_per_group;                                      
       b++, bd += bufs_per_bd)                                        
    rtems_bdbuf_make_free_and_add_to_lru_list (bd);                   
                                                                      
  if (b > 1)                                                          
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
 800a640:	3a 10 97 6c 	ori r16,r16,0x976c                             
rtems_bdbuf_get_buffer_from_lru_list (rtems_disk_device *dd,          
                                      rtems_blkdev_bnum  block)       
{                                                                     
  rtems_chain_node *node = rtems_chain_first (&bdbuf_cache.lru);      
                                                                      
  while (!rtems_chain_is_tail (&bdbuf_cache.lru, node))               
 800a644:	e0 00 00 e6 	bi 800a9dc <rtems_bdbuf_get_buffer_from_lru_list+0x404>
              bd->group->bds_per_group, dd->bds_per_group);           
                                                                      
    /*                                                                
     * If nobody waits for this BD, we may recycle it.                
     */                                                               
    if (bd->waiters == 0)                                             
 800a648:	29 a1 00 24 	lw r1,(r13+36)                                 
 800a64c:	5c 20 00 e3 	bne r1,r0,800a9d8 <rtems_bdbuf_get_buffer_from_lru_list+0x400>
    {                                                                 
      if (bd->group->bds_per_group == dd->bds_per_group)              
 800a650:	29 ab 00 28 	lw r11,(r13+40)                                
 800a654:	29 cc 00 34 	lw r12,(r14+52)                                
 800a658:	29 62 00 08 	lw r2,(r11+8)                                  
 800a65c:	5c 4c 00 05 	bne r2,r12,800a670 <rtems_bdbuf_get_buffer_from_lru_list+0x98>
      {                                                               
        rtems_bdbuf_remove_from_tree_and_lru_list (bd);               
 800a660:	b9 a0 08 00 	mv r1,r13                                      
 800a664:	fb ff ff c8 	calli 800a584 <rtems_bdbuf_remove_from_tree_and_lru_list>
 800a668:	b9 a0 60 00 	mv r12,r13                                     
 800a66c:	e0 00 00 2a 	bi 800a714 <rtems_bdbuf_get_buffer_from_lru_list+0x13c>
                                                                      
        empty_bd = bd;                                                
      }                                                               
      else if (bd->group->users == 0)                                 
 800a670:	29 61 00 0c 	lw r1,(r11+12)                                 
 800a674:	5c 20 00 d9 	bne r1,r0,800a9d8 <rtems_bdbuf_get_buffer_from_lru_list+0x400>
  if (rtems_bdbuf_tracer)                                             
    printf ("bdbuf:realloc: %tu: %zd -> %zd\n",                       
            group - bdbuf_cache.groups, group->bds_per_group,         
            new_bds_per_group);                                       
                                                                      
  bufs_per_bd = bdbuf_cache.max_bds_per_group / group->bds_per_group; 
 800a678:	29 e1 00 20 	lw r1,(r15+32)                                 
                                                                      
  for (b = 0, bd = group->bdbuf;                                      
 800a67c:	29 75 00 10 	lw r21,(r11+16)                                
 800a680:	34 14 00 00 	mvi r20,0                                      
  if (rtems_bdbuf_tracer)                                             
    printf ("bdbuf:realloc: %tu: %zd -> %zd\n",                       
            group - bdbuf_cache.groups, group->bds_per_group,         
            new_bds_per_group);                                       
                                                                      
  bufs_per_bd = bdbuf_cache.max_bds_per_group / group->bds_per_group; 
 800a684:	f8 00 30 f7 	calli 8016a60 <__udivsi3>                      
                                                                      
  for (b = 0, bd = group->bdbuf;                                      
       b < group->bds_per_group;                                      
       b++, bd += bufs_per_bd)                                        
 800a688:	34 02 00 38 	mvi r2,56                                      
 800a68c:	f8 00 30 90 	calli 80168cc <__mulsi3>                       
 800a690:	b8 20 b8 00 	mv r23,r1                                      
 800a694:	e0 00 00 05 	bi 800a6a8 <rtems_bdbuf_get_buffer_from_lru_list+0xd0>
    rtems_bdbuf_remove_from_tree_and_lru_list (bd);                   
 800a698:	ba a0 08 00 	mv r1,r21                                      
 800a69c:	fb ff ff ba 	calli 800a584 <rtems_bdbuf_remove_from_tree_and_lru_list>
                                                                      
  bufs_per_bd = bdbuf_cache.max_bds_per_group / group->bds_per_group; 
                                                                      
  for (b = 0, bd = group->bdbuf;                                      
       b < group->bds_per_group;                                      
       b++, bd += bufs_per_bd)                                        
 800a6a0:	36 94 00 01 	addi r20,r20,1                                 
 800a6a4:	b6 b7 a8 00 	add r21,r21,r23                                
            group - bdbuf_cache.groups, group->bds_per_group,         
            new_bds_per_group);                                       
                                                                      
  bufs_per_bd = bdbuf_cache.max_bds_per_group / group->bds_per_group; 
                                                                      
  for (b = 0, bd = group->bdbuf;                                      
 800a6a8:	29 61 00 08 	lw r1,(r11+8)                                  
 800a6ac:	54 34 ff fb 	bgu r1,r20,800a698 <rtems_bdbuf_get_buffer_from_lru_list+0xc0>
       b < group->bds_per_group;                                      
       b++, bd += bufs_per_bd)                                        
    rtems_bdbuf_remove_from_tree_and_lru_list (bd);                   
                                                                      
  group->bds_per_group = new_bds_per_group;                           
  bufs_per_bd = bdbuf_cache.max_bds_per_group / new_bds_per_group;    
 800a6b0:	29 e1 00 20 	lw r1,(r15+32)                                 
 800a6b4:	b9 80 10 00 	mv r2,r12                                      
  for (b = 0, bd = group->bdbuf;                                      
       b < group->bds_per_group;                                      
       b++, bd += bufs_per_bd)                                        
    rtems_bdbuf_remove_from_tree_and_lru_list (bd);                   
                                                                      
  group->bds_per_group = new_bds_per_group;                           
 800a6b8:	59 6c 00 08 	sw (r11+8),r12                                 
  bufs_per_bd = bdbuf_cache.max_bds_per_group / new_bds_per_group;    
 800a6bc:	f8 00 30 e9 	calli 8016a60 <__udivsi3>                      
                                                                      
  for (b = 1, bd = group->bdbuf + bufs_per_bd;                        
 800a6c0:	34 02 00 38 	mvi r2,56                                      
 800a6c4:	f8 00 30 82 	calli 80168cc <__mulsi3>                       
 800a6c8:	29 63 00 10 	lw r3,(r11+16)                                 
 800a6cc:	29 e5 00 40 	lw r5,(r15+64)                                 
 800a6d0:	34 04 00 01 	mvi r4,1                                       
 800a6d4:	b4 61 18 00 	add r3,r3,r1                                   
 800a6d8:	e0 00 00 09 	bi 800a6fc <rtems_bdbuf_get_buffer_from_lru_list+0x124>
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 800a6dc:	58 60 00 20 	sw (r3+32),r0                                  
                                                                      
static void                                                           
rtems_bdbuf_make_free_and_add_to_lru_list (rtems_bdbuf_buffer *bd)    
{                                                                     
  rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_FREE);                 
  rtems_chain_prepend_unprotected (&bdbuf_cache.lru, &bd->link);      
 800a6e0:	b8 60 10 00 	mv r2,r3                                       
 800a6e4:	58 72 00 04 	sw (r3+4),r18                                  
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
  the_node->next        = before_node;                                
 800a6e8:	58 65 00 00 	sw (r3+0),r5                                   
  before_node->previous = the_node;                                   
 800a6ec:	58 a3 00 04 	sw (r5+4),r3                                   
  group->bds_per_group = new_bds_per_group;                           
  bufs_per_bd = bdbuf_cache.max_bds_per_group / new_bds_per_group;    
                                                                      
  for (b = 1, bd = group->bdbuf + bufs_per_bd;                        
       b < group->bds_per_group;                                      
       b++, bd += bufs_per_bd)                                        
 800a6f0:	34 84 00 01 	addi r4,r4,1                                   
 800a6f4:	b4 61 18 00 	add r3,r3,r1                                   
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
 800a6f8:	b8 40 28 00 	mv r5,r2                                       
    rtems_bdbuf_remove_from_tree_and_lru_list (bd);                   
                                                                      
  group->bds_per_group = new_bds_per_group;                           
  bufs_per_bd = bdbuf_cache.max_bds_per_group / new_bds_per_group;    
                                                                      
  for (b = 1, bd = group->bdbuf + bufs_per_bd;                        
 800a6fc:	55 84 ff f8 	bgu r12,r4,800a6dc <rtems_bdbuf_get_buffer_from_lru_list+0x104>
 800a700:	59 e5 00 40 	sw (r15+64),r5                                 
       b < group->bds_per_group;                                      
       b++, bd += bufs_per_bd)                                        
    rtems_bdbuf_make_free_and_add_to_lru_list (bd);                   
                                                                      
  if (b > 1)                                                          
 800a704:	52 c4 00 03 	bgeu r22,r4,800a710 <rtems_bdbuf_get_buffer_from_lru_list+0x138>
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
 800a708:	ba 00 08 00 	mv r1,r16                                      
 800a70c:	fb ff fb 7d 	calli 8009500 <rtems_bdbuf_wake>               
                                                                      
  return group->bdbuf;                                                
 800a710:	29 6c 00 10 	lw r12,(r11+16)                                
      }                                                               
      else if (bd->group->users == 0)                                 
        empty_bd = rtems_bdbuf_group_realloc (bd->group, dd->bds_per_group);
    }                                                                 
                                                                      
    if (empty_bd != NULL)                                             
 800a714:	45 80 00 b1 	be r12,r0,800a9d8 <rtems_bdbuf_get_buffer_from_lru_list+0x400><== NEVER TAKEN
                       rtems_bdbuf_buffer*  node)                     
{                                                                     
  const rtems_disk_device *dd = node->dd;                             
  rtems_blkdev_bnum block = node->block;                              
                                                                      
  rtems_bdbuf_buffer*  p = *root;                                     
 800a718:	78 03 08 01 	mvhi r3,0x801                                  
 800a71c:	38 63 96 f8 	ori r3,r3,0x96f8                               
 800a720:	28 6b 00 3c 	lw r11,(r3+60)                                 
static void                                                           
rtems_bdbuf_setup_empty_buffer (rtems_bdbuf_buffer *bd,               
                                rtems_disk_device  *dd,               
                                rtems_blkdev_bnum   block)            
{                                                                     
  bd->dd        = dd ;                                                
 800a724:	59 8e 00 14 	sw (r12+20),r14                                
  bd->block     = block;                                              
 800a728:	59 91 00 18 	sw (r12+24),r17                                
  bd->avl.left  = NULL;                                               
 800a72c:	59 80 00 08 	sw (r12+8),r0                                  
  bd->avl.right = NULL;                                               
 800a730:	59 80 00 0c 	sw (r12+12),r0                                 
  bd->waiters   = 0;                                                  
 800a734:	59 80 00 24 	sw (r12+36),r0                                 
  rtems_bdbuf_buffer*  buf_stack[RTEMS_BDBUF_AVL_MAX_HEIGHT];         
  rtems_bdbuf_buffer** buf_prev = buf_stack;                          
                                                                      
  bool modified = false;                                              
                                                                      
  if (p == NULL)                                                      
 800a738:	45 60 00 05 	be r11,r0,800a74c <rtems_bdbuf_get_buffer_from_lru_list+0x174>
  rtems_bdbuf_buffer*  p = *root;                                     
  rtems_bdbuf_buffer*  q;                                             
  rtems_bdbuf_buffer*  p1;                                            
  rtems_bdbuf_buffer*  p2;                                            
  rtems_bdbuf_buffer*  buf_stack[RTEMS_BDBUF_AVL_MAX_HEIGHT];         
  rtems_bdbuf_buffer** buf_prev = buf_stack;                          
 800a73c:	37 90 00 3c 	addi r16,sp,60                                 
    *buf_prev++ = p;                                                  
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
        || ((p->dd == dd) && (p->block < block)))                     
    {                                                                 
      p->avl.cache = 1;                                               
 800a740:	34 03 00 01 	mvi r3,1                                       
        break;                                                        
      }                                                               
    }                                                                 
    else if ((p->dd != dd) || (p->block != block))                    
    {                                                                 
      p->avl.cache = -1;                                              
 800a744:	34 02 ff ff 	mvi r2,-1                                      
 800a748:	e0 00 00 14 	bi 800a798 <rtems_bdbuf_get_buffer_from_lru_list+0x1c0>
                                                                      
  bool modified = false;                                              
                                                                      
  if (p == NULL)                                                      
  {                                                                   
    *root = node;                                                     
 800a74c:	58 6c 00 3c 	sw (r3+60),r12                                 
    node->avl.left = NULL;                                            
    node->avl.right = NULL;                                           
    node->avl.bal = 0;                                                
 800a750:	31 80 00 11 	sb (r12+17),r0                                 
 800a754:	e0 00 00 9e 	bi 800a9cc <rtems_bdbuf_get_buffer_from_lru_list+0x3f4>
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
        || ((p->dd == dd) && (p->block < block)))                     
 800a758:	5c 2e 00 09 	bne r1,r14,800a77c <rtems_bdbuf_get_buffer_from_lru_list+0x1a4><== NEVER TAKEN
 800a75c:	29 61 00 18 	lw r1,(r11+24)                                 
 800a760:	50 31 00 06 	bgeu r1,r17,800a778 <rtems_bdbuf_get_buffer_from_lru_list+0x1a0>
    {                                                                 
      p->avl.cache = 1;                                               
      q = p->avl.right;                                               
 800a764:	29 61 00 0c 	lw r1,(r11+12)                                 
    *buf_prev++ = p;                                                  
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
        || ((p->dd == dd) && (p->block < block)))                     
    {                                                                 
      p->avl.cache = 1;                                               
 800a768:	31 63 00 10 	sb (r11+16),r3                                 
      q = p->avl.right;                                               
      if (q == NULL)                                                  
 800a76c:	5c 20 00 09 	bne r1,r0,800a790 <rtems_bdbuf_get_buffer_from_lru_list+0x1b8>
      {                                                               
        q = node;                                                     
        p->avl.right = q = node;                                      
 800a770:	59 6c 00 0c 	sw (r11+12),r12                                
 800a774:	e0 00 00 0e 	bi 800a7ac <rtems_bdbuf_get_buffer_from_lru_list+0x1d4>
        break;                                                        
      }                                                               
    }                                                                 
    else if ((p->dd != dd) || (p->block != block))                    
 800a778:	44 31 00 ac 	be r1,r17,800aa28 <rtems_bdbuf_get_buffer_from_lru_list+0x450><== NEVER TAKEN
    {                                                                 
      p->avl.cache = -1;                                              
      q = p->avl.left;                                                
 800a77c:	29 61 00 08 	lw r1,(r11+8)                                  
        break;                                                        
      }                                                               
    }                                                                 
    else if ((p->dd != dd) || (p->block != block))                    
    {                                                                 
      p->avl.cache = -1;                                              
 800a780:	31 62 00 10 	sb (r11+16),r2                                 
      q = p->avl.left;                                                
      if (q == NULL)                                                  
 800a784:	5c 20 00 03 	bne r1,r0,800a790 <rtems_bdbuf_get_buffer_from_lru_list+0x1b8>
      {                                                               
        q = node;                                                     
        p->avl.left = q;                                              
 800a788:	59 6c 00 08 	sw (r11+8),r12                                 
 800a78c:	e0 00 00 08 	bi 800a7ac <rtems_bdbuf_get_buffer_from_lru_list+0x1d4>
    }                                                                 
    else if ((p->dd != dd) || (p->block != block))                    
    {                                                                 
      p->avl.cache = -1;                                              
      q = p->avl.left;                                                
      if (q == NULL)                                                  
 800a790:	b8 80 80 00 	mv r16,r4                                      
 800a794:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
 800a798:	29 61 00 14 	lw r1,(r11+20)                                 
    return 0;                                                         
  }                                                                   
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
 800a79c:	5a 0b 00 00 	sw (r16+0),r11                                 
 800a7a0:	36 04 00 04 	addi r4,r16,4                                  
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
 800a7a4:	55 c1 ff f0 	bgu r14,r1,800a764 <rtems_bdbuf_get_buffer_from_lru_list+0x18c><== NEVER TAKEN
 800a7a8:	e3 ff ff ec 	bi 800a758 <rtems_bdbuf_get_buffer_from_lru_list+0x180>
    }                                                                 
                                                                      
    p = q;                                                            
  }                                                                   
                                                                      
  q->avl.left = q->avl.right = NULL;                                  
 800a7ac:	59 80 00 0c 	sw (r12+12),r0                                 
 800a7b0:	59 80 00 08 	sw (r12+8),r0                                  
  q->avl.bal = 0;                                                     
 800a7b4:	31 80 00 11 	sb (r12+17),r0                                 
  modified = true;                                                    
  buf_prev--;                                                         
                                                                      
  while (modified)                                                    
  {                                                                   
    if (p->avl.cache == -1)                                           
 800a7b8:	34 0e ff ff 	mvi r14,-1                                     
          p->avl.bal = 0;                                             
          modified = false;                                           
          break;                                                      
                                                                      
        case 0:                                                       
          p->avl.bal = 1;                                             
 800a7bc:	34 13 00 01 	mvi r19,1                                      
 800a7c0:	34 11 00 01 	mvi r17,1                                      
            p1->avl.right = p2->avl.left;                             
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
            p2->avl.right = p;                                        
            if (p2->avl.bal == -1) p->avl.bal = +1; else p->avl.bal = 0;
            if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
 800a7c4:	34 15 ff ff 	mvi r21,-1                                     
        default:                                                      
          break;                                                      
      }                                                               
    }                                                                 
    q = p;                                                            
    if (buf_prev > buf_stack)                                         
 800a7c8:	37 94 00 3c 	addi r20,sp,60                                 
 800a7cc:	e0 00 00 02 	bi 800a7d4 <rtems_bdbuf_get_buffer_from_lru_list+0x1fc>
  q->avl.left = q->avl.right = NULL;                                  
  q->avl.bal = 0;                                                     
  modified = true;                                                    
  buf_prev--;                                                         
                                                                      
  while (modified)                                                    
 800a7d0:	b9 e0 58 00 	mv r11,r15                                     
  {                                                                   
    if (p->avl.cache == -1)                                           
 800a7d4:	41 61 00 10 	lbu r1,(r11+16)                                
 800a7d8:	34 02 00 18 	mvi r2,24                                      
 800a7dc:	f8 00 2f c7 	calli 80166f8 <__ashlsi3>                      
 800a7e0:	34 02 00 18 	mvi r2,24                                      
 800a7e4:	f8 00 2f ec 	calli 8016794 <__ashrsi3>                      
 800a7e8:	41 62 00 11 	lbu r2,(r11+17)                                
 800a7ec:	5c 2e 00 2f 	bne r1,r14,800a8a8 <rtems_bdbuf_get_buffer_from_lru_list+0x2d0>
    {                                                                 
      switch (p->avl.bal)                                             
 800a7f0:	b8 40 08 00 	mv r1,r2                                       
 800a7f4:	34 02 00 18 	mvi r2,24                                      
 800a7f8:	f8 00 2f c0 	calli 80166f8 <__ashlsi3>                      
 800a7fc:	34 02 00 18 	mvi r2,24                                      
 800a800:	f8 00 2f e5 	calli 8016794 <__ashrsi3>                      
 800a804:	44 20 00 04 	be r1,r0,800a814 <rtems_bdbuf_get_buffer_from_lru_list+0x23c>
 800a808:	44 31 00 30 	be r1,r17,800a8c8 <rtems_bdbuf_get_buffer_from_lru_list+0x2f0>
 800a80c:	5c 2e 00 5d 	bne r1,r14,800a980 <rtems_bdbuf_get_buffer_from_lru_list+0x3a8><== NEVER TAKEN
 800a810:	e0 00 00 03 	bi 800a81c <rtems_bdbuf_get_buffer_from_lru_list+0x244>
          p->avl.bal = 0;                                             
          modified = false;                                           
          break;                                                      
                                                                      
        case 0:                                                       
          p->avl.bal = -1;                                            
 800a814:	31 6e 00 11 	sb (r11+17),r14                                
 800a818:	e0 00 00 5a 	bi 800a980 <rtems_bdbuf_get_buffer_from_lru_list+0x3a8>
          break;                                                      
                                                                      
        case -1:                                                      
          p1 = p->avl.left;                                           
 800a81c:	29 6f 00 08 	lw r15,(r11+8)                                 
          if (p1->avl.bal == -1) /* simple LL-turn */                 
 800a820:	34 02 00 18 	mvi r2,24                                      
 800a824:	41 e1 00 11 	lbu r1,(r15+17)                                
 800a828:	f8 00 2f b4 	calli 80166f8 <__ashlsi3>                      
 800a82c:	34 02 00 18 	mvi r2,24                                      
 800a830:	f8 00 2f d9 	calli 8016794 <__ashrsi3>                      
 800a834:	29 ed 00 0c 	lw r13,(r15+12)                                
 800a838:	5c 2e 00 04 	bne r1,r14,800a848 <rtems_bdbuf_get_buffer_from_lru_list+0x270>
          {                                                           
            p->avl.left = p1->avl.right;                              
 800a83c:	59 6d 00 08 	sw (r11+8),r13                                 
            p1->avl.right = p;                                        
 800a840:	59 eb 00 0c 	sw (r15+12),r11                                
 800a844:	e0 00 00 2f 	bi 800a900 <rtems_bdbuf_get_buffer_from_lru_list+0x328>
            p = p1;                                                   
          }                                                           
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
            p1->avl.right = p2->avl.left;                             
 800a848:	29 a1 00 08 	lw r1,(r13+8)                                  
            p2->avl.left = p1;                                        
 800a84c:	59 af 00 08 	sw (r13+8),r15                                 
            p->avl.left = p2->avl.right;                              
            p2->avl.right = p;                                        
            if (p2->avl.bal == -1) p->avl.bal = +1; else p->avl.bal = 0;
 800a850:	34 02 00 18 	mvi r2,24                                      
            p = p1;                                                   
          }                                                           
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
            p1->avl.right = p2->avl.left;                             
 800a854:	59 e1 00 0c 	sw (r15+12),r1                                 
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
 800a858:	29 a1 00 0c 	lw r1,(r13+12)                                 
            p2->avl.right = p;                                        
 800a85c:	59 ab 00 0c 	sw (r13+12),r11                                
            p->avl.bal = 0;                                           
            p = p1;                                                   
          }                                                           
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
 800a860:	b9 a0 90 00 	mv r18,r13                                     
            p1->avl.right = p2->avl.left;                             
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
 800a864:	59 61 00 08 	sw (r11+8),r1                                  
            p2->avl.right = p;                                        
            if (p2->avl.bal == -1) p->avl.bal = +1; else p->avl.bal = 0;
 800a868:	41 a1 00 11 	lbu r1,(r13+17)                                
 800a86c:	f8 00 2f a3 	calli 80166f8 <__ashlsi3>                      
 800a870:	34 02 00 18 	mvi r2,24                                      
 800a874:	f8 00 2f c8 	calli 8016794 <__ashrsi3>                      
 800a878:	5c 2e 00 03 	bne r1,r14,800a884 <rtems_bdbuf_get_buffer_from_lru_list+0x2ac>
 800a87c:	31 71 00 11 	sb (r11+17),r17                                
 800a880:	e0 00 00 02 	bi 800a888 <rtems_bdbuf_get_buffer_from_lru_list+0x2b0>
 800a884:	31 60 00 11 	sb (r11+17),r0                                 
            if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
 800a888:	41 a1 00 11 	lbu r1,(r13+17)                                
 800a88c:	34 02 00 18 	mvi r2,24                                      
 800a890:	f8 00 2f 9a 	calli 80166f8 <__ashlsi3>                      
 800a894:	34 02 00 18 	mvi r2,24                                      
 800a898:	f8 00 2f bf 	calli 8016794 <__ashrsi3>                      
 800a89c:	5c 31 00 34 	bne r1,r17,800a96c <rtems_bdbuf_get_buffer_from_lru_list+0x394>
 800a8a0:	31 f5 00 11 	sb (r15+17),r21                                
 800a8a4:	e0 00 00 33 	bi 800a970 <rtems_bdbuf_get_buffer_from_lru_list+0x398>
          break;                                                      
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      switch (p->avl.bal)                                             
 800a8a8:	b8 40 08 00 	mv r1,r2                                       
 800a8ac:	34 02 00 18 	mvi r2,24                                      
 800a8b0:	f8 00 2f 92 	calli 80166f8 <__ashlsi3>                      
 800a8b4:	34 02 00 18 	mvi r2,24                                      
 800a8b8:	f8 00 2f b7 	calli 8016794 <__ashrsi3>                      
 800a8bc:	44 20 00 05 	be r1,r0,800a8d0 <rtems_bdbuf_get_buffer_from_lru_list+0x2f8>
 800a8c0:	44 31 00 06 	be r1,r17,800a8d8 <rtems_bdbuf_get_buffer_from_lru_list+0x300>
 800a8c4:	5c 2e 00 2f 	bne r1,r14,800a980 <rtems_bdbuf_get_buffer_from_lru_list+0x3a8><== NEVER TAKEN
      {                                                               
        case -1:                                                      
          p->avl.bal = 0;                                             
 800a8c8:	31 60 00 11 	sb (r11+17),r0                                 
 800a8cc:	e0 00 00 2b 	bi 800a978 <rtems_bdbuf_get_buffer_from_lru_list+0x3a0>
          modified = false;                                           
          break;                                                      
                                                                      
        case 0:                                                       
          p->avl.bal = 1;                                             
 800a8d0:	31 73 00 11 	sb (r11+17),r19                                
 800a8d4:	e0 00 00 2b 	bi 800a980 <rtems_bdbuf_get_buffer_from_lru_list+0x3a8>
          break;                                                      
                                                                      
        case 1:                                                       
          p1 = p->avl.right;                                          
 800a8d8:	29 6f 00 0c 	lw r15,(r11+12)                                
          if (p1->avl.bal == 1) /* simple RR-turn */                  
 800a8dc:	34 02 00 18 	mvi r2,24                                      
 800a8e0:	41 e1 00 11 	lbu r1,(r15+17)                                
 800a8e4:	f8 00 2f 85 	calli 80166f8 <__ashlsi3>                      
 800a8e8:	34 02 00 18 	mvi r2,24                                      
 800a8ec:	f8 00 2f aa 	calli 8016794 <__ashrsi3>                      
 800a8f0:	29 ed 00 08 	lw r13,(r15+8)                                 
 800a8f4:	5c 31 00 06 	bne r1,r17,800a90c <rtems_bdbuf_get_buffer_from_lru_list+0x334>
          {                                                           
            p->avl.right = p1->avl.left;                              
 800a8f8:	59 6d 00 0c 	sw (r11+12),r13                                
            p1->avl.left = p;                                         
 800a8fc:	59 eb 00 08 	sw (r15+8),r11                                 
            p->avl.bal = 0;                                           
 800a900:	31 60 00 11 	sb (r11+17),r0                                 
 800a904:	b9 e0 90 00 	mv r18,r15                                     
 800a908:	e0 00 00 1a 	bi 800a970 <rtems_bdbuf_get_buffer_from_lru_list+0x398>
            p = p1;                                                   
          }                                                           
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
            p1->avl.left = p2->avl.right;                             
 800a90c:	29 a1 00 0c 	lw r1,(r13+12)                                 
            p2->avl.right = p1;                                       
 800a910:	59 af 00 0c 	sw (r13+12),r15                                
            p->avl.right = p2->avl.left;                              
            p2->avl.left = p;                                         
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
 800a914:	34 02 00 18 	mvi r2,24                                      
            p = p1;                                                   
          }                                                           
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
            p1->avl.left = p2->avl.right;                             
 800a918:	59 e1 00 08 	sw (r15+8),r1                                  
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
 800a91c:	29 a1 00 08 	lw r1,(r13+8)                                  
            p2->avl.left = p;                                         
 800a920:	59 ab 00 08 	sw (r13+8),r11                                 
            p->avl.bal = 0;                                           
            p = p1;                                                   
          }                                                           
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
 800a924:	b9 a0 90 00 	mv r18,r13                                     
            p1->avl.left = p2->avl.right;                             
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
 800a928:	59 61 00 0c 	sw (r11+12),r1                                 
            p2->avl.left = p;                                         
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
 800a92c:	41 a1 00 11 	lbu r1,(r13+17)                                
 800a930:	f8 00 2f 72 	calli 80166f8 <__ashlsi3>                      
 800a934:	34 02 00 18 	mvi r2,24                                      
 800a938:	f8 00 2f 97 	calli 8016794 <__ashrsi3>                      
 800a93c:	5c 31 00 03 	bne r1,r17,800a948 <rtems_bdbuf_get_buffer_from_lru_list+0x370><== ALWAYS TAKEN
 800a940:	31 6e 00 11 	sb (r11+17),r14                                <== NOT EXECUTED
 800a944:	e0 00 00 02 	bi 800a94c <rtems_bdbuf_get_buffer_from_lru_list+0x374><== NOT EXECUTED
 800a948:	31 60 00 11 	sb (r11+17),r0                                 
            if (p2->avl.bal == -1) p1->avl.bal = +1; else p1->avl.bal = 0;
 800a94c:	41 a1 00 11 	lbu r1,(r13+17)                                
 800a950:	34 02 00 18 	mvi r2,24                                      
 800a954:	f8 00 2f 69 	calli 80166f8 <__ashlsi3>                      
 800a958:	34 02 00 18 	mvi r2,24                                      
 800a95c:	f8 00 2f 8e 	calli 8016794 <__ashrsi3>                      
 800a960:	5c 2e 00 03 	bne r1,r14,800a96c <rtems_bdbuf_get_buffer_from_lru_list+0x394><== ALWAYS TAKEN
 800a964:	31 f3 00 11 	sb (r15+17),r19                                <== NOT EXECUTED
 800a968:	e0 00 00 02 	bi 800a970 <rtems_bdbuf_get_buffer_from_lru_list+0x398><== NOT EXECUTED
 800a96c:	31 e0 00 11 	sb (r15+17),r0                                 
            p = p2;                                                   
          }                                                           
          p->avl.bal = 0;                                             
 800a970:	32 40 00 11 	sb (r18+17),r0                                 
 800a974:	ba 40 58 00 	mv r11,r18                                     
          modified = false;                                           
 800a978:	34 0d 00 00 	mvi r13,0                                      
 800a97c:	e0 00 00 02 	bi 800a984 <rtems_bdbuf_get_buffer_from_lru_list+0x3ac>
          break;                                                      
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      switch (p->avl.bal)                                             
 800a980:	34 0d 00 01 	mvi r13,1                                      
        default:                                                      
          break;                                                      
      }                                                               
    }                                                                 
    q = p;                                                            
    if (buf_prev > buf_stack)                                         
 800a984:	52 90 00 0d 	bgeu r20,r16,800a9b8 <rtems_bdbuf_get_buffer_from_lru_list+0x3e0>
    {                                                                 
      p = *--buf_prev;                                                
 800a988:	36 10 ff fc 	addi r16,r16,-4                                
 800a98c:	2a 0f 00 00 	lw r15,(r16+0)                                 
                                                                      
      if (p->avl.cache == -1)                                         
 800a990:	34 02 00 18 	mvi r2,24                                      
 800a994:	41 e1 00 10 	lbu r1,(r15+16)                                
 800a998:	f8 00 2f 58 	calli 80166f8 <__ashlsi3>                      
 800a99c:	34 02 00 18 	mvi r2,24                                      
 800a9a0:	f8 00 2f 7d 	calli 8016794 <__ashrsi3>                      
 800a9a4:	5c 2e 00 03 	bne r1,r14,800a9b0 <rtems_bdbuf_get_buffer_from_lru_list+0x3d8>
      {                                                               
        p->avl.left = q;                                              
 800a9a8:	59 eb 00 08 	sw (r15+8),r11                                 
 800a9ac:	e0 00 00 07 	bi 800a9c8 <rtems_bdbuf_get_buffer_from_lru_list+0x3f0>
      }                                                               
      else                                                            
      {                                                               
        p->avl.right = q;                                             
 800a9b0:	59 eb 00 0c 	sw (r15+12),r11                                
 800a9b4:	e0 00 00 05 	bi 800a9c8 <rtems_bdbuf_get_buffer_from_lru_list+0x3f0>
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      *root = p;                                                      
 800a9b8:	78 01 08 01 	mvhi r1,0x801                                  
 800a9bc:	38 21 96 f8 	ori r1,r1,0x96f8                               
 800a9c0:	58 2b 00 3c 	sw (r1+60),r11                                 
 800a9c4:	e0 00 00 02 	bi 800a9cc <rtems_bdbuf_get_buffer_from_lru_list+0x3f4>
  q->avl.left = q->avl.right = NULL;                                  
  q->avl.bal = 0;                                                     
  modified = true;                                                    
  buf_prev--;                                                         
                                                                      
  while (modified)                                                    
 800a9c8:	5d a0 ff 82 	bne r13,r0,800a7d0 <rtems_bdbuf_get_buffer_from_lru_list+0x1f8>
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 800a9cc:	34 01 00 01 	mvi r1,1                                       
 800a9d0:	59 81 00 20 	sw (r12+32),r1                                 
                                                                      
    if (empty_bd != NULL)                                             
    {                                                                 
      rtems_bdbuf_setup_empty_buffer (empty_bd, dd, block);           
                                                                      
      return empty_bd;                                                
 800a9d4:	e0 00 00 04 	bi 800a9e4 <rtems_bdbuf_get_buffer_from_lru_list+0x40c>
void rtems_bdbuf_reset_device_stats (rtems_disk_device *dd)           
{                                                                     
  rtems_bdbuf_lock_cache ();                                          
  memset (&dd->stats, 0, sizeof(dd->stats));                          
  rtems_bdbuf_unlock_cache ();                                        
}                                                                     
 800a9d8:	29 ad 00 00 	lw r13,(r13+0)                                 
rtems_bdbuf_get_buffer_from_lru_list (rtems_disk_device *dd,          
                                      rtems_blkdev_bnum  block)       
{                                                                     
  rtems_chain_node *node = rtems_chain_first (&bdbuf_cache.lru);      
                                                                      
  while (!rtems_chain_is_tail (&bdbuf_cache.lru, node))               
 800a9dc:	5d b3 ff 1b 	bne r13,r19,800a648 <rtems_bdbuf_get_buffer_from_lru_list+0x70>
    }                                                                 
                                                                      
    node = rtems_chain_next (node);                                   
  }                                                                   
                                                                      
  return NULL;                                                        
 800a9e0:	34 0c 00 00 	mvi r12,0                                      
}                                                                     
 800a9e4:	b9 80 08 00 	mv r1,r12                                      
 800a9e8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a9ec:	2b 8b 00 38 	lw r11,(sp+56)                                 
 800a9f0:	2b 8c 00 34 	lw r12,(sp+52)                                 
 800a9f4:	2b 8d 00 30 	lw r13,(sp+48)                                 
 800a9f8:	2b 8e 00 2c 	lw r14,(sp+44)                                 
 800a9fc:	2b 8f 00 28 	lw r15,(sp+40)                                 
 800aa00:	2b 90 00 24 	lw r16,(sp+36)                                 
 800aa04:	2b 91 00 20 	lw r17,(sp+32)                                 
 800aa08:	2b 92 00 1c 	lw r18,(sp+28)                                 
 800aa0c:	2b 93 00 18 	lw r19,(sp+24)                                 
 800aa10:	2b 94 00 14 	lw r20,(sp+20)                                 
 800aa14:	2b 95 00 10 	lw r21,(sp+16)                                 
 800aa18:	2b 96 00 0c 	lw r22,(sp+12)                                 
 800aa1c:	2b 97 00 08 	lw r23,(sp+8)                                  
 800aa20:	37 9c 00 b8 	addi sp,sp,184                                 
 800aa24:	c3 a0 00 00 	ret                                            
  bd->avl.left  = NULL;                                               
  bd->avl.right = NULL;                                               
  bd->waiters   = 0;                                                  
                                                                      
  if (rtems_bdbuf_avl_insert (&bdbuf_cache.tree, bd) != 0)            
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_RECYCLE);                    
 800aa28:	34 01 00 08 	mvi r1,8                                       <== NOT EXECUTED
 800aa2c:	fb ff fa 62 	calli 80093b4 <rtems_bdbuf_fatal>              <== NOT EXECUTED
 800aa30:	e3 ff ff e7 	bi 800a9cc <rtems_bdbuf_get_buffer_from_lru_list+0x3f4><== NOT EXECUTED
                                                                      

0800b000 <rtems_bdbuf_init>: * * @return rtems_status_code The initialisation status. */ rtems_status_code rtems_bdbuf_init (void) {
 800b000:	37 9c ff cc 	addi sp,sp,-52                                 
 800b004:	5b 8b 00 34 	sw (sp+52),r11                                 
 800b008:	5b 8c 00 30 	sw (sp+48),r12                                 
 800b00c:	5b 8d 00 2c 	sw (sp+44),r13                                 
 800b010:	5b 8e 00 28 	sw (sp+40),r14                                 
 800b014:	5b 8f 00 24 	sw (sp+36),r15                                 
 800b018:	5b 90 00 20 	sw (sp+32),r16                                 
 800b01c:	5b 91 00 1c 	sw (sp+28),r17                                 
 800b020:	5b 92 00 18 	sw (sp+24),r18                                 
 800b024:	5b 93 00 14 	sw (sp+20),r19                                 
 800b028:	5b 94 00 10 	sw (sp+16),r20                                 
 800b02c:	5b 95 00 0c 	sw (sp+12),r21                                 
 800b030:	5b 96 00 08 	sw (sp+8),r22                                  
 800b034:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_mode          prev_mode;                                      
                                                                      
  if (rtems_bdbuf_tracer)                                             
    printf ("bdbuf:init\n");                                          
                                                                      
  if (rtems_interrupt_is_in_progress())                               
 800b038:	78 01 08 01 	mvhi r1,0x801                                  
 800b03c:	38 21 9a 80 	ori r1,r1,0x9a80                               
 800b040:	28 2b 00 08 	lw r11,(r1+8)                                  
    return RTEMS_CALLED_FROM_ISR;                                     
 800b044:	34 03 00 12 	mvi r3,18                                      
  rtems_mode          prev_mode;                                      
                                                                      
  if (rtems_bdbuf_tracer)                                             
    printf ("bdbuf:init\n");                                          
                                                                      
  if (rtems_interrupt_is_in_progress())                               
 800b048:	5d 60 01 0e 	bne r11,r0,800b480 <rtems_bdbuf_init+0x480>    <== NEVER TAKEN
    return RTEMS_CALLED_FROM_ISR;                                     
                                                                      
  /*                                                                  
   * Check the configuration table values.                            
   */                                                                 
  if ((bdbuf_config.buffer_max % bdbuf_config.buffer_min) != 0)       
 800b04c:	78 0c 08 01 	mvhi r12,0x801                                 
 800b050:	39 8c 75 6c 	ori r12,r12,0x756c                             
 800b054:	29 8f 00 28 	lw r15,(r12+40)                                
 800b058:	29 8d 00 24 	lw r13,(r12+36)                                
 800b05c:	b9 e0 08 00 	mv r1,r15                                      
 800b060:	b9 a0 10 00 	mv r2,r13                                      
 800b064:	f8 00 2e 8f 	calli 8016aa0 <__umodsi3>                      
 800b068:	b8 20 70 00 	mv r14,r1                                      
    return RTEMS_INVALID_NUMBER;                                      
 800b06c:	34 03 00 0a 	mvi r3,10                                      
    return RTEMS_CALLED_FROM_ISR;                                     
                                                                      
  /*                                                                  
   * Check the configuration table values.                            
   */                                                                 
  if ((bdbuf_config.buffer_max % bdbuf_config.buffer_min) != 0)       
 800b070:	5c 2b 01 04 	bne r1,r11,800b480 <rtems_bdbuf_init+0x480>    <== NEVER TAKEN
   * We use a special variable to manage the initialisation incase we have
   * completing threads doing this. You may get errors if the another thread
   * makes a call and we have not finished initialisation.            
   */                                                                 
  prev_mode = rtems_bdbuf_disable_preemption ();                      
  if (bdbuf_cache.initialised)                                        
 800b074:	78 0b 08 01 	mvhi r11,0x801                                 
 800b078:	39 6b 96 f8 	ori r11,r11,0x96f8                             
  /*                                                                  
   * We use a special variable to manage the initialisation incase we have
   * completing threads doing this. You may get errors if the another thread
   * makes a call and we have not finished initialisation.            
   */                                                                 
  prev_mode = rtems_bdbuf_disable_preemption ();                      
 800b07c:	fb ff f9 77 	calli 8009658 <rtems_bdbuf_disable_preemption> 
  if (bdbuf_cache.initialised)                                        
 800b080:	41 70 00 95 	lbu r16,(r11+149)                              
  /*                                                                  
   * We use a special variable to manage the initialisation incase we have
   * completing threads doing this. You may get errors if the another thread
   * makes a call and we have not finished initialisation.            
   */                                                                 
  prev_mode = rtems_bdbuf_disable_preemption ();                      
 800b084:	b8 20 88 00 	mv r17,r1                                      
  if (bdbuf_cache.initialised)                                        
 800b088:	46 0e 00 04 	be r16,r14,800b098 <rtems_bdbuf_init+0x98>     <== ALWAYS TAKEN
  {                                                                   
    rtems_bdbuf_restore_preemption (prev_mode);                       
 800b08c:	fb ff f9 81 	calli 8009690 <rtems_bdbuf_restore_preemption> <== NOT EXECUTED
    return RTEMS_RESOURCE_IN_USE;                                     
 800b090:	34 03 00 0c 	mvi r3,12                                      <== NOT EXECUTED
 800b094:	e0 00 00 fb 	bi 800b480 <rtems_bdbuf_init+0x480>            <== NOT EXECUTED
  }                                                                   
                                                                      
  memset(&bdbuf_cache, 0, sizeof(bdbuf_cache));                       
 800b098:	34 02 00 00 	mvi r2,0                                       
 800b09c:	34 03 00 98 	mvi r3,152                                     
 800b0a0:	b9 60 08 00 	mv r1,r11                                      
 800b0a4:	f8 00 19 91 	calli 80116e8 <memset>                         
  bdbuf_cache.initialised = true;                                     
 800b0a8:	34 01 00 01 	mvi r1,1                                       
 800b0ac:	31 61 00 95 	sb (r11+149),r1                                
  rtems_bdbuf_restore_preemption (prev_mode);                         
 800b0b0:	ba 20 08 00 	mv r1,r17                                      
 800b0b4:	fb ff f9 77 	calli 8009690 <rtems_bdbuf_restore_preemption> 
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 800b0b8:	78 02 08 01 	mvhi r2,0x801                                  
 800b0bc:	38 42 97 04 	ori r2,r2,0x9704                               
 800b0c0:	59 62 00 08 	sw (r11+8),r2                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
 800b0c4:	78 02 08 01 	mvhi r2,0x801                                  
 800b0c8:	38 42 97 00 	ori r2,r2,0x9700                               
 800b0cc:	59 62 00 10 	sw (r11+16),r2                                 
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 800b0d0:	78 02 08 01 	mvhi r2,0x801                                  
 800b0d4:	38 42 97 3c 	ori r2,r2,0x973c                               
 800b0d8:	59 62 00 40 	sw (r11+64),r2                                 
  head->previous = NULL;                                              
  tail->previous = head;                                              
 800b0dc:	78 02 08 01 	mvhi r2,0x801                                  
 800b0e0:	38 42 97 38 	ori r2,r2,0x9738                               
 800b0e4:	59 62 00 48 	sw (r11+72),r2                                 
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 800b0e8:	78 02 08 01 	mvhi r2,0x801                                  
 800b0ec:	38 42 97 48 	ori r2,r2,0x9748                               
 800b0f0:	59 62 00 4c 	sw (r11+76),r2                                 
  head->previous = NULL;                                              
  tail->previous = head;                                              
 800b0f4:	78 02 08 01 	mvhi r2,0x801                                  
 800b0f8:	38 42 97 44 	ori r2,r2,0x9744                               
 800b0fc:	59 62 00 54 	sw (r11+84),r2                                 
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 800b100:	78 02 08 01 	mvhi r2,0x801                                  
 800b104:	38 42 97 54 	ori r2,r2,0x9754                               
 800b108:	59 62 00 58 	sw (r11+88),r2                                 
  head->previous = NULL;                                              
  tail->previous = head;                                              
 800b10c:	78 02 08 01 	mvhi r2,0x801                                  
 800b110:	38 42 97 50 	ori r2,r2,0x9750                               
 800b114:	59 62 00 60 	sw (r11+96),r2                                 
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 800b118:	78 02 08 01 	mvhi r2,0x801                                  
 800b11c:	38 42 97 84 	ori r2,r2,0x9784                               
 800b120:	59 62 00 88 	sw (r11+136),r2                                
  head->previous = NULL;                                              
  tail->previous = head;                                              
 800b124:	78 02 08 01 	mvhi r2,0x801                                  
 800b128:	38 42 97 80 	ori r2,r2,0x9780                               
 800b12c:	59 62 00 90 	sw (r11+144),r2                                
  rtems_chain_initialize_empty (&bdbuf_cache.read_ahead_chain);       
                                                                      
  /*                                                                  
   * Create the locks for the cache.                                  
   */                                                                 
  sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'l'), 
 800b130:	78 02 08 01 	mvhi r2,0x801                                  
 800b134:	38 42 7a 64 	ori r2,r2,0x7a64                               
 800b138:	28 41 00 00 	lw r1,(r2+0)                                   
 800b13c:	78 05 08 01 	mvhi r5,0x801                                  
   */                                                                 
  cache_aligment = 32; /* FIXME rtems_cache_get_data_line_size() */   
  if (cache_aligment <= 0)                                            
    cache_aligment = CPU_ALIGNMENT;                                   
                                                                      
  bdbuf_cache.sync_device = BDBUF_INVALID_DEV;                        
 800b140:	59 60 00 38 	sw (r11+56),r0                                 
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
 800b144:	59 60 00 0c 	sw (r11+12),r0                                 
 800b148:	59 60 00 44 	sw (r11+68),r0                                 
 800b14c:	59 60 00 50 	sw (r11+80),r0                                 
 800b150:	59 60 00 5c 	sw (r11+92),r0                                 
 800b154:	59 60 00 8c 	sw (r11+140),r0                                
  rtems_chain_initialize_empty (&bdbuf_cache.read_ahead_chain);       
                                                                      
  /*                                                                  
   * Create the locks for the cache.                                  
   */                                                                 
  sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'l'), 
 800b158:	34 02 00 01 	mvi r2,1                                       
 800b15c:	34 03 00 54 	mvi r3,84                                      
 800b160:	34 04 00 00 	mvi r4,0                                       
 800b164:	38 a5 97 20 	ori r5,r5,0x9720                               
 800b168:	fb ff e6 c5 	calli 8004c7c <rtems_semaphore_create>         
 800b16c:	b8 20 70 00 	mv r14,r1                                      
                               1, RTEMS_BDBUF_CACHE_LOCK_ATTRIBS, 0,  
                               &bdbuf_cache.lock);                    
  if (sc != RTEMS_SUCCESSFUL)                                         
 800b170:	5c 30 00 a1 	bne r1,r16,800b3f4 <rtems_bdbuf_init+0x3f4>    <== NEVER TAKEN
    goto error;                                                       
                                                                      
  rtems_bdbuf_lock_cache ();                                          
 800b174:	fb ff f8 a3 	calli 8009400 <rtems_bdbuf_lock_cache>         
                                                                      
  sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 's'), 
 800b178:	78 02 08 01 	mvhi r2,0x801                                  
 800b17c:	38 42 7a 68 	ori r2,r2,0x7a68                               
 800b180:	28 41 00 00 	lw r1,(r2+0)                                   
 800b184:	78 05 08 01 	mvhi r5,0x801                                  
 800b188:	34 02 00 01 	mvi r2,1                                       
 800b18c:	34 03 00 54 	mvi r3,84                                      
 800b190:	34 04 00 00 	mvi r4,0                                       
 800b194:	38 a5 97 24 	ori r5,r5,0x9724                               
 800b198:	fb ff e6 b9 	calli 8004c7c <rtems_semaphore_create>         
 800b19c:	b8 20 80 00 	mv r16,r1                                      
                               1, RTEMS_BDBUF_CACHE_LOCK_ATTRIBS, 0,  
                               &bdbuf_cache.sync_lock);               
  if (sc != RTEMS_SUCCESSFUL)                                         
 800b1a0:	5c 2e 00 95 	bne r1,r14,800b3f4 <rtems_bdbuf_init+0x3f4>    <== NEVER TAKEN
    goto error;                                                       
                                                                      
  sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'a'), 
 800b1a4:	78 02 08 01 	mvhi r2,0x801                                  
 800b1a8:	38 42 7a 6c 	ori r2,r2,0x7a6c                               
 800b1ac:	28 41 00 00 	lw r1,(r2+0)                                   
 800b1b0:	78 05 08 01 	mvhi r5,0x801                                  
 800b1b4:	34 02 00 00 	mvi r2,0                                       
 800b1b8:	34 03 00 24 	mvi r3,36                                      
 800b1bc:	34 04 00 00 	mvi r4,0                                       
 800b1c0:	38 a5 97 60 	ori r5,r5,0x9760                               
 800b1c4:	fb ff e6 ae 	calli 8004c7c <rtems_semaphore_create>         
 800b1c8:	b8 20 70 00 	mv r14,r1                                      
                               0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
                               &bdbuf_cache.access_waiters.sema);     
  if (sc != RTEMS_SUCCESSFUL)                                         
 800b1cc:	5c 30 00 8a 	bne r1,r16,800b3f4 <rtems_bdbuf_init+0x3f4>    <== NEVER TAKEN
    goto error;                                                       
                                                                      
  sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 't'), 
 800b1d0:	78 02 08 01 	mvhi r2,0x801                                  
 800b1d4:	38 42 7a 70 	ori r2,r2,0x7a70                               
 800b1d8:	28 41 00 00 	lw r1,(r2+0)                                   
 800b1dc:	78 05 08 01 	mvhi r5,0x801                                  
 800b1e0:	34 02 00 00 	mvi r2,0                                       
 800b1e4:	34 03 00 24 	mvi r3,36                                      
 800b1e8:	34 04 00 00 	mvi r4,0                                       
 800b1ec:	38 a5 97 68 	ori r5,r5,0x9768                               
 800b1f0:	fb ff e6 a3 	calli 8004c7c <rtems_semaphore_create>         
 800b1f4:	b8 20 80 00 	mv r16,r1                                      
                               0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
                               &bdbuf_cache.transfer_waiters.sema);   
  if (sc != RTEMS_SUCCESSFUL)                                         
 800b1f8:	5c 2e 00 7f 	bne r1,r14,800b3f4 <rtems_bdbuf_init+0x3f4>    <== NEVER TAKEN
    goto error;                                                       
                                                                      
  sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'b'), 
 800b1fc:	78 02 08 01 	mvhi r2,0x801                                  
 800b200:	38 42 7a 74 	ori r2,r2,0x7a74                               
 800b204:	28 41 00 00 	lw r1,(r2+0)                                   
 800b208:	78 05 08 01 	mvhi r5,0x801                                  
 800b20c:	34 02 00 00 	mvi r2,0                                       
 800b210:	34 03 00 24 	mvi r3,36                                      
 800b214:	34 04 00 00 	mvi r4,0                                       
 800b218:	38 a5 97 70 	ori r5,r5,0x9770                               
 800b21c:	fb ff e6 98 	calli 8004c7c <rtems_semaphore_create>         
 800b220:	b8 20 70 00 	mv r14,r1                                      
                               0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
                               &bdbuf_cache.buffer_waiters.sema);     
  if (sc != RTEMS_SUCCESSFUL)                                         
 800b224:	5c 30 00 74 	bne r1,r16,800b3f4 <rtems_bdbuf_init+0x3f4>    <== NEVER TAKEN
                                                                      
  /*                                                                  
   * Compute the various number of elements in the cache.             
   */                                                                 
  bdbuf_cache.buffer_min_count =                                      
    bdbuf_config.size / bdbuf_config.buffer_min;                      
 800b228:	29 81 00 20 	lw r1,(r12+32)                                 
 800b22c:	b9 a0 10 00 	mv r2,r13                                      
 800b230:	f8 00 2e 0c 	calli 8016a60 <__udivsi3>                      
 800b234:	b8 20 60 00 	mv r12,r1                                      
    goto error;                                                       
                                                                      
  /*                                                                  
   * Compute the various number of elements in the cache.             
   */                                                                 
  bdbuf_cache.buffer_min_count =                                      
 800b238:	59 61 00 1c 	sw (r11+28),r1                                 
    bdbuf_config.size / bdbuf_config.buffer_min;                      
  bdbuf_cache.max_bds_per_group =                                     
    bdbuf_config.buffer_max / bdbuf_config.buffer_min;                
 800b23c:	b9 a0 10 00 	mv r2,r13                                      
 800b240:	b9 e0 08 00 	mv r1,r15                                      
 800b244:	f8 00 2e 07 	calli 8016a60 <__udivsi3>                      
 800b248:	b8 20 10 00 	mv r2,r1                                       
  /*                                                                  
   * Compute the various number of elements in the cache.             
   */                                                                 
  bdbuf_cache.buffer_min_count =                                      
    bdbuf_config.size / bdbuf_config.buffer_min;                      
  bdbuf_cache.max_bds_per_group =                                     
 800b24c:	59 61 00 20 	sw (r11+32),r1                                 
    bdbuf_config.buffer_max / bdbuf_config.buffer_min;                
  bdbuf_cache.group_count =                                           
    bdbuf_cache.buffer_min_count / bdbuf_cache.max_bds_per_group;     
 800b250:	b9 80 08 00 	mv r1,r12                                      
 800b254:	f8 00 2e 03 	calli 8016a60 <__udivsi3>                      
   */                                                                 
  bdbuf_cache.buffer_min_count =                                      
    bdbuf_config.size / bdbuf_config.buffer_min;                      
  bdbuf_cache.max_bds_per_group =                                     
    bdbuf_config.buffer_max / bdbuf_config.buffer_min;                
  bdbuf_cache.group_count =                                           
 800b258:	59 61 00 7c 	sw (r11+124),r1                                
    bdbuf_cache.buffer_min_count / bdbuf_cache.max_bds_per_group;     
 800b25c:	b8 20 78 00 	mv r15,r1                                      
                                                                      
  /*                                                                  
   * Allocate the memory for the buffer descriptors.                  
   */                                                                 
  bdbuf_cache.bds = calloc (sizeof (rtems_bdbuf_buffer),              
 800b260:	b9 80 10 00 	mv r2,r12                                      
 800b264:	34 01 00 38 	mvi r1,56                                      
 800b268:	fb ff dd 60 	calli 80027e8 <calloc>                         
 800b26c:	59 61 00 14 	sw (r11+20),r1                                 
                            bdbuf_cache.buffer_min_count);            
  if (!bdbuf_cache.bds)                                               
 800b270:	44 2e 00 61 	be r1,r14,800b3f4 <rtems_bdbuf_init+0x3f4>     <== NEVER TAKEN
    goto error;                                                       
                                                                      
  /*                                                                  
   * Allocate the memory for the buffer descriptors.                  
   */                                                                 
  bdbuf_cache.groups = calloc (sizeof (rtems_bdbuf_group),            
 800b274:	34 01 00 14 	mvi r1,20                                      
 800b278:	b9 e0 10 00 	mv r2,r15                                      
 800b27c:	fb ff dd 5b 	calli 80027e8 <calloc>                         
 800b280:	59 61 00 80 	sw (r11+128),r1                                
                               bdbuf_cache.group_count);              
  if (!bdbuf_cache.groups)                                            
 800b284:	44 2e 00 5c 	be r1,r14,800b3f4 <rtems_bdbuf_init+0x3f4>     <== NEVER TAKEN
   *                                                                  
   * The memory allocate allows a                                     
   */                                                                 
  if (rtems_memalign ((void **) &bdbuf_cache.buffers,                 
                      cache_aligment,                                 
                      bdbuf_cache.buffer_min_count * bdbuf_config.buffer_min) != 0)
 800b288:	b9 a0 10 00 	mv r2,r13                                      
   * aligned. It is possible to free the memory allocated by rtems_memalign()
   * with free(). Return 0 if allocated.                              
   *                                                                  
   * The memory allocate allows a                                     
   */                                                                 
  if (rtems_memalign ((void **) &bdbuf_cache.buffers,                 
 800b28c:	78 0b 08 01 	mvhi r11,0x801                                 
                      cache_aligment,                                 
                      bdbuf_cache.buffer_min_count * bdbuf_config.buffer_min) != 0)
 800b290:	b9 80 08 00 	mv r1,r12                                      
 800b294:	f8 00 2d 8e 	calli 80168cc <__mulsi3>                       
   * aligned. It is possible to free the memory allocated by rtems_memalign()
   * with free(). Return 0 if allocated.                              
   *                                                                  
   * The memory allocate allows a                                     
   */                                                                 
  if (rtems_memalign ((void **) &bdbuf_cache.buffers,                 
 800b298:	39 6b 97 10 	ori r11,r11,0x9710                             
                      cache_aligment,                                 
                      bdbuf_cache.buffer_min_count * bdbuf_config.buffer_min) != 0)
 800b29c:	b8 20 18 00 	mv r3,r1                                       
   * aligned. It is possible to free the memory allocated by rtems_memalign()
   * with free(). Return 0 if allocated.                              
   *                                                                  
   * The memory allocate allows a                                     
   */                                                                 
  if (rtems_memalign ((void **) &bdbuf_cache.buffers,                 
 800b2a0:	34 02 00 20 	mvi r2,32                                      
 800b2a4:	b9 60 08 00 	mv r1,r11                                      
 800b2a8:	f8 00 08 11 	calli 800d2ec <rtems_memalign>                 
 800b2ac:	5c 20 00 52 	bne r1,r0,800b3f4 <rtems_bdbuf_init+0x3f4>     <== NEVER TAKEN
                                                                      
  /*                                                                  
   * The cache is empty after opening so we need to add all the buffers to it
   * and initialise the groups.                                       
   */                                                                 
  for (b = 0, group = bdbuf_cache.groups,                             
 800b2b0:	78 01 08 01 	mvhi r1,0x801                                  
 800b2b4:	38 21 96 f8 	ori r1,r1,0x96f8                               
 800b2b8:	28 2c 00 80 	lw r12,(r1+128)                                
         bd = bdbuf_cache.bds, buffer = bdbuf_cache.buffers;          
 800b2bc:	28 2e 00 14 	lw r14,(r1+20)                                 
    bd->group  = group;                                               
    bd->buffer = buffer;                                              
                                                                      
    rtems_chain_append_unprotected (&bdbuf_cache.lru, &bd->link);     
                                                                      
    if ((b % bdbuf_cache.max_bds_per_group) ==                        
 800b2c0:	28 33 00 20 	lw r19,(r1+32)                                 
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
 800b2c4:	78 10 08 01 	mvhi r16,0x801                                 
  /*                                                                  
   * The cache is empty after opening so we need to add all the buffers to it
   * and initialise the groups.                                       
   */                                                                 
  for (b = 0, group = bdbuf_cache.groups,                             
         bd = bdbuf_cache.bds, buffer = bdbuf_cache.buffers;          
 800b2c8:	28 32 00 18 	lw r18,(r1+24)                                 
       b < bdbuf_cache.buffer_min_count;                              
 800b2cc:	28 35 00 1c 	lw r21,(r1+28)                                 
    bd->buffer = buffer;                                              
                                                                      
    rtems_chain_append_unprotected (&bdbuf_cache.lru, &bd->link);     
                                                                      
    if ((b % bdbuf_cache.max_bds_per_group) ==                        
        (bdbuf_cache.max_bds_per_group - 1))                          
 800b2d0:	36 74 ff ff 	addi r20,r19,-1                                
 800b2d4:	28 23 00 48 	lw r3,(r1+72)                                  
  /*                                                                  
   * The cache is empty after opening so we need to add all the buffers to it
   * and initialise the groups.                                       
   */                                                                 
  for (b = 0, group = bdbuf_cache.groups,                             
         bd = bdbuf_cache.bds, buffer = bdbuf_cache.buffers;          
 800b2d8:	b9 c0 58 00 	mv r11,r14                                     
                                                                      
  /*                                                                  
   * The cache is empty after opening so we need to add all the buffers to it
   * and initialise the groups.                                       
   */                                                                 
  for (b = 0, group = bdbuf_cache.groups,                             
 800b2dc:	b9 80 88 00 	mv r17,r12                                     
 800b2e0:	34 0f 00 00 	mvi r15,0                                      
 800b2e4:	3a 10 97 3c 	ori r16,r16,0x973c                             
 800b2e8:	e0 00 00 11 	bi 800b32c <rtems_bdbuf_init+0x32c>            
         bd = bdbuf_cache.bds, buffer = bdbuf_cache.buffers;          
       b < bdbuf_cache.buffer_min_count;                              
       b++, bd++, buffer += bdbuf_config.buffer_min)                  
  {                                                                   
    bd->dd    = BDBUF_INVALID_DEV;                                    
 800b2ec:	59 60 00 14 	sw (r11+20),r0                                 
    bd->group  = group;                                               
 800b2f0:	59 71 00 28 	sw (r11+40),r17                                
    bd->buffer = buffer;                                              
 800b2f4:	59 72 00 1c 	sw (r11+28),r18                                
 800b2f8:	59 70 00 00 	sw (r11+0),r16                                 
  tail->previous = the_node;                                          
  old_last->next = the_node;                                          
 800b2fc:	58 6b 00 00 	sw (r3+0),r11                                  
  the_node->previous = old_last;                                      
 800b300:	59 63 00 04 	sw (r11+4),r3                                  
                                                                      
    rtems_chain_append_unprotected (&bdbuf_cache.lru, &bd->link);     
                                                                      
    if ((b % bdbuf_cache.max_bds_per_group) ==                        
 800b304:	b9 e0 08 00 	mv r1,r15                                      
 800b308:	ba 60 10 00 	mv r2,r19                                      
  {                                                                   
    bd->dd    = BDBUF_INVALID_DEV;                                    
    bd->group  = group;                                               
    bd->buffer = buffer;                                              
                                                                      
    rtems_chain_append_unprotected (&bdbuf_cache.lru, &bd->link);     
 800b30c:	b9 60 b0 00 	mv r22,r11                                     
                                                                      
    if ((b % bdbuf_cache.max_bds_per_group) ==                        
 800b310:	f8 00 2d e4 	calli 8016aa0 <__umodsi3>                      
 800b314:	5c 34 00 02 	bne r1,r20,800b31c <rtems_bdbuf_init+0x31c>    
        (bdbuf_cache.max_bds_per_group - 1))                          
      group++;                                                        
 800b318:	36 31 00 14 	addi r17,r17,20                                
   * and initialise the groups.                                       
   */                                                                 
  for (b = 0, group = bdbuf_cache.groups,                             
         bd = bdbuf_cache.bds, buffer = bdbuf_cache.buffers;          
       b < bdbuf_cache.buffer_min_count;                              
       b++, bd++, buffer += bdbuf_config.buffer_min)                  
 800b31c:	35 ef 00 01 	addi r15,r15,1                                 
 800b320:	35 6b 00 38 	addi r11,r11,56                                
 800b324:	b6 4d 90 00 	add r18,r18,r13                                
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
  tail->previous = the_node;                                          
 800b328:	ba c0 18 00 	mv r3,r22                                      
                                                                      
  /*                                                                  
   * The cache is empty after opening so we need to add all the buffers to it
   * and initialise the groups.                                       
   */                                                                 
  for (b = 0, group = bdbuf_cache.groups,                             
 800b32c:	56 af ff f0 	bgu r21,r15,800b2ec <rtems_bdbuf_init+0x2ec>   
 800b330:	78 01 08 01 	mvhi r1,0x801                                  
 800b334:	38 21 96 f8 	ori r1,r1,0x96f8                               
       b < bdbuf_cache.group_count;                                   
       b++,                                                           
         group++,                                                     
         bd += bdbuf_cache.max_bds_per_group)                         
  {                                                                   
    group->bds_per_group = bdbuf_cache.max_bds_per_group;             
 800b338:	28 2b 00 20 	lw r11,(r1+32)                                 
                                                                      
  /*                                                                  
   * The cache is empty after opening so we need to add all the buffers to it
   * and initialise the groups.                                       
   */                                                                 
  for (b = 0, group = bdbuf_cache.groups,                             
 800b33c:	58 23 00 48 	sw (r1+72),r3                                  
         group = bdbuf_cache.groups,                                  
         bd = bdbuf_cache.bds;                                        
       b < bdbuf_cache.group_count;                                   
       b++,                                                           
         group++,                                                     
         bd += bdbuf_cache.max_bds_per_group)                         
 800b340:	34 02 00 38 	mvi r2,56                                      
  }                                                                   
                                                                      
  for (b = 0,                                                         
         group = bdbuf_cache.groups,                                  
         bd = bdbuf_cache.bds;                                        
       b < bdbuf_cache.group_count;                                   
 800b344:	28 2d 00 7c 	lw r13,(r1+124)                                
       b++,                                                           
         group++,                                                     
         bd += bdbuf_cache.max_bds_per_group)                         
 800b348:	b9 60 08 00 	mv r1,r11                                      
 800b34c:	f8 00 2d 60 	calli 80168cc <__mulsi3>                       
 800b350:	34 02 00 00 	mvi r2,0                                       
 800b354:	e0 00 00 06 	bi 800b36c <rtems_bdbuf_init+0x36c>            
  {                                                                   
    group->bds_per_group = bdbuf_cache.max_bds_per_group;             
    group->bdbuf = bd;                                                
 800b358:	59 8e 00 10 	sw (r12+16),r14                                
       b < bdbuf_cache.group_count;                                   
       b++,                                                           
         group++,                                                     
         bd += bdbuf_cache.max_bds_per_group)                         
  {                                                                   
    group->bds_per_group = bdbuf_cache.max_bds_per_group;             
 800b35c:	59 8b 00 08 	sw (r12+8),r11                                 
                                                                      
  for (b = 0,                                                         
         group = bdbuf_cache.groups,                                  
         bd = bdbuf_cache.bds;                                        
       b < bdbuf_cache.group_count;                                   
       b++,                                                           
 800b360:	34 42 00 01 	addi r2,r2,1                                   
         group++,                                                     
 800b364:	35 8c 00 14 	addi r12,r12,20                                
         bd += bdbuf_cache.max_bds_per_group)                         
 800b368:	b5 c1 70 00 	add r14,r14,r1                                 
    if ((b % bdbuf_cache.max_bds_per_group) ==                        
        (bdbuf_cache.max_bds_per_group - 1))                          
      group++;                                                        
  }                                                                   
                                                                      
  for (b = 0,                                                         
 800b36c:	55 a2 ff fb 	bgu r13,r2,800b358 <rtems_bdbuf_init+0x358>    
   * Create and start swapout task. This task will create and manage the worker
   * threads.                                                         
   */                                                                 
  bdbuf_cache.swapout_enabled = true;                                 
                                                                      
  sc = rtems_bdbuf_create_task (rtems_build_name('B', 'S', 'W', 'P'), 
 800b370:	78 0b 08 01 	mvhi r11,0x801                                 
 800b374:	78 02 08 01 	mvhi r2,0x801                                  
 800b378:	38 42 7a 78 	ori r2,r2,0x7a78                               
 800b37c:	39 6b 75 6c 	ori r11,r11,0x756c                             
                                                                      
  /*                                                                  
   * Create and start swapout task. This task will create and manage the worker
   * threads.                                                         
   */                                                                 
  bdbuf_cache.swapout_enabled = true;                                 
 800b380:	78 0c 08 01 	mvhi r12,0x801                                 
                                                                      
  sc = rtems_bdbuf_create_task (rtems_build_name('B', 'S', 'W', 'P'), 
 800b384:	28 41 00 00 	lw r1,(r2+0)                                   
 800b388:	29 62 00 08 	lw r2,(r11+8)                                  
                                                                      
  /*                                                                  
   * Create and start swapout task. This task will create and manage the worker
   * threads.                                                         
   */                                                                 
  bdbuf_cache.swapout_enabled = true;                                 
 800b38c:	39 8c 96 f8 	ori r12,r12,0x96f8                             
 800b390:	34 0d 00 01 	mvi r13,1                                      
                                                                      
  sc = rtems_bdbuf_create_task (rtems_build_name('B', 'S', 'W', 'P'), 
 800b394:	78 03 08 00 	mvhi r3,0x800                                  
                                                                      
  /*                                                                  
   * Create and start swapout task. This task will create and manage the worker
   * threads.                                                         
   */                                                                 
  bdbuf_cache.swapout_enabled = true;                                 
 800b398:	31 8d 00 04 	sb (r12+4),r13                                 
                                                                      
  sc = rtems_bdbuf_create_task (rtems_build_name('B', 'S', 'W', 'P'), 
 800b39c:	38 63 a1 88 	ori r3,r3,0xa188                               
 800b3a0:	34 04 00 00 	mvi r4,0                                       
 800b3a4:	b9 80 28 00 	mv r5,r12                                      
 800b3a8:	fb ff f9 4c 	calli 80098d8 <rtems_bdbuf_create_task.clone.11>
                                bdbuf_config.swapout_priority,        
                                RTEMS_BDBUF_SWAPOUT_TASK_PRIORITY_DEFAULT,
                                rtems_bdbuf_swapout_task,             
                                0,                                    
                                &bdbuf_cache.swapout);                
  if (sc != RTEMS_SUCCESSFUL)                                         
 800b3ac:	5c 20 00 12 	bne r1,r0,800b3f4 <rtems_bdbuf_init+0x3f4>     <== NEVER TAKEN
    goto error;                                                       
                                                                      
  if (bdbuf_config.max_read_ahead_blocks > 0)                         
 800b3b0:	29 62 00 00 	lw r2,(r11+0)                                  
 800b3b4:	44 41 00 0d 	be r2,r1,800b3e8 <rtems_bdbuf_init+0x3e8>      
  {                                                                   
    bdbuf_cache.read_ahead_enabled = true;                            
    sc = rtems_bdbuf_create_task (rtems_build_name('B', 'R', 'D', 'A'),
 800b3b8:	78 02 08 01 	mvhi r2,0x801                                  
 800b3bc:	38 42 7a 7c 	ori r2,r2,0x7a7c                               
 800b3c0:	28 41 00 00 	lw r1,(r2+0)                                   
 800b3c4:	29 62 00 2c 	lw r2,(r11+44)                                 
 800b3c8:	78 03 08 00 	mvhi r3,0x800                                  
 800b3cc:	78 05 08 01 	mvhi r5,0x801                                  
  if (sc != RTEMS_SUCCESSFUL)                                         
    goto error;                                                       
                                                                      
  if (bdbuf_config.max_read_ahead_blocks > 0)                         
  {                                                                   
    bdbuf_cache.read_ahead_enabled = true;                            
 800b3d0:	31 8d 00 94 	sb (r12+148),r13                               
    sc = rtems_bdbuf_create_task (rtems_build_name('B', 'R', 'D', 'A'),
 800b3d4:	38 63 ac 18 	ori r3,r3,0xac18                               
 800b3d8:	34 04 00 00 	mvi r4,0                                       
 800b3dc:	38 a5 97 7c 	ori r5,r5,0x977c                               
 800b3e0:	fb ff f9 3e 	calli 80098d8 <rtems_bdbuf_create_task.clone.11>
                                  bdbuf_config.read_ahead_priority,   
                                  RTEMS_BDBUF_READ_AHEAD_TASK_PRIORITY_DEFAULT,
                                  rtems_bdbuf_read_ahead_task,        
                                  0,                                  
                                  &bdbuf_cache.read_ahead_task);      
    if (sc != RTEMS_SUCCESSFUL)                                       
 800b3e4:	5c 20 00 04 	bne r1,r0,800b3f4 <rtems_bdbuf_init+0x3f4>     <== NEVER TAKEN
      goto error;                                                     
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
 800b3e8:	fb ff f8 32 	calli 80094b0 <rtems_bdbuf_unlock_cache>       
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800b3ec:	34 03 00 00 	mvi r3,0                                       
 800b3f0:	e0 00 00 24 	bi 800b480 <rtems_bdbuf_init+0x480>            
                                                                      
error:                                                                
                                                                      
  if (bdbuf_cache.read_ahead_task != 0)                               
 800b3f4:	78 01 08 01 	mvhi r1,0x801                                  <== NOT EXECUTED
 800b3f8:	38 21 96 f8 	ori r1,r1,0x96f8                               <== NOT EXECUTED
 800b3fc:	28 21 00 84 	lw r1,(r1+132)                                 <== NOT EXECUTED
 800b400:	44 20 00 02 	be r1,r0,800b408 <rtems_bdbuf_init+0x408>      <== NOT EXECUTED
    rtems_task_delete (bdbuf_cache.read_ahead_task);                  
 800b404:	f8 00 0a e5 	calli 800df98 <rtems_task_delete>              <== NOT EXECUTED
                                                                      
  if (bdbuf_cache.swapout != 0)                                       
 800b408:	78 01 08 01 	mvhi r1,0x801                                  <== NOT EXECUTED
 800b40c:	38 21 96 f8 	ori r1,r1,0x96f8                               <== NOT EXECUTED
 800b410:	28 21 00 00 	lw r1,(r1+0)                                   <== NOT EXECUTED
 800b414:	44 20 00 02 	be r1,r0,800b41c <rtems_bdbuf_init+0x41c>      <== NOT EXECUTED
    rtems_task_delete (bdbuf_cache.swapout);                          
 800b418:	f8 00 0a e0 	calli 800df98 <rtems_task_delete>              <== NOT EXECUTED
                                                                      
  free (bdbuf_cache.buffers);                                         
 800b41c:	78 0b 08 01 	mvhi r11,0x801                                 <== NOT EXECUTED
 800b420:	39 6b 96 f8 	ori r11,r11,0x96f8                             <== NOT EXECUTED
 800b424:	29 61 00 18 	lw r1,(r11+24)                                 <== NOT EXECUTED
 800b428:	fb ff dd 3a 	calli 8002910 <free>                           <== NOT EXECUTED
  free (bdbuf_cache.groups);                                          
 800b42c:	29 61 00 80 	lw r1,(r11+128)                                <== NOT EXECUTED
 800b430:	fb ff dd 38 	calli 8002910 <free>                           <== NOT EXECUTED
  free (bdbuf_cache.bds);                                             
 800b434:	29 61 00 14 	lw r1,(r11+20)                                 <== NOT EXECUTED
 800b438:	fb ff dd 36 	calli 8002910 <free>                           <== NOT EXECUTED
                                                                      
  rtems_semaphore_delete (bdbuf_cache.buffer_waiters.sema);           
 800b43c:	29 61 00 78 	lw r1,(r11+120)                                <== NOT EXECUTED
 800b440:	fb ff e6 8c 	calli 8004e70 <rtems_semaphore_delete>         <== NOT EXECUTED
  rtems_semaphore_delete (bdbuf_cache.access_waiters.sema);           
 800b444:	29 61 00 68 	lw r1,(r11+104)                                <== NOT EXECUTED
 800b448:	fb ff e6 8a 	calli 8004e70 <rtems_semaphore_delete>         <== NOT EXECUTED
  rtems_semaphore_delete (bdbuf_cache.transfer_waiters.sema);         
 800b44c:	29 61 00 70 	lw r1,(r11+112)                                <== NOT EXECUTED
 800b450:	fb ff e6 88 	calli 8004e70 <rtems_semaphore_delete>         <== NOT EXECUTED
  rtems_semaphore_delete (bdbuf_cache.sync_lock);                     
 800b454:	29 61 00 2c 	lw r1,(r11+44)                                 <== NOT EXECUTED
 800b458:	fb ff e6 86 	calli 8004e70 <rtems_semaphore_delete>         <== NOT EXECUTED
                                                                      
  if (bdbuf_cache.lock != 0)                                          
 800b45c:	29 61 00 28 	lw r1,(r11+40)                                 <== NOT EXECUTED
 800b460:	44 20 00 04 	be r1,r0,800b470 <rtems_bdbuf_init+0x470>      <== NOT EXECUTED
  {                                                                   
    rtems_bdbuf_unlock_cache ();                                      
 800b464:	fb ff f8 13 	calli 80094b0 <rtems_bdbuf_unlock_cache>       <== NOT EXECUTED
    rtems_semaphore_delete (bdbuf_cache.lock);                        
 800b468:	29 61 00 28 	lw r1,(r11+40)                                 <== NOT EXECUTED
 800b46c:	fb ff e6 81 	calli 8004e70 <rtems_semaphore_delete>         <== NOT EXECUTED
  }                                                                   
                                                                      
  bdbuf_cache.initialised = false;                                    
 800b470:	78 01 08 01 	mvhi r1,0x801                                  <== NOT EXECUTED
 800b474:	38 21 96 f8 	ori r1,r1,0x96f8                               <== NOT EXECUTED
 800b478:	30 20 00 95 	sb (r1+149),r0                                 <== NOT EXECUTED
                                                                      
  return RTEMS_UNSATISFIED;                                           
 800b47c:	34 03 00 0d 	mvi r3,13                                      <== NOT EXECUTED
}                                                                     
 800b480:	b8 60 08 00 	mv r1,r3                                       
 800b484:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800b488:	2b 8b 00 34 	lw r11,(sp+52)                                 
 800b48c:	2b 8c 00 30 	lw r12,(sp+48)                                 
 800b490:	2b 8d 00 2c 	lw r13,(sp+44)                                 
 800b494:	2b 8e 00 28 	lw r14,(sp+40)                                 
 800b498:	2b 8f 00 24 	lw r15,(sp+36)                                 
 800b49c:	2b 90 00 20 	lw r16,(sp+32)                                 
 800b4a0:	2b 91 00 1c 	lw r17,(sp+28)                                 
 800b4a4:	2b 92 00 18 	lw r18,(sp+24)                                 
 800b4a8:	2b 93 00 14 	lw r19,(sp+20)                                 
 800b4ac:	2b 94 00 10 	lw r20,(sp+16)                                 
 800b4b0:	2b 95 00 0c 	lw r21,(sp+12)                                 
 800b4b4:	2b 96 00 08 	lw r22,(sp+8)                                  
 800b4b8:	37 9c 00 34 	addi sp,sp,52                                  
 800b4bc:	c3 a0 00 00 	ret                                            
                                                                      

080093c8 <rtems_bdbuf_lock>: * @param lock The mutex to lock. * @param fatal_error_code The error code if the call fails. */ static void rtems_bdbuf_lock (rtems_id lock, uint32_t fatal_error_code) {
 80093c8:	37 9c ff f8 	addi sp,sp,-8                                  
 80093cc:	5b 8b 00 08 	sw (sp+8),r11                                  
 80093d0:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_status_code sc = rtems_semaphore_obtain (lock,                
 80093d4:	34 03 00 00 	mvi r3,0                                       
 * @param lock The mutex to lock.                                     
 * @param fatal_error_code The error code if the call fails.          
 */                                                                   
static void                                                           
rtems_bdbuf_lock (rtems_id lock, uint32_t fatal_error_code)           
{                                                                     
 80093d8:	b8 40 58 00 	mv r11,r2                                      
  rtems_status_code sc = rtems_semaphore_obtain (lock,                
 80093dc:	34 02 00 00 	mvi r2,0                                       
 80093e0:	fb ff ee d3 	calli 8004f2c <rtems_semaphore_obtain>         
                                                 RTEMS_WAIT,          
                                                 RTEMS_NO_TIMEOUT);   
  if (sc != RTEMS_SUCCESSFUL)                                         
 80093e4:	44 20 00 03 	be r1,r0,80093f0 <rtems_bdbuf_lock+0x28>       <== ALWAYS TAKEN
    rtems_bdbuf_fatal (fatal_error_code);                             
 80093e8:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 80093ec:	fb ff ff f2 	calli 80093b4 <rtems_bdbuf_fatal>              <== NOT EXECUTED
}                                                                     
 80093f0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80093f4:	2b 8b 00 08 	lw r11,(sp+8)                                  
 80093f8:	37 9c 00 08 	addi sp,sp,8                                   
 80093fc:	c3 a0 00 00 	ret                                            
                                                                      

0800bae0 <rtems_bdbuf_purge_dev>: } } void rtems_bdbuf_purge_dev (rtems_disk_device *dd) {
 800bae0:	37 9c ff 50 	addi sp,sp,-176                                
 800bae4:	5b 8b 00 24 	sw (sp+36),r11                                 
 800bae8:	5b 8c 00 20 	sw (sp+32),r12                                 
 800baec:	5b 8d 00 1c 	sw (sp+28),r13                                 
 800baf0:	5b 8e 00 18 	sw (sp+24),r14                                 
 800baf4:	5b 8f 00 14 	sw (sp+20),r15                                 
 800baf8:	5b 90 00 10 	sw (sp+16),r16                                 
 800bafc:	5b 91 00 0c 	sw (sp+12),r17                                 
 800bb00:	5b 92 00 08 	sw (sp+8),r18                                  
 800bb04:	5b 9d 00 04 	sw (sp+4),ra                                   
 800bb08:	b8 20 68 00 	mv r13,r1                                      
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 800bb0c:	37 81 00 ac 	addi r1,sp,172                                 
 800bb10:	5b 81 00 a8 	sw (sp+168),r1                                 
  head->previous = NULL;                                              
  tail->previous = head;                                              
 800bb14:	37 81 00 a8 	addi r1,sp,168                                 
 800bb18:	5b 81 00 b0 	sw (sp+176),r1                                 
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
 800bb1c:	5b 80 00 ac 	sw (sp+172),r0                                 
  rtems_chain_control purge_list;                                     
                                                                      
  rtems_chain_initialize_empty (&purge_list);                         
  rtems_bdbuf_lock_cache ();                                          
 800bb20:	fb ff f6 38 	calli 8009400 <rtems_bdbuf_lock_cache>         
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_node_off_chain(                   
  const Chain_Node *node                                              
)                                                                     
{                                                                     
  return (node->next == NULL) && (node->previous == NULL);            
 800bb24:	29 a1 00 64 	lw r1,(r13+100)                                
 800bb28:	34 02 00 00 	mvi r2,0                                       
 800bb2c:	5c 20 00 03 	bne r1,r0,800bb38 <rtems_bdbuf_purge_dev+0x58> <== NEVER TAKEN
    }                                                                 
  }                                                                   
}                                                                     
                                                                      
void                                                                  
rtems_bdbuf_purge_dev (rtems_disk_device *dd)                         
 800bb30:	29 a2 00 68 	lw r2,(r13+104)                                
 800bb34:	64 42 00 00 	cmpei r2,r2,0                                  
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_read_ahead_cancel (rtems_disk_device *dd)                 
{                                                                     
  if (rtems_bdbuf_is_read_ahead_active (dd))                          
 800bb38:	5c 40 00 06 	bne r2,r0,800bb50 <rtems_bdbuf_purge_dev+0x70> <== ALWAYS TAKEN
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
 800bb3c:	29 a2 00 68 	lw r2,(r13+104)                                <== NOT EXECUTED
  next->previous = previous;                                          
 800bb40:	58 22 00 04 	sw (r1+4),r2                                   <== NOT EXECUTED
  previous->next = next;                                              
 800bb44:	58 41 00 00 	sw (r2+0),r1                                   <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(                       
  Chain_Node *node                                                    
)                                                                     
{                                                                     
  node->next = node->previous = NULL;                                 
 800bb48:	59 a0 00 68 	sw (r13+104),r0                                <== NOT EXECUTED
 800bb4c:	59 a0 00 64 	sw (r13+100),r0                                <== NOT EXECUTED
                                                                      
static void                                                           
rtems_bdbuf_read_ahead_reset (rtems_disk_device *dd)                  
{                                                                     
  rtems_bdbuf_read_ahead_cancel (dd);                                 
  dd->read_ahead.trigger = RTEMS_DISK_READ_AHEAD_NO_TRIGGER;          
 800bb50:	34 01 ff ff 	mvi r1,-1                                      
 800bb54:	59 a1 00 6c 	sw (r13+108),r1                                
rtems_bdbuf_gather_for_purge (rtems_chain_control *purge_list,        
                              const rtems_disk_device *dd)            
{                                                                     
  rtems_bdbuf_buffer *stack [RTEMS_BDBUF_AVL_MAX_HEIGHT];             
  rtems_bdbuf_buffer **prev = stack;                                  
  rtems_bdbuf_buffer *cur = bdbuf_cache.tree;                         
 800bb58:	78 01 08 01 	mvhi r1,0x801                                  
 800bb5c:	38 21 96 f8 	ori r1,r1,0x96f8                               
                                                                      
  while (cur != NULL)                                                 
  {                                                                   
    if (cur->dd == dd)                                                
    {                                                                 
      switch (cur->state)                                             
 800bb60:	78 0f 08 01 	mvhi r15,0x801                                 
        case RTEMS_BDBUF_STATE_EMPTY:                                 
        case RTEMS_BDBUF_STATE_ACCESS_PURGED:                         
        case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                       
          break;                                                      
        case RTEMS_BDBUF_STATE_SYNC:                                  
          rtems_bdbuf_wake (&bdbuf_cache.transfer_waiters);           
 800bb64:	78 0e 08 01 	mvhi r14,0x801                                 
rtems_bdbuf_gather_for_purge (rtems_chain_control *purge_list,        
                              const rtems_disk_device *dd)            
{                                                                     
  rtems_bdbuf_buffer *stack [RTEMS_BDBUF_AVL_MAX_HEIGHT];             
  rtems_bdbuf_buffer **prev = stack;                                  
  rtems_bdbuf_buffer *cur = bdbuf_cache.tree;                         
 800bb68:	28 2b 00 3c 	lw r11,(r1+60)                                 
                                                                      
  *prev = NULL;                                                       
 800bb6c:	5b 80 00 28 	sw (sp+40),r0                                  
static void                                                           
rtems_bdbuf_gather_for_purge (rtems_chain_control *purge_list,        
                              const rtems_disk_device *dd)            
{                                                                     
  rtems_bdbuf_buffer *stack [RTEMS_BDBUF_AVL_MAX_HEIGHT];             
  rtems_bdbuf_buffer **prev = stack;                                  
 800bb70:	37 8c 00 28 	addi r12,sp,40                                 
                                                                      
  while (cur != NULL)                                                 
  {                                                                   
    if (cur->dd == dd)                                                
    {                                                                 
      switch (cur->state)                                             
 800bb74:	34 10 00 0a 	mvi r16,10                                     
 800bb78:	39 ef 7a d4 	ori r15,r15,0x7ad4                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 800bb7c:	34 12 00 06 	mvi r18,6                                      
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
 800bb80:	37 91 00 ac 	addi r17,sp,172                                
        case RTEMS_BDBUF_STATE_EMPTY:                                 
        case RTEMS_BDBUF_STATE_ACCESS_PURGED:                         
        case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                       
          break;                                                      
        case RTEMS_BDBUF_STATE_SYNC:                                  
          rtems_bdbuf_wake (&bdbuf_cache.transfer_waiters);           
 800bb84:	39 ce 97 64 	ori r14,r14,0x9764                             
 800bb88:	e0 00 00 32 	bi 800bc50 <rtems_bdbuf_purge_dev+0x170>       
                                                                      
  *prev = NULL;                                                       
                                                                      
  while (cur != NULL)                                                 
  {                                                                   
    if (cur->dd == dd)                                                
 800bb8c:	29 61 00 14 	lw r1,(r11+20)                                 
 800bb90:	5c 2d 00 1c 	bne r1,r13,800bc00 <rtems_bdbuf_purge_dev+0x120>
    {                                                                 
      switch (cur->state)                                             
 800bb94:	29 61 00 20 	lw r1,(r11+32)                                 
 800bb98:	54 30 00 18 	bgu r1,r16,800bbf8 <rtems_bdbuf_purge_dev+0x118><== NEVER TAKEN
 800bb9c:	34 02 00 02 	mvi r2,2                                       
 800bba0:	f8 00 2a d6 	calli 80166f8 <__ashlsi3>                      
 800bba4:	b5 e1 08 00 	add r1,r15,r1                                  
 800bba8:	28 21 00 00 	lw r1,(r1+0)                                   
 800bbac:	c0 20 00 00 	b r1                                           
        case RTEMS_BDBUF_STATE_EMPTY:                                 
        case RTEMS_BDBUF_STATE_ACCESS_PURGED:                         
        case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                       
          break;                                                      
        case RTEMS_BDBUF_STATE_SYNC:                                  
          rtems_bdbuf_wake (&bdbuf_cache.transfer_waiters);           
 800bbb0:	b9 c0 08 00 	mv r1,r14                                      
 800bbb4:	fb ff f6 53 	calli 8009500 <rtems_bdbuf_wake>               
          /* Fall through */                                          
        case RTEMS_BDBUF_STATE_MODIFIED:                              
          rtems_bdbuf_group_release (cur);                            
 800bbb8:	29 61 00 28 	lw r1,(r11+40)                                 
 800bbbc:	fb ff f7 2c 	calli 800986c <rtems_bdbuf_group_release.clone.8>
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
 800bbc0:	29 61 00 04 	lw r1,(r11+4)                                  
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
 800bbc4:	29 62 00 00 	lw r2,(r11+0)                                  
  previous       = the_node->previous;                                
  next->previous = previous;                                          
 800bbc8:	58 41 00 04 	sw (r2+4),r1                                   
  previous->next = next;                                              
 800bbcc:	58 22 00 00 	sw (r1+0),r2                                   
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
 800bbd0:	2b 81 00 b0 	lw r1,(sp+176)                                 
                                                                      
  the_node->next = tail;                                              
 800bbd4:	59 71 00 00 	sw (r11+0),r17                                 
  tail->previous = the_node;                                          
 800bbd8:	5b 8b 00 b0 	sw (sp+176),r11                                
  old_last->next = the_node;                                          
 800bbdc:	58 2b 00 00 	sw (r1+0),r11                                  
  the_node->previous = old_last;                                      
 800bbe0:	59 61 00 04 	sw (r11+4),r1                                  
 800bbe4:	e0 00 00 07 	bi 800bc00 <rtems_bdbuf_purge_dev+0x120>       
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 800bbe8:	59 70 00 20 	sw (r11+32),r16                                
 800bbec:	e0 00 00 05 	bi 800bc00 <rtems_bdbuf_purge_dev+0x120>       
 800bbf0:	59 72 00 20 	sw (r11+32),r18                                
 800bbf4:	e0 00 00 03 	bi 800bc00 <rtems_bdbuf_purge_dev+0x120>       
        case RTEMS_BDBUF_STATE_ACCESS_EMPTY:                          
        case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                       
          rtems_bdbuf_set_state (cur, RTEMS_BDBUF_STATE_ACCESS_PURGED);
          break;                                                      
        default:                                                      
          rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_STATE_11);             
 800bbf8:	34 01 00 17 	mvi r1,23                                      <== NOT EXECUTED
 800bbfc:	fb ff f5 ee 	calli 80093b4 <rtems_bdbuf_fatal>              <== NOT EXECUTED
      }                                                               
    }                                                                 
                                                                      
    if (cur->avl.left != NULL)                                        
 800bc00:	29 61 00 08 	lw r1,(r11+8)                                  
 800bc04:	44 20 00 05 	be r1,r0,800bc18 <rtems_bdbuf_purge_dev+0x138> 
    {                                                                 
      /* Left */                                                      
      ++prev;                                                         
 800bc08:	35 8c 00 04 	addi r12,r12,4                                 
      *prev = cur;                                                    
 800bc0c:	59 8b 00 00 	sw (r12+0),r11                                 
      cur = cur->avl.left;                                            
 800bc10:	29 6b 00 08 	lw r11,(r11+8)                                 
 800bc14:	e0 00 00 0f 	bi 800bc50 <rtems_bdbuf_purge_dev+0x170>       
    }                                                                 
    else if (cur->avl.right != NULL)                                  
 800bc18:	29 62 00 0c 	lw r2,(r11+12)                                 
 800bc1c:	44 41 00 06 	be r2,r1,800bc34 <rtems_bdbuf_purge_dev+0x154> 
    {                                                                 
      /* Right */                                                     
      ++prev;                                                         
 800bc20:	35 8c 00 04 	addi r12,r12,4                                 
      *prev = cur;                                                    
 800bc24:	59 8b 00 00 	sw (r12+0),r11                                 
      cur = cur->avl.right;                                           
 800bc28:	29 6b 00 0c 	lw r11,(r11+12)                                
 800bc2c:	e0 00 00 09 	bi 800bc50 <rtems_bdbuf_purge_dev+0x170>       
      while (*prev != NULL                                            
             && (cur == (*prev)->avl.right || (*prev)->avl.right == NULL))
      {                                                               
        /* Up */                                                      
        cur = *prev;                                                  
        --prev;                                                       
 800bc30:	35 8c ff fc 	addi r12,r12,-4                                
 800bc34:	b9 60 10 00 	mv r2,r11                                      
      *prev = cur;                                                    
      cur = cur->avl.right;                                           
    }                                                                 
    else                                                              
    {                                                                 
      while (*prev != NULL                                            
 800bc38:	29 8b 00 00 	lw r11,(r12+0)                                 
 800bc3c:	45 60 00 05 	be r11,r0,800bc50 <rtems_bdbuf_purge_dev+0x170>
             && (cur == (*prev)->avl.right || (*prev)->avl.right == NULL))
 800bc40:	29 61 00 0c 	lw r1,(r11+12)                                 
 800bc44:	44 41 ff fb 	be r2,r1,800bc30 <rtems_bdbuf_purge_dev+0x150> 
 800bc48:	44 20 ff fa 	be r1,r0,800bc30 <rtems_bdbuf_purge_dev+0x150> 
 800bc4c:	e0 00 00 1f 	bi 800bcc8 <rtems_bdbuf_purge_dev+0x1e8>       
  rtems_bdbuf_buffer **prev = stack;                                  
  rtems_bdbuf_buffer *cur = bdbuf_cache.tree;                         
                                                                      
  *prev = NULL;                                                       
                                                                      
  while (cur != NULL)                                                 
 800bc50:	5d 60 ff cf 	bne r11,r0,800bb8c <rtems_bdbuf_purge_dev+0xac>
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_tail(         
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return &the_chain->Tail.Node;                                       
 800bc54:	37 8d 00 a8 	addi r13,sp,168                                
 800bc58:	37 8c 00 ac 	addi r12,sp,172                                
 800bc5c:	e0 00 00 03 	bi 800bc68 <rtems_bdbuf_purge_dev+0x188>       
  while ((node = rtems_chain_get_unprotected (purge_list)) != NULL)   
  {                                                                   
    rtems_bdbuf_buffer *bd = (rtems_bdbuf_buffer *) node;             
                                                                      
    if (bd->waiters == 0)                                             
      wake_buffer_waiters = true;                                     
 800bc60:	34 0b 00 01 	mvi r11,1                                      
                                                                      
    rtems_bdbuf_discard_buffer (bd);                                  
 800bc64:	fb ff f8 3d 	calli 8009d58 <rtems_bdbuf_discard_buffer>     
void rtems_bdbuf_reset_device_stats (rtems_disk_device *dd)           
{                                                                     
  rtems_bdbuf_lock_cache ();                                          
  memset (&dd->stats, 0, sizeof(dd->stats));                          
  rtems_bdbuf_unlock_cache ();                                        
}                                                                     
 800bc68:	2b 81 00 a8 	lw r1,(sp+168)                                 
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
 800bc6c:	44 2c 00 07 	be r1,r12,800bc88 <rtems_bdbuf_purge_dev+0x1a8>
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
 800bc70:	28 22 00 00 	lw r2,(r1+0)                                   
                                                                      
  head->next = new_first;                                             
 800bc74:	5b 82 00 a8 	sw (sp+168),r2                                 
  new_first->previous = head;                                         
 800bc78:	58 4d 00 04 	sw (r2+4),r13                                  
                                                                      
  while ((node = rtems_chain_get_unprotected (purge_list)) != NULL)   
  {                                                                   
    rtems_bdbuf_buffer *bd = (rtems_bdbuf_buffer *) node;             
                                                                      
    if (bd->waiters == 0)                                             
 800bc7c:	28 22 00 24 	lw r2,(r1+36)                                  
 800bc80:	44 40 ff f8 	be r2,r0,800bc60 <rtems_bdbuf_purge_dev+0x180> 
 800bc84:	e3 ff ff f8 	bi 800bc64 <rtems_bdbuf_purge_dev+0x184>       
      wake_buffer_waiters = true;                                     
                                                                      
    rtems_bdbuf_discard_buffer (bd);                                  
  }                                                                   
                                                                      
  if (wake_buffer_waiters)                                            
 800bc88:	45 60 00 04 	be r11,r0,800bc98 <rtems_bdbuf_purge_dev+0x1b8>
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
 800bc8c:	78 01 08 01 	mvhi r1,0x801                                  
 800bc90:	38 21 97 6c 	ori r1,r1,0x976c                               
 800bc94:	fb ff f6 1b 	calli 8009500 <rtems_bdbuf_wake>               
  rtems_chain_initialize_empty (&purge_list);                         
  rtems_bdbuf_lock_cache ();                                          
  rtems_bdbuf_read_ahead_reset (dd);                                  
  rtems_bdbuf_gather_for_purge (&purge_list, dd);                     
  rtems_bdbuf_purge_list (&purge_list);                               
  rtems_bdbuf_unlock_cache ();                                        
 800bc98:	fb ff f6 06 	calli 80094b0 <rtems_bdbuf_unlock_cache>       
}                                                                     
 800bc9c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800bca0:	2b 8b 00 24 	lw r11,(sp+36)                                 
 800bca4:	2b 8c 00 20 	lw r12,(sp+32)                                 
 800bca8:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 800bcac:	2b 8e 00 18 	lw r14,(sp+24)                                 
 800bcb0:	2b 8f 00 14 	lw r15,(sp+20)                                 
 800bcb4:	2b 90 00 10 	lw r16,(sp+16)                                 
 800bcb8:	2b 91 00 0c 	lw r17,(sp+12)                                 
 800bcbc:	2b 92 00 08 	lw r18,(sp+8)                                  
 800bcc0:	37 9c 00 b0 	addi sp,sp,176                                 
 800bcc4:	c3 a0 00 00 	ret                                            
        cur = *prev;                                                  
        --prev;                                                       
      }                                                               
      if (*prev != NULL)                                              
        /* Right */                                                   
        cur = (*prev)->avl.right;                                     
 800bcc8:	b8 20 58 00 	mv r11,r1                                      
 800bccc:	e3 ff ff e1 	bi 800bc50 <rtems_bdbuf_purge_dev+0x170>       
                                                                      

0800b5bc <rtems_bdbuf_read>: rtems_status_code rtems_bdbuf_read (rtems_disk_device *dd, rtems_blkdev_bnum block, rtems_bdbuf_buffer **bd_ptr) {
 800b5bc:	37 9c ff e8 	addi sp,sp,-24                                 
 800b5c0:	5b 8b 00 18 	sw (sp+24),r11                                 
 800b5c4:	5b 8c 00 14 	sw (sp+20),r12                                 
 800b5c8:	5b 8d 00 10 	sw (sp+16),r13                                 
 800b5cc:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800b5d0:	5b 8f 00 08 	sw (sp+8),r15                                  
 800b5d4:	5b 9d 00 04 	sw (sp+4),ra                                   
 800b5d8:	b8 20 58 00 	mv r11,r1                                      
 800b5dc:	b8 40 68 00 	mv r13,r2                                      
 800b5e0:	b8 60 78 00 	mv r15,r3                                      
  rtems_status_code     sc = RTEMS_SUCCESSFUL;                        
  rtems_bdbuf_buffer   *bd = NULL;                                    
  rtems_blkdev_bnum     media_block;                                  
                                                                      
  rtems_bdbuf_lock_cache ();                                          
 800b5e4:	fb ff f7 87 	calli 8009400 <rtems_bdbuf_lock_cache>         
                             rtems_blkdev_bnum        block,          
                             rtems_blkdev_bnum       *media_block_ptr)
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (block < dd->block_count)                                        
 800b5e8:	29 61 00 28 	lw r1,(r11+40)                                 
rtems_bdbuf_read (rtems_disk_device   *dd,                            
                  rtems_blkdev_bnum    block,                         
                  rtems_bdbuf_buffer **bd_ptr)                        
{                                                                     
  rtems_status_code     sc = RTEMS_SUCCESSFUL;                        
  rtems_bdbuf_buffer   *bd = NULL;                                    
 800b5ec:	34 0c 00 00 	mvi r12,0                                      
     */                                                               
    *media_block_ptr = rtems_bdbuf_media_block (dd, block) + dd->start;
  }                                                                   
  else                                                                
  {                                                                   
    sc = RTEMS_INVALID_ID;                                            
 800b5f0:	34 0e 00 04 	mvi r14,4                                      
                             rtems_blkdev_bnum        block,          
                             rtems_blkdev_bnum       *media_block_ptr)
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (block < dd->block_count)                                        
 800b5f4:	51 a1 00 71 	bgeu r13,r1,800b7b8 <rtems_bdbuf_read+0x1fc>   <== NEVER TAKEN
}                                                                     
                                                                      
static rtems_blkdev_bnum                                              
rtems_bdbuf_media_block (const rtems_disk_device *dd, rtems_blkdev_bnum block)
{                                                                     
  if (dd->block_to_media_block_shift >= 0)                            
 800b5f8:	29 62 00 30 	lw r2,(r11+48)                                 
 800b5fc:	48 02 00 05 	bg r0,r2,800b610 <rtems_bdbuf_read+0x54>       <== NEVER TAKEN
    return block << dd->block_to_media_block_shift;                   
 800b600:	b9 a0 08 00 	mv r1,r13                                      
 800b604:	f8 00 2c 3d 	calli 80166f8 <__ashlsi3>                      
 800b608:	b8 20 10 00 	mv r2,r1                                       
 800b60c:	e0 00 00 09 	bi 800b630 <rtems_bdbuf_read+0x74>             
    /*                                                                
     * Change the block number for the block size to the block number for the media
     * block size. We have to use 64bit maths. There is no short cut here.
     */                                                               
    return (rtems_blkdev_bnum)                                        
      ((((uint64_t) block) * dd->block_size) / dd->media_block_size); 
 800b610:	29 64 00 24 	lw r4,(r11+36)                                 <== NOT EXECUTED
 800b614:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 800b618:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 800b61c:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 800b620:	f8 00 23 f7 	calli 80145fc <__muldi3>                       <== NOT EXECUTED
 800b624:	29 64 00 20 	lw r4,(r11+32)                                 <== NOT EXECUTED
 800b628:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 800b62c:	f8 00 28 6a 	calli 80157d4 <__udivdi3>                      <== NOT EXECUTED
    /*                                                                
     * Compute the media block number. Drivers work with media block number not
     * the block number a BD may have as this depends on the block size set by
     * the user.                                                      
     */                                                               
    *media_block_ptr = rtems_bdbuf_media_block (dd, block) + dd->start;
 800b630:	29 63 00 18 	lw r3,(r11+24)                                 
  {                                                                   
    if (rtems_bdbuf_tracer)                                           
      printf ("bdbuf:read: %" PRIu32 " (%" PRIu32 ") (dev = %08x)\n", 
              media_block + dd->start, block, (unsigned) dd->dev);    
                                                                      
    bd = rtems_bdbuf_get_buffer_for_access (dd, media_block);         
 800b634:	b9 60 08 00 	mv r1,r11                                      
 800b638:	b4 43 10 00 	add r2,r2,r3                                   
 800b63c:	fb ff fd da 	calli 800ada4 <rtems_bdbuf_get_buffer_for_access>
 800b640:	b8 20 60 00 	mv r12,r1                                      
    switch (bd->state)                                                
 800b644:	28 21 00 20 	lw r1,(r1+32)                                  
 800b648:	34 02 00 02 	mvi r2,2                                       
 800b64c:	44 22 00 06 	be r1,r2,800b664 <rtems_bdbuf_read+0xa8>       
 800b650:	34 02 00 07 	mvi r2,7                                       
 800b654:	44 22 00 09 	be r1,r2,800b678 <rtems_bdbuf_read+0xbc>       
 800b658:	34 02 00 01 	mvi r2,1                                       
 800b65c:	5c 22 00 31 	bne r1,r2,800b720 <rtems_bdbuf_read+0x164>     <== NEVER TAKEN
 800b660:	e0 00 00 0d 	bi 800b694 <rtems_bdbuf_read+0xd8>             
    {                                                                 
      case RTEMS_BDBUF_STATE_CACHED:                                  
        ++dd->stats.read_hits;                                        
 800b664:	29 61 00 44 	lw r1,(r11+68)                                 
 800b668:	34 21 00 01 	addi r1,r1,1                                   
 800b66c:	59 61 00 44 	sw (r11+68),r1                                 
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 800b670:	34 01 00 03 	mvi r1,3                                       
 800b674:	e0 00 00 05 	bi 800b688 <rtems_bdbuf_read+0xcc>             
      case RTEMS_BDBUF_STATE_CACHED:                                  
        ++dd->stats.read_hits;                                        
        rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_ACCESS_CACHED);  
        break;                                                        
      case RTEMS_BDBUF_STATE_MODIFIED:                                
        ++dd->stats.read_hits;                                        
 800b678:	29 61 00 44 	lw r1,(r11+68)                                 
 800b67c:	34 21 00 01 	addi r1,r1,1                                   
 800b680:	59 61 00 44 	sw (r11+68),r1                                 
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 800b684:	34 01 00 04 	mvi r1,4                                       
 800b688:	59 81 00 20 	sw (r12+32),r1                                 
        rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_ACCESS_CACHED);  
        break;                                                        
      case RTEMS_BDBUF_STATE_MODIFIED:                                
        ++dd->stats.read_hits;                                        
        rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_ACCESS_MODIFIED);
        break;                                                        
 800b68c:	34 0e 00 00 	mvi r14,0                                      
 800b690:	e0 00 00 28 	bi 800b730 <rtems_bdbuf_read+0x174>            
      case RTEMS_BDBUF_STATE_EMPTY:                                   
        ++dd->stats.read_misses;                                      
 800b694:	29 61 00 48 	lw r1,(r11+72)                                 
 800b698:	34 21 00 01 	addi r1,r1,1                                   
 800b69c:	59 61 00 48 	sw (r11+72),r1                                 
                                                                      
static void                                                           
rtems_bdbuf_set_read_ahead_trigger (rtems_disk_device *dd,            
                                    rtems_blkdev_bnum  block)         
{                                                                     
  if (dd->read_ahead.trigger != block)                                
 800b6a0:	29 61 00 6c 	lw r1,(r11+108)                                
 800b6a4:	44 2d 00 10 	be r1,r13,800b6e4 <rtems_bdbuf_read+0x128>     
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_node_off_chain(                   
  const Chain_Node *node                                              
)                                                                     
{                                                                     
  return (node->next == NULL) && (node->previous == NULL);            
 800b6a8:	29 61 00 64 	lw r1,(r11+100)                                
 800b6ac:	34 02 00 00 	mvi r2,0                                       
 800b6b0:	5c 20 00 03 	bne r1,r0,800b6bc <rtems_bdbuf_read+0x100>     <== NEVER TAKEN
    dd->read_ahead.next = block + 2;                                  
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_bdbuf_read (rtems_disk_device   *dd,                            
 800b6b4:	29 62 00 68 	lw r2,(r11+104)                                
 800b6b8:	64 42 00 00 	cmpei r2,r2,0                                  
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_read_ahead_cancel (rtems_disk_device *dd)                 
{                                                                     
  if (rtems_bdbuf_is_read_ahead_active (dd))                          
 800b6bc:	5c 40 00 06 	bne r2,r0,800b6d4 <rtems_bdbuf_read+0x118>     <== ALWAYS TAKEN
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
 800b6c0:	29 62 00 68 	lw r2,(r11+104)                                <== NOT EXECUTED
  next->previous = previous;                                          
 800b6c4:	58 22 00 04 	sw (r1+4),r2                                   <== NOT EXECUTED
  previous->next = next;                                              
 800b6c8:	58 41 00 00 	sw (r2+0),r1                                   <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(                       
  Chain_Node *node                                                    
)                                                                     
{                                                                     
  node->next = node->previous = NULL;                                 
 800b6cc:	59 60 00 68 	sw (r11+104),r0                                <== NOT EXECUTED
 800b6d0:	59 60 00 64 	sw (r11+100),r0                                <== NOT EXECUTED
                                    rtems_blkdev_bnum  block)         
{                                                                     
  if (dd->read_ahead.trigger != block)                                
  {                                                                   
    rtems_bdbuf_read_ahead_cancel (dd);                               
    dd->read_ahead.trigger = block + 1;                               
 800b6d4:	35 a1 00 01 	addi r1,r13,1                                  
 800b6d8:	59 61 00 6c 	sw (r11+108),r1                                
    dd->read_ahead.next = block + 2;                                  
 800b6dc:	35 a1 00 02 	addi r1,r13,2                                  
 800b6e0:	59 61 00 70 	sw (r11+112),r1                                
        rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_ACCESS_MODIFIED);
        break;                                                        
      case RTEMS_BDBUF_STATE_EMPTY:                                   
        ++dd->stats.read_misses;                                      
        rtems_bdbuf_set_read_ahead_trigger (dd, block);               
        sc = rtems_bdbuf_execute_read_request (dd, bd, 1);            
 800b6e4:	b9 60 08 00 	mv r1,r11                                      
 800b6e8:	b9 80 10 00 	mv r2,r12                                      
 800b6ec:	34 03 00 01 	mvi r3,1                                       
 800b6f0:	fb ff fc f1 	calli 800aab4 <rtems_bdbuf_execute_read_request>
 800b6f4:	b8 20 70 00 	mv r14,r1                                      
        if (sc == RTEMS_SUCCESSFUL)                                   
 800b6f8:	5c 20 00 0d 	bne r1,r0,800b72c <rtems_bdbuf_read+0x170>     
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 800b6fc:	34 01 00 03 	mvi r1,3                                       
 800b700:	59 81 00 20 	sw (r12+32),r1                                 
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
 800b704:	29 82 00 00 	lw r2,(r12+0)                                  
  previous       = the_node->previous;                                
 800b708:	29 81 00 04 	lw r1,(r12+4)                                  
  next->previous = previous;                                          
 800b70c:	58 41 00 04 	sw (r2+4),r1                                   
  previous->next = next;                                              
 800b710:	58 22 00 00 	sw (r1+0),r2                                   
        sc = rtems_bdbuf_execute_read_request (dd, bd, 1);            
        if (sc == RTEMS_SUCCESSFUL)                                   
        {                                                             
          rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_ACCESS_CACHED);
          rtems_chain_extract_unprotected (&bd->link);                
          rtems_bdbuf_group_obtain (bd);                              
 800b714:	29 81 00 28 	lw r1,(r12+40)                                 
 800b718:	fb ff f8 51 	calli 800985c <rtems_bdbuf_group_obtain.clone.7>
 800b71c:	e0 00 00 05 	bi 800b730 <rtems_bdbuf_read+0x174>            
        {                                                             
          bd = NULL;                                                  
        }                                                             
        break;                                                        
      default:                                                        
        rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_4);
 800b720:	34 02 00 10 	mvi r2,16                                      <== NOT EXECUTED
 800b724:	fb ff f7 4b 	calli 8009450 <rtems_bdbuf_fatal_with_state>   <== NOT EXECUTED
 800b728:	e3 ff ff d9 	bi 800b68c <rtems_bdbuf_read+0xd0>             <== NOT EXECUTED
          rtems_chain_extract_unprotected (&bd->link);                
          rtems_bdbuf_group_obtain (bd);                              
        }                                                             
        else                                                          
        {                                                             
          bd = NULL;                                                  
 800b72c:	34 0c 00 00 	mvi r12,0                                      
                                                                      
static void                                                           
rtems_bdbuf_check_read_ahead_trigger (rtems_disk_device *dd,          
                                      rtems_blkdev_bnum  block)       
{                                                                     
  if (bdbuf_cache.read_ahead_task != 0                                
 800b730:	78 01 08 01 	mvhi r1,0x801                                  
 800b734:	38 21 96 f8 	ori r1,r1,0x96f8                               
 800b738:	28 21 00 84 	lw r1,(r1+132)                                 
 800b73c:	44 20 00 1f 	be r1,r0,800b7b8 <rtems_bdbuf_read+0x1fc>      
      && dd->read_ahead.trigger == block                              
 800b740:	29 62 00 6c 	lw r2,(r11+108)                                
 800b744:	5c 4d 00 1d 	bne r2,r13,800b7b8 <rtems_bdbuf_read+0x1fc>    
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_node_off_chain(                   
  const Chain_Node *node                                              
)                                                                     
{                                                                     
  return (node->next == NULL) && (node->previous == NULL);            
 800b748:	29 63 00 64 	lw r3,(r11+100)                                
 800b74c:	34 02 00 00 	mvi r2,0                                       
 800b750:	5c 60 00 03 	bne r3,r0,800b75c <rtems_bdbuf_read+0x1a0>     <== NEVER TAKEN
    dd->read_ahead.next = block + 2;                                  
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_bdbuf_read (rtems_disk_device   *dd,                            
 800b754:	29 62 00 68 	lw r2,(r11+104)                                
 800b758:	64 42 00 00 	cmpei r2,r2,0                                  
rtems_bdbuf_check_read_ahead_trigger (rtems_disk_device *dd,          
                                      rtems_blkdev_bnum  block)       
{                                                                     
  if (bdbuf_cache.read_ahead_task != 0                                
      && dd->read_ahead.trigger == block                              
      && !rtems_bdbuf_is_read_ahead_active (dd))                      
 800b75c:	18 42 00 01 	xori r2,r2,0x1                                 
 800b760:	5c 40 00 16 	bne r2,r0,800b7b8 <rtems_bdbuf_read+0x1fc>     <== NEVER TAKEN
void rtems_bdbuf_reset_device_stats (rtems_disk_device *dd)           
{                                                                     
  rtems_bdbuf_lock_cache ();                                          
  memset (&dd->stats, 0, sizeof(dd->stats));                          
  rtems_bdbuf_unlock_cache ();                                        
}                                                                     
 800b764:	78 04 08 01 	mvhi r4,0x801                                  
 800b768:	38 84 96 f8 	ori r4,r4,0x96f8                               
      && !rtems_bdbuf_is_read_ahead_active (dd))                      
  {                                                                   
    rtems_status_code sc;                                             
    rtems_chain_control *chain = &bdbuf_cache.read_ahead_chain;       
                                                                      
    if (rtems_chain_is_empty (chain))                                 
 800b76c:	28 83 00 88 	lw r3,(r4+136)                                 
 800b770:	78 02 08 01 	mvhi r2,0x801                                  
 800b774:	38 42 97 84 	ori r2,r2,0x9784                               
 800b778:	5c 62 00 06 	bne r3,r2,800b790 <rtems_bdbuf_read+0x1d4>     <== NEVER TAKEN
    {                                                                 
      sc = rtems_event_send (bdbuf_cache.read_ahead_task,             
 800b77c:	34 02 00 02 	mvi r2,2                                       
 800b780:	f8 00 08 8b 	calli 800d9ac <rtems_event_send>               
                             RTEMS_BDBUF_READ_AHEAD_WAKE_UP);         
      if (sc != RTEMS_SUCCESSFUL)                                     
 800b784:	44 20 00 03 	be r1,r0,800b790 <rtems_bdbuf_read+0x1d4>      <== ALWAYS TAKEN
        rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_RA_WAKE_UP);             
 800b788:	34 01 00 07 	mvi r1,7                                       <== NOT EXECUTED
 800b78c:	fb ff f7 0a 	calli 80093b4 <rtems_bdbuf_fatal>              <== NOT EXECUTED
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
 800b790:	78 01 08 01 	mvhi r1,0x801                                  
 800b794:	38 21 96 f8 	ori r1,r1,0x96f8                               
 800b798:	28 23 00 90 	lw r3,(r1+144)                                 
                                                                      
  the_node->next = tail;                                              
 800b79c:	78 02 08 01 	mvhi r2,0x801                                  
    }                                                                 
                                                                      
    rtems_chain_append_unprotected (chain, &dd->read_ahead.node);     
 800b7a0:	35 64 00 64 	addi r4,r11,100                                
 800b7a4:	38 42 97 84 	ori r2,r2,0x9784                               
 800b7a8:	59 62 00 64 	sw (r11+100),r2                                
  tail->previous = the_node;                                          
 800b7ac:	58 24 00 90 	sw (r1+144),r4                                 
  old_last->next = the_node;                                          
 800b7b0:	58 64 00 00 	sw (r3+0),r4                                   
  the_node->previous = old_last;                                      
 800b7b4:	59 63 00 68 	sw (r11+104),r3                                
    }                                                                 
                                                                      
    rtems_bdbuf_check_read_ahead_trigger (dd, block);                 
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
 800b7b8:	fb ff f7 3e 	calli 80094b0 <rtems_bdbuf_unlock_cache>       
                                                                      
  *bd_ptr = bd;                                                       
                                                                      
  return sc;                                                          
}                                                                     
 800b7bc:	b9 c0 08 00 	mv r1,r14                                      
    rtems_bdbuf_check_read_ahead_trigger (dd, block);                 
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
                                                                      
  *bd_ptr = bd;                                                       
 800b7c0:	59 ec 00 00 	sw (r15+0),r12                                 
                                                                      
  return sc;                                                          
}                                                                     
 800b7c4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800b7c8:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800b7cc:	2b 8c 00 14 	lw r12,(sp+20)                                 
 800b7d0:	2b 8d 00 10 	lw r13,(sp+16)                                 
 800b7d4:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800b7d8:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800b7dc:	37 9c 00 18 	addi sp,sp,24                                  
 800b7e0:	c3 a0 00 00 	ret                                            
                                                                      

0800ac18 <rtems_bdbuf_read_ahead_task>: return sc; } static rtems_task rtems_bdbuf_read_ahead_task (rtems_task_argument arg) {
 800ac18:	37 9c ff d8 	addi sp,sp,-40                                 
 800ac1c:	5b 8b 00 28 	sw (sp+40),r11                                 
 800ac20:	5b 8c 00 24 	sw (sp+36),r12                                 
 800ac24:	5b 8d 00 20 	sw (sp+32),r13                                 
 800ac28:	5b 8e 00 1c 	sw (sp+28),r14                                 
 800ac2c:	5b 8f 00 18 	sw (sp+24),r15                                 
 800ac30:	5b 90 00 14 	sw (sp+20),r16                                 
 800ac34:	5b 91 00 10 	sw (sp+16),r17                                 
 800ac38:	5b 92 00 0c 	sw (sp+12),r18                                 
 800ac3c:	5b 93 00 08 	sw (sp+8),r19                                  
 800ac40:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_chain_control *chain = &bdbuf_cache.read_ahead_chain;         
                                                                      
  while (bdbuf_cache.read_ahead_enabled)                              
 800ac44:	78 0d 08 01 	mvhi r13,0x801                                 
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
 800ac48:	78 10 08 01 	mvhi r16,0x801                                 
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
                                                                      
  head->next = new_first;                                             
  new_first->previous = head;                                         
 800ac4c:	78 0f 08 01 	mvhi r15,0x801                                 
          rtems_bdbuf_get_buffer_for_read_ahead (dd, media_block);    
                                                                      
        if (bd != NULL)                                               
        {                                                             
          uint32_t transfer_count = dd->block_count - block;          
          uint32_t max_transfer_count = bdbuf_config.max_read_ahead_blocks;
 800ac50:	78 0e 08 01 	mvhi r14,0x801                                 
static rtems_task                                                     
rtems_bdbuf_read_ahead_task (rtems_task_argument arg)                 
{                                                                     
  rtems_chain_control *chain = &bdbuf_cache.read_ahead_chain;         
                                                                      
  while (bdbuf_cache.read_ahead_enabled)                              
 800ac54:	39 ad 96 f8 	ori r13,r13,0x96f8                             
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
 800ac58:	3a 10 97 84 	ori r16,r16,0x9784                             
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
                                                                      
  head->next = new_first;                                             
  new_first->previous = head;                                         
 800ac5c:	39 ef 97 80 	ori r15,r15,0x9780                             
          rtems_bdbuf_execute_read_request (dd, bd, transfer_count);  
        }                                                             
      }                                                               
      else                                                            
      {                                                               
        dd->read_ahead.trigger = RTEMS_DISK_READ_AHEAD_NO_TRIGGER;    
 800ac60:	34 12 ff ff 	mvi r18,-1                                     
          rtems_bdbuf_get_buffer_for_read_ahead (dd, media_block);    
                                                                      
        if (bd != NULL)                                               
        {                                                             
          uint32_t transfer_count = dd->block_count - block;          
          uint32_t max_transfer_count = bdbuf_config.max_read_ahead_blocks;
 800ac64:	39 ce 75 6c 	ori r14,r14,0x756c                             
static rtems_task                                                     
rtems_bdbuf_read_ahead_task (rtems_task_argument arg)                 
{                                                                     
  rtems_chain_control *chain = &bdbuf_cache.read_ahead_chain;         
                                                                      
  while (bdbuf_cache.read_ahead_enabled)                              
 800ac68:	e0 00 00 40 	bi 800ad68 <rtems_bdbuf_read_ahead_task+0x150> 
  {                                                                   
    rtems_chain_node *node;                                           
                                                                      
    rtems_bdbuf_wait_for_event (RTEMS_BDBUF_READ_AHEAD_WAKE_UP);      
 800ac6c:	34 01 00 02 	mvi r1,2                                       
 800ac70:	fb ff fa c1 	calli 8009774 <rtems_bdbuf_wait_for_event>     
    rtems_bdbuf_lock_cache ();                                        
 800ac74:	fb ff f9 e3 	calli 8009400 <rtems_bdbuf_lock_cache>         
                                                                      
    while ((node = rtems_chain_get_unprotected (chain)) != NULL)      
 800ac78:	e0 00 00 2f 	bi 800ad34 <rtems_bdbuf_read_ahead_task+0x11c> 
}                                                                     
                                                                      
static rtems_blkdev_bnum                                              
rtems_bdbuf_media_block (const rtems_disk_device *dd, rtems_blkdev_bnum block)
{                                                                     
  if (dd->block_to_media_block_shift >= 0)                            
 800ac7c:	29 62 00 30 	lw r2,(r11+48)                                 
 800ac80:	48 02 00 04 	bg r0,r2,800ac90 <rtems_bdbuf_read_ahead_task+0x78><== NEVER TAKEN
    return block << dd->block_to_media_block_shift;                   
 800ac84:	b9 80 08 00 	mv r1,r12                                      
 800ac88:	f8 00 2e 9c 	calli 80166f8 <__ashlsi3>                      
 800ac8c:	e0 00 00 0a 	bi 800acb4 <rtems_bdbuf_read_ahead_task+0x9c>  
    /*                                                                
     * Change the block number for the block size to the block number for the media
     * block size. We have to use 64bit maths. There is no short cut here.
     */                                                               
    return (rtems_blkdev_bnum)                                        
      ((((uint64_t) block) * dd->block_size) / dd->media_block_size); 
 800ac90:	29 62 00 24 	lw r2,(r11+36)                                 <== NOT EXECUTED
 800ac94:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 800ac98:	b9 80 20 00 	mv r4,r12                                      <== NOT EXECUTED
 800ac9c:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 800aca0:	f8 00 26 57 	calli 80145fc <__muldi3>                       <== NOT EXECUTED
 800aca4:	29 64 00 20 	lw r4,(r11+32)                                 <== NOT EXECUTED
 800aca8:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 800acac:	f8 00 2a ca 	calli 80157d4 <__udivdi3>                      <== NOT EXECUTED
 800acb0:	b8 40 08 00 	mv r1,r2                                       <== NOT EXECUTED
    /*                                                                
     * Compute the media block number. Drivers work with media block number not
     * the block number a BD may have as this depends on the block size set by
     * the user.                                                      
     */                                                               
    *media_block_ptr = rtems_bdbuf_media_block (dd, block) + dd->start;
 800acb4:	29 62 00 18 	lw r2,(r11+24)                                 
static rtems_status_code                                              
rtems_bdbuf_get_media_block (const rtems_disk_device *dd,             
                             rtems_blkdev_bnum        block,          
                             rtems_blkdev_bnum       *media_block_ptr)
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
 800acb8:	34 11 00 00 	mvi r17,0                                      
    /*                                                                
     * Compute the media block number. Drivers work with media block number not
     * the block number a BD may have as this depends on the block size set by
     * the user.                                                      
     */                                                               
    *media_block_ptr = rtems_bdbuf_media_block (dd, block) + dd->start;
 800acbc:	b4 22 10 00 	add r2,r1,r2                                   
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(                       
  Chain_Node *node                                                    
)                                                                     
{                                                                     
  node->next = node->previous = NULL;                                 
 800acc0:	59 60 00 68 	sw (r11+104),r0                                
 800acc4:	59 60 00 64 	sw (r11+100),r0                                
      rtems_status_code sc =                                          
        rtems_bdbuf_get_media_block (dd, block, &media_block);        
                                                                      
      rtems_chain_set_off_chain (&dd->read_ahead.node);               
                                                                      
      if (sc == RTEMS_SUCCESSFUL)                                     
 800acc8:	5e 20 00 1a 	bne r17,r0,800ad30 <rtems_bdbuf_read_ahead_task+0x118>
      {                                                               
        rtems_bdbuf_buffer *bd =                                      
 800accc:	b9 60 08 00 	mv r1,r11                                      
 800acd0:	fb ff ff 59 	calli 800aa34 <rtems_bdbuf_get_buffer_for_read_ahead>
 800acd4:	b8 20 98 00 	mv r19,r1                                      
          rtems_bdbuf_get_buffer_for_read_ahead (dd, media_block);    
                                                                      
        if (bd != NULL)                                               
 800acd8:	44 31 00 17 	be r1,r17,800ad34 <rtems_bdbuf_read_ahead_task+0x11c><== NEVER TAKEN
        {                                                             
          uint32_t transfer_count = dd->block_count - block;          
 800acdc:	29 63 00 28 	lw r3,(r11+40)                                 
          uint32_t max_transfer_count = bdbuf_config.max_read_ahead_blocks;
 800ace0:	29 d1 00 00 	lw r17,(r14+0)                                 
        rtems_bdbuf_buffer *bd =                                      
          rtems_bdbuf_get_buffer_for_read_ahead (dd, media_block);    
                                                                      
        if (bd != NULL)                                               
        {                                                             
          uint32_t transfer_count = dd->block_count - block;          
 800ace4:	c8 6c 18 00 	sub r3,r3,r12                                  
          uint32_t max_transfer_count = bdbuf_config.max_read_ahead_blocks;
                                                                      
          if (transfer_count >= max_transfer_count)                   
 800ace8:	56 23 00 0a 	bgu r17,r3,800ad10 <rtems_bdbuf_read_ahead_task+0xf8>
          {                                                           
            transfer_count = max_transfer_count;                      
            dd->read_ahead.trigger = block + transfer_count / 2;      
 800acec:	ba 20 08 00 	mv r1,r17                                      
 800acf0:	34 02 00 01 	mvi r2,1                                       
 800acf4:	f8 00 2e cf 	calli 8016830 <__lshrsi3>                      
 800acf8:	b4 2c 08 00 	add r1,r1,r12                                  
            dd->read_ahead.next = block + transfer_count;             
 800acfc:	b6 2c 60 00 	add r12,r17,r12                                
          uint32_t max_transfer_count = bdbuf_config.max_read_ahead_blocks;
                                                                      
          if (transfer_count >= max_transfer_count)                   
          {                                                           
            transfer_count = max_transfer_count;                      
            dd->read_ahead.trigger = block + transfer_count / 2;      
 800ad00:	59 61 00 6c 	sw (r11+108),r1                                
            dd->read_ahead.next = block + transfer_count;             
 800ad04:	59 6c 00 70 	sw (r11+112),r12                               
 800ad08:	ba 20 18 00 	mv r3,r17                                      
 800ad0c:	e0 00 00 02 	bi 800ad14 <rtems_bdbuf_read_ahead_task+0xfc>  
          }                                                           
          else                                                        
          {                                                           
            dd->read_ahead.trigger = RTEMS_DISK_READ_AHEAD_NO_TRIGGER;
 800ad10:	59 72 00 6c 	sw (r11+108),r18                               
          }                                                           
                                                                      
          ++dd->stats.read_ahead_transfers;                           
 800ad14:	29 61 00 4c 	lw r1,(r11+76)                                 
          rtems_bdbuf_execute_read_request (dd, bd, transfer_count);  
 800ad18:	ba 60 10 00 	mv r2,r19                                      
          else                                                        
          {                                                           
            dd->read_ahead.trigger = RTEMS_DISK_READ_AHEAD_NO_TRIGGER;
          }                                                           
                                                                      
          ++dd->stats.read_ahead_transfers;                           
 800ad1c:	34 21 00 01 	addi r1,r1,1                                   
 800ad20:	59 61 00 4c 	sw (r11+76),r1                                 
          rtems_bdbuf_execute_read_request (dd, bd, transfer_count);  
 800ad24:	b9 60 08 00 	mv r1,r11                                      
 800ad28:	fb ff ff 63 	calli 800aab4 <rtems_bdbuf_execute_read_request>
 800ad2c:	e0 00 00 02 	bi 800ad34 <rtems_bdbuf_read_ahead_task+0x11c> 
        }                                                             
      }                                                               
      else                                                            
      {                                                               
        dd->read_ahead.trigger = RTEMS_DISK_READ_AHEAD_NO_TRIGGER;    
 800ad30:	59 72 00 6c 	sw (r11+108),r18                               
void rtems_bdbuf_reset_device_stats (rtems_disk_device *dd)           
{                                                                     
  rtems_bdbuf_lock_cache ();                                          
  memset (&dd->stats, 0, sizeof(dd->stats));                          
  rtems_bdbuf_unlock_cache ();                                        
}                                                                     
 800ad34:	29 ab 00 88 	lw r11,(r13+136)                               
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
 800ad38:	45 70 00 0b 	be r11,r16,800ad64 <rtems_bdbuf_read_ahead_task+0x14c>
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
 800ad3c:	29 61 00 00 	lw r1,(r11+0)                                  
    rtems_bdbuf_wait_for_event (RTEMS_BDBUF_READ_AHEAD_WAKE_UP);      
    rtems_bdbuf_lock_cache ();                                        
                                                                      
    while ((node = rtems_chain_get_unprotected (chain)) != NULL)      
    {                                                                 
      rtems_disk_device *dd = (rtems_disk_device *)                   
 800ad40:	35 6b ff 9c 	addi r11,r11,-100                              
        ((char *) node - offsetof (rtems_disk_device, read_ahead.node));
      rtems_blkdev_bnum block = dd->read_ahead.next;                  
 800ad44:	29 6c 00 70 	lw r12,(r11+112)                               
                                                                      
  head->next = new_first;                                             
 800ad48:	59 a1 00 88 	sw (r13+136),r1                                
  new_first->previous = head;                                         
 800ad4c:	58 2f 00 04 	sw (r1+4),r15                                  
                             rtems_blkdev_bnum        block,          
                             rtems_blkdev_bnum       *media_block_ptr)
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (block < dd->block_count)                                        
 800ad50:	29 61 00 28 	lw r1,(r11+40)                                 
 800ad54:	54 2c ff ca 	bgu r1,r12,800ac7c <rtems_bdbuf_read_ahead_task+0x64>
    while ((node = rtems_chain_get_unprotected (chain)) != NULL)      
    {                                                                 
      rtems_disk_device *dd = (rtems_disk_device *)                   
        ((char *) node - offsetof (rtems_disk_device, read_ahead.node));
      rtems_blkdev_bnum block = dd->read_ahead.next;                  
      rtems_blkdev_bnum media_block = 0;                              
 800ad58:	34 02 00 00 	mvi r2,0                                       
     */                                                               
    *media_block_ptr = rtems_bdbuf_media_block (dd, block) + dd->start;
  }                                                                   
  else                                                                
  {                                                                   
    sc = RTEMS_INVALID_ID;                                            
 800ad5c:	34 11 00 04 	mvi r17,4                                      
 800ad60:	e3 ff ff d8 	bi 800acc0 <rtems_bdbuf_read_ahead_task+0xa8>  
      {                                                               
        dd->read_ahead.trigger = RTEMS_DISK_READ_AHEAD_NO_TRIGGER;    
      }                                                               
    }                                                                 
                                                                      
    rtems_bdbuf_unlock_cache ();                                      
 800ad64:	fb ff f9 d3 	calli 80094b0 <rtems_bdbuf_unlock_cache>       
static rtems_task                                                     
rtems_bdbuf_read_ahead_task (rtems_task_argument arg)                 
{                                                                     
  rtems_chain_control *chain = &bdbuf_cache.read_ahead_chain;         
                                                                      
  while (bdbuf_cache.read_ahead_enabled)                              
 800ad68:	41 a1 00 94 	lbu r1,(r13+148)                               
 800ad6c:	5c 20 ff c0 	bne r1,r0,800ac6c <rtems_bdbuf_read_ahead_task+0x54><== ALWAYS TAKEN
    }                                                                 
                                                                      
    rtems_bdbuf_unlock_cache ();                                      
  }                                                                   
                                                                      
  rtems_task_delete (RTEMS_SELF);                                     
 800ad70:	f8 00 0c 8a 	calli 800df98 <rtems_task_delete>              <== NOT EXECUTED
}                                                                     
 800ad74:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 800ad78:	2b 8b 00 28 	lw r11,(sp+40)                                 <== NOT EXECUTED
 800ad7c:	2b 8c 00 24 	lw r12,(sp+36)                                 <== NOT EXECUTED
 800ad80:	2b 8d 00 20 	lw r13,(sp+32)                                 <== NOT EXECUTED
 800ad84:	2b 8e 00 1c 	lw r14,(sp+28)                                 <== NOT EXECUTED
 800ad88:	2b 8f 00 18 	lw r15,(sp+24)                                 <== NOT EXECUTED
 800ad8c:	2b 90 00 14 	lw r16,(sp+20)                                 <== NOT EXECUTED
 800ad90:	2b 91 00 10 	lw r17,(sp+16)                                 <== NOT EXECUTED
 800ad94:	2b 92 00 0c 	lw r18,(sp+12)                                 <== NOT EXECUTED
 800ad98:	2b 93 00 08 	lw r19,(sp+8)                                  <== NOT EXECUTED
 800ad9c:	37 9c 00 28 	addi sp,sp,40                                  <== NOT EXECUTED
 800ada0:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0800b7e4 <rtems_bdbuf_release>: return RTEMS_SUCCESSFUL; } rtems_status_code rtems_bdbuf_release (rtems_bdbuf_buffer *bd) {
 800b7e4:	37 9c ff f8 	addi sp,sp,-8                                  
 800b7e8:	5b 8b 00 08 	sw (sp+8),r11                                  
 800b7ec:	5b 9d 00 04 	sw (sp+4),ra                                   
 800b7f0:	b8 20 58 00 	mv r11,r1                                      
                                                                      
static rtems_status_code                                              
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{                                                                     
  if (bd == NULL)                                                     
    return RTEMS_INVALID_ADDRESS;                                     
 800b7f4:	34 01 00 09 	mvi r1,9                                       
}                                                                     
                                                                      
static rtems_status_code                                              
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{                                                                     
  if (bd == NULL)                                                     
 800b7f8:	45 60 00 2c 	be r11,r0,800b8a8 <rtems_bdbuf_release+0xc4>   <== NEVER TAKEN
  if (rtems_bdbuf_tracer)                                             
  {                                                                   
    printf ("bdbuf:%s: %" PRIu32 "\n", kind, bd->block);              
    rtems_bdbuf_show_users (kind, bd);                                
  }                                                                   
  rtems_bdbuf_lock_cache();                                           
 800b7fc:	fb ff f7 01 	calli 8009400 <rtems_bdbuf_lock_cache>         
                                                                      
  sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release");           
  if (sc != RTEMS_SUCCESSFUL)                                         
    return sc;                                                        
                                                                      
  switch (bd->state)                                                  
 800b800:	29 61 00 20 	lw r1,(r11+32)                                 
 800b804:	34 02 00 04 	mvi r2,4                                       
 800b808:	44 22 00 21 	be r1,r2,800b88c <rtems_bdbuf_release+0xa8>    
 800b80c:	54 22 00 04 	bgu r1,r2,800b81c <rtems_bdbuf_release+0x38>   
 800b810:	34 02 00 03 	mvi r2,3                                       
 800b814:	5c 22 00 21 	bne r1,r2,800b898 <rtems_bdbuf_release+0xb4>   <== NEVER TAKEN
 800b818:	e0 00 00 04 	bi 800b828 <rtems_bdbuf_release+0x44>          
 800b81c:	34 02 00 06 	mvi r2,6                                       
 800b820:	54 22 00 1e 	bgu r1,r2,800b898 <rtems_bdbuf_release+0xb4>   <== NEVER TAKEN
 800b824:	e0 00 00 17 	bi 800b880 <rtems_bdbuf_release+0x9c>          
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_add_to_lru_list_after_access (rtems_bdbuf_buffer *bd)     
{                                                                     
  rtems_bdbuf_group_release (bd);                                     
 800b828:	29 61 00 28 	lw r1,(r11+40)                                 
 800b82c:	fb ff f8 10 	calli 800986c <rtems_bdbuf_group_release.clone.8>
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 800b830:	34 01 00 02 	mvi r1,2                                       
 800b834:	59 61 00 20 	sw (r11+32),r1                                 
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
 800b838:	78 01 08 01 	mvhi r1,0x801                                  
 800b83c:	38 21 96 f8 	ori r1,r1,0x96f8                               
 800b840:	28 23 00 48 	lw r3,(r1+72)                                  
                                                                      
  the_node->next = tail;                                              
 800b844:	78 02 08 01 	mvhi r2,0x801                                  
  tail->previous = the_node;                                          
 800b848:	58 2b 00 48 	sw (r1+72),r11                                 
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
 800b84c:	38 42 97 3c 	ori r2,r2,0x973c                               
rtems_bdbuf_add_to_lru_list_after_access (rtems_bdbuf_buffer *bd)     
{                                                                     
  rtems_bdbuf_group_release (bd);                                     
  rtems_bdbuf_make_cached_and_add_to_lru_list (bd);                   
                                                                      
  if (bd->waiters)                                                    
 800b850:	29 61 00 24 	lw r1,(r11+36)                                 
 800b854:	59 62 00 00 	sw (r11+0),r2                                  
  tail->previous = the_node;                                          
  old_last->next = the_node;                                          
 800b858:	58 6b 00 00 	sw (r3+0),r11                                  
  the_node->previous = old_last;                                      
 800b85c:	59 63 00 04 	sw (r11+4),r3                                  
 800b860:	44 20 00 04 	be r1,r0,800b870 <rtems_bdbuf_release+0x8c>    
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
 800b864:	78 01 08 01 	mvhi r1,0x801                                  
 800b868:	38 21 97 5c 	ori r1,r1,0x975c                               
 800b86c:	e0 00 00 03 	bi 800b878 <rtems_bdbuf_release+0x94>          
  else                                                                
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
 800b870:	78 01 08 01 	mvhi r1,0x801                                  
 800b874:	38 21 97 6c 	ori r1,r1,0x976c                               
 800b878:	fb ff f7 22 	calli 8009500 <rtems_bdbuf_wake>               
 800b87c:	e0 00 00 09 	bi 800b8a0 <rtems_bdbuf_release+0xbc>          
    case RTEMS_BDBUF_STATE_ACCESS_CACHED:                             
      rtems_bdbuf_add_to_lru_list_after_access (bd);                  
      break;                                                          
    case RTEMS_BDBUF_STATE_ACCESS_EMPTY:                              
    case RTEMS_BDBUF_STATE_ACCESS_PURGED:                             
      rtems_bdbuf_discard_buffer_after_access (bd);                   
 800b880:	b9 60 08 00 	mv r1,r11                                      
 800b884:	fb ff f9 4c 	calli 8009db4 <rtems_bdbuf_discard_buffer_after_access>
      break;                                                          
 800b888:	e0 00 00 06 	bi 800b8a0 <rtems_bdbuf_release+0xbc>          
    case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                           
      rtems_bdbuf_add_to_modified_list_after_access (bd);             
 800b88c:	b9 60 08 00 	mv r1,r11                                      
 800b890:	fb ff f7 35 	calli 8009564 <rtems_bdbuf_add_to_modified_list_after_access>
      break;                                                          
 800b894:	e0 00 00 03 	bi 800b8a0 <rtems_bdbuf_release+0xbc>          
    default:                                                          
      rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_0);
 800b898:	34 02 00 0e 	mvi r2,14                                      <== NOT EXECUTED
 800b89c:	fb ff f6 ed 	calli 8009450 <rtems_bdbuf_fatal_with_state>   <== NOT EXECUTED
  }                                                                   
                                                                      
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_usage ();                                        
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
 800b8a0:	fb ff f7 04 	calli 80094b0 <rtems_bdbuf_unlock_cache>       
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800b8a4:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 800b8a8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800b8ac:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800b8b0:	37 9c 00 08 	addi sp,sp,8                                   
 800b8b4:	c3 a0 00 00 	ret                                            
                                                                      

0800b8b8 <rtems_bdbuf_release_modified>: rtems_status_code rtems_bdbuf_release_modified (rtems_bdbuf_buffer *bd) {
 800b8b8:	37 9c ff f8 	addi sp,sp,-8                                  
 800b8bc:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
static rtems_status_code                                              
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{                                                                     
  if (bd == NULL)                                                     
    return RTEMS_INVALID_ADDRESS;                                     
 800b8c0:	34 02 00 09 	mvi r2,9                                       
}                                                                     
                                                                      
static rtems_status_code                                              
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{                                                                     
  if (bd == NULL)                                                     
 800b8c4:	44 20 00 15 	be r1,r0,800b918 <rtems_bdbuf_release_modified+0x60><== NEVER TAKEN
  if (rtems_bdbuf_tracer)                                             
  {                                                                   
    printf ("bdbuf:%s: %" PRIu32 "\n", kind, bd->block);              
    rtems_bdbuf_show_users (kind, bd);                                
  }                                                                   
  rtems_bdbuf_lock_cache();                                           
 800b8c8:	5b 81 00 08 	sw (sp+8),r1                                   
 800b8cc:	fb ff f6 cd 	calli 8009400 <rtems_bdbuf_lock_cache>         
                                                                      
  sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release modified");  
  if (sc != RTEMS_SUCCESSFUL)                                         
    return sc;                                                        
                                                                      
  switch (bd->state)                                                  
 800b8d0:	2b 81 00 08 	lw r1,(sp+8)                                   
 800b8d4:	34 03 00 03 	mvi r3,3                                       
 800b8d8:	28 22 00 20 	lw r2,(r1+32)                                  
 800b8dc:	54 62 00 0a 	bgu r3,r2,800b904 <rtems_bdbuf_release_modified+0x4c><== NEVER TAKEN
 800b8e0:	34 03 00 05 	mvi r3,5                                       
 800b8e4:	50 62 00 04 	bgeu r3,r2,800b8f4 <rtems_bdbuf_release_modified+0x3c>
 800b8e8:	34 03 00 06 	mvi r3,6                                       
 800b8ec:	5c 43 00 06 	bne r2,r3,800b904 <rtems_bdbuf_release_modified+0x4c><== NEVER TAKEN
 800b8f0:	e0 00 00 03 	bi 800b8fc <rtems_bdbuf_release_modified+0x44> 
  {                                                                   
    case RTEMS_BDBUF_STATE_ACCESS_CACHED:                             
    case RTEMS_BDBUF_STATE_ACCESS_EMPTY:                              
    case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                           
      rtems_bdbuf_add_to_modified_list_after_access (bd);             
 800b8f4:	fb ff f7 1c 	calli 8009564 <rtems_bdbuf_add_to_modified_list_after_access>
      break;                                                          
 800b8f8:	e0 00 00 06 	bi 800b910 <rtems_bdbuf_release_modified+0x58> 
    case RTEMS_BDBUF_STATE_ACCESS_PURGED:                             
      rtems_bdbuf_discard_buffer_after_access (bd);                   
 800b8fc:	fb ff f9 2e 	calli 8009db4 <rtems_bdbuf_discard_buffer_after_access>
      break;                                                          
 800b900:	e0 00 00 04 	bi 800b910 <rtems_bdbuf_release_modified+0x58> 
    default:                                                          
      rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_6);
 800b904:	b8 40 08 00 	mv r1,r2                                       <== NOT EXECUTED
 800b908:	34 02 00 12 	mvi r2,18                                      <== NOT EXECUTED
 800b90c:	fb ff f6 d1 	calli 8009450 <rtems_bdbuf_fatal_with_state>   <== NOT EXECUTED
  }                                                                   
                                                                      
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_usage ();                                        
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
 800b910:	fb ff f6 e8 	calli 80094b0 <rtems_bdbuf_unlock_cache>       
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800b914:	34 02 00 00 	mvi r2,0                                       
}                                                                     
 800b918:	b8 40 08 00 	mv r1,r2                                       
 800b91c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800b920:	37 9c 00 08 	addi sp,sp,8                                   
 800b924:	c3 a0 00 00 	ret                                            
                                                                      

08009954 <rtems_bdbuf_remove_from_tree>: return bdbuf_cache.buffer_waiters.count; } static void rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd) {
 8009954:	37 9c ff 58 	addi sp,sp,-168                                
 8009958:	5b 8b 00 28 	sw (sp+40),r11                                 
 800995c:	5b 8c 00 24 	sw (sp+36),r12                                 
 8009960:	5b 8d 00 20 	sw (sp+32),r13                                 
 8009964:	5b 8e 00 1c 	sw (sp+28),r14                                 
 8009968:	5b 8f 00 18 	sw (sp+24),r15                                 
 800996c:	5b 90 00 14 	sw (sp+20),r16                                 
 8009970:	5b 91 00 10 	sw (sp+16),r17                                 
 8009974:	5b 92 00 0c 	sw (sp+12),r18                                 
 8009978:	5b 93 00 08 	sw (sp+8),r19                                  
 800997c:	5b 9d 00 04 	sw (sp+4),ra                                   
 */                                                                   
static int                                                            
rtems_bdbuf_avl_remove(rtems_bdbuf_buffer**      root,                
                       const rtems_bdbuf_buffer* node)                
{                                                                     
  const rtems_disk_device *dd = node->dd;                             
 8009980:	28 2f 00 14 	lw r15,(r1+20)                                 
  rtems_blkdev_bnum block = node->block;                              
 8009984:	28 2e 00 18 	lw r14,(r1+24)                                 
  return bdbuf_cache.buffer_waiters.count;                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd)                 
{                                                                     
 8009988:	b8 20 68 00 	mv r13,r1                                      
                       const rtems_bdbuf_buffer* node)                
{                                                                     
  const rtems_disk_device *dd = node->dd;                             
  rtems_blkdev_bnum block = node->block;                              
                                                                      
  rtems_bdbuf_buffer*  p = *root;                                     
 800998c:	78 01 08 01 	mvhi r1,0x801                                  
 8009990:	38 21 96 f8 	ori r1,r1,0x96f8                               
  rtems_bdbuf_buffer*  buf_stack[RTEMS_BDBUF_AVL_MAX_HEIGHT];         
  rtems_bdbuf_buffer** buf_prev = buf_stack;                          
                                                                      
  bool modified = false;                                              
                                                                      
  memset (buf_stack, 0, sizeof(buf_stack));                           
 8009994:	37 8c 00 2c 	addi r12,sp,44                                 
                       const rtems_bdbuf_buffer* node)                
{                                                                     
  const rtems_disk_device *dd = node->dd;                             
  rtems_blkdev_bnum block = node->block;                              
                                                                      
  rtems_bdbuf_buffer*  p = *root;                                     
 8009998:	28 2b 00 3c 	lw r11,(r1+60)                                 
  rtems_bdbuf_buffer*  buf_stack[RTEMS_BDBUF_AVL_MAX_HEIGHT];         
  rtems_bdbuf_buffer** buf_prev = buf_stack;                          
                                                                      
  bool modified = false;                                              
                                                                      
  memset (buf_stack, 0, sizeof(buf_stack));                           
 800999c:	34 03 00 80 	mvi r3,128                                     
 80099a0:	b9 80 08 00 	mv r1,r12                                      
 80099a4:	34 02 00 00 	mvi r2,0                                       
 80099a8:	f8 00 1f 50 	calli 80116e8 <memset>                         
    *buf_prev++ = p;                                                  
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
        || ((p->dd == dd) && (p->block < block)))                     
    {                                                                 
      p->avl.cache = 1;                                               
 80099ac:	34 04 00 01 	mvi r4,1                                       
      p = p->avl.right;                                               
    }                                                                 
    else if ((p->dd != dd) || (p->block != block))                    
    {                                                                 
      p->avl.cache = -1;                                              
 80099b0:	34 03 ff ff 	mvi r3,-1                                      
 80099b4:	e0 00 00 0f 	bi 80099f0 <rtems_bdbuf_remove_from_tree+0x9c> 
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
 80099b8:	29 61 00 14 	lw r1,(r11+20)                                 
                                                                      
  memset (buf_stack, 0, sizeof(buf_stack));                           
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
 80099bc:	59 8b 00 00 	sw (r12+0),r11                                 
 80099c0:	35 82 00 04 	addi r2,r12,4                                  
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
 80099c4:	55 e1 00 04 	bgu r15,r1,80099d4 <rtems_bdbuf_remove_from_tree+0x80><== NEVER TAKEN
        || ((p->dd == dd) && (p->block < block)))                     
 80099c8:	5c 2f 00 07 	bne r1,r15,80099e4 <rtems_bdbuf_remove_from_tree+0x90><== NEVER TAKEN
 80099cc:	29 61 00 18 	lw r1,(r11+24)                                 
 80099d0:	50 2e 00 04 	bgeu r1,r14,80099e0 <rtems_bdbuf_remove_from_tree+0x8c>
    {                                                                 
      p->avl.cache = 1;                                               
 80099d4:	31 64 00 10 	sb (r11+16),r4                                 
      p = p->avl.right;                                               
 80099d8:	29 6b 00 0c 	lw r11,(r11+12)                                
 80099dc:	e0 00 00 04 	bi 80099ec <rtems_bdbuf_remove_from_tree+0x98> 
    }                                                                 
    else if ((p->dd != dd) || (p->block != block))                    
 80099e0:	44 2e 00 06 	be r1,r14,80099f8 <rtems_bdbuf_remove_from_tree+0xa4>
    {                                                                 
      p->avl.cache = -1;                                              
 80099e4:	31 63 00 10 	sb (r11+16),r3                                 
      p = p->avl.left;                                                
 80099e8:	29 6b 00 08 	lw r11,(r11+8)                                 
                                                                      
  memset (buf_stack, 0, sizeof(buf_stack));                           
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
 80099ec:	b8 40 60 00 	mv r12,r2                                      
                                                                      
  bool modified = false;                                              
                                                                      
  memset (buf_stack, 0, sizeof(buf_stack));                           
                                                                      
  while (p != NULL)                                                   
 80099f0:	5d 60 ff f2 	bne r11,r0,80099b8 <rtems_bdbuf_remove_from_tree+0x64><== ALWAYS TAKEN
 80099f4:	e0 00 00 ca 	bi 8009d1c <rtems_bdbuf_remove_from_tree+0x3c8><== NOT EXECUTED
  }                                                                   
                                                                      
  q = p;                                                              
                                                                      
  buf_prev--;                                                         
  if (buf_prev > buf_stack)                                           
 80099f8:	37 81 00 2c 	addi r1,sp,44                                  
        || ((p->dd == dd) && (p->block < block)))                     
    {                                                                 
      p->avl.cache = 1;                                               
      p = p->avl.right;                                               
    }                                                                 
    else if ((p->dd != dd) || (p->block != block))                    
 80099fc:	b9 80 20 00 	mv r4,r12                                      
  {                                                                   
    p = *(buf_prev - 1);                                              
  }                                                                   
  else                                                                
  {                                                                   
    p = NULL;                                                         
 8009a00:	34 0e 00 00 	mvi r14,0                                      
  }                                                                   
                                                                      
  q = p;                                                              
                                                                      
  buf_prev--;                                                         
  if (buf_prev > buf_stack)                                           
 8009a04:	50 2c 00 02 	bgeu r1,r12,8009a0c <rtems_bdbuf_remove_from_tree+0xb8>
  {                                                                   
    p = *(buf_prev - 1);                                              
 8009a08:	29 8e ff fc 	lw r14,(r12+-4)                                
  {                                                                   
    p = NULL;                                                         
  }                                                                   
                                                                      
  /* at this moment q - is a node to delete, p is q's parent */       
  if (q->avl.right == NULL)                                           
 8009a0c:	29 6d 00 0c 	lw r13,(r11+12)                                
 8009a10:	5d a0 00 05 	bne r13,r0,8009a24 <rtems_bdbuf_remove_from_tree+0xd0>
  {                                                                   
    r = q->avl.left;                                                  
 8009a14:	29 6d 00 08 	lw r13,(r11+8)                                 
    if (r != NULL)                                                    
 8009a18:	45 a0 00 25 	be r13,r0,8009aac <rtems_bdbuf_remove_from_tree+0x158>
    {                                                                 
      r->avl.bal = 0;                                                 
 8009a1c:	31 a0 00 11 	sb (r13+17),r0                                 
 8009a20:	e0 00 00 23 	bi 8009aac <rtems_bdbuf_remove_from_tree+0x158>
  {                                                                   
    rtems_bdbuf_buffer **t;                                           
                                                                      
    r = q->avl.right;                                                 
                                                                      
    if (r->avl.left == NULL)                                          
 8009a24:	29 a1 00 08 	lw r1,(r13+8)                                  
 8009a28:	44 20 00 06 	be r1,r0,8009a40 <rtems_bdbuf_remove_from_tree+0xec>
 8009a2c:	b9 a0 08 00 	mv r1,r13                                      
 8009a30:	b9 a0 18 00 	mv r3,r13                                      
 8009a34:	b8 40 60 00 	mv r12,r2                                      
                                                                      
      while (s->avl.left != NULL)                                     
      {                                                               
        *buf_prev++ = r = s;                                          
        s = r->avl.left;                                              
        r->avl.cache = -1;                                            
 8009a38:	34 05 ff ff 	mvi r5,-1                                      
 8009a3c:	e0 00 00 0f 	bi 8009a78 <rtems_bdbuf_remove_from_tree+0x124>
                                                                      
    r = q->avl.right;                                                 
                                                                      
    if (r->avl.left == NULL)                                          
    {                                                                 
      r->avl.left = q->avl.left;                                      
 8009a40:	29 61 00 08 	lw r1,(r11+8)                                  
 8009a44:	59 a1 00 08 	sw (r13+8),r1                                  
      r->avl.bal = q->avl.bal;                                        
 8009a48:	41 61 00 11 	lbu r1,(r11+17)                                
 8009a4c:	31 a1 00 11 	sb (r13+17),r1                                 
      r->avl.cache = 1;                                               
 8009a50:	34 01 00 01 	mvi r1,1                                       
 8009a54:	31 a1 00 10 	sb (r13+16),r1                                 
      *buf_prev++ = q = r;                                            
 8009a58:	59 8d 00 00 	sw (r12+0),r13                                 
                                                                      
  memset (buf_stack, 0, sizeof(buf_stack));                           
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
 8009a5c:	b8 40 60 00 	mv r12,r2                                      
 8009a60:	e0 00 00 13 	bi 8009aac <rtems_bdbuf_remove_from_tree+0x158>
      t = buf_prev++;                                                 
      s = r;                                                          
                                                                      
      while (s->avl.left != NULL)                                     
      {                                                               
        *buf_prev++ = r = s;                                          
 8009a64:	59 81 00 00 	sw (r12+0),r1                                  
        s = r->avl.left;                                              
        r->avl.cache = -1;                                            
 8009a68:	30 25 00 10 	sb (r1+16),r5                                  
 8009a6c:	b8 20 18 00 	mv r3,r1                                       
      t = buf_prev++;                                                 
      s = r;                                                          
                                                                      
      while (s->avl.left != NULL)                                     
      {                                                               
        *buf_prev++ = r = s;                                          
 8009a70:	35 8c 00 04 	addi r12,r12,4                                 
        s = r->avl.left;                                              
        r->avl.cache = -1;                                            
 8009a74:	b8 40 08 00 	mv r1,r2                                       
    else                                                              
    {                                                                 
      t = buf_prev++;                                                 
      s = r;                                                          
                                                                      
      while (s->avl.left != NULL)                                     
 8009a78:	28 22 00 08 	lw r2,(r1+8)                                   
 8009a7c:	5c 40 ff fa 	bne r2,r0,8009a64 <rtems_bdbuf_remove_from_tree+0x110>
        *buf_prev++ = r = s;                                          
        s = r->avl.left;                                              
        r->avl.cache = -1;                                            
      }                                                               
                                                                      
      s->avl.left = q->avl.left;                                      
 8009a80:	29 62 00 08 	lw r2,(r11+8)                                  
 8009a84:	58 22 00 08 	sw (r1+8),r2                                   
      r->avl.left = s->avl.right;                                     
 8009a88:	28 22 00 0c 	lw r2,(r1+12)                                  
      s->avl.right = q->avl.right;                                    
 8009a8c:	58 2d 00 0c 	sw (r1+12),r13                                 
      s->avl.bal = q->avl.bal;                                        
      s->avl.cache = 1;                                               
                                                                      
      *t = q = s;                                                     
 8009a90:	b8 20 68 00 	mv r13,r1                                      
        s = r->avl.left;                                              
        r->avl.cache = -1;                                            
      }                                                               
                                                                      
      s->avl.left = q->avl.left;                                      
      r->avl.left = s->avl.right;                                     
 8009a94:	58 62 00 08 	sw (r3+8),r2                                   
      s->avl.right = q->avl.right;                                    
      s->avl.bal = q->avl.bal;                                        
 8009a98:	41 62 00 11 	lbu r2,(r11+17)                                
 8009a9c:	30 22 00 11 	sb (r1+17),r2                                  
      s->avl.cache = 1;                                               
 8009aa0:	34 02 00 01 	mvi r2,1                                       
 8009aa4:	30 22 00 10 	sb (r1+16),r2                                  
                                                                      
      *t = q = s;                                                     
 8009aa8:	58 81 00 00 	sw (r4+0),r1                                   
    }                                                                 
  }                                                                   
                                                                      
  if (p != NULL)                                                      
 8009aac:	45 c0 00 0e 	be r14,r0,8009ae4 <rtems_bdbuf_remove_from_tree+0x190>
  {                                                                   
    if (p->avl.cache == -1)                                           
 8009ab0:	41 c1 00 10 	lbu r1,(r14+16)                                
 8009ab4:	34 02 00 18 	mvi r2,24                                      
 8009ab8:	f8 00 33 10 	calli 80166f8 <__ashlsi3>                      
 8009abc:	34 02 00 18 	mvi r2,24                                      
 8009ac0:	f8 00 33 35 	calli 8016794 <__ashrsi3>                      
 8009ac4:	34 02 ff ff 	mvi r2,-1                                      
 8009ac8:	5c 22 00 05 	bne r1,r2,8009adc <rtems_bdbuf_remove_from_tree+0x188>
    {                                                                 
      p->avl.left = q;                                                
 8009acc:	59 cd 00 08 	sw (r14+8),r13                                 
                                                                      
  modified = true;                                                    
                                                                      
  while (modified)                                                    
  {                                                                   
    if (buf_prev > buf_stack)                                         
 8009ad0:	37 81 00 2c 	addi r1,sp,44                                  
 8009ad4:	55 81 00 08 	bgu r12,r1,8009af4 <rtems_bdbuf_remove_from_tree+0x1a0>
 8009ad8:	e0 00 00 94 	bi 8009d28 <rtems_bdbuf_remove_from_tree+0x3d4>
    {                                                                 
      p->avl.left = q;                                                
    }                                                                 
    else                                                              
    {                                                                 
      p->avl.right = q;                                               
 8009adc:	59 cd 00 0c 	sw (r14+12),r13                                
 8009ae0:	e3 ff ff fc 	bi 8009ad0 <rtems_bdbuf_remove_from_tree+0x17c>
    }                                                                 
  }                                                                   
  else                                                                
  {                                                                   
    *root = q;                                                        
 8009ae4:	78 01 08 01 	mvhi r1,0x801                                  
 8009ae8:	38 21 96 f8 	ori r1,r1,0x96f8                               
 8009aec:	58 2d 00 3c 	sw (r1+60),r13                                 
 8009af0:	e3 ff ff f8 	bi 8009ad0 <rtems_bdbuf_remove_from_tree+0x17c>
    else                                                              
    {                                                                 
      break;                                                          
    }                                                                 
                                                                      
    if (p->avl.cache == -1)                                           
 8009af4:	34 0f ff ff 	mvi r15,-1                                     
      {                                                               
        case -1:                                                      
          p->avl.bal = 0;                                             
          break;                                                      
        case  0:                                                      
          p->avl.bal = 1;                                             
 8009af8:	34 11 00 01 	mvi r17,1                                      
    }                                                                 
                                                                      
    if (p->avl.cache == -1)                                           
    {                                                                 
      /* rebalance left branch */                                     
      switch (p->avl.bal)                                             
 8009afc:	34 10 00 01 	mvi r16,1                                      
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
            p2->avl.right = p;                                        
                                                                      
            if (p2->avl.bal == -1) p->avl.bal = 1; else p->avl.bal = 0;
            if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
 8009b00:	34 13 ff ff 	mvi r19,-1                                     
        default:                                                      
          break;                                                      
      }                                                               
    }                                                                 
                                                                      
    if (buf_prev > buf_stack)                                         
 8009b04:	b8 20 90 00 	mv r18,r1                                      
                                                                      
  while (modified)                                                    
  {                                                                   
    if (buf_prev > buf_stack)                                         
    {                                                                 
      p = *--buf_prev;                                                
 8009b08:	35 8c ff fc 	addi r12,r12,-4                                
 8009b0c:	29 8b 00 00 	lw r11,(r12+0)                                 
    else                                                              
    {                                                                 
      break;                                                          
    }                                                                 
                                                                      
    if (p->avl.cache == -1)                                           
 8009b10:	34 02 00 18 	mvi r2,24                                      
 8009b14:	41 61 00 10 	lbu r1,(r11+16)                                
 8009b18:	f8 00 32 f8 	calli 80166f8 <__ashlsi3>                      
 8009b1c:	34 02 00 18 	mvi r2,24                                      
 8009b20:	f8 00 33 1d 	calli 8016794 <__ashrsi3>                      
 8009b24:	41 62 00 11 	lbu r2,(r11+17)                                
 8009b28:	5c 2f 00 32 	bne r1,r15,8009bf0 <rtems_bdbuf_remove_from_tree+0x29c>
    {                                                                 
      /* rebalance left branch */                                     
      switch (p->avl.bal)                                             
 8009b2c:	b8 40 08 00 	mv r1,r2                                       
 8009b30:	34 02 00 18 	mvi r2,24                                      
 8009b34:	f8 00 32 f1 	calli 80166f8 <__ashlsi3>                      
 8009b38:	34 02 00 18 	mvi r2,24                                      
 8009b3c:	f8 00 33 16 	calli 8016794 <__ashrsi3>                      
 8009b40:	44 20 00 04 	be r1,r0,8009b50 <rtems_bdbuf_remove_from_tree+0x1fc>
 8009b44:	44 30 00 05 	be r1,r16,8009b58 <rtems_bdbuf_remove_from_tree+0x204>
 8009b48:	5c 2f 00 62 	bne r1,r15,8009cd0 <rtems_bdbuf_remove_from_tree+0x37c><== NEVER TAKEN
 8009b4c:	e0 00 00 32 	bi 8009c14 <rtems_bdbuf_remove_from_tree+0x2c0>
      {                                                               
        case -1:                                                      
          p->avl.bal = 0;                                             
          break;                                                      
        case  0:                                                      
          p->avl.bal = 1;                                             
 8009b50:	31 71 00 11 	sb (r11+17),r17                                
 8009b54:	e0 00 00 0e 	bi 8009b8c <rtems_bdbuf_remove_from_tree+0x238>
          modified = false;                                           
          break;                                                      
                                                                      
        case +1:                                                      
          p1 = p->avl.right;                                          
 8009b58:	29 6e 00 0c 	lw r14,(r11+12)                                
                                                                      
          if (p1->avl.bal >= 0) /* simple RR-turn */                  
 8009b5c:	34 02 00 18 	mvi r2,24                                      
 8009b60:	41 c1 00 11 	lbu r1,(r14+17)                                
 8009b64:	f8 00 32 e5 	calli 80166f8 <__ashlsi3>                      
 8009b68:	34 02 00 18 	mvi r2,24                                      
 8009b6c:	f8 00 33 0a 	calli 8016794 <__ashrsi3>                      
 8009b70:	29 cd 00 08 	lw r13,(r14+8)                                 
 8009b74:	48 01 00 08 	bg r0,r1,8009b94 <rtems_bdbuf_remove_from_tree+0x240>
          {                                                           
            p->avl.right = p1->avl.left;                              
 8009b78:	59 6d 00 0c 	sw (r11+12),r13                                
            p1->avl.left = p;                                         
 8009b7c:	59 cb 00 08 	sw (r14+8),r11                                 
                                                                      
            if (p1->avl.bal == 0)                                     
 8009b80:	5c 20 00 36 	bne r1,r0,8009c58 <rtems_bdbuf_remove_from_tree+0x304>
            {                                                         
              p1->avl.bal = -1;                                       
 8009b84:	31 cf 00 11 	sb (r14+17),r15                                
 8009b88:	b9 c0 58 00 	mv r11,r14                                     
              modified = false;                                       
 8009b8c:	34 0d 00 00 	mvi r13,0                                      
 8009b90:	e0 00 00 51 	bi 8009cd4 <rtems_bdbuf_remove_from_tree+0x380>
          }                                                           
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
                                                                      
            p1->avl.left = p2->avl.right;                             
 8009b94:	29 a1 00 0c 	lw r1,(r13+12)                                 
            p2->avl.right = p1;                                       
 8009b98:	59 ae 00 0c 	sw (r13+12),r14                                
            p->avl.right = p2->avl.left;                              
            p2->avl.left = p;                                         
                                                                      
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
 8009b9c:	34 02 00 18 	mvi r2,24                                      
          }                                                           
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
                                                                      
            p1->avl.left = p2->avl.right;                             
 8009ba0:	59 c1 00 08 	sw (r14+8),r1                                  
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
 8009ba4:	29 a1 00 08 	lw r1,(r13+8)                                  
            p2->avl.left = p;                                         
 8009ba8:	59 ab 00 08 	sw (r13+8),r11                                 
          {                                                           
            p2 = p1->avl.left;                                        
                                                                      
            p1->avl.left = p2->avl.right;                             
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
 8009bac:	59 61 00 0c 	sw (r11+12),r1                                 
            p2->avl.left = p;                                         
                                                                      
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
 8009bb0:	41 a1 00 11 	lbu r1,(r13+17)                                
 8009bb4:	f8 00 32 d1 	calli 80166f8 <__ashlsi3>                      
 8009bb8:	34 02 00 18 	mvi r2,24                                      
 8009bbc:	f8 00 32 f6 	calli 8016794 <__ashrsi3>                      
 8009bc0:	5c 30 00 03 	bne r1,r16,8009bcc <rtems_bdbuf_remove_from_tree+0x278>
 8009bc4:	31 6f 00 11 	sb (r11+17),r15                                
 8009bc8:	e0 00 00 02 	bi 8009bd0 <rtems_bdbuf_remove_from_tree+0x27c>
 8009bcc:	31 60 00 11 	sb (r11+17),r0                                 
            if (p2->avl.bal == -1) p1->avl.bal = 1; else p1->avl.bal = 0;
 8009bd0:	41 a1 00 11 	lbu r1,(r13+17)                                
 8009bd4:	34 02 00 18 	mvi r2,24                                      
 8009bd8:	f8 00 32 c8 	calli 80166f8 <__ashlsi3>                      
 8009bdc:	34 02 00 18 	mvi r2,24                                      
 8009be0:	f8 00 32 ed 	calli 8016794 <__ashrsi3>                      
 8009be4:	5c 2f 00 38 	bne r1,r15,8009cc4 <rtems_bdbuf_remove_from_tree+0x370><== ALWAYS TAKEN
 8009be8:	31 d1 00 11 	sb (r14+17),r17                                <== NOT EXECUTED
 8009bec:	e0 00 00 37 	bi 8009cc8 <rtems_bdbuf_remove_from_tree+0x374><== NOT EXECUTED
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      /* rebalance right branch */                                    
      switch (p->avl.bal)                                             
 8009bf0:	b8 40 08 00 	mv r1,r2                                       
 8009bf4:	34 02 00 18 	mvi r2,24                                      
 8009bf8:	f8 00 32 c0 	calli 80166f8 <__ashlsi3>                      
 8009bfc:	34 02 00 18 	mvi r2,24                                      
 8009c00:	f8 00 32 e5 	calli 8016794 <__ashrsi3>                      
 8009c04:	44 20 00 06 	be r1,r0,8009c1c <rtems_bdbuf_remove_from_tree+0x2c8>
 8009c08:	44 30 00 03 	be r1,r16,8009c14 <rtems_bdbuf_remove_from_tree+0x2c0>
 8009c0c:	5c 2f 00 31 	bne r1,r15,8009cd0 <rtems_bdbuf_remove_from_tree+0x37c><== NEVER TAKEN
 8009c10:	e0 00 00 05 	bi 8009c24 <rtems_bdbuf_remove_from_tree+0x2d0>
      {                                                               
        case +1:                                                      
          p->avl.bal = 0;                                             
 8009c14:	31 60 00 11 	sb (r11+17),r0                                 
 8009c18:	e0 00 00 2e 	bi 8009cd0 <rtems_bdbuf_remove_from_tree+0x37c>
          break;                                                      
                                                                      
        case  0:                                                      
          p->avl.bal = -1;                                            
 8009c1c:	31 6f 00 11 	sb (r11+17),r15                                
 8009c20:	e3 ff ff db 	bi 8009b8c <rtems_bdbuf_remove_from_tree+0x238>
          modified = false;                                           
          break;                                                      
                                                                      
        case -1:                                                      
          p1 = p->avl.left;                                           
 8009c24:	29 6e 00 08 	lw r14,(r11+8)                                 
                                                                      
          if (p1->avl.bal <= 0) /* simple LL-turn */                  
 8009c28:	34 02 00 18 	mvi r2,24                                      
 8009c2c:	41 c1 00 11 	lbu r1,(r14+17)                                
 8009c30:	f8 00 32 b2 	calli 80166f8 <__ashlsi3>                      
 8009c34:	34 02 00 18 	mvi r2,24                                      
 8009c38:	f8 00 32 d7 	calli 8016794 <__ashrsi3>                      
 8009c3c:	29 cd 00 0c 	lw r13,(r14+12)                                
 8009c40:	48 20 00 0a 	bg r1,r0,8009c68 <rtems_bdbuf_remove_from_tree+0x314>
          {                                                           
            p->avl.left = p1->avl.right;                              
 8009c44:	59 6d 00 08 	sw (r11+8),r13                                 
            p1->avl.right = p;                                        
 8009c48:	59 cb 00 0c 	sw (r14+12),r11                                
            if (p1->avl.bal == 0)                                     
 8009c4c:	5c 20 00 03 	bne r1,r0,8009c58 <rtems_bdbuf_remove_from_tree+0x304>
            {                                                         
              p1->avl.bal = 1;                                        
 8009c50:	31 d0 00 11 	sb (r14+17),r16                                
 8009c54:	e3 ff ff cd 	bi 8009b88 <rtems_bdbuf_remove_from_tree+0x234>
              modified = false;                                       
            }                                                         
            else                                                      
            {                                                         
              p->avl.bal = 0;                                         
 8009c58:	31 60 00 11 	sb (r11+17),r0                                 
              p1->avl.bal = 0;                                        
 8009c5c:	31 c0 00 11 	sb (r14+17),r0                                 
 8009c60:	b9 c0 58 00 	mv r11,r14                                     
 8009c64:	e0 00 00 1b 	bi 8009cd0 <rtems_bdbuf_remove_from_tree+0x37c>
          }                                                           
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
                                                                      
            p1->avl.right = p2->avl.left;                             
 8009c68:	29 a1 00 08 	lw r1,(r13+8)                                  
            p2->avl.left = p1;                                        
 8009c6c:	59 ae 00 08 	sw (r13+8),r14                                 
            p->avl.left = p2->avl.right;                              
            p2->avl.right = p;                                        
                                                                      
            if (p2->avl.bal == -1) p->avl.bal = 1; else p->avl.bal = 0;
 8009c70:	34 02 00 18 	mvi r2,24                                      
          }                                                           
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
                                                                      
            p1->avl.right = p2->avl.left;                             
 8009c74:	59 c1 00 0c 	sw (r14+12),r1                                 
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
 8009c78:	29 a1 00 0c 	lw r1,(r13+12)                                 
            p2->avl.right = p;                                        
 8009c7c:	59 ab 00 0c 	sw (r13+12),r11                                
          {                                                           
            p2 = p1->avl.right;                                       
                                                                      
            p1->avl.right = p2->avl.left;                             
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
 8009c80:	59 61 00 08 	sw (r11+8),r1                                  
            p2->avl.right = p;                                        
                                                                      
            if (p2->avl.bal == -1) p->avl.bal = 1; else p->avl.bal = 0;
 8009c84:	41 a1 00 11 	lbu r1,(r13+17)                                
 8009c88:	f8 00 32 9c 	calli 80166f8 <__ashlsi3>                      
 8009c8c:	34 02 00 18 	mvi r2,24                                      
 8009c90:	f8 00 32 c1 	calli 8016794 <__ashrsi3>                      
 8009c94:	5c 2f 00 03 	bne r1,r15,8009ca0 <rtems_bdbuf_remove_from_tree+0x34c>
 8009c98:	31 70 00 11 	sb (r11+17),r16                                
 8009c9c:	e0 00 00 02 	bi 8009ca4 <rtems_bdbuf_remove_from_tree+0x350>
 8009ca0:	31 60 00 11 	sb (r11+17),r0                                 
            if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
 8009ca4:	41 a1 00 11 	lbu r1,(r13+17)                                
 8009ca8:	34 02 00 18 	mvi r2,24                                      
 8009cac:	f8 00 32 93 	calli 80166f8 <__ashlsi3>                      
 8009cb0:	34 02 00 18 	mvi r2,24                                      
 8009cb4:	f8 00 32 b8 	calli 8016794 <__ashrsi3>                      
 8009cb8:	5c 30 00 03 	bne r1,r16,8009cc4 <rtems_bdbuf_remove_from_tree+0x370>
 8009cbc:	31 d3 00 11 	sb (r14+17),r19                                
 8009cc0:	e0 00 00 02 	bi 8009cc8 <rtems_bdbuf_remove_from_tree+0x374>
 8009cc4:	31 c0 00 11 	sb (r14+17),r0                                 
                                                                      
            p = p2;                                                   
            p2->avl.bal = 0;                                          
 8009cc8:	31 a0 00 11 	sb (r13+17),r0                                 
 8009ccc:	b9 a0 58 00 	mv r11,r13                                     
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      /* rebalance right branch */                                    
      switch (p->avl.bal)                                             
 8009cd0:	34 0d 00 01 	mvi r13,1                                      
        default:                                                      
          break;                                                      
      }                                                               
    }                                                                 
                                                                      
    if (buf_prev > buf_stack)                                         
 8009cd4:	52 4c 00 0c 	bgeu r18,r12,8009d04 <rtems_bdbuf_remove_from_tree+0x3b0>
    {                                                                 
      q = *(buf_prev - 1);                                            
 8009cd8:	29 8e ff fc 	lw r14,(r12+-4)                                
                                                                      
      if (q->avl.cache == -1)                                         
 8009cdc:	34 02 00 18 	mvi r2,24                                      
 8009ce0:	41 c1 00 10 	lbu r1,(r14+16)                                
 8009ce4:	f8 00 32 85 	calli 80166f8 <__ashlsi3>                      
 8009ce8:	34 02 00 18 	mvi r2,24                                      
 8009cec:	f8 00 32 aa 	calli 8016794 <__ashrsi3>                      
 8009cf0:	5c 2f 00 03 	bne r1,r15,8009cfc <rtems_bdbuf_remove_from_tree+0x3a8>
      {                                                               
        q->avl.left = p;                                              
 8009cf4:	59 cb 00 08 	sw (r14+8),r11                                 
 8009cf8:	e0 00 00 07 	bi 8009d14 <rtems_bdbuf_remove_from_tree+0x3c0>
      }                                                               
      else                                                            
      {                                                               
        q->avl.right = p;                                             
 8009cfc:	59 cb 00 0c 	sw (r14+12),r11                                
 8009d00:	e0 00 00 05 	bi 8009d14 <rtems_bdbuf_remove_from_tree+0x3c0>
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      *root = p;                                                      
 8009d04:	78 01 08 01 	mvhi r1,0x801                                  
 8009d08:	38 21 96 f8 	ori r1,r1,0x96f8                               
 8009d0c:	58 2b 00 3c 	sw (r1+60),r11                                 
 8009d10:	e0 00 00 06 	bi 8009d28 <rtems_bdbuf_remove_from_tree+0x3d4>
    *root = q;                                                        
  }                                                                   
                                                                      
  modified = true;                                                    
                                                                      
  while (modified)                                                    
 8009d14:	5d a0 ff 7d 	bne r13,r0,8009b08 <rtems_bdbuf_remove_from_tree+0x1b4>
 8009d18:	e0 00 00 04 	bi 8009d28 <rtems_bdbuf_remove_from_tree+0x3d4>
                                                                      
static void                                                           
rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd)                 
{                                                                     
  if (rtems_bdbuf_avl_remove (&bdbuf_cache.tree, bd) != 0)            
    rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_TREE_RM);
 8009d1c:	29 a1 00 20 	lw r1,(r13+32)                                 <== NOT EXECUTED
 8009d20:	34 02 00 1b 	mvi r2,27                                      <== NOT EXECUTED
 8009d24:	fb ff fd cb 	calli 8009450 <rtems_bdbuf_fatal_with_state>   <== NOT EXECUTED
}                                                                     
 8009d28:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009d2c:	2b 8b 00 28 	lw r11,(sp+40)                                 
 8009d30:	2b 8c 00 24 	lw r12,(sp+36)                                 
 8009d34:	2b 8d 00 20 	lw r13,(sp+32)                                 
 8009d38:	2b 8e 00 1c 	lw r14,(sp+28)                                 
 8009d3c:	2b 8f 00 18 	lw r15,(sp+24)                                 
 8009d40:	2b 90 00 14 	lw r16,(sp+20)                                 
 8009d44:	2b 91 00 10 	lw r17,(sp+16)                                 
 8009d48:	2b 92 00 0c 	lw r18,(sp+12)                                 
 8009d4c:	2b 93 00 08 	lw r19,(sp+8)                                  
 8009d50:	37 9c 00 a8 	addi sp,sp,168                                 
 8009d54:	c3 a0 00 00 	ret                                            
                                                                      

0800a584 <rtems_bdbuf_remove_from_tree_and_lru_list>: rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_TREE_RM); } static void rtems_bdbuf_remove_from_tree_and_lru_list (rtems_bdbuf_buffer *bd) {
 800a584:	37 9c ff f8 	addi sp,sp,-8                                  
 800a588:	5b 8b 00 08 	sw (sp+8),r11                                  
 800a58c:	5b 9d 00 04 	sw (sp+4),ra                                   
  switch (bd->state)                                                  
 800a590:	28 22 00 20 	lw r2,(r1+32)                                  
    rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_TREE_RM);
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_remove_from_tree_and_lru_list (rtems_bdbuf_buffer *bd)    
{                                                                     
 800a594:	b8 20 58 00 	mv r11,r1                                      
  switch (bd->state)                                                  
 800a598:	44 40 00 08 	be r2,r0,800a5b8 <rtems_bdbuf_remove_from_tree_and_lru_list+0x34>
 800a59c:	34 03 00 02 	mvi r3,2                                       
 800a5a0:	5c 43 00 03 	bne r2,r3,800a5ac <rtems_bdbuf_remove_from_tree_and_lru_list+0x28><== NEVER TAKEN
  {                                                                   
    case RTEMS_BDBUF_STATE_FREE:                                      
      break;                                                          
    case RTEMS_BDBUF_STATE_CACHED:                                    
      rtems_bdbuf_remove_from_tree (bd);                              
 800a5a4:	fb ff fc ec 	calli 8009954 <rtems_bdbuf_remove_from_tree>   
      break;                                                          
 800a5a8:	e0 00 00 04 	bi 800a5b8 <rtems_bdbuf_remove_from_tree_and_lru_list+0x34>
    default:                                                          
      rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_10);
 800a5ac:	b8 40 08 00 	mv r1,r2                                       <== NOT EXECUTED
 800a5b0:	34 02 00 16 	mvi r2,22                                      <== NOT EXECUTED
 800a5b4:	fb ff fb a7 	calli 8009450 <rtems_bdbuf_fatal_with_state>   <== NOT EXECUTED
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
 800a5b8:	29 62 00 00 	lw r2,(r11+0)                                  
  previous       = the_node->previous;                                
 800a5bc:	29 61 00 04 	lw r1,(r11+4)                                  
  next->previous = previous;                                          
 800a5c0:	58 41 00 04 	sw (r2+4),r1                                   
  previous->next = next;                                              
 800a5c4:	58 22 00 00 	sw (r1+0),r2                                   
  }                                                                   
                                                                      
  rtems_chain_extract_unprotected (&bd->link);                        
}                                                                     
 800a5c8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a5cc:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800a5d0:	37 9c 00 08 	addi sp,sp,8                                   
 800a5d4:	c3 a0 00 00 	ret                                            
                                                                      

08009690 <rtems_bdbuf_restore_preemption>: static void rtems_bdbuf_restore_preemption (rtems_mode prev_mode) {
 8009690:	37 9c ff f8 	addi sp,sp,-8                                  
 8009694:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_task_mode (prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode); 
 8009698:	38 02 ff ff 	mvu r2,0xffff                                  
 800969c:	37 83 00 08 	addi r3,sp,8                                   
  return prev_mode;                                                   
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_restore_preemption (rtems_mode prev_mode)                 
{                                                                     
 80096a0:	5b 81 00 08 	sw (sp+8),r1                                   
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_task_mode (prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode); 
 80096a4:	f8 00 12 61 	calli 800e028 <rtems_task_mode>                
  if (sc != RTEMS_SUCCESSFUL)                                         
 80096a8:	44 20 00 03 	be r1,r0,80096b4 <rtems_bdbuf_restore_preemption+0x24><== ALWAYS TAKEN
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_PREEMPT_RST);                
 80096ac:	34 01 00 06 	mvi r1,6                                       <== NOT EXECUTED
 80096b0:	fb ff ff 41 	calli 80093b4 <rtems_bdbuf_fatal>              <== NOT EXECUTED
}                                                                     
 80096b4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80096b8:	37 9c 00 08 	addi sp,sp,8                                   
 80096bc:	c3 a0 00 00 	ret                                            
                                                                      

0800bcd0 <rtems_bdbuf_set_block_size>: rtems_status_code rtems_bdbuf_set_block_size (rtems_disk_device *dd, uint32_t block_size, bool sync) {
 800bcd0:	37 9c ff e4 	addi sp,sp,-28                                 
 800bcd4:	5b 8b 00 1c 	sw (sp+28),r11                                 
 800bcd8:	5b 8c 00 18 	sw (sp+24),r12                                 
 800bcdc:	5b 8d 00 14 	sw (sp+20),r13                                 
 800bce0:	5b 8e 00 10 	sw (sp+16),r14                                 
 800bce4:	5b 8f 00 0c 	sw (sp+12),r15                                 
 800bce8:	5b 90 00 08 	sw (sp+8),r16                                  
 800bcec:	5b 9d 00 04 	sw (sp+4),ra                                   
 800bcf0:	20 63 00 ff 	andi r3,r3,0xff                                
 800bcf4:	b8 20 58 00 	mv r11,r1                                      
 800bcf8:	b8 40 68 00 	mv r13,r2                                      
                                                                      
  /*                                                                  
   * We do not care about the synchronization status since we will purge the
   * device later.                                                    
   */                                                                 
  if (sync)                                                           
 800bcfc:	44 60 00 02 	be r3,r0,800bd04 <rtems_bdbuf_set_block_size+0x34>
    rtems_bdbuf_syncdev (dd);                                         
 800bd00:	fb ff ff 60 	calli 800ba80 <rtems_bdbuf_syncdev>            
                                                                      
  rtems_bdbuf_lock_cache ();                                          
 800bd04:	fb ff f5 bf 	calli 8009400 <rtems_bdbuf_lock_cache>         
      sc = RTEMS_INVALID_NUMBER;                                      
    }                                                                 
  }                                                                   
  else                                                                
  {                                                                   
    sc = RTEMS_INVALID_NUMBER;                                        
 800bd08:	34 0c 00 0a 	mvi r12,10                                     
  if (sync)                                                           
    rtems_bdbuf_syncdev (dd);                                         
                                                                      
  rtems_bdbuf_lock_cache ();                                          
                                                                      
  if (block_size > 0)                                                 
 800bd0c:	45 a0 00 33 	be r13,r0,800bdd8 <rtems_bdbuf_set_block_size+0x108>
rtems_bdbuf_bds_per_group (size_t size)                               
{                                                                     
  size_t bufs_per_size;                                               
  size_t bds_per_size;                                                
                                                                      
  if (size > bdbuf_config.buffer_max)                                 
 800bd10:	78 02 08 01 	mvhi r2,0x801                                  
 800bd14:	38 42 75 6c 	ori r2,r2,0x756c                               
 800bd18:	28 41 00 28 	lw r1,(r2+40)                                  
 800bd1c:	55 a1 00 2f 	bgu r13,r1,800bdd8 <rtems_bdbuf_set_block_size+0x108><== NEVER TAKEN
    return 0;                                                         
                                                                      
  bufs_per_size = ((size - 1) / bdbuf_config.buffer_min) + 1;         
 800bd20:	28 42 00 24 	lw r2,(r2+36)                                  
 800bd24:	35 a1 ff ff 	addi r1,r13,-1                                 
 800bd28:	f8 00 2b 4e 	calli 8016a60 <__udivsi3>                      
 800bd2c:	34 2c 00 01 	addi r12,r1,1                                  
                                                                      
  for (bds_per_size = 1;                                              
 800bd30:	34 02 00 01 	mvi r2,1                                       
 800bd34:	e0 00 00 05 	bi 800bd48 <rtems_bdbuf_set_block_size+0x78>   
       bds_per_size < bufs_per_size;                                  
       bds_per_size <<= 1)                                            
 800bd38:	b8 40 08 00 	mv r1,r2                                       
 800bd3c:	34 02 00 01 	mvi r2,1                                       
 800bd40:	f8 00 2a 6e 	calli 80166f8 <__ashlsi3>                      
 800bd44:	b8 20 10 00 	mv r2,r1                                       
  if (size > bdbuf_config.buffer_max)                                 
    return 0;                                                         
                                                                      
  bufs_per_size = ((size - 1) / bdbuf_config.buffer_min) + 1;         
                                                                      
  for (bds_per_size = 1;                                              
 800bd48:	55 82 ff fc 	bgu r12,r2,800bd38 <rtems_bdbuf_set_block_size+0x68>
       bds_per_size < bufs_per_size;                                  
       bds_per_size <<= 1)                                            
    ;                                                                 
                                                                      
  return bdbuf_cache.max_bds_per_group / bds_per_size;                
 800bd4c:	78 01 08 01 	mvhi r1,0x801                                  
 800bd50:	38 21 96 f8 	ori r1,r1,0x96f8                               
 800bd54:	28 21 00 20 	lw r1,(r1+32)                                  
                                                                      
      rtems_bdbuf_purge_dev (dd);                                     
    }                                                                 
    else                                                              
    {                                                                 
      sc = RTEMS_INVALID_NUMBER;                                      
 800bd58:	34 0c 00 0a 	mvi r12,10                                     
  for (bds_per_size = 1;                                              
       bds_per_size < bufs_per_size;                                  
       bds_per_size <<= 1)                                            
    ;                                                                 
                                                                      
  return bdbuf_cache.max_bds_per_group / bds_per_size;                
 800bd5c:	f8 00 2b 41 	calli 8016a60 <__udivsi3>                      
 800bd60:	b8 20 78 00 	mv r15,r1                                      
                                                                      
  if (block_size > 0)                                                 
  {                                                                   
    size_t bds_per_group = rtems_bdbuf_bds_per_group (block_size);    
                                                                      
    if (bds_per_group != 0)                                           
 800bd64:	44 20 00 1d 	be r1,r0,800bdd8 <rtems_bdbuf_set_block_size+0x108><== NEVER TAKEN
    {                                                                 
      int block_to_media_block_shift = 0;                             
      uint32_t media_blocks_per_block = block_size / dd->media_block_size;
 800bd68:	29 70 00 20 	lw r16,(r11+32)                                
 800bd6c:	b9 a0 08 00 	mv r1,r13                                      
  {                                                                   
    size_t bds_per_group = rtems_bdbuf_bds_per_group (block_size);    
                                                                      
    if (bds_per_group != 0)                                           
    {                                                                 
      int block_to_media_block_shift = 0;                             
 800bd70:	34 0c 00 00 	mvi r12,0                                      
      uint32_t media_blocks_per_block = block_size / dd->media_block_size;
 800bd74:	ba 00 10 00 	mv r2,r16                                      
 800bd78:	f8 00 2b 3a 	calli 8016a60 <__udivsi3>                      
 800bd7c:	b8 20 70 00 	mv r14,r1                                      
      uint32_t one = 1;                                               
                                                                      
      while ((one << block_to_media_block_shift) < media_blocks_per_block)
 800bd80:	e0 00 00 02 	bi 800bd88 <rtems_bdbuf_set_block_size+0xb8>   
      {                                                               
        ++block_to_media_block_shift;                                 
 800bd84:	35 8c 00 01 	addi r12,r12,1                                 
    {                                                                 
      int block_to_media_block_shift = 0;                             
      uint32_t media_blocks_per_block = block_size / dd->media_block_size;
      uint32_t one = 1;                                               
                                                                      
      while ((one << block_to_media_block_shift) < media_blocks_per_block)
 800bd88:	34 01 00 01 	mvi r1,1                                       
 800bd8c:	b9 80 10 00 	mv r2,r12                                      
 800bd90:	f8 00 2a 5a 	calli 80166f8 <__ashlsi3>                      
 800bd94:	55 c1 ff fc 	bgu r14,r1,800bd84 <rtems_bdbuf_set_block_size+0xb4>
      {                                                               
        ++block_to_media_block_shift;                                 
      }                                                               
                                                                      
      if ((dd->media_block_size << block_to_media_block_shift) != block_size)
 800bd98:	ba 00 08 00 	mv r1,r16                                      
 800bd9c:	b9 80 10 00 	mv r2,r12                                      
 800bda0:	f8 00 2a 56 	calli 80166f8 <__ashlsi3>                      
 800bda4:	44 2d 00 02 	be r1,r13,800bdac <rtems_bdbuf_set_block_size+0xdc><== ALWAYS TAKEN
        block_to_media_block_shift = -1;                              
 800bda8:	34 0c ff ff 	mvi r12,-1                                     <== NOT EXECUTED
                                                                      
      dd->block_size = block_size;                                    
      dd->block_count = dd->size / media_blocks_per_block;            
 800bdac:	29 61 00 1c 	lw r1,(r11+28)                                 
 800bdb0:	b9 c0 10 00 	mv r2,r14                                      
      }                                                               
                                                                      
      if ((dd->media_block_size << block_to_media_block_shift) != block_size)
        block_to_media_block_shift = -1;                              
                                                                      
      dd->block_size = block_size;                                    
 800bdb4:	59 6d 00 24 	sw (r11+36),r13                                
      dd->block_count = dd->size / media_blocks_per_block;            
 800bdb8:	f8 00 2b 2a 	calli 8016a60 <__udivsi3>                      
 800bdbc:	59 61 00 28 	sw (r11+40),r1                                 
      dd->media_blocks_per_block = media_blocks_per_block;            
      dd->block_to_media_block_shift = block_to_media_block_shift;    
 800bdc0:	59 6c 00 30 	sw (r11+48),r12                                
      if ((dd->media_block_size << block_to_media_block_shift) != block_size)
        block_to_media_block_shift = -1;                              
                                                                      
      dd->block_size = block_size;                                    
      dd->block_count = dd->size / media_blocks_per_block;            
      dd->media_blocks_per_block = media_blocks_per_block;            
 800bdc4:	59 6e 00 2c 	sw (r11+44),r14                                
      dd->block_to_media_block_shift = block_to_media_block_shift;    
      dd->bds_per_group = bds_per_group;                              
 800bdc8:	59 6f 00 34 	sw (r11+52),r15                                
                                                                      
      rtems_bdbuf_purge_dev (dd);                                     
 800bdcc:	b9 60 08 00 	mv r1,r11                                      
 800bdd0:	fb ff ff 44 	calli 800bae0 <rtems_bdbuf_purge_dev>          
rtems_status_code                                                     
rtems_bdbuf_set_block_size (rtems_disk_device *dd,                    
                            uint32_t           block_size,            
                            bool               sync)                  
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
 800bdd4:	34 0c 00 00 	mvi r12,0                                      
  else                                                                
  {                                                                   
    sc = RTEMS_INVALID_NUMBER;                                        
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
 800bdd8:	fb ff f5 b6 	calli 80094b0 <rtems_bdbuf_unlock_cache>       
                                                                      
  return sc;                                                          
}                                                                     
 800bddc:	b9 80 08 00 	mv r1,r12                                      
 800bde0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800bde4:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 800bde8:	2b 8c 00 18 	lw r12,(sp+24)                                 
 800bdec:	2b 8d 00 14 	lw r13,(sp+20)                                 
 800bdf0:	2b 8e 00 10 	lw r14,(sp+16)                                 
 800bdf4:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 800bdf8:	2b 90 00 08 	lw r16,(sp+8)                                  
 800bdfc:	37 9c 00 1c 	addi sp,sp,28                                  
 800be00:	c3 a0 00 00 	ret                                            
                                                                      

08009280 <rtems_bdbuf_swapout_modified_processing>: rtems_chain_control* chain, rtems_chain_control* transfer, bool sync_active, bool update_timers, uint32_t timer_delta) {
 8009280:	37 9c ff f0 	addi sp,sp,-16                                 
 8009284:	5b 8b 00 10 	sw (sp+16),r11                                 
 8009288:	5b 8c 00 0c 	sw (sp+12),r12                                 
 800928c:	5b 8d 00 08 	sw (sp+8),r13                                  
 8009290:	5b 8e 00 04 	sw (sp+4),r14                                  
void rtems_bdbuf_reset_device_stats (rtems_disk_device *dd)           
{                                                                     
  rtems_bdbuf_lock_cache ();                                          
  memset (&dd->stats, 0, sizeof(dd->stats));                          
  rtems_bdbuf_unlock_cache ();                                        
}                                                                     
 8009294:	28 47 00 00 	lw r7,(r2+0)                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 8009298:	34 42 00 04 	addi r2,r2,4                                   
                                         rtems_chain_control* transfer,
                                         bool                 sync_active,
                                         bool                 update_timers,
                                         uint32_t             timer_delta)
{                                                                     
  if (!rtems_chain_is_empty (chain))                                  
 800929c:	44 e2 00 40 	be r7,r2,800939c <rtems_bdbuf_swapout_modified_processing+0x11c>
     * A sync active with no valid dev means sync all.                
     */                                                               
    if (sync_active && (*dd_ptr == BDBUF_INVALID_DEV))                
      sync_all = true;                                                
    else                                                              
      sync_all = false;                                               
 80092a0:	34 0a 00 00 	mvi r10,0                                      
    node = node->next;                                                
                                                                      
    /*                                                                
     * A sync active with no valid dev means sync all.                
     */                                                               
    if (sync_active && (*dd_ptr == BDBUF_INVALID_DEV))                
 80092a4:	44 80 00 03 	be r4,r0,80092b0 <rtems_bdbuf_swapout_modified_processing+0x30>
 * @param update_timers If true update the timers.                    
 * @param timer_delta It update_timers is true update the timers by this
 *                    amount.                                         
 */                                                                   
static void                                                           
rtems_bdbuf_swapout_modified_processing (rtems_disk_device  **dd_ptr, 
 80092a8:	28 2a 00 00 	lw r10,(r1+0)                                  
 80092ac:	65 4a 00 00 	cmpei r10,r10,0                                
}                                                                     
                                                                      
static bool                                                           
rtems_bdbuf_has_buffer_waiters (void)                                 
{                                                                     
  return bdbuf_cache.buffer_waiters.count;                            
 80092b0:	78 08 08 01 	mvhi r8,0x801                                  
 80092b4:	39 08 96 f8 	ori r8,r8,0x96f8                               
 80092b8:	29 0d 00 74 	lw r13,(r8+116)                                
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 80092bc:	34 0c 00 09 	mvi r12,9                                      
       * or someone waits for a buffer written force all the timers to 0.
       *                                                              
       * @note Lots of sync requests will skew this timer. It should be based
       *       on TOD to be accurate. Does it matter ?                
       */                                                             
      if (sync_all || (sync_active && (*dd_ptr == bd->dd))            
 80092c0:	5d 40 00 06 	bne r10,r0,80092d8 <rtems_bdbuf_swapout_modified_processing+0x58>
 80092c4:	44 8a 00 04 	be r4,r10,80092d4 <rtems_bdbuf_swapout_modified_processing+0x54>
 80092c8:	28 29 00 00 	lw r9,(r1+0)                                   
 80092cc:	28 e8 00 14 	lw r8,(r7+20)                                  
 80092d0:	45 28 00 02 	be r9,r8,80092d8 <rtems_bdbuf_swapout_modified_processing+0x58>
          || rtems_bdbuf_has_buffer_waiters ())                       
 80092d4:	45 a0 00 02 	be r13,r0,80092dc <rtems_bdbuf_swapout_modified_processing+0x5c>
        bd->hold_timer = 0;                                           
 80092d8:	58 e0 00 2c 	sw (r7+44),r0                                  
                                                                      
      if (bd->hold_timer)                                             
 80092dc:	28 e8 00 2c 	lw r8,(r7+44)                                  
 80092e0:	45 00 00 0b 	be r8,r0,800930c <rtems_bdbuf_swapout_modified_processing+0x8c>
      {                                                               
        if (update_timers)                                            
 80092e4:	44 a0 00 06 	be r5,r0,80092fc <rtems_bdbuf_swapout_modified_processing+0x7c>
        {                                                             
          if (bd->hold_timer > timer_delta)                           
 80092e8:	50 c8 00 04 	bgeu r6,r8,80092f8 <rtems_bdbuf_swapout_modified_processing+0x78>
            bd->hold_timer -= timer_delta;                            
 80092ec:	c9 06 40 00 	sub r8,r8,r6                                   
 80092f0:	58 e8 00 2c 	sw (r7+44),r8                                  
 80092f4:	e0 00 00 02 	bi 80092fc <rtems_bdbuf_swapout_modified_processing+0x7c>
          else                                                        
            bd->hold_timer = 0;                                       
 80092f8:	58 e0 00 2c 	sw (r7+44),r0                                  
        }                                                             
                                                                      
        if (bd->hold_timer)                                           
 80092fc:	28 e8 00 2c 	lw r8,(r7+44)                                  
 8009300:	45 00 00 03 	be r8,r0,800930c <rtems_bdbuf_swapout_modified_processing+0x8c>
        {                                                             
          node = node->next;                                          
 8009304:	28 e7 00 00 	lw r7,(r7+0)                                   
          continue;                                                   
 8009308:	e0 00 00 1d 	bi 800937c <rtems_bdbuf_swapout_modified_processing+0xfc>
      /*                                                              
       * This assumes we can set it to BDBUF_INVALID_DEV which is just an
       * assumption. Cannot use the transfer list being empty the sync dev
       * calls sets the dev to use.                                   
       */                                                             
      if (*dd_ptr == BDBUF_INVALID_DEV)                               
 800930c:	28 28 00 00 	lw r8,(r1+0)                                   
 8009310:	5d 00 00 03 	bne r8,r0,800931c <rtems_bdbuf_swapout_modified_processing+0x9c>
        *dd_ptr = bd->dd;                                             
 8009314:	28 e8 00 14 	lw r8,(r7+20)                                  
 8009318:	58 28 00 00 	sw (r1+0),r8                                   
                                                                      
      if (bd->dd == *dd_ptr)                                          
 800931c:	28 eb 00 14 	lw r11,(r7+20)                                 
 8009320:	28 28 00 00 	lw r8,(r1+0)                                   
 8009324:	28 e9 00 00 	lw r9,(r7+0)                                   
 8009328:	5d 68 00 14 	bne r11,r8,8009378 <rtems_bdbuf_swapout_modified_processing+0xf8><== NEVER TAKEN
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
 800932c:	28 e8 00 04 	lw r8,(r7+4)                                   
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 8009330:	58 ec 00 20 	sw (r7+32),r12                                 
  next->previous = previous;                                          
 8009334:	59 28 00 04 	sw (r9+4),r8                                   
  previous->next = next;                                              
 8009338:	59 09 00 00 	sw (r8+0),r9                                   
                                                                      
        rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);       
                                                                      
        rtems_chain_extract_unprotected (node);                       
                                                                      
        tnode = tnode->previous;                                      
 800933c:	28 68 00 08 	lw r8,(r3+8)                                   
                                                                      
        while (node && !rtems_chain_is_head (transfer, tnode))        
 8009340:	e0 00 00 0b 	bi 800936c <rtems_bdbuf_swapout_modified_processing+0xec>
        {                                                             
          rtems_bdbuf_buffer* tbd = (rtems_bdbuf_buffer*) tnode;      
                                                                      
          if (bd->block > tbd->block)                                 
 8009344:	28 eb 00 18 	lw r11,(r7+24)                                 
 8009348:	29 0e 00 18 	lw r14,(r8+24)                                 
 800934c:	51 cb 00 07 	bgeu r14,r11,8009368 <rtems_bdbuf_swapout_modified_processing+0xe8>
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
 8009350:	29 0b 00 00 	lw r11,(r8+0)                                  
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
 8009354:	58 e8 00 04 	sw (r7+4),r8                                   
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
 8009358:	59 07 00 00 	sw (r8+0),r7                                   
  the_node->next        = before_node;                                
 800935c:	58 eb 00 00 	sw (r7+0),r11                                  
  before_node->previous = the_node;                                   
 8009360:	59 67 00 04 	sw (r11+4),r7                                  
 8009364:	e0 00 00 05 	bi 8009378 <rtems_bdbuf_swapout_modified_processing+0xf8>
          {                                                           
            rtems_chain_insert_unprotected (tnode, node);             
            node = NULL;                                              
          }                                                           
          else                                                        
            tnode = tnode->previous;                                  
 8009368:	29 08 00 04 	lw r8,(r8+4)                                   
                                                                      
        rtems_chain_extract_unprotected (node);                       
                                                                      
        tnode = tnode->previous;                                      
                                                                      
        while (node && !rtems_chain_is_head (transfer, tnode))        
 800936c:	44 e0 00 03 	be r7,r0,8009378 <rtems_bdbuf_swapout_modified_processing+0xf8><== NEVER TAKEN
 8009370:	5d 03 ff f5 	bne r8,r3,8009344 <rtems_bdbuf_swapout_modified_processing+0xc4>
 8009374:	e0 00 00 04 	bi 8009384 <rtems_bdbuf_swapout_modified_processing+0x104>
 8009378:	b9 20 38 00 	mv r7,r9                                       
    if (sync_active && (*dd_ptr == BDBUF_INVALID_DEV))                
      sync_all = true;                                                
    else                                                              
      sync_all = false;                                               
                                                                      
    while (!rtems_chain_is_tail (chain, node))                        
 800937c:	5c e2 ff d1 	bne r7,r2,80092c0 <rtems_bdbuf_swapout_modified_processing+0x40>
 8009380:	e0 00 00 07 	bi 800939c <rtems_bdbuf_swapout_modified_processing+0x11c>
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
 8009384:	28 68 00 00 	lw r8,(r3+0)                                   
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
 8009388:	58 e3 00 04 	sw (r7+4),r3                                   
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
 800938c:	58 67 00 00 	sw (r3+0),r7                                   
  the_node->next        = before_node;                                
 8009390:	58 e8 00 00 	sw (r7+0),r8                                   
  before_node->previous = the_node;                                   
 8009394:	59 07 00 04 	sw (r8+4),r7                                   
 8009398:	e3 ff ff f8 	bi 8009378 <rtems_bdbuf_swapout_modified_processing+0xf8>
      {                                                               
        node = node->next;                                            
      }                                                               
    }                                                                 
  }                                                                   
}                                                                     
 800939c:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80093a0:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80093a4:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80093a8:	2b 8e 00 04 	lw r14,(sp+4)                                  
 80093ac:	37 9c 00 10 	addi sp,sp,16                                  
 80093b0:	c3 a0 00 00 	ret                                            
                                                                      

0800a188 <rtems_bdbuf_swapout_task>: * not this. * @return rtems_task Not used. */ static rtems_task rtems_bdbuf_swapout_task (rtems_task_argument arg) {
 800a188:	37 9c ff b0 	addi sp,sp,-80                                 
 800a18c:	5b 8b 00 34 	sw (sp+52),r11                                 
 800a190:	5b 8c 00 30 	sw (sp+48),r12                                 
 800a194:	5b 8d 00 2c 	sw (sp+44),r13                                 
 800a198:	5b 8e 00 28 	sw (sp+40),r14                                 
 800a19c:	5b 8f 00 24 	sw (sp+36),r15                                 
 800a1a0:	5b 90 00 20 	sw (sp+32),r16                                 
 800a1a4:	5b 91 00 1c 	sw (sp+28),r17                                 
 800a1a8:	5b 92 00 18 	sw (sp+24),r18                                 
 800a1ac:	5b 93 00 14 	sw (sp+20),r19                                 
 800a1b0:	5b 94 00 10 	sw (sp+16),r20                                 
 800a1b4:	5b 95 00 0c 	sw (sp+12),r21                                 
 800a1b8:	5b 96 00 08 	sw (sp+8),r22                                  
 800a1bc:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_bdbuf_swapout_transfer transfer;                              
  uint32_t                     period_in_ticks;                       
  const uint32_t               period_in_msecs = bdbuf_config.swapout_period;
 800a1c0:	78 0b 08 01 	mvhi r11,0x801                                 
 800a1c4:	39 6b 75 6c 	ori r11,r11,0x756c                             
 800a1c8:	29 73 00 0c 	lw r19,(r11+12)                                
  uint32_t                     timer_delta;                           
                                                                      
  transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();         
 800a1cc:	fb ff fd 7c 	calli 80097bc <rtems_bdbuf_swapout_writereq_alloc>
 800a1d0:	5b 81 00 4c 	sw (sp+76),r1                                  
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 800a1d4:	37 81 00 3c 	addi r1,sp,60                                  
 800a1d8:	5b 81 00 38 	sw (sp+56),r1                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
 800a1dc:	37 81 00 38 	addi r1,sp,56                                  
 800a1e0:	5b 81 00 40 	sw (sp+64),r1                                  
  transfer.syncing = false;                                           
                                                                      
  /*                                                                  
   * Localise the period.                                             
   */                                                                 
  period_in_ticks = RTEMS_MICROSECONDS_TO_TICKS (period_in_msecs * 1000);
 800a1e4:	34 02 03 e8 	mvi r2,1000                                    
 800a1e8:	ba 60 08 00 	mv r1,r19                                      
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
 800a1ec:	5b 80 00 3c 	sw (sp+60),r0                                  
  const uint32_t               period_in_msecs = bdbuf_config.swapout_period;
  uint32_t                     timer_delta;                           
                                                                      
  transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();         
  rtems_chain_initialize_empty (&transfer.bds);                       
  transfer.dd = BDBUF_INVALID_DEV;                                    
 800a1f0:	5b 80 00 44 	sw (sp+68),r0                                  
  transfer.syncing = false;                                           
 800a1f4:	33 80 00 48 	sb (sp+72),r0                                  
                                                                      
  /*                                                                  
   * Localise the period.                                             
   */                                                                 
  period_in_ticks = RTEMS_MICROSECONDS_TO_TICKS (period_in_msecs * 1000);
 800a1f8:	f8 00 31 b5 	calli 80168cc <__mulsi3>                       
 800a1fc:	78 02 08 01 	mvhi r2,0x801                                  
 800a200:	38 42 75 9c 	ori r2,r2,0x759c                               
 800a204:	28 42 00 0c 	lw r2,(r2+12)                                  
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
 800a208:	78 0c 08 01 	mvhi r12,0x801                                 
                                                                      
  the_node->next = tail;                                              
 800a20c:	78 0f 08 01 	mvhi r15,0x801                                 
 800a210:	f8 00 32 14 	calli 8016a60 <__udivsi3>                      
 800a214:	b8 20 b0 00 	mv r22,r1                                      
rtems_bdbuf_swapout_workers_open (void)                               
{                                                                     
  rtems_status_code sc;                                               
  size_t            w;                                                
                                                                      
  rtems_bdbuf_lock_cache ();                                          
 800a218:	fb ff fc 7a 	calli 8009400 <rtems_bdbuf_lock_cache>         
    worker->transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
                                                                      
    rtems_chain_initialize_empty (&worker->transfer.bds);             
    worker->transfer.dd = BDBUF_INVALID_DEV;                          
                                                                      
    sc = rtems_bdbuf_create_task (rtems_build_name('B', 'D', 'o', 'a' + w),
 800a21c:	78 01 08 01 	mvhi r1,0x801                                  
 800a220:	38 21 7a 60 	ori r1,r1,0x7a60                               
 800a224:	78 0e 08 00 	mvhi r14,0x800                                 
  rtems_status_code sc;                                               
  size_t            w;                                                
                                                                      
  rtems_bdbuf_lock_cache ();                                          
                                                                      
  for (w = 0; w < bdbuf_config.swapout_workers; w++)                  
 800a228:	34 0d 00 00 	mvi r13,0                                      
 800a22c:	b9 60 80 00 	mv r16,r11                                     
 800a230:	29 74 00 14 	lw r20,(r11+20)                                
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
 800a234:	39 8c 96 f8 	ori r12,r12,0x96f8                             
                                                                      
  the_node->next = tail;                                              
 800a238:	39 ef 97 04 	ori r15,r15,0x9704                             
    worker = malloc (sizeof (rtems_bdbuf_swapout_worker));            
    if (!worker)                                                      
      rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SO_WK_NOMEM);              
                                                                      
    rtems_chain_append_unprotected (&bdbuf_cache.swapout_workers, &worker->link);
    worker->enabled = true;                                           
 800a23c:	34 12 00 01 	mvi r18,1                                      
    worker->transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
                                                                      
    rtems_chain_initialize_empty (&worker->transfer.bds);             
    worker->transfer.dd = BDBUF_INVALID_DEV;                          
                                                                      
    sc = rtems_bdbuf_create_task (rtems_build_name('B', 'D', 'o', 'a' + w),
 800a240:	28 31 00 00 	lw r17,(r1+0)                                  
 800a244:	39 ce a4 cc 	ori r14,r14,0xa4cc                             
 800a248:	e0 00 00 20 	bi 800a2c8 <rtems_bdbuf_swapout_task+0x140>    
                                                                      
  for (w = 0; w < bdbuf_config.swapout_workers; w++)                  
  {                                                                   
    rtems_bdbuf_swapout_worker* worker;                               
                                                                      
    worker = malloc (sizeof (rtems_bdbuf_swapout_worker));            
 800a24c:	34 01 00 28 	mvi r1,40                                      <== NOT EXECUTED
 800a250:	fb ff e3 3e 	calli 8002f48 <malloc>                         <== NOT EXECUTED
 800a254:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
    if (!worker)                                                      
 800a258:	5c 20 00 03 	bne r1,r0,800a264 <rtems_bdbuf_swapout_task+0xdc><== NOT EXECUTED
      rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SO_WK_NOMEM);              
 800a25c:	34 01 00 0a 	mvi r1,10                                      <== NOT EXECUTED
 800a260:	fb ff fc 55 	calli 80093b4 <rtems_bdbuf_fatal>              <== NOT EXECUTED
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
 800a264:	29 81 00 10 	lw r1,(r12+16)                                 <== NOT EXECUTED
                                                                      
  the_node->next = tail;                                              
 800a268:	59 6f 00 00 	sw (r11+0),r15                                 <== NOT EXECUTED
  tail->previous = the_node;                                          
 800a26c:	59 8b 00 10 	sw (r12+16),r11                                <== NOT EXECUTED
  old_last->next = the_node;                                          
 800a270:	58 2b 00 00 	sw (r1+0),r11                                  <== NOT EXECUTED
  the_node->previous = old_last;                                      
 800a274:	59 61 00 04 	sw (r11+4),r1                                  <== NOT EXECUTED
                                                                      
    rtems_chain_append_unprotected (&bdbuf_cache.swapout_workers, &worker->link);
    worker->enabled = true;                                           
 800a278:	31 72 00 0c 	sb (r11+12),r18                                <== NOT EXECUTED
    worker->transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
 800a27c:	fb ff fd 50 	calli 80097bc <rtems_bdbuf_swapout_writereq_alloc><== NOT EXECUTED
 800a280:	59 61 00 24 	sw (r11+36),r1                                 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
 800a284:	35 61 00 14 	addi r1,r11,20                                 <== NOT EXECUTED
                                                                      
    rtems_chain_initialize_empty (&worker->transfer.bds);             
    worker->transfer.dd = BDBUF_INVALID_DEV;                          
                                                                      
    sc = rtems_bdbuf_create_task (rtems_build_name('B', 'D', 'o', 'a' + w),
 800a288:	35 a2 00 61 	addi r2,r13,97                                 <== NOT EXECUTED
                                                                      
  head->next = tail;                                                  
 800a28c:	59 61 00 10 	sw (r11+16),r1                                 <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
 800a290:	35 61 00 10 	addi r1,r11,16                                 <== NOT EXECUTED
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
 800a294:	59 61 00 18 	sw (r11+24),r1                                 <== NOT EXECUTED
 800a298:	b8 51 08 00 	or r1,r2,r17                                   <== NOT EXECUTED
 800a29c:	2a 02 00 18 	lw r2,(r16+24)                                 <== NOT EXECUTED
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
 800a2a0:	59 60 00 14 	sw (r11+20),r0                                 <== NOT EXECUTED
    rtems_chain_append_unprotected (&bdbuf_cache.swapout_workers, &worker->link);
    worker->enabled = true;                                           
    worker->transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
                                                                      
    rtems_chain_initialize_empty (&worker->transfer.bds);             
    worker->transfer.dd = BDBUF_INVALID_DEV;                          
 800a2a4:	59 60 00 1c 	sw (r11+28),r0                                 <== NOT EXECUTED
                                                                      
    sc = rtems_bdbuf_create_task (rtems_build_name('B', 'D', 'o', 'a' + w),
 800a2a8:	b9 c0 18 00 	mv r3,r14                                      <== NOT EXECUTED
 800a2ac:	b9 60 20 00 	mv r4,r11                                      <== NOT EXECUTED
 800a2b0:	35 65 00 08 	addi r5,r11,8                                  <== NOT EXECUTED
 800a2b4:	fb ff fd 89 	calli 80098d8 <rtems_bdbuf_create_task.clone.11><== NOT EXECUTED
                                  bdbuf_config.swapout_worker_priority,
                                  RTEMS_BDBUF_SWAPOUT_WORKER_TASK_PRIORITY_DEFAULT,
                                  rtems_bdbuf_swapout_worker_task,    
                                  (rtems_task_argument) worker,       
                                  &worker->id);                       
    if (sc != RTEMS_SUCCESSFUL)                                       
 800a2b8:	44 20 00 03 	be r1,r0,800a2c4 <rtems_bdbuf_swapout_task+0x13c><== NOT EXECUTED
      rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SO_WK_CREATE);             
 800a2bc:	34 01 00 0d 	mvi r1,13                                      <== NOT EXECUTED
 800a2c0:	fb ff fc 3d 	calli 80093b4 <rtems_bdbuf_fatal>              <== NOT EXECUTED
  rtems_status_code sc;                                               
  size_t            w;                                                
                                                                      
  rtems_bdbuf_lock_cache ();                                          
                                                                      
  for (w = 0; w < bdbuf_config.swapout_workers; w++)                  
 800a2c4:	35 ad 00 01 	addi r13,r13,1                                 <== NOT EXECUTED
 800a2c8:	56 8d ff e1 	bgu r20,r13,800a24c <rtems_bdbuf_swapout_task+0xc4><== NEVER TAKEN
  /*                                                                  
   * Create the worker threads.                                       
   */                                                                 
  rtems_bdbuf_swapout_workers_open ();                                
                                                                      
  while (bdbuf_cache.swapout_enabled)                                 
 800a2cc:	78 0c 08 01 	mvhi r12,0x801                                 
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
 800a2d0:	78 12 08 01 	mvhi r18,0x801                                 
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
                                                                      
  head->next = new_first;                                             
  new_first->previous = head;                                         
 800a2d4:	78 11 08 01 	mvhi r17,0x801                                 
                                                                      
  /*                                                                  
   * If we have any buffers in the sync queue move them to the modified
   * list. The first sync buffer will select the device we use.       
   */                                                                 
  rtems_bdbuf_swapout_modified_processing (&transfer->dd,             
 800a2d8:	78 10 08 01 	mvhi r16,0x801                                 
                                           timer_delta);              
                                                                      
  /*                                                                  
   * Process the cache's modified list.                               
   */                                                                 
  rtems_bdbuf_swapout_modified_processing (&transfer->dd,             
 800a2dc:	78 0f 08 01 	mvhi r15,0x801                                 
                                  &worker->id);                       
    if (sc != RTEMS_SUCCESSFUL)                                       
      rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SO_WK_CREATE);             
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
 800a2e0:	fb ff fc 74 	calli 80094b0 <rtems_bdbuf_unlock_cache>       
  /*                                                                  
   * Create the worker threads.                                       
   */                                                                 
  rtems_bdbuf_swapout_workers_open ();                                
                                                                      
  while (bdbuf_cache.swapout_enabled)                                 
 800a2e4:	39 8c 96 f8 	ori r12,r12,0x96f8                             
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
 800a2e8:	3a 52 97 04 	ori r18,r18,0x9704                             
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
                                                                      
  head->next = new_first;                                             
  new_first->previous = head;                                         
 800a2ec:	3a 31 97 00 	ori r17,r17,0x9700                             
                                                                      
  /*                                                                  
   * If we have any buffers in the sync queue move them to the modified
   * list. The first sync buffer will select the device we use.       
   */                                                                 
  rtems_bdbuf_swapout_modified_processing (&transfer->dd,             
 800a2f0:	3a 10 97 50 	ori r16,r16,0x9750                             
                                           timer_delta);              
                                                                      
  /*                                                                  
   * Process the cache's modified list.                               
   */                                                                 
  rtems_bdbuf_swapout_modified_processing (&transfer->dd,             
 800a2f4:	39 ef 97 44 	ori r15,r15,0x9744                             
  /*                                                                  
   * Create the worker threads.                                       
   */                                                                 
  rtems_bdbuf_swapout_workers_open ();                                
                                                                      
  while (bdbuf_cache.swapout_enabled)                                 
 800a2f8:	e0 00 00 52 	bi 800a440 <rtems_bdbuf_swapout_task+0x2b8>    
      /*                                                              
       * Extact all the buffers we find for a specific device. The device is
       * the first one we find on a modified list. Process the sync queue of
       * buffers first.                                               
       */                                                             
      if (rtems_bdbuf_swapout_processing (timer_delta,                
 800a2fc:	34 0e 00 00 	mvi r14,0                                      
                                rtems_bdbuf_swapout_transfer* transfer)
{                                                                     
  rtems_bdbuf_swapout_worker* worker;                                 
  bool                        transfered_buffers = false;             
                                                                      
  rtems_bdbuf_lock_cache ();                                          
 800a300:	fb ff fc 40 	calli 8009400 <rtems_bdbuf_lock_cache>         
   * here. We do not know the worker is the last in a sequence of sync writes
   * until after we have it running so we do not know to tell it to release the
   * lock. The simplest solution is to get the main swap out task perform all
   * sync operations.                                                 
   */                                                                 
  if (bdbuf_cache.sync_active)                                        
 800a304:	41 84 00 30 	lbu r4,(r12+48)                                
    worker = NULL;                                                    
 800a308:	34 0d 00 00 	mvi r13,0                                      
      /*                                                              
       * Extact all the buffers we find for a specific device. The device is
       * the first one we find on a modified list. Process the sync queue of
       * buffers first.                                               
       */                                                             
      if (rtems_bdbuf_swapout_processing (timer_delta,                
 800a30c:	37 8b 00 38 	addi r11,sp,56                                 
   * here. We do not know the worker is the last in a sequence of sync writes
   * until after we have it running so we do not know to tell it to release the
   * lock. The simplest solution is to get the main swap out task perform all
   * sync operations.                                                 
   */                                                                 
  if (bdbuf_cache.sync_active)                                        
 800a310:	5c 80 00 0b 	bne r4,r0,800a33c <rtems_bdbuf_swapout_task+0x1b4>
void rtems_bdbuf_reset_device_stats (rtems_disk_device *dd)           
{                                                                     
  rtems_bdbuf_lock_cache ();                                          
  memset (&dd->stats, 0, sizeof(dd->stats));                          
  rtems_bdbuf_unlock_cache ();                                        
}                                                                     
 800a314:	29 8d 00 08 	lw r13,(r12+8)                                 
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
 800a318:	45 b2 00 07 	be r13,r18,800a334 <rtems_bdbuf_swapout_task+0x1ac><== ALWAYS TAKEN
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
 800a31c:	29 a2 00 00 	lw r2,(r13+0)                                  <== NOT EXECUTED
  else                                                                
  {                                                                   
    worker = (rtems_bdbuf_swapout_worker*)                            
      rtems_chain_get_unprotected (&bdbuf_cache.swapout_workers);     
    if (worker)                                                       
      transfer = &worker->transfer;                                   
 800a320:	35 ab 00 10 	addi r11,r13,16                                <== NOT EXECUTED
                                                                      
  head->next = new_first;                                             
 800a324:	59 82 00 08 	sw (r12+8),r2                                  <== NOT EXECUTED
  new_first->previous = head;                                         
 800a328:	58 51 00 04 	sw (r2+4),r17                                  <== NOT EXECUTED
    worker = NULL;                                                    
  else                                                                
  {                                                                   
    worker = (rtems_bdbuf_swapout_worker*)                            
      rtems_chain_get_unprotected (&bdbuf_cache.swapout_workers);     
    if (worker)                                                       
 800a32c:	5d a0 00 04 	bne r13,r0,800a33c <rtems_bdbuf_swapout_task+0x1b4><== NOT EXECUTED
 800a330:	e0 00 00 02 	bi 800a338 <rtems_bdbuf_swapout_task+0x1b0>    <== NOT EXECUTED
 800a334:	b8 80 68 00 	mv r13,r4                                      
      /*                                                              
       * Extact all the buffers we find for a specific device. The device is
       * the first one we find on a modified list. Process the sync queue of
       * buffers first.                                               
       */                                                             
      if (rtems_bdbuf_swapout_processing (timer_delta,                
 800a338:	37 8b 00 38 	addi r11,sp,56                                 
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 );                        
 800a33c:	35 74 00 04 	addi r20,r11,4                                 
                                                                      
  head->next = tail;                                                  
 800a340:	59 74 00 00 	sw (r11+0),r20                                 
  head->previous = NULL;                                              
 800a344:	59 60 00 04 	sw (r11+4),r0                                  
  tail->previous = head;                                              
 800a348:	59 6b 00 08 	sw (r11+8),r11                                 
    if (worker)                                                       
      transfer = &worker->transfer;                                   
  }                                                                   
                                                                      
  rtems_chain_initialize_empty (&transfer->bds);                      
  transfer->dd = BDBUF_INVALID_DEV;                                   
 800a34c:	59 60 00 0c 	sw (r11+12),r0                                 
  transfer->syncing = bdbuf_cache.sync_active;                        
 800a350:	31 64 00 10 	sb (r11+16),r4                                 
  /*                                                                  
   * When the sync is for a device limit the sync to that device. If the sync
   * is for a buffer handle process the devices in the order on the sync
   * list. This means the dev is BDBUF_INVALID_DEV.                   
   */                                                                 
  if (bdbuf_cache.sync_active)                                        
 800a354:	44 80 00 03 	be r4,r0,800a360 <rtems_bdbuf_swapout_task+0x1d8>
    transfer->dd = bdbuf_cache.sync_device;                           
 800a358:	29 81 00 38 	lw r1,(r12+56)                                 
 800a35c:	59 61 00 0c 	sw (r11+12),r1                                 
                                                                      
  /*                                                                  
   * If we have any buffers in the sync queue move them to the modified
   * list. The first sync buffer will select the device we use.       
   */                                                                 
  rtems_bdbuf_swapout_modified_processing (&transfer->dd,             
 800a360:	35 75 00 0c 	addi r21,r11,12                                
 800a364:	ba a0 08 00 	mv r1,r21                                      
 800a368:	ba 00 10 00 	mv r2,r16                                      
 800a36c:	b9 60 18 00 	mv r3,r11                                      
 800a370:	34 04 00 01 	mvi r4,1                                       
 800a374:	34 05 00 00 	mvi r5,0                                       
 800a378:	ba 60 30 00 	mv r6,r19                                      
 800a37c:	fb ff fb c1 	calli 8009280 <rtems_bdbuf_swapout_modified_processing>
                                           timer_delta);              
                                                                      
  /*                                                                  
   * Process the cache's modified list.                               
   */                                                                 
  rtems_bdbuf_swapout_modified_processing (&transfer->dd,             
 800a380:	41 84 00 30 	lbu r4,(r12+48)                                
 800a384:	ba a0 08 00 	mv r1,r21                                      
 800a388:	b9 c0 28 00 	mv r5,r14                                      
 800a38c:	b9 e0 10 00 	mv r2,r15                                      
 800a390:	b9 60 18 00 	mv r3,r11                                      
 800a394:	ba 60 30 00 	mv r6,r19                                      
 800a398:	fb ff fb ba 	calli 8009280 <rtems_bdbuf_swapout_modified_processing>
  /*                                                                  
   * We have all the buffers that have been modified for this device so the
   * cache can be unlocked because the state of each buffer has been set to
   * TRANSFER.                                                        
   */                                                                 
  rtems_bdbuf_unlock_cache ();                                        
 800a39c:	fb ff fc 45 	calli 80094b0 <rtems_bdbuf_unlock_cache>       
                                                                      
  /*                                                                  
   * If there are buffers to transfer to the media transfer them.     
   */                                                                 
  if (!rtems_chain_is_empty (&transfer->bds))                         
 800a3a0:	29 61 00 00 	lw r1,(r11+0)                                  
rtems_bdbuf_swapout_processing (unsigned long                 timer_delta,
                                bool                          update_timers,
                                rtems_bdbuf_swapout_transfer* transfer)
{                                                                     
  rtems_bdbuf_swapout_worker* worker;                                 
  bool                        transfered_buffers = false;             
 800a3a4:	34 0e 00 00 	mvi r14,0                                      
  rtems_bdbuf_unlock_cache ();                                        
                                                                      
  /*                                                                  
   * If there are buffers to transfer to the media transfer them.     
   */                                                                 
  if (!rtems_chain_is_empty (&transfer->bds))                         
 800a3a8:	44 34 00 0d 	be r1,r20,800a3dc <rtems_bdbuf_swapout_task+0x254>
  {                                                                   
    if (worker)                                                       
 800a3ac:	45 a0 00 09 	be r13,r0,800a3d0 <rtems_bdbuf_swapout_task+0x248><== ALWAYS TAKEN
    {                                                                 
      rtems_status_code sc = rtems_event_send (worker->id,            
 800a3b0:	29 a1 00 08 	lw r1,(r13+8)                                  <== NOT EXECUTED
 800a3b4:	34 02 00 04 	mvi r2,4                                       <== NOT EXECUTED
    else                                                              
    {                                                                 
      rtems_bdbuf_swapout_write (transfer);                           
    }                                                                 
                                                                      
    transfered_buffers = true;                                        
 800a3b8:	34 0e 00 01 	mvi r14,1                                      <== NOT EXECUTED
   */                                                                 
  if (!rtems_chain_is_empty (&transfer->bds))                         
  {                                                                   
    if (worker)                                                       
    {                                                                 
      rtems_status_code sc = rtems_event_send (worker->id,            
 800a3bc:	f8 00 0d 7c 	calli 800d9ac <rtems_event_send>               <== NOT EXECUTED
                                               RTEMS_BDBUF_SWAPOUT_SYNC);
      if (sc != RTEMS_SUCCESSFUL)                                     
 800a3c0:	44 20 00 07 	be r1,r0,800a3dc <rtems_bdbuf_swapout_task+0x254><== NOT EXECUTED
        rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SO_WAKE_2);              
 800a3c4:	34 01 00 0c 	mvi r1,12                                      <== NOT EXECUTED
 800a3c8:	fb ff fb fb 	calli 80093b4 <rtems_bdbuf_fatal>              <== NOT EXECUTED
 800a3cc:	e0 00 00 04 	bi 800a3dc <rtems_bdbuf_swapout_task+0x254>    <== NOT EXECUTED
    }                                                                 
    else                                                              
    {                                                                 
      rtems_bdbuf_swapout_write (transfer);                           
 800a3d0:	b9 60 08 00 	mv r1,r11                                      
 800a3d4:	fb ff ff 00 	calli 8009fd4 <rtems_bdbuf_swapout_write>      
    }                                                                 
                                                                      
    transfered_buffers = true;                                        
 800a3d8:	34 0e 00 01 	mvi r14,1                                      
  }                                                                   
                                                                      
  if (bdbuf_cache.sync_active && !transfered_buffers)                 
 800a3dc:	41 82 00 30 	lbu r2,(r12+48)                                
 800a3e0:	44 40 00 0c 	be r2,r0,800a410 <rtems_bdbuf_swapout_task+0x288>
 800a3e4:	5d c0 ff c6 	bne r14,r0,800a2fc <rtems_bdbuf_swapout_task+0x174>
  {                                                                   
    rtems_id sync_requester;                                          
    rtems_bdbuf_lock_cache ();                                        
 800a3e8:	fb ff fc 06 	calli 8009400 <rtems_bdbuf_lock_cache>         
    sync_requester = bdbuf_cache.sync_requester;                      
 800a3ec:	29 8b 00 34 	lw r11,(r12+52)                                
    bdbuf_cache.sync_active = false;                                  
 800a3f0:	31 80 00 30 	sb (r12+48),r0                                 
    bdbuf_cache.sync_requester = 0;                                   
 800a3f4:	59 80 00 34 	sw (r12+52),r0                                 
    rtems_bdbuf_unlock_cache ();                                      
 800a3f8:	fb ff fc 2e 	calli 80094b0 <rtems_bdbuf_unlock_cache>       
    if (sync_requester)                                               
 800a3fc:	45 6e 00 06 	be r11,r14,800a414 <rtems_bdbuf_swapout_task+0x28c><== NEVER TAKEN
 800a400:	b9 60 08 00 	mv r1,r11                                      
 800a404:	78 02 80 00 	mvhi r2,0x8000                                 
 800a408:	fb ff eb 57 	calli 8005164 <rtems_event_system_send>        
 800a40c:	e0 00 00 02 	bi 800a414 <rtems_bdbuf_swapout_task+0x28c>    
      /*                                                              
       * Extact all the buffers we find for a specific device. The device is
       * the first one we find on a modified list. Process the sync queue of
       * buffers first.                                               
       */                                                             
      if (rtems_bdbuf_swapout_processing (timer_delta,                
 800a410:	5d c2 ff bb 	bne r14,r2,800a2fc <rtems_bdbuf_swapout_task+0x174>
       */                                                             
      update_timers = false;                                          
    }                                                                 
    while (transfered_buffers);                                       
                                                                      
    sc = rtems_event_receive (RTEMS_BDBUF_SWAPOUT_SYNC,               
 800a414:	34 02 00 00 	mvi r2,0                                       
 800a418:	34 01 00 04 	mvi r1,4                                       
 800a41c:	ba c0 18 00 	mv r3,r22                                      
 800a420:	37 84 00 50 	addi r4,sp,80                                  
 800a424:	f8 00 0c fc 	calli 800d814 <rtems_event_receive>            
                              RTEMS_EVENT_ALL | RTEMS_WAIT,           
                              period_in_ticks,                        
                              &out);                                  
                                                                      
    if ((sc != RTEMS_SUCCESSFUL) && (sc != RTEMS_TIMEOUT))            
 800a428:	7c 22 00 06 	cmpnei r2,r1,6                                 
 800a42c:	7c 21 00 00 	cmpnei r1,r1,0                                 
 800a430:	a0 41 08 00 	and r1,r2,r1                                   
 800a434:	44 20 00 03 	be r1,r0,800a440 <rtems_bdbuf_swapout_task+0x2b8><== ALWAYS TAKEN
      rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SWAPOUT_RE);               
 800a438:	34 01 00 18 	mvi r1,24                                      <== NOT EXECUTED
 800a43c:	fb ff fb de 	calli 80093b4 <rtems_bdbuf_fatal>              <== NOT EXECUTED
  /*                                                                  
   * Create the worker threads.                                       
   */                                                                 
  rtems_bdbuf_swapout_workers_open ();                                
                                                                      
  while (bdbuf_cache.swapout_enabled)                                 
 800a440:	41 81 00 04 	lbu r1,(r12+4)                                 
 800a444:	44 20 00 03 	be r1,r0,800a450 <rtems_bdbuf_swapout_task+0x2c8><== NEVER TAKEN
 800a448:	34 0e 00 01 	mvi r14,1                                      
 800a44c:	e3 ff ff ad 	bi 800a300 <rtems_bdbuf_swapout_task+0x178>    
static void                                                           
rtems_bdbuf_swapout_workers_close (void)                              
{                                                                     
  rtems_chain_node* node;                                             
                                                                      
  rtems_bdbuf_lock_cache ();                                          
 800a450:	fb ff fb ec 	calli 8009400 <rtems_bdbuf_lock_cache>         <== NOT EXECUTED
void rtems_bdbuf_reset_device_stats (rtems_disk_device *dd)           
{                                                                     
  rtems_bdbuf_lock_cache ();                                          
  memset (&dd->stats, 0, sizeof(dd->stats));                          
  rtems_bdbuf_unlock_cache ();                                        
}                                                                     
 800a454:	29 8b 00 08 	lw r11,(r12+8)                                 <== NOT EXECUTED
  rtems_chain_node* node;                                             
                                                                      
  rtems_bdbuf_lock_cache ();                                          
                                                                      
  node = rtems_chain_first (&bdbuf_cache.swapout_workers);            
  while (!rtems_chain_is_tail (&bdbuf_cache.swapout_workers, node))   
 800a458:	78 0c 08 01 	mvhi r12,0x801                                 <== NOT EXECUTED
 800a45c:	39 8c 97 04 	ori r12,r12,0x9704                             <== NOT EXECUTED
 800a460:	e0 00 00 06 	bi 800a478 <rtems_bdbuf_swapout_task+0x2f0>    <== NOT EXECUTED
  {                                                                   
    rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) node;
    worker->enabled = false;                                          
    rtems_event_send (worker->id, RTEMS_BDBUF_SWAPOUT_SYNC);          
 800a464:	29 61 00 08 	lw r1,(r11+8)                                  <== NOT EXECUTED
                                                                      
  node = rtems_chain_first (&bdbuf_cache.swapout_workers);            
  while (!rtems_chain_is_tail (&bdbuf_cache.swapout_workers, node))   
  {                                                                   
    rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) node;
    worker->enabled = false;                                          
 800a468:	31 60 00 0c 	sb (r11+12),r0                                 <== NOT EXECUTED
    rtems_event_send (worker->id, RTEMS_BDBUF_SWAPOUT_SYNC);          
 800a46c:	34 02 00 04 	mvi r2,4                                       <== NOT EXECUTED
 800a470:	f8 00 0d 4f 	calli 800d9ac <rtems_event_send>               <== NOT EXECUTED
void rtems_bdbuf_reset_device_stats (rtems_disk_device *dd)           
{                                                                     
  rtems_bdbuf_lock_cache ();                                          
  memset (&dd->stats, 0, sizeof(dd->stats));                          
  rtems_bdbuf_unlock_cache ();                                        
}                                                                     
 800a474:	29 6b 00 00 	lw r11,(r11+0)                                 <== NOT EXECUTED
  rtems_chain_node* node;                                             
                                                                      
  rtems_bdbuf_lock_cache ();                                          
                                                                      
  node = rtems_chain_first (&bdbuf_cache.swapout_workers);            
  while (!rtems_chain_is_tail (&bdbuf_cache.swapout_workers, node))   
 800a478:	5d 6c ff fb 	bne r11,r12,800a464 <rtems_bdbuf_swapout_task+0x2dc><== NOT EXECUTED
    worker->enabled = false;                                          
    rtems_event_send (worker->id, RTEMS_BDBUF_SWAPOUT_SYNC);          
    node = rtems_chain_next (node);                                   
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
 800a47c:	fb ff fc 0d 	calli 80094b0 <rtems_bdbuf_unlock_cache>       <== NOT EXECUTED
      rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SWAPOUT_RE);               
  }                                                                   
                                                                      
  rtems_bdbuf_swapout_workers_close ();                               
                                                                      
  free (transfer.write_req);                                          
 800a480:	2b 81 00 4c 	lw r1,(sp+76)                                  <== NOT EXECUTED
 800a484:	fb ff e1 23 	calli 8002910 <free>                           <== NOT EXECUTED
                                                                      
  rtems_task_delete (RTEMS_SELF);                                     
 800a488:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 800a48c:	f8 00 0e c3 	calli 800df98 <rtems_task_delete>              <== NOT EXECUTED
}                                                                     
 800a490:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 800a494:	2b 8b 00 34 	lw r11,(sp+52)                                 <== NOT EXECUTED
 800a498:	2b 8c 00 30 	lw r12,(sp+48)                                 <== NOT EXECUTED
 800a49c:	2b 8d 00 2c 	lw r13,(sp+44)                                 <== NOT EXECUTED
 800a4a0:	2b 8e 00 28 	lw r14,(sp+40)                                 <== NOT EXECUTED
 800a4a4:	2b 8f 00 24 	lw r15,(sp+36)                                 <== NOT EXECUTED
 800a4a8:	2b 90 00 20 	lw r16,(sp+32)                                 <== NOT EXECUTED
 800a4ac:	2b 91 00 1c 	lw r17,(sp+28)                                 <== NOT EXECUTED
 800a4b0:	2b 92 00 18 	lw r18,(sp+24)                                 <== NOT EXECUTED
 800a4b4:	2b 93 00 14 	lw r19,(sp+20)                                 <== NOT EXECUTED
 800a4b8:	2b 94 00 10 	lw r20,(sp+16)                                 <== NOT EXECUTED
 800a4bc:	2b 95 00 0c 	lw r21,(sp+12)                                 <== NOT EXECUTED
 800a4c0:	2b 96 00 08 	lw r22,(sp+8)                                  <== NOT EXECUTED
 800a4c4:	37 9c 00 50 	addi sp,sp,80                                  <== NOT EXECUTED
 800a4c8:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0800a4cc <rtems_bdbuf_swapout_worker_task>: * @param arg A pointer to the worker thread's private data. * @return rtems_task Not used. */ static rtems_task rtems_bdbuf_swapout_worker_task (rtems_task_argument arg) {
 800a4cc:	37 9c ff e8 	addi sp,sp,-24                                 <== NOT EXECUTED
 800a4d0:	5b 8b 00 18 	sw (sp+24),r11                                 <== NOT EXECUTED
 800a4d4:	5b 8c 00 14 	sw (sp+20),r12                                 <== NOT EXECUTED
 800a4d8:	5b 8d 00 10 	sw (sp+16),r13                                 <== NOT EXECUTED
 800a4dc:	5b 8e 00 0c 	sw (sp+12),r14                                 <== NOT EXECUTED
 800a4e0:	5b 8f 00 08 	sw (sp+8),r15                                  <== NOT EXECUTED
 800a4e4:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
 800a4e8:	78 0c 08 01 	mvhi r12,0x801                                 <== NOT EXECUTED
                                                                      
  the_node->next = tail;                                              
 800a4ec:	78 0d 08 01 	mvhi r13,0x801                                 <== NOT EXECUTED
 800a4f0:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
                                                                      
  while (worker->enabled)                                             
  {                                                                   
    rtems_bdbuf_wait_for_event (RTEMS_BDBUF_SWAPOUT_SYNC);            
                                                                      
    rtems_bdbuf_swapout_write (&worker->transfer);                    
 800a4f4:	34 2e 00 10 	addi r14,r1,16                                 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
 800a4f8:	34 2f 00 14 	addi r15,r1,20                                 <== NOT EXECUTED
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
 800a4fc:	39 8c 96 f8 	ori r12,r12,0x96f8                             <== NOT EXECUTED
                                                                      
  the_node->next = tail;                                              
 800a500:	39 ad 97 04 	ori r13,r13,0x9704                             <== NOT EXECUTED
static rtems_task                                                     
rtems_bdbuf_swapout_worker_task (rtems_task_argument arg)             
{                                                                     
  rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) arg;
                                                                      
  while (worker->enabled)                                             
 800a504:	e0 00 00 10 	bi 800a544 <rtems_bdbuf_swapout_worker_task+0x78><== NOT EXECUTED
  {                                                                   
    rtems_bdbuf_wait_for_event (RTEMS_BDBUF_SWAPOUT_SYNC);            
 800a508:	34 01 00 04 	mvi r1,4                                       <== NOT EXECUTED
 800a50c:	fb ff fc 9a 	calli 8009774 <rtems_bdbuf_wait_for_event>     <== NOT EXECUTED
                                                                      
    rtems_bdbuf_swapout_write (&worker->transfer);                    
 800a510:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 800a514:	fb ff fe b0 	calli 8009fd4 <rtems_bdbuf_swapout_write>      <== NOT EXECUTED
                                                                      
    rtems_bdbuf_lock_cache ();                                        
 800a518:	fb ff fb ba 	calli 8009400 <rtems_bdbuf_lock_cache>         <== NOT EXECUTED
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
 800a51c:	29 81 00 10 	lw r1,(r12+16)                                 <== NOT EXECUTED
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 800a520:	59 6f 00 10 	sw (r11+16),r15                                <== NOT EXECUTED
                                                                      
    rtems_chain_initialize_empty (&worker->transfer.bds);             
    worker->transfer.dd = BDBUF_INVALID_DEV;                          
 800a524:	59 60 00 1c 	sw (r11+28),r0                                 <== NOT EXECUTED
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
 800a528:	59 6d 00 00 	sw (r11+0),r13                                 <== NOT EXECUTED
  tail->previous = the_node;                                          
 800a52c:	59 8b 00 10 	sw (r12+16),r11                                <== NOT EXECUTED
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
 800a530:	59 60 00 14 	sw (r11+20),r0                                 <== NOT EXECUTED
  tail->previous = head;                                              
 800a534:	59 6e 00 18 	sw (r11+24),r14                                <== NOT EXECUTED
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
  tail->previous = the_node;                                          
  old_last->next = the_node;                                          
 800a538:	58 2b 00 00 	sw (r1+0),r11                                  <== NOT EXECUTED
  the_node->previous = old_last;                                      
 800a53c:	59 61 00 04 	sw (r11+4),r1                                  <== NOT EXECUTED
                                                                      
    rtems_chain_append_unprotected (&bdbuf_cache.swapout_workers, &worker->link);
                                                                      
    rtems_bdbuf_unlock_cache ();                                      
 800a540:	fb ff fb dc 	calli 80094b0 <rtems_bdbuf_unlock_cache>       <== NOT EXECUTED
static rtems_task                                                     
rtems_bdbuf_swapout_worker_task (rtems_task_argument arg)             
{                                                                     
  rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) arg;
                                                                      
  while (worker->enabled)                                             
 800a544:	41 61 00 0c 	lbu r1,(r11+12)                                <== NOT EXECUTED
 800a548:	5c 20 ff f0 	bne r1,r0,800a508 <rtems_bdbuf_swapout_worker_task+0x3c><== NOT EXECUTED
    rtems_chain_append_unprotected (&bdbuf_cache.swapout_workers, &worker->link);
                                                                      
    rtems_bdbuf_unlock_cache ();                                      
  }                                                                   
                                                                      
  free (worker->transfer.write_req);                                  
 800a54c:	29 61 00 24 	lw r1,(r11+36)                                 <== NOT EXECUTED
 800a550:	fb ff e0 f0 	calli 8002910 <free>                           <== NOT EXECUTED
  free (worker);                                                      
 800a554:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800a558:	fb ff e0 ee 	calli 8002910 <free>                           <== NOT EXECUTED
                                                                      
  rtems_task_delete (RTEMS_SELF);                                     
 800a55c:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 800a560:	f8 00 0e 8e 	calli 800df98 <rtems_task_delete>              <== NOT EXECUTED
}                                                                     
 800a564:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 800a568:	2b 8b 00 18 	lw r11,(sp+24)                                 <== NOT EXECUTED
 800a56c:	2b 8c 00 14 	lw r12,(sp+20)                                 <== NOT EXECUTED
 800a570:	2b 8d 00 10 	lw r13,(sp+16)                                 <== NOT EXECUTED
 800a574:	2b 8e 00 0c 	lw r14,(sp+12)                                 <== NOT EXECUTED
 800a578:	2b 8f 00 08 	lw r15,(sp+8)                                  <== NOT EXECUTED
 800a57c:	37 9c 00 18 	addi sp,sp,24                                  <== NOT EXECUTED
 800a580:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08009fd4 <rtems_bdbuf_swapout_write>: * * @param transfer The transfer transaction. */ static void rtems_bdbuf_swapout_write (rtems_bdbuf_swapout_transfer* transfer) {
 8009fd4:	37 9c ff d0 	addi sp,sp,-48                                 
 8009fd8:	5b 8b 00 30 	sw (sp+48),r11                                 
 8009fdc:	5b 8c 00 2c 	sw (sp+44),r12                                 
 8009fe0:	5b 8d 00 28 	sw (sp+40),r13                                 
 8009fe4:	5b 8e 00 24 	sw (sp+36),r14                                 
 8009fe8:	5b 8f 00 20 	sw (sp+32),r15                                 
 8009fec:	5b 90 00 1c 	sw (sp+28),r16                                 
 8009ff0:	5b 91 00 18 	sw (sp+24),r17                                 
 8009ff4:	5b 92 00 14 	sw (sp+20),r18                                 
 8009ff8:	5b 93 00 10 	sw (sp+16),r19                                 
 8009ffc:	5b 94 00 0c 	sw (sp+12),r20                                 
 800a000:	5b 95 00 08 	sw (sp+8),r21                                  
 800a004:	5b 9d 00 04 	sw (sp+4),ra                                   
 800a008:	b8 20 58 00 	mv r11,r1                                      
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 800a00c:	34 2f 00 04 	addi r15,r1,4                                  
    printf ("bdbuf:swapout transfer: %08x\n", (unsigned) transfer->dd->dev);
                                                                      
  /*                                                                  
   * If there are buffers to transfer to the media transfer them.     
   */                                                                 
  if (!rtems_chain_is_empty (&transfer->bds))                         
 800a010:	28 21 00 00 	lw r1,(r1+0)                                   
 800a014:	44 2f 00 4f 	be r1,r15,800a150 <rtems_bdbuf_swapout_write+0x17c><== NEVER TAKEN
     * The last block number used when the driver only supports       
     * continuous blocks in a single request.                         
     */                                                               
    uint32_t last_block = 0;                                          
                                                                      
    rtems_disk_device *dd = transfer->dd;                             
 800a018:	29 6d 00 0c 	lw r13,(r11+12)                                
     * should be possible to make this change with little effect in this
     * code. The array that is passed is broken in design and should be
     * removed. Merging members of a struct into the first member is  
     * trouble waiting to happen.                                     
     */                                                               
    transfer->write_req->status = RTEMS_RESOURCE_IN_USE;              
 800a01c:	34 02 00 0c 	mvi r2,12                                      
       * Perform the transfer if there are no more buffers, or the transfer
       * size has reached the configured max. value.                  
       */                                                             
                                                                      
      if (rtems_chain_is_empty (&transfer->bds) ||                    
          (transfer->write_req->bufnum >= bdbuf_config.max_write_blocks))
 800a020:	78 0e 08 01 	mvhi r14,0x801                                 
    uint32_t last_block = 0;                                          
                                                                      
    rtems_disk_device *dd = transfer->dd;                             
    uint32_t media_blocks_per_block = dd->media_blocks_per_block;     
    bool need_continuous_blocks =                                     
      (dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_MULTISECTOR_CONT) != 0;
 800a024:	29 a1 00 08 	lw r1,(r13+8)                                  
     * continuous blocks in a single request.                         
     */                                                               
    uint32_t last_block = 0;                                          
                                                                      
    rtems_disk_device *dd = transfer->dd;                             
    uint32_t media_blocks_per_block = dd->media_blocks_per_block;     
 800a028:	29 b5 00 2c 	lw r21,(r13+44)                                
  {                                                                   
    /*                                                                
     * The last block number used when the driver only supports       
     * continuous blocks in a single request.                         
     */                                                               
    uint32_t last_block = 0;                                          
 800a02c:	34 10 00 00 	mvi r16,0                                      
                                                                      
    rtems_disk_device *dd = transfer->dd;                             
    uint32_t media_blocks_per_block = dd->media_blocks_per_block;     
    bool need_continuous_blocks =                                     
      (dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_MULTISECTOR_CONT) != 0;
 800a030:	28 34 00 0c 	lw r20,(r1+12)                                 
     * should be possible to make this change with little effect in this
     * code. The array that is passed is broken in design and should be
     * removed. Merging members of a struct into the first member is  
     * trouble waiting to happen.                                     
     */                                                               
    transfer->write_req->status = RTEMS_RESOURCE_IN_USE;              
 800a034:	29 61 00 14 	lw r1,(r11+20)                                 
                                                                      
      if (write)                                                      
      {                                                               
        rtems_bdbuf_execute_transfer_request (dd, transfer->write_req, false);
                                                                      
        transfer->write_req->status = RTEMS_RESOURCE_IN_USE;          
 800a038:	34 13 00 0c 	mvi r19,12                                     
    uint32_t last_block = 0;                                          
                                                                      
    rtems_disk_device *dd = transfer->dd;                             
    uint32_t media_blocks_per_block = dd->media_blocks_per_block;     
    bool need_continuous_blocks =                                     
      (dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_MULTISECTOR_CONT) != 0;
 800a03c:	22 94 00 01 	andi r20,r20,0x1                               
     * should be possible to make this change with little effect in this
     * code. The array that is passed is broken in design and should be
     * removed. Merging members of a struct into the first member is  
     * trouble waiting to happen.                                     
     */                                                               
    transfer->write_req->status = RTEMS_RESOURCE_IN_USE;              
 800a040:	58 22 00 0c 	sw (r1+12),r2                                  
    transfer->write_req->bufnum = 0;                                  
 800a044:	58 20 00 10 	sw (r1+16),r0                                  
       * Perform the transfer if there are no more buffers, or the transfer
       * size has reached the configured max. value.                  
       */                                                             
                                                                      
      if (rtems_chain_is_empty (&transfer->bds) ||                    
          (transfer->write_req->bufnum >= bdbuf_config.max_write_blocks))
 800a048:	39 ce 75 6c 	ori r14,r14,0x756c                             
     * trouble waiting to happen.                                     
     */                                                               
    transfer->write_req->status = RTEMS_RESOURCE_IN_USE;              
    transfer->write_req->bufnum = 0;                                  
                                                                      
    while ((node = rtems_chain_get_unprotected(&transfer->bds)) != NULL)
 800a04c:	e0 00 00 30 	bi 800a10c <rtems_bdbuf_swapout_write+0x138>   
      if (rtems_bdbuf_tracer)                                         
        printf ("bdbuf:swapout write: bd:%" PRIu32 ", bufnum:%" PRIu32 " mode:%s\n",
                bd->block, transfer->write_req->bufnum,               
                need_continuous_blocks ? "MULTI" : "SCAT");           
                                                                      
      if (need_continuous_blocks && transfer->write_req->bufnum &&    
 800a050:	29 62 00 14 	lw r2,(r11+20)                                 
 800a054:	28 42 00 10 	lw r2,(r2+16)                                  
 800a058:	44 40 00 0a 	be r2,r0,800a080 <rtems_bdbuf_swapout_write+0xac>
 800a05c:	29 83 00 18 	lw r3,(r12+24)                                 
          bd->block != last_block + media_blocks_per_block)           
 800a060:	b6 15 10 00 	add r2,r16,r21                                 
      if (rtems_bdbuf_tracer)                                         
        printf ("bdbuf:swapout write: bd:%" PRIu32 ", bufnum:%" PRIu32 " mode:%s\n",
                bd->block, transfer->write_req->bufnum,               
                need_continuous_blocks ? "MULTI" : "SCAT");           
                                                                      
      if (need_continuous_blocks && transfer->write_req->bufnum &&    
 800a064:	44 62 00 07 	be r3,r2,800a080 <rtems_bdbuf_swapout_write+0xac>
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
 800a068:	59 8b 00 04 	sw (r12+4),r11                                 
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
 800a06c:	59 6c 00 00 	sw (r11+0),r12                                 
  the_node->next        = before_node;                                
 800a070:	59 81 00 00 	sw (r12+0),r1                                  
  before_node->previous = the_node;                                   
 800a074:	58 2c 00 04 	sw (r1+4),r12                                  
          bd->block != last_block + media_blocks_per_block)           
      {                                                               
        rtems_chain_prepend_unprotected (&transfer->bds, &bd->link);  
        write = true;                                                 
 800a078:	34 01 00 01 	mvi r1,1                                       
 800a07c:	e0 00 00 16 	bi 800a0d4 <rtems_bdbuf_swapout_write+0x100>   
      }                                                               
      else                                                            
      {                                                               
        rtems_blkdev_sg_buffer* buf;                                  
        buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
 800a080:	29 70 00 14 	lw r16,(r11+20)                                
        transfer->write_req->bufnum++;                                
        buf->user   = bd;                                             
 800a084:	34 02 00 04 	mvi r2,4                                       
        write = true;                                                 
      }                                                               
      else                                                            
      {                                                               
        rtems_blkdev_sg_buffer* buf;                                  
        buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
 800a088:	2a 11 00 10 	lw r17,(r16+16)                                
        transfer->write_req->bufnum++;                                
 800a08c:	36 21 00 01 	addi r1,r17,1                                  
 800a090:	5a 01 00 10 	sw (r16+16),r1                                 
        buf->user   = bd;                                             
 800a094:	36 21 00 02 	addi r1,r17,2                                  
 800a098:	f8 00 31 98 	calli 80166f8 <__ashlsi3>                      
 800a09c:	b6 01 90 00 	add r18,r16,r1                                 
 800a0a0:	5a 4c 00 04 	sw (r18+4),r12                                 
        buf->block  = bd->block;                                      
 800a0a4:	ba 20 08 00 	mv r1,r17                                      
 800a0a8:	34 02 00 04 	mvi r2,4                                       
 800a0ac:	f8 00 31 93 	calli 80166f8 <__ashlsi3>                      
 800a0b0:	b6 01 80 00 	add r16,r16,r1                                 
 800a0b4:	29 81 00 18 	lw r1,(r12+24)                                 
 800a0b8:	5a 01 00 18 	sw (r16+24),r1                                 
        buf->length = dd->block_size;                                 
 800a0bc:	29 a1 00 24 	lw r1,(r13+36)                                 
 800a0c0:	5a 01 00 1c 	sw (r16+28),r1                                 
        buf->buffer = bd->buffer;                                     
 800a0c4:	29 81 00 1c 	lw r1,(r12+28)                                 
        last_block  = bd->block;                                      
 800a0c8:	29 90 00 18 	lw r16,(r12+24)                                
        buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
        transfer->write_req->bufnum++;                                
        buf->user   = bd;                                             
        buf->block  = bd->block;                                      
        buf->length = dd->block_size;                                 
        buf->buffer = bd->buffer;                                     
 800a0cc:	5a 41 00 00 	sw (r18+0),r1                                  
    transfer->write_req->bufnum = 0;                                  
                                                                      
    while ((node = rtems_chain_get_unprotected(&transfer->bds)) != NULL)
    {                                                                 
      rtems_bdbuf_buffer* bd = (rtems_bdbuf_buffer*) node;            
      bool                write = false;                              
 800a0d0:	34 01 00 00 	mvi r1,0                                       
      /*                                                              
       * Perform the transfer if there are no more buffers, or the transfer
       * size has reached the configured max. value.                  
       */                                                             
                                                                      
      if (rtems_chain_is_empty (&transfer->bds) ||                    
 800a0d4:	29 62 00 00 	lw r2,(r11+0)                                  
 800a0d8:	44 4f 00 06 	be r2,r15,800a0f0 <rtems_bdbuf_swapout_write+0x11c>
          (transfer->write_req->bufnum >= bdbuf_config.max_write_blocks))
 800a0dc:	29 62 00 14 	lw r2,(r11+20)                                 
      /*                                                              
       * Perform the transfer if there are no more buffers, or the transfer
       * size has reached the configured max. value.                  
       */                                                             
                                                                      
      if (rtems_chain_is_empty (&transfer->bds) ||                    
 800a0e0:	29 c3 00 04 	lw r3,(r14+4)                                  
 800a0e4:	28 42 00 10 	lw r2,(r2+16)                                  
 800a0e8:	50 43 00 02 	bgeu r2,r3,800a0f0 <rtems_bdbuf_swapout_write+0x11c>
          (transfer->write_req->bufnum >= bdbuf_config.max_write_blocks))
        write = true;                                                 
                                                                      
      if (write)                                                      
 800a0ec:	44 20 00 08 	be r1,r0,800a10c <rtems_bdbuf_swapout_write+0x138>
      {                                                               
        rtems_bdbuf_execute_transfer_request (dd, transfer->write_req, false);
 800a0f0:	29 62 00 14 	lw r2,(r11+20)                                 
 800a0f4:	b9 a0 08 00 	mv r1,r13                                      
 800a0f8:	34 03 00 00 	mvi r3,0                                       
 800a0fc:	fb ff ff 42 	calli 8009e04 <rtems_bdbuf_execute_transfer_request>
                                                                      
        transfer->write_req->status = RTEMS_RESOURCE_IN_USE;          
 800a100:	29 61 00 14 	lw r1,(r11+20)                                 
 800a104:	58 33 00 0c 	sw (r1+12),r19                                 
        transfer->write_req->bufnum = 0;                              
 800a108:	58 20 00 10 	sw (r1+16),r0                                  
void rtems_bdbuf_reset_device_stats (rtems_disk_device *dd)           
{                                                                     
  rtems_bdbuf_lock_cache ();                                          
  memset (&dd->stats, 0, sizeof(dd->stats));                          
  rtems_bdbuf_unlock_cache ();                                        
}                                                                     
 800a10c:	29 6c 00 00 	lw r12,(r11+0)                                 
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
 800a110:	45 8f 00 06 	be r12,r15,800a128 <rtems_bdbuf_swapout_write+0x154>
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
 800a114:	29 81 00 00 	lw r1,(r12+0)                                  
                                                                      
  head->next = new_first;                                             
 800a118:	59 61 00 00 	sw (r11+0),r1                                  
  new_first->previous = head;                                         
 800a11c:	58 2b 00 04 	sw (r1+4),r11                                  
      if (rtems_bdbuf_tracer)                                         
        printf ("bdbuf:swapout write: bd:%" PRIu32 ", bufnum:%" PRIu32 " mode:%s\n",
                bd->block, transfer->write_req->bufnum,               
                need_continuous_blocks ? "MULTI" : "SCAT");           
                                                                      
      if (need_continuous_blocks && transfer->write_req->bufnum &&    
 800a120:	5e 80 ff cc 	bne r20,r0,800a050 <rtems_bdbuf_swapout_write+0x7c>
 800a124:	e3 ff ff d7 	bi 800a080 <rtems_bdbuf_swapout_write+0xac>    
                                                                      
    /*                                                                
     * If sync'ing and the deivce is capability of handling a sync IO control
     * call perform the call.                                         
     */                                                               
    if (transfer->syncing &&                                          
 800a128:	41 61 00 10 	lbu r1,(r11+16)                                
 800a12c:	44 20 00 09 	be r1,r0,800a150 <rtems_bdbuf_swapout_write+0x17c>
        (dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_SYNC))         
 800a130:	29 a1 00 08 	lw r1,(r13+8)                                  
 800a134:	28 22 00 0c 	lw r2,(r1+12)                                  
 800a138:	20 42 00 02 	andi r2,r2,0x2                                 
                                                                      
    /*                                                                
     * If sync'ing and the deivce is capability of handling a sync IO control
     * call perform the call.                                         
     */                                                               
    if (transfer->syncing &&                                          
 800a13c:	44 40 00 05 	be r2,r0,800a150 <rtems_bdbuf_swapout_write+0x17c><== ALWAYS TAKEN
        (dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_SYNC))         
    {                                                                 
      /* int result = */ dd->ioctl (dd->phys_dev, RTEMS_BLKDEV_REQ_SYNC, NULL);
 800a140:	29 a4 00 38 	lw r4,(r13+56)                                 <== NOT EXECUTED
 800a144:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
 800a148:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 800a14c:	d8 80 00 00 	call r4                                        <== NOT EXECUTED
      /* How should the error be handled ? */                         
    }                                                                 
  }                                                                   
}                                                                     
 800a150:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a154:	2b 8b 00 30 	lw r11,(sp+48)                                 
 800a158:	2b 8c 00 2c 	lw r12,(sp+44)                                 
 800a15c:	2b 8d 00 28 	lw r13,(sp+40)                                 
 800a160:	2b 8e 00 24 	lw r14,(sp+36)                                 
 800a164:	2b 8f 00 20 	lw r15,(sp+32)                                 
 800a168:	2b 90 00 1c 	lw r16,(sp+28)                                 
 800a16c:	2b 91 00 18 	lw r17,(sp+24)                                 
 800a170:	2b 92 00 14 	lw r18,(sp+20)                                 
 800a174:	2b 93 00 10 	lw r19,(sp+16)                                 
 800a178:	2b 94 00 0c 	lw r20,(sp+12)                                 
 800a17c:	2b 95 00 08 	lw r21,(sp+8)                                  
 800a180:	37 9c 00 30 	addi sp,sp,48                                  
 800a184:	c3 a0 00 00 	ret                                            
                                                                      

080097bc <rtems_bdbuf_swapout_writereq_alloc>: * * @return rtems_blkdev_request* The write reference memory. */ static rtems_blkdev_request* rtems_bdbuf_swapout_writereq_alloc (void) {
 80097bc:	37 9c ff f8 	addi sp,sp,-8                                  
 80097c0:	5b 8b 00 08 	sw (sp+8),r11                                  
 80097c4:	5b 9d 00 04 	sw (sp+4),ra                                   
   * have been a rtems_chain_control. Simple, fast and less storage as the node
   * is already part of the buffer structure.                         
   */                                                                 
  rtems_blkdev_request* write_req =                                   
    malloc (sizeof (rtems_blkdev_request) +                           
            (bdbuf_config.max_write_blocks * sizeof (rtems_blkdev_sg_buffer)));
 80097c8:	78 01 08 01 	mvhi r1,0x801                                  
 80097cc:	38 21 75 6c 	ori r1,r1,0x756c                               
 80097d0:	28 21 00 04 	lw r1,(r1+4)                                   
 80097d4:	34 02 00 04 	mvi r2,4                                       
 80097d8:	f8 00 33 c8 	calli 80166f8 <__ashlsi3>                      
   * I am disappointment at finding code like this in RTEMS. The request should
   * have been a rtems_chain_control. Simple, fast and less storage as the node
   * is already part of the buffer structure.                         
   */                                                                 
  rtems_blkdev_request* write_req =                                   
    malloc (sizeof (rtems_blkdev_request) +                           
 80097dc:	34 21 00 18 	addi r1,r1,24                                  
 80097e0:	fb ff e5 da 	calli 8002f48 <malloc>                         
 80097e4:	b8 20 58 00 	mv r11,r1                                      
            (bdbuf_config.max_write_blocks * sizeof (rtems_blkdev_sg_buffer)));
                                                                      
  if (!write_req)                                                     
 80097e8:	5c 20 00 03 	bne r1,r0,80097f4 <rtems_bdbuf_swapout_writereq_alloc+0x38><== ALWAYS TAKEN
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SO_REQ_NOMEM);               
 80097ec:	34 01 00 09 	mvi r1,9                                       <== NOT EXECUTED
 80097f0:	fb ff fe f1 	calli 80093b4 <rtems_bdbuf_fatal>              <== NOT EXECUTED
                                                                      
  write_req->req = RTEMS_BLKDEV_REQ_WRITE;                            
 80097f4:	34 01 00 01 	mvi r1,1                                       
 80097f8:	59 61 00 00 	sw (r11+0),r1                                  
  write_req->done = rtems_bdbuf_transfer_done;                        
 80097fc:	78 01 08 00 	mvhi r1,0x800                                  
 8009800:	38 21 97 50 	ori r1,r1,0x9750                               
 8009804:	59 61 00 04 	sw (r11+4),r1                                  
  write_req->io_task = rtems_task_self ();                            
 8009808:	f8 00 12 71 	calli 800e1cc <rtems_task_self>                
 800980c:	59 61 00 14 	sw (r11+20),r1                                 
                                                                      
  return write_req;                                                   
}                                                                     
 8009810:	b9 60 08 00 	mv r1,r11                                      
 8009814:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009818:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800981c:	37 9c 00 08 	addi sp,sp,8                                   
 8009820:	c3 a0 00 00 	ret                                            
                                                                      

0800b928 <rtems_bdbuf_sync>: rtems_status_code rtems_bdbuf_sync (rtems_bdbuf_buffer *bd) {
 800b928:	37 9c ff ec 	addi sp,sp,-20                                 
 800b92c:	5b 8b 00 14 	sw (sp+20),r11                                 
 800b930:	5b 8c 00 10 	sw (sp+16),r12                                 
 800b934:	5b 8d 00 0c 	sw (sp+12),r13                                 
 800b938:	5b 8e 00 08 	sw (sp+8),r14                                  
 800b93c:	5b 9d 00 04 	sw (sp+4),ra                                   
 800b940:	b8 20 58 00 	mv r11,r1                                      
                                                                      
static rtems_status_code                                              
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{                                                                     
  if (bd == NULL)                                                     
    return RTEMS_INVALID_ADDRESS;                                     
 800b944:	34 01 00 09 	mvi r1,9                                       
}                                                                     
                                                                      
static rtems_status_code                                              
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{                                                                     
  if (bd == NULL)                                                     
 800b948:	45 60 00 47 	be r11,r0,800ba64 <rtems_bdbuf_sync+0x13c>     <== NEVER TAKEN
  if (rtems_bdbuf_tracer)                                             
  {                                                                   
    printf ("bdbuf:%s: %" PRIu32 "\n", kind, bd->block);              
    rtems_bdbuf_show_users (kind, bd);                                
  }                                                                   
  rtems_bdbuf_lock_cache();                                           
 800b94c:	fb ff f6 ad 	calli 8009400 <rtems_bdbuf_lock_cache>         
                                                                      
  sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "sync");              
  if (sc != RTEMS_SUCCESSFUL)                                         
    return sc;                                                        
                                                                      
  switch (bd->state)                                                  
 800b950:	29 61 00 20 	lw r1,(r11+32)                                 
 800b954:	34 02 00 03 	mvi r2,3                                       
 800b958:	54 41 00 3f 	bgu r2,r1,800ba54 <rtems_bdbuf_sync+0x12c>     <== NEVER TAKEN
 800b95c:	34 02 00 05 	mvi r2,5                                       
 800b960:	50 41 00 04 	bgeu r2,r1,800b970 <rtems_bdbuf_sync+0x48>     
 800b964:	34 02 00 06 	mvi r2,6                                       
 800b968:	5c 22 00 3b 	bne r1,r2,800ba54 <rtems_bdbuf_sync+0x12c>     <== NEVER TAKEN
 800b96c:	e0 00 00 37 	bi 800ba48 <rtems_bdbuf_sync+0x120>            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 800b970:	34 01 00 08 	mvi r1,8                                       
 800b974:	59 61 00 20 	sw (r11+32),r1                                 
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
 800b978:	78 01 08 01 	mvhi r1,0x801                                  
 800b97c:	38 21 96 f8 	ori r1,r1,0x96f8                               
 800b980:	28 23 00 60 	lw r3,(r1+96)                                  
                                                                      
  the_node->next = tail;                                              
 800b984:	78 02 08 01 	mvhi r2,0x801                                  
  tail->previous = the_node;                                          
 800b988:	58 2b 00 60 	sw (r1+96),r11                                 
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
 800b98c:	38 42 97 54 	ori r2,r2,0x9754                               
{                                                                     
  rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_SYNC);                 
                                                                      
  rtems_chain_append_unprotected (&bdbuf_cache.sync, &bd->link);      
                                                                      
  if (bd->waiters)                                                    
 800b990:	29 61 00 24 	lw r1,(r11+36)                                 
 800b994:	59 62 00 00 	sw (r11+0),r2                                  
  tail->previous = the_node;                                          
  old_last->next = the_node;                                          
 800b998:	58 6b 00 00 	sw (r3+0),r11                                  
  the_node->previous = old_last;                                      
 800b99c:	59 63 00 04 	sw (r11+4),r3                                  
 800b9a0:	44 20 00 04 	be r1,r0,800b9b0 <rtems_bdbuf_sync+0x88>       
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
 800b9a4:	78 01 08 01 	mvhi r1,0x801                                  
 800b9a8:	38 21 97 5c 	ori r1,r1,0x975c                               
 800b9ac:	fb ff f6 d5 	calli 8009500 <rtems_bdbuf_wake>               
      case RTEMS_BDBUF_STATE_ACCESS_PURGED:                           
        return;                                                       
      case RTEMS_BDBUF_STATE_SYNC:                                    
      case RTEMS_BDBUF_STATE_TRANSFER:                                
      case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                         
        rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);         
 800b9b0:	78 0c 08 01 	mvhi r12,0x801                                 
  rtems_chain_append_unprotected (&bdbuf_cache.sync, &bd->link);      
                                                                      
  if (bd->waiters)                                                    
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
                                                                      
  rtems_bdbuf_wake_swapper ();                                        
 800b9b4:	fb ff f6 df 	calli 8009530 <rtems_bdbuf_wake_swapper>       
static void                                                           
rtems_bdbuf_wait_for_sync_done (rtems_bdbuf_buffer *bd)               
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
 800b9b8:	34 0e 00 07 	mvi r14,7                                      
 800b9bc:	34 0d 00 0a 	mvi r13,10                                     
      case RTEMS_BDBUF_STATE_ACCESS_PURGED:                           
        return;                                                       
      case RTEMS_BDBUF_STATE_SYNC:                                    
      case RTEMS_BDBUF_STATE_TRANSFER:                                
      case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                         
        rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);         
 800b9c0:	39 8c 97 64 	ori r12,r12,0x9764                             
static void                                                           
rtems_bdbuf_wait_for_sync_done (rtems_bdbuf_buffer *bd)               
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
 800b9c4:	29 61 00 20 	lw r1,(r11+32)                                 
 800b9c8:	34 02 00 01 	mvi r2,1                                       
 800b9cc:	44 20 00 07 	be r1,r0,800b9e8 <rtems_bdbuf_sync+0xc0>       <== NEVER TAKEN
 800b9d0:	51 c1 00 09 	bgeu r14,r1,800b9f4 <rtems_bdbuf_sync+0xcc>    
 800b9d4:	54 2d 00 05 	bgu r1,r13,800b9e8 <rtems_bdbuf_sync+0xc0>     <== NEVER TAKEN
      case RTEMS_BDBUF_STATE_ACCESS_PURGED:                           
        return;                                                       
      case RTEMS_BDBUF_STATE_SYNC:                                    
      case RTEMS_BDBUF_STATE_TRANSFER:                                
      case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                         
        rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);         
 800b9d8:	b9 60 08 00 	mv r1,r11                                      
 800b9dc:	b9 80 10 00 	mv r2,r12                                      
 800b9e0:	fb ff f7 a7 	calli 800987c <rtems_bdbuf_wait>               
 800b9e4:	e3 ff ff f8 	bi 800b9c4 <rtems_bdbuf_sync+0x9c>             
        break;                                                        
      default:                                                        
        rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_9);
 800b9e8:	34 02 00 15 	mvi r2,21                                      <== NOT EXECUTED
 800b9ec:	fb ff f6 99 	calli 8009450 <rtems_bdbuf_fatal_with_state>   <== NOT EXECUTED
 800b9f0:	e3 ff ff f5 	bi 800b9c4 <rtems_bdbuf_sync+0x9c>             <== NOT EXECUTED
  rtems_bdbuf_wait_for_sync_done (bd);                                
                                                                      
  /*                                                                  
   * We may have created a cached or empty buffer which may be recycled.
   */                                                                 
  if (bd->waiters == 0                                                
 800b9f4:	29 63 00 24 	lw r3,(r11+36)                                 
 800b9f8:	5c 60 00 19 	bne r3,r0,800ba5c <rtems_bdbuf_sync+0x134>     
        && (bd->state == RTEMS_BDBUF_STATE_CACHED                     
          || bd->state == RTEMS_BDBUF_STATE_EMPTY))                   
 800b9fc:	34 23 ff ff 	addi r3,r1,-1                                  
                                                                      
  /*                                                                  
   * We may have created a cached or empty buffer which may be recycled.
   */                                                                 
  if (bd->waiters == 0                                                
        && (bd->state == RTEMS_BDBUF_STATE_CACHED                     
 800ba00:	54 62 00 17 	bgu r3,r2,800ba5c <rtems_bdbuf_sync+0x134>     <== NEVER TAKEN
          || bd->state == RTEMS_BDBUF_STATE_EMPTY))                   
  {                                                                   
    if (bd->state == RTEMS_BDBUF_STATE_EMPTY)                         
 800ba04:	5c 22 00 0d 	bne r1,r2,800ba38 <rtems_bdbuf_sync+0x110>     
    {                                                                 
      rtems_bdbuf_remove_from_tree (bd);                              
 800ba08:	b9 60 08 00 	mv r1,r11                                      
 800ba0c:	fb ff f7 d2 	calli 8009954 <rtems_bdbuf_remove_from_tree>   
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
 800ba10:	78 01 08 01 	mvhi r1,0x801                                  
 800ba14:	38 21 97 38 	ori r1,r1,0x9738                               
 800ba18:	59 61 00 04 	sw (r11+4),r1                                  
  before_node           = after_node->next;                           
 800ba1c:	78 01 08 01 	mvhi r1,0x801                                  
 800ba20:	38 21 96 f8 	ori r1,r1,0x96f8                               
 800ba24:	28 22 00 40 	lw r2,(r1+64)                                  
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
 800ba28:	59 60 00 20 	sw (r11+32),r0                                 
  after_node->next      = the_node;                                   
 800ba2c:	58 2b 00 40 	sw (r1+64),r11                                 
  the_node->next        = before_node;                                
 800ba30:	59 62 00 00 	sw (r11+0),r2                                  
  before_node->previous = the_node;                                   
 800ba34:	58 4b 00 04 	sw (r2+4),r11                                  
    if (bd->state == RTEMS_BDBUF_STATE_EMPTY)                         
    {                                                                 
      rtems_bdbuf_remove_from_tree (bd);                              
      rtems_bdbuf_make_free_and_add_to_lru_list (bd);                 
    }                                                                 
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
 800ba38:	78 01 08 01 	mvhi r1,0x801                                  
 800ba3c:	38 21 97 6c 	ori r1,r1,0x976c                               
 800ba40:	fb ff f6 b0 	calli 8009500 <rtems_bdbuf_wake>               
 800ba44:	e0 00 00 06 	bi 800ba5c <rtems_bdbuf_sync+0x134>            
    case RTEMS_BDBUF_STATE_ACCESS_EMPTY:                              
    case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                           
      rtems_bdbuf_sync_after_access (bd);                             
      break;                                                          
    case RTEMS_BDBUF_STATE_ACCESS_PURGED:                             
      rtems_bdbuf_discard_buffer_after_access (bd);                   
 800ba48:	b9 60 08 00 	mv r1,r11                                      
 800ba4c:	fb ff f8 da 	calli 8009db4 <rtems_bdbuf_discard_buffer_after_access>
      break;                                                          
 800ba50:	e0 00 00 03 	bi 800ba5c <rtems_bdbuf_sync+0x134>            
    default:                                                          
      rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_5);
 800ba54:	34 02 00 11 	mvi r2,17                                      <== NOT EXECUTED
 800ba58:	fb ff f6 7e 	calli 8009450 <rtems_bdbuf_fatal_with_state>   <== NOT EXECUTED
  }                                                                   
                                                                      
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_usage ();                                        
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
 800ba5c:	fb ff f6 95 	calli 80094b0 <rtems_bdbuf_unlock_cache>       
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800ba60:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 800ba64:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800ba68:	2b 8b 00 14 	lw r11,(sp+20)                                 
 800ba6c:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800ba70:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800ba74:	2b 8e 00 08 	lw r14,(sp+8)                                  
 800ba78:	37 9c 00 14 	addi sp,sp,20                                  
 800ba7c:	c3 a0 00 00 	ret                                            
                                                                      

08009480 <rtems_bdbuf_unlock>: * @param lock The mutex to unlock. * @param fatal_error_code The error code if the call fails. */ static void rtems_bdbuf_unlock (rtems_id lock, uint32_t fatal_error_code) {
 8009480:	37 9c ff f8 	addi sp,sp,-8                                  
 8009484:	5b 8b 00 08 	sw (sp+8),r11                                  
 8009488:	5b 9d 00 04 	sw (sp+4),ra                                   
 800948c:	b8 40 58 00 	mv r11,r2                                      
  rtems_status_code sc = rtems_semaphore_release (lock);              
 8009490:	fb ff ee f7 	calli 800506c <rtems_semaphore_release>        
  if (sc != RTEMS_SUCCESSFUL)                                         
 8009494:	44 20 00 03 	be r1,r0,80094a0 <rtems_bdbuf_unlock+0x20>     <== ALWAYS TAKEN
    rtems_bdbuf_fatal (fatal_error_code);                             
 8009498:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800949c:	fb ff ff c6 	calli 80093b4 <rtems_bdbuf_fatal>              <== NOT EXECUTED
}                                                                     
 80094a0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80094a4:	2b 8b 00 08 	lw r11,(sp+8)                                  
 80094a8:	37 9c 00 08 	addi sp,sp,8                                   
 80094ac:	c3 a0 00 00 	ret                                            
                                                                      

08009774 <rtems_bdbuf_wait_for_event>: return RTEMS_UNSATISFIED; } static void rtems_bdbuf_wait_for_event (rtems_event_set event) {
 8009774:	37 9c ff f4 	addi sp,sp,-12                                 
 8009778:	5b 8b 00 08 	sw (sp+8),r11                                  
 800977c:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_event_set   out = 0;                                          
                                                                      
  sc = rtems_event_receive (event,                                    
 8009780:	34 02 00 00 	mvi r2,0                                       
 8009784:	34 03 00 00 	mvi r3,0                                       
 8009788:	37 84 00 0c 	addi r4,sp,12                                  
  return RTEMS_UNSATISFIED;                                           
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_wait_for_event (rtems_event_set event)                    
{                                                                     
 800978c:	b8 20 58 00 	mv r11,r1                                      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_event_set   out = 0;                                          
 8009790:	5b 80 00 0c 	sw (sp+12),r0                                  
                                                                      
  sc = rtems_event_receive (event,                                    
 8009794:	f8 00 10 20 	calli 800d814 <rtems_event_receive>            
                            RTEMS_EVENT_ALL | RTEMS_WAIT,             
                            RTEMS_NO_TIMEOUT,                         
                            &out);                                    
                                                                      
  if (sc != RTEMS_SUCCESSFUL || out != event)                         
 8009798:	5c 20 00 03 	bne r1,r0,80097a4 <rtems_bdbuf_wait_for_event+0x30><== NEVER TAKEN
 800979c:	2b 81 00 0c 	lw r1,(sp+12)                                  
 80097a0:	44 2b 00 03 	be r1,r11,80097ac <rtems_bdbuf_wait_for_event+0x38><== ALWAYS TAKEN
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_WAIT_EVNT);                  
 80097a4:	34 01 00 1c 	mvi r1,28                                      <== NOT EXECUTED
 80097a8:	fb ff ff 03 	calli 80093b4 <rtems_bdbuf_fatal>              <== NOT EXECUTED
}                                                                     
 80097ac:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80097b0:	2b 8b 00 08 	lw r11,(sp+8)                                  
 80097b4:	37 9c 00 0c 	addi sp,sp,12                                  
 80097b8:	c3 a0 00 00 	ret                                            
                                                                      

08009624 <rtems_bdbuf_wait_for_transient_event>: rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_WAIT_EVNT); } static void rtems_bdbuf_wait_for_transient_event (void) {
 8009624:	37 9c ff f8 	addi sp,sp,-8                                  
 8009628:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_interval ticks                                                
)                                                                     
{                                                                     
  rtems_event_set event_out;                                          
                                                                      
  return rtems_event_system_receive(                                  
 800962c:	78 01 80 00 	mvhi r1,0x8000                                 
 8009630:	34 02 00 00 	mvi r2,0                                       
 8009634:	34 03 00 00 	mvi r3,0                                       
 8009638:	37 84 00 08 	addi r4,sp,8                                   
 800963c:	f8 00 11 e0 	calli 800ddbc <rtems_event_system_receive>     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_event_transient_receive (RTEMS_WAIT, RTEMS_NO_TIMEOUT);  
  if (sc != RTEMS_SUCCESSFUL)                                         
 8009640:	44 20 00 03 	be r1,r0,800964c <rtems_bdbuf_wait_for_transient_event+0x28><== ALWAYS TAKEN
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_WAIT_TRANS_EVNT);            
 8009644:	34 01 00 1d 	mvi r1,29                                      <== NOT EXECUTED
 8009648:	fb ff ff 5b 	calli 80093b4 <rtems_bdbuf_fatal>              <== NOT EXECUTED
}                                                                     
 800964c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009650:	37 9c 00 08 	addi sp,sp,8                                   
 8009654:	c3 a0 00 00 	ret                                            
                                                                      

08009500 <rtems_bdbuf_wake>: * Wake a blocked resource. The resource has a counter that lets us know if * there are any waiters. */ static void rtems_bdbuf_wake (const rtems_bdbuf_waiters *waiters) {
 8009500:	37 9c ff fc 	addi sp,sp,-4                                  
 8009504:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (waiters->count > 0)                                             
 8009508:	28 22 00 00 	lw r2,(r1+0)                                   
 800950c:	44 40 00 06 	be r2,r0,8009524 <rtems_bdbuf_wake+0x24>       
  {                                                                   
    sc = rtems_semaphore_flush (waiters->sema);                       
 8009510:	28 21 00 04 	lw r1,(r1+4)                                   
 8009514:	f8 00 11 ff 	calli 800dd10 <rtems_semaphore_flush>          
    if (sc != RTEMS_SUCCESSFUL)                                       
 8009518:	44 20 00 03 	be r1,r0,8009524 <rtems_bdbuf_wake+0x24>       <== ALWAYS TAKEN
      rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_CACHE_WAKE);               
 800951c:	34 01 00 04 	mvi r1,4                                       <== NOT EXECUTED
 8009520:	fb ff ff a5 	calli 80093b4 <rtems_bdbuf_fatal>              <== NOT EXECUTED
  }                                                                   
}                                                                     
 8009524:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009528:	37 9c 00 04 	addi sp,sp,4                                   
 800952c:	c3 a0 00 00 	ret                                            
                                                                      

08009530 <rtems_bdbuf_wake_swapper>: static void rtems_bdbuf_wake_swapper (void) {
 8009530:	37 9c ff fc 	addi sp,sp,-4                                  
 8009534:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_status_code sc = rtems_event_send (bdbuf_cache.swapout,       
 8009538:	78 01 08 01 	mvhi r1,0x801                                  
 800953c:	38 21 96 f8 	ori r1,r1,0x96f8                               
 8009540:	28 21 00 00 	lw r1,(r1+0)                                   
 8009544:	34 02 00 04 	mvi r2,4                                       
 8009548:	f8 00 11 19 	calli 800d9ac <rtems_event_send>               
                                           RTEMS_BDBUF_SWAPOUT_SYNC); 
  if (sc != RTEMS_SUCCESSFUL)                                         
 800954c:	44 20 00 03 	be r1,r0,8009558 <rtems_bdbuf_wake_swapper+0x28><== ALWAYS TAKEN
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SO_WAKE_1);                  
 8009550:	34 01 00 0b 	mvi r1,11                                      <== NOT EXECUTED
 8009554:	fb ff ff 98 	calli 80093b4 <rtems_bdbuf_fatal>              <== NOT EXECUTED
}                                                                     
 8009558:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800955c:	37 9c 00 04 	addi sp,sp,4                                   
 8009560:	c3 a0 00 00 	ret                                            
                                                                      

08000ddc <rtems_bdpart_create>: const rtems_bdpart_format *format, rtems_bdpart_partition *pt, const unsigned *dist, size_t count ) {
 8000ddc:	37 9c ff c4 	addi sp,sp,-60                                 
 8000de0:	5b 8b 00 38 	sw (sp+56),r11                                 
 8000de4:	5b 8c 00 34 	sw (sp+52),r12                                 
 8000de8:	5b 8d 00 30 	sw (sp+48),r13                                 
 8000dec:	5b 8e 00 2c 	sw (sp+44),r14                                 
 8000df0:	5b 8f 00 28 	sw (sp+40),r15                                 
 8000df4:	5b 90 00 24 	sw (sp+36),r16                                 
 8000df8:	5b 91 00 20 	sw (sp+32),r17                                 
 8000dfc:	5b 92 00 1c 	sw (sp+28),r18                                 
 8000e00:	5b 93 00 18 	sw (sp+24),r19                                 
 8000e04:	5b 94 00 14 	sw (sp+20),r20                                 
 8000e08:	5b 95 00 10 	sw (sp+16),r21                                 
 8000e0c:	5b 96 00 0c 	sw (sp+12),r22                                 
 8000e10:	5b 97 00 08 	sw (sp+8),r23                                  
 8000e14:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  bool dos_compatibility = format != NULL                             
    && format->type == RTEMS_BDPART_FORMAT_MBR                        
    && format->mbr.dos_compatibility;                                 
 8000e18:	34 0f 00 00 	mvi r15,0                                      
  const rtems_bdpart_format *format,                                  
  rtems_bdpart_partition *pt,                                         
  const unsigned *dist,                                               
  size_t count                                                        
)                                                                     
{                                                                     
 8000e1c:	b8 40 70 00 	mv r14,r2                                      
 8000e20:	b8 60 a8 00 	mv r21,r3                                      
 8000e24:	b8 80 90 00 	mv r18,r4                                      
 8000e28:	b8 a0 68 00 	mv r13,r5                                      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  bool dos_compatibility = format != NULL                             
    && format->type == RTEMS_BDPART_FORMAT_MBR                        
    && format->mbr.dos_compatibility;                                 
 8000e2c:	44 40 00 04 	be r2,r0,8000e3c <rtems_bdpart_create+0x60>    <== NEVER TAKEN
  size_t count                                                        
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  bool dos_compatibility = format != NULL                             
    && format->type == RTEMS_BDPART_FORMAT_MBR                        
 8000e30:	28 42 00 00 	lw r2,(r2+0)                                   
 8000e34:	5c 40 00 02 	bne r2,r0,8000e3c <rtems_bdpart_create+0x60>   <== NEVER TAKEN
    && format->mbr.dos_compatibility;                                 
 8000e38:	41 cf 00 08 	lbu r15,(r14+8)                                
  const unsigned *dist,                                               
  size_t count                                                        
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  bool dos_compatibility = format != NULL                             
 8000e3c:	21 ef 00 ff 	andi r15,r15,0xff                              
    && format->type == RTEMS_BDPART_FORMAT_MBR                        
    && format->mbr.dos_compatibility;                                 
  rtems_blkdev_bnum disk_end = 0;                                     
  rtems_blkdev_bnum pos = 0;                                          
  rtems_blkdev_bnum dist_sum = 0;                                     
  rtems_blkdev_bnum record_space =                                    
 8000e40:	65 eb 00 00 	cmpei r11,r15,0                                
 8000e44:	34 02 ff c2 	mvi r2,-62                                     
 8000e48:	c8 0b 58 00 	sub r11,r0,r11                                 
 8000e4c:	a1 62 58 00 	and r11,r11,r2                                 
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  bool dos_compatibility = format != NULL                             
    && format->type == RTEMS_BDPART_FORMAT_MBR                        
    && format->mbr.dos_compatibility;                                 
  rtems_blkdev_bnum disk_end = 0;                                     
 8000e50:	5b 80 00 3c 	sw (sp+60),r0                                  
  rtems_blkdev_bnum pos = 0;                                          
  rtems_blkdev_bnum dist_sum = 0;                                     
  rtems_blkdev_bnum record_space =                                    
 8000e54:	35 6b 00 3f 	addi r11,r11,63                                
  size_t i = 0;                                                       
                                                                      
  /* Check if we have something to do */                              
  if (count == 0) {                                                   
    /* Nothing to do */                                               
    return RTEMS_SUCCESSFUL;                                          
 8000e58:	34 0c 00 00 	mvi r12,0                                      
  rtems_blkdev_bnum overhead = 0;                                     
  rtems_blkdev_bnum free_space = 0;                                   
  size_t i = 0;                                                       
                                                                      
  /* Check if we have something to do */                              
  if (count == 0) {                                                   
 8000e5c:	45 a0 00 5c 	be r13,r0,8000fcc <rtems_bdpart_create+0x1f0>  <== NEVER TAKEN
    /* Nothing to do */                                               
    return RTEMS_SUCCESSFUL;                                          
  }                                                                   
                                                                      
  /* Check parameter */                                               
  if (format == NULL || pt == NULL || dist == NULL) {                 
 8000e60:	66 a3 00 00 	cmpei r3,r21,0                                 
 8000e64:	65 c2 00 00 	cmpei r2,r14,0                                 
    return RTEMS_INVALID_ADDRESS;                                     
 8000e68:	34 0c 00 09 	mvi r12,9                                      
    /* Nothing to do */                                               
    return RTEMS_SUCCESSFUL;                                          
  }                                                                   
                                                                      
  /* Check parameter */                                               
  if (format == NULL || pt == NULL || dist == NULL) {                 
 8000e6c:	b8 62 10 00 	or r2,r3,r2                                    
 8000e70:	5c 40 00 57 	bne r2,r0,8000fcc <rtems_bdpart_create+0x1f0>  <== NEVER TAKEN
 8000e74:	46 42 00 56 	be r18,r2,8000fcc <rtems_bdpart_create+0x1f0>  <== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
  }                                                                   
                                                                      
  /* Get disk data */                                                 
  sc = rtems_bdpart_get_disk_data( disk_name, NULL, NULL, &disk_end); 
 8000e78:	34 03 00 00 	mvi r3,0                                       
 8000e7c:	37 84 00 3c 	addi r4,sp,60                                  
 8000e80:	f8 00 01 85 	calli 8001494 <rtems_bdpart_get_disk_data>     
 8000e84:	b8 20 60 00 	mv r12,r1                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
 8000e88:	ba 40 10 00 	mv r2,r18                                      
 8000e8c:	34 01 00 00 	mvi r1,0                                       
 8000e90:	34 11 00 00 	mvi r17,0                                      
 8000e94:	45 80 00 09 	be r12,r0,8000eb8 <rtems_bdpart_create+0xdc>   <== ALWAYS TAKEN
 8000e98:	e0 00 00 4d 	bi 8000fcc <rtems_bdpart_create+0x1f0>         <== NOT EXECUTED
                                                                      
  /* Get distribution sum and check for overflow */                   
  for (i = 0; i < count; ++i) {                                       
    unsigned prev_sum = dist_sum;                                     
                                                                      
    dist_sum += dist [i];                                             
 8000e9c:	28 44 00 00 	lw r4,(r2+0)                                   
 8000ea0:	b6 24 18 00 	add r3,r17,r4                                  
                                                                      
    if (dist_sum < prev_sum) {                                        
 8000ea4:	56 23 00 49 	bgu r17,r3,8000fc8 <rtems_bdpart_create+0x1ec> <== NEVER TAKEN
 8000ea8:	34 42 00 04 	addi r2,r2,4                                   
      return RTEMS_INVALID_NUMBER;                                    
    }                                                                 
                                                                      
    if (dist [i] == 0) {                                              
 8000eac:	44 80 00 47 	be r4,r0,8000fc8 <rtems_bdpart_create+0x1ec>   <== NEVER TAKEN
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
                                                                      
  /* Get distribution sum and check for overflow */                   
  for (i = 0; i < count; ++i) {                                       
 8000eb0:	34 21 00 01 	addi r1,r1,1                                   
    unsigned prev_sum = dist_sum;                                     
                                                                      
    dist_sum += dist [i];                                             
 8000eb4:	b8 60 88 00 	mv r17,r3                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
                                                                      
  /* Get distribution sum and check for overflow */                   
  for (i = 0; i < count; ++i) {                                       
 8000eb8:	55 a1 ff f9 	bgu r13,r1,8000e9c <rtems_bdpart_create+0xc0>  
      return RTEMS_INVALID_NUMBER;                                    
    }                                                                 
  }                                                                   
                                                                      
  /* Check format */                                                  
  if (format->type != RTEMS_BDPART_FORMAT_MBR) {                      
 8000ebc:	29 c1 00 00 	lw r1,(r14+0)                                  
 8000ec0:	5c 20 00 3e 	bne r1,r0,8000fb8 <rtems_bdpart_create+0x1dc>  <== NEVER TAKEN
    return RTEMS_NOT_IMPLEMENTED;                                     
  }                                                                   
                                                                      
  /* Align end of disk on cylinder boundary if necessary */           
  if (dos_compatibility) {                                            
 8000ec4:	45 e1 00 07 	be r15,r1,8000ee0 <rtems_bdpart_create+0x104>  <== NEVER TAKEN
    disk_end -= (disk_end % record_space);                            
 8000ec8:	2b 8e 00 3c 	lw r14,(sp+60)                                 
 8000ecc:	b9 60 10 00 	mv r2,r11                                      
 8000ed0:	b9 c0 08 00 	mv r1,r14                                      
 8000ed4:	f8 00 8d d7 	calli 8024630 <__umodsi3>                      
 8000ed8:	c9 c1 08 00 	sub r1,r14,r1                                  
 8000edc:	5b 81 00 3c 	sw (sp+60),r1                                  
                                                                      
  /*                                                                  
   * In case we need an extended partition and logical partitions we have to
   * account for the space of each EBR.                               
   */                                                                 
  if (count > 4) {                                                    
 8000ee0:	34 01 00 04 	mvi r1,4                                       
                                                                      
  /*                                                                  
   * We need at least space for the MBR and the compatibility space for the
   * first primary partition.                                         
   */                                                                 
  overhead += record_space;                                           
 8000ee4:	b9 60 70 00 	mv r14,r11                                     
                                                                      
  /*                                                                  
   * In case we need an extended partition and logical partitions we have to
   * account for the space of each EBR.                               
   */                                                                 
  if (count > 4) {                                                    
 8000ee8:	50 2d 00 05 	bgeu r1,r13,8000efc <rtems_bdpart_create+0x120><== NEVER TAKEN
    overhead += (count - 3) * record_space;                           
 8000eec:	b9 60 08 00 	mv r1,r11                                      
 8000ef0:	35 a2 ff fd 	addi r2,r13,-3                                 
 8000ef4:	fb ff fe 33 	calli 80007c0 <__mulsi3>                       
 8000ef8:	b4 2b 70 00 	add r14,r1,r11                                 
                                                                      
  /*                                                                  
   * Account space to align every partition on cylinder boundaries if 
   * necessary.                                                       
   */                                                                 
  if (dos_compatibility) {                                            
 8000efc:	45 e0 00 05 	be r15,r0,8000f10 <rtems_bdpart_create+0x134>  <== NEVER TAKEN
    overhead += (count - 1) * record_space;                           
 8000f00:	b9 60 08 00 	mv r1,r11                                      
 8000f04:	35 a2 ff ff 	addi r2,r13,-1                                 
 8000f08:	fb ff fe 2e 	calli 80007c0 <__mulsi3>                       
 8000f0c:	b5 c1 70 00 	add r14,r14,r1                                 
  }                                                                   
                                                                      
  /* Check disk space */                                              
  if ((overhead + count) > disk_end) {                                
 8000f10:	2b 94 00 3c 	lw r20,(sp+60)                                 
 8000f14:	b5 cd 08 00 	add r1,r14,r13                                 
 8000f18:	54 34 00 2a 	bgu r1,r20,8000fc0 <rtems_bdpart_create+0x1e4> <== NEVER TAKEN
                                                                      
  /* Begin of first primary partition */                              
  pos = record_space;                                                 
                                                                      
  /* Space for partitions */                                          
  free_space = disk_end - overhead;                                   
 8000f1c:	ca 8e b0 00 	sub r22,r20,r14                                
 8000f20:	ba a0 80 00 	mv r16,r21                                     
  if ((overhead + count) > disk_end) {                                
    return RTEMS_IO_ERROR;                                            
  }                                                                   
                                                                      
  /* Begin of first primary partition */                              
  pos = record_space;                                                 
 8000f24:	b9 60 70 00 	mv r14,r11                                     
                                                                      
  /* Space for partitions */                                          
  free_space = disk_end - overhead;                                   
                                                                      
  for (i = 0; i < count; ++i) {                                       
 8000f28:	34 0f 00 00 	mvi r15,0                                      
                                                                      
    /* Align partition upwards */                                     
    s += record_space - (s % record_space);                           
                                                                      
    /* Reserve space for the EBR if necessary */                      
    if (count > 4 && i > 2) {                                         
 8000f2c:	75 b7 00 04 	cmpgui r23,r13,0x4                             
  pos = record_space;                                                 
                                                                      
  /* Space for partitions */                                          
  free_space = disk_end - overhead;                                   
                                                                      
  for (i = 0; i < count; ++i) {                                       
 8000f30:	e0 00 00 1b 	bi 8000f9c <rtems_bdpart_create+0x1c0>         
    rtems_bdpart_partition *p = pt + i;                               
                                                                      
    /* Partition size */                                              
    rtems_blkdev_bnum s = free_space * dist [i];                      
 8000f34:	2a 53 00 00 	lw r19,(r18+0)                                 
 8000f38:	ba c0 08 00 	mv r1,r22                                      
 8000f3c:	ba 60 10 00 	mv r2,r19                                      
 8000f40:	fb ff fe 20 	calli 80007c0 <__mulsi3>                       
    if (s < free_space || s < dist [i]) {                             
 8000f44:	56 c1 00 21 	bgu r22,r1,8000fc8 <rtems_bdpart_create+0x1ec> <== NEVER TAKEN
 8000f48:	56 61 00 20 	bgu r19,r1,8000fc8 <rtems_bdpart_create+0x1ec> <== NEVER TAKEN
      /* TODO: Calculate without overflow */                          
      return RTEMS_INVALID_NUMBER;                                    
    }                                                                 
    s /= dist_sum;                                                    
 8000f4c:	ba 20 10 00 	mv r2,r17                                      
 8000f50:	f8 00 8d a8 	calli 80245f0 <__udivsi3>                      
 8000f54:	b8 20 98 00 	mv r19,r1                                      
                                                                      
    /* Ensure that the partition is not empty */                      
    if (s == 0) {                                                     
 8000f58:	5c 20 00 02 	bne r1,r0,8000f60 <rtems_bdpart_create+0x184>  <== ALWAYS TAKEN
      s = 1;                                                          
 8000f5c:	34 13 00 01 	mvi r19,1                                      <== NOT EXECUTED
    }                                                                 
                                                                      
    /* Align partition upwards */                                     
    s += record_space - (s % record_space);                           
 8000f60:	ba 60 08 00 	mv r1,r19                                      
 8000f64:	b9 60 10 00 	mv r2,r11                                      
 8000f68:	f8 00 8d b2 	calli 8024630 <__umodsi3>                      
                                                                      
    /* Reserve space for the EBR if necessary */                      
    if (count > 4 && i > 2) {                                         
 8000f6c:	75 e2 00 02 	cmpgui r2,r15,0x2                              
    if (s == 0) {                                                     
      s = 1;                                                          
    }                                                                 
                                                                      
    /* Align partition upwards */                                     
    s += record_space - (s % record_space);                           
 8000f70:	b6 6b 98 00 	add r19,r19,r11                                
                                                                      
    /* Reserve space for the EBR if necessary */                      
    if (count > 4 && i > 2) {                                         
 8000f74:	a0 57 10 00 	and r2,r2,r23                                  
    if (s == 0) {                                                     
      s = 1;                                                          
    }                                                                 
                                                                      
    /* Align partition upwards */                                     
    s += record_space - (s % record_space);                           
 8000f78:	ca 61 08 00 	sub r1,r19,r1                                  
                                                                      
    /* Reserve space for the EBR if necessary */                      
    if (count > 4 && i > 2) {                                         
 8000f7c:	44 40 00 02 	be r2,r0,8000f84 <rtems_bdpart_create+0x1a8>   
      pos += record_space;                                            
 8000f80:	b5 cb 70 00 	add r14,r14,r11                                
    }                                                                 
                                                                      
    /* Partition begin and end */                                     
    p->begin = pos;                                                   
 8000f84:	5a 0e 00 00 	sw (r16+0),r14                                 
    pos += s;                                                         
 8000f88:	b5 c1 70 00 	add r14,r14,r1                                 
    p->end = pos;                                                     
 8000f8c:	5a 0e 00 04 	sw (r16+4),r14                                 
  pos = record_space;                                                 
                                                                      
  /* Space for partitions */                                          
  free_space = disk_end - overhead;                                   
                                                                      
  for (i = 0; i < count; ++i) {                                       
 8000f90:	35 ef 00 01 	addi r15,r15,1                                 
 8000f94:	36 10 00 30 	addi r16,r16,48                                
 8000f98:	36 52 00 04 	addi r18,r18,4                                 
 8000f9c:	55 af ff e6 	bgu r13,r15,8000f34 <rtems_bdpart_create+0x158>
    pos += s;                                                         
    p->end = pos;                                                     
  }                                                                   
                                                                      
  /* Expand the last partition to the disk end */                     
  pt [count - 1].end = disk_end;                                      
 8000fa0:	35 a1 ff ff 	addi r1,r13,-1                                 
 8000fa4:	34 02 00 30 	mvi r2,48                                      
 8000fa8:	fb ff fe 06 	calli 80007c0 <__mulsi3>                       
 8000fac:	b6 a1 08 00 	add r1,r21,r1                                  
 8000fb0:	58 34 00 04 	sw (r1+4),r20                                  
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 8000fb4:	e0 00 00 06 	bi 8000fcc <rtems_bdpart_create+0x1f0>         
    }                                                                 
  }                                                                   
                                                                      
  /* Check format */                                                  
  if (format->type != RTEMS_BDPART_FORMAT_MBR) {                      
    return RTEMS_NOT_IMPLEMENTED;                                     
 8000fb8:	34 0c 00 18 	mvi r12,24                                     <== NOT EXECUTED
 8000fbc:	e0 00 00 04 	bi 8000fcc <rtems_bdpart_create+0x1f0>         <== NOT EXECUTED
    overhead += (count - 1) * record_space;                           
  }                                                                   
                                                                      
  /* Check disk space */                                              
  if ((overhead + count) > disk_end) {                                
    return RTEMS_IO_ERROR;                                            
 8000fc0:	34 0c 00 1b 	mvi r12,27                                     <== NOT EXECUTED
 8000fc4:	e0 00 00 02 	bi 8000fcc <rtems_bdpart_create+0x1f0>         <== NOT EXECUTED
                                                                      
    /* Partition size */                                              
    rtems_blkdev_bnum s = free_space * dist [i];                      
    if (s < free_space || s < dist [i]) {                             
      /* TODO: Calculate without overflow */                          
      return RTEMS_INVALID_NUMBER;                                    
 8000fc8:	34 0c 00 0a 	mvi r12,10                                     <== NOT EXECUTED
                                                                      
  /* Expand the last partition to the disk end */                     
  pt [count - 1].end = disk_end;                                      
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 8000fcc:	b9 80 08 00 	mv r1,r12                                      
 8000fd0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8000fd4:	2b 8b 00 38 	lw r11,(sp+56)                                 
 8000fd8:	2b 8c 00 34 	lw r12,(sp+52)                                 
 8000fdc:	2b 8d 00 30 	lw r13,(sp+48)                                 
 8000fe0:	2b 8e 00 2c 	lw r14,(sp+44)                                 
 8000fe4:	2b 8f 00 28 	lw r15,(sp+40)                                 
 8000fe8:	2b 90 00 24 	lw r16,(sp+36)                                 
 8000fec:	2b 91 00 20 	lw r17,(sp+32)                                 
 8000ff0:	2b 92 00 1c 	lw r18,(sp+28)                                 
 8000ff4:	2b 93 00 18 	lw r19,(sp+24)                                 
 8000ff8:	2b 94 00 14 	lw r20,(sp+20)                                 
 8000ffc:	2b 95 00 10 	lw r21,(sp+16)                                 
 8001000:	2b 96 00 0c 	lw r22,(sp+12)                                 
 8001004:	2b 97 00 08 	lw r23,(sp+8)                                  
 8001008:	37 9c 00 3c 	addi sp,sp,60                                  
 800100c:	c3 a0 00 00 	ret                                            
                                                                      

08001010 <rtems_bdpart_dump>: { uuid_unparse_lower( type, str); } void rtems_bdpart_dump( const rtems_bdpart_partition *pt, size_t count) {
 8001010:	37 9c ff 80 	addi sp,sp,-128                                
 8001014:	5b 8b 00 44 	sw (sp+68),r11                                 
 8001018:	5b 8c 00 40 	sw (sp+64),r12                                 
 800101c:	5b 8d 00 3c 	sw (sp+60),r13                                 
 8001020:	5b 8e 00 38 	sw (sp+56),r14                                 
 8001024:	5b 8f 00 34 	sw (sp+52),r15                                 
 8001028:	5b 90 00 30 	sw (sp+48),r16                                 
 800102c:	5b 91 00 2c 	sw (sp+44),r17                                 
 8001030:	5b 92 00 28 	sw (sp+40),r18                                 
 8001034:	5b 93 00 24 	sw (sp+36),r19                                 
 8001038:	5b 94 00 20 	sw (sp+32),r20                                 
 800103c:	5b 95 00 1c 	sw (sp+28),r21                                 
 8001040:	5b 96 00 18 	sw (sp+24),r22                                 
 8001044:	5b 97 00 14 	sw (sp+20),r23                                 
 8001048:	5b 98 00 10 	sw (sp+16),r24                                 
 800104c:	5b 99 00 0c 	sw (sp+12),r25                                 
 8001050:	5b 9b 00 08 	sw (sp+8),fp                                   
 8001054:	5b 9d 00 04 	sw (sp+4),ra                                   
  size_t i = 0;                                                       
                                                                      
  printf(                                                             
 8001058:	78 03 08 02 	mvhi r3,0x802                                  
{                                                                     
  uuid_unparse_lower( type, str);                                     
}                                                                     
                                                                      
void rtems_bdpart_dump( const rtems_bdpart_partition *pt, size_t count)
{                                                                     
 800105c:	b8 20 58 00 	mv r11,r1                                      
  size_t i = 0;                                                       
                                                                      
  printf(                                                             
 8001060:	b8 60 08 00 	mv r1,r3                                       
 8001064:	38 21 50 e4 	ori r1,r1,0x50e4                               
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16_LBA:                             
          type = "FAT 16 LBA";                                        
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_32:                                 
          type = "FAT 32";                                            
 8001068:	78 14 08 02 	mvhi r20,0x802                                 
          break;                                                      
        case RTEMS_BDPART_MBR_DATA:                                   
          type = "DATA";                                              
          break;                                                      
        default:                                                      
          snprintf( type_buffer, sizeof( type_buffer), "0x%02" PRIx8, type_mbr);
 800106c:	78 13 08 02 	mvhi r19,0x802                                 
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16:                                 
          type = "FAT 16";                                            
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16_LBA:                             
          type = "FAT 16 LBA";                                        
 8001070:	78 12 08 02 	mvhi r18,0x802                                 
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_32_LBA:                             
          type = "FAT 32 LBA";                                        
          break;                                                      
        case RTEMS_BDPART_MBR_DATA:                                   
          type = "DATA";                                              
 8001074:	78 11 08 02 	mvhi r17,0x802                                 
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_32:                                 
          type = "FAT 32";                                            
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_32_LBA:                             
          type = "FAT 32 LBA";                                        
 8001078:	78 10 08 02 	mvhi r16,0x802                                 
    uint8_t type_mbr = 0;                                             
                                                                      
    if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {    
      switch (type_mbr) {                                             
        case RTEMS_BDPART_MBR_FAT_12:                                 
          type = "FAT 12";                                            
 800107c:	78 0f 08 02 	mvhi r15,0x802                                 
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16:                                 
          type = "FAT 16";                                            
 8001080:	78 0e 08 02 	mvhi r14,0x802                                 
    } else {                                                          
      rtems_bdpart_type_to_string( p->type, type_buffer);             
      type = type_buffer;                                             
    }                                                                 
                                                                      
    printf(                                                           
 8001084:	78 0d 08 02 	mvhi r13,0x802                                 
{                                                                     
  uuid_unparse_lower( type, str);                                     
}                                                                     
                                                                      
void rtems_bdpart_dump( const rtems_bdpart_partition *pt, size_t count)
{                                                                     
 8001088:	5b 82 00 48 	sw (sp+72),r2                                  
    "------------+------------+-----------------------------------------------------\n"
    " BEGIN      | END        | TYPE\n"                               
    "------------+------------+-----------------------------------------------------\n"
  );                                                                  
                                                                      
  for (i = 0; i < count; ++i) {                                       
 800108c:	34 15 00 00 	mvi r21,0                                      
                                                                      
void rtems_bdpart_dump( const rtems_bdpart_partition *pt, size_t count)
{                                                                     
  size_t i = 0;                                                       
                                                                      
  printf(                                                             
 8001090:	f8 00 49 09 	calli 80134b4 <puts>                           
          snprintf( type_buffer, sizeof( type_buffer), "0x%02" PRIx8, type_mbr);
          type = type_buffer;                                         
          break;                                                      
      }                                                               
    } else {                                                          
      rtems_bdpart_type_to_string( p->type, type_buffer);             
 8001094:	37 8c 00 4c 	addi r12,sp,76                                 
    const char *type = NULL;                                          
    char type_buffer [52];                                            
    uint8_t type_mbr = 0;                                             
                                                                      
    if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {    
      switch (type_mbr) {                                             
 8001098:	34 16 00 0b 	mvi r22,11                                     
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16_LBA:                             
          type = "FAT 16 LBA";                                        
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_32:                                 
          type = "FAT 32";                                            
 800109c:	3a 94 50 d0 	ori r20,r20,0x50d0                             
          break;                                                      
        case RTEMS_BDPART_MBR_DATA:                                   
          type = "DATA";                                              
          break;                                                      
        default:                                                      
          snprintf( type_buffer, sizeof( type_buffer), "0x%02" PRIx8, type_mbr);
 80010a0:	3a 73 52 24 	ori r19,r19,0x5224                             
    const char *type = NULL;                                          
    char type_buffer [52];                                            
    uint8_t type_mbr = 0;                                             
                                                                      
    if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {    
      switch (type_mbr) {                                             
 80010a4:	34 1b 00 0e 	mvi fp,14                                      
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16:                                 
          type = "FAT 16";                                            
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16_LBA:                             
          type = "FAT 16 LBA";                                        
 80010a8:	3a 52 50 d8 	ori r18,r18,0x50d8                             
    const char *type = NULL;                                          
    char type_buffer [52];                                            
    uint8_t type_mbr = 0;                                             
                                                                      
    if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {    
      switch (type_mbr) {                                             
 80010ac:	34 19 00 da 	mvi r25,218                                    
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_32_LBA:                             
          type = "FAT 32 LBA";                                        
          break;                                                      
        case RTEMS_BDPART_MBR_DATA:                                   
          type = "DATA";                                              
 80010b0:	3a 31 50 bc 	ori r17,r17,0x50bc                             
    const char *type = NULL;                                          
    char type_buffer [52];                                            
    uint8_t type_mbr = 0;                                             
                                                                      
    if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {    
      switch (type_mbr) {                                             
 80010b4:	34 18 00 0c 	mvi r24,12                                     
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_32:                                 
          type = "FAT 32";                                            
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_32_LBA:                             
          type = "FAT 32 LBA";                                        
 80010b8:	3a 10 50 c4 	ori r16,r16,0x50c4                             
    uint8_t type_mbr = 0;                                             
                                                                      
    if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {    
      switch (type_mbr) {                                             
        case RTEMS_BDPART_MBR_FAT_12:                                 
          type = "FAT 12";                                            
 80010bc:	39 ef 50 b4 	ori r15,r15,0x50b4                             
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16:                                 
          type = "FAT 16";                                            
 80010c0:	39 ce 50 ac 	ori r14,r14,0x50ac                             
    } else {                                                          
      rtems_bdpart_type_to_string( p->type, type_buffer);             
      type = type_buffer;                                             
    }                                                                 
                                                                      
    printf(                                                           
 80010c4:	39 ad 52 2c 	ori r13,r13,0x522c                             
    "------------+------------+-----------------------------------------------------\n"
    " BEGIN      | END        | TYPE\n"                               
    "------------+------------+-----------------------------------------------------\n"
  );                                                                  
                                                                      
  for (i = 0; i < count; ++i) {                                       
 80010c8:	e0 00 00 28 	bi 8001168 <rtems_bdpart_dump+0x158>           
    const rtems_bdpart_partition *p = pt + i;                         
    const char *type = NULL;                                          
    char type_buffer [52];                                            
    uint8_t type_mbr = 0;                                             
                                                                      
    if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {    
 80010cc:	35 77 00 08 	addi r23,r11,8                                 
 80010d0:	ba e0 08 00 	mv r1,r23                                      
 80010d4:	37 82 00 83 	addi r2,sp,131                                 
                                                                      
  for (i = 0; i < count; ++i) {                                       
    const rtems_bdpart_partition *p = pt + i;                         
    const char *type = NULL;                                          
    char type_buffer [52];                                            
    uint8_t type_mbr = 0;                                             
 80010d8:	33 80 00 83 	sb (sp+131),r0                                 
                                                                      
    if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {    
 80010dc:	f8 00 00 e1 	calli 8001460 <rtems_bdpart_to_mbr_partition_type>
 80010e0:	44 20 00 18 	be r1,r0,8001140 <rtems_bdpart_dump+0x130>     <== NEVER TAKEN
      switch (type_mbr) {                                             
 80010e4:	43 85 00 83 	lbu r5,(sp+131)                                
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16_LBA:                             
          type = "FAT 16 LBA";                                        
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_32:                                 
          type = "FAT 32";                                            
 80010e8:	ba 80 20 00 	mv r4,r20                                      
    const char *type = NULL;                                          
    char type_buffer [52];                                            
    uint8_t type_mbr = 0;                                             
                                                                      
    if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {    
      switch (type_mbr) {                                             
 80010ec:	44 b6 00 19 	be r5,r22,8001150 <rtems_bdpart_dump+0x140>    <== ALWAYS TAKEN
 80010f0:	54 b6 00 08 	bgu r5,r22,8001110 <rtems_bdpart_dump+0x100>   <== NOT EXECUTED
 80010f4:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
        case RTEMS_BDPART_MBR_FAT_12:                                 
          type = "FAT 12";                                            
 80010f8:	b9 e0 20 00 	mv r4,r15                                      <== NOT EXECUTED
    const char *type = NULL;                                          
    char type_buffer [52];                                            
    uint8_t type_mbr = 0;                                             
                                                                      
    if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {    
      switch (type_mbr) {                                             
 80010fc:	44 a1 00 15 	be r5,r1,8001150 <rtems_bdpart_dump+0x140>     <== NOT EXECUTED
 8001100:	34 01 00 04 	mvi r1,4                                       <== NOT EXECUTED
        case RTEMS_BDPART_MBR_FAT_12:                                 
          type = "FAT 12";                                            
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16:                                 
          type = "FAT 16";                                            
 8001104:	b9 c0 20 00 	mv r4,r14                                      <== NOT EXECUTED
    const char *type = NULL;                                          
    char type_buffer [52];                                            
    uint8_t type_mbr = 0;                                             
                                                                      
    if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {    
      switch (type_mbr) {                                             
 8001108:	5c a1 00 08 	bne r5,r1,8001128 <rtems_bdpart_dump+0x118>    <== NOT EXECUTED
 800110c:	e0 00 00 11 	bi 8001150 <rtems_bdpart_dump+0x140>           <== NOT EXECUTED
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16:                                 
          type = "FAT 16";                                            
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16_LBA:                             
          type = "FAT 16 LBA";                                        
 8001110:	ba 40 20 00 	mv r4,r18                                      <== NOT EXECUTED
    const char *type = NULL;                                          
    char type_buffer [52];                                            
    uint8_t type_mbr = 0;                                             
                                                                      
    if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {    
      switch (type_mbr) {                                             
 8001114:	44 bb 00 0f 	be r5,fp,8001150 <rtems_bdpart_dump+0x140>     <== NOT EXECUTED
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_32_LBA:                             
          type = "FAT 32 LBA";                                        
          break;                                                      
        case RTEMS_BDPART_MBR_DATA:                                   
          type = "DATA";                                              
 8001118:	ba 20 20 00 	mv r4,r17                                      <== NOT EXECUTED
    const char *type = NULL;                                          
    char type_buffer [52];                                            
    uint8_t type_mbr = 0;                                             
                                                                      
    if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {    
      switch (type_mbr) {                                             
 800111c:	44 b9 00 0d 	be r5,r25,8001150 <rtems_bdpart_dump+0x140>    <== NOT EXECUTED
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_32:                                 
          type = "FAT 32";                                            
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_32_LBA:                             
          type = "FAT 32 LBA";                                        
 8001120:	ba 00 20 00 	mv r4,r16                                      <== NOT EXECUTED
    const char *type = NULL;                                          
    char type_buffer [52];                                            
    uint8_t type_mbr = 0;                                             
                                                                      
    if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {    
      switch (type_mbr) {                                             
 8001124:	44 b8 00 0b 	be r5,r24,8001150 <rtems_bdpart_dump+0x140>    <== NOT EXECUTED
          break;                                                      
        case RTEMS_BDPART_MBR_DATA:                                   
          type = "DATA";                                              
          break;                                                      
        default:                                                      
          snprintf( type_buffer, sizeof( type_buffer), "0x%02" PRIx8, type_mbr);
 8001128:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 800112c:	34 02 00 34 	mvi r2,52                                      <== NOT EXECUTED
 8001130:	ba 60 18 00 	mv r3,r19                                      <== NOT EXECUTED
 8001134:	b8 a0 20 00 	mv r4,r5                                       <== NOT EXECUTED
 8001138:	f8 00 49 15 	calli 801358c <snprintf>                       <== NOT EXECUTED
 800113c:	e0 00 00 04 	bi 800114c <rtems_bdpart_dump+0x13c>           <== NOT EXECUTED
static void rtems_bdpart_type_to_string(                              
  const uuid_t type,                                                  
  char str [37]                                                       
)                                                                     
{                                                                     
  uuid_unparse_lower( type, str);                                     
 8001140:	ba e0 08 00 	mv r1,r23                                      <== NOT EXECUTED
 8001144:	b9 80 10 00 	mv r2,r12                                      <== NOT EXECUTED
 8001148:	f8 00 27 43 	calli 800ae54 <uuid_unparse_lower>             <== NOT EXECUTED
          type = type_buffer;                                         
          break;                                                      
      }                                                               
    } else {                                                          
      rtems_bdpart_type_to_string( p->type, type_buffer);             
      type = type_buffer;                                             
 800114c:	b9 80 20 00 	mv r4,r12                                      <== NOT EXECUTED
    }                                                                 
                                                                      
    printf(                                                           
 8001150:	29 62 00 00 	lw r2,(r11+0)                                  
 8001154:	29 63 00 04 	lw r3,(r11+4)                                  
 8001158:	b9 a0 08 00 	mv r1,r13                                      
    "------------+------------+-----------------------------------------------------\n"
    " BEGIN      | END        | TYPE\n"                               
    "------------+------------+-----------------------------------------------------\n"
  );                                                                  
                                                                      
  for (i = 0; i < count; ++i) {                                       
 800115c:	36 b5 00 01 	addi r21,r21,1                                 
    } else {                                                          
      rtems_bdpart_type_to_string( p->type, type_buffer);             
      type = type_buffer;                                             
    }                                                                 
                                                                      
    printf(                                                           
 8001160:	f8 00 48 8a 	calli 8013388 <printf>                         
    "------------+------------+-----------------------------------------------------\n"
    " BEGIN      | END        | TYPE\n"                               
    "------------+------------+-----------------------------------------------------\n"
  );                                                                  
                                                                      
  for (i = 0; i < count; ++i) {                                       
 8001164:	35 6b 00 30 	addi r11,r11,48                                
 8001168:	2b 81 00 48 	lw r1,(sp+72)                                  
 800116c:	54 35 ff d8 	bgu r1,r21,80010cc <rtems_bdpart_dump+0xbc>    
      p->end,                                                         
      type                                                            
    );                                                                
  }                                                                   
                                                                      
  puts( "------------+------------+-----------------------------------------------------");
 8001170:	78 01 08 02 	mvhi r1,0x802                                  
 8001174:	38 21 51 d4 	ori r1,r1,0x51d4                               
 8001178:	f8 00 48 cf 	calli 80134b4 <puts>                           
}                                                                     
 800117c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001180:	2b 8b 00 44 	lw r11,(sp+68)                                 
 8001184:	2b 8c 00 40 	lw r12,(sp+64)                                 
 8001188:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 800118c:	2b 8e 00 38 	lw r14,(sp+56)                                 
 8001190:	2b 8f 00 34 	lw r15,(sp+52)                                 
 8001194:	2b 90 00 30 	lw r16,(sp+48)                                 
 8001198:	2b 91 00 2c 	lw r17,(sp+44)                                 
 800119c:	2b 92 00 28 	lw r18,(sp+40)                                 
 80011a0:	2b 93 00 24 	lw r19,(sp+36)                                 
 80011a4:	2b 94 00 20 	lw r20,(sp+32)                                 
 80011a8:	2b 95 00 1c 	lw r21,(sp+28)                                 
 80011ac:	2b 96 00 18 	lw r22,(sp+24)                                 
 80011b0:	2b 97 00 14 	lw r23,(sp+20)                                 
 80011b4:	2b 98 00 10 	lw r24,(sp+16)                                 
 80011b8:	2b 99 00 0c 	lw r25,(sp+12)                                 
 80011bc:	2b 9b 00 08 	lw fp,(sp+8)                                   
 80011c0:	37 9c 00 80 	addi sp,sp,128                                 
 80011c4:	c3 a0 00 00 	ret                                            
                                                                      

08001494 <rtems_bdpart_get_disk_data>: const char *disk_name, int *fd_ptr, rtems_disk_device **dd_ptr, rtems_blkdev_bnum *disk_end ) {
 8001494:	37 9c ff e4 	addi sp,sp,-28                                 
 8001498:	5b 8b 00 18 	sw (sp+24),r11                                 
 800149c:	5b 8c 00 14 	sw (sp+20),r12                                 
 80014a0:	5b 8d 00 10 	sw (sp+16),r13                                 
 80014a4:	5b 8e 00 0c 	sw (sp+12),r14                                 
 80014a8:	5b 8f 00 08 	sw (sp+8),r15                                  
 80014ac:	5b 9d 00 04 	sw (sp+4),ra                                   
 80014b0:	b8 40 70 00 	mv r14,r2                                      
  rtems_disk_device *dd = NULL;                                       
  rtems_blkdev_bnum disk_begin = 0;                                   
  rtems_blkdev_bnum block_size = 0;                                   
                                                                      
  /* Open device file */                                              
  fd = open( disk_name, O_RDWR);                                      
 80014b4:	34 02 00 02 	mvi r2,2                                       
  const char *disk_name,                                              
  int *fd_ptr,                                                        
  rtems_disk_device **dd_ptr,                                         
  rtems_blkdev_bnum *disk_end                                         
)                                                                     
{                                                                     
 80014b8:	b8 60 68 00 	mv r13,r3                                      
 80014bc:	b8 80 78 00 	mv r15,r4                                      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  int rv = 0;                                                         
  int fd = -1;                                                        
  rtems_disk_device *dd = NULL;                                       
 80014c0:	5b 80 00 1c 	sw (sp+28),r0                                  
  rtems_blkdev_bnum disk_begin = 0;                                   
  rtems_blkdev_bnum block_size = 0;                                   
                                                                      
  /* Open device file */                                              
  fd = open( disk_name, O_RDWR);                                      
 80014c4:	f8 00 0e e0 	calli 8005044 <open>                           
 80014c8:	b8 20 60 00 	mv r12,r1                                      
  if (fd < 0) {                                                       
    sc = RTEMS_INVALID_NAME;                                          
 80014cc:	34 0b 00 03 	mvi r11,3                                      
  rtems_blkdev_bnum disk_begin = 0;                                   
  rtems_blkdev_bnum block_size = 0;                                   
                                                                      
  /* Open device file */                                              
  fd = open( disk_name, O_RDWR);                                      
  if (fd < 0) {                                                       
 80014d0:	48 01 00 12 	bg r0,r1,8001518 <rtems_bdpart_get_disk_data+0x84><== NEVER TAKEN
static inline int rtems_disk_fd_get_disk_device(                      
  int fd,                                                             
  rtems_disk_device **dd_ptr                                          
)                                                                     
{                                                                     
  return ioctl(fd, RTEMS_BLKIO_GETDISKDEV, dd_ptr);                   
 80014d4:	78 03 08 02 	mvhi r3,0x802                                  
 80014d8:	38 63 4e c4 	ori r3,r3,0x4ec4                               
 80014dc:	28 62 00 00 	lw r2,(r3+0)                                   
 80014e0:	37 83 00 1c 	addi r3,sp,28                                  
 80014e4:	f8 00 0b 46 	calli 80041fc <ioctl>                          
    goto error;                                                       
  }                                                                   
                                                                      
  /* Get disk handle */                                               
  rv = rtems_disk_fd_get_disk_device( fd, &dd);                       
  if (rv != 0) {                                                      
 80014e8:	5c 20 00 0c 	bne r1,r0,8001518 <rtems_bdpart_get_disk_data+0x84><== NEVER TAKEN
    sc = RTEMS_INVALID_NAME;                                          
    goto error;                                                       
  }                                                                   
                                                                      
  /* Get disk begin, end and block size */                            
  disk_begin = dd->start;                                             
 80014ec:	2b 81 00 1c 	lw r1,(sp+28)                                  
  *disk_end = dd->size;                                               
  block_size = dd->block_size;                                        
                                                                      
  /* Check block size */                                              
  if (block_size < RTEMS_BDPART_BLOCK_SIZE) {                         
    sc = RTEMS_IO_ERROR;                                              
 80014f0:	34 0b 00 1b 	mvi r11,27                                     
    goto error;                                                       
  }                                                                   
                                                                      
  /* Get disk begin, end and block size */                            
  disk_begin = dd->start;                                             
  *disk_end = dd->size;                                               
 80014f4:	28 23 00 1c 	lw r3,(r1+28)                                  
    sc = RTEMS_INVALID_NAME;                                          
    goto error;                                                       
  }                                                                   
                                                                      
  /* Get disk begin, end and block size */                            
  disk_begin = dd->start;                                             
 80014f8:	28 22 00 18 	lw r2,(r1+24)                                  
  *disk_end = dd->size;                                               
 80014fc:	59 e3 00 00 	sw (r15+0),r3                                  
  block_size = dd->block_size;                                        
                                                                      
  /* Check block size */                                              
  if (block_size < RTEMS_BDPART_BLOCK_SIZE) {                         
 8001500:	28 21 00 24 	lw r1,(r1+36)                                  
 8001504:	34 03 01 ff 	mvi r3,511                                     
 8001508:	50 61 00 04 	bgeu r3,r1,8001518 <rtems_bdpart_get_disk_data+0x84><== NEVER TAKEN
  int *fd_ptr,                                                        
  rtems_disk_device **dd_ptr,                                         
  rtems_blkdev_bnum *disk_end                                         
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
 800150c:	7c 4b 00 00 	cmpnei r11,r2,0                                
 8001510:	c8 0b 58 00 	sub r11,r0,r11                                 
 8001514:	21 6b 00 1b 	andi r11,r11,0x1b                              
    goto error;                                                       
  }                                                                   
                                                                      
error:                                                                
                                                                      
  if (sc == RTEMS_SUCCESSFUL && fd_ptr != NULL && dd_ptr != NULL) {   
 8001518:	65 62 00 00 	cmpei r2,r11,0                                 
 800151c:	7d c1 00 00 	cmpnei r1,r14,0                                
 8001520:	a0 41 08 00 	and r1,r2,r1                                   
 8001524:	44 20 00 06 	be r1,r0,800153c <rtems_bdpart_get_disk_data+0xa8>
 8001528:	45 a0 00 05 	be r13,r0,800153c <rtems_bdpart_get_disk_data+0xa8><== NEVER TAKEN
    *fd_ptr = fd;                                                     
    *dd_ptr = dd;                                                     
 800152c:	2b 81 00 1c 	lw r1,(sp+28)                                  
  }                                                                   
                                                                      
error:                                                                
                                                                      
  if (sc == RTEMS_SUCCESSFUL && fd_ptr != NULL && dd_ptr != NULL) {   
    *fd_ptr = fd;                                                     
 8001530:	59 cc 00 00 	sw (r14+0),r12                                 
    *dd_ptr = dd;                                                     
 8001534:	59 a1 00 00 	sw (r13+0),r1                                  
 8001538:	e0 00 00 03 	bi 8001544 <rtems_bdpart_get_disk_data+0xb0>   
  } else {                                                            
    close( fd);                                                       
 800153c:	b9 80 08 00 	mv r1,r12                                      
 8001540:	f8 00 0a 6b 	calli 8003eec <close>                          
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
 8001544:	b9 60 08 00 	mv r1,r11                                      
 8001548:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800154c:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8001550:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8001554:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8001558:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800155c:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8001560:	37 9c 00 1c 	addi sp,sp,28                                  
 8001564:	c3 a0 00 00 	ret                                            
                                                                      

0801f198 <rtems_bdpart_mount>: const char *disk_name, const rtems_bdpart_partition *pt __attribute__((unused)), size_t count, const char *mount_base ) {
 801f198:	37 9c ff d4 	addi sp,sp,-44                                 <== NOT EXECUTED
 801f19c:	5b 8b 00 2c 	sw (sp+44),r11                                 <== NOT EXECUTED
 801f1a0:	5b 8c 00 28 	sw (sp+40),r12                                 <== NOT EXECUTED
 801f1a4:	5b 8d 00 24 	sw (sp+36),r13                                 <== NOT EXECUTED
 801f1a8:	5b 8e 00 20 	sw (sp+32),r14                                 <== NOT EXECUTED
 801f1ac:	5b 8f 00 1c 	sw (sp+28),r15                                 <== NOT EXECUTED
 801f1b0:	5b 90 00 18 	sw (sp+24),r16                                 <== NOT EXECUTED
 801f1b4:	5b 91 00 14 	sw (sp+20),r17                                 <== NOT EXECUTED
 801f1b8:	5b 92 00 10 	sw (sp+16),r18                                 <== NOT EXECUTED
 801f1bc:	5b 93 00 0c 	sw (sp+12),r19                                 <== NOT EXECUTED
 801f1c0:	5b 94 00 08 	sw (sp+8),r20                                  <== NOT EXECUTED
 801f1c4:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  const char *disk_file_name = strrchr( disk_name, '/');              
 801f1c8:	34 02 00 2f 	mvi r2,47                                      <== NOT EXECUTED
  const char *disk_name,                                              
  const rtems_bdpart_partition *pt __attribute__((unused)),           
  size_t count,                                                       
  const char *mount_base                                              
)                                                                     
{                                                                     
 801f1cc:	b8 80 98 00 	mv r19,r4                                      <== NOT EXECUTED
 801f1d0:	b8 60 a0 00 	mv r20,r3                                      <== NOT EXECUTED
 801f1d4:	b8 20 88 00 	mv r17,r1                                      <== NOT EXECUTED
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  const char *disk_file_name = strrchr( disk_name, '/');              
 801f1d8:	f8 00 84 e6 	calli 8040570 <strrchr>                        <== NOT EXECUTED
 801f1dc:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
  char *logical_disk_name = NULL;                                     
  char *logical_disk_marker = NULL;                                   
  char *mount_point = NULL;                                           
  char *mount_marker = NULL;                                          
  size_t disk_file_name_size = 0;                                     
  size_t disk_name_size = strlen( disk_name);                         
 801f1e0:	ba 20 08 00 	mv r1,r17                                      <== NOT EXECUTED
 801f1e4:	f8 00 81 08 	calli 803f604 <strlen>                         <== NOT EXECUTED
 801f1e8:	b8 20 70 00 	mv r14,r1                                      <== NOT EXECUTED
  size_t mount_base_size = strlen( mount_base);                       
 801f1ec:	ba 60 08 00 	mv r1,r19                                      <== NOT EXECUTED
 801f1f0:	f8 00 81 05 	calli 803f604 <strlen>                         <== NOT EXECUTED
 801f1f4:	b8 20 78 00 	mv r15,r1                                      <== NOT EXECUTED
  size_t i = 0;                                                       
                                                                      
  /* Create logical disk name base */                                 
  logical_disk_name = malloc( disk_name_size + RTEMS_BDPART_NUMBER_SIZE);
 801f1f8:	35 c1 00 04 	addi r1,r14,4                                  <== NOT EXECUTED
 801f1fc:	fb ff 88 ab 	calli 80014a8 <malloc>                         <== NOT EXECUTED
 801f200:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
  if (logical_disk_name == NULL) {                                    
    return RTEMS_NO_MEMORY;                                           
 801f204:	34 0c 00 1a 	mvi r12,26                                     <== NOT EXECUTED
  size_t mount_base_size = strlen( mount_base);                       
  size_t i = 0;                                                       
                                                                      
  /* Create logical disk name base */                                 
  logical_disk_name = malloc( disk_name_size + RTEMS_BDPART_NUMBER_SIZE);
  if (logical_disk_name == NULL) {                                    
 801f208:	44 20 00 48 	be r1,r0,801f328 <rtems_bdpart_mount+0x190>    <== NOT EXECUTED
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
  strncpy( logical_disk_name, disk_name, disk_name_size);             
 801f20c:	ba 20 10 00 	mv r2,r17                                      <== NOT EXECUTED
 801f210:	b9 c0 18 00 	mv r3,r14                                      <== NOT EXECUTED
 801f214:	f8 00 81 9f 	calli 803f890 <strncpy>                        <== NOT EXECUTED
  if (disk_file_name != NULL) {                                       
    disk_file_name += 1;                                              
    disk_file_name_size = strlen( disk_file_name);                    
  } else {                                                            
    disk_file_name = disk_name;                                       
    disk_file_name_size = disk_name_size;                             
 801f218:	b9 c0 80 00 	mv r16,r14                                     <== NOT EXECUTED
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
  strncpy( logical_disk_name, disk_name, disk_name_size);             
                                                                      
  /* Get disk file name */                                            
  if (disk_file_name != NULL) {                                       
 801f21c:	45 60 00 05 	be r11,r0,801f230 <rtems_bdpart_mount+0x98>    <== NOT EXECUTED
    disk_file_name += 1;                                              
 801f220:	35 71 00 01 	addi r17,r11,1                                 <== NOT EXECUTED
    disk_file_name_size = strlen( disk_file_name);                    
 801f224:	ba 20 08 00 	mv r1,r17                                      <== NOT EXECUTED
 801f228:	f8 00 80 f7 	calli 803f604 <strlen>                         <== NOT EXECUTED
 801f22c:	b8 20 80 00 	mv r16,r1                                      <== NOT EXECUTED
    disk_file_name = disk_name;                                       
    disk_file_name_size = disk_name_size;                             
  }                                                                   
                                                                      
  /* Create mount point base */                                       
  mount_point = malloc( mount_base_size + 1 + disk_file_name_size + RTEMS_BDPART_NUMBER_SIZE);
 801f230:	b6 0f 90 00 	add r18,r16,r15                                <== NOT EXECUTED
 801f234:	36 41 00 05 	addi r1,r18,5                                  <== NOT EXECUTED
 801f238:	fb ff 88 9c 	calli 80014a8 <malloc>                         <== NOT EXECUTED
 801f23c:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
  if (mount_point == NULL) {                                          
    esc = RTEMS_NO_MEMORY;                                            
 801f240:	34 0c 00 1a 	mvi r12,26                                     <== NOT EXECUTED
    disk_file_name_size = disk_name_size;                             
  }                                                                   
                                                                      
  /* Create mount point base */                                       
  mount_point = malloc( mount_base_size + 1 + disk_file_name_size + RTEMS_BDPART_NUMBER_SIZE);
  if (mount_point == NULL) {                                          
 801f244:	44 20 00 35 	be r1,r0,801f318 <rtems_bdpart_mount+0x180>    <== NOT EXECUTED
    esc = RTEMS_NO_MEMORY;                                            
    goto cleanup;                                                     
  }                                                                   
  strncpy( mount_point, mount_base, mount_base_size);                 
 801f248:	ba 60 10 00 	mv r2,r19                                      <== NOT EXECUTED
 801f24c:	b9 e0 18 00 	mv r3,r15                                      <== NOT EXECUTED
 801f250:	f8 00 81 90 	calli 803f890 <strncpy>                        <== NOT EXECUTED
  mount_point [mount_base_size] = '/';                                
 801f254:	b5 6f 08 00 	add r1,r11,r15                                 <== NOT EXECUTED
 801f258:	34 02 00 2f 	mvi r2,47                                      <== NOT EXECUTED
 801f25c:	30 22 00 00 	sb (r1+0),r2                                   <== NOT EXECUTED
  strncpy( mount_point + mount_base_size + 1, disk_file_name, disk_file_name_size);
 801f260:	35 e1 00 01 	addi r1,r15,1                                  <== NOT EXECUTED
 801f264:	ba 00 18 00 	mv r3,r16                                      <== NOT EXECUTED
 801f268:	b5 61 08 00 	add r1,r11,r1                                  <== NOT EXECUTED
 801f26c:	ba 20 10 00 	mv r2,r17                                      <== NOT EXECUTED
                                                                      
  /* Markers */                                                       
  logical_disk_marker = logical_disk_name + disk_name_size;           
  mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
 801f270:	36 52 00 01 	addi r18,r18,1                                 <== NOT EXECUTED
                                                                      
  /* Mount supported file systems for each partition */               
  for (i = 0; i < count; ++i) {                                       
    /* Create logical disk name */                                    
    int rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
 801f274:	78 10 08 05 	mvhi r16,0x805                                 <== NOT EXECUTED
      esc = RTEMS_IO_ERROR;                                           
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Mount */                                                       
    rv = mount(                                                       
 801f278:	78 0f 08 05 	mvhi r15,0x805                                 <== NOT EXECUTED
    esc = RTEMS_NO_MEMORY;                                            
    goto cleanup;                                                     
  }                                                                   
  strncpy( mount_point, mount_base, mount_base_size);                 
  mount_point [mount_base_size] = '/';                                
  strncpy( mount_point + mount_base_size + 1, disk_file_name, disk_file_name_size);
 801f27c:	f8 00 81 85 	calli 803f890 <strncpy>                        <== NOT EXECUTED
                                                                      
  /* Markers */                                                       
  logical_disk_marker = logical_disk_name + disk_name_size;           
 801f280:	b5 ae 70 00 	add r14,r13,r14                                <== NOT EXECUTED
  mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
 801f284:	b5 72 90 00 	add r18,r11,r18                                <== NOT EXECUTED
                                                                      
  /* Mount supported file systems for each partition */               
  for (i = 0; i < count; ++i) {                                       
 801f288:	34 0c 00 00 	mvi r12,0                                      <== NOT EXECUTED
    /* Create logical disk name */                                    
    int rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
 801f28c:	3a 10 f0 34 	ori r16,r16,0xf034                             <== NOT EXECUTED
    if (rv >= RTEMS_BDPART_NUMBER_SIZE) {                             
 801f290:	34 13 00 03 	mvi r19,3                                      <== NOT EXECUTED
      esc = RTEMS_IO_ERROR;                                           
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Mount */                                                       
    rv = mount(                                                       
 801f294:	39 ef d0 5c 	ori r15,r15,0xd05c                             <== NOT EXECUTED
  /* Markers */                                                       
  logical_disk_marker = logical_disk_name + disk_name_size;           
  mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
                                                                      
  /* Mount supported file systems for each partition */               
  for (i = 0; i < count; ++i) {                                       
 801f298:	e0 00 00 1a 	bi 801f300 <rtems_bdpart_mount+0x168>          <== NOT EXECUTED
    /* Create logical disk name */                                    
    int rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
 801f29c:	35 8c 00 01 	addi r12,r12,1                                 <== NOT EXECUTED
 801f2a0:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 801f2a4:	34 02 00 04 	mvi r2,4                                       <== NOT EXECUTED
 801f2a8:	ba 00 18 00 	mv r3,r16                                      <== NOT EXECUTED
 801f2ac:	b9 80 20 00 	mv r4,r12                                      <== NOT EXECUTED
 801f2b0:	f8 00 7d 3c 	calli 803e7a0 <snprintf>                       <== NOT EXECUTED
    if (rv >= RTEMS_BDPART_NUMBER_SIZE) {                             
 801f2b4:	48 33 00 16 	bg r1,r19,801f30c <rtems_bdpart_mount+0x174>   <== NOT EXECUTED
      esc = RTEMS_INVALID_NAME;                                       
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Create mount point */                                          
    strncpy( mount_marker, logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE);
 801f2b8:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 801f2bc:	34 03 00 04 	mvi r3,4                                       <== NOT EXECUTED
 801f2c0:	ba 40 08 00 	mv r1,r18                                      <== NOT EXECUTED
 801f2c4:	f8 00 81 73 	calli 803f890 <strncpy>                        <== NOT EXECUTED
    rv = rtems_mkdir( mount_point, S_IRWXU | S_IRWXG | S_IRWXO);      
 801f2c8:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801f2cc:	34 02 01 ff 	mvi r2,511                                     <== NOT EXECUTED
 801f2d0:	f8 00 12 cb 	calli 8023dfc <rtems_mkdir>                    <== NOT EXECUTED
 801f2d4:	b8 20 88 00 	mv r17,r1                                      <== NOT EXECUTED
    if (rv != 0) {                                                    
 801f2d8:	5c 20 00 0f 	bne r1,r0,801f314 <rtems_bdpart_mount+0x17c>   <== NOT EXECUTED
      esc = RTEMS_IO_ERROR;                                           
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Mount */                                                       
    rv = mount(                                                       
 801f2dc:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 801f2e0:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 801f2e4:	b9 e0 18 00 	mv r3,r15                                      <== NOT EXECUTED
 801f2e8:	34 04 00 00 	mvi r4,0                                       <== NOT EXECUTED
 801f2ec:	34 05 00 00 	mvi r5,0                                       <== NOT EXECUTED
 801f2f0:	fb ff 89 0f 	calli 800172c <mount>                          <== NOT EXECUTED
      mount_point,                                                    
      "msdos",                                                        
      0,                                                              
      NULL                                                            
    );                                                                
    if (rv != 0) {                                                    
 801f2f4:	44 31 00 03 	be r1,r17,801f300 <rtems_bdpart_mount+0x168>   <== NOT EXECUTED
      rmdir( mount_point);                                            
 801f2f8:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801f2fc:	f8 00 12 8a 	calli 8023d24 <rmdir>                          <== NOT EXECUTED
  /* Markers */                                                       
  logical_disk_marker = logical_disk_name + disk_name_size;           
  mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
                                                                      
  /* Mount supported file systems for each partition */               
  for (i = 0; i < count; ++i) {                                       
 801f300:	56 8c ff e7 	bgu r20,r12,801f29c <rtems_bdpart_mount+0x104> <== NOT EXECUTED
  const rtems_bdpart_partition *pt __attribute__((unused)),           
  size_t count,                                                       
  const char *mount_base                                              
)                                                                     
{                                                                     
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
 801f304:	34 0c 00 00 	mvi r12,0                                      <== NOT EXECUTED
 801f308:	e0 00 00 04 	bi 801f318 <rtems_bdpart_mount+0x180>          <== NOT EXECUTED
  /* Mount supported file systems for each partition */               
  for (i = 0; i < count; ++i) {                                       
    /* Create logical disk name */                                    
    int rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
    if (rv >= RTEMS_BDPART_NUMBER_SIZE) {                             
      esc = RTEMS_INVALID_NAME;                                       
 801f30c:	34 0c 00 03 	mvi r12,3                                      <== NOT EXECUTED
 801f310:	e0 00 00 02 	bi 801f318 <rtems_bdpart_mount+0x180>          <== NOT EXECUTED
                                                                      
    /* Create mount point */                                          
    strncpy( mount_marker, logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE);
    rv = rtems_mkdir( mount_point, S_IRWXU | S_IRWXG | S_IRWXO);      
    if (rv != 0) {                                                    
      esc = RTEMS_IO_ERROR;                                           
 801f314:	34 0c 00 1b 	mvi r12,27                                     <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
cleanup:                                                              
                                                                      
  free( logical_disk_name);                                           
 801f318:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 801f31c:	fb ff 87 67 	calli 80010b8 <free>                           <== NOT EXECUTED
  free( mount_point);                                                 
 801f320:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801f324:	fb ff 87 65 	calli 80010b8 <free>                           <== NOT EXECUTED
                                                                      
  return esc;                                                         
}                                                                     
 801f328:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801f32c:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 801f330:	2b 8b 00 2c 	lw r11,(sp+44)                                 <== NOT EXECUTED
 801f334:	2b 8c 00 28 	lw r12,(sp+40)                                 <== NOT EXECUTED
 801f338:	2b 8d 00 24 	lw r13,(sp+36)                                 <== NOT EXECUTED
 801f33c:	2b 8e 00 20 	lw r14,(sp+32)                                 <== NOT EXECUTED
 801f340:	2b 8f 00 1c 	lw r15,(sp+28)                                 <== NOT EXECUTED
 801f344:	2b 90 00 18 	lw r16,(sp+24)                                 <== NOT EXECUTED
 801f348:	2b 91 00 14 	lw r17,(sp+20)                                 <== NOT EXECUTED
 801f34c:	2b 92 00 10 	lw r18,(sp+16)                                 <== NOT EXECUTED
 801f350:	2b 93 00 0c 	lw r19,(sp+12)                                 <== NOT EXECUTED
 801f354:	2b 94 00 08 	lw r20,(sp+8)                                  <== NOT EXECUTED
 801f358:	37 9c 00 2c 	addi sp,sp,44                                  <== NOT EXECUTED
 801f35c:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08001b28 <rtems_bdpart_new_record>: static rtems_status_code rtems_bdpart_new_record( rtems_disk_device *dd, rtems_blkdev_bnum index, rtems_bdbuf_buffer **block ) {
 8001b28:	37 9c ff ec 	addi sp,sp,-20                                 
 8001b2c:	5b 8b 00 10 	sw (sp+16),r11                                 
 8001b30:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8001b34:	5b 8d 00 08 	sw (sp+8),r13                                  
 8001b38:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001b3c:	b8 60 60 00 	mv r12,r3                                      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  /* Synchronize previous block if necessary */                       
  if (*block != NULL) {                                               
 8001b40:	28 63 00 00 	lw r3,(r3+0)                                   
static rtems_status_code rtems_bdpart_new_record(                     
  rtems_disk_device *dd,                                              
  rtems_blkdev_bnum index,                                            
  rtems_bdbuf_buffer **block                                          
)                                                                     
{                                                                     
 8001b44:	b8 20 68 00 	mv r13,r1                                      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  /* Synchronize previous block if necessary */                       
  if (*block != NULL) {                                               
 8001b48:	44 60 00 07 	be r3,r0,8001b64 <rtems_bdpart_new_record+0x3c>
    sc = rtems_bdbuf_sync( *block);                                   
 8001b4c:	b8 60 08 00 	mv r1,r3                                       
 8001b50:	5b 82 00 14 	sw (sp+20),r2                                  
 8001b54:	f8 00 2e 82 	calli 800d55c <rtems_bdbuf_sync>               
 8001b58:	b8 20 58 00 	mv r11,r1                                      
    if (sc != RTEMS_SUCCESSFUL) {                                     
 8001b5c:	2b 82 00 14 	lw r2,(sp+20)                                  
 8001b60:	5c 20 00 16 	bne r1,r0,8001bb8 <rtems_bdpart_new_record+0x90><== NEVER TAKEN
      return sc;                                                      
    }                                                                 
  }                                                                   
                                                                      
  /* Read the new record block (this accounts for disk block sizes > 512) */
  sc = rtems_bdbuf_read( dd, index, block);                           
 8001b64:	b9 a0 08 00 	mv r1,r13                                      
 8001b68:	b9 80 18 00 	mv r3,r12                                      
 8001b6c:	f8 00 2d a1 	calli 800d1f0 <rtems_bdbuf_read>               
 8001b70:	b8 20 58 00 	mv r11,r1                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
 8001b74:	5c 20 00 11 	bne r1,r0,8001bb8 <rtems_bdpart_new_record+0x90><== NEVER TAKEN
    return sc;                                                        
  }                                                                   
                                                                      
  /* just in case block did not get filled in */                      
  if ( *block == NULL ) {                                             
 8001b78:	29 81 00 00 	lw r1,(r12+0)                                  
 8001b7c:	44 2b 00 0e 	be r1,r11,8001bb4 <rtems_bdpart_new_record+0x8c><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
  }                                                                   
                                                                      
  /* Clear record */                                                  
  memset( (*block)->buffer, 0, RTEMS_BDPART_BLOCK_SIZE);              
 8001b80:	28 21 00 1c 	lw r1,(r1+28)                                  
 8001b84:	34 02 00 00 	mvi r2,0                                       
 8001b88:	34 03 02 00 	mvi r3,512                                     
 8001b8c:	f8 00 45 8c 	calli 80131bc <memset>                         
                                                                      
  /* Write signature */                                               
  (*block)->buffer [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_0] =            
 8001b90:	29 81 00 00 	lw r1,(r12+0)                                  
 8001b94:	34 02 00 55 	mvi r2,85                                      
 8001b98:	28 21 00 1c 	lw r1,(r1+28)                                  
 8001b9c:	30 22 01 fe 	sb (r1+510),r2                                 
    RTEMS_BDPART_MBR_SIGNATURE_0;                                     
  (*block)->buffer [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_1] =            
 8001ba0:	29 81 00 00 	lw r1,(r12+0)                                  
 8001ba4:	34 02 ff aa 	mvi r2,-86                                     
 8001ba8:	28 21 00 1c 	lw r1,(r1+28)                                  
 8001bac:	30 22 01 ff 	sb (r1+511),r2                                 
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 8001bb0:	e0 00 00 02 	bi 8001bb8 <rtems_bdpart_new_record+0x90>      
    return sc;                                                        
  }                                                                   
                                                                      
  /* just in case block did not get filled in */                      
  if ( *block == NULL ) {                                             
    return RTEMS_INVALID_ADDRESS;                                     
 8001bb4:	34 0b 00 09 	mvi r11,9                                      <== NOT EXECUTED
    RTEMS_BDPART_MBR_SIGNATURE_0;                                     
  (*block)->buffer [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_1] =            
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 8001bb8:	b9 60 08 00 	mv r1,r11                                      
 8001bbc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001bc0:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8001bc4:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8001bc8:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8001bcc:	37 9c 00 14 	addi sp,sp,20                                  
 8001bd0:	c3 a0 00 00 	ret                                            
                                                                      

08001568 <rtems_bdpart_read>: const char *disk_name, rtems_bdpart_format *format, rtems_bdpart_partition *pt, size_t *count ) {
 8001568:	37 9c ff bc 	addi sp,sp,-68                                 
 800156c:	5b 8b 00 2c 	sw (sp+44),r11                                 
 8001570:	5b 8c 00 28 	sw (sp+40),r12                                 
 8001574:	5b 8d 00 24 	sw (sp+36),r13                                 
 8001578:	5b 8e 00 20 	sw (sp+32),r14                                 
 800157c:	5b 8f 00 1c 	sw (sp+28),r15                                 
 8001580:	5b 90 00 18 	sw (sp+24),r16                                 
 8001584:	5b 91 00 14 	sw (sp+20),r17                                 
 8001588:	5b 92 00 10 	sw (sp+16),r18                                 
 800158c:	5b 93 00 0c 	sw (sp+12),r19                                 
 8001590:	5b 94 00 08 	sw (sp+8),r20                                  
 8001594:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001598:	b8 20 58 00 	mv r11,r1                                      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  rtems_bdbuf_buffer *block = NULL;                                   
  rtems_bdpart_partition *p = pt - 1;                                 
 800159c:	34 61 ff d0 	addi r1,r3,-48                                 
  size_t *count                                                       
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  rtems_bdbuf_buffer *block = NULL;                                   
 80015a0:	5b 80 00 44 	sw (sp+68),r0                                  
  rtems_bdpart_partition *p = pt - 1;                                 
 80015a4:	5b 81 00 40 	sw (sp+64),r1                                  
  const char *disk_name,                                              
  rtems_bdpart_format *format,                                        
  rtems_bdpart_partition *pt,                                         
  size_t *count                                                       
)                                                                     
{                                                                     
 80015a8:	b8 40 78 00 	mv r15,r2                                      
 80015ac:	b8 60 70 00 	mv r14,r3                                      
 80015b0:	b8 80 68 00 	mv r13,r4                                      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  rtems_bdbuf_buffer *block = NULL;                                   
  rtems_bdpart_partition *p = pt - 1;                                 
  const rtems_bdpart_partition *p_end = pt + (count != NULL ? *count : 0);
 80015b4:	34 10 00 00 	mvi r16,0                                      
 80015b8:	44 80 00 05 	be r4,r0,80015cc <rtems_bdpart_read+0x64>      <== NEVER TAKEN
 80015bc:	28 81 00 00 	lw r1,(r4+0)                                   
 80015c0:	34 02 00 30 	mvi r2,48                                      
 80015c4:	fb ff fc 7f 	calli 80007c0 <__mulsi3>                       
 80015c8:	b8 20 80 00 	mv r16,r1                                      
  rtems_blkdev_bnum ep_begin = 0; /* Extended partition begin */      
  rtems_blkdev_bnum ebr = 0; /* Extended boot record block index */   
  rtems_blkdev_bnum disk_end = 0;                                     
  size_t i = 0;                                                       
  const uint8_t *data = NULL;                                         
  int fd = -1;                                                        
 80015cc:	34 01 ff ff 	mvi r1,-1                                      
 80015d0:	5b 81 00 34 	sw (sp+52),r1                                  
  rtems_disk_device *dd = NULL;                                       
                                                                      
  /* Check parameter */                                               
  if (format == NULL || pt == NULL || count == NULL) {                
 80015d4:	65 c2 00 00 	cmpei r2,r14,0                                 
 80015d8:	65 e1 00 00 	cmpei r1,r15,0                                 
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  rtems_bdbuf_buffer *block = NULL;                                   
  rtems_bdpart_partition *p = pt - 1;                                 
  const rtems_bdpart_partition *p_end = pt + (count != NULL ? *count : 0);
  rtems_blkdev_bnum ep_begin = 0; /* Extended partition begin */      
 80015dc:	5b 80 00 3c 	sw (sp+60),r0                                  
  rtems_blkdev_bnum ebr = 0; /* Extended boot record block index */   
  rtems_blkdev_bnum disk_end = 0;                                     
 80015e0:	5b 80 00 38 	sw (sp+56),r0                                  
  size_t i = 0;                                                       
  const uint8_t *data = NULL;                                         
  int fd = -1;                                                        
  rtems_disk_device *dd = NULL;                                       
 80015e4:	5b 80 00 30 	sw (sp+48),r0                                  
                                                                      
  /* Check parameter */                                               
  if (format == NULL || pt == NULL || count == NULL) {                
 80015e8:	b8 41 10 00 	or r2,r2,r1                                    
    return RTEMS_INVALID_ADDRESS;                                     
 80015ec:	34 0c 00 09 	mvi r12,9                                      
  const uint8_t *data = NULL;                                         
  int fd = -1;                                                        
  rtems_disk_device *dd = NULL;                                       
                                                                      
  /* Check parameter */                                               
  if (format == NULL || pt == NULL || count == NULL) {                
 80015f0:	5c 40 00 77 	bne r2,r0,80017cc <rtems_bdpart_read+0x264>    <== NEVER TAKEN
 80015f4:	45 a2 00 76 	be r13,r2,80017cc <rtems_bdpart_read+0x264>    <== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
  }                                                                   
                                                                      
  /* Set count to a save value */                                     
  *count = 0;                                                         
 80015f8:	59 a0 00 00 	sw (r13+0),r0                                  
                                                                      
  /* Get disk data */                                                 
  sc = rtems_bdpart_get_disk_data( disk_name, &fd, &dd, &disk_end);   
 80015fc:	b9 60 08 00 	mv r1,r11                                      
 8001600:	37 82 00 34 	addi r2,sp,52                                  
 8001604:	37 83 00 30 	addi r3,sp,48                                  
 8001608:	37 84 00 38 	addi r4,sp,56                                  
 800160c:	fb ff ff a2 	calli 8001494 <rtems_bdpart_get_disk_data>     
 8001610:	b8 20 60 00 	mv r12,r1                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
 8001614:	5c 20 00 6e 	bne r1,r0,80017cc <rtems_bdpart_read+0x264>    <== NEVER TAKEN
    return sc;                                                        
  }                                                                   
                                                                      
  /* Read MBR */                                                      
  sc = rtems_bdpart_read_record( dd, 0, &block);                      
 8001618:	2b 81 00 30 	lw r1,(sp+48)                                  
 800161c:	34 02 00 00 	mvi r2,0                                       
 8001620:	37 83 00 44 	addi r3,sp,68                                  
 8001624:	fb ff fe ff 	calli 8001220 <rtems_bdpart_read_record>       
 8001628:	b8 20 88 00 	mv r17,r1                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
 800162c:	b8 20 58 00 	mv r11,r1                                      
 8001630:	5c 2c 00 60 	bne r1,r12,80017b0 <rtems_bdpart_read+0x248>   <== NEVER TAKEN
    esc = sc;                                                         
    goto cleanup;                                                     
  }                                                                   
                                                                      
  /* Read the first partition entry */                                
  data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;             
 8001634:	2b 81 00 44 	lw r1,(sp+68)                                  
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  rtems_bdbuf_buffer *block = NULL;                                   
  rtems_bdpart_partition *p = pt - 1;                                 
  const rtems_bdpart_partition *p_end = pt + (count != NULL ? *count : 0);
 8001638:	b5 d0 80 00 	add r16,r14,r16                                
    goto cleanup;                                                     
  }                                                                   
                                                                      
  /* Read the first partition entry */                                
  data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;             
  sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);  
 800163c:	37 93 00 40 	addi r19,sp,64                                 
    esc = sc;                                                         
    goto cleanup;                                                     
  }                                                                   
                                                                      
  /* Read the first partition entry */                                
  data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;             
 8001640:	28 34 00 1c 	lw r20,(r1+28)                                 
  sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);  
 8001644:	37 92 00 3c 	addi r18,sp,60                                 
 8001648:	ba 60 10 00 	mv r2,r19                                      
    esc = sc;                                                         
    goto cleanup;                                                     
  }                                                                   
                                                                      
  /* Read the first partition entry */                                
  data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;             
 800164c:	36 8c 01 be 	addi r12,r20,446                               
  sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);  
 8001650:	b9 80 08 00 	mv r1,r12                                      
 8001654:	ba 00 18 00 	mv r3,r16                                      
 8001658:	ba 40 20 00 	mv r4,r18                                      
 800165c:	fb ff ff 47 	calli 8001378 <rtems_bdpart_read_mbr_partition>
  if (sc != RTEMS_SUCCESSFUL) {                                       
 8001660:	b8 20 58 00 	mv r11,r1                                      
 8001664:	5c 31 00 53 	bne r1,r17,80017b0 <rtems_bdpart_read+0x248>   <== NEVER TAKEN
    esc = sc;                                                         
    goto cleanup;                                                     
  }                                                                   
                                                                      
  /* Determine if we have a MBR or GPT format */                      
  if (rtems_bdpart_mbr_partition_type( p->type) == RTEMS_BDPART_MBR_GPT) {
 8001668:	2b 81 00 40 	lw r1,(sp+64)                                  
    esc = RTEMS_NOT_IMPLEMENTED;                                      
 800166c:	34 0b 00 18 	mvi r11,24                                     
    esc = sc;                                                         
    goto cleanup;                                                     
  }                                                                   
                                                                      
  /* Determine if we have a MBR or GPT format */                      
  if (rtems_bdpart_mbr_partition_type( p->type) == RTEMS_BDPART_MBR_GPT) {
 8001670:	40 22 00 08 	lbu r2,(r1+8)                                  
 8001674:	34 01 00 ee 	mvi r1,238                                     
 8001678:	44 41 00 4e 	be r2,r1,80017b0 <rtems_bdpart_read+0x248>     <== NEVER TAKEN
  }                                                                   
                                                                      
  /* Set format */                                                    
  format->type = RTEMS_BDPART_FORMAT_MBR;                             
  format->mbr.disk_id = rtems_uint32_from_little_endian(              
    block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID                   
 800167c:	2b 81 00 44 	lw r1,(sp+68)                                  
    esc = RTEMS_NOT_IMPLEMENTED;                                      
    goto cleanup;                                                     
  }                                                                   
                                                                      
  /* Set format */                                                    
  format->type = RTEMS_BDPART_FORMAT_MBR;                             
 8001680:	59 e0 00 00 	sw (r15+0),r0                                  
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_read(                                  
 8001684:	36 94 01 ee 	addi r20,r20,494                               
    goto cleanup;                                                     
  }                                                                   
                                                                      
  /* Set format */                                                    
  format->type = RTEMS_BDPART_FORMAT_MBR;                             
  format->mbr.disk_id = rtems_uint32_from_little_endian(              
 8001688:	28 21 00 1c 	lw r1,(r1+28)                                  
                                                                      
  /* Iterate through the rest of the primary partition table */       
  for (i = 1; i < 4; ++i) {                                           
    data += RTEMS_BDPART_MBR_TABLE_ENTRY_SIZE;                        
                                                                      
    sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);
 800168c:	ba 60 58 00 	mv r11,r19                                     
    goto cleanup;                                                     
  }                                                                   
                                                                      
  /* Set format */                                                    
  format->type = RTEMS_BDPART_FORMAT_MBR;                             
  format->mbr.disk_id = rtems_uint32_from_little_endian(              
 8001690:	34 21 01 b8 	addi r1,r1,440                                 
 8001694:	fb ff fe cd 	calli 80011c8 <rtems_uint32_from_little_endian>
 8001698:	59 e1 00 04 	sw (r15+4),r1                                  
    block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID                   
  );                                                                  
  format->mbr.dos_compatibility = true;                               
 800169c:	34 01 00 01 	mvi r1,1                                       
 80016a0:	31 e1 00 08 	sb (r15+8),r1                                  
                                                                      
  /* Iterate through the rest of the primary partition table */       
  for (i = 1; i < 4; ++i) {                                           
    data += RTEMS_BDPART_MBR_TABLE_ENTRY_SIZE;                        
 80016a4:	35 8c 00 10 	addi r12,r12,16                                
                                                                      
    sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);
 80016a8:	b9 80 08 00 	mv r1,r12                                      
 80016ac:	b9 60 10 00 	mv r2,r11                                      
 80016b0:	ba 00 18 00 	mv r3,r16                                      
 80016b4:	ba 40 20 00 	mv r4,r18                                      
 80016b8:	fb ff ff 30 	calli 8001378 <rtems_bdpart_read_mbr_partition>
    if (sc != RTEMS_SUCCESSFUL) {                                     
 80016bc:	5c 20 00 38 	bne r1,r0,800179c <rtems_bdpart_read+0x234>    <== NEVER TAKEN
    block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID                   
  );                                                                  
  format->mbr.dos_compatibility = true;                               
                                                                      
  /* Iterate through the rest of the primary partition table */       
  for (i = 1; i < 4; ++i) {                                           
 80016c0:	5d 94 ff f9 	bne r12,r20,80016a4 <rtems_bdpart_read+0x13c>  
      goto cleanup;                                                   
    }                                                                 
  }                                                                   
                                                                      
  /* Iterate through the logical partitions within the extended partition */
  ebr = ep_begin;                                                     
 80016c4:	2b 8c 00 3c 	lw r12,(sp+60)                                 
      esc = sc;                                                       
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Read first partition entry */                                  
    sc = rtems_bdpart_read_mbr_partition(                             
 80016c8:	b9 60 90 00 	mv r18,r11                                     
{                                                                     
  rtems_blkdev_bnum begin =                                           
    rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
  uint8_t type = data [RTEMS_BDPART_MBR_OFFSET_TYPE];                 
                                                                      
  if (type == RTEMS_BDPART_MBR_EXTENDED) {                            
 80016cc:	34 11 00 05 	mvi r17,5                                      
    }                                                                 
  }                                                                   
                                                                      
  /* Iterate through the logical partitions within the extended partition */
  ebr = ep_begin;                                                     
  while (ebr != 0) {                                                  
 80016d0:	e0 00 00 26 	bi 8001768 <rtems_bdpart_read+0x200>           
    rtems_blkdev_bnum tmp = 0;                                        
                                                                      
    /* Read EBR */                                                    
    sc = rtems_bdpart_read_record( dd, ebr, &block);                  
 80016d4:	2b 81 00 30 	lw r1,(sp+48)                                  
 80016d8:	b9 80 10 00 	mv r2,r12                                      
 80016dc:	37 83 00 44 	addi r3,sp,68                                  
 80016e0:	fb ff fe d0 	calli 8001220 <rtems_bdpart_read_record>       
 80016e4:	b8 20 78 00 	mv r15,r1                                      
    if (sc != RTEMS_SUCCESSFUL) {                                     
 80016e8:	5c 20 00 2f 	bne r1,r0,80017a4 <rtems_bdpart_read+0x23c>    <== NEVER TAKEN
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Read first partition entry */                                  
    sc = rtems_bdpart_read_mbr_partition(                             
      block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0,                
 80016ec:	2b 81 00 44 	lw r1,(sp+68)                                  
      esc = sc;                                                       
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Read first partition entry */                                  
    sc = rtems_bdpart_read_mbr_partition(                             
 80016f0:	ba 40 10 00 	mv r2,r18                                      
 80016f4:	ba 00 18 00 	mv r3,r16                                      
 80016f8:	28 21 00 1c 	lw r1,(r1+28)                                  
 80016fc:	34 04 00 00 	mvi r4,0                                       
 8001700:	34 21 01 be 	addi r1,r1,446                                 
 8001704:	fb ff ff 1d 	calli 8001378 <rtems_bdpart_read_mbr_partition>
 8001708:	b8 20 58 00 	mv r11,r1                                      
      block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0,                
      &p,                                                             
      p_end,                                                          
      NULL                                                            
    );                                                                
    if (sc != RTEMS_SUCCESSFUL) {                                     
 800170c:	5c 2f 00 29 	bne r1,r15,80017b0 <rtems_bdpart_read+0x248>   <== NEVER TAKEN
      esc = sc;                                                       
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Adjust partition begin */                                      
    tmp = p->begin + ebr;                                             
 8001710:	2b 85 00 40 	lw r5,(sp+64)                                  
 8001714:	28 a2 00 00 	lw r2,(r5+0)                                   
 8001718:	b5 82 08 00 	add r1,r12,r2                                  
    if (tmp > p->begin) {                                             
 800171c:	50 41 00 24 	bgeu r2,r1,80017ac <rtems_bdpart_read+0x244>   <== NEVER TAKEN
      p->begin = tmp;                                                 
 8001720:	58 a1 00 00 	sw (r5+0),r1                                   
      esc = RTEMS_IO_ERROR;                                           
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Adjust partition end */                                        
    tmp = p->end + ebr;                                               
 8001724:	28 a1 00 04 	lw r1,(r5+4)                                   
 8001728:	b5 81 60 00 	add r12,r12,r1                                 
    if (tmp > p->end) {                                               
 800172c:	50 2c 00 20 	bgeu r1,r12,80017ac <rtems_bdpart_read+0x244>  <== NEVER TAKEN
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Read second partition entry for next EBR block */              
    ebr = rtems_bdpart_next_ebr(                                      
      block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_1                 
 8001730:	2b 81 00 44 	lw r1,(sp+68)                                  
    }                                                                 
                                                                      
    /* Adjust partition end */                                        
    tmp = p->end + ebr;                                               
    if (tmp > p->end) {                                               
      p->end = tmp;                                                   
 8001734:	58 ac 00 04 	sw (r5+4),r12                                  
      esc = RTEMS_IO_ERROR;                                           
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Read second partition entry for next EBR block */              
    ebr = rtems_bdpart_next_ebr(                                      
 8001738:	28 21 00 1c 	lw r1,(r1+28)                                  
 800173c:	34 2f 01 ce 	addi r15,r1,462                                
      == RTEMS_BDPART_MBR_SIGNATURE_1;                                
}                                                                     
                                                                      
static rtems_blkdev_bnum rtems_bdpart_next_ebr( const uint8_t *data)  
{                                                                     
  rtems_blkdev_bnum begin =                                           
 8001740:	34 21 01 d6 	addi r1,r1,470                                 
 8001744:	fb ff fe a1 	calli 80011c8 <rtems_uint32_from_little_endian>
 8001748:	b8 20 60 00 	mv r12,r1                                      
    rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
  uint8_t type = data [RTEMS_BDPART_MBR_OFFSET_TYPE];                 
                                                                      
  if (type == RTEMS_BDPART_MBR_EXTENDED) {                            
 800174c:	41 e1 00 04 	lbu r1,(r15+4)                                 
 8001750:	5c 31 00 07 	bne r1,r17,800176c <rtems_bdpart_read+0x204>   
                                                                      
    /* Read second partition entry for next EBR block */              
    ebr = rtems_bdpart_next_ebr(                                      
      block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_1                 
    );                                                                
    if (ebr != 0) {                                                   
 8001754:	45 8b 00 05 	be r12,r11,8001768 <rtems_bdpart_read+0x200>   <== NEVER TAKEN
      /* Adjust partition EBR block index */                          
      tmp = ebr + ep_begin;                                           
 8001758:	2b 81 00 3c 	lw r1,(sp+60)                                  
 800175c:	b5 81 08 00 	add r1,r12,r1                                  
      if (tmp > ebr) {                                                
 8001760:	51 81 00 13 	bgeu r12,r1,80017ac <rtems_bdpart_read+0x244>  <== NEVER TAKEN
 8001764:	b8 20 60 00 	mv r12,r1                                      
    }                                                                 
  }                                                                   
                                                                      
  /* Iterate through the logical partitions within the extended partition */
  ebr = ep_begin;                                                     
  while (ebr != 0) {                                                  
 8001768:	5d 80 ff db 	bne r12,r0,80016d4 <rtems_bdpart_read+0x16c>   <== ALWAYS TAKEN
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  /* Return partition count */                                        
  *count = (size_t) (p - pt + 1);                                     
 800176c:	2b 81 00 40 	lw r1,(sp+64)                                  
 8001770:	34 02 00 04 	mvi r2,4                                       
  rtems_bdpart_partition *pt,                                         
  size_t *count                                                       
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
 8001774:	34 0b 00 00 	mvi r11,0                                      
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  /* Return partition count */                                        
  *count = (size_t) (p - pt + 1);                                     
 8001778:	c8 2e 08 00 	sub r1,r1,r14                                  
 800177c:	f8 00 8a f6 	calli 8024354 <__ashrsi3>                      
 8001780:	78 03 08 02 	mvhi r3,0x802                                  
 8001784:	38 63 52 44 	ori r3,r3,0x5244                               
 8001788:	28 62 00 00 	lw r2,(r3+0)                                   
 800178c:	fb ff fc 0d 	calli 80007c0 <__mulsi3>                       
 8001790:	34 21 00 01 	addi r1,r1,1                                   
 8001794:	59 a1 00 00 	sw (r13+0),r1                                  
 8001798:	e0 00 00 06 	bi 80017b0 <rtems_bdpart_read+0x248>           
                                                                      
  /* Iterate through the rest of the primary partition table */       
  for (i = 1; i < 4; ++i) {                                           
    data += RTEMS_BDPART_MBR_TABLE_ENTRY_SIZE;                        
                                                                      
    sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);
 800179c:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
 80017a0:	e0 00 00 04 	bi 80017b0 <rtems_bdpart_read+0x248>           <== NOT EXECUTED
  ebr = ep_begin;                                                     
  while (ebr != 0) {                                                  
    rtems_blkdev_bnum tmp = 0;                                        
                                                                      
    /* Read EBR */                                                    
    sc = rtems_bdpart_read_record( dd, ebr, &block);                  
 80017a4:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
 80017a8:	e0 00 00 02 	bi 80017b0 <rtems_bdpart_read+0x248>           <== NOT EXECUTED
      /* Adjust partition EBR block index */                          
      tmp = ebr + ep_begin;                                           
      if (tmp > ebr) {                                                
        ebr = tmp;                                                    
      } else {                                                        
        esc = RTEMS_IO_ERROR;                                         
 80017ac:	34 0b 00 1b 	mvi r11,27                                     <== NOT EXECUTED
  /* Return partition count */                                        
  *count = (size_t) (p - pt + 1);                                     
                                                                      
cleanup:                                                              
                                                                      
  if (fd >= 0) {                                                      
 80017b0:	2b 81 00 34 	lw r1,(sp+52)                                  
 80017b4:	48 01 00 02 	bg r0,r1,80017bc <rtems_bdpart_read+0x254>     <== NEVER TAKEN
    close( fd);                                                       
 80017b8:	f8 00 09 cd 	calli 8003eec <close>                          
  }                                                                   
                                                                      
  if (block != NULL) {                                                
 80017bc:	2b 81 00 44 	lw r1,(sp+68)                                  
    rtems_bdbuf_release( block);                                      
  }                                                                   
                                                                      
  return esc;                                                         
 80017c0:	b9 60 60 00 	mv r12,r11                                     
                                                                      
  if (fd >= 0) {                                                      
    close( fd);                                                       
  }                                                                   
                                                                      
  if (block != NULL) {                                                
 80017c4:	44 20 00 02 	be r1,r0,80017cc <rtems_bdpart_read+0x264>     <== NEVER TAKEN
    rtems_bdbuf_release( block);                                      
 80017c8:	f8 00 2f 14 	calli 800d418 <rtems_bdbuf_release>            
  }                                                                   
                                                                      
  return esc;                                                         
}                                                                     
 80017cc:	b9 80 08 00 	mv r1,r12                                      
 80017d0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80017d4:	2b 8b 00 2c 	lw r11,(sp+44)                                 
 80017d8:	2b 8c 00 28 	lw r12,(sp+40)                                 
 80017dc:	2b 8d 00 24 	lw r13,(sp+36)                                 
 80017e0:	2b 8e 00 20 	lw r14,(sp+32)                                 
 80017e4:	2b 8f 00 1c 	lw r15,(sp+28)                                 
 80017e8:	2b 90 00 18 	lw r16,(sp+24)                                 
 80017ec:	2b 91 00 14 	lw r17,(sp+20)                                 
 80017f0:	2b 92 00 10 	lw r18,(sp+16)                                 
 80017f4:	2b 93 00 0c 	lw r19,(sp+12)                                 
 80017f8:	2b 94 00 08 	lw r20,(sp+8)                                  
 80017fc:	37 9c 00 44 	addi sp,sp,68                                  
 8001800:	c3 a0 00 00 	ret                                            
                                                                      

08001378 <rtems_bdpart_read_mbr_partition>: const uint8_t *data, rtems_bdpart_partition **p, const rtems_bdpart_partition *p_end, rtems_blkdev_bnum *ep_begin ) {
 8001378:	37 9c ff e4 	addi sp,sp,-28                                 
 800137c:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8001380:	5b 8c 00 18 	sw (sp+24),r12                                 
 8001384:	5b 8d 00 14 	sw (sp+20),r13                                 
 8001388:	5b 8e 00 10 	sw (sp+16),r14                                 
 800138c:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8001390:	5b 90 00 08 	sw (sp+8),r16                                  
 8001394:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001398:	b8 20 60 00 	mv r12,r1                                      
  rtems_blkdev_bnum begin =                                           
 800139c:	34 21 00 08 	addi r1,r1,8                                   
  const uint8_t *data,                                                
  rtems_bdpart_partition **p,                                         
  const rtems_bdpart_partition *p_end,                                
  rtems_blkdev_bnum *ep_begin                                         
)                                                                     
{                                                                     
 80013a0:	b8 40 58 00 	mv r11,r2                                      
 80013a4:	b8 60 78 00 	mv r15,r3                                      
 80013a8:	b8 80 80 00 	mv r16,r4                                      
  rtems_blkdev_bnum begin =                                           
 80013ac:	fb ff ff 87 	calli 80011c8 <rtems_uint32_from_little_endian>
 80013b0:	b8 20 68 00 	mv r13,r1                                      
    rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
  rtems_blkdev_bnum size =                                            
 80013b4:	35 81 00 0c 	addi r1,r12,12                                 
 80013b8:	fb ff ff 84 	calli 80011c8 <rtems_uint32_from_little_endian>
    rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_SIZE);
  rtems_blkdev_bnum end = begin + size;                               
  uint8_t type = data [RTEMS_BDPART_MBR_OFFSET_TYPE];                 
 80013bc:	41 8e 00 04 	lbu r14,(r12+4)                                
                                                                      
  if (type == RTEMS_BDPART_MBR_EMPTY) {                               
    return RTEMS_SUCCESSFUL;                                          
 80013c0:	34 05 00 00 	mvi r5,0                                       
  rtems_blkdev_bnum size =                                            
    rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_SIZE);
  rtems_blkdev_bnum end = begin + size;                               
  uint8_t type = data [RTEMS_BDPART_MBR_OFFSET_TYPE];                 
                                                                      
  if (type == RTEMS_BDPART_MBR_EMPTY) {                               
 80013c4:	45 c0 00 1d 	be r14,r0,8001438 <rtems_bdpart_read_mbr_partition+0xc0><== NEVER TAKEN
    return RTEMS_SUCCESSFUL;                                          
  } else if (*p == p_end) {                                           
 80013c8:	29 62 00 00 	lw r2,(r11+0)                                  
    return RTEMS_TOO_MANY;                                            
 80013cc:	34 05 00 05 	mvi r5,5                                       
  rtems_blkdev_bnum end = begin + size;                               
  uint8_t type = data [RTEMS_BDPART_MBR_OFFSET_TYPE];                 
                                                                      
  if (type == RTEMS_BDPART_MBR_EMPTY) {                               
    return RTEMS_SUCCESSFUL;                                          
  } else if (*p == p_end) {                                           
 80013d0:	44 4f 00 1a 	be r2,r15,8001438 <rtems_bdpart_read_mbr_partition+0xc0><== NEVER TAKEN
{                                                                     
  rtems_blkdev_bnum begin =                                           
    rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
  rtems_blkdev_bnum size =                                            
    rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_SIZE);
  rtems_blkdev_bnum end = begin + size;                               
 80013d4:	b4 2d 78 00 	add r15,r1,r13                                 
  if (type == RTEMS_BDPART_MBR_EMPTY) {                               
    return RTEMS_SUCCESSFUL;                                          
  } else if (*p == p_end) {                                           
    return RTEMS_TOO_MANY;                                            
  } else if (begin >= end) {                                          
    return RTEMS_IO_ERROR;                                            
 80013d8:	34 05 00 1b 	mvi r5,27                                      
                                                                      
  if (type == RTEMS_BDPART_MBR_EMPTY) {                               
    return RTEMS_SUCCESSFUL;                                          
  } else if (*p == p_end) {                                           
    return RTEMS_TOO_MANY;                                            
  } else if (begin >= end) {                                          
 80013dc:	51 af 00 17 	bgeu r13,r15,8001438 <rtems_bdpart_read_mbr_partition+0xc0><== NEVER TAKEN
    return RTEMS_IO_ERROR;                                            
  } else if (type == RTEMS_BDPART_MBR_EXTENDED) {                     
 80013e0:	34 01 00 05 	mvi r1,5                                       
 80013e4:	5d c1 00 05 	bne r14,r1,80013f8 <rtems_bdpart_read_mbr_partition+0x80>
    (*p)->end = end;                                                  
    rtems_bdpart_to_partition_type( type, (*p)->type);                
    (*p)->flags = data [RTEMS_BDPART_MBR_OFFSET_FLAGS];               
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 80013e8:	34 05 00 00 	mvi r5,0                                       
  } else if (*p == p_end) {                                           
    return RTEMS_TOO_MANY;                                            
  } else if (begin >= end) {                                          
    return RTEMS_IO_ERROR;                                            
  } else if (type == RTEMS_BDPART_MBR_EXTENDED) {                     
    if (ep_begin != NULL) {                                           
 80013ec:	46 00 00 13 	be r16,r0,8001438 <rtems_bdpart_read_mbr_partition+0xc0><== NEVER TAKEN
      *ep_begin = begin;                                              
 80013f0:	5a 0d 00 00 	sw (r16+0),r13                                 
 80013f4:	e0 00 00 11 	bi 8001438 <rtems_bdpart_read_mbr_partition+0xc0>
    }                                                                 
  } else {                                                            
    /* Increment partition index */                                   
    ++(*p);                                                           
 80013f8:	34 41 00 30 	addi r1,r2,48                                  
                                                                      
    /* Clear partition */                                             
    memset( *p, 0, sizeof( rtems_bdpart_partition));                  
 80013fc:	34 03 00 30 	mvi r3,48                                      
 8001400:	34 02 00 00 	mvi r2,0                                       
    if (ep_begin != NULL) {                                           
      *ep_begin = begin;                                              
    }                                                                 
  } else {                                                            
    /* Increment partition index */                                   
    ++(*p);                                                           
 8001404:	59 61 00 00 	sw (r11+0),r1                                  
                                                                      
    /* Clear partition */                                             
    memset( *p, 0, sizeof( rtems_bdpart_partition));                  
 8001408:	f8 00 47 6d 	calli 80131bc <memset>                         
                                                                      
    /* Set values */                                                  
    (*p)->begin = begin;                                              
 800140c:	29 62 00 00 	lw r2,(r11+0)                                  
    (*p)->end = end;                                                  
    rtems_bdpart_to_partition_type( type, (*p)->type);                
 8001410:	b9 c0 08 00 	mv r1,r14                                      
                                                                      
    /* Clear partition */                                             
    memset( *p, 0, sizeof( rtems_bdpart_partition));                  
                                                                      
    /* Set values */                                                  
    (*p)->begin = begin;                                              
 8001414:	58 4d 00 00 	sw (r2+0),r13                                  
    (*p)->end = end;                                                  
 8001418:	58 4f 00 04 	sw (r2+4),r15                                  
    rtems_bdpart_to_partition_type( type, (*p)->type);                
 800141c:	34 42 00 08 	addi r2,r2,8                                   
 8001420:	fb ff ff a3 	calli 80012ac <rtems_bdpart_to_partition_type> 
    (*p)->flags = data [RTEMS_BDPART_MBR_OFFSET_FLAGS];               
 8001424:	29 61 00 00 	lw r1,(r11+0)                                  
 8001428:	41 82 00 00 	lbu r2,(r12+0)                                 
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800142c:	34 05 00 00 	mvi r5,0                                       
                                                                      
    /* Set values */                                                  
    (*p)->begin = begin;                                              
    (*p)->end = end;                                                  
    rtems_bdpart_to_partition_type( type, (*p)->type);                
    (*p)->flags = data [RTEMS_BDPART_MBR_OFFSET_FLAGS];               
 8001430:	58 20 00 28 	sw (r1+40),r0                                  
 8001434:	58 22 00 2c 	sw (r1+44),r2                                  
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 8001438:	b8 a0 08 00 	mv r1,r5                                       
 800143c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001440:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8001444:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8001448:	2b 8d 00 14 	lw r13,(sp+20)                                 
 800144c:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8001450:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8001454:	2b 90 00 08 	lw r16,(sp+8)                                  
 8001458:	37 9c 00 1c 	addi sp,sp,28                                  
 800145c:	c3 a0 00 00 	ret                                            
                                                                      

08001220 <rtems_bdpart_read_record>: static rtems_status_code rtems_bdpart_read_record( rtems_disk_device *dd, rtems_blkdev_bnum index, rtems_bdbuf_buffer **block ) {
 8001220:	37 9c ff f0 	addi sp,sp,-16                                 
 8001224:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8001228:	5b 8c 00 08 	sw (sp+8),r12                                  
 800122c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001230:	b8 60 58 00 	mv r11,r3                                      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  /* Release previous block if necessary */                           
  if (*block != NULL) {                                               
 8001234:	28 63 00 00 	lw r3,(r3+0)                                   
static rtems_status_code rtems_bdpart_read_record(                    
  rtems_disk_device *dd,                                              
  rtems_blkdev_bnum index,                                            
  rtems_bdbuf_buffer **block                                          
)                                                                     
{                                                                     
 8001238:	b8 20 60 00 	mv r12,r1                                      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  /* Release previous block if necessary */                           
  if (*block != NULL) {                                               
 800123c:	44 60 00 06 	be r3,r0,8001254 <rtems_bdpart_read_record+0x34>
    sc = rtems_bdbuf_release( *block);                                
 8001240:	b8 60 08 00 	mv r1,r3                                       
 8001244:	5b 82 00 10 	sw (sp+16),r2                                  
 8001248:	f8 00 30 74 	calli 800d418 <rtems_bdbuf_release>            
    if (sc != RTEMS_SUCCESSFUL) {                                     
 800124c:	2b 82 00 10 	lw r2,(sp+16)                                  
 8001250:	5c 20 00 12 	bne r1,r0,8001298 <rtems_bdpart_read_record+0x78><== NEVER TAKEN
      return sc;                                                      
    }                                                                 
  }                                                                   
                                                                      
  /* Read the record block */                                         
  sc = rtems_bdbuf_read( dd, index, block);                           
 8001254:	b9 80 08 00 	mv r1,r12                                      
 8001258:	b9 60 18 00 	mv r3,r11                                      
 800125c:	f8 00 2f e5 	calli 800d1f0 <rtems_bdbuf_read>               
  if (sc != RTEMS_SUCCESSFUL) {                                       
 8001260:	5c 20 00 0e 	bne r1,r0,8001298 <rtems_bdpart_read_record+0x78><== NEVER TAKEN
    return sc;                                                        
  }                                                                   
                                                                      
  /* just in case block did not get filled in */                      
  if ( *block == NULL ) {                                             
 8001264:	29 62 00 00 	lw r2,(r11+0)                                  
 8001268:	44 41 00 0b 	be r2,r1,8001294 <rtems_bdpart_read_record+0x74><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
  }                                                                   
                                                                      
  /* Check MBR signature */                                           
  if (!rtems_bdpart_is_valid_record( (*block)->buffer)) {             
 800126c:	28 43 00 1c 	lw r3,(r2+28)                                  
                                                                      
static bool rtems_bdpart_is_valid_record( const uint8_t *data)        
{                                                                     
  return data [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_0]                   
      == RTEMS_BDPART_MBR_SIGNATURE_0                                 
    && data [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_1]                     
 8001270:	34 04 00 55 	mvi r4,85                                      
 8001274:	34 02 00 00 	mvi r2,0                                       
 8001278:	40 65 01 fe 	lbu r5,(r3+510)                                
 800127c:	5c a4 00 03 	bne r5,r4,8001288 <rtems_bdpart_read_record+0x68><== NEVER TAKEN
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
static rtems_status_code rtems_bdpart_read_record(                    
 8001280:	40 62 01 ff 	lbu r2,(r3+511)                                
 8001284:	64 42 00 aa 	cmpei r2,r2,170                                
  if ( *block == NULL ) {                                             
    return RTEMS_INVALID_ADDRESS;                                     
  }                                                                   
                                                                      
  /* Check MBR signature */                                           
  if (!rtems_bdpart_is_valid_record( (*block)->buffer)) {             
 8001288:	5c 40 00 04 	bne r2,r0,8001298 <rtems_bdpart_read_record+0x78><== ALWAYS TAKEN
    return RTEMS_IO_ERROR;                                            
 800128c:	34 01 00 1b 	mvi r1,27                                      <== NOT EXECUTED
 8001290:	e0 00 00 02 	bi 8001298 <rtems_bdpart_read_record+0x78>     <== NOT EXECUTED
    return sc;                                                        
  }                                                                   
                                                                      
  /* just in case block did not get filled in */                      
  if ( *block == NULL ) {                                             
    return RTEMS_INVALID_ADDRESS;                                     
 8001294:	34 01 00 09 	mvi r1,9                                       <== NOT EXECUTED
  if (!rtems_bdpart_is_valid_record( (*block)->buffer)) {             
    return RTEMS_IO_ERROR;                                            
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 8001298:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800129c:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80012a0:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80012a4:	37 9c 00 10 	addi sp,sp,16                                  
 80012a8:	c3 a0 00 00 	ret                                            
                                                                      

08001804 <rtems_bdpart_register>: rtems_status_code rtems_bdpart_register( const char *disk_name, const rtems_bdpart_partition *pt, size_t count ) {
 8001804:	37 9c ff c4 	addi sp,sp,-60                                 
 8001808:	5b 8b 00 30 	sw (sp+48),r11                                 
 800180c:	5b 8c 00 2c 	sw (sp+44),r12                                 
 8001810:	5b 8d 00 28 	sw (sp+40),r13                                 
 8001814:	5b 8e 00 24 	sw (sp+36),r14                                 
 8001818:	5b 8f 00 20 	sw (sp+32),r15                                 
 800181c:	5b 90 00 1c 	sw (sp+28),r16                                 
 8001820:	5b 91 00 18 	sw (sp+24),r17                                 
 8001824:	5b 92 00 14 	sw (sp+20),r18                                 
 8001828:	5b 93 00 10 	sw (sp+16),r19                                 
 800182c:	5b 94 00 0c 	sw (sp+12),r20                                 
 8001830:	5b 95 00 08 	sw (sp+8),r21                                  
 8001834:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001838:	b8 20 78 00 	mv r15,r1                                      
 800183c:	b8 40 58 00 	mv r11,r2                                      
 8001840:	b8 60 a8 00 	mv r21,r3                                      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
  rtems_blkdev_bnum disk_end = 0;                                     
 8001844:	5b 80 00 3c 	sw (sp+60),r0                                  
  dev_t disk = 0;                                                     
  dev_t logical_disk = 0;                                             
  char *logical_disk_name = NULL;                                     
  char *logical_disk_marker = NULL;                                   
  size_t disk_name_size = strlen( disk_name);                         
 8001848:	f8 00 48 c6 	calli 8013b60 <strlen>                         
 800184c:	b8 20 70 00 	mv r14,r1                                      
  size_t i = 0;                                                       
  int fd = -1;                                                        
 8001850:	34 01 ff ff 	mvi r1,-1                                      
 8001854:	5b 81 00 38 	sw (sp+56),r1                                  
  rtems_disk_device *dd = NULL;                                       
                                                                      
  /* Get disk data */                                                 
  sc = rtems_bdpart_get_disk_data( disk_name, &fd, &dd, &disk_end);   
 8001858:	37 82 00 38 	addi r2,sp,56                                  
 800185c:	b9 e0 08 00 	mv r1,r15                                      
 8001860:	37 83 00 34 	addi r3,sp,52                                  
 8001864:	37 84 00 3c 	addi r4,sp,60                                  
  char *logical_disk_name = NULL;                                     
  char *logical_disk_marker = NULL;                                   
  size_t disk_name_size = strlen( disk_name);                         
  size_t i = 0;                                                       
  int fd = -1;                                                        
  rtems_disk_device *dd = NULL;                                       
 8001868:	5b 80 00 34 	sw (sp+52),r0                                  
                                                                      
  /* Get disk data */                                                 
  sc = rtems_bdpart_get_disk_data( disk_name, &fd, &dd, &disk_end);   
 800186c:	fb ff ff 0a 	calli 8001494 <rtems_bdpart_get_disk_data>     
 8001870:	b8 20 60 00 	mv r12,r1                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
 8001874:	5c 20 00 30 	bne r1,r0,8001934 <rtems_bdpart_register+0x130><== NEVER TAKEN
                                                                      
static inline dev_t rtems_disk_get_device_identifier(                 
  const rtems_disk_device *dd                                         
)                                                                     
{                                                                     
  return dd->dev;                                                     
 8001878:	2b 81 00 34 	lw r1,(sp+52)                                  
 800187c:	28 32 00 04 	lw r18,(r1+4)                                  
 8001880:	28 31 00 00 	lw r17,(r1+0)                                  
    return sc;                                                        
  }                                                                   
  disk = rtems_disk_get_device_identifier( dd);                       
  close( fd);                                                         
 8001884:	2b 81 00 38 	lw r1,(sp+56)                                  
)                                                                     
{                                                                     
  union __rtems_dev_t temp;                                           
                                                                      
  temp.device = device;                                               
  return temp.__overlay.minor;                                        
 8001888:	ba 40 80 00 	mv r16,r18                                     
 800188c:	f8 00 09 98 	calli 8003eec <close>                          
                                                                      
  /* Get the disk device identifier */                                
  rtems_filesystem_split_dev_t( disk, major, minor);                  
                                                                      
  /* Create logical disk name */                                      
  logical_disk_name = malloc( disk_name_size + RTEMS_BDPART_NUMBER_SIZE);
 8001890:	35 c1 00 04 	addi r1,r14,4                                  
 8001894:	f8 00 0b ac 	calli 8004744 <malloc>                         
 8001898:	b8 20 68 00 	mv r13,r1                                      
  if (logical_disk_name == NULL) {                                    
 800189c:	44 2c 00 25 	be r1,r12,8001930 <rtems_bdpart_register+0x12c><== NEVER TAKEN
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
  strncpy( logical_disk_name, disk_name, disk_name_size);             
 80018a0:	b9 e0 10 00 	mv r2,r15                                      
 80018a4:	b9 c0 18 00 	mv r3,r14                                      
                                                                      
    /* Create a new device identifier */                              
    logical_disk = rtems_filesystem_make_dev_t( major, minor);        
                                                                      
    /* Set partition number for logical disk name */                  
    rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
 80018a8:	78 0f 08 02 	mvhi r15,0x802                                 
  logical_disk_name = malloc( disk_name_size + RTEMS_BDPART_NUMBER_SIZE);
  if (logical_disk_name == NULL) {                                    
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
  strncpy( logical_disk_name, disk_name, disk_name_size);             
  logical_disk_marker = logical_disk_name + disk_name_size;           
 80018ac:	b5 ae a0 00 	add r20,r13,r14                                
  /* Create logical disk name */                                      
  logical_disk_name = malloc( disk_name_size + RTEMS_BDPART_NUMBER_SIZE);
  if (logical_disk_name == NULL) {                                    
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
  strncpy( logical_disk_name, disk_name, disk_name_size);             
 80018b0:	f8 00 49 28 	calli 8013d50 <strncpy>                        
  logical_disk_marker = logical_disk_name + disk_name_size;           
                                                                      
  /* Create a logical disk for each partition */                      
  for (i = 0; i < count; ++i) {                                       
 80018b4:	34 0e 00 00 	mvi r14,0                                      
                                                                      
    /* Create a new device identifier */                              
    logical_disk = rtems_filesystem_make_dev_t( major, minor);        
                                                                      
    /* Set partition number for logical disk name */                  
    rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
 80018b8:	39 ef 52 58 	ori r15,r15,0x5258                             
    if (rv >= RTEMS_BDPART_NUMBER_SIZE) {                             
 80018bc:	34 13 00 03 	mvi r19,3                                      
  }                                                                   
  strncpy( logical_disk_name, disk_name, disk_name_size);             
  logical_disk_marker = logical_disk_name + disk_name_size;           
                                                                      
  /* Create a logical disk for each partition */                      
  for (i = 0; i < count; ++i) {                                       
 80018c0:	e0 00 00 15 	bi 8001914 <rtems_bdpart_register+0x110>       
                                                                      
    /* Create a new device identifier */                              
    logical_disk = rtems_filesystem_make_dev_t( major, minor);        
                                                                      
    /* Set partition number for logical disk name */                  
    rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
 80018c4:	35 ce 00 01 	addi r14,r14,1                                 
 80018c8:	ba 80 08 00 	mv r1,r20                                      
 80018cc:	34 02 00 04 	mvi r2,4                                       
 80018d0:	b9 e0 18 00 	mv r3,r15                                      
 80018d4:	b9 c0 20 00 	mv r4,r14                                      
  for (i = 0; i < count; ++i) {                                       
    const rtems_bdpart_partition *p = pt + i;                         
    int rv = 0;                                                       
                                                                      
    /* New minor number */                                            
    ++minor;                                                          
 80018d8:	36 10 00 01 	addi r16,r16,1                                 
                                                                      
    /* Create a new device identifier */                              
    logical_disk = rtems_filesystem_make_dev_t( major, minor);        
                                                                      
    /* Set partition number for logical disk name */                  
    rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
 80018dc:	f8 00 47 2c 	calli 801358c <snprintf>                       
    if (rv >= RTEMS_BDPART_NUMBER_SIZE) {                             
 80018e0:	48 33 00 10 	bg r1,r19,8001920 <rtems_bdpart_register+0x11c><== NEVER TAKEN
    /* Create logical disk */                                         
    sc = rtems_disk_create_log(                                       
      logical_disk,                                                   
      disk,                                                           
      p->begin,                                                       
      p->end - p->begin,                                              
 80018e4:	29 65 00 00 	lw r5,(r11+0)                                  
      esc = RTEMS_INVALID_NAME;                                       
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Create logical disk */                                         
    sc = rtems_disk_create_log(                                       
 80018e8:	29 66 00 04 	lw r6,(r11+4)                                  
 80018ec:	ba 20 08 00 	mv r1,r17                                      
 80018f0:	ba 00 10 00 	mv r2,r16                                      
 80018f4:	ba 20 18 00 	mv r3,r17                                      
 80018f8:	ba 40 20 00 	mv r4,r18                                      
 80018fc:	c8 c5 30 00 	sub r6,r6,r5                                   
 8001900:	b9 a0 38 00 	mv r7,r13                                      
 8001904:	f8 00 03 d7 	calli 8002860 <rtems_disk_create_log>          
 8001908:	b8 20 60 00 	mv r12,r1                                      
 800190c:	35 6b 00 30 	addi r11,r11,48                                
      disk,                                                           
      p->begin,                                                       
      p->end - p->begin,                                              
      logical_disk_name                                               
    );                                                                
    if (sc != RTEMS_SUCCESSFUL) {                                     
 8001910:	5c 20 00 05 	bne r1,r0,8001924 <rtems_bdpart_register+0x120><== NEVER TAKEN
  }                                                                   
  strncpy( logical_disk_name, disk_name, disk_name_size);             
  logical_disk_marker = logical_disk_name + disk_name_size;           
                                                                      
  /* Create a logical disk for each partition */                      
  for (i = 0; i < count; ++i) {                                       
 8001914:	56 ae ff ec 	bgu r21,r14,80018c4 <rtems_bdpart_register+0xc0>
  const rtems_bdpart_partition *pt,                                   
  size_t count                                                        
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
 8001918:	34 0c 00 00 	mvi r12,0                                      
 800191c:	e0 00 00 02 	bi 8001924 <rtems_bdpart_register+0x120>       
    logical_disk = rtems_filesystem_make_dev_t( major, minor);        
                                                                      
    /* Set partition number for logical disk name */                  
    rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
    if (rv >= RTEMS_BDPART_NUMBER_SIZE) {                             
      esc = RTEMS_INVALID_NAME;                                       
 8001920:	34 0c 00 03 	mvi r12,3                                      <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
cleanup:                                                              
                                                                      
  free( logical_disk_name);                                           
 8001924:	b9 a0 08 00 	mv r1,r13                                      
 8001928:	f8 00 09 9c 	calli 8003f98 <free>                           
                                                                      
  return esc;                                                         
 800192c:	e0 00 00 02 	bi 8001934 <rtems_bdpart_register+0x130>       
  rtems_filesystem_split_dev_t( disk, major, minor);                  
                                                                      
  /* Create logical disk name */                                      
  logical_disk_name = malloc( disk_name_size + RTEMS_BDPART_NUMBER_SIZE);
  if (logical_disk_name == NULL) {                                    
    return RTEMS_NO_MEMORY;                                           
 8001930:	34 0c 00 1a 	mvi r12,26                                     <== NOT EXECUTED
cleanup:                                                              
                                                                      
  free( logical_disk_name);                                           
                                                                      
  return esc;                                                         
}                                                                     
 8001934:	b9 80 08 00 	mv r1,r12                                      
 8001938:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800193c:	2b 8b 00 30 	lw r11,(sp+48)                                 
 8001940:	2b 8c 00 2c 	lw r12,(sp+44)                                 
 8001944:	2b 8d 00 28 	lw r13,(sp+40)                                 
 8001948:	2b 8e 00 24 	lw r14,(sp+36)                                 
 800194c:	2b 8f 00 20 	lw r15,(sp+32)                                 
 8001950:	2b 90 00 1c 	lw r16,(sp+28)                                 
 8001954:	2b 91 00 18 	lw r17,(sp+24)                                 
 8001958:	2b 92 00 14 	lw r18,(sp+20)                                 
 800195c:	2b 93 00 10 	lw r19,(sp+16)                                 
 8001960:	2b 94 00 0c 	lw r20,(sp+12)                                 
 8001964:	2b 95 00 08 	lw r21,(sp+8)                                  
 8001968:	37 9c 00 3c 	addi sp,sp,60                                  
 800196c:	c3 a0 00 00 	ret                                            
                                                                      

08001970 <rtems_bdpart_register_from_disk>: rtems_status_code rtems_bdpart_register_from_disk( const char *disk_name) {
 8001970:	37 9c fc dc 	addi sp,sp,-804                                
 8001974:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8001978:	5b 8c 00 08 	sw (sp+8),r12                                  
 800197c:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_bdpart_format format;                                         
  rtems_bdpart_partition pt [RTEMS_BDPART_PARTITION_NUMBER_HINT];     
  size_t count = RTEMS_BDPART_PARTITION_NUMBER_HINT;                  
 8001980:	34 02 00 10 	mvi r2,16                                      
                                                                      
  /* Read partitions */                                               
  sc = rtems_bdpart_read( disk_name, &format, pt, &count);            
 8001984:	37 8b 00 10 	addi r11,sp,16                                 
rtems_status_code rtems_bdpart_register_from_disk( const char *disk_name)
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_bdpart_format format;                                         
  rtems_bdpart_partition pt [RTEMS_BDPART_PARTITION_NUMBER_HINT];     
  size_t count = RTEMS_BDPART_PARTITION_NUMBER_HINT;                  
 8001988:	5b 82 03 24 	sw (sp+804),r2                                 
                                                                      
  /* Read partitions */                                               
  sc = rtems_bdpart_read( disk_name, &format, pt, &count);            
 800198c:	b9 60 18 00 	mv r3,r11                                      
 8001990:	37 82 03 10 	addi r2,sp,784                                 
 8001994:	37 84 03 24 	addi r4,sp,804                                 
                                                                      
  return esc;                                                         
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_register_from_disk( const char *disk_name)
{                                                                     
 8001998:	b8 20 60 00 	mv r12,r1                                      
  rtems_bdpart_format format;                                         
  rtems_bdpart_partition pt [RTEMS_BDPART_PARTITION_NUMBER_HINT];     
  size_t count = RTEMS_BDPART_PARTITION_NUMBER_HINT;                  
                                                                      
  /* Read partitions */                                               
  sc = rtems_bdpart_read( disk_name, &format, pt, &count);            
 800199c:	fb ff fe f3 	calli 8001568 <rtems_bdpart_read>              
  if (sc != RTEMS_SUCCESSFUL) {                                       
 80019a0:	5c 20 00 05 	bne r1,r0,80019b4 <rtems_bdpart_register_from_disk+0x44><== NEVER TAKEN
    return sc;                                                        
  }                                                                   
                                                                      
  /* Register partitions */                                           
  return rtems_bdpart_register( disk_name, pt, count);                
 80019a4:	2b 83 03 24 	lw r3,(sp+804)                                 
 80019a8:	b9 80 08 00 	mv r1,r12                                      
 80019ac:	b9 60 10 00 	mv r2,r11                                      
 80019b0:	fb ff ff 95 	calli 8001804 <rtems_bdpart_register>          
}                                                                     
 80019b4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80019b8:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80019bc:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80019c0:	37 9c 03 24 	addi sp,sp,804                                 
 80019c4:	c3 a0 00 00 	ret                                            
                                                                      

0801f360 <rtems_bdpart_unmount>: const char *disk_name, const rtems_bdpart_partition *pt __attribute__((unused)), size_t count, const char *mount_base ) {
 801f360:	37 9c ff dc 	addi sp,sp,-36                                 <== NOT EXECUTED
 801f364:	5b 8b 00 24 	sw (sp+36),r11                                 <== NOT EXECUTED
 801f368:	5b 8c 00 20 	sw (sp+32),r12                                 <== NOT EXECUTED
 801f36c:	5b 8d 00 1c 	sw (sp+28),r13                                 <== NOT EXECUTED
 801f370:	5b 8e 00 18 	sw (sp+24),r14                                 <== NOT EXECUTED
 801f374:	5b 8f 00 14 	sw (sp+20),r15                                 <== NOT EXECUTED
 801f378:	5b 90 00 10 	sw (sp+16),r16                                 <== NOT EXECUTED
 801f37c:	5b 91 00 0c 	sw (sp+12),r17                                 <== NOT EXECUTED
 801f380:	5b 92 00 08 	sw (sp+8),r18                                  <== NOT EXECUTED
 801f384:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  const char *disk_file_name = strrchr( disk_name, '/');              
 801f388:	34 02 00 2f 	mvi r2,47                                      <== NOT EXECUTED
  const char *disk_name,                                              
  const rtems_bdpart_partition *pt __attribute__((unused)),           
  size_t count,                                                       
  const char *mount_base                                              
)                                                                     
{                                                                     
 801f38c:	b8 80 88 00 	mv r17,r4                                      <== NOT EXECUTED
 801f390:	b8 60 90 00 	mv r18,r3                                      <== NOT EXECUTED
 801f394:	b8 20 78 00 	mv r15,r1                                      <== NOT EXECUTED
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  const char *disk_file_name = strrchr( disk_name, '/');              
 801f398:	f8 00 84 76 	calli 8040570 <strrchr>                        <== NOT EXECUTED
 801f39c:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
  char *mount_point = NULL;                                           
  char *mount_marker = NULL;                                          
  size_t disk_file_name_size = 0;                                     
  size_t disk_name_size = strlen( disk_name);                         
 801f3a0:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
 801f3a4:	f8 00 80 98 	calli 803f604 <strlen>                         <== NOT EXECUTED
 801f3a8:	b8 20 70 00 	mv r14,r1                                      <== NOT EXECUTED
  size_t mount_base_size = strlen( mount_base);                       
 801f3ac:	ba 20 08 00 	mv r1,r17                                      <== NOT EXECUTED
 801f3b0:	f8 00 80 95 	calli 803f604 <strlen>                         <== NOT EXECUTED
 801f3b4:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
  size_t i = 0;                                                       
                                                                      
  /* Get disk file name */                                            
  if (disk_file_name != NULL) {                                       
 801f3b8:	45 60 00 05 	be r11,r0,801f3cc <rtems_bdpart_unmount+0x6c>  <== NOT EXECUTED
    disk_file_name += 1;                                              
 801f3bc:	35 6f 00 01 	addi r15,r11,1                                 <== NOT EXECUTED
    disk_file_name_size = strlen( disk_file_name);                    
 801f3c0:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
 801f3c4:	f8 00 80 90 	calli 803f604 <strlen>                         <== NOT EXECUTED
 801f3c8:	b8 20 70 00 	mv r14,r1                                      <== NOT EXECUTED
    disk_file_name = disk_name;                                       
    disk_file_name_size = disk_name_size;                             
  }                                                                   
                                                                      
  /* Create mount point base */                                       
  mount_point = malloc( mount_base_size + 1 + disk_file_name_size + RTEMS_BDPART_NUMBER_SIZE);
 801f3cc:	b5 cd 80 00 	add r16,r14,r13                                <== NOT EXECUTED
 801f3d0:	36 01 00 05 	addi r1,r16,5                                  <== NOT EXECUTED
 801f3d4:	fb ff 88 35 	calli 80014a8 <malloc>                         <== NOT EXECUTED
 801f3d8:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
  if (mount_point == NULL) {                                          
    esc = RTEMS_NO_MEMORY;                                            
 801f3dc:	34 0c 00 1a 	mvi r12,26                                     <== NOT EXECUTED
    disk_file_name_size = disk_name_size;                             
  }                                                                   
                                                                      
  /* Create mount point base */                                       
  mount_point = malloc( mount_base_size + 1 + disk_file_name_size + RTEMS_BDPART_NUMBER_SIZE);
  if (mount_point == NULL) {                                          
 801f3e0:	44 20 00 27 	be r1,r0,801f47c <rtems_bdpart_unmount+0x11c>  <== NOT EXECUTED
    esc = RTEMS_NO_MEMORY;                                            
    goto cleanup;                                                     
  }                                                                   
  strncpy( mount_point, mount_base, mount_base_size);                 
 801f3e4:	b9 a0 18 00 	mv r3,r13                                      <== NOT EXECUTED
 801f3e8:	ba 20 10 00 	mv r2,r17                                      <== NOT EXECUTED
 801f3ec:	f8 00 81 29 	calli 803f890 <strncpy>                        <== NOT EXECUTED
  mount_point [mount_base_size] = '/';                                
 801f3f0:	b5 6d 08 00 	add r1,r11,r13                                 <== NOT EXECUTED
 801f3f4:	34 02 00 2f 	mvi r2,47                                      <== NOT EXECUTED
 801f3f8:	30 22 00 00 	sb (r1+0),r2                                   <== NOT EXECUTED
  strncpy( mount_point + mount_base_size + 1, disk_file_name, disk_file_name_size);
 801f3fc:	35 a1 00 01 	addi r1,r13,1                                  <== NOT EXECUTED
 801f400:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
 801f404:	b5 61 08 00 	add r1,r11,r1                                  <== NOT EXECUTED
 801f408:	b9 c0 18 00 	mv r3,r14                                      <== NOT EXECUTED
                                                                      
  /* Marker */                                                        
  mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
 801f40c:	36 10 00 01 	addi r16,r16,1                                 <== NOT EXECUTED
                                                                      
  /* Mount supported file systems for each partition */               
  for (i = 0; i < count; ++i) {                                       
    /* Create mount point */                                          
    int rv = snprintf( mount_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
 801f410:	78 0d 08 05 	mvhi r13,0x805                                 <== NOT EXECUTED
    esc = RTEMS_NO_MEMORY;                                            
    goto cleanup;                                                     
  }                                                                   
  strncpy( mount_point, mount_base, mount_base_size);                 
  mount_point [mount_base_size] = '/';                                
  strncpy( mount_point + mount_base_size + 1, disk_file_name, disk_file_name_size);
 801f414:	f8 00 81 1f 	calli 803f890 <strncpy>                        <== NOT EXECUTED
                                                                      
  /* Marker */                                                        
  mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
 801f418:	b5 70 80 00 	add r16,r11,r16                                <== NOT EXECUTED
                                                                      
  /* Mount supported file systems for each partition */               
  for (i = 0; i < count; ++i) {                                       
 801f41c:	34 0c 00 00 	mvi r12,0                                      <== NOT EXECUTED
    /* Create mount point */                                          
    int rv = snprintf( mount_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
 801f420:	39 ad f0 34 	ori r13,r13,0xf034                             <== NOT EXECUTED
    if (rv >= RTEMS_BDPART_NUMBER_SIZE) {                             
 801f424:	34 0f 00 03 	mvi r15,3                                      <== NOT EXECUTED
                                                                      
  /* Marker */                                                        
  mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
                                                                      
  /* Mount supported file systems for each partition */               
  for (i = 0; i < count; ++i) {                                       
 801f428:	e0 00 00 0f 	bi 801f464 <rtems_bdpart_unmount+0x104>        <== NOT EXECUTED
    /* Create mount point */                                          
    int rv = snprintf( mount_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
 801f42c:	35 8c 00 01 	addi r12,r12,1                                 <== NOT EXECUTED
 801f430:	ba 00 08 00 	mv r1,r16                                      <== NOT EXECUTED
 801f434:	34 02 00 04 	mvi r2,4                                       <== NOT EXECUTED
 801f438:	b9 a0 18 00 	mv r3,r13                                      <== NOT EXECUTED
 801f43c:	b9 80 20 00 	mv r4,r12                                      <== NOT EXECUTED
 801f440:	f8 00 7c d8 	calli 803e7a0 <snprintf>                       <== NOT EXECUTED
    if (rv >= RTEMS_BDPART_NUMBER_SIZE) {                             
 801f444:	48 2f 00 0b 	bg r1,r15,801f470 <rtems_bdpart_unmount+0x110> <== NOT EXECUTED
      esc = RTEMS_INVALID_NAME;                                       
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Unmount */                                                     
    rv = unmount( mount_point);                                       
 801f448:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801f44c:	f8 00 14 27 	calli 80244e8 <unmount>                        <== NOT EXECUTED
 801f450:	b8 20 70 00 	mv r14,r1                                      <== NOT EXECUTED
    if (rv == 0) {                                                    
 801f454:	5c 20 00 04 	bne r1,r0,801f464 <rtems_bdpart_unmount+0x104> <== NOT EXECUTED
      /* Remove mount point */                                        
      rv = rmdir( mount_point);                                       
 801f458:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801f45c:	f8 00 12 32 	calli 8023d24 <rmdir>                          <== NOT EXECUTED
      if (rv != 0) {                                                  
 801f460:	5c 2e 00 06 	bne r1,r14,801f478 <rtems_bdpart_unmount+0x118><== NOT EXECUTED
                                                                      
  /* Marker */                                                        
  mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
                                                                      
  /* Mount supported file systems for each partition */               
  for (i = 0; i < count; ++i) {                                       
 801f464:	56 4c ff f2 	bgu r18,r12,801f42c <rtems_bdpart_unmount+0xcc><== NOT EXECUTED
  const rtems_bdpart_partition *pt __attribute__((unused)),           
  size_t count,                                                       
  const char *mount_base                                              
)                                                                     
{                                                                     
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
 801f468:	34 0c 00 00 	mvi r12,0                                      <== NOT EXECUTED
 801f46c:	e0 00 00 04 	bi 801f47c <rtems_bdpart_unmount+0x11c>        <== NOT EXECUTED
  /* Mount supported file systems for each partition */               
  for (i = 0; i < count; ++i) {                                       
    /* Create mount point */                                          
    int rv = snprintf( mount_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
    if (rv >= RTEMS_BDPART_NUMBER_SIZE) {                             
      esc = RTEMS_INVALID_NAME;                                       
 801f470:	34 0c 00 03 	mvi r12,3                                      <== NOT EXECUTED
 801f474:	e0 00 00 02 	bi 801f47c <rtems_bdpart_unmount+0x11c>        <== NOT EXECUTED
    rv = unmount( mount_point);                                       
    if (rv == 0) {                                                    
      /* Remove mount point */                                        
      rv = rmdir( mount_point);                                       
      if (rv != 0) {                                                  
        esc = RTEMS_IO_ERROR;                                         
 801f478:	34 0c 00 1b 	mvi r12,27                                     <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
cleanup:                                                              
                                                                      
  free( mount_point);                                                 
 801f47c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801f480:	fb ff 87 0e 	calli 80010b8 <free>                           <== NOT EXECUTED
                                                                      
  return esc;                                                         
}                                                                     
 801f484:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801f488:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 801f48c:	2b 8b 00 24 	lw r11,(sp+36)                                 <== NOT EXECUTED
 801f490:	2b 8c 00 20 	lw r12,(sp+32)                                 <== NOT EXECUTED
 801f494:	2b 8d 00 1c 	lw r13,(sp+28)                                 <== NOT EXECUTED
 801f498:	2b 8e 00 18 	lw r14,(sp+24)                                 <== NOT EXECUTED
 801f49c:	2b 8f 00 14 	lw r15,(sp+20)                                 <== NOT EXECUTED
 801f4a0:	2b 90 00 10 	lw r16,(sp+16)                                 <== NOT EXECUTED
 801f4a4:	2b 91 00 0c 	lw r17,(sp+12)                                 <== NOT EXECUTED
 801f4a8:	2b 92 00 08 	lw r18,(sp+8)                                  <== NOT EXECUTED
 801f4ac:	37 9c 00 24 	addi sp,sp,36                                  <== NOT EXECUTED
 801f4b0:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

080019c8 <rtems_bdpart_unregister>: rtems_status_code rtems_bdpart_unregister( const char *disk_name, const rtems_bdpart_partition *pt __attribute__((unused)), size_t count ) {
 80019c8:	37 9c ff dc 	addi sp,sp,-36                                 
 80019cc:	5b 8b 00 18 	sw (sp+24),r11                                 
 80019d0:	5b 8c 00 14 	sw (sp+20),r12                                 
 80019d4:	5b 8d 00 10 	sw (sp+16),r13                                 
 80019d8:	5b 8e 00 0c 	sw (sp+12),r14                                 
 80019dc:	5b 8f 00 08 	sw (sp+8),r15                                  
 80019e0:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_device_minor_number minor = 0;                                
  rtems_blkdev_bnum disk_end = 0;                                     
  dev_t disk = 0;                                                     
  dev_t logical_disk = 0;                                             
  size_t i = 0;                                                       
  int fd = -1;                                                        
 80019e4:	34 02 ff ff 	mvi r2,-1                                      
 80019e8:	5b 82 00 20 	sw (sp+32),r2                                  
rtems_status_code rtems_bdpart_unregister(                            
  const char *disk_name,                                              
  const rtems_bdpart_partition *pt __attribute__((unused)),           
  size_t count                                                        
)                                                                     
{                                                                     
 80019ec:	b8 60 78 00 	mv r15,r3                                      
  size_t i = 0;                                                       
  int fd = -1;                                                        
  rtems_disk_device *dd = NULL;                                       
                                                                      
  /* Get disk data */                                                 
  sc = rtems_bdpart_get_disk_data( disk_name, &fd, &dd, &disk_end);   
 80019f0:	37 82 00 20 	addi r2,sp,32                                  
 80019f4:	37 83 00 1c 	addi r3,sp,28                                  
 80019f8:	37 84 00 24 	addi r4,sp,36                                  
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
  rtems_blkdev_bnum disk_end = 0;                                     
 80019fc:	5b 80 00 24 	sw (sp+36),r0                                  
  dev_t disk = 0;                                                     
  dev_t logical_disk = 0;                                             
  size_t i = 0;                                                       
  int fd = -1;                                                        
  rtems_disk_device *dd = NULL;                                       
 8001a00:	5b 80 00 1c 	sw (sp+28),r0                                  
                                                                      
  /* Get disk data */                                                 
  sc = rtems_bdpart_get_disk_data( disk_name, &fd, &dd, &disk_end);   
 8001a04:	fb ff fe a4 	calli 8001494 <rtems_bdpart_get_disk_data>     
 8001a08:	b8 20 58 00 	mv r11,r1                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
 8001a0c:	5c 20 00 11 	bne r1,r0,8001a50 <rtems_bdpart_unregister+0x88><== NEVER TAKEN
 8001a10:	2b 82 00 1c 	lw r2,(sp+28)                                  
    return sc;                                                        
  }                                                                   
  disk = rtems_disk_get_device_identifier( dd);                       
  close( fd);                                                         
 8001a14:	2b 81 00 20 	lw r1,(sp+32)                                  
                                                                      
  /* Get the disk device identifier */                                
  rtems_filesystem_split_dev_t( disk, major, minor);                  
                                                                      
  /* Create a logical disk for each partition */                      
  for (i = 0; i < count; ++i) {                                       
 8001a18:	34 0c 00 00 	mvi r12,0                                      
 8001a1c:	28 4e 00 00 	lw r14,(r2+0)                                  
 8001a20:	28 4d 00 04 	lw r13,(r2+4)                                  
  sc = rtems_bdpart_get_disk_data( disk_name, &fd, &dd, &disk_end);   
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
  disk = rtems_disk_get_device_identifier( dd);                       
  close( fd);                                                         
 8001a24:	f8 00 09 32 	calli 8003eec <close>                          
                                                                      
  /* Get the disk device identifier */                                
  rtems_filesystem_split_dev_t( disk, major, minor);                  
                                                                      
  /* Create a logical disk for each partition */                      
  for (i = 0; i < count; ++i) {                                       
 8001a28:	e0 00 00 07 	bi 8001a44 <rtems_bdpart_unregister+0x7c>      
    /* New minor number */                                            
    ++minor;                                                          
 8001a2c:	35 ad 00 01 	addi r13,r13,1                                 
                                                                      
    /* Get the device identifier */                                   
    logical_disk = rtems_filesystem_make_dev_t( major, minor);        
                                                                      
    /* Delete logical disk */                                         
    sc = rtems_disk_delete( logical_disk);                            
 8001a30:	b9 c0 08 00 	mv r1,r14                                      
 8001a34:	b9 a0 10 00 	mv r2,r13                                      
 8001a38:	f8 00 02 ff 	calli 8002634 <rtems_disk_delete>              
    if (sc != RTEMS_SUCCESSFUL) {                                     
 8001a3c:	5c 20 00 04 	bne r1,r0,8001a4c <rtems_bdpart_unregister+0x84><== NEVER TAKEN
                                                                      
  /* Get the disk device identifier */                                
  rtems_filesystem_split_dev_t( disk, major, minor);                  
                                                                      
  /* Create a logical disk for each partition */                      
  for (i = 0; i < count; ++i) {                                       
 8001a40:	35 8c 00 01 	addi r12,r12,1                                 
 8001a44:	55 ec ff fa 	bgu r15,r12,8001a2c <rtems_bdpart_unregister+0x64>
 8001a48:	e0 00 00 02 	bi 8001a50 <rtems_bdpart_unregister+0x88>      
                                                                      
    /* Get the device identifier */                                   
    logical_disk = rtems_filesystem_make_dev_t( major, minor);        
                                                                      
    /* Delete logical disk */                                         
    sc = rtems_disk_delete( logical_disk);                            
 8001a4c:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
      return sc;                                                      
    }                                                                 
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 8001a50:	b9 60 08 00 	mv r1,r11                                      
 8001a54:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001a58:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8001a5c:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8001a60:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8001a64:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8001a68:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8001a6c:	37 9c 00 24 	addi sp,sp,36                                  
 8001a70:	c3 a0 00 00 	ret                                            
                                                                      

08001bd4 <rtems_bdpart_write>: const char *disk_name, const rtems_bdpart_format *format, const rtems_bdpart_partition *pt, size_t count ) {
 8001bd4:	37 9c ff c0 	addi sp,sp,-64                                 
 8001bd8:	5b 8b 00 2c 	sw (sp+44),r11                                 
 8001bdc:	5b 8c 00 28 	sw (sp+40),r12                                 
 8001be0:	5b 8d 00 24 	sw (sp+36),r13                                 
 8001be4:	5b 8e 00 20 	sw (sp+32),r14                                 
 8001be8:	5b 8f 00 1c 	sw (sp+28),r15                                 
 8001bec:	5b 90 00 18 	sw (sp+24),r16                                 
 8001bf0:	5b 91 00 14 	sw (sp+20),r17                                 
 8001bf4:	5b 92 00 10 	sw (sp+16),r18                                 
 8001bf8:	5b 93 00 0c 	sw (sp+12),r19                                 
 8001bfc:	5b 94 00 08 	sw (sp+8),r20                                  
 8001c00:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  bool dos_compatibility = format != NULL                             
    && format->type == RTEMS_BDPART_FORMAT_MBR                        
    && format->mbr.dos_compatibility;                                 
 8001c04:	34 0c 00 00 	mvi r12,0                                      
  const char *disk_name,                                              
  const rtems_bdpart_format *format,                                  
  const rtems_bdpart_partition *pt,                                   
  size_t count                                                        
)                                                                     
{                                                                     
 8001c08:	b8 40 80 00 	mv r16,r2                                      
 8001c0c:	b8 60 90 00 	mv r18,r3                                      
 8001c10:	b8 80 78 00 	mv r15,r4                                      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  bool dos_compatibility = format != NULL                             
    && format->type == RTEMS_BDPART_FORMAT_MBR                        
    && format->mbr.dos_compatibility;                                 
 8001c14:	44 40 00 04 	be r2,r0,8001c24 <rtems_bdpart_write+0x50>     <== NEVER TAKEN
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  bool dos_compatibility = format != NULL                             
    && format->type == RTEMS_BDPART_FORMAT_MBR                        
 8001c18:	28 42 00 00 	lw r2,(r2+0)                                   
 8001c1c:	5c 40 00 02 	bne r2,r0,8001c24 <rtems_bdpart_write+0x50>    <== NEVER TAKEN
    && format->mbr.dos_compatibility;                                 
 8001c20:	42 0c 00 08 	lbu r12,(r16+8)                                
  size_t count                                                        
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  bool dos_compatibility = format != NULL                             
 8001c24:	21 8c 00 ff 	andi r12,r12,0xff                              
    && format->type == RTEMS_BDPART_FORMAT_MBR                        
    && format->mbr.dos_compatibility;                                 
  rtems_bdbuf_buffer *block = NULL;                                   
  rtems_blkdev_bnum disk_end = 0;                                     
  rtems_blkdev_bnum record_space =                                    
 8001c28:	65 8e 00 00 	cmpei r14,r12,0                                
 8001c2c:	34 02 ff c2 	mvi r2,-62                                     
 8001c30:	c8 0e 70 00 	sub r14,r0,r14                                 
 8001c34:	a1 c2 70 00 	and r14,r14,r2                                 
    dos_compatibility ? RTEMS_BDPART_MBR_CYLINDER_SIZE : 1;           
  size_t ppc = 0; /* Primary partition count */                       
  size_t i = 0;                                                       
  uint8_t *data = NULL;                                               
  int fd = -1;                                                        
 8001c38:	34 02 ff ff 	mvi r2,-1                                      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  bool dos_compatibility = format != NULL                             
    && format->type == RTEMS_BDPART_FORMAT_MBR                        
    && format->mbr.dos_compatibility;                                 
  rtems_bdbuf_buffer *block = NULL;                                   
 8001c3c:	5b 80 00 3c 	sw (sp+60),r0                                  
  rtems_blkdev_bnum disk_end = 0;                                     
 8001c40:	5b 80 00 38 	sw (sp+56),r0                                  
  rtems_blkdev_bnum record_space =                                    
    dos_compatibility ? RTEMS_BDPART_MBR_CYLINDER_SIZE : 1;           
  size_t ppc = 0; /* Primary partition count */                       
  size_t i = 0;                                                       
  uint8_t *data = NULL;                                               
  int fd = -1;                                                        
 8001c44:	5b 82 00 34 	sw (sp+52),r2                                  
  rtems_disk_device *dd = NULL;                                       
 8001c48:	5b 80 00 30 	sw (sp+48),r0                                  
  bool dos_compatibility = format != NULL                             
    && format->type == RTEMS_BDPART_FORMAT_MBR                        
    && format->mbr.dos_compatibility;                                 
  rtems_bdbuf_buffer *block = NULL;                                   
  rtems_blkdev_bnum disk_end = 0;                                     
  rtems_blkdev_bnum record_space =                                    
 8001c4c:	35 ce 00 3f 	addi r14,r14,63                                
  rtems_disk_device *dd = NULL;                                       
                                                                      
  /* Check if we have something to do */                              
  if (count == 0) {                                                   
    /* Nothing to do */                                               
    return RTEMS_SUCCESSFUL;                                          
 8001c50:	34 0b 00 00 	mvi r11,0                                      
  uint8_t *data = NULL;                                               
  int fd = -1;                                                        
  rtems_disk_device *dd = NULL;                                       
                                                                      
  /* Check if we have something to do */                              
  if (count == 0) {                                                   
 8001c54:	45 e0 00 a8 	be r15,r0,8001ef4 <rtems_bdpart_write+0x320>   <== NEVER TAKEN
    /* Nothing to do */                                               
    return RTEMS_SUCCESSFUL;                                          
  }                                                                   
                                                                      
  /* Check parameter */                                               
  if (format == NULL || pt == NULL) {                                 
 8001c58:	66 4d 00 00 	cmpei r13,r18,0                                
 8001c5c:	66 02 00 00 	cmpei r2,r16,0                                 
    return RTEMS_INVALID_ADDRESS;                                     
 8001c60:	34 0b 00 09 	mvi r11,9                                      
    /* Nothing to do */                                               
    return RTEMS_SUCCESSFUL;                                          
  }                                                                   
                                                                      
  /* Check parameter */                                               
  if (format == NULL || pt == NULL) {                                 
 8001c64:	b9 a2 68 00 	or r13,r13,r2                                  
 8001c68:	5d a0 00 a3 	bne r13,r0,8001ef4 <rtems_bdpart_write+0x320>  <== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
  }                                                                   
                                                                      
  /* Get disk data */                                                 
  sc = rtems_bdpart_get_disk_data( disk_name, &fd, &dd, &disk_end);   
 8001c6c:	37 82 00 34 	addi r2,sp,52                                  
 8001c70:	37 83 00 30 	addi r3,sp,48                                  
 8001c74:	37 84 00 38 	addi r4,sp,56                                  
 8001c78:	fb ff fe 07 	calli 8001494 <rtems_bdpart_get_disk_data>     
 8001c7c:	b8 20 58 00 	mv r11,r1                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
 8001c80:	5c 2d 00 9d 	bne r1,r13,8001ef4 <rtems_bdpart_write+0x320>  <== NEVER TAKEN
    return sc;                                                        
  }                                                                   
                                                                      
  /* Align end of disk on cylinder boundary if necessary */           
  if (dos_compatibility) {                                            
 8001c84:	45 81 00 07 	be r12,r1,8001ca0 <rtems_bdpart_write+0xcc>    <== NEVER TAKEN
    disk_end -= (disk_end % record_space);                            
 8001c88:	2b 8b 00 38 	lw r11,(sp+56)                                 
 8001c8c:	b9 c0 10 00 	mv r2,r14                                      
 8001c90:	b9 60 08 00 	mv r1,r11                                      
 8001c94:	f8 00 8a 67 	calli 8024630 <__umodsi3>                      
 8001c98:	c9 61 08 00 	sub r1,r11,r1                                  
 8001c9c:	5b 81 00 38 	sw (sp+56),r1                                  
  /* Check that we have a consistent partition table */               
  for (i = 0; i < count; ++i) {                                       
    const rtems_bdpart_partition *p = pt + i;                         
                                                                      
    /* Check that begin and end are proper within the disk */         
    if (p->begin >= disk_end || p->end > disk_end) {                  
 8001ca0:	2b 84 00 38 	lw r4,(sp+56)                                  
 8001ca4:	ba 40 88 00 	mv r17,r18                                     
  if (dos_compatibility) {                                            
    disk_end -= (disk_end % record_space);                            
  }                                                                   
                                                                      
  /* Check that we have a consistent partition table */               
  for (i = 0; i < count; ++i) {                                       
 8001ca8:	ba 40 08 00 	mv r1,r18                                      
 8001cac:	34 02 00 00 	mvi r2,0                                       
 8001cb0:	e0 00 00 0b 	bi 8001cdc <rtems_bdpart_write+0x108>          
    const rtems_bdpart_partition *p = pt + i;                         
                                                                      
    /* Check that begin and end are proper within the disk */         
    if (p->begin >= disk_end || p->end > disk_end) {                  
 8001cb4:	28 23 00 00 	lw r3,(r1+0)                                   
 8001cb8:	50 64 00 84 	bgeu r3,r4,8001ec8 <rtems_bdpart_write+0x2f4>  <== NEVER TAKEN
 8001cbc:	28 25 00 04 	lw r5,(r1+4)                                   
 8001cc0:	54 a4 00 82 	bgu r5,r4,8001ec8 <rtems_bdpart_write+0x2f4>   <== NEVER TAKEN
      esc = RTEMS_INVALID_NUMBER;                                     
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Check that begin and end are valid */                          
    if (p->begin >= p->end) {                                         
 8001cc4:	50 65 00 81 	bgeu r3,r5,8001ec8 <rtems_bdpart_write+0x2f4>  <== NEVER TAKEN
      esc = RTEMS_INVALID_NUMBER;                                     
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Check that partitions do not overlap */                        
    if (i > 0 && pt [i - 1].end > p->begin) {                         
 8001cc8:	44 40 00 03 	be r2,r0,8001cd4 <rtems_bdpart_write+0x100>    
 8001ccc:	28 25 ff d4 	lw r5,(r1+-44)                                 
 8001cd0:	54 a3 00 7e 	bgu r5,r3,8001ec8 <rtems_bdpart_write+0x2f4>   <== NEVER TAKEN
  if (dos_compatibility) {                                            
    disk_end -= (disk_end % record_space);                            
  }                                                                   
                                                                      
  /* Check that we have a consistent partition table */               
  for (i = 0; i < count; ++i) {                                       
 8001cd4:	34 42 00 01 	addi r2,r2,1                                   
 8001cd8:	34 21 00 30 	addi r1,r1,48                                  
 8001cdc:	55 e2 ff f6 	bgu r15,r2,8001cb4 <rtems_bdpart_write+0xe0>   
      goto cleanup;                                                   
    }                                                                 
  }                                                                   
                                                                      
  /* Check format */                                                  
  if (format->type != RTEMS_BDPART_FORMAT_MBR) {                      
 8001ce0:	2a 01 00 00 	lw r1,(r16+0)                                  
    esc = RTEMS_NOT_IMPLEMENTED;                                      
 8001ce4:	34 0b 00 18 	mvi r11,24                                     
      goto cleanup;                                                   
    }                                                                 
  }                                                                   
                                                                      
  /* Check format */                                                  
  if (format->type != RTEMS_BDPART_FORMAT_MBR) {                      
 8001ce8:	5c 20 00 7d 	bne r1,r0,8001edc <rtems_bdpart_write+0x308>   <== NEVER TAKEN
   * Set primary partition count.  If we have more than four partitions we need
   * an extended partition which will contain the partitions of number four and
   * above as logical partitions.  If we have four or less partitions we can
   * use the primary partition table.                                 
   */                                                                 
  ppc = count <= 4 ? count : 3;                                       
 8001cec:	34 01 00 04 	mvi r1,4                                       
 8001cf0:	b9 e0 68 00 	mv r13,r15                                     
 8001cf4:	50 2f 00 02 	bgeu r1,r15,8001cfc <rtems_bdpart_write+0x128> <== NEVER TAKEN
 8001cf8:	34 0d 00 03 	mvi r13,3                                      
                                                                      
  /*                                                                  
   * Check that the first primary partition starts at head one and sector one
   * under the virtual one head and 63 sectors geometry if necessary. 
   */                                                                 
  if (dos_compatibility && pt [0].begin != RTEMS_BDPART_MBR_CYLINDER_SIZE) {
 8001cfc:	5d 80 00 08 	bne r12,r0,8001d1c <rtems_bdpart_write+0x148>  <== ALWAYS TAKEN
   * The space for the EBR and maybe some space which is needed for DOS
   * compatibility resides between the partitions.  So there have to be gaps of
   * the appropriate size between the partitions.                     
   */                                                                 
  for (i = ppc; i < count; ++i) {                                     
    if ((pt [i].begin - pt [i - 1].end) < record_space) {             
 8001d00:	34 02 00 30 	mvi r2,48                                      
 8001d04:	b9 a0 08 00 	mv r1,r13                                      
 8001d08:	fb ff fa ae 	calli 80007c0 <__mulsi3>                       
 8001d0c:	b6 41 60 00 	add r12,r18,r1                                 
 8001d10:	b9 80 10 00 	mv r2,r12                                      
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_write(                                 
 8001d14:	b9 a0 08 00 	mv r1,r13                                      
 8001d18:	e0 00 00 0d 	bi 8001d4c <rtems_bdpart_write+0x178>          
                                                                      
  /*                                                                  
   * Check that the first primary partition starts at head one and sector one
   * under the virtual one head and 63 sectors geometry if necessary. 
   */                                                                 
  if (dos_compatibility && pt [0].begin != RTEMS_BDPART_MBR_CYLINDER_SIZE) {
 8001d1c:	2a 42 00 00 	lw r2,(r18+0)                                  
 8001d20:	34 01 00 3f 	mvi r1,63                                      
    esc = RTEMS_INVALID_NUMBER;                                       
 8001d24:	34 0b 00 0a 	mvi r11,10                                     
                                                                      
  /*                                                                  
   * Check that the first primary partition starts at head one and sector one
   * under the virtual one head and 63 sectors geometry if necessary. 
   */                                                                 
  if (dos_compatibility && pt [0].begin != RTEMS_BDPART_MBR_CYLINDER_SIZE) {
 8001d28:	5c 41 00 6d 	bne r2,r1,8001edc <rtems_bdpart_write+0x308>   <== NEVER TAKEN
 8001d2c:	e3 ff ff f5 	bi 8001d00 <rtems_bdpart_write+0x12c>          
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_write(                                 
 8001d30:	b8 40 18 00 	mv r3,r2                                       
   * The space for the EBR and maybe some space which is needed for DOS
   * compatibility resides between the partitions.  So there have to be gaps of
   * the appropriate size between the partitions.                     
   */                                                                 
  for (i = ppc; i < count; ++i) {                                     
    if ((pt [i].begin - pt [i - 1].end) < record_space) {             
 8001d34:	28 64 00 00 	lw r4,(r3+0)                                   
 8001d38:	28 63 ff d4 	lw r3,(r3+-44)                                 
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_write(                                 
 8001d3c:	34 42 00 30 	addi r2,r2,48                                  
   * The space for the EBR and maybe some space which is needed for DOS
   * compatibility resides between the partitions.  So there have to be gaps of
   * the appropriate size between the partitions.                     
   */                                                                 
  for (i = ppc; i < count; ++i) {                                     
    if ((pt [i].begin - pt [i - 1].end) < record_space) {             
 8001d40:	c8 83 18 00 	sub r3,r4,r3                                   
 8001d44:	55 c3 00 61 	bgu r14,r3,8001ec8 <rtems_bdpart_write+0x2f4>  <== NEVER TAKEN
   * Each logical partition is described via one EBR preceding the partition.
   * The space for the EBR and maybe some space which is needed for DOS
   * compatibility resides between the partitions.  So there have to be gaps of
   * the appropriate size between the partitions.                     
   */                                                                 
  for (i = ppc; i < count; ++i) {                                     
 8001d48:	34 21 00 01 	addi r1,r1,1                                   
 8001d4c:	55 e1 ff f9 	bgu r15,r1,8001d30 <rtems_bdpart_write+0x15c>  
 8001d50:	34 0b 00 00 	mvi r11,0                                      
    uint8_t type = 0;                                                 
                                                                      
    const rtems_bdpart_partition *p = pt + i;                         
                                                                      
    /* Check type */                                                  
    if (!rtems_bdpart_to_mbr_partition_type( p->type, &type)) {       
 8001d54:	37 94 00 43 	addi r20,sp,67                                 
      esc =  RTEMS_INVALID_ID;                                        
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Check flags */                                                 
    if (p->flags > 0xffU) {                                           
 8001d58:	34 13 00 ff 	mvi r19,255                                    
 8001d5c:	e0 00 00 0c 	bi 8001d8c <rtems_bdpart_write+0x1b8>          
    uint8_t type = 0;                                                 
                                                                      
    const rtems_bdpart_partition *p = pt + i;                         
                                                                      
    /* Check type */                                                  
    if (!rtems_bdpart_to_mbr_partition_type( p->type, &type)) {       
 8001d60:	36 41 00 08 	addi r1,r18,8                                  
 8001d64:	ba 80 10 00 	mv r2,r20                                      
    }                                                                 
  }                                                                   
                                                                      
  /* Check that we can convert the parition descriptions to the MBR format */
  for (i = 0; i < count; ++i) {                                       
    uint8_t type = 0;                                                 
 8001d68:	33 80 00 43 	sb (sp+67),r0                                  
                                                                      
    const rtems_bdpart_partition *p = pt + i;                         
                                                                      
    /* Check type */                                                  
    if (!rtems_bdpart_to_mbr_partition_type( p->type, &type)) {       
 8001d6c:	fb ff fd bd 	calli 8001460 <rtems_bdpart_to_mbr_partition_type>
 8001d70:	44 20 00 58 	be r1,r0,8001ed0 <rtems_bdpart_write+0x2fc>    <== NEVER TAKEN
      esc =  RTEMS_INVALID_ID;                                        
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Check flags */                                                 
    if (p->flags > 0xffU) {                                           
 8001d74:	2a 42 00 28 	lw r2,(r18+40)                                 
 8001d78:	2a 41 00 2c 	lw r1,(r18+44)                                 
 8001d7c:	36 52 00 30 	addi r18,r18,48                                
 8001d80:	5c 40 00 54 	bne r2,r0,8001ed0 <rtems_bdpart_write+0x2fc>   <== NEVER TAKEN
 8001d84:	54 33 00 53 	bgu r1,r19,8001ed0 <rtems_bdpart_write+0x2fc>  <== NEVER TAKEN
      goto cleanup;                                                   
    }                                                                 
  }                                                                   
                                                                      
  /* Check that we can convert the parition descriptions to the MBR format */
  for (i = 0; i < count; ++i) {                                       
 8001d88:	35 6b 00 01 	addi r11,r11,1                                 
 8001d8c:	55 eb ff f5 	bgu r15,r11,8001d60 <rtems_bdpart_write+0x18c> 
    /* Check ID */                                                    
    /* TODO */                                                        
  }                                                                   
                                                                      
  /* New MBR */                                                       
  sc = rtems_bdpart_new_record( dd, 0, &block);                       
 8001d90:	2b 81 00 30 	lw r1,(sp+48)                                  
 8001d94:	34 02 00 00 	mvi r2,0                                       
 8001d98:	37 83 00 3c 	addi r3,sp,60                                  
 8001d9c:	fb ff ff 63 	calli 8001b28 <rtems_bdpart_new_record>        
  if (sc != RTEMS_SUCCESSFUL) {                                       
 8001da0:	b8 20 58 00 	mv r11,r1                                      
 8001da4:	5c 20 00 4e 	bne r1,r0,8001edc <rtems_bdpart_write+0x308>   <== NEVER TAKEN
  }                                                                   
                                                                      
  /* Write disk ID */                                                 
  rtems_uint32_to_little_endian(                                      
    format->mbr.disk_id,                                              
    block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID                   
 8001da8:	2b 81 00 3c 	lw r1,(sp+60)                                  
    esc = sc;                                                         
    goto cleanup;                                                     
  }                                                                   
                                                                      
  /* Write disk ID */                                                 
  rtems_uint32_to_little_endian(                                      
 8001dac:	28 22 00 1c 	lw r2,(r1+28)                                  
 8001db0:	2a 01 00 04 	lw r1,(r16+4)                                  
 8001db4:	34 42 01 b8 	addi r2,r2,440                                 
 8001db8:	fb ff ff 2f 	calli 8001a74 <rtems_uint32_to_little_endian>  
    format->mbr.disk_id,                                              
    block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID                   
  );                                                                  
                                                                      
  /* Write primary partition table */                                 
  data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;             
 8001dbc:	2b 81 00 3c 	lw r1,(sp+60)                                  
 8001dc0:	28 32 00 1c 	lw r18,(r1+28)                                 
 8001dc4:	36 52 01 be 	addi r18,r18,446                               
 8001dc8:	ba 40 80 00 	mv r16,r18                                     
  for (i = 0; i < ppc; ++i) {                                         
 8001dcc:	e0 00 00 0b 	bi 8001df8 <rtems_bdpart_write+0x224>          
                                                                      
    /* Write partition entry */                                       
    rtems_bdpart_write_mbr_partition(                                 
      data,                                                           
      p->begin,                                                       
      p->end - p->begin,                                              
 8001dd0:	2a 22 00 00 	lw r2,(r17+0)                                  
  data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;             
  for (i = 0; i < ppc; ++i) {                                         
    const rtems_bdpart_partition *p = pt + i;                         
                                                                      
    /* Write partition entry */                                       
    rtems_bdpart_write_mbr_partition(                                 
 8001dd4:	2a 23 00 04 	lw r3,(r17+4)                                  
 8001dd8:	42 24 00 08 	lbu r4,(r17+8)                                 
 8001ddc:	42 25 00 2f 	lbu r5,(r17+47)                                
 8001de0:	ba 00 08 00 	mv r1,r16                                      
 8001de4:	c8 62 18 00 	sub r3,r3,r2                                   
 8001de8:	fb ff ff 37 	calli 8001ac4 <rtems_bdpart_write_mbr_partition>
      p->end - p->begin,                                              
      rtems_bdpart_mbr_partition_type( p->type),                      
      (uint8_t) p->flags                                              
    );                                                                
                                                                      
    data += RTEMS_BDPART_MBR_TABLE_ENTRY_SIZE;                        
 8001dec:	36 10 00 10 	addi r16,r16,16                                
    block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID                   
  );                                                                  
                                                                      
  /* Write primary partition table */                                 
  data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;             
  for (i = 0; i < ppc; ++i) {                                         
 8001df0:	35 6b 00 01 	addi r11,r11,1                                 
 8001df4:	36 31 00 30 	addi r17,r17,48                                
 8001df8:	55 ab ff f6 	bgu r13,r11,8001dd0 <rtems_bdpart_write+0x1fc> 
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_write(                                 
 8001dfc:	b9 a0 08 00 	mv r1,r13                                      
 8001e00:	34 02 00 04 	mvi r2,4                                       
 8001e04:	fb ff fa 48 	calli 8000724 <__ashlsi3>                      
    block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID                   
  );                                                                  
                                                                      
  /* Write primary partition table */                                 
  data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;             
  for (i = 0; i < ppc; ++i) {                                         
 8001e08:	b6 41 08 00 	add r1,r18,r1                                  
  const rtems_bdpart_partition *pt,                                   
  size_t count                                                        
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
 8001e0c:	34 0b 00 00 	mvi r11,0                                      
                                                                      
    data += RTEMS_BDPART_MBR_TABLE_ENTRY_SIZE;                        
  }                                                                   
                                                                      
  /* Write extended partition with logical partitions if necessary */ 
  if (ppc != count) {                                                 
 8001e10:	45 af 00 33 	be r13,r15,8001edc <rtems_bdpart_write+0x308>  <== NEVER TAKEN
    rtems_blkdev_bnum ebr = 0; /* Extended boot record block index */ 
                                                                      
    /* Begin of extended partition */                                 
    rtems_blkdev_bnum ep_begin = pt [ppc].begin - record_space;       
 8001e14:	29 91 00 00 	lw r17,(r12+0)                                 
                                                                      
    /* Write extended partition */                                    
    rtems_bdpart_write_mbr_partition(                                 
 8001e18:	2b 83 00 38 	lw r3,(sp+56)                                  
 8001e1c:	34 04 00 05 	mvi r4,5                                       
  /* Write extended partition with logical partitions if necessary */ 
  if (ppc != count) {                                                 
    rtems_blkdev_bnum ebr = 0; /* Extended boot record block index */ 
                                                                      
    /* Begin of extended partition */                                 
    rtems_blkdev_bnum ep_begin = pt [ppc].begin - record_space;       
 8001e20:	ca 2e 88 00 	sub r17,r17,r14                                
                                                                      
    /* Write extended partition */                                    
    rtems_bdpart_write_mbr_partition(                                 
 8001e24:	ba 20 10 00 	mv r2,r17                                      
 8001e28:	c8 71 18 00 	sub r3,r3,r17                                  
 8001e2c:	34 05 00 00 	mvi r5,0                                       
 8001e30:	fb ff ff 25 	calli 8001ac4 <rtems_bdpart_write_mbr_partition>
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_write(                                 
 8001e34:	35 8c 00 04 	addi r12,r12,4                                 
      RTEMS_BDPART_MBR_EXTENDED,                                      
      0                                                               
    );                                                                
                                                                      
    /* Write logical partitions */                                    
    for (i = ppc; i < count; ++i) {                                   
 8001e38:	b9 a0 80 00 	mv r16,r13                                     
        );                                                            
      }                                                               
                                                                      
      /* New EBR */                                                   
      ebr = p->begin - record_space;                                  
      sc = rtems_bdpart_new_record( dd, ebr, &block);                 
 8001e3c:	37 8b 00 3c 	addi r11,sp,60                                 
      RTEMS_BDPART_MBR_EXTENDED,                                      
      0                                                               
    );                                                                
                                                                      
    /* Write logical partitions */                                    
    for (i = ppc; i < count; ++i) {                                   
 8001e40:	e0 00 00 1f 	bi 8001ebc <rtems_bdpart_write+0x2e8>          
      const rtems_bdpart_partition *p = pt + i;                       
                                                                      
      /* Write second partition entry */                              
      if (i > ppc) {                                                  
 8001e44:	51 b0 00 0c 	bgeu r13,r16,8001e74 <rtems_bdpart_write+0x2a0>
        rtems_blkdev_bnum begin = p->begin - record_space;            
                                                                      
        rtems_bdpart_write_mbr_partition(                             
          block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_1,            
 8001e48:	2b 81 00 3c 	lw r1,(sp+60)                                  
    for (i = ppc; i < count; ++i) {                                   
      const rtems_bdpart_partition *p = pt + i;                       
                                                                      
      /* Write second partition entry */                              
      if (i > ppc) {                                                  
        rtems_blkdev_bnum begin = p->begin - record_space;            
 8001e4c:	29 84 ff fc 	lw r4,(r12+-4)                                 
                                                                      
        rtems_bdpart_write_mbr_partition(                             
 8001e50:	2b 83 00 38 	lw r3,(sp+56)                                  
 8001e54:	28 21 00 1c 	lw r1,(r1+28)                                  
    for (i = ppc; i < count; ++i) {                                   
      const rtems_bdpart_partition *p = pt + i;                       
                                                                      
      /* Write second partition entry */                              
      if (i > ppc) {                                                  
        rtems_blkdev_bnum begin = p->begin - record_space;            
 8001e58:	c8 8e 20 00 	sub r4,r4,r14                                  
                                                                      
        rtems_bdpart_write_mbr_partition(                             
 8001e5c:	c8 91 10 00 	sub r2,r4,r17                                  
 8001e60:	c8 64 18 00 	sub r3,r3,r4                                   
 8001e64:	34 21 01 ce 	addi r1,r1,462                                 
 8001e68:	34 04 00 05 	mvi r4,5                                       
 8001e6c:	34 05 00 00 	mvi r5,0                                       
 8001e70:	fb ff ff 15 	calli 8001ac4 <rtems_bdpart_write_mbr_partition>
          0                                                           
        );                                                            
      }                                                               
                                                                      
      /* New EBR */                                                   
      ebr = p->begin - record_space;                                  
 8001e74:	29 82 ff fc 	lw r2,(r12+-4)                                 
      sc = rtems_bdpart_new_record( dd, ebr, &block);                 
 8001e78:	2b 81 00 30 	lw r1,(sp+48)                                  
 8001e7c:	b9 60 18 00 	mv r3,r11                                      
 8001e80:	c8 4e 10 00 	sub r2,r2,r14                                  
 8001e84:	fb ff ff 29 	calli 8001b28 <rtems_bdpart_new_record>        
      if (sc != RTEMS_SUCCESSFUL) {                                   
 8001e88:	5c 20 00 14 	bne r1,r0,8001ed8 <rtems_bdpart_write+0x304>   <== NEVER TAKEN
        goto cleanup;                                                 
      }                                                               
                                                                      
      /* Write first partition entry */                               
      rtems_bdpart_write_mbr_partition(                               
        block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0,              
 8001e8c:	2b 81 00 3c 	lw r1,(sp+60)                                  
        esc = sc;                                                     
        goto cleanup;                                                 
      }                                                               
                                                                      
      /* Write first partition entry */                               
      rtems_bdpart_write_mbr_partition(                               
 8001e90:	29 84 00 00 	lw r4,(r12+0)                                  
 8001e94:	29 83 ff fc 	lw r3,(r12+-4)                                 
 8001e98:	28 21 00 1c 	lw r1,(r1+28)                                  
 8001e9c:	41 85 00 2b 	lbu r5,(r12+43)                                
 8001ea0:	c8 83 18 00 	sub r3,r4,r3                                   
 8001ea4:	41 84 00 04 	lbu r4,(r12+4)                                 
 8001ea8:	34 21 01 be 	addi r1,r1,446                                 
 8001eac:	b9 c0 10 00 	mv r2,r14                                      
 8001eb0:	fb ff ff 05 	calli 8001ac4 <rtems_bdpart_write_mbr_partition>
      RTEMS_BDPART_MBR_EXTENDED,                                      
      0                                                               
    );                                                                
                                                                      
    /* Write logical partitions */                                    
    for (i = ppc; i < count; ++i) {                                   
 8001eb4:	36 10 00 01 	addi r16,r16,1                                 
 8001eb8:	35 8c 00 30 	addi r12,r12,48                                
 8001ebc:	55 f0 ff e2 	bgu r15,r16,8001e44 <rtems_bdpart_write+0x270> 
  const rtems_bdpart_partition *pt,                                   
  size_t count                                                        
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
 8001ec0:	34 0b 00 00 	mvi r11,0                                      
 8001ec4:	e0 00 00 06 	bi 8001edc <rtems_bdpart_write+0x308>          
   * compatibility resides between the partitions.  So there have to be gaps of
   * the appropriate size between the partitions.                     
   */                                                                 
  for (i = ppc; i < count; ++i) {                                     
    if ((pt [i].begin - pt [i - 1].end) < record_space) {             
      esc = RTEMS_INVALID_NUMBER;                                     
 8001ec8:	34 0b 00 0a 	mvi r11,10                                     <== NOT EXECUTED
 8001ecc:	e0 00 00 04 	bi 8001edc <rtems_bdpart_write+0x308>          <== NOT EXECUTED
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Check flags */                                                 
    if (p->flags > 0xffU) {                                           
      esc = RTEMS_INVALID_ID;                                         
 8001ed0:	34 0b 00 04 	mvi r11,4                                      <== NOT EXECUTED
 8001ed4:	e0 00 00 02 	bi 8001edc <rtems_bdpart_write+0x308>          <== NOT EXECUTED
        );                                                            
      }                                                               
                                                                      
      /* New EBR */                                                   
      ebr = p->begin - record_space;                                  
      sc = rtems_bdpart_new_record( dd, ebr, &block);                 
 8001ed8:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
cleanup:                                                              
                                                                      
  if (fd >= 0) {                                                      
 8001edc:	2b 81 00 34 	lw r1,(sp+52)                                  
 8001ee0:	48 01 00 02 	bg r0,r1,8001ee8 <rtems_bdpart_write+0x314>    <== NEVER TAKEN
    close( fd);                                                       
 8001ee4:	f8 00 08 02 	calli 8003eec <close>                          
  }                                                                   
                                                                      
  if (block != NULL) {                                                
 8001ee8:	2b 81 00 3c 	lw r1,(sp+60)                                  
 8001eec:	44 20 00 02 	be r1,r0,8001ef4 <rtems_bdpart_write+0x320>    <== NEVER TAKEN
    rtems_bdbuf_sync( block);                                         
 8001ef0:	f8 00 2d 9b 	calli 800d55c <rtems_bdbuf_sync>               
  }                                                                   
                                                                      
  return esc;                                                         
}                                                                     
 8001ef4:	b9 60 08 00 	mv r1,r11                                      
 8001ef8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001efc:	2b 8b 00 2c 	lw r11,(sp+44)                                 
 8001f00:	2b 8c 00 28 	lw r12,(sp+40)                                 
 8001f04:	2b 8d 00 24 	lw r13,(sp+36)                                 
 8001f08:	2b 8e 00 20 	lw r14,(sp+32)                                 
 8001f0c:	2b 8f 00 1c 	lw r15,(sp+28)                                 
 8001f10:	2b 90 00 18 	lw r16,(sp+24)                                 
 8001f14:	2b 91 00 14 	lw r17,(sp+20)                                 
 8001f18:	2b 92 00 10 	lw r18,(sp+16)                                 
 8001f1c:	2b 93 00 0c 	lw r19,(sp+12)                                 
 8001f20:	2b 94 00 08 	lw r20,(sp+8)                                  
 8001f24:	37 9c 00 40 	addi sp,sp,64                                  
 8001f28:	c3 a0 00 00 	ret                                            
                                                                      

080019e4 <rtems_blkdev_create_partition>: const char *partition, const char *parent_block_device, rtems_blkdev_bnum media_block_begin, rtems_blkdev_bnum media_block_count ) {
 80019e4:	37 9c ff 94 	addi sp,sp,-108                                
 80019e8:	5b 8b 00 20 	sw (sp+32),r11                                 
 80019ec:	5b 8c 00 1c 	sw (sp+28),r12                                 
 80019f0:	5b 8d 00 18 	sw (sp+24),r13                                 
 80019f4:	5b 8e 00 14 	sw (sp+20),r14                                 
 80019f8:	5b 8f 00 10 	sw (sp+16),r15                                 
 80019fc:	5b 90 00 0c 	sw (sp+12),r16                                 
 8001a00:	5b 91 00 08 	sw (sp+8),r17                                  
 8001a04:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001a08:	b8 20 78 00 	mv r15,r1                                      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  int fd = open(parent_block_device, O_RDWR);                         
 8001a0c:	b8 40 08 00 	mv r1,r2                                       
 8001a10:	34 02 00 02 	mvi r2,2                                       
  const char *partition,                                              
  const char *parent_block_device,                                    
  rtems_blkdev_bnum media_block_begin,                                
  rtems_blkdev_bnum media_block_count                                 
)                                                                     
{                                                                     
 8001a14:	b8 60 88 00 	mv r17,r3                                      
 8001a18:	b8 80 80 00 	mv r16,r4                                      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  int fd = open(parent_block_device, O_RDWR);                         
 8001a1c:	f8 00 0a e4 	calli 80045ac <open>                           
 8001a20:	b8 20 68 00 	mv r13,r1                                      
                                                                      
    if (sc != RTEMS_SUCCESSFUL) {                                     
      close(fd);                                                      
    }                                                                 
  } else {                                                            
    sc = RTEMS_INVALID_ID;                                            
 8001a24:	34 0b 00 04 	mvi r11,4                                      
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  int fd = open(parent_block_device, O_RDWR);                         
                                                                      
  if (fd >= 0) {                                                      
 8001a28:	48 01 00 2e 	bg r0,r1,8001ae0 <rtems_blkdev_create_partition+0xfc>
    int rv;                                                           
    struct stat st;                                                   
                                                                      
    rv = fstat(fd, &st);                                              
 8001a2c:	37 82 00 24 	addi r2,sp,36                                  
 8001a30:	f8 00 06 e2 	calli 80035b8 <fstat>                          
        }                                                             
      } else {                                                        
        sc = RTEMS_NOT_IMPLEMENTED;                                   
      }                                                               
    } else {                                                          
      sc = RTEMS_INVALID_NODE;                                        
 8001a34:	34 0b 00 15 	mvi r11,21                                     
  if (fd >= 0) {                                                      
    int rv;                                                           
    struct stat st;                                                   
                                                                      
    rv = fstat(fd, &st);                                              
    if (rv == 0 && S_ISBLK(st.st_mode)) {                             
 8001a38:	5c 20 00 28 	bne r1,r0,8001ad8 <rtems_blkdev_create_partition+0xf4><== NEVER TAKEN
 8001a3c:	2b 82 00 30 	lw r2,(sp+48)                                  
 8001a40:	34 01 60 00 	mvi r1,24576                                   
 8001a44:	20 42 f0 00 	andi r2,r2,0xf000                              
 8001a48:	5c 41 00 24 	bne r2,r1,8001ad8 <rtems_blkdev_create_partition+0xf4>
static inline int rtems_disk_fd_get_disk_device(                      
  int fd,                                                             
  rtems_disk_device **dd_ptr                                          
)                                                                     
{                                                                     
  return ioctl(fd, RTEMS_BLKIO_GETDISKDEV, dd_ptr);                   
 8001a4c:	78 03 08 01 	mvhi r3,0x801                                  
 8001a50:	38 63 7c 20 	ori r3,r3,0x7c20                               
 8001a54:	28 62 00 00 	lw r2,(r3+0)                                   
 8001a58:	b9 a0 08 00 	mv r1,r13                                      
 8001a5c:	37 83 00 6c 	addi r3,sp,108                                 
 8001a60:	f8 00 07 41 	calli 8003764 <ioctl>                          
 8001a64:	b8 20 70 00 	mv r14,r1                                      
          }                                                           
        } else {                                                      
          sc = RTEMS_NO_MEMORY;                                       
        }                                                             
      } else {                                                        
        sc = RTEMS_NOT_IMPLEMENTED;                                   
 8001a68:	34 0b 00 18 	mvi r11,24                                     
    rv = fstat(fd, &st);                                              
    if (rv == 0 && S_ISBLK(st.st_mode)) {                             
      rtems_disk_device *phys_dd;                                     
                                                                      
      rv = rtems_disk_fd_get_disk_device(fd, &phys_dd);               
      if (rv == 0) {                                                  
 8001a6c:	5c 20 00 1b 	bne r1,r0,8001ad8 <rtems_blkdev_create_partition+0xf4><== NEVER TAKEN
        rtems_blkdev_imfs_context *ctx = malloc(sizeof(*ctx));        
 8001a70:	34 01 00 80 	mvi r1,128                                     
 8001a74:	f8 00 08 8e 	calli 8003cac <malloc>                         
 8001a78:	b8 20 60 00 	mv r12,r1                                      
                                                                      
        if (ctx != NULL) {                                            
 8001a7c:	44 2e 00 16 	be r1,r14,8001ad4 <rtems_blkdev_create_partition+0xf0><== NEVER TAKEN
          sc = rtems_disk_init_log(                                   
 8001a80:	2b 82 00 6c 	lw r2,(sp+108)                                 
 8001a84:	ba 20 18 00 	mv r3,r17                                      
 8001a88:	ba 00 20 00 	mv r4,r16                                      
 8001a8c:	f8 00 00 97 	calli 8001ce8 <rtems_disk_init_log>            
 8001a90:	b8 20 58 00 	mv r11,r1                                      
            phys_dd,                                                  
            media_block_begin,                                        
            media_block_count                                         
          );                                                          
                                                                      
          if (sc == RTEMS_SUCCESSFUL) {                               
 8001a94:	5c 20 00 0d 	bne r1,r0,8001ac8 <rtems_blkdev_create_partition+0xe4>
            ctx->fd = fd;                                             
                                                                      
            rv = IMFS_make_generic_node(                              
 8001a98:	78 03 08 01 	mvhi r3,0x801                                  
 8001a9c:	b9 e0 08 00 	mv r1,r15                                      
 8001aa0:	34 02 61 ff 	mvi r2,25087                                   
 8001aa4:	38 63 7d 90 	ori r3,r3,0x7d90                               
 8001aa8:	b9 80 20 00 	mv r4,r12                                      
            media_block_begin,                                        
            media_block_count                                         
          );                                                          
                                                                      
          if (sc == RTEMS_SUCCESSFUL) {                               
            ctx->fd = fd;                                             
 8001aac:	59 8d 00 78 	sw (r12+120),r13                               
                                                                      
            rv = IMFS_make_generic_node(                              
 8001ab0:	f8 00 04 92 	calli 8002cf8 <IMFS_make_generic_node>         
              S_IFBLK | S_IRWXU | S_IRWXG | S_IRWXO,                  
              &rtems_blkdev_imfs_control,                             
              ctx                                                     
            );                                                        
                                                                      
            if (rv != 0) {                                            
 8001ab4:	44 2b 00 0b 	be r1,r11,8001ae0 <rtems_blkdev_create_partition+0xfc><== ALWAYS TAKEN
              free(ctx);                                              
 8001ab8:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8001abc:	f8 00 06 91 	calli 8003500 <free>                           <== NOT EXECUTED
              sc = RTEMS_UNSATISFIED;                                 
 8001ac0:	34 0b 00 0d 	mvi r11,13                                     <== NOT EXECUTED
 8001ac4:	e0 00 00 05 	bi 8001ad8 <rtems_blkdev_create_partition+0xf4><== NOT EXECUTED
            }                                                         
          } else {                                                    
            free(ctx);                                                
 8001ac8:	b9 80 08 00 	mv r1,r12                                      
 8001acc:	f8 00 06 8d 	calli 8003500 <free>                           
 8001ad0:	e0 00 00 02 	bi 8001ad8 <rtems_blkdev_create_partition+0xf4>
          }                                                           
        } else {                                                      
          sc = RTEMS_NO_MEMORY;                                       
 8001ad4:	34 0b 00 1a 	mvi r11,26                                     <== NOT EXECUTED
    } else {                                                          
      sc = RTEMS_INVALID_NODE;                                        
    }                                                                 
                                                                      
    if (sc != RTEMS_SUCCESSFUL) {                                     
      close(fd);                                                      
 8001ad8:	b9 a0 08 00 	mv r1,r13                                      
 8001adc:	f8 00 06 5e 	calli 8003454 <close>                          
  } else {                                                            
    sc = RTEMS_INVALID_ID;                                            
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
 8001ae0:	b9 60 08 00 	mv r1,r11                                      
 8001ae4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001ae8:	2b 8b 00 20 	lw r11,(sp+32)                                 
 8001aec:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 8001af0:	2b 8d 00 18 	lw r13,(sp+24)                                 
 8001af4:	2b 8e 00 14 	lw r14,(sp+20)                                 
 8001af8:	2b 8f 00 10 	lw r15,(sp+16)                                 
 8001afc:	2b 90 00 0c 	lw r16,(sp+12)                                 
 8001b00:	2b 91 00 08 	lw r17,(sp+8)                                  
 8001b04:	37 9c 00 6c 	addi sp,sp,108                                 
 8001b08:	c3 a0 00 00 	ret                                            
                                                                      

0800c270 <rtems_blkdev_generic_ioctl>: rtems_device_driver rtems_blkdev_generic_ioctl( rtems_device_major_number major __attribute__((unused)), rtems_device_minor_number minor __attribute__((unused)), void * arg) {
 800c270:	37 9c ff f8 	addi sp,sp,-8                                  
 800c274:	5b 8b 00 08 	sw (sp+8),r11                                  
 800c278:	5b 9d 00 04 	sw (sp+4),ra                                   
    rtems_libio_ioctl_args_t *args = arg;                             
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
                                                                      
    if (args->command != RTEMS_BLKIO_REQUEST)                         
 800c27c:	78 04 08 01 	mvhi r4,0x801                                  
 800c280:	38 84 7a 44 	ori r4,r4,0x7a44                               
    rtems_device_minor_number minor __attribute__((unused)),          
    void                    * arg)                                    
{                                                                     
    rtems_libio_ioctl_args_t *args = arg;                             
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
 800c284:	28 61 00 00 	lw r1,(r3+0)                                   
rtems_device_driver                                                   
rtems_blkdev_generic_ioctl(                                           
    rtems_device_major_number major __attribute__((unused)),          
    rtems_device_minor_number minor __attribute__((unused)),          
    void                    * arg)                                    
{                                                                     
 800c288:	b8 60 58 00 	mv r11,r3                                      
    rtems_libio_ioctl_args_t *args = arg;                             
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
                                                                      
    if (args->command != RTEMS_BLKIO_REQUEST)                         
 800c28c:	28 62 00 04 	lw r2,(r3+4)                                   
 800c290:	28 83 00 00 	lw r3,(r4+0)                                   
    rtems_device_minor_number minor __attribute__((unused)),          
    void                    * arg)                                    
{                                                                     
    rtems_libio_ioctl_args_t *args = arg;                             
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
 800c294:	28 21 00 28 	lw r1,(r1+40)                                  
                                                                      
    if (args->command != RTEMS_BLKIO_REQUEST)                         
 800c298:	44 43 00 05 	be r2,r3,800c2ac <rtems_blkdev_generic_ioctl+0x3c><== NEVER TAKEN
    {                                                                 
        args->ioctl_return = dd->ioctl(dd,                            
 800c29c:	28 24 00 38 	lw r4,(r1+56)                                  
 800c2a0:	29 63 00 08 	lw r3,(r11+8)                                  
 800c2a4:	d8 80 00 00 	call r4                                        
 800c2a8:	e0 00 00 02 	bi 800c2b0 <rtems_blkdev_generic_ioctl+0x40>   
    {                                                                 
        /*                                                            
         * It is not allowed to directly access the driver circumventing the
         * cache.                                                     
         */                                                           
        args->ioctl_return = -1;                                      
 800c2ac:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 800c2b0:	59 61 00 0c 	sw (r11+12),r1                                 
    }                                                                 
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
 800c2b4:	34 01 00 00 	mvi r1,0                                       
 800c2b8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800c2bc:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800c2c0:	37 9c 00 08 	addi sp,sp,8                                   
 800c2c4:	c3 a0 00 00 	ret                                            
                                                                      

0800bff4 <rtems_blkdev_generic_read>: rtems_device_driver rtems_blkdev_generic_read( rtems_device_major_number major __attribute__((unused)), rtems_device_minor_number minor __attribute__((unused)), void * arg) {
 800bff4:	37 9c ff d8 	addi sp,sp,-40                                 
 800bff8:	5b 8b 00 24 	sw (sp+36),r11                                 
 800bffc:	5b 8c 00 20 	sw (sp+32),r12                                 
 800c000:	5b 8d 00 1c 	sw (sp+28),r13                                 
 800c004:	5b 8e 00 18 	sw (sp+24),r14                                 
 800c008:	5b 8f 00 14 	sw (sp+20),r15                                 
 800c00c:	5b 90 00 10 	sw (sp+16),r16                                 
 800c010:	5b 91 00 0c 	sw (sp+12),r17                                 
 800c014:	5b 92 00 08 	sw (sp+8),r18                                  
 800c018:	5b 9d 00 04 	sw (sp+4),ra                                   
    rtems_status_code rc = RTEMS_SUCCESSFUL;                          
    rtems_libio_rw_args_t *args = arg;                                
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
 800c01c:	28 61 00 00 	lw r1,(r3+0)                                   
    uint32_t block_size = dd->block_size;                             
    char *buf = args->buffer;                                         
    uint32_t count = args->count;                                     
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
 800c020:	28 6c 00 04 	lw r12,(r3+4)                                  
rtems_device_driver                                                   
rtems_blkdev_generic_read(                                            
    rtems_device_major_number major __attribute__((unused)),          
    rtems_device_minor_number minor __attribute__((unused)),          
    void                    * arg)                                    
{                                                                     
 800c024:	b8 60 58 00 	mv r11,r3                                      
    rtems_status_code rc = RTEMS_SUCCESSFUL;                          
    rtems_libio_rw_args_t *args = arg;                                
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
 800c028:	28 32 00 28 	lw r18,(r1+40)                                 
    uint32_t block_size = dd->block_size;                             
    char *buf = args->buffer;                                         
    uint32_t count = args->count;                                     
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
 800c02c:	b9 80 08 00 	mv r1,r12                                      
    rtems_status_code rc = RTEMS_SUCCESSFUL;                          
    rtems_libio_rw_args_t *args = arg;                                
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
    uint32_t block_size = dd->block_size;                             
    char *buf = args->buffer;                                         
 800c030:	28 71 00 08 	lw r17,(r3+8)                                  
{                                                                     
    rtems_status_code rc = RTEMS_SUCCESSFUL;                          
    rtems_libio_rw_args_t *args = arg;                                
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
    uint32_t block_size = dd->block_size;                             
 800c034:	2a 4f 00 24 	lw r15,(r18+36)                                
    char *buf = args->buffer;                                         
    uint32_t count = args->count;                                     
 800c038:	28 6d 00 0c 	lw r13,(r3+12)                                 
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
 800c03c:	b9 e0 10 00 	mv r2,r15                                      
 800c040:	f8 00 2a 88 	calli 8016a60 <__udivsi3>                      
 800c044:	b8 20 80 00 	mv r16,r1                                      
    uint32_t blkofs = (uint32_t) (args->offset % block_size);         
 800c048:	b9 e0 10 00 	mv r2,r15                                      
 800c04c:	b9 80 08 00 	mv r1,r12                                      
 800c050:	f8 00 2a 94 	calli 8016aa0 <__umodsi3>                      
 800c054:	b8 20 70 00 	mv r14,r1                                      
                                                                      
    args->bytes_moved = 0;                                            
 800c058:	59 60 00 14 	sw (r11+20),r0                                 
                                                                      
    while (count > 0)                                                 
 800c05c:	e0 00 00 19 	bi 800c0c0 <rtems_blkdev_generic_read+0xcc>    
    {                                                                 
        rtems_bdbuf_buffer *diskbuf;                                  
        uint32_t            copy;                                     
                                                                      
        rc = rtems_bdbuf_read(dd, block, &diskbuf);                   
 800c060:	ba 40 08 00 	mv r1,r18                                      
 800c064:	ba 00 10 00 	mv r2,r16                                      
 800c068:	37 83 00 28 	addi r3,sp,40                                  
 800c06c:	fb ff fd 54 	calli 800b5bc <rtems_bdbuf_read>               
        if (rc != RTEMS_SUCCESSFUL)                                   
 800c070:	5c 20 00 16 	bne r1,r0,800c0c8 <rtems_blkdev_generic_read+0xd4><== NEVER TAKEN
            break;                                                    
        copy = block_size - blkofs;                                   
 800c074:	c9 ee 60 00 	sub r12,r15,r14                                
 800c078:	51 ac 00 02 	bgeu r13,r12,800c080 <rtems_blkdev_generic_read+0x8c><== ALWAYS TAKEN
 800c07c:	b9 a0 60 00 	mv r12,r13                                     <== NOT EXECUTED
        if (copy > count)                                             
            copy = count;                                             
        memcpy(buf, (char *)diskbuf->buffer + blkofs, copy);          
 800c080:	2b 81 00 28 	lw r1,(sp+40)                                  
 800c084:	b9 80 18 00 	mv r3,r12                                      
 800c088:	28 22 00 1c 	lw r2,(r1+28)                                  
 800c08c:	ba 20 08 00 	mv r1,r17                                      
 800c090:	b4 4e 10 00 	add r2,r2,r14                                  
 800c094:	f8 00 15 54 	calli 80115e4 <memcpy>                         
        rc = rtems_bdbuf_release(diskbuf);                            
 800c098:	2b 81 00 28 	lw r1,(sp+40)                                  
 800c09c:	fb ff fd d2 	calli 800b7e4 <rtems_bdbuf_release>            
        args->bytes_moved += copy;                                    
 800c0a0:	29 62 00 14 	lw r2,(r11+20)                                 
 800c0a4:	b4 4c 10 00 	add r2,r2,r12                                  
 800c0a8:	59 62 00 14 	sw (r11+20),r2                                 
        if (rc != RTEMS_SUCCESSFUL)                                   
 800c0ac:	5c 20 00 07 	bne r1,r0,800c0c8 <rtems_blkdev_generic_read+0xd4><== NEVER TAKEN
            break;                                                    
        count -= copy;                                                
 800c0b0:	c9 ac 68 00 	sub r13,r13,r12                                
        buf += copy;                                                  
 800c0b4:	b6 2c 88 00 	add r17,r17,r12                                
        blkofs = 0;                                                   
        block++;                                                      
 800c0b8:	36 10 00 01 	addi r16,r16,1                                 
        args->bytes_moved += copy;                                    
        if (rc != RTEMS_SUCCESSFUL)                                   
            break;                                                    
        count -= copy;                                                
        buf += copy;                                                  
        blkofs = 0;                                                   
 800c0bc:	34 0e 00 00 	mvi r14,0                                      
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
    uint32_t blkofs = (uint32_t) (args->offset % block_size);         
                                                                      
    args->bytes_moved = 0;                                            
                                                                      
    while (count > 0)                                                 
 800c0c0:	5d a0 ff e8 	bne r13,r0,800c060 <rtems_blkdev_generic_read+0x6c>
 800c0c4:	34 01 00 00 	mvi r1,0                                       
        blkofs = 0;                                                   
        block++;                                                      
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
 800c0c8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800c0cc:	2b 8b 00 24 	lw r11,(sp+36)                                 
 800c0d0:	2b 8c 00 20 	lw r12,(sp+32)                                 
 800c0d4:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 800c0d8:	2b 8e 00 18 	lw r14,(sp+24)                                 
 800c0dc:	2b 8f 00 14 	lw r15,(sp+20)                                 
 800c0e0:	2b 90 00 10 	lw r16,(sp+16)                                 
 800c0e4:	2b 91 00 0c 	lw r17,(sp+12)                                 
 800c0e8:	2b 92 00 08 	lw r18,(sp+8)                                  
 800c0ec:	37 9c 00 28 	addi sp,sp,40                                  
 800c0f0:	c3 a0 00 00 	ret                                            
                                                                      

0800c0f4 <rtems_blkdev_generic_write>: rtems_device_driver rtems_blkdev_generic_write( rtems_device_major_number major __attribute__((unused)), rtems_device_minor_number minor __attribute__((unused)), void * arg) {
 800c0f4:	37 9c ff d8 	addi sp,sp,-40                                 
 800c0f8:	5b 8b 00 24 	sw (sp+36),r11                                 
 800c0fc:	5b 8c 00 20 	sw (sp+32),r12                                 
 800c100:	5b 8d 00 1c 	sw (sp+28),r13                                 
 800c104:	5b 8e 00 18 	sw (sp+24),r14                                 
 800c108:	5b 8f 00 14 	sw (sp+20),r15                                 
 800c10c:	5b 90 00 10 	sw (sp+16),r16                                 
 800c110:	5b 91 00 0c 	sw (sp+12),r17                                 
 800c114:	5b 92 00 08 	sw (sp+8),r18                                  
 800c118:	5b 9d 00 04 	sw (sp+4),ra                                   
    rtems_status_code rc = RTEMS_SUCCESSFUL;                          
    rtems_libio_rw_args_t *args = arg;                                
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
 800c11c:	28 61 00 00 	lw r1,(r3+0)                                   
    uint32_t block_size = dd->block_size;                             
    char *buf = args->buffer;                                         
    uint32_t count = args->count;                                     
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
 800c120:	28 6d 00 04 	lw r13,(r3+4)                                  
rtems_device_driver                                                   
rtems_blkdev_generic_write(                                           
    rtems_device_major_number major __attribute__((unused)),          
    rtems_device_minor_number minor __attribute__((unused)),          
    void                    * arg)                                    
{                                                                     
 800c124:	b8 60 58 00 	mv r11,r3                                      
    rtems_status_code rc = RTEMS_SUCCESSFUL;                          
    rtems_libio_rw_args_t *args = arg;                                
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
 800c128:	28 32 00 28 	lw r18,(r1+40)                                 
    uint32_t block_size = dd->block_size;                             
    char *buf = args->buffer;                                         
    uint32_t count = args->count;                                     
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
 800c12c:	b9 a0 08 00 	mv r1,r13                                      
    rtems_status_code rc = RTEMS_SUCCESSFUL;                          
    rtems_libio_rw_args_t *args = arg;                                
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
    uint32_t block_size = dd->block_size;                             
    char *buf = args->buffer;                                         
 800c130:	28 71 00 08 	lw r17,(r3+8)                                  
{                                                                     
    rtems_status_code rc = RTEMS_SUCCESSFUL;                          
    rtems_libio_rw_args_t *args = arg;                                
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
    uint32_t block_size = dd->block_size;                             
 800c134:	2a 4f 00 24 	lw r15,(r18+36)                                
    char *buf = args->buffer;                                         
    uint32_t count = args->count;                                     
 800c138:	28 6c 00 0c 	lw r12,(r3+12)                                 
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
 800c13c:	b9 e0 10 00 	mv r2,r15                                      
 800c140:	f8 00 2a 48 	calli 8016a60 <__udivsi3>                      
 800c144:	b8 20 80 00 	mv r16,r1                                      
    uint32_t blkofs = (uint32_t) (args->offset % block_size);         
 800c148:	b9 e0 10 00 	mv r2,r15                                      
 800c14c:	b9 a0 08 00 	mv r1,r13                                      
 800c150:	f8 00 2a 54 	calli 8016aa0 <__umodsi3>                      
 800c154:	b8 20 70 00 	mv r14,r1                                      
                                                                      
    args->bytes_moved = 0;                                            
 800c158:	59 60 00 14 	sw (r11+20),r0                                 
                                                                      
    while (count > 0)                                                 
 800c15c:	e0 00 00 22 	bi 800c1e4 <rtems_blkdev_generic_write+0xf0>   
    {                                                                 
        rtems_bdbuf_buffer *diskbuf;                                  
        uint32_t            copy;                                     
                                                                      
        if ((blkofs == 0) && (count >= block_size))                   
 800c160:	f1 8f 10 00 	cmpgeu r2,r12,r15                              
 800c164:	65 c1 00 00 	cmpei r1,r14,0                                 
 800c168:	a0 41 08 00 	and r1,r2,r1                                   
 800c16c:	44 20 00 06 	be r1,r0,800c184 <rtems_blkdev_generic_write+0x90><== NEVER TAKEN
            rc = rtems_bdbuf_get(dd, block, &diskbuf);                
 800c170:	ba 40 08 00 	mv r1,r18                                      
 800c174:	ba 00 10 00 	mv r2,r16                                      
 800c178:	37 83 00 28 	addi r3,sp,40                                  
 800c17c:	fb ff fc d1 	calli 800b4c0 <rtems_bdbuf_get>                
 800c180:	e0 00 00 05 	bi 800c194 <rtems_blkdev_generic_write+0xa0>   
        else                                                          
            rc = rtems_bdbuf_read(dd, block, &diskbuf);               
 800c184:	ba 40 08 00 	mv r1,r18                                      <== NOT EXECUTED
 800c188:	ba 00 10 00 	mv r2,r16                                      <== NOT EXECUTED
 800c18c:	37 83 00 28 	addi r3,sp,40                                  <== NOT EXECUTED
 800c190:	fb ff fd 0b 	calli 800b5bc <rtems_bdbuf_read>               <== NOT EXECUTED
        if (rc != RTEMS_SUCCESSFUL)                                   
 800c194:	5c 20 00 16 	bne r1,r0,800c1ec <rtems_blkdev_generic_write+0xf8><== NEVER TAKEN
            break;                                                    
                                                                      
        copy = block_size - blkofs;                                   
 800c198:	c9 ee 68 00 	sub r13,r15,r14                                
 800c19c:	51 8d 00 02 	bgeu r12,r13,800c1a4 <rtems_blkdev_generic_write+0xb0><== ALWAYS TAKEN
 800c1a0:	b9 80 68 00 	mv r13,r12                                     <== NOT EXECUTED
        if (copy > count)                                             
            copy = count;                                             
        memcpy((char *)diskbuf->buffer + blkofs, buf, copy);          
 800c1a4:	2b 81 00 28 	lw r1,(sp+40)                                  
 800c1a8:	ba 20 10 00 	mv r2,r17                                      
 800c1ac:	b9 a0 18 00 	mv r3,r13                                      
 800c1b0:	28 21 00 1c 	lw r1,(r1+28)                                  
 800c1b4:	b4 2e 08 00 	add r1,r1,r14                                  
 800c1b8:	f8 00 15 0b 	calli 80115e4 <memcpy>                         
        args->bytes_moved += copy;                                    
 800c1bc:	29 61 00 14 	lw r1,(r11+20)                                 
 800c1c0:	b4 2d 08 00 	add r1,r1,r13                                  
 800c1c4:	59 61 00 14 	sw (r11+20),r1                                 
                                                                      
        rc = rtems_bdbuf_release_modified(diskbuf);                   
 800c1c8:	2b 81 00 28 	lw r1,(sp+40)                                  
 800c1cc:	fb ff fd bb 	calli 800b8b8 <rtems_bdbuf_release_modified>   
        if (rc != RTEMS_SUCCESSFUL)                                   
 800c1d0:	5c 20 00 07 	bne r1,r0,800c1ec <rtems_blkdev_generic_write+0xf8><== NEVER TAKEN
            break;                                                    
                                                                      
        count -= copy;                                                
 800c1d4:	c9 8d 60 00 	sub r12,r12,r13                                
        buf += copy;                                                  
 800c1d8:	b6 2d 88 00 	add r17,r17,r13                                
        blkofs = 0;                                                   
        block++;                                                      
 800c1dc:	36 10 00 01 	addi r16,r16,1                                 
        if (rc != RTEMS_SUCCESSFUL)                                   
            break;                                                    
                                                                      
        count -= copy;                                                
        buf += copy;                                                  
        blkofs = 0;                                                   
 800c1e0:	34 0e 00 00 	mvi r14,0                                      
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
    uint32_t blkofs = (uint32_t) (args->offset % block_size);         
                                                                      
    args->bytes_moved = 0;                                            
                                                                      
    while (count > 0)                                                 
 800c1e4:	5d 80 ff df 	bne r12,r0,800c160 <rtems_blkdev_generic_write+0x6c>
 800c1e8:	34 01 00 00 	mvi r1,0                                       
        blkofs = 0;                                                   
        block++;                                                      
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
 800c1ec:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800c1f0:	2b 8b 00 24 	lw r11,(sp+36)                                 
 800c1f4:	2b 8c 00 20 	lw r12,(sp+32)                                 
 800c1f8:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 800c1fc:	2b 8e 00 18 	lw r14,(sp+24)                                 
 800c200:	2b 8f 00 14 	lw r15,(sp+20)                                 
 800c204:	2b 90 00 10 	lw r16,(sp+16)                                 
 800c208:	2b 91 00 0c 	lw r17,(sp+12)                                 
 800c20c:	2b 92 00 08 	lw r18,(sp+8)                                  
 800c210:	37 9c 00 28 	addi sp,sp,40                                  
 800c214:	c3 a0 00 00 	ret                                            
                                                                      

08001568 <rtems_blkdev_imfs_fsync_or_fdatasync>: } static int rtems_blkdev_imfs_fsync_or_fdatasync( rtems_libio_t *iop ) {
 8001568:	37 9c ff fc 	addi sp,sp,-4                                  
 800156c:	5b 9d 00 04 	sw (sp+4),ra                                   
  } else {                                                            
    sc = RTEMS_INVALID_ID;                                            
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
 8001570:	28 21 00 14 	lw r1,(r1+20)                                  
)                                                                     
{                                                                     
  int rv = 0;                                                         
  rtems_blkdev_imfs_context *ctx = IMFS_generic_get_context_by_iop(iop);
  rtems_disk_device *dd = &ctx->dd;                                   
  rtems_status_code sc = rtems_bdbuf_syncdev(dd);                     
 8001574:	28 21 00 50 	lw r1,(r1+80)                                  
 8001578:	f8 00 2c c5 	calli 800c88c <rtems_bdbuf_syncdev>            
                                                                      
static int rtems_blkdev_imfs_fsync_or_fdatasync(                      
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
  int rv = 0;                                                         
 800157c:	34 02 00 00 	mvi r2,0                                       
  rtems_blkdev_imfs_context *ctx = IMFS_generic_get_context_by_iop(iop);
  rtems_disk_device *dd = &ctx->dd;                                   
  rtems_status_code sc = rtems_bdbuf_syncdev(dd);                     
                                                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
 8001580:	44 20 00 05 	be r1,r0,8001594 <rtems_blkdev_imfs_fsync_or_fdatasync+0x2c><== ALWAYS TAKEN
    errno = EIO;                                                      
 8001584:	f8 00 3f 33 	calli 8011250 <__errno>                        <== NOT EXECUTED
 8001588:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 800158c:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
    rv = -1;                                                          
 8001590:	34 02 ff ff 	mvi r2,-1                                      <== NOT EXECUTED
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 8001594:	b8 40 08 00 	mv r1,r2                                       
 8001598:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800159c:	37 9c 00 04 	addi sp,sp,4                                   
 80015a0:	c3 a0 00 00 	ret                                            
                                                                      

080015a4 <rtems_blkdev_imfs_ioctl>: static int rtems_blkdev_imfs_ioctl( rtems_libio_t *iop, uint32_t request, void *buffer ) {
 80015a4:	37 9c ff fc 	addi sp,sp,-4                                  
 80015a8:	5b 9d 00 04 	sw (sp+4),ra                                   
  int rv = 0;                                                         
                                                                      
  if (request != RTEMS_BLKIO_REQUEST) {                               
 80015ac:	78 05 08 01 	mvhi r5,0x801                                  
 80015b0:	38 a5 7d 88 	ori r5,r5,0x7d88                               
 80015b4:	28 a4 00 00 	lw r4,(r5+0)                                   
 80015b8:	44 44 00 06 	be r2,r4,80015d0 <rtems_blkdev_imfs_ioctl+0x2c><== NEVER TAKEN
  } else {                                                            
    sc = RTEMS_INVALID_ID;                                            
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
 80015bc:	28 21 00 14 	lw r1,(r1+20)                                  
)                                                                     
{                                                                     
  int rv = 0;                                                         
                                                                      
  if (request != RTEMS_BLKIO_REQUEST) {                               
    rtems_blkdev_imfs_context *ctx = IMFS_generic_get_context_by_iop(iop);
 80015c0:	28 21 00 50 	lw r1,(r1+80)                                  
    rtems_disk_device *dd = &ctx->dd;                                 
                                                                      
    rv = (*dd->ioctl)(dd, request, buffer);                           
 80015c4:	28 24 00 38 	lw r4,(r1+56)                                  
 80015c8:	d8 80 00 00 	call r4                                        
 80015cc:	e0 00 00 05 	bi 80015e0 <rtems_blkdev_imfs_ioctl+0x3c>      
  } else {                                                            
    /*                                                                
     * It is not allowed to directly access the driver circumventing the cache.
     */                                                               
    errno = EINVAL;                                                   
 80015d0:	f8 00 3f 20 	calli 8011250 <__errno>                        <== NOT EXECUTED
 80015d4:	34 02 00 16 	mvi r2,22                                      <== NOT EXECUTED
 80015d8:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
    rv = -1;                                                          
 80015dc:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 80015e0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80015e4:	37 9c 00 04 	addi sp,sp,4                                   
 80015e8:	c3 a0 00 00 	ret                                            
                                                                      

08001770 <rtems_blkdev_imfs_read>: static ssize_t rtems_blkdev_imfs_read( rtems_libio_t *iop, void *buffer, size_t count ) {
 8001770:	37 9c ff d4 	addi sp,sp,-44                                 
 8001774:	5b 8b 00 28 	sw (sp+40),r11                                 
 8001778:	5b 8c 00 24 	sw (sp+36),r12                                 
 800177c:	5b 8d 00 20 	sw (sp+32),r13                                 
 8001780:	5b 8e 00 1c 	sw (sp+28),r14                                 
 8001784:	5b 8f 00 18 	sw (sp+24),r15                                 
 8001788:	5b 90 00 14 	sw (sp+20),r16                                 
 800178c:	5b 91 00 10 	sw (sp+16),r17                                 
 8001790:	5b 92 00 0c 	sw (sp+12),r18                                 
 8001794:	5b 93 00 08 	sw (sp+8),r19                                  
 8001798:	5b 9d 00 04 	sw (sp+4),ra                                   
 800179c:	b8 20 58 00 	mv r11,r1                                      
  } else {                                                            
    sc = RTEMS_INVALID_ID;                                            
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
 80017a0:	28 21 00 14 	lw r1,(r1+20)                                  
{                                                                     
  int rv;                                                             
  rtems_blkdev_imfs_context *ctx = IMFS_generic_get_context_by_iop(iop);
  rtems_disk_device *dd = &ctx->dd;                                   
  ssize_t remaining = (ssize_t) count;                                
  off_t offset = iop->offset;                                         
 80017a4:	29 6c 00 04 	lw r12,(r11+4)                                 
static ssize_t rtems_blkdev_imfs_read(                                
  rtems_libio_t *iop,                                                 
  void *buffer,                                                       
  size_t count                                                        
)                                                                     
{                                                                     
 80017a8:	b8 40 78 00 	mv r15,r2                                      
  int rv;                                                             
  rtems_blkdev_imfs_context *ctx = IMFS_generic_get_context_by_iop(iop);
 80017ac:	28 33 00 50 	lw r19,(r1+80)                                 
  rtems_disk_device *dd = &ctx->dd;                                   
  ssize_t remaining = (ssize_t) count;                                
  off_t offset = iop->offset;                                         
  ssize_t block_size = (ssize_t) rtems_disk_get_block_size(dd);       
  rtems_blkdev_bnum block = (rtems_blkdev_bnum) (offset / block_size);
 80017b0:	b9 80 08 00 	mv r1,r12                                      
static ssize_t rtems_blkdev_imfs_read(                                
  rtems_libio_t *iop,                                                 
  void *buffer,                                                       
  size_t count                                                        
)                                                                     
{                                                                     
 80017b4:	b8 60 70 00 	mv r14,r3                                      
  int rv;                                                             
  rtems_blkdev_imfs_context *ctx = IMFS_generic_get_context_by_iop(iop);
  rtems_disk_device *dd = &ctx->dd;                                   
  ssize_t remaining = (ssize_t) count;                                
  off_t offset = iop->offset;                                         
  ssize_t block_size = (ssize_t) rtems_disk_get_block_size(dd);       
 80017b8:	2a 71 00 24 	lw r17,(r19+36)                                
  rtems_blkdev_bnum block = (rtems_blkdev_bnum) (offset / block_size);
 80017bc:	ba 20 10 00 	mv r2,r17                                      
 80017c0:	f8 00 56 97 	calli 801721c <__divsi3>                       
 80017c4:	b8 20 90 00 	mv r18,r1                                      
  ssize_t block_offset = (ssize_t) (offset % block_size);             
 80017c8:	ba 20 10 00 	mv r2,r17                                      
 80017cc:	b9 80 08 00 	mv r1,r12                                      
 80017d0:	f8 00 56 c3 	calli 80172dc <__modsi3>                       
 80017d4:	b8 20 80 00 	mv r16,r1                                      
)                                                                     
{                                                                     
  int rv;                                                             
  rtems_blkdev_imfs_context *ctx = IMFS_generic_get_context_by_iop(iop);
  rtems_disk_device *dd = &ctx->dd;                                   
  ssize_t remaining = (ssize_t) count;                                
 80017d8:	b9 c0 60 00 	mv r12,r14                                     
  ssize_t block_size = (ssize_t) rtems_disk_get_block_size(dd);       
  rtems_blkdev_bnum block = (rtems_blkdev_bnum) (offset / block_size);
  ssize_t block_offset = (ssize_t) (offset % block_size);             
  char *dst = buffer;                                                 
                                                                      
  while (remaining > 0) {                                             
 80017dc:	e0 00 00 16 	bi 8001834 <rtems_blkdev_imfs_read+0xc4>       
    rtems_bdbuf_buffer *bd;                                           
    rtems_status_code sc = rtems_bdbuf_read(dd, block, &bd);          
 80017e0:	ba 60 08 00 	mv r1,r19                                      
 80017e4:	ba 40 10 00 	mv r2,r18                                      
 80017e8:	37 83 00 2c 	addi r3,sp,44                                  
 80017ec:	f8 00 2a f7 	calli 800c3c8 <rtems_bdbuf_read>               
                                                                      
    if (sc == RTEMS_SUCCESSFUL) {                                     
 80017f0:	5c 20 00 18 	bne r1,r0,8001850 <rtems_blkdev_imfs_read+0xe0><== NEVER TAKEN
      ssize_t copy = block_size - block_offset;                       
 80017f4:	ca 30 68 00 	sub r13,r17,r16                                
 80017f8:	4d 8d 00 02 	bge r12,r13,8001800 <rtems_blkdev_imfs_read+0x90>
 80017fc:	b9 80 68 00 	mv r13,r12                                     
                                                                      
      if (copy > remaining) {                                         
        copy = remaining;                                             
      }                                                               
                                                                      
      memcpy(dst, (char *) bd->buffer + block_offset, (size_t) copy); 
 8001800:	2b 81 00 2c 	lw r1,(sp+44)                                  
 8001804:	b9 a0 18 00 	mv r3,r13                                      
 8001808:	28 22 00 1c 	lw r2,(r1+28)                                  
 800180c:	b9 e0 08 00 	mv r1,r15                                      
 8001810:	b4 50 10 00 	add r2,r2,r16                                  
 8001814:	f8 00 41 88 	calli 8011e34 <memcpy>                         
                                                                      
      sc = rtems_bdbuf_release(bd);                                   
 8001818:	2b 81 00 2c 	lw r1,(sp+44)                                  
 800181c:	f8 00 2b 75 	calli 800c5f0 <rtems_bdbuf_release>            
      if (sc == RTEMS_SUCCESSFUL) {                                   
 8001820:	5c 20 00 0c 	bne r1,r0,8001850 <rtems_blkdev_imfs_read+0xe0><== NEVER TAKEN
        block_offset = 0;                                             
        remaining -= copy;                                            
 8001824:	c9 8d 60 00 	sub r12,r12,r13                                
        dst += copy;                                                  
 8001828:	b5 ed 78 00 	add r15,r15,r13                                
        ++block;                                                      
 800182c:	36 52 00 01 	addi r18,r18,1                                 
                                                                      
      memcpy(dst, (char *) bd->buffer + block_offset, (size_t) copy); 
                                                                      
      sc = rtems_bdbuf_release(bd);                                   
      if (sc == RTEMS_SUCCESSFUL) {                                   
        block_offset = 0;                                             
 8001830:	34 10 00 00 	mvi r16,0                                      
  ssize_t block_size = (ssize_t) rtems_disk_get_block_size(dd);       
  rtems_blkdev_bnum block = (rtems_blkdev_bnum) (offset / block_size);
  ssize_t block_offset = (ssize_t) (offset % block_size);             
  char *dst = buffer;                                                 
                                                                      
  while (remaining > 0) {                                             
 8001834:	49 80 ff eb 	bg r12,r0,80017e0 <rtems_blkdev_imfs_read+0x70>
    } else {                                                          
      remaining = -1;                                                 
    }                                                                 
  }                                                                   
                                                                      
  if (remaining >= 0) {                                               
 8001838:	5d 80 00 06 	bne r12,r0,8001850 <rtems_blkdev_imfs_read+0xe0><== NEVER TAKEN
    iop->offset += count;                                             
 800183c:	29 61 00 04 	lw r1,(r11+4)                                  
 8001840:	b4 2e 08 00 	add r1,r1,r14                                  
 8001844:	59 61 00 04 	sw (r11+4),r1                                  
    rv = (ssize_t) count;                                             
 8001848:	b9 c0 08 00 	mv r1,r14                                      
 800184c:	e0 00 00 05 	bi 8001860 <rtems_blkdev_imfs_read+0xf0>       
  } else {                                                            
    errno = EIO;                                                      
 8001850:	f8 00 3e 80 	calli 8011250 <__errno>                        <== NOT EXECUTED
 8001854:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 8001858:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
    rv = -1;                                                          
 800185c:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 8001860:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001864:	2b 8b 00 28 	lw r11,(sp+40)                                 
 8001868:	2b 8c 00 24 	lw r12,(sp+36)                                 
 800186c:	2b 8d 00 20 	lw r13,(sp+32)                                 
 8001870:	2b 8e 00 1c 	lw r14,(sp+28)                                 
 8001874:	2b 8f 00 18 	lw r15,(sp+24)                                 
 8001878:	2b 90 00 14 	lw r16,(sp+20)                                 
 800187c:	2b 91 00 10 	lw r17,(sp+16)                                 
 8001880:	2b 92 00 0c 	lw r18,(sp+12)                                 
 8001884:	2b 93 00 08 	lw r19,(sp+8)                                  
 8001888:	37 9c 00 2c 	addi sp,sp,44                                  
 800188c:	c3 a0 00 00 	ret                                            
                                                                      

0800162c <rtems_blkdev_imfs_write>: static ssize_t rtems_blkdev_imfs_write( rtems_libio_t *iop, const void *buffer, size_t count ) {
 800162c:	37 9c ff d4 	addi sp,sp,-44                                 
 8001630:	5b 8b 00 28 	sw (sp+40),r11                                 
 8001634:	5b 8c 00 24 	sw (sp+36),r12                                 
 8001638:	5b 8d 00 20 	sw (sp+32),r13                                 
 800163c:	5b 8e 00 1c 	sw (sp+28),r14                                 
 8001640:	5b 8f 00 18 	sw (sp+24),r15                                 
 8001644:	5b 90 00 14 	sw (sp+20),r16                                 
 8001648:	5b 91 00 10 	sw (sp+16),r17                                 
 800164c:	5b 92 00 0c 	sw (sp+12),r18                                 
 8001650:	5b 93 00 08 	sw (sp+8),r19                                  
 8001654:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001658:	b8 20 60 00 	mv r12,r1                                      
  } else {                                                            
    sc = RTEMS_INVALID_ID;                                            
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
 800165c:	28 21 00 14 	lw r1,(r1+20)                                  
{                                                                     
  int rv;                                                             
  rtems_blkdev_imfs_context *ctx = IMFS_generic_get_context_by_iop(iop);
  rtems_disk_device *dd = &ctx->dd;                                   
  ssize_t remaining = (ssize_t) count;                                
  off_t offset = iop->offset;                                         
 8001660:	29 8b 00 04 	lw r11,(r12+4)                                 
static ssize_t rtems_blkdev_imfs_write(                               
  rtems_libio_t *iop,                                                 
  const void *buffer,                                                 
  size_t count                                                        
)                                                                     
{                                                                     
 8001664:	b8 40 90 00 	mv r18,r2                                      
  int rv;                                                             
  rtems_blkdev_imfs_context *ctx = IMFS_generic_get_context_by_iop(iop);
 8001668:	28 33 00 50 	lw r19,(r1+80)                                 
  rtems_disk_device *dd = &ctx->dd;                                   
  ssize_t remaining = (ssize_t) count;                                
  off_t offset = iop->offset;                                         
  ssize_t block_size = (ssize_t) rtems_disk_get_block_size(dd);       
  rtems_blkdev_bnum block = (rtems_blkdev_bnum) (offset / block_size);
 800166c:	b9 60 08 00 	mv r1,r11                                      
static ssize_t rtems_blkdev_imfs_write(                               
  rtems_libio_t *iop,                                                 
  const void *buffer,                                                 
  size_t count                                                        
)                                                                     
{                                                                     
 8001670:	b8 60 88 00 	mv r17,r3                                      
  int rv;                                                             
  rtems_blkdev_imfs_context *ctx = IMFS_generic_get_context_by_iop(iop);
  rtems_disk_device *dd = &ctx->dd;                                   
  ssize_t remaining = (ssize_t) count;                                
  off_t offset = iop->offset;                                         
  ssize_t block_size = (ssize_t) rtems_disk_get_block_size(dd);       
 8001674:	2a 6f 00 24 	lw r15,(r19+36)                                
  rtems_blkdev_bnum block = (rtems_blkdev_bnum) (offset / block_size);
 8001678:	b9 e0 10 00 	mv r2,r15                                      
 800167c:	f8 00 56 e8 	calli 801721c <__divsi3>                       
 8001680:	b8 20 80 00 	mv r16,r1                                      
  ssize_t block_offset = (ssize_t) (offset % block_size);             
 8001684:	b9 e0 10 00 	mv r2,r15                                      
 8001688:	b9 60 08 00 	mv r1,r11                                      
 800168c:	f8 00 57 14 	calli 80172dc <__modsi3>                       
 8001690:	b8 20 70 00 	mv r14,r1                                      
)                                                                     
{                                                                     
  int rv;                                                             
  rtems_blkdev_imfs_context *ctx = IMFS_generic_get_context_by_iop(iop);
  rtems_disk_device *dd = &ctx->dd;                                   
  ssize_t remaining = (ssize_t) count;                                
 8001694:	ba 20 58 00 	mv r11,r17                                     
  ssize_t block_size = (ssize_t) rtems_disk_get_block_size(dd);       
  rtems_blkdev_bnum block = (rtems_blkdev_bnum) (offset / block_size);
  ssize_t block_offset = (ssize_t) (offset % block_size);             
  const char *src = buffer;                                           
                                                                      
  while (remaining > 0) {                                             
 8001698:	e0 00 00 1f 	bi 8001714 <rtems_blkdev_imfs_write+0xe8>      
    rtems_status_code sc;                                             
    rtems_bdbuf_buffer *bd;                                           
                                                                      
    if (block_offset == 0 && remaining >= block_size) {               
 800169c:	ed 6f 10 00 	cmpge r2,r11,r15                               
 80016a0:	65 c1 00 00 	cmpei r1,r14,0                                 
 80016a4:	a0 41 08 00 	and r1,r2,r1                                   
 80016a8:	44 20 00 06 	be r1,r0,80016c0 <rtems_blkdev_imfs_write+0x94>
       sc = rtems_bdbuf_get(dd, block, &bd);                          
 80016ac:	ba 60 08 00 	mv r1,r19                                      
 80016b0:	ba 00 10 00 	mv r2,r16                                      
 80016b4:	37 83 00 2c 	addi r3,sp,44                                  
 80016b8:	f8 00 2b 05 	calli 800c2cc <rtems_bdbuf_get>                
 80016bc:	e0 00 00 05 	bi 80016d0 <rtems_blkdev_imfs_write+0xa4>      
    } else {                                                          
       sc = rtems_bdbuf_read(dd, block, &bd);                         
 80016c0:	ba 60 08 00 	mv r1,r19                                      
 80016c4:	ba 00 10 00 	mv r2,r16                                      
 80016c8:	37 83 00 2c 	addi r3,sp,44                                  
 80016cc:	f8 00 2b 3f 	calli 800c3c8 <rtems_bdbuf_read>               
    }                                                                 
                                                                      
    if (sc == RTEMS_SUCCESSFUL) {                                     
 80016d0:	5c 20 00 18 	bne r1,r0,8001730 <rtems_blkdev_imfs_write+0x104><== NEVER TAKEN
      ssize_t copy = block_size - block_offset;                       
 80016d4:	c9 ee 68 00 	sub r13,r15,r14                                
 80016d8:	4d 6d 00 02 	bge r11,r13,80016e0 <rtems_blkdev_imfs_write+0xb4>
 80016dc:	b9 60 68 00 	mv r13,r11                                     
                                                                      
      if (copy > remaining) {                                         
        copy = remaining;                                             
      }                                                               
                                                                      
      memcpy((char *) bd->buffer + block_offset, src, (size_t) copy); 
 80016e0:	2b 81 00 2c 	lw r1,(sp+44)                                  
 80016e4:	ba 40 10 00 	mv r2,r18                                      
 80016e8:	b9 a0 18 00 	mv r3,r13                                      
 80016ec:	28 21 00 1c 	lw r1,(r1+28)                                  
 80016f0:	b4 2e 08 00 	add r1,r1,r14                                  
 80016f4:	f8 00 41 d0 	calli 8011e34 <memcpy>                         
                                                                      
      sc = rtems_bdbuf_release_modified(bd);                          
 80016f8:	2b 81 00 2c 	lw r1,(sp+44)                                  
 80016fc:	f8 00 2b f2 	calli 800c6c4 <rtems_bdbuf_release_modified>   
      if (sc == RTEMS_SUCCESSFUL) {                                   
 8001700:	5c 20 00 0c 	bne r1,r0,8001730 <rtems_blkdev_imfs_write+0x104><== NEVER TAKEN
        block_offset = 0;                                             
        remaining -= copy;                                            
 8001704:	c9 6d 58 00 	sub r11,r11,r13                                
        src += copy;                                                  
 8001708:	b6 4d 90 00 	add r18,r18,r13                                
        ++block;                                                      
 800170c:	36 10 00 01 	addi r16,r16,1                                 
                                                                      
      memcpy((char *) bd->buffer + block_offset, src, (size_t) copy); 
                                                                      
      sc = rtems_bdbuf_release_modified(bd);                          
      if (sc == RTEMS_SUCCESSFUL) {                                   
        block_offset = 0;                                             
 8001710:	34 0e 00 00 	mvi r14,0                                      
  ssize_t block_size = (ssize_t) rtems_disk_get_block_size(dd);       
  rtems_blkdev_bnum block = (rtems_blkdev_bnum) (offset / block_size);
  ssize_t block_offset = (ssize_t) (offset % block_size);             
  const char *src = buffer;                                           
                                                                      
  while (remaining > 0) {                                             
 8001714:	49 60 ff e2 	bg r11,r0,800169c <rtems_blkdev_imfs_write+0x70>
    } else {                                                          
      remaining = -1;                                                 
    }                                                                 
  }                                                                   
                                                                      
  if (remaining >= 0) {                                               
 8001718:	5d 60 00 06 	bne r11,r0,8001730 <rtems_blkdev_imfs_write+0x104><== NEVER TAKEN
    iop->offset += count;                                             
 800171c:	29 81 00 04 	lw r1,(r12+4)                                  
 8001720:	b4 31 08 00 	add r1,r1,r17                                  
 8001724:	59 81 00 04 	sw (r12+4),r1                                  
    rv = (ssize_t) count;                                             
 8001728:	ba 20 08 00 	mv r1,r17                                      
 800172c:	e0 00 00 05 	bi 8001740 <rtems_blkdev_imfs_write+0x114>     
  } else {                                                            
    errno = EIO;                                                      
 8001730:	f8 00 3e c8 	calli 8011250 <__errno>                        <== NOT EXECUTED
 8001734:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 8001738:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
    rv = -1;                                                          
 800173c:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 8001740:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001744:	2b 8b 00 28 	lw r11,(sp+40)                                 
 8001748:	2b 8c 00 24 	lw r12,(sp+36)                                 
 800174c:	2b 8d 00 20 	lw r13,(sp+32)                                 
 8001750:	2b 8e 00 1c 	lw r14,(sp+28)                                 
 8001754:	2b 8f 00 18 	lw r15,(sp+24)                                 
 8001758:	2b 90 00 14 	lw r16,(sp+20)                                 
 800175c:	2b 91 00 10 	lw r17,(sp+16)                                 
 8001760:	2b 92 00 0c 	lw r18,(sp+12)                                 
 8001764:	2b 93 00 08 	lw r19,(sp+8)                                  
 8001768:	37 9c 00 2c 	addi sp,sp,44                                  
 800176c:	c3 a0 00 00 	ret                                            
                                                                      

0800beb0 <rtems_blkdev_ioctl>: #include <rtems/blkdev.h> #include <rtems/bdbuf.h> int rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp) {
 800beb0:	37 9c ff fc 	addi sp,sp,-4                                  
 800beb4:	5b 9d 00 04 	sw (sp+4),ra                                   
    rtems_status_code  sc;                                            
    int                rc = 0;                                        
                                                                      
    switch (req)                                                      
 800beb8:	78 06 08 01 	mvhi r6,0x801                                  
 800bebc:	38 c6 75 30 	ori r6,r6,0x7530                               
 800bec0:	28 c5 00 00 	lw r5,(r6+0)                                   
#include <rtems/blkdev.h>                                             
#include <rtems/bdbuf.h>                                              
                                                                      
int                                                                   
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
 800bec4:	b8 20 20 00 	mv r4,r1                                       
    rtems_status_code  sc;                                            
    int                rc = 0;                                        
                                                                      
    switch (req)                                                      
 800bec8:	44 45 00 2a 	be r2,r5,800bf70 <rtems_blkdev_ioctl+0xc0>     
 800becc:	54 45 00 14 	bgu r2,r5,800bf1c <rtems_blkdev_ioctl+0x6c>    
 800bed0:	78 06 08 01 	mvhi r6,0x801                                  
 800bed4:	38 c6 7b 00 	ori r6,r6,0x7b00                               
 800bed8:	28 c5 00 00 	lw r5,(r6+0)                                   
 800bedc:	44 45 00 37 	be r2,r5,800bfb8 <rtems_blkdev_ioctl+0x108>    
 800bee0:	54 45 00 06 	bgu r2,r5,800bef8 <rtems_blkdev_ioctl+0x48>    
 800bee4:	78 04 08 01 	mvhi r4,0x801                                  
 800bee8:	38 84 75 40 	ori r4,r4,0x7540                               
 800beec:	28 83 00 00 	lw r3,(r4+0)                                   
 800bef0:	5c 43 00 39 	bne r2,r3,800bfd4 <rtems_blkdev_ioctl+0x124>   
 800bef4:	e0 00 00 29 	bi 800bf98 <rtems_blkdev_ioctl+0xe8>           
 800bef8:	78 06 08 01 	mvhi r6,0x801                                  
 800befc:	38 c6 7b 04 	ori r6,r6,0x7b04                               
 800bf00:	28 c5 00 00 	lw r5,(r6+0)                                   
 800bf04:	44 45 00 32 	be r2,r5,800bfcc <rtems_blkdev_ioctl+0x11c>    
 800bf08:	78 05 08 01 	mvhi r5,0x801                                  
 800bf0c:	38 a5 75 2c 	ori r5,r5,0x752c                               
 800bf10:	28 a1 00 00 	lw r1,(r5+0)                                   
 800bf14:	5c 41 00 30 	bne r2,r1,800bfd4 <rtems_blkdev_ioctl+0x124>   <== NEVER TAKEN
 800bf18:	e0 00 00 14 	bi 800bf68 <rtems_blkdev_ioctl+0xb8>           
 800bf1c:	78 06 08 01 	mvhi r6,0x801                                  
 800bf20:	38 c6 75 3c 	ori r6,r6,0x753c                               
 800bf24:	28 c5 00 00 	lw r5,(r6+0)                                   
 800bf28:	44 45 00 22 	be r2,r5,800bfb0 <rtems_blkdev_ioctl+0x100>    
 800bf2c:	54 45 00 06 	bgu r2,r5,800bf44 <rtems_blkdev_ioctl+0x94>    
 800bf30:	78 05 08 01 	mvhi r5,0x801                                  
 800bf34:	38 a5 75 38 	ori r5,r5,0x7538                               
 800bf38:	28 a1 00 00 	lw r1,(r5+0)                                   
 800bf3c:	5c 41 00 26 	bne r2,r1,800bfd4 <rtems_blkdev_ioctl+0x124>   <== NEVER TAKEN
 800bf40:	e0 00 00 14 	bi 800bf90 <rtems_blkdev_ioctl+0xe0>           
 800bf44:	78 06 08 01 	mvhi r6,0x801                                  
 800bf48:	38 c6 7b 08 	ori r6,r6,0x7b08                               
 800bf4c:	28 c4 00 00 	lw r4,(r6+0)                                   
 800bf50:	44 44 00 1c 	be r2,r4,800bfc0 <rtems_blkdev_ioctl+0x110>    
 800bf54:	78 05 08 01 	mvhi r5,0x801                                  
 800bf58:	38 a5 75 34 	ori r5,r5,0x7534                               
 800bf5c:	28 a4 00 00 	lw r4,(r5+0)                                   
 800bf60:	5c 44 00 1d 	bne r2,r4,800bfd4 <rtems_blkdev_ioctl+0x124>   <== NEVER TAKEN
 800bf64:	e0 00 00 07 	bi 800bf80 <rtems_blkdev_ioctl+0xd0>           
    {                                                                 
        case RTEMS_BLKIO_GETMEDIABLKSIZE:                             
            *(uint32_t *) argp = dd->media_block_size;                
 800bf68:	28 81 00 20 	lw r1,(r4+32)                                  
 800bf6c:	e0 00 00 02 	bi 800bf74 <rtems_blkdev_ioctl+0xc4>           
            break;                                                    
                                                                      
        case RTEMS_BLKIO_GETBLKSIZE:                                  
            *(uint32_t *) argp = dd->block_size;                      
 800bf70:	28 21 00 24 	lw r1,(r1+36)                                  
 800bf74:	58 61 00 00 	sw (r3+0),r1                                   
                                                                      
int                                                                   
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
    rtems_status_code  sc;                                            
    int                rc = 0;                                        
 800bf78:	34 02 00 00 	mvi r2,0                                       
            *(uint32_t *) argp = dd->media_block_size;                
            break;                                                    
                                                                      
        case RTEMS_BLKIO_GETBLKSIZE:                                  
            *(uint32_t *) argp = dd->block_size;                      
            break;                                                    
 800bf7c:	e0 00 00 1a 	bi 800bfe4 <rtems_blkdev_ioctl+0x134>          
                                                                      
        case RTEMS_BLKIO_SETBLKSIZE:                                  
            sc = rtems_bdbuf_set_block_size(dd, *(uint32_t *) argp, true);
 800bf80:	28 62 00 00 	lw r2,(r3+0)                                   
 800bf84:	34 03 00 01 	mvi r3,1                                       
 800bf88:	fb ff ff 52 	calli 800bcd0 <rtems_bdbuf_set_block_size>     
 800bf8c:	e0 00 00 04 	bi 800bf9c <rtems_blkdev_ioctl+0xec>           
                rc = -1;                                              
            }                                                         
            break;                                                    
                                                                      
        case RTEMS_BLKIO_GETSIZE:                                     
            *(rtems_blkdev_bnum *) argp = dd->size;                   
 800bf90:	28 81 00 1c 	lw r1,(r4+28)                                  
 800bf94:	e3 ff ff f8 	bi 800bf74 <rtems_blkdev_ioctl+0xc4>           
            break;                                                    
                                                                      
        case RTEMS_BLKIO_SYNCDEV:                                     
            sc = rtems_bdbuf_syncdev(dd);                             
 800bf98:	fb ff fe ba 	calli 800ba80 <rtems_bdbuf_syncdev>            
                                                                      
int                                                                   
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
    rtems_status_code  sc;                                            
    int                rc = 0;                                        
 800bf9c:	34 02 00 00 	mvi r2,0                                       
            *(rtems_blkdev_bnum *) argp = dd->size;                   
            break;                                                    
                                                                      
        case RTEMS_BLKIO_SYNCDEV:                                     
            sc = rtems_bdbuf_syncdev(dd);                             
            if (sc != RTEMS_SUCCESSFUL) {                             
 800bfa0:	44 20 00 11 	be r1,r0,800bfe4 <rtems_blkdev_ioctl+0x134>    <== ALWAYS TAKEN
                errno = EIO;                                          
 800bfa4:	f8 00 12 b8 	calli 8010a84 <__errno>                        <== NOT EXECUTED
 800bfa8:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 800bfac:	e0 00 00 0c 	bi 800bfdc <rtems_blkdev_ioctl+0x12c>          <== NOT EXECUTED
                rc = -1;                                              
            }                                                         
            break;                                                    
                                                                      
        case RTEMS_BLKIO_GETDISKDEV:                                  
            *(rtems_disk_device **) argp = dd;                        
 800bfb0:	58 61 00 00 	sw (r3+0),r1                                   
 800bfb4:	e3 ff ff f1 	bi 800bf78 <rtems_blkdev_ioctl+0xc8>           
            break;                                                    
                                                                      
        case RTEMS_BLKIO_PURGEDEV:                                    
            rtems_bdbuf_purge_dev(dd);                                
 800bfb8:	fb ff fe ca 	calli 800bae0 <rtems_bdbuf_purge_dev>          
 800bfbc:	e3 ff ff ef 	bi 800bf78 <rtems_blkdev_ioctl+0xc8>           
            break;                                                    
                                                                      
        case RTEMS_BLKIO_GETDEVSTATS:                                 
            rtems_bdbuf_get_device_stats(dd, (rtems_blkdev_stats *) argp);
 800bfc0:	b8 60 10 00 	mv r2,r3                                       
 800bfc4:	fb ff ff 90 	calli 800be04 <rtems_bdbuf_get_device_stats>   
 800bfc8:	e3 ff ff ec 	bi 800bf78 <rtems_blkdev_ioctl+0xc8>           
            break;                                                    
                                                                      
        case RTEMS_BLKIO_RESETDEVSTATS:                               
            rtems_bdbuf_reset_device_stats(dd);                       
 800bfcc:	fb ff ff ab 	calli 800be78 <rtems_bdbuf_reset_device_stats> 
 800bfd0:	e3 ff ff ea 	bi 800bf78 <rtems_blkdev_ioctl+0xc8>           
            break;                                                    
                                                                      
        default:                                                      
            errno = EINVAL;                                           
 800bfd4:	f8 00 12 ac 	calli 8010a84 <__errno>                        
 800bfd8:	34 02 00 16 	mvi r2,22                                      
 800bfdc:	58 22 00 00 	sw (r1+0),r2                                   
            rc = -1;                                                  
 800bfe0:	34 02 ff ff 	mvi r2,-1                                      
            break;                                                    
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
 800bfe4:	b8 40 08 00 	mv r1,r2                                       
 800bfe8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800bfec:	37 9c 00 04 	addi sp,sp,4                                   
 800bff0:	c3 a0 00 00 	ret                                            
                                                                      

08020218 <rtems_blkstats>: #include <fcntl.h> #include <unistd.h> #include <errno.h> void rtems_blkstats(FILE *output, const char *device, bool reset) {
 8020218:	37 9c ff 84 	addi sp,sp,-124                                <== NOT EXECUTED
 802021c:	5b 8b 00 14 	sw (sp+20),r11                                 <== NOT EXECUTED
 8020220:	5b 8c 00 10 	sw (sp+16),r12                                 <== NOT EXECUTED
 8020224:	5b 8d 00 0c 	sw (sp+12),r13                                 <== NOT EXECUTED
 8020228:	5b 8e 00 08 	sw (sp+8),r14                                  <== NOT EXECUTED
 802022c:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
 8020230:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
  int fd = open(device, O_RDONLY);                                    
 8020234:	b8 40 08 00 	mv r1,r2                                       <== NOT EXECUTED
 8020238:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
#include <fcntl.h>                                                    
#include <unistd.h>                                                   
#include <errno.h>                                                    
                                                                      
void rtems_blkstats(FILE *output, const char *device, bool reset)     
{                                                                     
 802023c:	20 6e 00 ff 	andi r14,r3,0xff                               <== NOT EXECUTED
  int fd = open(device, O_RDONLY);                                    
 8020240:	fb ff 86 da 	calli 8001da8 <open>                           <== NOT EXECUTED
 8020244:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
                                                                      
  if (fd >= 0) {                                                      
 8020248:	48 01 00 45 	bg r0,r1,802035c <rtems_blkstats+0x144>        <== NOT EXECUTED
    struct stat st;                                                   
    int rv;                                                           
                                                                      
    rv = fstat(fd, &st);                                              
 802024c:	37 82 00 18 	addi r2,sp,24                                  <== NOT EXECUTED
 8020250:	f8 00 08 ea 	calli 80225f8 <fstat>                          <== NOT EXECUTED
    if (rv == 0) {                                                    
 8020254:	5c 20 00 2f 	bne r1,r0,8020310 <rtems_blkstats+0xf8>        <== NOT EXECUTED
      if (S_ISBLK(st.st_mode)) {                                      
 8020258:	2b 82 00 24 	lw r2,(sp+36)                                  <== NOT EXECUTED
 802025c:	34 01 60 00 	mvi r1,24576                                   <== NOT EXECUTED
 8020260:	20 42 f0 00 	andi r2,r2,0xf000                              <== NOT EXECUTED
 8020264:	5c 41 00 26 	bne r2,r1,80202fc <rtems_blkstats+0xe4>        <== NOT EXECUTED
        if (reset) {                                                  
 8020268:	45 c0 00 0f 	be r14,r0,80202a4 <rtems_blkstats+0x8c>        <== NOT EXECUTED
  return ioctl(fd, RTEMS_BLKIO_GETDEVSTATS, stats);                   
}                                                                     
                                                                      
static inline int rtems_disk_fd_reset_device_stats(int fd)            
{                                                                     
  return ioctl(fd, RTEMS_BLKIO_RESETDEVSTATS);                        
 802026c:	78 03 08 05 	mvhi r3,0x805                                  <== NOT EXECUTED
 8020270:	38 63 d1 18 	ori r3,r3,0xd118                               <== NOT EXECUTED
 8020274:	28 62 00 00 	lw r2,(r3+0)                                   <== NOT EXECUTED
 8020278:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 802027c:	f8 00 0c 2e 	calli 8023334 <ioctl>                          <== NOT EXECUTED
          rv = rtems_disk_fd_reset_device_stats(fd);                  
          if (rv != 0) {                                              
 8020280:	44 20 00 2c 	be r1,r0,8020330 <rtems_blkstats+0x118>        <== NOT EXECUTED
            fprintf(output, "error: reset stats: %s\n", strerror(errno));
 8020284:	f8 00 5e 54 	calli 8037bd4 <__errno>                        <== NOT EXECUTED
 8020288:	28 21 00 00 	lw r1,(r1+0)                                   <== NOT EXECUTED
 802028c:	f8 00 7c bd 	calli 803f580 <strerror>                       <== NOT EXECUTED
 8020290:	78 02 08 05 	mvhi r2,0x805                                  <== NOT EXECUTED
 8020294:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 8020298:	38 42 d0 7c 	ori r2,r2,0xd07c                               <== NOT EXECUTED
 802029c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 80202a0:	e0 00 00 23 	bi 802032c <rtems_blkstats+0x114>              <== NOT EXECUTED
static inline int rtems_disk_fd_get_device_stats(                     
  int fd,                                                             
  rtems_blkdev_stats *stats                                           
)                                                                     
{                                                                     
  return ioctl(fd, RTEMS_BLKIO_GETDEVSTATS, stats);                   
 80202a4:	78 03 08 05 	mvhi r3,0x805                                  <== NOT EXECUTED
 80202a8:	38 63 d1 1c 	ori r3,r3,0xd11c                               <== NOT EXECUTED
 80202ac:	28 62 00 00 	lw r2,(r3+0)                                   <== NOT EXECUTED
          }                                                           
        } else {                                                      
          rtems_blkdev_stats stats;                                   
                                                                      
          rv = rtems_disk_fd_get_device_stats(fd, &stats);            
 80202b0:	37 8d 00 60 	addi r13,sp,96                                 <== NOT EXECUTED
 80202b4:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 80202b8:	b9 a0 18 00 	mv r3,r13                                      <== NOT EXECUTED
 80202bc:	f8 00 0c 1e 	calli 8023334 <ioctl>                          <== NOT EXECUTED
          if (rv == 0) {                                              
 80202c0:	5c 2e 00 07 	bne r1,r14,80202dc <rtems_blkstats+0xc4>       <== NOT EXECUTED
            rtems_blkdev_print_stats(                                 
 80202c4:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
 80202c8:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 80202cc:	38 42 89 4c 	ori r2,r2,0x894c                               <== NOT EXECUTED
 80202d0:	b9 60 18 00 	mv r3,r11                                      <== NOT EXECUTED
 80202d4:	f8 00 00 31 	calli 8020398 <rtems_blkdev_print_stats>       <== NOT EXECUTED
 80202d8:	e0 00 00 16 	bi 8020330 <rtems_blkstats+0x118>              <== NOT EXECUTED
              &stats,                                                 
              (rtems_printk_plugin_t) fprintf,                        
              output                                                  
            );                                                        
          } else {                                                    
            fprintf(output, "error: get stats: %s\n", strerror(errno));
 80202dc:	f8 00 5e 3e 	calli 8037bd4 <__errno>                        <== NOT EXECUTED
 80202e0:	28 21 00 00 	lw r1,(r1+0)                                   <== NOT EXECUTED
 80202e4:	f8 00 7c a7 	calli 803f580 <strerror>                       <== NOT EXECUTED
 80202e8:	78 02 08 05 	mvhi r2,0x805                                  <== NOT EXECUTED
 80202ec:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 80202f0:	38 42 d0 94 	ori r2,r2,0xd094                               <== NOT EXECUTED
 80202f4:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 80202f8:	e0 00 00 0d 	bi 802032c <rtems_blkstats+0x114>              <== NOT EXECUTED
          }                                                           
        }                                                             
      } else {                                                        
        fprintf(output, "error: not a block device\n");               
 80202fc:	78 01 08 05 	mvhi r1,0x805                                  <== NOT EXECUTED
 8020300:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 8020304:	38 21 d0 ac 	ori r1,r1,0xd0ac                               <== NOT EXECUTED
 8020308:	f8 00 61 fc 	calli 8038af8 <fputs>                          <== NOT EXECUTED
 802030c:	e0 00 00 09 	bi 8020330 <rtems_blkstats+0x118>              <== NOT EXECUTED
      }                                                               
    } else {                                                          
      fprintf(output, "error: get file stats: %s\n", strerror(errno));
 8020310:	f8 00 5e 31 	calli 8037bd4 <__errno>                        <== NOT EXECUTED
 8020314:	28 21 00 00 	lw r1,(r1+0)                                   <== NOT EXECUTED
 8020318:	f8 00 7c 9a 	calli 803f580 <strerror>                       <== NOT EXECUTED
 802031c:	78 02 08 05 	mvhi r2,0x805                                  <== NOT EXECUTED
 8020320:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 8020324:	38 42 d0 c8 	ori r2,r2,0xd0c8                               <== NOT EXECUTED
 8020328:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 802032c:	f8 00 61 88 	calli 803894c <fprintf>                        <== NOT EXECUTED
    }                                                                 
                                                                      
    rv = close(fd);                                                   
 8020330:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8020334:	f8 00 07 6d 	calli 80220e8 <close>                          <== NOT EXECUTED
    if (rv != 0) {                                                    
 8020338:	44 20 00 11 	be r1,r0,802037c <rtems_blkstats+0x164>        <== NOT EXECUTED
      fprintf(output, "error: close device: %s\n", strerror(errno));  
 802033c:	f8 00 5e 26 	calli 8037bd4 <__errno>                        <== NOT EXECUTED
 8020340:	28 21 00 00 	lw r1,(r1+0)                                   <== NOT EXECUTED
 8020344:	f8 00 7c 8f 	calli 803f580 <strerror>                       <== NOT EXECUTED
 8020348:	78 02 08 05 	mvhi r2,0x805                                  <== NOT EXECUTED
 802034c:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 8020350:	38 42 d0 e4 	ori r2,r2,0xd0e4                               <== NOT EXECUTED
 8020354:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8020358:	e0 00 00 08 	bi 8020378 <rtems_blkstats+0x160>              <== NOT EXECUTED
    }                                                                 
  } else {                                                            
    fprintf(output, "error: open device: %s\n", strerror(errno));     
 802035c:	f8 00 5e 1e 	calli 8037bd4 <__errno>                        <== NOT EXECUTED
 8020360:	28 21 00 00 	lw r1,(r1+0)                                   <== NOT EXECUTED
 8020364:	f8 00 7c 87 	calli 803f580 <strerror>                       <== NOT EXECUTED
 8020368:	78 02 08 05 	mvhi r2,0x805                                  <== NOT EXECUTED
 802036c:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 8020370:	38 42 d1 00 	ori r2,r2,0xd100                               <== NOT EXECUTED
 8020374:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8020378:	f8 00 61 75 	calli 803894c <fprintf>                        <== NOT EXECUTED
  }                                                                   
}                                                                     
 802037c:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 8020380:	2b 8b 00 14 	lw r11,(sp+20)                                 <== NOT EXECUTED
 8020384:	2b 8c 00 10 	lw r12,(sp+16)                                 <== NOT EXECUTED
 8020388:	2b 8d 00 0c 	lw r13,(sp+12)                                 <== NOT EXECUTED
 802038c:	2b 8e 00 08 	lw r14,(sp+8)                                  <== NOT EXECUTED
 8020390:	37 9c 00 7c 	addi sp,sp,124                                 <== NOT EXECUTED
 8020394:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0800419c <rtems_chain_get_with_wait>: rtems_chain_control *chain, rtems_event_set events, rtems_interval timeout, rtems_chain_node **node_ptr ) {
 800419c:	37 9c ff e4 	addi sp,sp,-28                                 
 80041a0:	5b 8b 00 18 	sw (sp+24),r11                                 
 80041a4:	5b 8c 00 14 	sw (sp+20),r12                                 
 80041a8:	5b 8d 00 10 	sw (sp+16),r13                                 
 80041ac:	5b 8e 00 0c 	sw (sp+12),r14                                 
 80041b0:	5b 8f 00 08 	sw (sp+8),r15                                  
 80041b4:	5b 9d 00 04 	sw (sp+4),ra                                   
 80041b8:	b8 20 78 00 	mv r15,r1                                      
 80041bc:	b8 40 70 00 	mv r14,r2                                      
 80041c0:	b8 60 68 00 	mv r13,r3                                      
 80041c4:	b8 80 60 00 	mv r12,r4                                      
 80041c8:	e0 00 00 08 	bi 80041e8 <rtems_chain_get_with_wait+0x4c>    
  while (                                                             
    sc == RTEMS_SUCCESSFUL                                            
      && (node = rtems_chain_get( chain )) == NULL                    
  ) {                                                                 
    rtems_event_set out;                                              
    sc = rtems_event_receive(                                         
 80041cc:	b9 c0 08 00 	mv r1,r14                                      
 80041d0:	34 02 00 00 	mvi r2,0                                       
 80041d4:	b9 a0 18 00 	mv r3,r13                                      
 80041d8:	37 84 00 1c 	addi r4,sp,28                                  
 80041dc:	fb ff fd b8 	calli 80038bc <rtems_event_receive>            
 80041e0:	b8 20 28 00 	mv r5,r1                                       
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_chain_node *node = NULL;                                      
                                                                      
  while (                                                             
 80041e4:	5c 2b 00 06 	bne r1,r11,80041fc <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 );                                     
 80041e8:	b9 e0 08 00 	mv r1,r15                                      
 80041ec:	f8 00 01 85 	calli 8004800 <_Chain_Get>                     
 80041f0:	b8 20 58 00 	mv r11,r1                                      
    sc == RTEMS_SUCCESSFUL                                            
      && (node = rtems_chain_get( chain )) == NULL                    
 80041f4:	44 20 ff f6 	be r1,r0,80041cc <rtems_chain_get_with_wait+0x30>
 80041f8:	34 05 00 00 	mvi r5,0                                       
  }                                                                   
                                                                      
  *node_ptr = node;                                                   
                                                                      
  return sc;                                                          
}                                                                     
 80041fc:	b8 a0 08 00 	mv r1,r5                                       
      timeout,                                                        
      &out                                                            
    );                                                                
  }                                                                   
                                                                      
  *node_ptr = node;                                                   
 8004200:	59 8b 00 00 	sw (r12+0),r11                                 
                                                                      
  return sc;                                                          
}                                                                     
 8004204:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004208:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800420c:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8004210:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8004214:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8004218:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800421c:	37 9c 00 1c 	addi sp,sp,28                                  
 8004220:	c3 a0 00 00 	ret                                            
                                                                      

080115d8 <rtems_clock_set_nanoseconds_extension>: * error code - if unsuccessful */ rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) {
 80115d8:	b8 20 18 00 	mv r3,r1                                       
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
 80115dc:	34 01 00 09 	mvi r1,9                                       
 */                                                                   
rtems_status_code rtems_clock_set_nanoseconds_extension(              
  rtems_nanoseconds_extension_routine routine                         
)                                                                     
{                                                                     
  if ( !routine )                                                     
 80115e0:	44 60 00 05 	be r3,r0,80115f4 <rtems_clock_set_nanoseconds_extension+0x1c><== ALWAYS TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  _Watchdog_Nanoseconds_since_tick_handler = routine;                 
 80115e4:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
 80115e8:	38 42 91 c8 	ori r2,r2,0x91c8                               <== NOT EXECUTED
 80115ec:	58 43 00 00 	sw (r2+0),r3                                   <== NOT EXECUTED
  return RTEMS_SUCCESSFUL;                                            
 80115f0:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
}                                                                     
 80115f4:	c3 a0 00 00 	ret                                            
                                                                      

080019b4 <rtems_cpu_usage_report_with_plugin>: */ void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) {
 80019b4:	37 9c ff 7c 	addi sp,sp,-132                                
 80019b8:	5b 8b 00 44 	sw (sp+68),r11                                 
 80019bc:	5b 8c 00 40 	sw (sp+64),r12                                 
 80019c0:	5b 8d 00 3c 	sw (sp+60),r13                                 
 80019c4:	5b 8e 00 38 	sw (sp+56),r14                                 
 80019c8:	5b 8f 00 34 	sw (sp+52),r15                                 
 80019cc:	5b 90 00 30 	sw (sp+48),r16                                 
 80019d0:	5b 91 00 2c 	sw (sp+44),r17                                 
 80019d4:	5b 92 00 28 	sw (sp+40),r18                                 
 80019d8:	5b 93 00 24 	sw (sp+36),r19                                 
 80019dc:	5b 94 00 20 	sw (sp+32),r20                                 
 80019e0:	5b 95 00 1c 	sw (sp+28),r21                                 
 80019e4:	5b 96 00 18 	sw (sp+24),r22                                 
 80019e8:	5b 97 00 14 	sw (sp+20),r23                                 
 80019ec:	5b 98 00 10 	sw (sp+16),r24                                 
 80019f0:	5b 99 00 0c 	sw (sp+12),r25                                 
 80019f4:	5b 9b 00 08 	sw (sp+8),fp                                   
 80019f8:	5b 9d 00 04 	sw (sp+4),ra                                   
 80019fc:	b8 20 88 00 	mv r17,r1                                      
 8001a00:	b8 40 70 00 	mv r14,r2                                      
    uint32_t seconds, nanoseconds;                                    
  #else                                                               
    uint32_t           total_units = 0;                               
  #endif                                                              
                                                                      
  if ( !print )                                                       
 8001a04:	44 40 00 a1 	be r2,r0,8001c88 <rtems_cpu_usage_report_with_plugin+0x2d4><== 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;            
 8001a08:	78 02 08 02 	mvhi r2,0x802                                  
 8001a0c:	38 42 0f 08 	ori r2,r2,0xf08                                
 8001a10:	28 43 00 00 	lw r3,(r2+0)                                   
 8001a14:	28 42 00 04 	lw r2,(r2+4)                                   
        }                                                             
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  (*print)(                                                           
 8001a18:	78 0d 08 02 	mvhi r13,0x802                                 
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
                                                                      
        (*print)(                                                     
 8001a1c:	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;            
 8001a20:	5b 82 00 54 	sw (sp+84),r2                                  
        }                                                             
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  (*print)(                                                           
 8001a24:	78 02 08 01 	mvhi r2,0x801                                  
 8001a28:	38 42 da 5c 	ori r2,r2,0xda5c                               
    Thread_Control    *the_thread,                                    
    Timestamp_Control *time_of_context_switch                         
  )                                                                   
  {                                                                   
    #ifndef RTEMS_SMP                                                 
      if ( _Thread_Executing->Object.id == the_thread->Object.id ) {  
 8001a2c:	78 0c 08 02 	mvhi r12,0x802                                 
 8001a30:	78 0f 08 02 	mvhi r15,0x802                                 
           */                                                         
                                                                      
          seconds = _Timestamp_Get_seconds( &ran );                   
          nanoseconds = _Timestamp_Get_nanoseconds( &ran ) /          
            TOD_NANOSECONDS_PER_MICROSECOND;                          
          (*print)( context,                                          
 8001a34:	78 12 08 01 	mvhi r18,0x801                                 
                                                                      
static inline void _Timestamp64_implementation_Set_to_zero(           
  Timestamp64_Control *_time                                          
)                                                                     
{                                                                     
  *_time = 0;                                                         
 8001a38:	5b 80 00 70 	sw (sp+112),r0                                 
 8001a3c:	5b 80 00 74 	sw (sp+116),r0                                 
   *  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;            
 8001a40:	5b 83 00 50 	sw (sp+80),r3                                  
        }                                                             
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  (*print)(                                                           
 8001a44:	39 ad 0c 60 	ori r13,r13,0xc60                              
 8001a48:	d9 c0 00 00 	call r14                                       
        the_thread = (Thread_Control *)information->local_table[ i ]; 
                                                                      
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
 8001a4c:	37 97 00 58 	addi r23,sp,88                                 
                                                                      
        (*print)(                                                     
 8001a50:	3a 73 db d0 	ori r19,r19,0xdbd0                             
    Thread_Control    *the_thread,                                    
    Timestamp_Control *time_of_context_switch                         
  )                                                                   
  {                                                                   
    #ifndef RTEMS_SMP                                                 
      if ( _Thread_Executing->Object.id == the_thread->Object.id ) {  
 8001a54:	39 8c 0e 80 	ori r12,r12,0xe80                              
 8001a58:	37 96 00 78 	addi r22,sp,120                                
 8001a5c:	39 ef 0c 48 	ori r15,r15,0xc48                              
            _Timestamp_Add_to( &ran, &used );                         
          } else {                                                    
            _TOD_Get_uptime( &uptime );                               
          }                                                           
          _Timestamp_Subtract( &uptime_at_last_reset, &uptime, &total );
          _Timestamp_Divide( &ran, &total, &ival, &fval );            
 8001a60:	37 9b 00 68 	addi fp,sp,104                                 
 8001a64:	37 99 00 70 	addi r25,sp,112                                
 8001a68:	37 98 00 80 	addi r24,sp,128                                
           */                                                         
                                                                      
          seconds = _Timestamp_Get_seconds( &ran );                   
          nanoseconds = _Timestamp_Get_nanoseconds( &ran ) /          
            TOD_NANOSECONDS_PER_MICROSECOND;                          
          (*print)( context,                                          
 8001a6c:	3a 52 db e4 	ori r18,r18,0xdbe4                             
     "------------+----------------------------------------+---------------+---------\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 ] )                 
 8001a70:	29 a3 00 00 	lw r3,(r13+0)                                  
 8001a74:	44 60 00 66 	be r3,r0,8001c0c <rtems_cpu_usage_report_with_plugin+0x258>
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
 8001a78:	28 70 00 04 	lw r16,(r3+4)                                  
    if ( information ) {                                              
 8001a7c:	34 15 00 04 	mvi r21,4                                      
 8001a80:	34 14 00 01 	mvi r20,1                                      
 8001a84:	5e 00 00 60 	bne r16,r0,8001c04 <rtems_cpu_usage_report_with_plugin+0x250><== ALWAYS TAKEN
 8001a88:	e0 00 00 61 	bi 8001c0c <rtems_cpu_usage_report_with_plugin+0x258><== NOT EXECUTED
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
        the_thread = (Thread_Control *)information->local_table[ i ]; 
 8001a8c:	2a 01 00 1c 	lw r1,(r16+28)                                 
 8001a90:	b4 35 08 00 	add r1,r1,r21                                  
 8001a94:	28 2b 00 00 	lw r11,(r1+0)                                  
                                                                      
        if ( !the_thread )                                            
 8001a98:	45 60 00 59 	be r11,r0,8001bfc <rtems_cpu_usage_report_with_plugin+0x248><== NEVER TAKEN
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
 8001a9c:	29 61 00 08 	lw r1,(r11+8)                                  
 8001aa0:	34 02 00 0d 	mvi r2,13                                      
 8001aa4:	ba e0 18 00 	mv r3,r23                                      
 8001aa8:	f8 00 0c 9b 	calli 8004d14 <rtems_object_get_name>          
                                                                      
        (*print)(                                                     
 8001aac:	29 63 00 08 	lw r3,(r11+8)                                  
 8001ab0:	ba 60 10 00 	mv r2,r19                                      
 8001ab4:	ba 20 08 00 	mv r1,r17                                      
 8001ab8:	ba e0 20 00 	mv r4,r23                                      
 8001abc:	d9 c0 00 00 	call r14                                       
                                                                      
          /*                                                          
           * If this is the currently executing thread, account for time
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
 8001ac0:	29 61 00 80 	lw r1,(r11+128)                                
 8001ac4:	5b 81 00 68 	sw (sp+104),r1                                 
 8001ac8:	29 61 00 84 	lw r1,(r11+132)                                
 8001acc:	5b 81 00 6c 	sw (sp+108),r1                                 
    Thread_Control    *the_thread,                                    
    Timestamp_Control *time_of_context_switch                         
  )                                                                   
  {                                                                   
    #ifndef RTEMS_SMP                                                 
      if ( _Thread_Executing->Object.id == the_thread->Object.id ) {  
 8001ad0:	29 81 00 10 	lw r1,(r12+16)                                 
 8001ad4:	28 22 00 08 	lw r2,(r1+8)                                   
 8001ad8:	29 61 00 08 	lw r1,(r11+8)                                  
 8001adc:	5c 41 00 17 	bne r2,r1,8001b38 <rtems_cpu_usage_report_with_plugin+0x184>
        *time_of_context_switch = _Thread_Time_of_last_context_switch;
 8001ae0:	29 83 00 24 	lw r3,(r12+36)                                 
 */                                                                   
static inline void _TOD_Get_uptime(                                   
  Timestamp_Control *time                                             
)                                                                     
{                                                                     
  _TOD_Get_with_nanoseconds( time, &_TOD.uptime );                    
 8001ae4:	b9 e0 10 00 	mv r2,r15                                      
 8001ae8:	ba c0 08 00 	mv r1,r22                                      
 8001aec:	29 8b 00 20 	lw r11,(r12+32)                                
 8001af0:	5b 83 00 4c 	sw (sp+76),r3                                  
 8001af4:	f8 00 11 c0 	calli 80061f4 <_TOD_Get_with_nanoseconds>      
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
 8001af8:	2b 82 00 6c 	lw r2,(sp+108)                                 
 8001afc:	2b 85 00 7c 	lw r5,(sp+124)                                 
 8001b00:	2b 84 00 68 	lw r4,(sp+104)                                 
 8001b04:	2b 81 00 78 	lw r1,(sp+120)                                 
static inline void _Timestamp64_implementation_Add_to(                
  Timestamp64_Control       *_time,                                   
  const Timestamp64_Control *_add                                     
)                                                                     
{                                                                     
  *_time += *_add;                                                    
 8001b08:	2b 83 00 4c 	lw r3,(sp+76)                                  
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
 8001b0c:	b4 45 28 00 	add r5,r2,r5                                   
 8001b10:	f4 45 10 00 	cmpgu r2,r2,r5                                 
static inline void _Timestamp64_implementation_Add_to(                
  Timestamp64_Control       *_time,                                   
  const Timestamp64_Control *_add                                     
)                                                                     
{                                                                     
  *_time += *_add;                                                    
 8001b14:	c8 a3 18 00 	sub r3,r5,r3                                   
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
 8001b18:	b4 81 08 00 	add r1,r4,r1                                   
 8001b1c:	b4 41 08 00 	add r1,r2,r1                                   
static inline void _Timestamp64_implementation_Add_to(                
  Timestamp64_Control       *_time,                                   
  const Timestamp64_Control *_add                                     
)                                                                     
{                                                                     
  *_time += *_add;                                                    
 8001b20:	f4 65 28 00 	cmpgu r5,r3,r5                                 
 8001b24:	c8 2b 08 00 	sub r1,r1,r11                                  
 8001b28:	c8 25 28 00 	sub r5,r1,r5                                   
 8001b2c:	5b 85 00 68 	sw (sp+104),r5                                 
 8001b30:	5b 83 00 6c 	sw (sp+108),r3                                 
 8001b34:	e0 00 00 04 	bi 8001b44 <rtems_cpu_usage_report_with_plugin+0x190>
 8001b38:	ba c0 08 00 	mv r1,r22                                      
 8001b3c:	b9 e0 10 00 	mv r2,r15                                      
 8001b40:	f8 00 11 ad 	calli 80061f4 <_TOD_Get_with_nanoseconds>      
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
 8001b44:	2b 82 00 7c 	lw r2,(sp+124)                                 
 8001b48:	2b 84 00 54 	lw r4,(sp+84)                                  
 8001b4c:	2b 85 00 50 	lw r5,(sp+80)                                  
 8001b50:	2b 81 00 78 	lw r1,(sp+120)                                 
 8001b54:	c8 44 18 00 	sub r3,r2,r4                                   
 8001b58:	f4 62 10 00 	cmpgu r2,r3,r2                                 
 8001b5c:	c8 25 08 00 	sub r1,r1,r5                                   
 8001b60:	c8 22 08 00 	sub r1,r1,r2                                   
 8001b64:	5b 81 00 70 	sw (sp+112),r1                                 
 8001b68:	5b 83 00 74 	sw (sp+116),r3                                 
            _Timestamp_Add_to( &ran, &used );                         
          } else {                                                    
            _TOD_Get_uptime( &uptime );                               
          }                                                           
          _Timestamp_Subtract( &uptime_at_last_reset, &uptime, &total );
          _Timestamp_Divide( &ran, &total, &ival, &fval );            
 8001b6c:	bb 60 08 00 	mv r1,fp                                       
 8001b70:	bb 20 10 00 	mv r2,r25                                      
 8001b74:	37 83 00 84 	addi r3,sp,132                                 
 8001b78:	bb 00 20 00 	mv r4,r24                                      
 8001b7c:	f8 00 1c 93 	calli 8008dc8 <_Timestamp64_Divide>            
                                                                      
static inline uint32_t _Timestamp64_implementation_Get_seconds(       
  const Timestamp64_Control *_time                                    
)                                                                     
{                                                                     
  return (uint32_t) (*_time / 1000000000L);                           
 8001b80:	78 07 08 01 	mvhi r7,0x801                                  
}                                                                     
                                                                      
void rtems_cpu_usage_report( void )                                   
{                                                                     
  rtems_cpu_usage_report_with_plugin( NULL, printk_plugin );          
}                                                                     
 8001b84:	2b 86 00 68 	lw r6,(sp+104)                                 
 8001b88:	2b 85 00 6c 	lw r5,(sp+108)                                 
 8001b8c:	38 e7 dc e8 	ori r7,r7,0xdce8                               
 8001b90:	28 e4 00 00 	lw r4,(r7+0)                                   
 8001b94:	b8 c0 08 00 	mv r1,r6                                       
 8001b98:	b8 a0 10 00 	mv r2,r5                                       
 8001b9c:	34 03 00 00 	mvi r3,0                                       
 8001ba0:	5b 85 00 48 	sw (sp+72),r5                                  
 8001ba4:	5b 86 00 4c 	sw (sp+76),r6                                  
 8001ba8:	f8 00 56 35 	calli 801747c <__divdi3>                       
                                                                      
static inline uint32_t _Timestamp64_implementation_Get_nanoseconds(   
  const Timestamp64_Control *_time                                    
)                                                                     
{                                                                     
  return (uint32_t) (*_time % 1000000000L);                           
 8001bac:	2b 85 00 48 	lw r5,(sp+72)                                  
                                                                      
static inline uint32_t _Timestamp64_implementation_Get_seconds(       
  const Timestamp64_Control *_time                                    
)                                                                     
{                                                                     
  return (uint32_t) (*_time / 1000000000L);                           
 8001bb0:	b8 40 58 00 	mv r11,r2                                      
                                                                      
static inline uint32_t _Timestamp64_implementation_Get_nanoseconds(   
  const Timestamp64_Control *_time                                    
)                                                                     
{                                                                     
  return (uint32_t) (*_time % 1000000000L);                           
 8001bb4:	2b 86 00 4c 	lw r6,(sp+76)                                  
 8001bb8:	b8 a0 10 00 	mv r2,r5                                       
 8001bbc:	78 05 08 01 	mvhi r5,0x801                                  
 8001bc0:	38 a5 dc e8 	ori r5,r5,0xdce8                               
 8001bc4:	28 a4 00 00 	lw r4,(r5+0)                                   
 8001bc8:	b8 c0 08 00 	mv r1,r6                                       
 8001bcc:	34 03 00 00 	mvi r3,0                                       
 8001bd0:	f8 00 58 2d 	calli 8017c84 <__moddi3>                       
          /*                                                          
           * Print the information                                    
           */                                                         
                                                                      
          seconds = _Timestamp_Get_seconds( &ran );                   
          nanoseconds = _Timestamp_Get_nanoseconds( &ran ) /          
 8001bd4:	b8 40 08 00 	mv r1,r2                                       
 8001bd8:	34 02 03 e8 	mvi r2,1000                                    
 8001bdc:	f8 00 6b 67 	calli 801c978 <__udivsi3>                      
            TOD_NANOSECONDS_PER_MICROSECOND;                          
          (*print)( context,                                          
 8001be0:	2b 85 00 84 	lw r5,(sp+132)                                 
 8001be4:	2b 86 00 80 	lw r6,(sp+128)                                 
          /*                                                          
           * Print the information                                    
           */                                                         
                                                                      
          seconds = _Timestamp_Get_seconds( &ran );                   
          nanoseconds = _Timestamp_Get_nanoseconds( &ran ) /          
 8001be8:	b8 20 20 00 	mv r4,r1                                       
            TOD_NANOSECONDS_PER_MICROSECOND;                          
          (*print)( context,                                          
 8001bec:	ba 40 10 00 	mv r2,r18                                      
 8001bf0:	ba 20 08 00 	mv r1,r17                                      
 8001bf4:	b9 60 18 00 	mv r3,r11                                      
 8001bf8:	d9 c0 00 00 	call r14                                       
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( information ) {                                              
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
 8001bfc:	36 94 00 01 	addi r20,r20,1                                 
 8001c00:	36 b5 00 04 	addi r21,r21,4                                 
 8001c04:	2e 01 00 10 	lhu r1,(r16+16)                                
 8001c08:	50 34 ff a1 	bgeu r1,r20,8001a8c <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++ ) {
 8001c0c:	78 07 08 02 	mvhi r7,0x802                                  
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( information ) {                                              
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
 8001c10:	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++ ) {
 8001c14:	38 e7 0c 6c 	ori r7,r7,0xc6c                                
 8001c18:	5d a7 ff 96 	bne r13,r7,8001a70 <rtems_cpu_usage_report_with_plugin+0xbc>
                                                                      
static inline uint32_t _Timestamp64_implementation_Get_seconds(       
  const Timestamp64_Control *_time                                    
)                                                                     
{                                                                     
  return (uint32_t) (*_time / 1000000000L);                           
 8001c1c:	78 05 08 01 	mvhi r5,0x801                                  
 8001c20:	38 a5 dc e8 	ori r5,r5,0xdce8                               
}                                                                     
                                                                      
void rtems_cpu_usage_report( void )                                   
{                                                                     
  rtems_cpu_usage_report_with_plugin( NULL, printk_plugin );          
}                                                                     
 8001c24:	2b 8f 00 70 	lw r15,(sp+112)                                
 8001c28:	2b 8d 00 74 	lw r13,(sp+116)                                
 8001c2c:	28 a4 00 00 	lw r4,(r5+0)                                   
 8001c30:	34 03 00 00 	mvi r3,0                                       
 8001c34:	b9 e0 08 00 	mv r1,r15                                      
 8001c38:	b9 a0 10 00 	mv r2,r13                                      
 8001c3c:	f8 00 56 10 	calli 801747c <__divdi3>                       
                                                                      
static inline uint32_t _Timestamp64_implementation_Get_nanoseconds(   
  const Timestamp64_Control *_time                                    
)                                                                     
{                                                                     
  return (uint32_t) (*_time % 1000000000L);                           
 8001c40:	78 07 08 01 	mvhi r7,0x801                                  
 8001c44:	38 e7 dc e8 	ori r7,r7,0xdce8                               
 8001c48:	28 e4 00 00 	lw r4,(r7+0)                                   
 8001c4c:	34 03 00 00 	mvi r3,0                                       
                                                                      
static inline uint32_t _Timestamp64_implementation_Get_seconds(       
  const Timestamp64_Control *_time                                    
)                                                                     
{                                                                     
  return (uint32_t) (*_time / 1000000000L);                           
 8001c50:	b8 40 60 00 	mv r12,r2                                      
                                                                      
static inline uint32_t _Timestamp64_implementation_Get_nanoseconds(   
  const Timestamp64_Control *_time                                    
)                                                                     
{                                                                     
  return (uint32_t) (*_time % 1000000000L);                           
 8001c54:	b9 e0 08 00 	mv r1,r15                                      
 8001c58:	b9 a0 10 00 	mv r2,r13                                      
 8001c5c:	f8 00 58 0a 	calli 8017c84 <__moddi3>                       
    }                                                                 
  }                                                                   
                                                                      
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    seconds = _Timestamp_Get_seconds( &total );                       
    nanoseconds = _Timestamp_Get_nanoseconds( &total ) /              
 8001c60:	b8 40 08 00 	mv r1,r2                                       
      TOD_NANOSECONDS_PER_MICROSECOND;                                
    (*print)(                                                         
 8001c64:	78 0b 08 01 	mvhi r11,0x801                                 
    }                                                                 
  }                                                                   
                                                                      
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    seconds = _Timestamp_Get_seconds( &total );                       
    nanoseconds = _Timestamp_Get_nanoseconds( &total ) /              
 8001c68:	34 02 03 e8 	mvi r2,1000                                    
 8001c6c:	f8 00 6b 43 	calli 801c978 <__udivsi3>                      
      TOD_NANOSECONDS_PER_MICROSECOND;                                
    (*print)(                                                         
 8001c70:	39 6b db fc 	ori r11,r11,0xdbfc                             
    }                                                                 
  }                                                                   
                                                                      
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    seconds = _Timestamp_Get_seconds( &total );                       
    nanoseconds = _Timestamp_Get_nanoseconds( &total ) /              
 8001c74:	b8 20 20 00 	mv r4,r1                                       
      TOD_NANOSECONDS_PER_MICROSECOND;                                
    (*print)(                                                         
 8001c78:	b9 60 10 00 	mv r2,r11                                      
 8001c7c:	ba 20 08 00 	mv r1,r17                                      
 8001c80:	b9 80 18 00 	mv r3,r12                                      
 8001c84:	d9 c0 00 00 	call r14                                       
       "-------------------------------------------------------------------------------\n",
       _Watchdog_Ticks_since_boot - CPU_usage_Ticks_at_last_reset,    
       total_units                                                    
    );                                                                
  #endif                                                              
}                                                                     
 8001c88:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001c8c:	2b 8b 00 44 	lw r11,(sp+68)                                 
 8001c90:	2b 8c 00 40 	lw r12,(sp+64)                                 
 8001c94:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 8001c98:	2b 8e 00 38 	lw r14,(sp+56)                                 
 8001c9c:	2b 8f 00 34 	lw r15,(sp+52)                                 
 8001ca0:	2b 90 00 30 	lw r16,(sp+48)                                 
 8001ca4:	2b 91 00 2c 	lw r17,(sp+44)                                 
 8001ca8:	2b 92 00 28 	lw r18,(sp+40)                                 
 8001cac:	2b 93 00 24 	lw r19,(sp+36)                                 
 8001cb0:	2b 94 00 20 	lw r20,(sp+32)                                 
 8001cb4:	2b 95 00 1c 	lw r21,(sp+28)                                 
 8001cb8:	2b 96 00 18 	lw r22,(sp+24)                                 
 8001cbc:	2b 97 00 14 	lw r23,(sp+20)                                 
 8001cc0:	2b 98 00 10 	lw r24,(sp+16)                                 
 8001cc4:	2b 99 00 0c 	lw r25,(sp+12)                                 
 8001cc8:	2b 9b 00 08 	lw fp,(sp+8)                                   
 8001ccc:	37 9c 00 84 	addi sp,sp,132                                 
 8001cd0:	c3 a0 00 00 	ret                                            
                                                                      

0800b774 <rtems_deviceio_errno>: [RTEMS_IO_ERROR] = EIO, [RTEMS_PROXY_BLOCKING] = EIO }; int rtems_deviceio_errno(rtems_status_code sc) {
 800b774:	37 9c ff f8 	addi sp,sp,-8                                  
 800b778:	5b 8b 00 08 	sw (sp+8),r11                                  
 800b77c:	5b 9d 00 04 	sw (sp+4),ra                                   
  if (sc == RTEMS_SUCCESSFUL) {                                       
    return 0;                                                         
 800b780:	34 02 00 00 	mvi r2,0                                       
  [RTEMS_PROXY_BLOCKING]           = EIO                              
};                                                                    
                                                                      
int rtems_deviceio_errno(rtems_status_code sc)                        
{                                                                     
  if (sc == RTEMS_SUCCESSFUL) {                                       
 800b784:	44 20 00 0d 	be r1,r0,800b7b8 <rtems_deviceio_errno+0x44>   
    return 0;                                                         
  } else {                                                            
    int eno = EINVAL;                                                 
                                                                      
    if ((unsigned) sc <= RTEMS_STATUS_CODES_LAST) {                   
 800b788:	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;                                                 
 800b78c:	34 0b 00 16 	mvi r11,22                                     
                                                                      
    if ((unsigned) sc <= RTEMS_STATUS_CODES_LAST) {                   
 800b790:	54 22 00 07 	bgu r1,r2,800b7ac <rtems_deviceio_errno+0x38>  <== NEVER TAKEN
      eno = status_code_to_errno [sc];                                
 800b794:	78 0b 08 01 	mvhi r11,0x801                                 
 800b798:	34 02 00 02 	mvi r2,2                                       
 800b79c:	39 6b be 04 	ori r11,r11,0xbe04                             
 800b7a0:	f8 00 3a a6 	calli 801a238 <__ashlsi3>                      
 800b7a4:	b5 61 08 00 	add r1,r11,r1                                  
 800b7a8:	28 2b 00 00 	lw r11,(r1+0)                                  
    }                                                                 
                                                                      
    errno = eno;                                                      
 800b7ac:	f8 00 00 18 	calli 800b80c <__errno>                        
 800b7b0:	58 2b 00 00 	sw (r1+0),r11                                  
                                                                      
    return -1;                                                        
 800b7b4:	34 02 ff ff 	mvi r2,-1                                      
  }                                                                   
}                                                                     
 800b7b8:	b8 40 08 00 	mv r1,r2                                       
 800b7bc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800b7c0:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800b7c4:	37 9c 00 08 	addi sp,sp,8                                   
 800b7c8:	c3 a0 00 00 	ret                                            
                                                                      

08001a10 <rtems_disk_create_log>: dev_t phys, rtems_blkdev_bnum block_begin, rtems_blkdev_bnum block_count, const char *name ) {
 8001a10:	37 9c ff d4 	addi sp,sp,-44                                 
 8001a14:	5b 8b 00 24 	sw (sp+36),r11                                 
 8001a18:	5b 8c 00 20 	sw (sp+32),r12                                 
 8001a1c:	5b 8d 00 1c 	sw (sp+28),r13                                 
 8001a20:	5b 8e 00 18 	sw (sp+24),r14                                 
 8001a24:	5b 8f 00 14 	sw (sp+20),r15                                 
 8001a28:	5b 90 00 10 	sw (sp+16),r16                                 
 8001a2c:	5b 91 00 0c 	sw (sp+12),r17                                 
 8001a30:	5b 92 00 08 	sw (sp+8),r18                                  
 8001a34:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001a38:	b8 20 70 00 	mv r14,r1                                      
 8001a3c:	b8 40 68 00 	mv r13,r2                                      
 8001a40:	b8 60 90 00 	mv r18,r3                                      
 8001a44:	b8 80 60 00 	mv r12,r4                                      
 8001a48:	b8 a0 80 00 	mv r16,r5                                      
 8001a4c:	b8 c0 78 00 	mv r15,r6                                      
 8001a50:	b8 e0 88 00 	mv r17,r7                                      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device *phys_dd = NULL;                                  
  rtems_disk_device *dd = NULL;                                       
 8001a54:	5b 80 00 2c 	sw (sp+44),r0                                  
  char *alloc_name = NULL;                                            
 8001a58:	5b 80 00 28 	sw (sp+40),r0                                  
                                                                      
  sc = disk_lock();                                                   
 8001a5c:	fb ff fe 9c 	calli 80014cc <disk_lock>                      
 8001a60:	b8 20 58 00 	mv r11,r1                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
 8001a64:	5c 20 00 28 	bne r1,r0,8001b04 <rtems_disk_create_log+0xf4> <== NEVER TAKEN
    return sc;                                                        
  }                                                                   
                                                                      
  phys_dd = get_disk_entry(phys, true);                               
 8001a68:	b9 80 10 00 	mv r2,r12                                      
 8001a6c:	ba 40 08 00 	mv r1,r18                                      
 8001a70:	34 03 00 01 	mvi r3,1                                       
 8001a74:	fb ff fe 4f 	calli 80013b0 <get_disk_entry>                 
 8001a78:	b8 20 60 00 	mv r12,r1                                      
  if (phys_dd == NULL) {                                              
 8001a7c:	5c 2b 00 04 	bne r1,r11,8001a8c <rtems_disk_create_log+0x7c>
    disk_unlock();                                                    
 8001a80:	fb ff fe a6 	calli 8001518 <disk_unlock>                    
                                                                      
    return RTEMS_INVALID_ID;                                          
 8001a84:	34 0b 00 04 	mvi r11,4                                      
 8001a88:	e0 00 00 1f 	bi 8001b04 <rtems_disk_create_log+0xf4>        
  }                                                                   
                                                                      
  sc = create_disk(dev, name, &dd, &alloc_name);                      
 8001a8c:	b9 c0 08 00 	mv r1,r14                                      
 8001a90:	b9 a0 10 00 	mv r2,r13                                      
 8001a94:	ba 20 18 00 	mv r3,r17                                      
 8001a98:	37 84 00 2c 	addi r4,sp,44                                  
 8001a9c:	37 85 00 28 	addi r5,sp,40                                  
 8001aa0:	fb ff fe af 	calli 800155c <create_disk>                    
 8001aa4:	b8 20 58 00 	mv r11,r1                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
 8001aa8:	5c 20 00 16 	bne r1,r0,8001b00 <rtems_disk_create_log+0xf0> 
    disk_unlock();                                                    
                                                                      
    return sc;                                                        
  }                                                                   
                                                                      
  sc = rtems_disk_init_log(                                           
 8001aac:	2b 81 00 2c 	lw r1,(sp+44)                                  
 8001ab0:	ba 00 18 00 	mv r3,r16                                      
 8001ab4:	b9 80 10 00 	mv r2,r12                                      
 8001ab8:	b9 e0 20 00 	mv r4,r15                                      
 8001abc:	f8 00 2a 98 	calli 800c51c <rtems_disk_init_log>            
    phys_dd,                                                          
    block_begin,                                                      
    block_count                                                       
  );                                                                  
                                                                      
  dd->dev = dev;                                                      
 8001ac0:	2b 83 00 2c 	lw r3,(sp+44)                                  
    disk_unlock();                                                    
                                                                      
    return sc;                                                        
  }                                                                   
                                                                      
  sc = rtems_disk_init_log(                                           
 8001ac4:	b8 20 58 00 	mv r11,r1                                      
    block_begin,                                                      
    block_count                                                       
  );                                                                  
                                                                      
  dd->dev = dev;                                                      
  dd->name = alloc_name;                                              
 8001ac8:	2b 81 00 28 	lw r1,(sp+40)                                  
    phys_dd,                                                          
    block_begin,                                                      
    block_count                                                       
  );                                                                  
                                                                      
  dd->dev = dev;                                                      
 8001acc:	58 6e 00 00 	sw (r3+0),r14                                  
 8001ad0:	58 6d 00 04 	sw (r3+4),r13                                  
  dd->name = alloc_name;                                              
 8001ad4:	58 61 00 10 	sw (r3+16),r1                                  
                                                                      
  ++phys_dd->uses;                                                    
 8001ad8:	29 81 00 14 	lw r1,(r12+20)                                 
 8001adc:	34 21 00 01 	addi r1,r1,1                                   
 8001ae0:	59 81 00 14 	sw (r12+20),r1                                 
                                                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
 8001ae4:	45 60 00 07 	be r11,r0,8001b00 <rtems_disk_create_log+0xf0> 
    dd->ioctl = null_handler;                                         
 8001ae8:	78 01 08 00 	mvhi r1,0x800                                  
 8001aec:	38 21 14 68 	ori r1,r1,0x1468                               
 8001af0:	58 61 00 38 	sw (r3+56),r1                                  
    rtems_disk_delete(dev);                                           
 8001af4:	b9 a0 10 00 	mv r2,r13                                      
 8001af8:	b9 c0 08 00 	mv r1,r14                                      
 8001afc:	fb ff ff 3a 	calli 80017e4 <rtems_disk_delete>              
    disk_unlock();                                                    
                                                                      
    return sc;                                                        
  }                                                                   
                                                                      
  disk_unlock();                                                      
 8001b00:	fb ff fe 86 	calli 8001518 <disk_unlock>                    
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 8001b04:	b9 60 08 00 	mv r1,r11                                      
 8001b08:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001b0c:	2b 8b 00 24 	lw r11,(sp+36)                                 
 8001b10:	2b 8c 00 20 	lw r12,(sp+32)                                 
 8001b14:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 8001b18:	2b 8e 00 18 	lw r14,(sp+24)                                 
 8001b1c:	2b 8f 00 14 	lw r15,(sp+20)                                 
 8001b20:	2b 90 00 10 	lw r16,(sp+16)                                 
 8001b24:	2b 91 00 0c 	lw r17,(sp+12)                                 
 8001b28:	2b 92 00 08 	lw r18,(sp+8)                                  
 8001b2c:	37 9c 00 2c 	addi sp,sp,44                                  
 8001b30:	c3 a0 00 00 	ret                                            
                                                                      

08001b34 <rtems_disk_create_phys>: rtems_blkdev_bnum block_count, rtems_block_device_ioctl handler, void *driver_data, const char *name ) {
 8001b34:	37 9c ff d4 	addi sp,sp,-44                                 
 8001b38:	5b 8b 00 24 	sw (sp+36),r11                                 
 8001b3c:	5b 8c 00 20 	sw (sp+32),r12                                 
 8001b40:	5b 8d 00 1c 	sw (sp+28),r13                                 
 8001b44:	5b 8e 00 18 	sw (sp+24),r14                                 
 8001b48:	5b 8f 00 14 	sw (sp+20),r15                                 
 8001b4c:	5b 90 00 10 	sw (sp+16),r16                                 
 8001b50:	5b 91 00 0c 	sw (sp+12),r17                                 
 8001b54:	5b 92 00 08 	sw (sp+8),r18                                  
 8001b58:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_disk_device *dd = NULL;                                       
 8001b5c:	5b 80 00 2c 	sw (sp+44),r0                                  
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  char *alloc_name = NULL;                                            
 8001b60:	5b 80 00 28 	sw (sp+40),r0                                  
  rtems_blkdev_bnum block_count,                                      
  rtems_block_device_ioctl handler,                                   
  void *driver_data,                                                  
  const char *name                                                    
)                                                                     
{                                                                     
 8001b64:	b8 20 68 00 	mv r13,r1                                      
 8001b68:	b8 40 60 00 	mv r12,r2                                      
 8001b6c:	b8 60 88 00 	mv r17,r3                                      
 8001b70:	b8 80 80 00 	mv r16,r4                                      
 8001b74:	b8 a0 70 00 	mv r14,r5                                      
 8001b78:	b8 c0 78 00 	mv r15,r6                                      
 8001b7c:	b8 e0 90 00 	mv r18,r7                                      
  rtems_disk_device *dd = NULL;                                       
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  char *alloc_name = NULL;                                            
                                                                      
  if (handler == NULL) {                                              
    return RTEMS_INVALID_ADDRESS;                                     
 8001b80:	34 0b 00 09 	mvi r11,9                                      
{                                                                     
  rtems_disk_device *dd = NULL;                                       
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  char *alloc_name = NULL;                                            
                                                                      
  if (handler == NULL) {                                              
 8001b84:	44 a0 00 20 	be r5,r0,8001c04 <rtems_disk_create_phys+0xd0> 
    return RTEMS_INVALID_ADDRESS;                                     
  }                                                                   
                                                                      
  sc = disk_lock();                                                   
 8001b88:	fb ff fe 51 	calli 80014cc <disk_lock>                      
 8001b8c:	b8 20 58 00 	mv r11,r1                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
 8001b90:	5c 20 00 1d 	bne r1,r0,8001c04 <rtems_disk_create_phys+0xd0><== NEVER TAKEN
    return sc;                                                        
  }                                                                   
                                                                      
  sc = create_disk(dev, name, &dd, &alloc_name);                      
 8001b94:	b9 a0 08 00 	mv r1,r13                                      
 8001b98:	b9 80 10 00 	mv r2,r12                                      
 8001b9c:	ba 40 18 00 	mv r3,r18                                      
 8001ba0:	37 84 00 2c 	addi r4,sp,44                                  
 8001ba4:	37 85 00 28 	addi r5,sp,40                                  
 8001ba8:	fb ff fe 6d 	calli 800155c <create_disk>                    
 8001bac:	b8 20 58 00 	mv r11,r1                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
 8001bb0:	5c 20 00 14 	bne r1,r0,8001c00 <rtems_disk_create_phys+0xcc>
    disk_unlock();                                                    
                                                                      
    return sc;                                                        
  }                                                                   
                                                                      
  sc = rtems_disk_init_phys(                                          
 8001bb4:	2b 81 00 2c 	lw r1,(sp+44)                                  
 8001bb8:	ba 00 18 00 	mv r3,r16                                      
 8001bbc:	ba 20 10 00 	mv r2,r17                                      
 8001bc0:	b9 c0 20 00 	mv r4,r14                                      
 8001bc4:	b9 e0 28 00 	mv r5,r15                                      
 8001bc8:	f8 00 2a 28 	calli 800c468 <rtems_disk_init_phys>           
    block_count,                                                      
    handler,                                                          
    driver_data                                                       
  );                                                                  
                                                                      
  dd->dev = dev;                                                      
 8001bcc:	2b 83 00 2c 	lw r3,(sp+44)                                  
    disk_unlock();                                                    
                                                                      
    return sc;                                                        
  }                                                                   
                                                                      
  sc = rtems_disk_init_phys(                                          
 8001bd0:	b8 20 58 00 	mv r11,r1                                      
    handler,                                                          
    driver_data                                                       
  );                                                                  
                                                                      
  dd->dev = dev;                                                      
  dd->name = alloc_name;                                              
 8001bd4:	2b 81 00 28 	lw r1,(sp+40)                                  
    block_count,                                                      
    handler,                                                          
    driver_data                                                       
  );                                                                  
                                                                      
  dd->dev = dev;                                                      
 8001bd8:	58 6d 00 00 	sw (r3+0),r13                                  
 8001bdc:	58 6c 00 04 	sw (r3+4),r12                                  
  dd->name = alloc_name;                                              
 8001be0:	58 61 00 10 	sw (r3+16),r1                                  
                                                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
 8001be4:	45 60 00 07 	be r11,r0,8001c00 <rtems_disk_create_phys+0xcc>
    dd->ioctl = null_handler;                                         
 8001be8:	78 01 08 00 	mvhi r1,0x800                                  
 8001bec:	38 21 14 68 	ori r1,r1,0x1468                               
 8001bf0:	58 61 00 38 	sw (r3+56),r1                                  
    rtems_disk_delete(dev);                                           
 8001bf4:	b9 80 10 00 	mv r2,r12                                      
 8001bf8:	b9 a0 08 00 	mv r1,r13                                      
 8001bfc:	fb ff fe fa 	calli 80017e4 <rtems_disk_delete>              
    disk_unlock();                                                    
                                                                      
    return sc;                                                        
  }                                                                   
                                                                      
  disk_unlock();                                                      
 8001c00:	fb ff fe 46 	calli 8001518 <disk_unlock>                    
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 8001c04:	b9 60 08 00 	mv r1,r11                                      
 8001c08:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001c0c:	2b 8b 00 24 	lw r11,(sp+36)                                 
 8001c10:	2b 8c 00 20 	lw r12,(sp+32)                                 
 8001c14:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 8001c18:	2b 8e 00 18 	lw r14,(sp+24)                                 
 8001c1c:	2b 8f 00 14 	lw r15,(sp+20)                                 
 8001c20:	2b 90 00 10 	lw r16,(sp+16)                                 
 8001c24:	2b 91 00 0c 	lw r17,(sp+12)                                 
 8001c28:	2b 92 00 08 	lw r18,(sp+8)                                  
 8001c2c:	37 9c 00 2c 	addi sp,sp,44                                  
 8001c30:	c3 a0 00 00 	ret                                            
                                                                      

080017e4 <rtems_disk_delete>: } } rtems_status_code rtems_disk_delete(dev_t dev) {
 80017e4:	37 9c ff c4 	addi sp,sp,-60                                 
 80017e8:	5b 8b 00 38 	sw (sp+56),r11                                 
 80017ec:	5b 8c 00 34 	sw (sp+52),r12                                 
 80017f0:	5b 8d 00 30 	sw (sp+48),r13                                 
 80017f4:	5b 8e 00 2c 	sw (sp+44),r14                                 
 80017f8:	5b 8f 00 28 	sw (sp+40),r15                                 
 80017fc:	5b 90 00 24 	sw (sp+36),r16                                 
 8001800:	5b 91 00 20 	sw (sp+32),r17                                 
 8001804:	5b 92 00 1c 	sw (sp+28),r18                                 
 8001808:	5b 93 00 18 	sw (sp+24),r19                                 
 800180c:	5b 94 00 14 	sw (sp+20),r20                                 
 8001810:	5b 95 00 10 	sw (sp+16),r21                                 
 8001814:	5b 96 00 0c 	sw (sp+12),r22                                 
 8001818:	5b 97 00 08 	sw (sp+8),r23                                  
 800181c:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device *dd = NULL;                                       
                                                                      
  sc = disk_lock();                                                   
 8001820:	5b 82 00 3c 	sw (sp+60),r2                                  
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_disk_delete(dev_t dev)                                          
{                                                                     
 8001824:	b8 20 58 00 	mv r11,r1                                      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device *dd = NULL;                                       
                                                                      
  sc = disk_lock();                                                   
 8001828:	fb ff ff 29 	calli 80014cc <disk_lock>                      
 800182c:	b8 20 68 00 	mv r13,r1                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
 8001830:	2b 82 00 3c 	lw r2,(sp+60)                                  
 8001834:	5c 20 00 66 	bne r1,r0,80019cc <rtems_disk_delete+0x1e8>    <== NEVER TAKEN
    return sc;                                                        
  }                                                                   
                                                                      
  dd = get_disk_entry(dev, true);                                     
 8001838:	b9 60 08 00 	mv r1,r11                                      
 800183c:	34 03 00 01 	mvi r3,1                                       
 8001840:	fb ff fe dc 	calli 80013b0 <get_disk_entry>                 
 8001844:	b8 20 60 00 	mv r12,r1                                      
  if (dd == NULL) {                                                   
 8001848:	5c 2d 00 04 	bne r1,r13,8001858 <rtems_disk_delete+0x74>    <== ALWAYS TAKEN
    disk_unlock();                                                    
 800184c:	fb ff ff 33 	calli 8001518 <disk_unlock>                    <== NOT EXECUTED
                                                                      
    return RTEMS_INVALID_ID;                                          
 8001850:	34 0d 00 04 	mvi r13,4                                      <== NOT EXECUTED
 8001854:	e0 00 00 5e 	bi 80019cc <rtems_disk_delete+0x1e8>           <== NOT EXECUTED
}                                                                     
                                                                      
static void                                                           
rtems_disk_cleanup(rtems_disk_device *disk_to_remove)                 
{                                                                     
  rtems_disk_device *const physical_disk = disk_to_remove->phys_dev;  
 8001858:	29 8b 00 08 	lw r11,(r12+8)                                 
    disk_unlock();                                                    
                                                                      
    return RTEMS_INVALID_ID;                                          
  }                                                                   
                                                                      
  dd->deleted = true;                                                 
 800185c:	34 01 00 01 	mvi r1,1                                       
 8001860:	31 81 00 40 	sb (r12+64),r1                                 
{                                                                     
  rtems_disk_device *const physical_disk = disk_to_remove->phys_dev;  
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  if (physical_disk->deleted) {                                       
 8001864:	41 61 00 40 	lbu r1,(r11+64)                                
 8001868:	44 20 00 43 	be r1,r0,8001974 <rtems_disk_delete+0x190>     
    dev_t dev = physical_disk->dev;                                   
    unsigned deleted_count = 0;                                       
                                                                      
    for (major = 0; major < disktab_size; ++major) {                  
 800186c:	78 0e 08 01 	mvhi r14,0x801                                 
      rtems_disk_device_table *dtab = disktab + major;                
 8001870:	78 0c 08 01 	mvhi r12,0x801                                 
  rtems_disk_device *const physical_disk = disk_to_remove->phys_dev;  
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  if (physical_disk->deleted) {                                       
    dev_t dev = physical_disk->dev;                                   
 8001874:	29 77 00 00 	lw r23,(r11+0)                                 
 8001878:	29 76 00 04 	lw r22,(r11+4)                                 
 800187c:	34 11 00 00 	mvi r17,0                                      
    unsigned deleted_count = 0;                                       
 8001880:	34 0f 00 00 	mvi r15,0                                      
                                                                      
    for (major = 0; major < disktab_size; ++major) {                  
 8001884:	34 10 00 00 	mvi r16,0                                      
 8001888:	39 ce 96 d8 	ori r14,r14,0x96d8                             
      rtems_disk_device_table *dtab = disktab + major;                
 800188c:	39 8c 96 d4 	ori r12,r12,0x96d4                             
          if (dd->uses == 0) {                                        
            ++deleted_count;                                          
            dtab->minor [minor] = NULL;                               
            free_disk_device(dd);                                     
          } else {                                                    
            dd->deleted = true;                                       
 8001890:	34 15 00 01 	mvi r21,1                                      
 8001894:	e0 00 00 22 	bi 800191c <rtems_disk_delete+0x138>           
  if (physical_disk->deleted) {                                       
    dev_t dev = physical_disk->dev;                                   
    unsigned deleted_count = 0;                                       
                                                                      
    for (major = 0; major < disktab_size; ++major) {                  
      rtems_disk_device_table *dtab = disktab + major;                
 8001898:	29 94 00 00 	lw r20,(r12+0)                                 
 800189c:	34 13 00 00 	mvi r19,0                                      
                                                                      
      for (minor = 0; minor < dtab->size; ++minor) {                  
 80018a0:	34 12 00 00 	mvi r18,0                                      
  if (physical_disk->deleted) {                                       
    dev_t dev = physical_disk->dev;                                   
    unsigned deleted_count = 0;                                       
                                                                      
    for (major = 0; major < disktab_size; ++major) {                  
      rtems_disk_device_table *dtab = disktab + major;                
 80018a4:	b6 91 a0 00 	add r20,r20,r17                                
 80018a8:	e0 00 00 19 	bi 800190c <rtems_disk_delete+0x128>           
                                                                      
      for (minor = 0; minor < dtab->size; ++minor) {                  
        rtems_disk_device *dd = dtab->minor [minor];                  
 80018ac:	2a 81 00 00 	lw r1,(r20+0)                                  
 80018b0:	b4 33 08 00 	add r1,r1,r19                                  
 80018b4:	28 22 00 00 	lw r2,(r1+0)                                   
                                                                      
        if (dd != NULL && dd->phys_dev->dev == dev && dd != physical_disk) {
 80018b8:	44 40 00 13 	be r2,r0,8001904 <rtems_disk_delete+0x120>     
 80018bc:	28 43 00 08 	lw r3,(r2+8)                                   
 80018c0:	fc 4b 20 00 	cmpne r4,r2,r11                                
 80018c4:	28 65 00 00 	lw r5,(r3+0)                                   
 80018c8:	28 63 00 04 	lw r3,(r3+4)                                   
 80018cc:	98 b7 28 00 	xor r5,r5,r23                                  
 80018d0:	98 76 18 00 	xor r3,r3,r22                                  
 80018d4:	b8 a3 18 00 	or r3,r5,r3                                    
 80018d8:	64 63 00 00 	cmpei r3,r3,0                                  
 80018dc:	a0 83 18 00 	and r3,r4,r3                                   
 80018e0:	44 60 00 09 	be r3,r0,8001904 <rtems_disk_delete+0x120>     
          if (dd->uses == 0) {                                        
 80018e4:	28 43 00 14 	lw r3,(r2+20)                                  
 80018e8:	5c 60 00 06 	bne r3,r0,8001900 <rtems_disk_delete+0x11c>    
            ++deleted_count;                                          
            dtab->minor [minor] = NULL;                               
 80018ec:	58 20 00 00 	sw (r1+0),r0                                   
            free_disk_device(dd);                                     
 80018f0:	b8 40 08 00 	mv r1,r2                                       
      for (minor = 0; minor < dtab->size; ++minor) {                  
        rtems_disk_device *dd = dtab->minor [minor];                  
                                                                      
        if (dd != NULL && dd->phys_dev->dev == dev && dd != physical_disk) {
          if (dd->uses == 0) {                                        
            ++deleted_count;                                          
 80018f4:	35 ef 00 01 	addi r15,r15,1                                 
            dtab->minor [minor] = NULL;                               
            free_disk_device(dd);                                     
 80018f8:	fb ff fe de 	calli 8001470 <free_disk_device>               
 80018fc:	e0 00 00 02 	bi 8001904 <rtems_disk_delete+0x120>           
          } else {                                                    
            dd->deleted = true;                                       
 8001900:	30 55 00 40 	sb (r2+64),r21                                 
    unsigned deleted_count = 0;                                       
                                                                      
    for (major = 0; major < disktab_size; ++major) {                  
      rtems_disk_device_table *dtab = disktab + major;                
                                                                      
      for (minor = 0; minor < dtab->size; ++minor) {                  
 8001904:	36 52 00 01 	addi r18,r18,1                                 
 8001908:	36 73 00 04 	addi r19,r19,4                                 
 800190c:	2a 81 00 04 	lw r1,(r20+4)                                  
 8001910:	54 32 ff e7 	bgu r1,r18,80018ac <rtems_disk_delete+0xc8>    
                                                                      
  if (physical_disk->deleted) {                                       
    dev_t dev = physical_disk->dev;                                   
    unsigned deleted_count = 0;                                       
                                                                      
    for (major = 0; major < disktab_size; ++major) {                  
 8001914:	36 10 00 01 	addi r16,r16,1                                 
 8001918:	36 31 00 08 	addi r17,r17,8                                 
 800191c:	29 c1 00 00 	lw r1,(r14+0)                                  
 8001920:	54 30 ff de 	bgu r1,r16,8001898 <rtems_disk_delete+0xb4>    
          }                                                           
        }                                                             
      }                                                               
    }                                                                 
                                                                      
    physical_disk->uses -= deleted_count;                             
 8001924:	29 61 00 14 	lw r1,(r11+20)                                 
 8001928:	c8 2f 78 00 	sub r15,r1,r15                                 
 800192c:	59 6f 00 14 	sw (r11+20),r15                                
    if (physical_disk->uses == 0) {                                   
 8001930:	5d e0 00 26 	bne r15,r0,80019c8 <rtems_disk_delete+0x1e4>   
      rtems_filesystem_split_dev_t(physical_disk->dev, major, minor); 
      disktab [major].minor [minor] = NULL;                           
 8001934:	78 02 08 01 	mvhi r2,0x801                                  
 8001938:	38 42 96 d4 	ori r2,r2,0x96d4                               
 800193c:	29 61 00 00 	lw r1,(r11+0)                                  
 8001940:	28 4c 00 00 	lw r12,(r2+0)                                  
 8001944:	34 02 00 03 	mvi r2,3                                       
 8001948:	f8 00 53 6c 	calli 80166f8 <__ashlsi3>                      
      }                                                               
    }                                                                 
                                                                      
    physical_disk->uses -= deleted_count;                             
    if (physical_disk->uses == 0) {                                   
      rtems_filesystem_split_dev_t(physical_disk->dev, major, minor); 
 800194c:	29 6e 00 04 	lw r14,(r11+4)                                 
      disktab [major].minor [minor] = NULL;                           
 8001950:	b5 81 10 00 	add r2,r12,r1                                  
 8001954:	28 4c 00 00 	lw r12,(r2+0)                                  
 8001958:	b9 c0 08 00 	mv r1,r14                                      
 800195c:	34 02 00 02 	mvi r2,2                                       
 8001960:	f8 00 53 66 	calli 80166f8 <__ashlsi3>                      
 8001964:	b5 81 08 00 	add r1,r12,r1                                  
 8001968:	58 20 00 00 	sw (r1+0),r0                                   
      free_disk_device(physical_disk);                                
 800196c:	b9 60 08 00 	mv r1,r11                                      
 8001970:	e0 00 00 15 	bi 80019c4 <rtems_disk_delete+0x1e0>           
    }                                                                 
  } else {                                                            
    if (disk_to_remove->uses == 0) {                                  
 8001974:	29 81 00 14 	lw r1,(r12+20)                                 
 8001978:	5c 20 00 14 	bne r1,r0,80019c8 <rtems_disk_delete+0x1e4>    <== NEVER TAKEN
      --physical_disk->uses;                                          
 800197c:	29 61 00 14 	lw r1,(r11+20)                                 
      rtems_filesystem_split_dev_t(disk_to_remove->dev, major, minor);
      disktab [major].minor [minor] = NULL;                           
 8001980:	78 02 08 01 	mvhi r2,0x801                                  
 8001984:	38 42 96 d4 	ori r2,r2,0x96d4                               
      disktab [major].minor [minor] = NULL;                           
      free_disk_device(physical_disk);                                
    }                                                                 
  } else {                                                            
    if (disk_to_remove->uses == 0) {                                  
      --physical_disk->uses;                                          
 8001988:	34 21 ff ff 	addi r1,r1,-1                                  
 800198c:	59 61 00 14 	sw (r11+20),r1                                 
      rtems_filesystem_split_dev_t(disk_to_remove->dev, major, minor);
      disktab [major].minor [minor] = NULL;                           
 8001990:	29 81 00 00 	lw r1,(r12+0)                                  
 8001994:	28 4b 00 00 	lw r11,(r2+0)                                  
 8001998:	34 02 00 03 	mvi r2,3                                       
 800199c:	f8 00 53 57 	calli 80166f8 <__ashlsi3>                      
      free_disk_device(physical_disk);                                
    }                                                                 
  } else {                                                            
    if (disk_to_remove->uses == 0) {                                  
      --physical_disk->uses;                                          
      rtems_filesystem_split_dev_t(disk_to_remove->dev, major, minor);
 80019a0:	29 8e 00 04 	lw r14,(r12+4)                                 
      disktab [major].minor [minor] = NULL;                           
 80019a4:	b5 61 10 00 	add r2,r11,r1                                  
 80019a8:	28 4b 00 00 	lw r11,(r2+0)                                  
 80019ac:	b9 c0 08 00 	mv r1,r14                                      
 80019b0:	34 02 00 02 	mvi r2,2                                       
 80019b4:	f8 00 53 51 	calli 80166f8 <__ashlsi3>                      
 80019b8:	b5 61 08 00 	add r1,r11,r1                                  
 80019bc:	58 20 00 00 	sw (r1+0),r0                                   
      free_disk_device(disk_to_remove);                               
 80019c0:	b9 80 08 00 	mv r1,r12                                      
 80019c4:	fb ff fe ab 	calli 8001470 <free_disk_device>               
  }                                                                   
                                                                      
  dd->deleted = true;                                                 
  rtems_disk_cleanup(dd);                                             
                                                                      
  disk_unlock();                                                      
 80019c8:	fb ff fe d4 	calli 8001518 <disk_unlock>                    
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 80019cc:	b9 a0 08 00 	mv r1,r13                                      
 80019d0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80019d4:	2b 8b 00 38 	lw r11,(sp+56)                                 
 80019d8:	2b 8c 00 34 	lw r12,(sp+52)                                 
 80019dc:	2b 8d 00 30 	lw r13,(sp+48)                                 
 80019e0:	2b 8e 00 2c 	lw r14,(sp+44)                                 
 80019e4:	2b 8f 00 28 	lw r15,(sp+40)                                 
 80019e8:	2b 90 00 24 	lw r16,(sp+36)                                 
 80019ec:	2b 91 00 20 	lw r17,(sp+32)                                 
 80019f0:	2b 92 00 1c 	lw r18,(sp+28)                                 
 80019f4:	2b 93 00 18 	lw r19,(sp+24)                                 
 80019f8:	2b 94 00 14 	lw r20,(sp+20)                                 
 80019fc:	2b 95 00 10 	lw r21,(sp+16)                                 
 8001a00:	2b 96 00 0c 	lw r22,(sp+12)                                 
 8001a04:	2b 97 00 08 	lw r23,(sp+8)                                  
 8001a08:	37 9c 00 3c 	addi sp,sp,60                                  
 8001a0c:	c3 a0 00 00 	ret                                            
                                                                      

08001e64 <rtems_disk_io_initialize>: rtems_status_code rtems_disk_io_initialize(void) {
 8001e64:	37 9c ff e8 	addi sp,sp,-24                                 
 8001e68:	5b 8b 00 18 	sw (sp+24),r11                                 
 8001e6c:	5b 8c 00 14 	sw (sp+20),r12                                 
 8001e70:	5b 8d 00 10 	sw (sp+16),r13                                 
 8001e74:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8001e78:	5b 8f 00 08 	sw (sp+8),r15                                  
 8001e7c:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_device_major_number size = DISKTAB_INITIAL_SIZE;              
                                                                      
  if (disktab_size > 0) {                                             
 8001e80:	78 0d 08 01 	mvhi r13,0x801                                 
 8001e84:	39 ad 96 d8 	ori r13,r13,0x96d8                             
 8001e88:	29 ae 00 00 	lw r14,(r13+0)                                 
    return RTEMS_SUCCESSFUL;                                          
 8001e8c:	34 0c 00 00 	mvi r12,0                                      
rtems_disk_io_initialize(void)                                        
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_device_major_number size = DISKTAB_INITIAL_SIZE;              
                                                                      
  if (disktab_size > 0) {                                             
 8001e90:	5d c0 00 26 	bne r14,r0,8001f28 <rtems_disk_io_initialize+0xc4>
    return RTEMS_SUCCESSFUL;                                          
  }                                                                   
                                                                      
  disktab = calloc(size, sizeof(rtems_disk_device_table));            
 8001e94:	34 01 00 08 	mvi r1,8                                       
 8001e98:	34 02 00 08 	mvi r2,8                                       
 8001e9c:	78 0b 08 01 	mvhi r11,0x801                                 
 8001ea0:	f8 00 02 52 	calli 80027e8 <calloc>                         
 8001ea4:	39 6b 96 d4 	ori r11,r11,0x96d4                             
 8001ea8:	59 61 00 00 	sw (r11+0),r1                                  
  if (disktab == NULL) {                                              
    return RTEMS_NO_MEMORY;                                           
 8001eac:	34 0c 00 1a 	mvi r12,26                                     
  if (disktab_size > 0) {                                             
    return RTEMS_SUCCESSFUL;                                          
  }                                                                   
                                                                      
  disktab = calloc(size, sizeof(rtems_disk_device_table));            
  if (disktab == NULL) {                                              
 8001eb0:	44 2e 00 1e 	be r1,r14,8001f28 <rtems_disk_io_initialize+0xc4><== NEVER TAKEN
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  diskdevs_protected = false;                                         
 8001eb4:	78 01 08 01 	mvhi r1,0x801                                  
  sc = rtems_semaphore_create(                                        
 8001eb8:	78 02 08 01 	mvhi r2,0x801                                  
  disktab = calloc(size, sizeof(rtems_disk_device_table));            
  if (disktab == NULL) {                                              
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  diskdevs_protected = false;                                         
 8001ebc:	38 21 96 e0 	ori r1,r1,0x96e0                               
  sc = rtems_semaphore_create(                                        
 8001ec0:	38 42 76 70 	ori r2,r2,0x7670                               
  disktab = calloc(size, sizeof(rtems_disk_device_table));            
  if (disktab == NULL) {                                              
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  diskdevs_protected = false;                                         
 8001ec4:	30 20 00 00 	sb (r1+0),r0                                   
  sc = rtems_semaphore_create(                                        
 8001ec8:	78 0e 08 01 	mvhi r14,0x801                                 
 8001ecc:	28 41 00 00 	lw r1,(r2+0)                                   
 8001ed0:	39 ce 96 dc 	ori r14,r14,0x96dc                             
 8001ed4:	34 02 00 01 	mvi r2,1                                       
 8001ed8:	34 03 00 10 	mvi r3,16                                      
 8001edc:	34 04 00 00 	mvi r4,0                                       
 8001ee0:	b9 c0 28 00 	mv r5,r14                                      
 8001ee4:	f8 00 0b 66 	calli 8004c7c <rtems_semaphore_create>         
 8001ee8:	b8 20 78 00 	mv r15,r1                                      
    RTEMS_FIFO | RTEMS_BINARY_SEMAPHORE | RTEMS_NO_INHERIT_PRIORITY   
      | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL,                      
    0,                                                                
    &diskdevs_mutex                                                   
  );                                                                  
  if (sc != RTEMS_SUCCESSFUL) {                                       
 8001eec:	44 20 00 04 	be r1,r0,8001efc <rtems_disk_io_initialize+0x98><== ALWAYS TAKEN
    free(disktab);                                                    
 8001ef0:	29 61 00 00 	lw r1,(r11+0)                                  <== NOT EXECUTED
 8001ef4:	f8 00 02 87 	calli 8002910 <free>                           <== NOT EXECUTED
                                                                      
    return RTEMS_NO_MEMORY;                                           
 8001ef8:	e0 00 00 0c 	bi 8001f28 <rtems_disk_io_initialize+0xc4>     <== NOT EXECUTED
  }                                                                   
                                                                      
  sc = rtems_bdbuf_init();                                            
 8001efc:	f8 00 24 41 	calli 800b000 <rtems_bdbuf_init>               
  if (sc != RTEMS_SUCCESSFUL) {                                       
 8001f00:	44 2f 00 07 	be r1,r15,8001f1c <rtems_disk_io_initialize+0xb8><== ALWAYS TAKEN
    rtems_semaphore_delete(diskdevs_mutex);                           
 8001f04:	29 c1 00 00 	lw r1,(r14+0)                                  <== NOT EXECUTED
    free(disktab);                                                    
                                                                      
    return RTEMS_UNSATISFIED;                                         
 8001f08:	34 0c 00 0d 	mvi r12,13                                     <== NOT EXECUTED
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  sc = rtems_bdbuf_init();                                            
  if (sc != RTEMS_SUCCESSFUL) {                                       
    rtems_semaphore_delete(diskdevs_mutex);                           
 8001f0c:	f8 00 0b d9 	calli 8004e70 <rtems_semaphore_delete>         <== NOT EXECUTED
    free(disktab);                                                    
 8001f10:	29 61 00 00 	lw r1,(r11+0)                                  <== NOT EXECUTED
 8001f14:	f8 00 02 7f 	calli 8002910 <free>                           <== NOT EXECUTED
                                                                      
    return RTEMS_UNSATISFIED;                                         
 8001f18:	e0 00 00 04 	bi 8001f28 <rtems_disk_io_initialize+0xc4>     <== NOT EXECUTED
  }                                                                   
                                                                      
  disktab_size = size;                                                
 8001f1c:	34 01 00 08 	mvi r1,8                                       
 8001f20:	59 a1 00 00 	sw (r13+0),r1                                  
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 8001f24:	34 0c 00 00 	mvi r12,0                                      
}                                                                     
 8001f28:	b9 80 08 00 	mv r1,r12                                      
 8001f2c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001f30:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8001f34:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8001f38:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8001f3c:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8001f40:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8001f44:	37 9c 00 18 	addi sp,sp,24                                  
 8001f48:	c3 a0 00 00 	ret                                            
                                                                      

08001d24 <rtems_disk_next>: rtems_disk_device * rtems_disk_next(dev_t dev) {
 8001d24:	37 9c ff e0 	addi sp,sp,-32                                 
 8001d28:	5b 8b 00 20 	sw (sp+32),r11                                 
 8001d2c:	5b 8c 00 1c 	sw (sp+28),r12                                 
 8001d30:	5b 8d 00 18 	sw (sp+24),r13                                 
 8001d34:	5b 8e 00 14 	sw (sp+20),r14                                 
 8001d38:	5b 8f 00 10 	sw (sp+16),r15                                 
 8001d3c:	5b 90 00 0c 	sw (sp+12),r16                                 
 8001d40:	5b 91 00 08 	sw (sp+8),r17                                  
 8001d44:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device_table *dtab = NULL;                               
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  if (dev != (dev_t) -1) {                                            
 8001d48:	34 03 ff ff 	mvi r3,-1                                      
 8001d4c:	5c 23 00 02 	bne r1,r3,8001d54 <rtems_disk_next+0x30>       
 8001d50:	44 41 00 09 	be r2,r1,8001d74 <rtems_disk_next+0x50>        <== ALWAYS TAKEN
    rtems_filesystem_split_dev_t(dev, major, minor);                  
                                                                      
    /* If minor wraps around */                                       
    if ((minor + 1) < minor) {                                        
 8001d54:	34 4c 00 01 	addi r12,r2,1                                  
)                                                                     
{                                                                     
  union __rtems_dev_t temp;                                           
                                                                      
  temp.device = device;                                               
  return temp.__overlay.major;                                        
 8001d58:	b8 20 58 00 	mv r11,r1                                      
 8001d5c:	51 82 00 08 	bgeu r12,r2,8001d7c <rtems_disk_next+0x58>     <== ALWAYS TAKEN
      /* If major wraps around */                                     
      if ((major + 1) < major) {                                      
 8001d60:	34 2b 00 01 	addi r11,r1,1                                  <== NOT EXECUTED
        return NULL;                                                  
 8001d64:	34 0d 00 00 	mvi r13,0                                      <== NOT EXECUTED
    rtems_filesystem_split_dev_t(dev, major, minor);                  
                                                                      
    /* If minor wraps around */                                       
    if ((minor + 1) < minor) {                                        
      /* If major wraps around */                                     
      if ((major + 1) < major) {                                      
 8001d68:	54 2b 00 34 	bgu r1,r11,8001e38 <rtems_disk_next+0x114>     <== NOT EXECUTED
        return NULL;                                                  
      }                                                               
      ++major;                                                        
      minor = 0;                                                      
 8001d6c:	34 0c 00 00 	mvi r12,0                                      <== NOT EXECUTED
 8001d70:	e0 00 00 03 	bi 8001d7c <rtems_disk_next+0x58>              <== NOT EXECUTED
rtems_disk_next(dev_t dev)                                            
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device_table *dtab = NULL;                               
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
 8001d74:	34 0c 00 00 	mvi r12,0                                      
rtems_disk_device *                                                   
rtems_disk_next(dev_t dev)                                            
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device_table *dtab = NULL;                               
  rtems_device_major_number major = 0;                                
 8001d78:	34 0b 00 00 	mvi r11,0                                      
    } else {                                                          
      ++minor;                                                        
    }                                                                 
  }                                                                   
                                                                      
  sc = disk_lock();                                                   
 8001d7c:	fb ff fd d4 	calli 80014cc <disk_lock>                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return NULL;                                                      
 8001d80:	34 0d 00 00 	mvi r13,0                                      
      ++minor;                                                        
    }                                                                 
  }                                                                   
                                                                      
  sc = disk_lock();                                                   
  if (sc != RTEMS_SUCCESSFUL) {                                       
 8001d84:	5c 20 00 2d 	bne r1,r0,8001e38 <rtems_disk_next+0x114>      <== NEVER TAKEN
    return NULL;                                                      
  }                                                                   
                                                                      
  if (major >= disktab_size) {                                        
 8001d88:	78 01 08 01 	mvhi r1,0x801                                  
 8001d8c:	38 21 96 d8 	ori r1,r1,0x96d8                               
 8001d90:	28 30 00 00 	lw r16,(r1+0)                                  
 8001d94:	56 0b 00 03 	bgu r16,r11,8001da0 <rtems_disk_next+0x7c>     <== ALWAYS TAKEN
    disk_unlock();                                                    
 8001d98:	fb ff fd e0 	calli 8001518 <disk_unlock>                    <== NOT EXECUTED
                                                                      
    return NULL;                                                      
 8001d9c:	e0 00 00 27 	bi 8001e38 <rtems_disk_next+0x114>             <== NOT EXECUTED
  }                                                                   
                                                                      
  dtab = disktab + major;                                             
 8001da0:	78 01 08 01 	mvhi r1,0x801                                  
 8001da4:	38 21 96 d4 	ori r1,r1,0x96d4                               
 8001da8:	28 2f 00 00 	lw r15,(r1+0)                                  
 8001dac:	34 02 00 03 	mvi r2,3                                       
 8001db0:	b9 60 08 00 	mv r1,r11                                      
 8001db4:	f8 00 52 51 	calli 80166f8 <__ashlsi3>                      
 8001db8:	b5 e1 68 00 	add r13,r15,r1                                 
  while (true) {                                                      
    if (dtab->minor == NULL || minor >= dtab->size) {                 
 8001dbc:	29 b1 00 00 	lw r17,(r13+0)                                 
 8001dc0:	46 20 00 03 	be r17,r0,8001dcc <rtems_disk_next+0xa8>       
 8001dc4:	29 a1 00 04 	lw r1,(r13+4)                                  
 8001dc8:	54 2c 00 0c 	bgu r1,r12,8001df8 <rtems_disk_next+0xd4>      
       minor = 0;                                                     
       ++major;                                                       
 8001dcc:	35 6b 00 01 	addi r11,r11,1                                 
       if (major >= disktab_size) {                                   
 8001dd0:	56 0b 00 04 	bgu r16,r11,8001de0 <rtems_disk_next+0xbc>     
         disk_unlock();                                               
 8001dd4:	fb ff fd d1 	calli 8001518 <disk_unlock>                    
                                                                      
         return NULL;                                                 
 8001dd8:	34 0d 00 00 	mvi r13,0                                      
 8001ddc:	e0 00 00 17 	bi 8001e38 <rtems_disk_next+0x114>             
       }                                                              
       dtab = disktab + major;                                        
 8001de0:	b9 60 08 00 	mv r1,r11                                      
 8001de4:	34 02 00 03 	mvi r2,3                                       
 8001de8:	f8 00 52 44 	calli 80166f8 <__ashlsi3>                      
 8001dec:	b5 e1 68 00 	add r13,r15,r1                                 
  }                                                                   
                                                                      
  dtab = disktab + major;                                             
  while (true) {                                                      
    if (dtab->minor == NULL || minor >= dtab->size) {                 
       minor = 0;                                                     
 8001df0:	34 0c 00 00 	mvi r12,0                                      
       if (major >= disktab_size) {                                   
         disk_unlock();                                               
                                                                      
         return NULL;                                                 
       }                                                              
       dtab = disktab + major;                                        
 8001df4:	e3 ff ff f2 	bi 8001dbc <rtems_disk_next+0x98>              
    } else if (dtab->minor [minor] == NULL) {                         
 8001df8:	34 02 00 02 	mvi r2,2                                       
 8001dfc:	b9 80 08 00 	mv r1,r12                                      
 8001e00:	f8 00 52 3e 	calli 80166f8 <__ashlsi3>                      
 8001e04:	b6 21 88 00 	add r17,r17,r1                                 
 8001e08:	2a 22 00 00 	lw r2,(r17+0)                                  
 8001e0c:	b8 20 70 00 	mv r14,r1                                      
 8001e10:	5c 40 00 03 	bne r2,r0,8001e1c <rtems_disk_next+0xf8>       
      ++minor;                                                        
 8001e14:	35 8c 00 01 	addi r12,r12,1                                 
 8001e18:	e3 ff ff e9 	bi 8001dbc <rtems_disk_next+0x98>              
    } else {                                                          
      ++dtab->minor [minor]->uses;                                    
 8001e1c:	28 41 00 14 	lw r1,(r2+20)                                  
 8001e20:	34 21 00 01 	addi r1,r1,1                                   
 8001e24:	58 41 00 14 	sw (r2+20),r1                                  
      disk_unlock();                                                  
 8001e28:	fb ff fd bc 	calli 8001518 <disk_unlock>                    
                                                                      
      return dtab->minor [minor];                                     
 8001e2c:	29 a1 00 00 	lw r1,(r13+0)                                  
 8001e30:	b4 2e 70 00 	add r14,r1,r14                                 
 8001e34:	29 cd 00 00 	lw r13,(r14+0)                                 
    }                                                                 
  }                                                                   
}                                                                     
 8001e38:	b9 a0 08 00 	mv r1,r13                                      
 8001e3c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001e40:	2b 8b 00 20 	lw r11,(sp+32)                                 
 8001e44:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 8001e48:	2b 8d 00 18 	lw r13,(sp+24)                                 
 8001e4c:	2b 8e 00 14 	lw r14,(sp+20)                                 
 8001e50:	2b 8f 00 10 	lw r15,(sp+16)                                 
 8001e54:	2b 90 00 0c 	lw r16,(sp+12)                                 
 8001e58:	2b 91 00 08 	lw r17,(sp+8)                                  
 8001e5c:	37 9c 00 20 	addi sp,sp,32                                  
 8001e60:	c3 a0 00 00 	ret                                            
                                                                      

08001c34 <rtems_disk_obtain>: return RTEMS_SUCCESSFUL; } rtems_disk_device * rtems_disk_obtain(dev_t dev) {
 8001c34:	37 9c ff ec 	addi sp,sp,-20                                 
 8001c38:	5b 8b 00 10 	sw (sp+16),r11                                 
 8001c3c:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8001c40:	5b 8d 00 08 	sw (sp+8),r13                                  
 8001c44:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001c48:	b8 20 68 00 	mv r13,r1                                      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device *dd = NULL;                                       
  rtems_interrupt_level level;                                        
                                                                      
  rtems_interrupt_disable(level);                                     
 8001c4c:	90 00 60 00 	rcsr r12,IE                                    
 8001c50:	34 01 ff fe 	mvi r1,-2                                      
 8001c54:	a1 81 08 00 	and r1,r12,r1                                  
 8001c58:	d0 01 00 00 	wcsr IE,r1                                     
  if (!diskdevs_protected) {                                          
 8001c5c:	78 03 08 01 	mvhi r3,0x801                                  
 8001c60:	38 63 96 e0 	ori r3,r3,0x96e0                               
 8001c64:	40 61 00 00 	lbu r1,(r3+0)                                  
 8001c68:	20 21 00 ff 	andi r1,r1,0xff                                
 8001c6c:	5c 20 00 07 	bne r1,r0,8001c88 <rtems_disk_obtain+0x54>     <== NEVER TAKEN
    /* Frequent and quickest case */                                  
    dd = get_disk_entry(dev, false);                                  
 8001c70:	b9 a0 08 00 	mv r1,r13                                      
 8001c74:	34 03 00 00 	mvi r3,0                                       
 8001c78:	fb ff fd ce 	calli 80013b0 <get_disk_entry>                 
 8001c7c:	b8 20 58 00 	mv r11,r1                                      
    rtems_interrupt_enable(level);                                    
 8001c80:	d0 0c 00 00 	wcsr IE,r12                                    
 8001c84:	e0 00 00 0c 	bi 8001cb4 <rtems_disk_obtain+0x80>            
  } else {                                                            
    rtems_interrupt_enable(level);                                    
 8001c88:	d0 0c 00 00 	wcsr IE,r12                                    <== NOT EXECUTED
                                                                      
    sc = disk_lock();                                                 
 8001c8c:	5b 82 00 14 	sw (sp+20),r2                                  <== NOT EXECUTED
 8001c90:	fb ff fe 0f 	calli 80014cc <disk_lock>                      <== NOT EXECUTED
                                                                      
rtems_disk_device *                                                   
rtems_disk_obtain(dev_t dev)                                          
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device *dd = NULL;                                       
 8001c94:	34 0b 00 00 	mvi r11,0                                      <== NOT EXECUTED
    rtems_interrupt_enable(level);                                    
  } else {                                                            
    rtems_interrupt_enable(level);                                    
                                                                      
    sc = disk_lock();                                                 
    if (sc == RTEMS_SUCCESSFUL) {                                     
 8001c98:	2b 82 00 14 	lw r2,(sp+20)                                  <== NOT EXECUTED
 8001c9c:	5c 20 00 06 	bne r1,r0,8001cb4 <rtems_disk_obtain+0x80>     <== NOT EXECUTED
      dd = get_disk_entry(dev, false);                                
 8001ca0:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 8001ca4:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 8001ca8:	fb ff fd c2 	calli 80013b0 <get_disk_entry>                 <== NOT EXECUTED
 8001cac:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
      disk_unlock();                                                  
 8001cb0:	fb ff fe 1a 	calli 8001518 <disk_unlock>                    <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
  return dd;                                                          
}                                                                     
 8001cb4:	b9 60 08 00 	mv r1,r11                                      
 8001cb8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001cbc:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8001cc0:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8001cc4:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8001cc8:	37 9c 00 14 	addi sp,sp,20                                  
 8001ccc:	c3 a0 00 00 	ret                                            
                                                                      

0800ddbc <rtems_event_system_receive>: rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out ) {
 800ddbc:	37 9c ff f8 	addi sp,sp,-8                                  
 800ddc0:	5b 8b 00 08 	sw (sp+8),r11                                  
 800ddc4:	5b 9d 00 04 	sw (sp+4),ra                                   
    } else {                                                          
      *event_out = event->pending_events;                             
      sc = RTEMS_SUCCESSFUL;                                          
    }                                                                 
  } else {                                                            
    sc = RTEMS_INVALID_ADDRESS;                                       
 800ddc8:	34 05 00 09 	mvi r5,9                                       
  rtems_event_set *event_out                                          
)                                                                     
{                                                                     
  rtems_status_code sc;                                               
                                                                      
  if ( event_out != NULL ) {                                          
 800ddcc:	44 80 00 17 	be r4,r0,800de28 <rtems_event_system_receive+0x6c><== NEVER TAKEN
    Thread_Control    *executing = _Thread_Executing;                 
 800ddd0:	78 05 08 01 	mvhi r5,0x801                                  
 800ddd4:	38 a5 9a 80 	ori r5,r5,0x9a80                               
 800ddd8:	28 ab 00 10 	lw r11,(r5+16)                                 
    RTEMS_API_Control *api = executing->API_Extensions[ THREAD_API_RTEMS ];
 800dddc:	29 66 01 14 	lw r6,(r11+276)                                
    Event_Control     *event = &api->System_event;                    
                                                                      
    if ( !_Event_sets_Is_empty( event_in ) ) {                        
 800dde0:	44 20 00 0f 	be r1,r0,800de1c <rtems_event_system_receive+0x60><== NEVER TAKEN
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    uint32_t level = _Thread_Dispatch_disable_level;                  
 800dde4:	78 07 08 01 	mvhi r7,0x801                                  
 800dde8:	38 e7 99 00 	ori r7,r7,0x9900                               
 800ddec:	28 e5 00 00 	lw r5,(r7+0)                                   
                                                                      
    ++level;                                                          
 800ddf0:	34 a5 00 01 	addi r5,r5,1                                   
    _Thread_Dispatch_disable_level = level;                           
 800ddf4:	58 e5 00 00 	sw (r7+0),r5                                   
      _Thread_Disable_dispatch();                                     
      _Event_Seize(                                                   
 800ddf8:	78 07 08 01 	mvhi r7,0x801                                  
 800ddfc:	b9 60 28 00 	mv r5,r11                                      
 800de00:	34 c6 00 04 	addi r6,r6,4                                   
 800de04:	38 e7 9b 08 	ori r7,r7,0x9b08                               
 800de08:	78 08 00 04 	mvhi r8,0x4                                    
 800de0c:	fb ff fe a1 	calli 800d890 <_Event_Seize>                   
        executing,                                                    
        event,                                                        
        &_System_event_Sync_state,                                    
        STATES_WAITING_FOR_SYSTEM_EVENT                               
      );                                                              
      _Thread_Enable_dispatch();                                      
 800de10:	fb ff e6 c9 	calli 8007934 <_Thread_Enable_dispatch>        
                                                                      
      sc = executing->Wait.return_code;                               
 800de14:	29 65 00 34 	lw r5,(r11+52)                                 
 800de18:	e0 00 00 04 	bi 800de28 <rtems_event_system_receive+0x6c>   
    } else {                                                          
      *event_out = event->pending_events;                             
 800de1c:	28 c1 00 04 	lw r1,(r6+4)                                   <== NOT EXECUTED
      sc = RTEMS_SUCCESSFUL;                                          
 800de20:	34 05 00 00 	mvi r5,0                                       <== NOT EXECUTED
      );                                                              
      _Thread_Enable_dispatch();                                      
                                                                      
      sc = executing->Wait.return_code;                               
    } else {                                                          
      *event_out = event->pending_events;                             
 800de24:	58 81 00 00 	sw (r4+0),r1                                   <== NOT EXECUTED
  } else {                                                            
    sc = RTEMS_INVALID_ADDRESS;                                       
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
 800de28:	b8 a0 08 00 	mv r1,r5                                       
 800de2c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800de30:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800de34:	37 9c 00 08 	addi sp,sp,8                                   
 800de38:	c3 a0 00 00 	ret                                            
                                                                      

080039e8 <rtems_event_system_send>: rtems_status_code rtems_event_system_send( rtems_id id, rtems_event_set event_in ) {
 80039e8:	37 9c ff f4 	addi sp,sp,-12                                 
 80039ec:	5b 8b 00 08 	sw (sp+8),r11                                  
 80039f0:	5b 9d 00 04 	sw (sp+4),ra                                   
 80039f4:	b8 40 58 00 	mv r11,r2                                      
  rtems_status_code  sc;                                              
  Thread_Control    *thread;                                          
  Objects_Locations  location;                                        
  RTEMS_API_Control *api;                                             
                                                                      
  thread = _Thread_Get( id, &location );                              
 80039f8:	37 82 00 0c 	addi r2,sp,12                                  
 80039fc:	f8 00 0b 1a 	calli 8006664 <_Thread_Get>                    
  switch ( location ) {                                               
 8003a00:	2b 82 00 0c 	lw r2,(sp+12)                                  
 8003a04:	5c 40 00 0b 	bne r2,r0,8003a30 <rtems_event_system_send+0x48><== NEVER TAKEN
    case OBJECTS_LOCAL:                                               
      api = thread->API_Extensions[ THREAD_API_RTEMS ];               
      _Event_Surrender(                                               
 8003a08:	28 23 01 14 	lw r3,(r1+276)                                 
 8003a0c:	78 04 08 01 	mvhi r4,0x801                                  
 8003a10:	b9 60 10 00 	mv r2,r11                                      
 8003a14:	34 63 00 04 	addi r3,r3,4                                   
 8003a18:	38 84 da e8 	ori r4,r4,0xdae8                               
 8003a1c:	78 05 00 04 	mvhi r5,0x4                                    
 8003a20:	f8 00 15 d5 	calli 8009174 <_Event_Surrender>               
        event_in,                                                     
        &api->System_event,                                           
        &_System_event_Sync_state,                                    
        STATES_WAITING_FOR_SYSTEM_EVENT                               
      );                                                              
      _Thread_Enable_dispatch();                                      
 8003a24:	f8 00 0b 04 	calli 8006634 <_Thread_Enable_dispatch>        
      sc = RTEMS_SUCCESSFUL;                                          
 8003a28:	34 01 00 00 	mvi r1,0                                       
      break;                                                          
 8003a2c:	e0 00 00 02 	bi 8003a34 <rtems_event_system_send+0x4c>      
    case OBJECTS_REMOTE:                                              
      sc = RTEMS_ILLEGAL_ON_REMOTE_OBJECT;                            
      break;                                                          
#endif                                                                
    default:                                                          
      sc = RTEMS_INVALID_ID;                                          
 8003a30:	34 01 00 04 	mvi r1,4                                       <== NOT EXECUTED
      break;                                                          
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
 8003a34:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003a38:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8003a3c:	37 9c 00 0c 	addi sp,sp,12                                  
 8003a40:	c3 a0 00 00 	ret                                            
                                                                      

08003458 <rtems_fdisk_abort>: * @param format The format string. See printf for details. * @param ... The arguments for the format text. */ static void rtems_fdisk_abort (const char *format, ...) {
 8003458:	37 9c ff d4 	addi sp,sp,-44                                 <== NOT EXECUTED
 800345c:	5b 8b 00 0c 	sw (sp+12),r11                                 <== NOT EXECUTED
 8003460:	5b 8c 00 08 	sw (sp+8),r12                                  <== NOT EXECUTED
 8003464:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
  va_list args;                                                       
  va_start (args, format);                                            
  fprintf (stderr, "fdisk:abort:");                                   
 8003468:	78 0b 08 03 	mvhi r11,0x803                                 <== NOT EXECUTED
 800346c:	39 6b 92 40 	ori r11,r11,0x9240                             <== NOT EXECUTED
 * @param format The format string. See printf for details.           
 * @param ... The arguments for the format text.                      
 */                                                                   
static void                                                           
rtems_fdisk_abort (const char *format, ...)                           
{                                                                     
 8003470:	5b 82 00 14 	sw (sp+20),r2                                  <== NOT EXECUTED
  va_list args;                                                       
  va_start (args, format);                                            
  fprintf (stderr, "fdisk:abort:");                                   
 8003474:	29 62 00 00 	lw r2,(r11+0)                                  <== NOT EXECUTED
 * @param format The format string. See printf for details.           
 * @param ... The arguments for the format text.                      
 */                                                                   
static void                                                           
rtems_fdisk_abort (const char *format, ...)                           
{                                                                     
 8003478:	5b 84 00 1c 	sw (sp+28),r4                                  <== NOT EXECUTED
 800347c:	5b 85 00 20 	sw (sp+32),r5                                  <== NOT EXECUTED
 8003480:	5b 86 00 24 	sw (sp+36),r6                                  <== NOT EXECUTED
 8003484:	5b 87 00 28 	sw (sp+40),r7                                  <== NOT EXECUTED
 8003488:	5b 88 00 2c 	sw (sp+44),r8                                  <== NOT EXECUTED
 800348c:	5b 81 00 10 	sw (sp+16),r1                                  <== NOT EXECUTED
 8003490:	5b 83 00 18 	sw (sp+24),r3                                  <== NOT EXECUTED
  va_list args;                                                       
  va_start (args, format);                                            
  fprintf (stderr, "fdisk:abort:");                                   
 8003494:	28 42 00 0c 	lw r2,(r2+12)                                  <== NOT EXECUTED
 8003498:	78 03 08 03 	mvhi r3,0x803                                  <== NOT EXECUTED
 * @param format The format string. See printf for details.           
 * @param ... The arguments for the format text.                      
 */                                                                   
static void                                                           
rtems_fdisk_abort (const char *format, ...)                           
{                                                                     
 800349c:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
  va_list args;                                                       
  va_start (args, format);                                            
  fprintf (stderr, "fdisk:abort:");                                   
 80034a0:	b8 60 08 00 	mv r1,r3                                       <== NOT EXECUTED
 80034a4:	38 21 3c 88 	ori r1,r1,0x3c88                               <== NOT EXECUTED
 80034a8:	f8 00 74 3d 	calli 802059c <fputs>                          <== NOT EXECUTED
  vfprintf (stderr, format, args);                                    
 80034ac:	29 61 00 00 	lw r1,(r11+0)                                  <== NOT EXECUTED
 80034b0:	37 83 00 14 	addi r3,sp,20                                  <== NOT EXECUTED
 80034b4:	b9 80 10 00 	mv r2,r12                                      <== NOT EXECUTED
 80034b8:	28 21 00 0c 	lw r1,(r1+12)                                  <== NOT EXECUTED
 80034bc:	f8 00 95 b2 	calli 8028b84 <vfprintf>                       <== NOT EXECUTED
  fprintf (stderr, "\n");                                             
 80034c0:	29 62 00 00 	lw r2,(r11+0)                                  <== NOT EXECUTED
 80034c4:	34 01 00 0a 	mvi r1,10                                      <== NOT EXECUTED
 80034c8:	28 42 00 0c 	lw r2,(r2+12)                                  <== NOT EXECUTED
 80034cc:	f8 00 73 f0 	calli 802048c <fputc>                          <== NOT EXECUTED
  fflush (stderr);                                                    
 80034d0:	29 61 00 00 	lw r1,(r11+0)                                  <== NOT EXECUTED
 80034d4:	28 21 00 0c 	lw r1,(r1+12)                                  <== NOT EXECUTED
 80034d8:	f8 00 72 5f 	calli 801fe54 <fflush>                         <== NOT EXECUTED
  va_end (args);                                                      
  exit (1);                                                           
 80034dc:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
 80034e0:	f8 00 71 51 	calli 801fa24 <exit>                           <== NOT EXECUTED
                                                                      

08004184 <rtems_fdisk_compact>: * used segments that will fit. The used queue is sorted on the least * number of active pages. */ static int rtems_fdisk_compact (rtems_flashdisk* fd) {
 8004184:	37 9c ff cc 	addi sp,sp,-52                                 
 8004188:	5b 8b 00 30 	sw (sp+48),r11                                 
 800418c:	5b 8c 00 2c 	sw (sp+44),r12                                 
 8004190:	5b 8d 00 28 	sw (sp+40),r13                                 
 8004194:	5b 8e 00 24 	sw (sp+36),r14                                 
 8004198:	5b 8f 00 20 	sw (sp+32),r15                                 
 800419c:	5b 90 00 1c 	sw (sp+28),r16                                 
 80041a0:	5b 91 00 18 	sw (sp+24),r17                                 
 80041a4:	5b 92 00 14 	sw (sp+20),r18                                 
 80041a8:	5b 93 00 10 	sw (sp+16),r19                                 
 80041ac:	5b 94 00 0c 	sw (sp+12),r20                                 
 80041b0:	5b 95 00 08 	sw (sp+8),r21                                  
 80041b4:	5b 9d 00 04 	sw (sp+4),ra                                   
static bool                                                           
rtems_fdisk_is_erased_blocks_starvation (rtems_flashdisk* fd)         
{                                                                     
  bool starvation = fd->erased_blocks < fd->starvation_threshold;     
                                                                      
  if (starvation)                                                     
 80041b8:	28 23 00 28 	lw r3,(r1+40)                                  
 80041bc:	28 22 00 24 	lw r2,(r1+36)                                  
 * used segments that will fit. The used queue is sorted on the least 
 * number of active pages.                                            
 */                                                                   
static int                                                            
rtems_fdisk_compact (rtems_flashdisk* fd)                             
{                                                                     
 80041c0:	b8 20 58 00 	mv r11,r1                                      
static bool                                                           
rtems_fdisk_is_erased_blocks_starvation (rtems_flashdisk* fd)         
{                                                                     
  bool starvation = fd->erased_blocks < fd->starvation_threshold;     
                                                                      
  if (starvation)                                                     
 80041c4:	50 62 00 0c 	bgeu r3,r2,80041f4 <rtems_fdisk_compact+0x70>  
    fd->starvations++;                                                
 80041c8:	28 22 00 70 	lw r2,(r1+112)                                 
 80041cc:	34 42 00 01 	addi r2,r2,1                                   
 80041d0:	58 22 00 70 	sw (r1+112),r2                                 
  uint32_t pages;                                                     
                                                                      
  if (rtems_fdisk_is_erased_blocks_starvation (fd))                   
  {                                                                   
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " resolve starvation");                   
 80041d4:	78 02 08 03 	mvhi r2,0x803                                  
 80041d8:	38 42 3f b8 	ori r2,r2,0x3fb8                               
 80041dc:	fb ff fb 1a 	calli 8002e44 <rtems_fdisk_printf>             
#endif                                                                
                                                                      
    ssc = rtems_fdisk_segment_queue_pop_head (&fd->used);             
 80041e0:	35 61 00 40 	addi r1,r11,64                                 
 80041e4:	fb ff fa 94 	calli 8002c34 <rtems_fdisk_segment_queue_pop_head>
 80041e8:	b8 20 60 00 	mv r12,r1                                      
    if (!ssc)                                                         
 80041ec:	5c 20 00 13 	bne r1,r0,8004238 <rtems_fdisk_compact+0xb4>   <== ALWAYS TAKEN
 80041f0:	e0 00 00 0c 	bi 8004220 <rtems_fdisk_compact+0x9c>          <== NOT EXECUTED
  {                                                                   
    uint32_t                 dst_pages;                               
    uint32_t                 segments;                                
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " compacting");                           
 80041f4:	78 11 08 03 	mvhi r17,0x803                                 
    dst_pages = rtems_fdisk_seg_pages_available (dsc);                
    segments = 0;                                                     
    pages = 0;                                                        
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " dsc:%02d-%03d: most available",         
 80041f8:	78 10 08 03 	mvhi r16,0x803                                 
#endif                                                                
      break;                                                          
    }                                                                 
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " ssc scan: %d-%d: p=%ld, seg=%ld",       
 80041fc:	78 0f 08 03 	mvhi r15,0x803                                 
     * compaction or less delay when compacting but it may mean the disk
     * will fill.                                                     
     */                                                               
                                                                      
    while (ssc &&                                                     
           ((pages + ssc->pages_active) < dst_pages) &&               
 8004200:	34 0e 00 00 	mvi r14,0                                      
  {                                                                   
    uint32_t                 dst_pages;                               
    uint32_t                 segments;                                
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " compacting");                           
 8004204:	3a 31 40 04 	ori r17,r17,0x4004                             
    dst_pages = rtems_fdisk_seg_pages_available (dsc);                
    segments = 0;                                                     
    pages = 0;                                                        
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " dsc:%02d-%03d: most available",         
 8004208:	3a 10 40 44 	ori r16,r16,0x4044                             
     * We need a source segment and have pages to copy and            
     * compacting one segment to another is silly. Compaction needs   
     * to free at least one more segment.                             
     */                                                               
                                                                      
    if (!ssc || (pages == 0) || ((compacted_segs + segments) == 1))   
 800420c:	34 14 00 01 	mvi r20,1                                      
#endif                                                                
      break;                                                          
    }                                                                 
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " ssc scan: %d-%d: p=%ld, seg=%ld",       
 8004210:	39 ef 40 78 	ori r15,r15,0x4078                             
                        ssc->device, ssc->segment,                    
                        pages, segments);                             
#endif                                                                
                                                                      
    rtems_fdisk_segment_queue_remove (&fd->available, dsc);           
 8004214:	35 73 00 34 	addi r19,r11,52                                
     * We now copy the pages to the new segment.                      
     */                                                               
                                                                      
    while (pages)                                                     
    {                                                                 
      ssc = rtems_fdisk_segment_queue_pop_head (&fd->used);           
 8004218:	35 72 00 40 	addi r18,r11,64                                
 800421c:	e0 00 00 5b 	bi 8004388 <rtems_fdisk_compact+0x204>         
    rtems_fdisk_printf (fd, " resolve starvation");                   
#endif                                                                
                                                                      
    ssc = rtems_fdisk_segment_queue_pop_head (&fd->used);             
    if (!ssc)                                                         
      ssc = rtems_fdisk_segment_queue_pop_head (&fd->available);      
 8004220:	35 61 00 34 	addi r1,r11,52                                 <== NOT EXECUTED
 8004224:	fb ff fa 84 	calli 8002c34 <rtems_fdisk_segment_queue_pop_head><== NOT EXECUTED
 8004228:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
        return EIO;                                                   
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      rtems_fdisk_error ("compacting: nothing to recycle");           
 800422c:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8004230:	38 21 3f e4 	ori r1,r1,0x3fe4                               <== NOT EXECUTED
                                                                      
    ssc = rtems_fdisk_segment_queue_pop_head (&fd->used);             
    if (!ssc)                                                         
      ssc = rtems_fdisk_segment_queue_pop_head (&fd->available);      
                                                                      
    if (ssc)                                                          
 8004234:	45 80 00 17 	be r12,r0,8004290 <rtems_fdisk_compact+0x10c>  <== NOT EXECUTED
    {                                                                 
      dsc = rtems_fdisk_seg_most_available (&fd->available);          
 8004238:	29 61 00 34 	lw r1,(r11+52)                                 
 800423c:	fb ff fe af 	calli 8003cf8 <rtems_fdisk_seg_most_available.clone.9>
 8004240:	b8 20 18 00 	mv r3,r1                                       
      if (dsc)                                                        
 8004244:	44 20 00 07 	be r1,r0,8004260 <rtems_fdisk_compact+0xdc>    <== NEVER TAKEN
      {                                                               
        ret = rtems_fdisk_recycle_segment (fd, ssc, dsc, &pages);     
 8004248:	b9 60 08 00 	mv r1,r11                                      
 800424c:	b9 80 10 00 	mv r2,r12                                      
 8004250:	37 84 00 34 	addi r4,sp,52                                  
 8004254:	fb ff fe c2 	calli 8003d5c <rtems_fdisk_recycle_segment>    
        if (ret)                                                      
 8004258:	44 20 ff e7 	be r1,r0,80041f4 <rtems_fdisk_compact+0x70>    <== ALWAYS TAKEN
 800425c:	e0 00 00 4d 	bi 8004390 <rtems_fdisk_compact+0x20c>         <== NOT EXECUTED
          return ret;                                                 
      }                                                               
      else                                                            
      {                                                               
        rtems_fdisk_error ("compacting: starvation");                 
 8004260:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8004264:	38 21 3f cc 	ori r1,r1,0x3fcc                               <== NOT EXECUTED
 8004268:	e0 00 00 0a 	bi 8004290 <rtems_fdisk_compact+0x10c>         <== NOT EXECUTED
  {                                                                   
    uint32_t                 dst_pages;                               
    uint32_t                 segments;                                
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " compacting");                           
 800426c:	ba 20 10 00 	mv r2,r17                                      
 8004270:	b9 60 08 00 	mv r1,r11                                      
 8004274:	fb ff fa f4 	calli 8002e44 <rtems_fdisk_printf>             
#endif                                                                
                                                                      
    dsc = rtems_fdisk_seg_most_available (&fd->available);            
 8004278:	29 61 00 34 	lw r1,(r11+52)                                 
 800427c:	fb ff fe 9f 	calli 8003cf8 <rtems_fdisk_seg_most_available.clone.9>
 8004280:	b8 20 60 00 	mv r12,r1                                      
                                                                      
    if (dsc == 0)                                                     
 8004284:	5c 20 00 06 	bne r1,r0,800429c <rtems_fdisk_compact+0x118>  <== ALWAYS TAKEN
    {                                                                 
      rtems_fdisk_error ("compacting: no available segments to compact too");
 8004288:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800428c:	38 21 40 10 	ori r1,r1,0x4010                               <== NOT EXECUTED
 8004290:	fb ff fc 4a 	calli 80033b8 <rtems_fdisk_error>              <== NOT EXECUTED
      return EIO;                                                     
 8004294:	34 01 00 05 	mvi r1,5                                       <== NOT EXECUTED
 8004298:	e0 00 00 3e 	bi 8004390 <rtems_fdisk_compact+0x20c>         <== NOT EXECUTED
 * with the most available number of pages and see if we have         
 * used segments that will fit. The used queue is sorted on the least 
 * number of active pages.                                            
 */                                                                   
static int                                                            
rtems_fdisk_compact (rtems_flashdisk* fd)                             
 800429c:	28 35 00 20 	lw r21,(r1+32)                                 
 * active, used and bad pages.                                        
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_pages_available (const rtems_fdisk_segment_ctl* sc)   
{                                                                     
  return sc->pages - (sc->pages_active + sc->pages_used + sc->pages_bad);
 80042a0:	28 21 00 1c 	lw r1,(r1+28)                                  
    dst_pages = rtems_fdisk_seg_pages_available (dsc);                
    segments = 0;                                                     
    pages = 0;                                                        
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " dsc:%02d-%03d: most available",         
 80042a4:	29 83 00 08 	lw r3,(r12+8)                                  
 * with the most available number of pages and see if we have         
 * used segments that will fit. The used queue is sorted on the least 
 * number of active pages.                                            
 */                                                                   
static int                                                            
rtems_fdisk_compact (rtems_flashdisk* fd)                             
 80042a8:	c8 15 a8 00 	sub r21,r0,r21                                 
 * active, used and bad pages.                                        
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_pages_available (const rtems_fdisk_segment_ctl* sc)   
{                                                                     
  return sc->pages - (sc->pages_active + sc->pages_used + sc->pages_bad);
 80042ac:	ca a1 a8 00 	sub r21,r21,r1                                 
 80042b0:	29 81 00 14 	lw r1,(r12+20)                                 
    dst_pages = rtems_fdisk_seg_pages_available (dsc);                
    segments = 0;                                                     
    pages = 0;                                                        
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " dsc:%02d-%03d: most available",         
 80042b4:	29 84 00 0c 	lw r4,(r12+12)                                 
 80042b8:	ba 00 10 00 	mv r2,r16                                      
 * active, used and bad pages.                                        
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_pages_available (const rtems_fdisk_segment_ctl* sc)   
{                                                                     
  return sc->pages - (sc->pages_active + sc->pages_used + sc->pages_bad);
 80042bc:	b6 a1 a8 00 	add r21,r21,r1                                 
 80042c0:	29 81 00 24 	lw r1,(r12+36)                                 
    {                                                                 
      rtems_fdisk_error ("compacting: no available segments to compact too");
      return EIO;                                                     
    }                                                                 
                                                                      
    ssc = fd->used.head;                                              
 80042c4:	29 6d 00 40 	lw r13,(r11+64)                                
    dst_pages = rtems_fdisk_seg_pages_available (dsc);                
    segments = 0;                                                     
    pages = 0;                                                        
 80042c8:	5b 80 00 34 	sw (sp+52),r0                                  
 * active, used and bad pages.                                        
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_pages_available (const rtems_fdisk_segment_ctl* sc)   
{                                                                     
  return sc->pages - (sc->pages_active + sc->pages_used + sc->pages_bad);
 80042cc:	ca a1 a8 00 	sub r21,r21,r1                                 
    dst_pages = rtems_fdisk_seg_pages_available (dsc);                
    segments = 0;                                                     
    pages = 0;                                                        
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " dsc:%02d-%03d: most available",         
 80042d0:	b9 60 08 00 	mv r1,r11                                      
 80042d4:	fb ff fa dc 	calli 8002e44 <rtems_fdisk_printf>             
 80042d8:	2b 85 00 34 	lw r5,(sp+52)                                  
      return EIO;                                                     
    }                                                                 
                                                                      
    ssc = fd->used.head;                                              
    dst_pages = rtems_fdisk_seg_pages_available (dsc);                
    segments = 0;                                                     
 80042dc:	34 06 00 00 	mvi r6,0                                       
     * we handle during one compaction. A lower number means less aggressive
     * compaction or less delay when compacting but it may mean the disk
     * will fill.                                                     
     */                                                               
                                                                      
    while (ssc &&                                                     
 80042e0:	e0 00 00 04 	bi 80042f0 <rtems_fdisk_compact+0x16c>         
           ((pages + ssc->pages_active) < dst_pages) &&               
           ((compacted_segs + segments) < fd->compact_segs))          
    {                                                                 
      pages += ssc->pages_active;                                     
      segments++;                                                     
      ssc = ssc->next;                                                
 80042e4:	29 ad 00 00 	lw r13,(r13+0)                                 
    while (ssc &&                                                     
           ((pages + ssc->pages_active) < dst_pages) &&               
           ((compacted_segs + segments) < fd->compact_segs))          
    {                                                                 
      pages += ssc->pages_active;                                     
      segments++;                                                     
 80042e8:	34 c6 00 01 	addi r6,r6,1                                   
                                                                      
    while (ssc &&                                                     
           ((pages + ssc->pages_active) < dst_pages) &&               
           ((compacted_segs + segments) < fd->compact_segs))          
    {                                                                 
      pages += ssc->pages_active;                                     
 80042ec:	b8 40 28 00 	mv r5,r2                                       
     * we handle during one compaction. A lower number means less aggressive
     * compaction or less delay when compacting but it may mean the disk
     * will fill.                                                     
     */                                                               
                                                                      
    while (ssc &&                                                     
 80042f0:	5d a0 00 03 	bne r13,r0,80042fc <rtems_fdisk_compact+0x178> 
 80042f4:	5b 85 00 34 	sw (sp+52),r5                                  
 80042f8:	e0 00 00 0a 	bi 8004320 <rtems_fdisk_compact+0x19c>         
           ((pages + ssc->pages_active) < dst_pages) &&               
 80042fc:	29 a2 00 1c 	lw r2,(r13+28)                                 
 8004300:	b4 a2 10 00 	add r2,r5,r2                                   
     * we handle during one compaction. A lower number means less aggressive
     * compaction or less delay when compacting but it may mean the disk
     * will fill.                                                     
     */                                                               
                                                                      
    while (ssc &&                                                     
 8004304:	50 55 00 31 	bgeu r2,r21,80043c8 <rtems_fdisk_compact+0x244>
           ((pages + ssc->pages_active) < dst_pages) &&               
 8004308:	29 63 00 0c 	lw r3,(r11+12)                                 
 800430c:	b4 ce 08 00 	add r1,r6,r14                                  
 8004310:	54 61 ff f5 	bgu r3,r1,80042e4 <rtems_fdisk_compact+0x160>  <== ALWAYS TAKEN
 8004314:	e0 00 00 2d 	bi 80043c8 <rtems_fdisk_compact+0x244>         <== NOT EXECUTED
     * We need a source segment and have pages to copy and            
     * compacting one segment to another is silly. Compaction needs   
     * to free at least one more segment.                             
     */                                                               
                                                                      
    if (!ssc || (pages == 0) || ((compacted_segs + segments) == 1))   
 8004318:	b5 c6 70 00 	add r14,r14,r6                                 
 800431c:	5d d4 00 07 	bne r14,r20,8004338 <rtems_fdisk_compact+0x1b4>
    {                                                                 
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_printf (fd, " nothing to compact");                 
 8004320:	78 02 08 03 	mvhi r2,0x803                                  
 8004324:	b9 60 08 00 	mv r1,r11                                      
 8004328:	38 42 40 64 	ori r2,r2,0x4064                               
 800432c:	fb ff fa c6 	calli 8002e44 <rtems_fdisk_printf>             
    }                                                                 
                                                                      
    compacted_segs += segments;                                       
  }                                                                   
                                                                      
  return 0;                                                           
 8004330:	34 01 00 00 	mvi r1,0                                       
    if (!ssc || (pages == 0) || ((compacted_segs + segments) == 1))   
    {                                                                 
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_printf (fd, " nothing to compact");                 
#endif                                                                
      break;                                                          
 8004334:	e0 00 00 17 	bi 8004390 <rtems_fdisk_compact+0x20c>         
    }                                                                 
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " ssc scan: %d-%d: p=%ld, seg=%ld",       
 8004338:	29 a3 00 08 	lw r3,(r13+8)                                  
 800433c:	29 a4 00 0c 	lw r4,(r13+12)                                 
 8004340:	b9 e0 10 00 	mv r2,r15                                      
 8004344:	b9 60 08 00 	mv r1,r11                                      
 8004348:	fb ff fa bf 	calli 8002e44 <rtems_fdisk_printf>             
                        ssc->device, ssc->segment,                    
                        pages, segments);                             
#endif                                                                
                                                                      
    rtems_fdisk_segment_queue_remove (&fd->available, dsc);           
 800434c:	ba 60 08 00 	mv r1,r19                                      
 8004350:	b9 80 10 00 	mv r2,r12                                      
 8004354:	fb ff fa 52 	calli 8002c9c <rtems_fdisk_segment_queue_remove>
                                                                      
    /*                                                                
     * We now copy the pages to the new segment.                      
     */                                                               
                                                                      
    while (pages)                                                     
 8004358:	e0 00 00 0a 	bi 8004380 <rtems_fdisk_compact+0x1fc>         
    {                                                                 
      ssc = rtems_fdisk_segment_queue_pop_head (&fd->used);           
 800435c:	ba 40 08 00 	mv r1,r18                                      
 8004360:	fb ff fa 35 	calli 8002c34 <rtems_fdisk_segment_queue_pop_head>
 8004364:	b8 20 10 00 	mv r2,r1                                       
                                                                      
      if (ssc)                                                        
 8004368:	44 20 00 06 	be r1,r0,8004380 <rtems_fdisk_compact+0x1fc>   <== NEVER TAKEN
      {                                                               
        ret = rtems_fdisk_recycle_segment (fd, ssc, dsc, &pages);     
 800436c:	b9 60 08 00 	mv r1,r11                                      
 8004370:	b9 80 18 00 	mv r3,r12                                      
 8004374:	37 84 00 34 	addi r4,sp,52                                  
 8004378:	fb ff fe 79 	calli 8003d5c <rtems_fdisk_recycle_segment>    
        if (ret)                                                      
 800437c:	5c 20 00 05 	bne r1,r0,8004390 <rtems_fdisk_compact+0x20c>  <== NEVER TAKEN
                                                                      
    /*                                                                
     * We now copy the pages to the new segment.                      
     */                                                               
                                                                      
    while (pages)                                                     
 8004380:	2b 81 00 34 	lw r1,(sp+52)                                  
 8004384:	5c 20 ff f6 	bne r1,r0,800435c <rtems_fdisk_compact+0x1d8>  
      rtems_fdisk_error ("compacting: nothing to recycle");           
      return EIO;                                                     
    }                                                                 
  }                                                                   
                                                                      
  while (fd->used.head)                                               
 8004388:	29 61 00 40 	lw r1,(r11+64)                                 
 800438c:	5c 20 ff b8 	bne r1,r0,800426c <rtems_fdisk_compact+0xe8>   
                                                                      
    compacted_segs += segments;                                       
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 8004390:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004394:	2b 8b 00 30 	lw r11,(sp+48)                                 
 8004398:	2b 8c 00 2c 	lw r12,(sp+44)                                 
 800439c:	2b 8d 00 28 	lw r13,(sp+40)                                 
 80043a0:	2b 8e 00 24 	lw r14,(sp+36)                                 
 80043a4:	2b 8f 00 20 	lw r15,(sp+32)                                 
 80043a8:	2b 90 00 1c 	lw r16,(sp+28)                                 
 80043ac:	2b 91 00 18 	lw r17,(sp+24)                                 
 80043b0:	2b 92 00 14 	lw r18,(sp+20)                                 
 80043b4:	2b 93 00 10 	lw r19,(sp+16)                                 
 80043b8:	2b 94 00 0c 	lw r20,(sp+12)                                 
 80043bc:	2b 95 00 08 	lw r21,(sp+8)                                  
 80043c0:	37 9c 00 34 	addi sp,sp,52                                  
 80043c4:	c3 a0 00 00 	ret                                            
      rtems_fdisk_error ("compacting: nothing to recycle");           
      return EIO;                                                     
    }                                                                 
  }                                                                   
                                                                      
  while (fd->used.head)                                               
 80043c8:	5b 85 00 34 	sw (sp+52),r5                                  
     * We need a source segment and have pages to copy and            
     * compacting one segment to another is silly. Compaction needs   
     * to free at least one more segment.                             
     */                                                               
                                                                      
    if (!ssc || (pages == 0) || ((compacted_segs + segments) == 1))   
 80043cc:	5c a0 ff d3 	bne r5,r0,8004318 <rtems_fdisk_compact+0x194>  
 80043d0:	e3 ff ff d4 	bi 8004320 <rtems_fdisk_compact+0x19c>         
                                                                      

080035e4 <rtems_fdisk_erase_segment>: /** * Erase the segment. */ static int rtems_fdisk_erase_segment (rtems_flashdisk* fd, rtems_fdisk_segment_ctl* sc) {
 80035e4:	37 9c ff e4 	addi sp,sp,-28                                 
 80035e8:	5b 8b 00 1c 	sw (sp+28),r11                                 
 80035ec:	5b 8c 00 18 	sw (sp+24),r12                                 
 80035f0:	5b 8d 00 14 	sw (sp+20),r13                                 
 80035f4:	5b 8e 00 10 	sw (sp+16),r14                                 
 80035f8:	5b 8f 00 0c 	sw (sp+12),r15                                 
 80035fc:	5b 90 00 08 	sw (sp+8),r16                                  
 8003600:	5b 9d 00 04 	sw (sp+4),ra                                   
  int                                ret;                             
  uint32_t                           device;                          
  uint32_t                           segment;                         
  const rtems_fdisk_segment_desc*    sd;                              
  const rtems_fdisk_driver_handlers* ops;                             
  device = sc->device;                                                
 8003604:	28 4d 00 08 	lw r13,(r2+8)                                  
  segment = sc->segment;                                              
 8003608:	28 4e 00 0c 	lw r14,(r2+12)                                 
/**                                                                   
 * Erase the segment.                                                 
 */                                                                   
static int                                                            
rtems_fdisk_erase_segment (rtems_flashdisk* fd, rtems_fdisk_segment_ctl* sc)
{                                                                     
 800360c:	b8 20 60 00 	mv r12,r1                                      
 8003610:	b8 40 58 00 	mv r11,r2                                      
static const rtems_fdisk_segment_desc*                                
rtems_fdisk_seg_descriptor (const rtems_flashdisk* fd,                
                            uint32_t               device,            
                            uint32_t               segment)           
{                                                                     
  return fd->devices[device].segments[segment].descriptor;            
 8003614:	b9 a0 08 00 	mv r1,r13                                      
 8003618:	34 02 00 01 	mvi r2,1                                       
 800361c:	fb ff f7 b1 	calli 80014e0 <__ashlsi3>                      
 8003620:	b4 2d 08 00 	add r1,r1,r13                                  
 8003624:	34 02 00 02 	mvi r2,2                                       
 8003628:	fb ff f7 ae 	calli 80014e0 <__ashlsi3>                      
 800362c:	29 82 00 2c 	lw r2,(r12+44)                                 
 8003630:	b4 41 10 00 	add r2,r2,r1                                   
  const rtems_fdisk_segment_desc*    sd;                              
  const rtems_fdisk_driver_handlers* ops;                             
  device = sc->device;                                                
  segment = sc->segment;                                              
  sd = rtems_fdisk_seg_descriptor (fd, device, segment);              
  ops = fd->devices[device].descriptor->flash_ops;                    
 8003634:	28 41 00 08 	lw r1,(r2+8)                                   
static const rtems_fdisk_segment_desc*                                
rtems_fdisk_seg_descriptor (const rtems_flashdisk* fd,                
                            uint32_t               device,            
                            uint32_t               segment)           
{                                                                     
  return fd->devices[device].segments[segment].descriptor;            
 8003638:	28 50 00 00 	lw r16,(r2+0)                                  
 800363c:	34 02 00 30 	mvi r2,48                                      
  const rtems_fdisk_driver_handlers* ops;                             
  device = sc->device;                                                
  segment = sc->segment;                                              
  sd = rtems_fdisk_seg_descriptor (fd, device, segment);              
  ops = fd->devices[device].descriptor->flash_ops;                    
  ret = ops->erase (sd, device, segment);                             
 8003640:	28 2f 00 08 	lw r15,(r1+8)                                  
static const rtems_fdisk_segment_desc*                                
rtems_fdisk_seg_descriptor (const rtems_flashdisk* fd,                
                            uint32_t               device,            
                            uint32_t               segment)           
{                                                                     
  return fd->devices[device].segments[segment].descriptor;            
 8003644:	b9 c0 08 00 	mv r1,r14                                      
 8003648:	fb ff f7 f4 	calli 8001618 <__mulsi3>                       
 800364c:	b6 01 10 00 	add r2,r16,r1                                  
  const rtems_fdisk_driver_handlers* ops;                             
  device = sc->device;                                                
  segment = sc->segment;                                              
  sd = rtems_fdisk_seg_descriptor (fd, device, segment);              
  ops = fd->devices[device].descriptor->flash_ops;                    
  ret = ops->erase (sd, device, segment);                             
 8003650:	28 41 00 04 	lw r1,(r2+4)                                   
 8003654:	29 e4 00 10 	lw r4,(r15+16)                                 
 8003658:	b9 a0 10 00 	mv r2,r13                                      
 800365c:	b9 c0 18 00 	mv r3,r14                                      
 8003660:	d8 80 00 00 	call r4                                        
 8003664:	b8 20 68 00 	mv r13,r1                                      
  if (ret)                                                            
 8003668:	44 20 00 13 	be r1,r0,80036b4 <rtems_fdisk_erase_segment+0xd0><== ALWAYS TAKEN
  {                                                                   
    rtems_fdisk_error (" erase-segment:%02d-%03d: "      \            
 800366c:	29 6f 00 08 	lw r15,(r11+8)                                 <== NOT EXECUTED
 8003670:	29 6e 00 0c 	lw r14,(r11+12)                                <== NOT EXECUTED
 8003674:	f8 00 7b fe 	calli 802266c <strerror>                       <== NOT EXECUTED
 8003678:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
 800367c:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8003680:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
 8003684:	38 21 3c 98 	ori r1,r1,0x3c98                               <== NOT EXECUTED
 8003688:	b9 c0 18 00 	mv r3,r14                                      <== NOT EXECUTED
 800368c:	b9 a0 28 00 	mv r5,r13                                      <== NOT EXECUTED
 8003690:	fb ff ff 4a 	calli 80033b8 <rtems_fdisk_error>              <== NOT EXECUTED
                       "segment erase failed: %s (%d)",               
                       sc->device, sc->segment, strerror (ret), ret); 
    sc->failed = true;                                                
 8003694:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
 8003698:	59 61 00 28 	sw (r11+40),r1                                 <== NOT EXECUTED
    if (!rtems_fdisk_segment_queue_present (&fd->failed, sc))         
 800369c:	29 81 00 58 	lw r1,(r12+88)                                 <== NOT EXECUTED
 80036a0:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 80036a4:	fb ff ff 97 	calli 8003500 <rtems_fdisk_segment_queue_present.clone.2><== NOT EXECUTED
 80036a8:	5c 20 00 18 	bne r1,r0,8003708 <rtems_fdisk_erase_segment+0x124><== NOT EXECUTED
      rtems_fdisk_segment_queue_push_tail (&fd->failed, sc);          
 80036ac:	35 81 00 58 	addi r1,r12,88                                 <== NOT EXECUTED
 80036b0:	e0 00 00 14 	bi 8003700 <rtems_fdisk_erase_segment+0x11c>   <== NOT EXECUTED
    return ret;                                                       
  }                                                                   
                                                                      
  fd->erased_blocks += sc->pages;                                     
 80036b4:	29 82 00 28 	lw r2,(r12+40)                                 
 80036b8:	29 61 00 14 	lw r1,(r11+20)                                 
 80036bc:	b4 41 08 00 	add r1,r2,r1                                   
 80036c0:	59 81 00 28 	sw (r12+40),r1                                 
  sc->erased++;                                                       
 80036c4:	29 61 00 2c 	lw r1,(r11+44)                                 
                                                                      
  memset (sc->page_descriptors, 0xff, sc->pages_desc * fd->block_size);
 80036c8:	29 62 00 18 	lw r2,(r11+24)                                 
      rtems_fdisk_segment_queue_push_tail (&fd->failed, sc);          
    return ret;                                                       
  }                                                                   
                                                                      
  fd->erased_blocks += sc->pages;                                     
  sc->erased++;                                                       
 80036cc:	34 21 00 01 	addi r1,r1,1                                   
 80036d0:	59 61 00 2c 	sw (r11+44),r1                                 
                                                                      
  memset (sc->page_descriptors, 0xff, sc->pages_desc * fd->block_size);
 80036d4:	29 81 00 14 	lw r1,(r12+20)                                 
 80036d8:	fb ff f7 d0 	calli 8001618 <__mulsi3>                       
 80036dc:	b8 20 18 00 	mv r3,r1                                       
 80036e0:	29 61 00 10 	lw r1,(r11+16)                                 
 80036e4:	34 02 00 ff 	mvi r2,255                                     
 80036e8:	f8 00 76 8a 	calli 8021110 <memset>                         
  /*                                                                  
   * Push to the tail of the available queue. It is a very            
   * simple type of wear reduction. Every other available             
   * segment will now get a go.                                       
   */                                                                 
  rtems_fdisk_segment_queue_push_tail (&fd->available, sc);           
 80036ec:	35 81 00 34 	addi r1,r12,52                                 
  fd->erased_blocks += sc->pages;                                     
  sc->erased++;                                                       
                                                                      
  memset (sc->page_descriptors, 0xff, sc->pages_desc * fd->block_size);
                                                                      
  sc->pages_active = 0;                                               
 80036f0:	59 60 00 1c 	sw (r11+28),r0                                 
  sc->pages_used   = 0;                                               
 80036f4:	59 60 00 20 	sw (r11+32),r0                                 
  sc->pages_bad    = 0;                                               
 80036f8:	59 60 00 24 	sw (r11+36),r0                                 
                                                                      
  sc->failed = false;                                                 
 80036fc:	59 60 00 28 	sw (r11+40),r0                                 
  /*                                                                  
   * Push to the tail of the available queue. It is a very            
   * simple type of wear reduction. Every other available             
   * segment will now get a go.                                       
   */                                                                 
  rtems_fdisk_segment_queue_push_tail (&fd->available, sc);           
 8003700:	b9 60 10 00 	mv r2,r11                                      
 8003704:	fb ff fd 58 	calli 8002c64 <rtems_fdisk_segment_queue_push_tail>
                                                                      
  return 0;                                                           
}                                                                     
 8003708:	b9 a0 08 00 	mv r1,r13                                      
 800370c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003710:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8003714:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8003718:	2b 8d 00 14 	lw r13,(sp+20)                                 
 800371c:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8003720:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8003724:	2b 90 00 08 	lw r16,(sp+8)                                  
 8003728:	37 9c 00 1c 	addi sp,sp,28                                  
 800372c:	c3 a0 00 00 	ret                                            
                                                                      

080033b8 <rtems_fdisk_error>: * @param ... The arguments for the format text. * @return int The number of bytes written to the output. */ static int rtems_fdisk_error (const char *format, ...) {
 80033b8:	37 9c ff d4 	addi sp,sp,-44                                 <== NOT EXECUTED
 80033bc:	5b 8b 00 0c 	sw (sp+12),r11                                 <== NOT EXECUTED
 80033c0:	5b 8c 00 08 	sw (sp+8),r12                                  <== NOT EXECUTED
 80033c4:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
  int ret;                                                            
  va_list args;                                                       
  va_start (args, format);                                            
  fprintf (stderr, "fdisk:error:");                                   
 80033c8:	78 0b 08 03 	mvhi r11,0x803                                 <== NOT EXECUTED
 80033cc:	39 6b 92 40 	ori r11,r11,0x9240                             <== NOT EXECUTED
 * @param ... The arguments for the format text.                      
 * @return int The number of bytes written to the output.             
 */                                                                   
static int                                                            
rtems_fdisk_error (const char *format, ...)                           
{                                                                     
 80033d0:	5b 82 00 14 	sw (sp+20),r2                                  <== NOT EXECUTED
  int ret;                                                            
  va_list args;                                                       
  va_start (args, format);                                            
  fprintf (stderr, "fdisk:error:");                                   
 80033d4:	29 62 00 00 	lw r2,(r11+0)                                  <== NOT EXECUTED
 * @param ... The arguments for the format text.                      
 * @return int The number of bytes written to the output.             
 */                                                                   
static int                                                            
rtems_fdisk_error (const char *format, ...)                           
{                                                                     
 80033d8:	5b 84 00 1c 	sw (sp+28),r4                                  <== NOT EXECUTED
 80033dc:	5b 85 00 20 	sw (sp+32),r5                                  <== NOT EXECUTED
 80033e0:	5b 86 00 24 	sw (sp+36),r6                                  <== NOT EXECUTED
 80033e4:	5b 87 00 28 	sw (sp+40),r7                                  <== NOT EXECUTED
 80033e8:	5b 88 00 2c 	sw (sp+44),r8                                  <== NOT EXECUTED
 80033ec:	5b 81 00 10 	sw (sp+16),r1                                  <== NOT EXECUTED
 80033f0:	5b 83 00 18 	sw (sp+24),r3                                  <== NOT EXECUTED
  int ret;                                                            
  va_list args;                                                       
  va_start (args, format);                                            
  fprintf (stderr, "fdisk:error:");                                   
 80033f4:	28 42 00 0c 	lw r2,(r2+12)                                  <== NOT EXECUTED
 80033f8:	78 03 08 03 	mvhi r3,0x803                                  <== NOT EXECUTED
 * @param ... The arguments for the format text.                      
 * @return int The number of bytes written to the output.             
 */                                                                   
static int                                                            
rtems_fdisk_error (const char *format, ...)                           
{                                                                     
 80033fc:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
  int ret;                                                            
  va_list args;                                                       
  va_start (args, format);                                            
  fprintf (stderr, "fdisk:error:");                                   
 8003400:	b8 60 08 00 	mv r1,r3                                       <== NOT EXECUTED
 8003404:	38 21 3c 78 	ori r1,r1,0x3c78                               <== NOT EXECUTED
 8003408:	f8 00 74 65 	calli 802059c <fputs>                          <== NOT EXECUTED
  ret =  vfprintf (stderr, format, args);                             
 800340c:	29 61 00 00 	lw r1,(r11+0)                                  <== NOT EXECUTED
 8003410:	37 83 00 14 	addi r3,sp,20                                  <== NOT EXECUTED
 8003414:	b9 80 10 00 	mv r2,r12                                      <== NOT EXECUTED
 8003418:	28 21 00 0c 	lw r1,(r1+12)                                  <== NOT EXECUTED
 800341c:	f8 00 95 da 	calli 8028b84 <vfprintf>                       <== NOT EXECUTED
  fprintf (stderr, "\n");                                             
 8003420:	29 62 00 00 	lw r2,(r11+0)                                  <== NOT EXECUTED
{                                                                     
  int ret;                                                            
  va_list args;                                                       
  va_start (args, format);                                            
  fprintf (stderr, "fdisk:error:");                                   
  ret =  vfprintf (stderr, format, args);                             
 8003424:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
  fprintf (stderr, "\n");                                             
 8003428:	34 01 00 0a 	mvi r1,10                                      <== NOT EXECUTED
 800342c:	28 42 00 0c 	lw r2,(r2+12)                                  <== NOT EXECUTED
 8003430:	f8 00 74 17 	calli 802048c <fputc>                          <== NOT EXECUTED
  fflush (stderr);                                                    
 8003434:	29 61 00 00 	lw r1,(r11+0)                                  <== NOT EXECUTED
 8003438:	28 21 00 0c 	lw r1,(r1+12)                                  <== NOT EXECUTED
 800343c:	f8 00 72 86 	calli 801fe54 <fflush>                         <== NOT EXECUTED
  va_end (args);                                                      
  return ret;                                                         
}                                                                     
 8003440:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8003444:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 8003448:	2b 8b 00 0c 	lw r11,(sp+12)                                 <== NOT EXECUTED
 800344c:	2b 8c 00 08 	lw r12,(sp+8)                                  <== NOT EXECUTED
 8003450:	37 9c 00 2c 	addi sp,sp,44                                  <== NOT EXECUTED
 8003454:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08002d94 <rtems_fdisk_info>: * @param ... The arguments for the format text. * @return int The number of bytes written to the output. */ static int rtems_fdisk_info (const rtems_flashdisk* fd, const char *format, ...) {
 8002d94:	37 9c ff d4 	addi sp,sp,-44                                 
 8002d98:	5b 8b 00 10 	sw (sp+16),r11                                 
 8002d9c:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8002da0:	5b 8d 00 08 	sw (sp+8),r13                                  
 8002da4:	5b 9d 00 04 	sw (sp+4),ra                                   
 8002da8:	5b 82 00 14 	sw (sp+20),r2                                  
 8002dac:	5b 83 00 18 	sw (sp+24),r3                                  
 8002db0:	5b 84 00 1c 	sw (sp+28),r4                                  
 8002db4:	5b 85 00 20 	sw (sp+32),r5                                  
 8002db8:	5b 86 00 24 	sw (sp+36),r6                                  
 8002dbc:	5b 87 00 28 	sw (sp+40),r7                                  
 8002dc0:	5b 88 00 2c 	sw (sp+44),r8                                  
  int ret = 0;                                                        
  if (fd->info_level >= 2)                                            
 8002dc4:	28 21 00 6c 	lw r1,(r1+108)                                 
 * @param ... The arguments for the format text.                      
 * @return int The number of bytes written to the output.             
 */                                                                   
static int                                                            
rtems_fdisk_info (const rtems_flashdisk* fd, const char *format, ...) 
{                                                                     
 8002dc8:	b8 40 68 00 	mv r13,r2                                      
  int ret = 0;                                                        
  if (fd->info_level >= 2)                                            
 8002dcc:	34 02 00 01 	mvi r2,1                                       
 * @return int The number of bytes written to the output.             
 */                                                                   
static int                                                            
rtems_fdisk_info (const rtems_flashdisk* fd, const char *format, ...) 
{                                                                     
  int ret = 0;                                                        
 8002dd0:	34 0c 00 00 	mvi r12,0                                      
  if (fd->info_level >= 2)                                            
 8002dd4:	50 41 00 15 	bgeu r2,r1,8002e28 <rtems_fdisk_info+0x94>     <== ALWAYS TAKEN
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
    fprintf (stdout, "fdisk:");                                       
 8002dd8:	78 0b 08 03 	mvhi r11,0x803                                 <== NOT EXECUTED
 8002ddc:	39 6b 92 40 	ori r11,r11,0x9240                             <== NOT EXECUTED
 8002de0:	29 62 00 00 	lw r2,(r11+0)                                  <== NOT EXECUTED
 8002de4:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8002de8:	38 21 3b f4 	ori r1,r1,0x3bf4                               <== NOT EXECUTED
 8002dec:	28 42 00 08 	lw r2,(r2+8)                                   <== NOT EXECUTED
 8002df0:	f8 00 75 eb 	calli 802059c <fputs>                          <== NOT EXECUTED
    ret =  vfprintf (stdout, format, args);                           
 8002df4:	29 61 00 00 	lw r1,(r11+0)                                  <== NOT EXECUTED
 8002df8:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 8002dfc:	37 83 00 18 	addi r3,sp,24                                  <== NOT EXECUTED
 8002e00:	28 21 00 08 	lw r1,(r1+8)                                   <== NOT EXECUTED
 8002e04:	f8 00 97 60 	calli 8028b84 <vfprintf>                       <== NOT EXECUTED
    fprintf (stdout, "\n");                                           
 8002e08:	29 62 00 00 	lw r2,(r11+0)                                  <== NOT EXECUTED
  if (fd->info_level >= 2)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
    fprintf (stdout, "fdisk:");                                       
    ret =  vfprintf (stdout, format, args);                           
 8002e0c:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
    fprintf (stdout, "\n");                                           
 8002e10:	34 01 00 0a 	mvi r1,10                                      <== NOT EXECUTED
 8002e14:	28 42 00 08 	lw r2,(r2+8)                                   <== NOT EXECUTED
 8002e18:	f8 00 75 9d 	calli 802048c <fputc>                          <== NOT EXECUTED
    fflush (stdout);                                                  
 8002e1c:	29 61 00 00 	lw r1,(r11+0)                                  <== NOT EXECUTED
 8002e20:	28 21 00 08 	lw r1,(r1+8)                                   <== NOT EXECUTED
 8002e24:	f8 00 74 0c 	calli 801fe54 <fflush>                         <== NOT EXECUTED
    va_end (args);                                                    
  }                                                                   
  return ret;                                                         
}                                                                     
 8002e28:	b9 80 08 00 	mv r1,r12                                      
 8002e2c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002e30:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8002e34:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8002e38:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8002e3c:	37 9c 00 2c 	addi sp,sp,44                                  
 8002e40:	c3 a0 00 00 	ret                                            
                                                                      

08005504 <rtems_fdisk_initialize>: */ rtems_device_driver rtems_fdisk_initialize (rtems_device_major_number major, rtems_device_minor_number minor, void* arg __attribute__((unused))) {
 8005504:	37 9c ff a0 	addi sp,sp,-96                                 
 8005508:	5b 8b 00 44 	sw (sp+68),r11                                 
 800550c:	5b 8c 00 40 	sw (sp+64),r12                                 
 8005510:	5b 8d 00 3c 	sw (sp+60),r13                                 
 8005514:	5b 8e 00 38 	sw (sp+56),r14                                 
 8005518:	5b 8f 00 34 	sw (sp+52),r15                                 
 800551c:	5b 90 00 30 	sw (sp+48),r16                                 
 8005520:	5b 91 00 2c 	sw (sp+44),r17                                 
 8005524:	5b 92 00 28 	sw (sp+40),r18                                 
 8005528:	5b 93 00 24 	sw (sp+36),r19                                 
 800552c:	5b 94 00 20 	sw (sp+32),r20                                 
 8005530:	5b 95 00 1c 	sw (sp+28),r21                                 
 8005534:	5b 96 00 18 	sw (sp+24),r22                                 
 8005538:	5b 97 00 14 	sw (sp+20),r23                                 
 800553c:	5b 98 00 10 	sw (sp+16),r24                                 
 8005540:	5b 99 00 0c 	sw (sp+12),r25                                 
 8005544:	5b 9b 00 08 	sw (sp+8),fp                                   
 8005548:	5b 9d 00 04 	sw (sp+4),ra                                   
 800554c:	b8 20 78 00 	mv r15,r1                                      
  const rtems_flashdisk_config* c = rtems_flashdisk_configuration;    
  rtems_flashdisk*              fd;                                   
  rtems_status_code             sc;                                   
                                                                      
  sc = rtems_disk_io_initialize ();                                   
 8005550:	fb ff f5 47 	calli 8002a6c <rtems_disk_io_initialize>       
 8005554:	b8 20 58 00 	mv r11,r1                                      
  if (sc != RTEMS_SUCCESSFUL)                                         
 8005558:	b8 20 18 00 	mv r3,r1                                       
 800555c:	5c 20 01 21 	bne r1,r0,80059e0 <rtems_fdisk_initialize+0x4dc><== NEVER TAKEN
static rtems_status_code                                              
rtems_fdisk_crc16_gen_factors (uint16_t pattern)                      
{                                                                     
  uint32_t b;                                                         
                                                                      
  rtems_fdisk_crc16_factor = malloc (sizeof (uint16_t) * 256);        
 8005560:	34 01 02 00 	mvi r1,512                                     
 8005564:	f8 00 05 b5 	calli 8006c38 <malloc>                         
 8005568:	78 02 08 04 	mvhi r2,0x804                                  
 800556c:	38 42 97 64 	ori r2,r2,0x9764                               
 8005570:	58 41 00 00 	sw (r2+0),r1                                   
  if (!rtems_fdisk_crc16_factor)                                      
    return RTEMS_NO_MEMORY;                                           
 8005574:	34 03 00 1a 	mvi r3,26                                      
rtems_fdisk_crc16_gen_factors (uint16_t pattern)                      
{                                                                     
  uint32_t b;                                                         
                                                                      
  rtems_fdisk_crc16_factor = malloc (sizeof (uint16_t) * 256);        
  if (!rtems_fdisk_crc16_factor)                                      
 8005578:	44 2b 01 1a 	be r1,r11,80059e0 <rtems_fdisk_initialize+0x4dc><== NEVER TAKEN
 800557c:	b8 20 60 00 	mv r12,r1                                      
    return RTEMS_NO_MEMORY;                                           
                                                                      
  for (b = 0; b < 256; b++)                                           
 8005580:	34 0e 01 00 	mvi r14,256                                    
rtems_fdisk_crc16_gen_factors (uint16_t pattern)                      
{                                                                     
  uint32_t b;                                                         
                                                                      
  rtems_fdisk_crc16_factor = malloc (sizeof (uint16_t) * 256);        
  if (!rtems_fdisk_crc16_factor)                                      
 8005584:	21 62 ff ff 	andi r2,r11,0xffff                             
 8005588:	34 0d 00 09 	mvi r13,9                                      
 800558c:	e0 00 00 0d 	bi 80055c0 <rtems_fdisk_initialize+0xbc>       
  for (b = 0; b < 256; b++)                                           
  {                                                                   
    uint32_t i;                                                       
    uint16_t v = b;                                                   
    for (i = 8; i--;)                                                 
      v = v & 1 ? (v >> 1) ^ pattern : v >> 1;                        
 8005590:	20 41 00 01 	andi r1,r2,0x1                                 
 8005594:	44 20 00 07 	be r1,r0,80055b0 <rtems_fdisk_initialize+0xac> 
 8005598:	b8 40 08 00 	mv r1,r2                                       
 800559c:	34 02 00 01 	mvi r2,1                                       
 80055a0:	fb ff ef f7 	calli 800157c <__lshrsi3>                      
 80055a4:	20 21 ff ff 	andi r1,r1,0xffff                              
 80055a8:	18 22 84 08 	xori r2,r1,0x8408                              
 80055ac:	e0 00 00 05 	bi 80055c0 <rtems_fdisk_initialize+0xbc>       
 80055b0:	b8 40 08 00 	mv r1,r2                                       
 80055b4:	34 02 00 01 	mvi r2,1                                       
 80055b8:	fb ff ef f1 	calli 800157c <__lshrsi3>                      
 80055bc:	20 22 ff ff 	andi r2,r1,0xffff                              
 80055c0:	35 ad ff ff 	addi r13,r13,-1                                
                                                                      
  for (b = 0; b < 256; b++)                                           
  {                                                                   
    uint32_t i;                                                       
    uint16_t v = b;                                                   
    for (i = 8; i--;)                                                 
 80055c4:	5d a0 ff f3 	bne r13,r0,8005590 <rtems_fdisk_initialize+0x8c>
      v = v & 1 ? (v >> 1) ^ pattern : v >> 1;                        
    rtems_fdisk_crc16_factor[b] = v & 0xffff;                         
 80055c8:	0d 82 00 00 	sh (r12+0),r2                                  
                                                                      
  rtems_fdisk_crc16_factor = malloc (sizeof (uint16_t) * 256);        
  if (!rtems_fdisk_crc16_factor)                                      
    return RTEMS_NO_MEMORY;                                           
                                                                      
  for (b = 0; b < 256; b++)                                           
 80055cc:	35 6b 00 01 	addi r11,r11,1                                 
 80055d0:	35 8c 00 02 	addi r12,r12,2                                 
 80055d4:	5d 6e ff ec 	bne r11,r14,8005584 <rtems_fdisk_initialize+0x80>
 80055d8:	e0 00 01 16 	bi 8005a30 <rtems_fdisk_initialize+0x52c>      
  if (!rtems_flashdisks)                                              
    return RTEMS_NO_MEMORY;                                           
                                                                      
  for (minor = 0; minor < rtems_flashdisk_configuration_size; minor++, c++)
  {                                                                   
    char     name[] = RTEMS_FLASHDISK_DEVICE_BASE_NAME "a";           
 80055dc:	29 c1 00 04 	lw r1,(r14+4)                                  
 80055e0:	29 c2 00 00 	lw r2,(r14+0)                                  
    dev_t    dev = rtems_filesystem_make_dev_t (major, minor);        
    uint32_t device;                                                  
    uint32_t blocks = 0;                                              
    int      ret;                                                     
                                                                      
    fd = &rtems_flashdisks[minor];                                    
 80055e4:	2b 6b 00 00 	lw r11,(fp+0)                                  
  if (!rtems_flashdisks)                                              
    return RTEMS_NO_MEMORY;                                           
                                                                      
  for (minor = 0; minor < rtems_flashdisk_configuration_size; minor++, c++)
  {                                                                   
    char     name[] = RTEMS_FLASHDISK_DEVICE_BASE_NAME "a";           
 80055e8:	5b 81 00 5c 	sw (sp+92),r1                                  
 80055ec:	5b 82 00 58 	sw (sp+88),r2                                  
 80055f0:	2d c1 00 08 	lhu r1,(r14+8)                                 
    dev_t    dev = rtems_filesystem_make_dev_t (major, minor);        
    uint32_t device;                                                  
    uint32_t blocks = 0;                                              
    int      ret;                                                     
                                                                      
    fd = &rtems_flashdisks[minor];                                    
 80055f4:	b5 76 58 00 	add r11,r11,r22                                
    fd->avail_compact_segs = c->avail_compact_segs;                   
    fd->block_size         = c->block_size;                           
    fd->unavail_blocks     = c->unavail_blocks;                       
    fd->info_level         = c->info_level;                           
                                                                      
    for (device = 0; device < c->device_count; device++)              
 80055f8:	34 13 00 00 	mvi r19,0                                      
  if (!rtems_flashdisks)                                              
    return RTEMS_NO_MEMORY;                                           
                                                                      
  for (minor = 0; minor < rtems_flashdisk_configuration_size; minor++, c++)
  {                                                                   
    char     name[] = RTEMS_FLASHDISK_DEVICE_BASE_NAME "a";           
 80055fc:	0f 81 00 60 	sh (sp+96),r1                                  
    uint32_t blocks = 0;                                              
    int      ret;                                                     
                                                                      
    fd = &rtems_flashdisks[minor];                                    
                                                                      
    name [sizeof(RTEMS_FLASHDISK_DEVICE_BASE_NAME)] += minor;         
 8005600:	b5 a1 08 00 	add r1,r13,r1                                  
 8005604:	33 81 00 61 	sb (sp+97),r1                                  
                                                                      
    fd->major              = major;                                   
 8005608:	59 6f 00 00 	sw (r11+0),r15                                 
    fd->minor              = minor;                                   
 800560c:	59 6d 00 04 	sw (r11+4),r13                                 
    fd->flags              = c->flags;                                
 8005610:	29 81 00 0c 	lw r1,(r12+12)                                 
  for (minor = 0; minor < rtems_flashdisk_configuration_size; minor++, c++)
  {                                                                   
    char     name[] = RTEMS_FLASHDISK_DEVICE_BASE_NAME "a";           
    dev_t    dev = rtems_filesystem_make_dev_t (major, minor);        
    uint32_t device;                                                  
    uint32_t blocks = 0;                                              
 8005614:	34 10 00 00 	mvi r16,0                                      
    fd->avail_compact_segs = c->avail_compact_segs;                   
    fd->block_size         = c->block_size;                           
    fd->unavail_blocks     = c->unavail_blocks;                       
    fd->info_level         = c->info_level;                           
                                                                      
    for (device = 0; device < c->device_count; device++)              
 8005618:	34 12 00 00 	mvi r18,0                                      
                                                                      
    name [sizeof(RTEMS_FLASHDISK_DEVICE_BASE_NAME)] += minor;         
                                                                      
    fd->major              = major;                                   
    fd->minor              = minor;                                   
    fd->flags              = c->flags;                                
 800561c:	59 61 00 08 	sw (r11+8),r1                                  
    fd->compact_segs       = c->compact_segs;                         
 8005620:	29 81 00 14 	lw r1,(r12+20)                                 
 8005624:	59 61 00 0c 	sw (r11+12),r1                                 
    fd->avail_compact_segs = c->avail_compact_segs;                   
 8005628:	29 81 00 18 	lw r1,(r12+24)                                 
 800562c:	59 61 00 10 	sw (r11+16),r1                                 
    fd->block_size         = c->block_size;                           
 8005630:	29 91 00 00 	lw r17,(r12+0)                                 
 8005634:	59 71 00 14 	sw (r11+20),r17                                
    fd->unavail_blocks     = c->unavail_blocks;                       
 8005638:	29 81 00 10 	lw r1,(r12+16)                                 
 800563c:	59 61 00 20 	sw (r11+32),r1                                 
    fd->info_level         = c->info_level;                           
 8005640:	29 81 00 1c 	lw r1,(r12+28)                                 
 8005644:	59 61 00 6c 	sw (r11+108),r1                                
                                                                      
    for (device = 0; device < c->device_count; device++)              
 8005648:	29 81 00 04 	lw r1,(r12+4)                                  
 800564c:	5b 81 00 54 	sw (sp+84),r1                                  
 8005650:	e0 00 00 23 	bi 80056dc <rtems_fdisk_initialize+0x1d8>      
      blocks += rtems_fdisk_blocks_in_device (&c->devices[device],    
 8005654:	29 99 00 08 	lw r25,(r12+8)                                 
rtems_fdisk_blocks_in_device (const rtems_fdisk_device_desc* dd,      
                              uint32_t                       page_size)
{                                                                     
  uint32_t count = 0;                                                 
  uint32_t s;                                                         
  for (s = 0; s < dd->segment_count; s++)                             
 8005658:	34 18 00 00 	mvi r24,0                                      
 800565c:	34 17 00 00 	mvi r23,0                                      
    fd->block_size         = c->block_size;                           
    fd->unavail_blocks     = c->unavail_blocks;                       
    fd->info_level         = c->info_level;                           
                                                                      
    for (device = 0; device < c->device_count; device++)              
      blocks += rtems_fdisk_blocks_in_device (&c->devices[device],    
 8005660:	b7 33 c8 00 	add r25,r25,r19                                
rtems_fdisk_blocks_in_device (const rtems_fdisk_device_desc* dd,      
                              uint32_t                       page_size)
{                                                                     
  uint32_t count = 0;                                                 
  uint32_t s;                                                         
  for (s = 0; s < dd->segment_count; s++)                             
 8005664:	2b 24 00 00 	lw r4,(r25+0)                                  
 */                                                                   
static uint32_t                                                       
rtems_fdisk_blocks_in_device (const rtems_fdisk_device_desc* dd,      
                              uint32_t                       page_size)
{                                                                     
  uint32_t count = 0;                                                 
 8005668:	34 14 00 00 	mvi r20,0                                      
 800566c:	e0 00 00 18 	bi 80056cc <rtems_fdisk_initialize+0x1c8>      
  uint32_t s;                                                         
  for (s = 0; s < dd->segment_count; s++)                             
  {                                                                   
    const rtems_fdisk_segment_desc* sd = &dd->segments[s];            
 8005670:	2b 23 00 04 	lw r3,(r25+4)                                  
 */                                                                   
static uint32_t                                                       
rtems_fdisk_pages_in_segment (const rtems_fdisk_segment_desc* sd,     
                              uint32_t                        page_size)
{                                                                     
  return sd->size / page_size;                                        
 8005674:	ba 20 10 00 	mv r2,r17                                      
rtems_fdisk_blocks_in_device (const rtems_fdisk_device_desc* dd,      
                              uint32_t                       page_size)
{                                                                     
  uint32_t count = 0;                                                 
  uint32_t s;                                                         
  for (s = 0; s < dd->segment_count; s++)                             
 8005678:	36 f7 00 01 	addi r23,r23,1                                 
  {                                                                   
    const rtems_fdisk_segment_desc* sd = &dd->segments[s];            
 800567c:	b4 78 18 00 	add r3,r3,r24                                  
 */                                                                   
static uint32_t                                                       
rtems_fdisk_pages_in_segment (const rtems_fdisk_segment_desc* sd,     
                              uint32_t                        page_size)
{                                                                     
  return sd->size / page_size;                                        
 8005680:	28 61 00 08 	lw r1,(r3+8)                                   
 8005684:	5b 84 00 48 	sw (sp+72),r4                                  
 8005688:	5b 83 00 4c 	sw (sp+76),r3                                  
 800568c:	fb ff ef ef 	calli 8001648 <__udivsi3>                      
rtems_fdisk_page_desc_pages (const rtems_fdisk_segment_desc* sd,      
                             uint32_t                        page_size)
{                                                                     
  uint32_t pages = rtems_fdisk_pages_in_segment (sd, page_size);      
  uint32_t bytes = pages * sizeof (rtems_fdisk_page_desc);            
  return ((bytes - 1) / page_size) + 1;                               
 8005690:	34 25 ff ff 	addi r5,r1,-1                                  
static uint32_t                                                       
rtems_fdisk_page_desc_pages (const rtems_fdisk_segment_desc* sd,      
                             uint32_t                        page_size)
{                                                                     
  uint32_t pages = rtems_fdisk_pages_in_segment (sd, page_size);      
  uint32_t bytes = pages * sizeof (rtems_fdisk_page_desc);            
 8005694:	34 02 00 03 	mvi r2,3                                       
 8005698:	5b 85 00 50 	sw (sp+80),r5                                  
 800569c:	fb ff ef 91 	calli 80014e0 <__ashlsi3>                      
  return ((bytes - 1) / page_size) + 1;                               
 80056a0:	ba 20 10 00 	mv r2,r17                                      
 80056a4:	34 21 ff ff 	addi r1,r1,-1                                  
 80056a8:	fb ff ef e8 	calli 8001648 <__udivsi3>                      
  for (s = 0; s < dd->segment_count; s++)                             
  {                                                                   
    const rtems_fdisk_segment_desc* sd = &dd->segments[s];            
    count +=                                                          
      (rtems_fdisk_pages_in_segment (sd, page_size) -                 
       rtems_fdisk_page_desc_pages (sd, page_size)) * sd->count;      
 80056ac:	2b 83 00 4c 	lw r3,(sp+76)                                  
 80056b0:	2b 85 00 50 	lw r5,(sp+80)                                  
rtems_fdisk_blocks_in_device (const rtems_fdisk_device_desc* dd,      
                              uint32_t                       page_size)
{                                                                     
  uint32_t count = 0;                                                 
  uint32_t s;                                                         
  for (s = 0; s < dd->segment_count; s++)                             
 80056b4:	37 18 00 0c 	addi r24,r24,12                                
  {                                                                   
    const rtems_fdisk_segment_desc* sd = &dd->segments[s];            
    count +=                                                          
      (rtems_fdisk_pages_in_segment (sd, page_size) -                 
       rtems_fdisk_page_desc_pages (sd, page_size)) * sd->count;      
 80056b8:	2c 62 00 00 	lhu r2,(r3+0)                                  
 80056bc:	c8 a1 08 00 	sub r1,r5,r1                                   
 80056c0:	fb ff ef d6 	calli 8001618 <__mulsi3>                       
rtems_fdisk_blocks_in_device (const rtems_fdisk_device_desc* dd,      
                              uint32_t                       page_size)
{                                                                     
  uint32_t count = 0;                                                 
  uint32_t s;                                                         
  for (s = 0; s < dd->segment_count; s++)                             
 80056c4:	2b 84 00 48 	lw r4,(sp+72)                                  
  {                                                                   
    const rtems_fdisk_segment_desc* sd = &dd->segments[s];            
    count +=                                                          
 80056c8:	b6 81 a0 00 	add r20,r20,r1                                 
rtems_fdisk_blocks_in_device (const rtems_fdisk_device_desc* dd,      
                              uint32_t                       page_size)
{                                                                     
  uint32_t count = 0;                                                 
  uint32_t s;                                                         
  for (s = 0; s < dd->segment_count; s++)                             
 80056cc:	54 97 ff e9 	bgu r4,r23,8005670 <rtems_fdisk_initialize+0x16c>
    fd->block_size         = c->block_size;                           
    fd->unavail_blocks     = c->unavail_blocks;                       
    fd->info_level         = c->info_level;                           
                                                                      
    for (device = 0; device < c->device_count; device++)              
      blocks += rtems_fdisk_blocks_in_device (&c->devices[device],    
 80056d0:	b6 14 80 00 	add r16,r16,r20                                
    fd->avail_compact_segs = c->avail_compact_segs;                   
    fd->block_size         = c->block_size;                           
    fd->unavail_blocks     = c->unavail_blocks;                       
    fd->info_level         = c->info_level;                           
                                                                      
    for (device = 0; device < c->device_count; device++)              
 80056d4:	36 52 00 01 	addi r18,r18,1                                 
 80056d8:	36 73 00 0c 	addi r19,r19,12                                
 80056dc:	2b 82 00 54 	lw r2,(sp+84)                                  
 80056e0:	54 52 ff dd 	bgu r2,r18,8005654 <rtems_fdisk_initialize+0x150>
                                              c->block_size);         
                                                                      
    /*                                                                
     * One copy buffer of a page size.                                
     */                                                               
    fd->copy_buffer = malloc (c->block_size);                         
 80056e4:	ba 20 08 00 	mv r1,r17                                      
 80056e8:	f8 00 05 54 	calli 8006c38 <malloc>                         
 80056ec:	59 61 00 68 	sw (r11+104),r1                                
    if (!fd->copy_buffer)                                             
 80056f0:	44 20 00 bb 	be r1,r0,80059dc <rtems_fdisk_initialize+0x4d8><== NEVER TAKEN
      return RTEMS_NO_MEMORY;                                         
                                                                      
    fd->blocks = calloc (blocks, sizeof (rtems_fdisk_block_ctl));     
 80056f4:	ba 00 08 00 	mv r1,r16                                      
 80056f8:	34 02 00 08 	mvi r2,8                                       
 80056fc:	f8 00 02 e6 	calli 8006294 <calloc>                         
 8005700:	59 61 00 18 	sw (r11+24),r1                                 
    if (!fd->blocks)                                                  
 8005704:	44 20 00 b6 	be r1,r0,80059dc <rtems_fdisk_initialize+0x4d8><== NEVER TAKEN
      return RTEMS_NO_MEMORY;                                         
                                                                      
    fd->block_count = blocks;                                         
                                                                      
    fd->devices = calloc (c->device_count, sizeof (rtems_fdisk_device_ctl));
 8005708:	2b 81 00 54 	lw r1,(sp+84)                                  
                                                                      
    fd->blocks = calloc (blocks, sizeof (rtems_fdisk_block_ctl));     
    if (!fd->blocks)                                                  
      return RTEMS_NO_MEMORY;                                         
                                                                      
    fd->block_count = blocks;                                         
 800570c:	59 70 00 1c 	sw (r11+28),r16                                
                                                                      
    fd->devices = calloc (c->device_count, sizeof (rtems_fdisk_device_ctl));
 8005710:	34 02 00 0c 	mvi r2,12                                      
 8005714:	f8 00 02 e0 	calli 8006294 <calloc>                         
 8005718:	59 61 00 2c 	sw (r11+44),r1                                 
    if (!fd->devices)                                                 
 800571c:	44 20 00 b0 	be r1,r0,80059dc <rtems_fdisk_initialize+0x4d8><== NEVER TAKEN
      return RTEMS_NO_MEMORY;                                         
                                                                      
    sc = rtems_semaphore_create (rtems_build_name ('F', 'D', 'S', 'K'), 1,
 8005720:	78 02 08 03 	mvhi r2,0x803                                  
 8005724:	38 42 47 08 	ori r2,r2,0x4708                               
 8005728:	28 41 00 00 	lw r1,(r2+0)                                   
 800572c:	34 03 00 54 	mvi r3,84                                      
 8005730:	34 02 00 01 	mvi r2,1                                       
 8005734:	34 04 00 00 	mvi r4,0                                       
 8005738:	35 65 00 64 	addi r5,r11,100                                
 800573c:	f8 00 0e 50 	calli 800907c <rtems_semaphore_create>         
 8005740:	b8 20 88 00 	mv r17,r1                                      
                                 RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE |
                                 RTEMS_INHERIT_PRIORITY, 0, &fd->lock);
    if (sc != RTEMS_SUCCESSFUL)                                       
 8005744:	44 20 00 0b 	be r1,r0,8005770 <rtems_fdisk_initialize+0x26c><== ALWAYS TAKEN
    {                                                                 
      rtems_fdisk_error ("disk lock create failed");                  
 8005748:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800574c:	38 21 46 78 	ori r1,r1,0x4678                               <== NOT EXECUTED
 8005750:	fb ff f7 1a 	calli 80033b8 <rtems_fdisk_error>              <== NOT EXECUTED
      free (fd->copy_buffer);                                         
 8005754:	29 61 00 68 	lw r1,(r11+104)                                <== NOT EXECUTED
 8005758:	f8 00 03 4d 	calli 800648c <free>                           <== NOT EXECUTED
      free (fd->blocks);                                              
 800575c:	29 61 00 18 	lw r1,(r11+24)                                 <== NOT EXECUTED
 8005760:	f8 00 03 4b 	calli 800648c <free>                           <== NOT EXECUTED
      free (fd->devices);                                             
 8005764:	29 61 00 2c 	lw r1,(r11+44)                                 <== NOT EXECUTED
 8005768:	f8 00 03 49 	calli 800648c <free>                           <== NOT EXECUTED
 800576c:	e0 00 00 8f 	bi 80059a8 <rtems_fdisk_initialize+0x4a4>      <== NOT EXECUTED
      return sc;                                                      
    }                                                                 
                                                                      
    sc = rtems_disk_create_phys(dev, c->block_size,                   
 8005770:	29 64 00 20 	lw r4,(r11+32)                                 
 8005774:	29 83 00 00 	lw r3,(r12+0)                                  
 8005778:	b9 e0 08 00 	mv r1,r15                                      
 800577c:	ca 04 20 00 	sub r4,r16,r4                                  
 8005780:	b9 a0 10 00 	mv r2,r13                                      
 8005784:	ba a0 28 00 	mv r5,r21                                      
 8005788:	34 06 00 00 	mvi r6,0                                       
 800578c:	37 87 00 58 	addi r7,sp,88                                  
 8005790:	fb ff f3 eb 	calli 800273c <rtems_disk_create_phys>         
 8005794:	b8 20 80 00 	mv r16,r1                                      
                                blocks - fd->unavail_blocks,          
                                rtems_fdisk_ioctl, NULL, name);       
    if (sc != RTEMS_SUCCESSFUL)                                       
 8005798:	5c 31 00 04 	bne r1,r17,80057a8 <rtems_fdisk_initialize+0x2a4><== NEVER TAKEN
 800579c:	34 13 00 00 	mvi r19,0                                      
 80057a0:	34 12 00 00 	mvi r18,0                                      
 80057a4:	e0 00 00 4f 	bi 80058e0 <rtems_fdisk_initialize+0x3dc>      
    {                                                                 
      rtems_semaphore_delete (fd->lock);                              
 80057a8:	29 61 00 64 	lw r1,(r11+100)                                <== NOT EXECUTED
 80057ac:	f8 00 0e b1 	calli 8009270 <rtems_semaphore_delete>         <== NOT EXECUTED
      rtems_disk_delete (dev);                                        
 80057b0:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 80057b4:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
 80057b8:	fb ff f3 0d 	calli 80023ec <rtems_disk_delete>              <== NOT EXECUTED
      free (fd->copy_buffer);                                         
 80057bc:	29 61 00 68 	lw r1,(r11+104)                                <== NOT EXECUTED
 80057c0:	f8 00 03 33 	calli 800648c <free>                           <== NOT EXECUTED
      free (fd->blocks);                                              
 80057c4:	29 61 00 18 	lw r1,(r11+24)                                 <== NOT EXECUTED
 80057c8:	f8 00 03 31 	calli 800648c <free>                           <== NOT EXECUTED
      free (fd->devices);                                             
 80057cc:	29 61 00 2c 	lw r1,(r11+44)                                 <== NOT EXECUTED
 80057d0:	f8 00 03 2f 	calli 800648c <free>                           <== NOT EXECUTED
      rtems_fdisk_error ("disk create phy failed");                   
 80057d4:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 80057d8:	38 21 46 90 	ori r1,r1,0x4690                               <== NOT EXECUTED
 80057dc:	fb ff f6 f7 	calli 80033b8 <rtems_fdisk_error>              <== NOT EXECUTED
 80057e0:	e0 00 00 59 	bi 8005944 <rtems_fdisk_initialize+0x440>      <== NOT EXECUTED
    {                                                                 
      rtems_fdisk_segment_ctl* sc;                                    
      uint32_t                 segment_count;                         
      uint32_t                 segment;                               
                                                                      
      segment_count = rtems_fdisk_count_segments (&c->devices[device]);
 80057e4:	29 90 00 08 	lw r16,(r12+8)                                 
static uint32_t                                                       
rtems_fdisk_count_segments (const rtems_fdisk_device_desc* dd)        
{                                                                     
  uint32_t count = 0;                                                 
  uint32_t segment;                                                   
  for (segment = 0; segment < dd->segment_count; segment++)           
 80057e8:	34 03 00 00 	mvi r3,0                                       
 * Count the segments for a device.                                   
 */                                                                   
static uint32_t                                                       
rtems_fdisk_count_segments (const rtems_fdisk_device_desc* dd)        
{                                                                     
  uint32_t count = 0;                                                 
 80057ec:	34 14 00 00 	mvi r20,0                                      
    {                                                                 
      rtems_fdisk_segment_ctl* sc;                                    
      uint32_t                 segment_count;                         
      uint32_t                 segment;                               
                                                                      
      segment_count = rtems_fdisk_count_segments (&c->devices[device]);
 80057f0:	b6 13 80 00 	add r16,r16,r19                                
static uint32_t                                                       
rtems_fdisk_count_segments (const rtems_fdisk_device_desc* dd)        
{                                                                     
  uint32_t count = 0;                                                 
  uint32_t segment;                                                   
  for (segment = 0; segment < dd->segment_count; segment++)           
 80057f4:	2a 01 00 00 	lw r1,(r16+0)                                  
 80057f8:	5b 81 00 54 	sw (sp+84),r1                                  
 80057fc:	34 01 00 00 	mvi r1,0                                       
 8005800:	e0 00 00 07 	bi 800581c <rtems_fdisk_initialize+0x318>      
    count += dd->segments[segment].count;                             
 8005804:	2a 02 00 04 	lw r2,(r16+4)                                  
static uint32_t                                                       
rtems_fdisk_count_segments (const rtems_fdisk_device_desc* dd)        
{                                                                     
  uint32_t count = 0;                                                 
  uint32_t segment;                                                   
  for (segment = 0; segment < dd->segment_count; segment++)           
 8005808:	34 21 00 01 	addi r1,r1,1                                   
    count += dd->segments[segment].count;                             
 800580c:	b4 43 10 00 	add r2,r2,r3                                   
 8005810:	2c 42 00 00 	lhu r2,(r2+0)                                  
static uint32_t                                                       
rtems_fdisk_count_segments (const rtems_fdisk_device_desc* dd)        
{                                                                     
  uint32_t count = 0;                                                 
  uint32_t segment;                                                   
  for (segment = 0; segment < dd->segment_count; segment++)           
 8005814:	34 63 00 0c 	addi r3,r3,12                                  
    count += dd->segments[segment].count;                             
 8005818:	b6 82 a0 00 	add r20,r20,r2                                 
static uint32_t                                                       
rtems_fdisk_count_segments (const rtems_fdisk_device_desc* dd)        
{                                                                     
  uint32_t count = 0;                                                 
  uint32_t segment;                                                   
  for (segment = 0; segment < dd->segment_count; segment++)           
 800581c:	2b 82 00 54 	lw r2,(sp+84)                                  
 8005820:	54 41 ff f9 	bgu r2,r1,8005804 <rtems_fdisk_initialize+0x300>
      uint32_t                 segment_count;                         
      uint32_t                 segment;                               
                                                                      
      segment_count = rtems_fdisk_count_segments (&c->devices[device]);
                                                                      
      fd->devices[device].segments = calloc (segment_count,           
 8005824:	29 77 00 2c 	lw r23,(r11+44)                                
 8005828:	ba 80 08 00 	mv r1,r20                                      
 800582c:	34 02 00 30 	mvi r2,48                                      
 8005830:	f8 00 02 99 	calli 8006294 <calloc>                         
 8005834:	b6 f3 b8 00 	add r23,r23,r19                                
 8005838:	5a e1 00 00 	sw (r23+0),r1                                  
 800583c:	b8 20 88 00 	mv r17,r1                                      
                                             sizeof (rtems_fdisk_segment_ctl));
      if (!fd->devices[device].segments)                              
 8005840:	44 20 00 04 	be r1,r0,8005850 <rtems_fdisk_initialize+0x34c><== NEVER TAKEN
 8005844:	34 19 00 00 	mvi r25,0                                      
 8005848:	34 18 00 00 	mvi r24,0                                      
 800584c:	e0 00 00 1f 	bi 80058c8 <rtems_fdisk_initialize+0x3c4>      
      {                                                               
        rtems_disk_delete (dev);                                      
 8005850:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 8005854:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
 8005858:	fb ff f2 e5 	calli 80023ec <rtems_disk_delete>              <== NOT EXECUTED
        rtems_semaphore_delete (fd->lock);                            
 800585c:	29 61 00 64 	lw r1,(r11+100)                                <== NOT EXECUTED
 8005860:	f8 00 0e 84 	calli 8009270 <rtems_semaphore_delete>         <== NOT EXECUTED
        free (fd->copy_buffer);                                       
 8005864:	29 61 00 68 	lw r1,(r11+104)                                <== NOT EXECUTED
 8005868:	f8 00 03 09 	calli 800648c <free>                           <== NOT EXECUTED
        free (fd->blocks);                                            
 800586c:	29 61 00 18 	lw r1,(r11+24)                                 <== NOT EXECUTED
 8005870:	f8 00 03 07 	calli 800648c <free>                           <== NOT EXECUTED
        free (fd->devices);                                           
 8005874:	29 61 00 2c 	lw r1,(r11+44)                                 <== NOT EXECUTED
 8005878:	f8 00 03 05 	calli 800648c <free>                           <== NOT EXECUTED
 800587c:	e0 00 00 58 	bi 80059dc <rtems_fdisk_initialize+0x4d8>      <== NOT EXECUTED
      for (segment = 0; segment < c->devices[device].segment_count; segment++)
      {                                                               
        const rtems_fdisk_segment_desc* sd;                           
        uint32_t                        seg_segment;                  
                                                                      
        sd = &c->devices[device].segments[segment];                   
 8005880:	2a 04 00 04 	lw r4,(r16+4)                                  
                                                                      
        for (seg_segment = 0; seg_segment < sd->count; seg_segment++, sc++)
 8005884:	ba 20 10 00 	mv r2,r17                                      
 8005888:	34 03 00 00 	mvi r3,0                                       
      for (segment = 0; segment < c->devices[device].segment_count; segment++)
      {                                                               
        const rtems_fdisk_segment_desc* sd;                           
        uint32_t                        seg_segment;                  
                                                                      
        sd = &c->devices[device].segments[segment];                   
 800588c:	b4 99 20 00 	add r4,r4,r25                                  
                                                                      
        for (seg_segment = 0; seg_segment < sd->count; seg_segment++, sc++)
 8005890:	2c 81 00 00 	lhu r1,(r4+0)                                  
 8005894:	e0 00 00 07 	bi 80058b0 <rtems_fdisk_initialize+0x3ac>      
        {                                                             
          sc->descriptor = sd;                                        
          sc->device     = device;                                    
          sc->segment    = seg_segment;                               
 8005898:	58 43 00 0c 	sw (r2+12),r3                                  
                                                                      
        sd = &c->devices[device].segments[segment];                   
                                                                      
        for (seg_segment = 0; seg_segment < sd->count; seg_segment++, sc++)
        {                                                             
          sc->descriptor = sd;                                        
 800589c:	58 44 00 04 	sw (r2+4),r4                                   
          sc->device     = device;                                    
 80058a0:	58 52 00 08 	sw (r2+8),r18                                  
          sc->segment    = seg_segment;                               
          sc->erased     = 0;                                         
 80058a4:	58 40 00 2c 	sw (r2+44),r0                                  
        const rtems_fdisk_segment_desc* sd;                           
        uint32_t                        seg_segment;                  
                                                                      
        sd = &c->devices[device].segments[segment];                   
                                                                      
        for (seg_segment = 0; seg_segment < sd->count; seg_segment++, sc++)
 80058a8:	34 63 00 01 	addi r3,r3,1                                   
 80058ac:	34 42 00 30 	addi r2,r2,48                                  
 80058b0:	54 23 ff fa 	bgu r1,r3,8005898 <rtems_fdisk_initialize+0x394>
 * @param major Flash disk major device number.                       
 * @param minor Minor device number, not applicable.                  
 * @param arg Initialization argument, not applicable.                
 */                                                                   
rtems_device_driver                                                   
rtems_fdisk_initialize (rtems_device_major_number major,              
 80058b4:	34 02 00 30 	mvi r2,48                                      
 80058b8:	fb ff ef 58 	calli 8001618 <__mulsi3>                       
        const rtems_fdisk_segment_desc* sd;                           
        uint32_t                        seg_segment;                  
                                                                      
        sd = &c->devices[device].segments[segment];                   
                                                                      
        for (seg_segment = 0; seg_segment < sd->count; seg_segment++, sc++)
 80058bc:	b6 21 88 00 	add r17,r17,r1                                 
        return RTEMS_NO_MEMORY;                                       
      }                                                               
                                                                      
      sc = fd->devices[device].segments;                              
                                                                      
      for (segment = 0; segment < c->devices[device].segment_count; segment++)
 80058c0:	37 18 00 01 	addi r24,r24,1                                 
 80058c4:	37 39 00 0c 	addi r25,r25,12                                
 80058c8:	2b 81 00 54 	lw r1,(sp+84)                                  
 80058cc:	54 38 ff ed 	bgu r1,r24,8005880 <rtems_fdisk_initialize+0x37c>
          sc->segment    = seg_segment;                               
          sc->erased     = 0;                                         
        }                                                             
      }                                                               
                                                                      
      fd->devices[device].segment_count = segment_count;              
 80058d0:	5a f4 00 04 	sw (r23+4),r20                                 
      fd->devices[device].descriptor    = &c->devices[device];        
 80058d4:	5a f0 00 08 	sw (r23+8),r16                                 
      free (fd->devices);                                             
      rtems_fdisk_error ("disk create phy failed");                   
      return sc;                                                      
    }                                                                 
                                                                      
    for (device = 0; device < c->device_count; device++)              
 80058d8:	36 52 00 01 	addi r18,r18,1                                 
 80058dc:	36 73 00 0c 	addi r19,r19,12                                
 80058e0:	29 81 00 04 	lw r1,(r12+4)                                  
 80058e4:	54 32 ff c0 	bgu r1,r18,80057e4 <rtems_fdisk_initialize+0x2e0>
                                                                      
      fd->devices[device].segment_count = segment_count;              
      fd->devices[device].descriptor    = &c->devices[device];        
    }                                                                 
                                                                      
    fd->device_count = c->device_count;                               
 80058e8:	59 61 00 30 	sw (r11+48),r1                                 
                                                                      
    ret = rtems_fdisk_recover_block_mappings (fd);                    
 80058ec:	b9 60 08 00 	mv r1,r11                                      
 80058f0:	fb ff f8 0f 	calli 800392c <rtems_fdisk_recover_block_mappings>
 80058f4:	b8 20 80 00 	mv r16,r1                                      
    if (ret)                                                          
 80058f8:	44 20 00 15 	be r1,r0,800594c <rtems_fdisk_initialize+0x448><== ALWAYS TAKEN
    {                                                                 
      rtems_disk_delete (dev);                                        
 80058fc:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 8005900:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
 8005904:	fb ff f2 ba 	calli 80023ec <rtems_disk_delete>              <== NOT EXECUTED
      rtems_semaphore_delete (fd->lock);                              
 8005908:	29 61 00 64 	lw r1,(r11+100)                                <== NOT EXECUTED
 800590c:	f8 00 0e 59 	calli 8009270 <rtems_semaphore_delete>         <== NOT EXECUTED
      free (fd->copy_buffer);                                         
 8005910:	29 61 00 68 	lw r1,(r11+104)                                <== NOT EXECUTED
 8005914:	f8 00 02 de 	calli 800648c <free>                           <== NOT EXECUTED
      free (fd->blocks);                                              
 8005918:	29 61 00 18 	lw r1,(r11+24)                                 <== NOT EXECUTED
 800591c:	f8 00 02 dc 	calli 800648c <free>                           <== NOT EXECUTED
      free (fd->devices);                                             
 8005920:	29 61 00 2c 	lw r1,(r11+44)                                 <== NOT EXECUTED
 8005924:	f8 00 02 da 	calli 800648c <free>                           <== NOT EXECUTED
      rtems_fdisk_error ("recovery of disk failed: %s (%d)",          
 8005928:	ba 00 08 00 	mv r1,r16                                      <== NOT EXECUTED
 800592c:	f8 00 73 50 	calli 802266c <strerror>                       <== NOT EXECUTED
 8005930:	b8 20 10 00 	mv r2,r1                                       <== NOT EXECUTED
 8005934:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8005938:	38 21 46 a8 	ori r1,r1,0x46a8                               <== NOT EXECUTED
 800593c:	ba 00 18 00 	mv r3,r16                                      <== NOT EXECUTED
 8005940:	fb ff f6 9e 	calli 80033b8 <rtems_fdisk_error>              <== NOT EXECUTED
                         strerror (ret), ret);                        
      return ret;                                                     
 8005944:	ba 00 18 00 	mv r3,r16                                      <== NOT EXECUTED
 8005948:	e0 00 00 26 	bi 80059e0 <rtems_fdisk_initialize+0x4dc>      <== NOT EXECUTED
    }                                                                 
                                                                      
    ret = rtems_fdisk_compact (fd);                                   
 800594c:	b9 60 08 00 	mv r1,r11                                      
 8005950:	fb ff fa 0d 	calli 8004184 <rtems_fdisk_compact>            
 8005954:	b8 20 88 00 	mv r17,r1                                      
 8005958:	36 d6 00 74 	addi r22,r22,116                               
    if (ret)                                                          
 800595c:	44 30 00 15 	be r1,r16,80059b0 <rtems_fdisk_initialize+0x4ac><== ALWAYS TAKEN
    {                                                                 
      rtems_disk_delete (dev);                                        
 8005960:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 8005964:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
 8005968:	fb ff f2 a1 	calli 80023ec <rtems_disk_delete>              <== NOT EXECUTED
      rtems_semaphore_delete (fd->lock);                              
 800596c:	29 61 00 64 	lw r1,(r11+100)                                <== NOT EXECUTED
 8005970:	f8 00 0e 40 	calli 8009270 <rtems_semaphore_delete>         <== NOT EXECUTED
      free (fd->copy_buffer);                                         
 8005974:	29 61 00 68 	lw r1,(r11+104)                                <== NOT EXECUTED
 8005978:	f8 00 02 c5 	calli 800648c <free>                           <== NOT EXECUTED
      free (fd->blocks);                                              
 800597c:	29 61 00 18 	lw r1,(r11+24)                                 <== NOT EXECUTED
 8005980:	f8 00 02 c3 	calli 800648c <free>                           <== NOT EXECUTED
      free (fd->devices);                                             
 8005984:	29 61 00 2c 	lw r1,(r11+44)                                 <== NOT EXECUTED
 8005988:	f8 00 02 c1 	calli 800648c <free>                           <== NOT EXECUTED
      rtems_fdisk_error ("compacting of disk failed: %s (%d)",        
 800598c:	ba 20 08 00 	mv r1,r17                                      <== NOT EXECUTED
 8005990:	f8 00 73 37 	calli 802266c <strerror>                       <== NOT EXECUTED
 8005994:	b8 20 10 00 	mv r2,r1                                       <== NOT EXECUTED
 8005998:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800599c:	38 21 46 cc 	ori r1,r1,0x46cc                               <== NOT EXECUTED
 80059a0:	ba 20 18 00 	mv r3,r17                                      <== NOT EXECUTED
 80059a4:	fb ff f6 85 	calli 80033b8 <rtems_fdisk_error>              <== NOT EXECUTED
                         strerror (ret), ret);                        
      return ret;                                                     
 80059a8:	ba 20 18 00 	mv r3,r17                                      <== NOT EXECUTED
 80059ac:	e0 00 00 0d 	bi 80059e0 <rtems_fdisk_initialize+0x4dc>      <== NOT EXECUTED
                             sizeof (rtems_flashdisk));               
                                                                      
  if (!rtems_flashdisks)                                              
    return RTEMS_NO_MEMORY;                                           
                                                                      
  for (minor = 0; minor < rtems_flashdisk_configuration_size; minor++, c++)
 80059b0:	35 ad 00 01 	addi r13,r13,1                                 
 80059b4:	35 8c 00 20 	addi r12,r12,32                                
 80059b8:	78 01 08 03 	mvhi r1,0x803                                  
 80059bc:	38 21 90 04 	ori r1,r1,0x9004                               
 80059c0:	28 22 00 00 	lw r2,(r1+0)                                   
 80059c4:	54 4d ff 06 	bgu r2,r13,80055dc <rtems_fdisk_initialize+0xd8>
                         strerror (ret), ret);                        
      return ret;                                                     
    }                                                                 
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
 80059c8:	78 01 08 04 	mvhi r1,0x804                                  
 80059cc:	38 21 97 60 	ori r1,r1,0x9760                               
 80059d0:	58 22 00 00 	sw (r1+0),r2                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 80059d4:	34 03 00 00 	mvi r3,0                                       
 80059d8:	e0 00 00 02 	bi 80059e0 <rtems_fdisk_initialize+0x4dc>      
                                                                      
    fd->block_count = blocks;                                         
                                                                      
    fd->devices = calloc (c->device_count, sizeof (rtems_fdisk_device_ctl));
    if (!fd->devices)                                                 
      return RTEMS_NO_MEMORY;                                         
 80059dc:	34 03 00 1a 	mvi r3,26                                      <== NOT EXECUTED
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 80059e0:	b8 60 08 00 	mv r1,r3                                       
 80059e4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80059e8:	2b 8b 00 44 	lw r11,(sp+68)                                 
 80059ec:	2b 8c 00 40 	lw r12,(sp+64)                                 
 80059f0:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 80059f4:	2b 8e 00 38 	lw r14,(sp+56)                                 
 80059f8:	2b 8f 00 34 	lw r15,(sp+52)                                 
 80059fc:	2b 90 00 30 	lw r16,(sp+48)                                 
 8005a00:	2b 91 00 2c 	lw r17,(sp+44)                                 
 8005a04:	2b 92 00 28 	lw r18,(sp+40)                                 
 8005a08:	2b 93 00 24 	lw r19,(sp+36)                                 
 8005a0c:	2b 94 00 20 	lw r20,(sp+32)                                 
 8005a10:	2b 95 00 1c 	lw r21,(sp+28)                                 
 8005a14:	2b 96 00 18 	lw r22,(sp+24)                                 
 8005a18:	2b 97 00 14 	lw r23,(sp+20)                                 
 8005a1c:	2b 98 00 10 	lw r24,(sp+16)                                 
 8005a20:	2b 99 00 0c 	lw r25,(sp+12)                                 
 8005a24:	2b 9b 00 08 	lw fp,(sp+8)                                   
 8005a28:	37 9c 00 60 	addi sp,sp,96                                  
 8005a2c:	c3 a0 00 00 	ret                                            
                                                                      
  sc = rtems_fdisk_crc16_gen_factors (0x8408);                        
  if (sc != RTEMS_SUCCESSFUL)                                         
      return sc;                                                      
                                                                      
  rtems_flashdisks = calloc (rtems_flashdisk_configuration_size,      
 8005a30:	78 0b 08 03 	mvhi r11,0x803                                 
 8005a34:	39 6b 90 04 	ori r11,r11,0x9004                             
 8005a38:	29 61 00 00 	lw r1,(r11+0)                                  
 8005a3c:	34 02 00 74 	mvi r2,116                                     
 8005a40:	f8 00 02 15 	calli 8006294 <calloc>                         
 8005a44:	78 02 08 04 	mvhi r2,0x804                                  
 8005a48:	38 42 97 5c 	ori r2,r2,0x975c                               
 8005a4c:	58 41 00 00 	sw (r2+0),r1                                   
                             sizeof (rtems_flashdisk));               
                                                                      
  if (!rtems_flashdisks)                                              
    return RTEMS_NO_MEMORY;                                           
 8005a50:	34 03 00 1a 	mvi r3,26                                      
      return sc;                                                      
                                                                      
  rtems_flashdisks = calloc (rtems_flashdisk_configuration_size,      
                             sizeof (rtems_flashdisk));               
                                                                      
  if (!rtems_flashdisks)                                              
 8005a54:	44 20 ff e3 	be r1,r0,80059e0 <rtems_fdisk_initialize+0x4dc><== NEVER TAKEN
 8005a58:	78 0c 08 03 	mvhi r12,0x803                                 
    return RTEMS_NO_MEMORY;                                           
                                                                      
  for (minor = 0; minor < rtems_flashdisk_configuration_size; minor++, c++)
  {                                                                   
    char     name[] = RTEMS_FLASHDISK_DEVICE_BASE_NAME "a";           
 8005a5c:	78 0e 08 03 	mvhi r14,0x803                                 
      free (fd->blocks);                                              
      free (fd->devices);                                             
      return sc;                                                      
    }                                                                 
                                                                      
    sc = rtems_disk_create_phys(dev, c->block_size,                   
 8005a60:	78 15 08 00 	mvhi r21,0x800                                 
      return sc;                                                      
                                                                      
  rtems_flashdisks = calloc (rtems_flashdisk_configuration_size,      
                             sizeof (rtems_flashdisk));               
                                                                      
  if (!rtems_flashdisks)                                              
 8005a64:	34 16 00 00 	mvi r22,0                                      
 8005a68:	39 8c 36 5c 	ori r12,r12,0x365c                             
 8005a6c:	34 0d 00 00 	mvi r13,0                                      
    return RTEMS_NO_MEMORY;                                           
                                                                      
  for (minor = 0; minor < rtems_flashdisk_configuration_size; minor++, c++)
  {                                                                   
    char     name[] = RTEMS_FLASHDISK_DEVICE_BASE_NAME "a";           
 8005a70:	39 ce 46 f0 	ori r14,r14,0x46f0                             
    dev_t    dev = rtems_filesystem_make_dev_t (major, minor);        
    uint32_t device;                                                  
    uint32_t blocks = 0;                                              
    int      ret;                                                     
                                                                      
    fd = &rtems_flashdisks[minor];                                    
 8005a74:	b8 40 d8 00 	mv fp,r2                                       
      free (fd->blocks);                                              
      free (fd->devices);                                             
      return sc;                                                      
    }                                                                 
                                                                      
    sc = rtems_disk_create_phys(dev, c->block_size,                   
 8005a78:	3a b5 43 d4 	ori r21,r21,0x43d4                             
 8005a7c:	e3 ff ff cf 	bi 80059b8 <rtems_fdisk_initialize+0x4b4>      
                                                                      

080043d4 <rtems_fdisk_ioctl>: * @param argp IOCTL argument. * @retval The IOCTL return value */ static int rtems_fdisk_ioctl (rtems_disk_device *dd, uint32_t req, void* argp) {
 80043d4:	37 9c ff 60 	addi sp,sp,-160                                
 80043d8:	5b 8b 00 5c 	sw (sp+92),r11                                 
 80043dc:	5b 8c 00 58 	sw (sp+88),r12                                 
 80043e0:	5b 8d 00 54 	sw (sp+84),r13                                 
 80043e4:	5b 8e 00 50 	sw (sp+80),r14                                 
 80043e8:	5b 8f 00 4c 	sw (sp+76),r15                                 
 80043ec:	5b 90 00 48 	sw (sp+72),r16                                 
 80043f0:	5b 91 00 44 	sw (sp+68),r17                                 
 80043f4:	5b 92 00 40 	sw (sp+64),r18                                 
 80043f8:	5b 93 00 3c 	sw (sp+60),r19                                 
 80043fc:	5b 94 00 38 	sw (sp+56),r20                                 
 8004400:	5b 95 00 34 	sw (sp+52),r21                                 
 8004404:	5b 96 00 30 	sw (sp+48),r22                                 
 8004408:	5b 97 00 2c 	sw (sp+44),r23                                 
 800440c:	5b 98 00 28 	sw (sp+40),r24                                 
 8004410:	5b 99 00 24 	sw (sp+36),r25                                 
 8004414:	5b 9b 00 20 	sw (sp+32),fp                                  
 8004418:	5b 9d 00 1c 	sw (sp+28),ra                                  
 800441c:	5b 83 00 60 	sw (sp+96),r3                                  
  dev_t device                                                        
)                                                                     
{                                                                     
  union __rtems_dev_t temp;                                           
                                                                      
  temp.device = device;                                               
 8004420:	28 2e 00 04 	lw r14,(r1+4)                                  
 8004424:	b8 40 60 00 	mv r12,r2                                      
 8004428:	b8 20 68 00 	mv r13,r1                                      
  dev_t                     dev = rtems_disk_get_device_identifier (dd);
  rtems_device_minor_number minor = rtems_filesystem_dev_minor_t (dev);
  rtems_blkdev_request*     r = argp;                                 
  rtems_status_code         sc;                                       
                                                                      
  errno = 0;                                                          
 800442c:	f8 00 6d 7a 	calli 801fa14 <__errno>                        
 8004430:	58 20 00 00 	sw (r1+0),r0                                   
                                                                      
  sc = rtems_semaphore_obtain (rtems_flashdisks[minor].lock, RTEMS_WAIT, 0);
 8004434:	34 02 00 74 	mvi r2,116                                     
 8004438:	b9 c0 08 00 	mv r1,r14                                      
 800443c:	78 0b 08 04 	mvhi r11,0x804                                 
 8004440:	fb ff f4 76 	calli 8001618 <__mulsi3>                       
 8004444:	39 6b 97 5c 	ori r11,r11,0x975c                             
 8004448:	29 62 00 00 	lw r2,(r11+0)                                  
 800444c:	5b 81 00 64 	sw (sp+100),r1                                 
 8004450:	34 03 00 00 	mvi r3,0                                       
 8004454:	b4 41 10 00 	add r2,r2,r1                                   
 8004458:	28 41 00 64 	lw r1,(r2+100)                                 
 800445c:	34 02 00 00 	mvi r2,0                                       
 8004460:	f8 00 13 b3 	calli 800932c <rtems_semaphore_obtain>         
  if (sc != RTEMS_SUCCESSFUL)                                         
 8004464:	5c 20 04 04 	bne r1,r0,8005474 <rtems_fdisk_ioctl+0x10a0>   <== NEVER TAKEN
    errno = EIO;                                                      
  else                                                                
  {                                                                   
    errno = 0;                                                        
 8004468:	f8 00 6d 6b 	calli 801fa14 <__errno>                        
 800446c:	58 20 00 00 	sw (r1+0),r0                                   
    switch (req)                                                      
 8004470:	78 01 08 03 	mvhi r1,0x803                                  
 8004474:	38 21 46 fc 	ori r1,r1,0x46fc                               
 8004478:	28 22 00 00 	lw r2,(r1+0)                                   
 800447c:	45 82 02 98 	be r12,r2,8004edc <rtems_fdisk_ioctl+0xb08>    <== NEVER TAKEN
 8004480:	55 82 00 0b 	bgu r12,r2,80044ac <rtems_fdisk_ioctl+0xd8>    
 8004484:	78 03 08 03 	mvhi r3,0x803                                  
 8004488:	38 63 47 00 	ori r3,r3,0x4700                               
 800448c:	28 62 00 00 	lw r2,(r3+0)                                   
 8004490:	45 82 02 76 	be r12,r2,8004e68 <rtems_fdisk_ioctl+0xa94>    <== NEVER TAKEN
 8004494:	55 82 02 7d 	bgu r12,r2,8004e88 <rtems_fdisk_ioctl+0xab4>   <== NEVER TAKEN
 8004498:	78 01 08 03 	mvhi r1,0x803                                  
 800449c:	38 21 47 04 	ori r1,r1,0x4704                               
 80044a0:	28 22 00 00 	lw r2,(r1+0)                                   
 80044a4:	5d 82 03 e8 	bne r12,r2,8005444 <rtems_fdisk_ioctl+0x1070>  
 80044a8:	e0 00 02 34 	bi 8004d78 <rtems_fdisk_ioctl+0x9a4>           <== NOT EXECUTED
 80044ac:	78 03 08 03 	mvhi r3,0x803                                  
 80044b0:	38 63 36 58 	ori r3,r3,0x3658                               
 80044b4:	28 62 00 00 	lw r2,(r3+0)                                   
 80044b8:	45 82 02 f1 	be r12,r2,800507c <rtems_fdisk_ioctl+0xca8>    <== NEVER TAKEN
 80044bc:	54 4c 02 ea 	bgu r2,r12,8005064 <rtems_fdisk_ioctl+0xc90>   <== NEVER TAKEN
 80044c0:	78 01 08 03 	mvhi r1,0x803                                  
 80044c4:	38 21 3b e4 	ori r1,r1,0x3be4                               
 80044c8:	28 22 00 00 	lw r2,(r1+0)                                   
 80044cc:	5d 82 03 de 	bne r12,r2,8005444 <rtems_fdisk_ioctl+0x1070>  <== NEVER TAKEN
    {                                                                 
      case RTEMS_BLKIO_REQUEST:                                       
        if ((minor >= rtems_flashdisk_count) ||                       
 80044d0:	78 02 08 04 	mvhi r2,0x804                                  
 80044d4:	38 42 97 60 	ori r2,r2,0x9760                               
 80044d8:	28 42 00 00 	lw r2,(r2+0)                                   
 80044dc:	51 c2 00 06 	bgeu r14,r2,80044f4 <rtems_fdisk_ioctl+0x120>  <== NEVER TAKEN
            (rtems_flashdisks[minor].device_count == 0))              
 80044e0:	29 62 00 00 	lw r2,(r11+0)                                  
 80044e4:	2b 83 00 64 	lw r3,(sp+100)                                 
 80044e8:	b4 43 10 00 	add r2,r2,r3                                   
  {                                                                   
    errno = 0;                                                        
    switch (req)                                                      
    {                                                                 
      case RTEMS_BLKIO_REQUEST:                                       
        if ((minor >= rtems_flashdisk_count) ||                       
 80044ec:	28 42 00 30 	lw r2,(r2+48)                                  
 80044f0:	5c 40 00 04 	bne r2,r0,8004500 <rtems_fdisk_ioctl+0x12c>    <== ALWAYS TAKEN
            (rtems_flashdisks[minor].device_count == 0))              
        {                                                             
          errno = ENODEV;                                             
 80044f4:	f8 00 6d 48 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 80044f8:	34 02 00 13 	mvi r2,19                                      <== NOT EXECUTED
 80044fc:	e0 00 02 1d 	bi 8004d70 <rtems_fdisk_ioctl+0x99c>           <== NOT EXECUTED
        }                                                             
        else                                                          
        {                                                             
          switch (r->req)                                             
 8004500:	2b 81 00 60 	lw r1,(sp+96)                                  
 8004504:	28 22 00 00 	lw r2,(r1+0)                                   
 8004508:	44 40 00 04 	be r2,r0,8004518 <rtems_fdisk_ioctl+0x144>     
 800450c:	34 04 00 01 	mvi r4,1                                       
 8004510:	5c 44 02 16 	bne r2,r4,8004d68 <rtems_fdisk_ioctl+0x994>    <== NEVER TAKEN
 8004514:	e0 00 00 a7 	bi 80047b0 <rtems_fdisk_ioctl+0x3dc>           
          {                                                           
            case RTEMS_BLKDEV_REQ_READ:                               
              errno = rtems_fdisk_read (&rtems_flashdisks[minor], r); 
 8004518:	f8 00 6d 3f 	calli 801fa14 <__errno>                        
 800451c:	2b 82 00 64 	lw r2,(sp+100)                                 
 8004520:	29 6c 00 00 	lw r12,(r11+0)                                 
 * @retval 0 Always.  The request done callback contains the status.  
 */                                                                   
static int                                                            
rtems_fdisk_read (rtems_flashdisk* fd, rtems_blkdev_request* req)     
{                                                                     
  rtems_blkdev_sg_buffer* sg = req->bufs;                             
 8004524:	2b 83 00 60 	lw r3,(sp+96)                                  
  bc = &fd->blocks[block];                                            
                                                                      
  if (!bc->segment)                                                   
  {                                                                   
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, "read-block: no segment mapping: %d", block);
 8004528:	78 14 08 03 	mvhi r20,0x803                                 
  rtems_fdisk_block_ctl*   bc;                                        
  rtems_fdisk_segment_ctl* sc;                                        
  rtems_fdisk_page_desc*   pd;                                        
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, "read-block:%d", block);                      
 800452c:	78 18 08 03 	mvhi r24,0x803                                 
                                                                      
  sc = fd->blocks[block].segment;                                     
  pd = &sc->page_descriptors[bc->page];                               
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd,                                               
 8004530:	78 17 08 03 	mvhi r23,0x803                                 
 8004534:	78 16 08 03 	mvhi r22,0x803                                 
 8004538:	78 15 08 03 	mvhi r21,0x803                                 
  bc = &fd->blocks[block];                                            
                                                                      
  if (!bc->segment)                                                   
  {                                                                   
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, "read-block: no segment mapping: %d", block);
 800453c:	3a 94 40 dc 	ori r20,r20,0x40dc                             
        else                                                          
        {                                                             
          switch (r->req)                                             
          {                                                           
            case RTEMS_BLKDEV_REQ_READ:                               
              errno = rtems_fdisk_read (&rtems_flashdisks[minor], r); 
 8004540:	5b 81 00 68 	sw (sp+104),r1                                 
 8004544:	b5 82 60 00 	add r12,r12,r2                                 
 * @retval 0 Always.  The request done callback contains the status.  
 */                                                                   
static int                                                            
rtems_fdisk_read (rtems_flashdisk* fd, rtems_blkdev_request* req)     
{                                                                     
  rtems_blkdev_sg_buffer* sg = req->bufs;                             
 8004548:	34 71 00 18 	addi r17,r3,24                                 
  uint32_t                buf;                                        
  int                     ret = 0;                                    
                                                                      
  for (buf = 0; (ret == 0) && (buf < req->bufnum); buf++, sg++)       
 800454c:	34 19 00 00 	mvi r25,0                                      
  rtems_fdisk_block_ctl*   bc;                                        
  rtems_fdisk_segment_ctl* sc;                                        
  rtems_fdisk_page_desc*   pd;                                        
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, "read-block:%d", block);                      
 8004550:	3b 18 40 a8 	ori r24,r24,0x40a8                             
                                                                      
  sc = fd->blocks[block].segment;                                     
  pd = &sc->page_descriptors[bc->page];                               
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd,                                               
 8004554:	3a f7 3c dc 	ori r23,r23,0x3cdc                             
 8004558:	3a d6 41 00 	ori r22,r22,0x4100                             
 800455c:	3a b5 3c d8 	ori r21,r21,0x3cd8                             
 8004560:	5b 94 00 6c 	sw (sp+108),r20                                
 8004564:	e0 00 00 89 	bi 8004788 <rtems_fdisk_ioctl+0x3b4>           
  for (buf = 0; (ret == 0) && (buf < req->bufnum); buf++, sg++)       
  {                                                                   
    uint8_t* data;                                                    
    uint32_t fb;                                                      
    uint32_t b;                                                       
    fb = sg->length / fd->block_size;                                 
 8004568:	2a 21 00 04 	lw r1,(r17+4)                                  
 800456c:	29 82 00 14 	lw r2,(r12+20)                                 
 8004570:	fb ff f4 36 	calli 8001648 <__udivsi3>                      
 8004574:	b8 20 a0 00 	mv r20,r1                                      
    data = sg->buffer;                                                
 8004578:	2a 2e 00 08 	lw r14,(r17+8)                                 
    for (b = 0; b < fb; b++, data += fd->block_size)                  
 800457c:	34 1b 00 00 	mvi fp,0                                       
 8004580:	e0 00 00 80 	bi 8004780 <rtems_fdisk_ioctl+0x3ac>           
    {                                                                 
      ret = rtems_fdisk_read_block (fd, sg->block + b, data);         
 8004584:	2a 30 00 00 	lw r16,(r17+0)                                 
  rtems_fdisk_block_ctl*   bc;                                        
  rtems_fdisk_segment_ctl* sc;                                        
  rtems_fdisk_page_desc*   pd;                                        
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, "read-block:%d", block);                      
 8004588:	b9 80 08 00 	mv r1,r12                                      
 800458c:	bb 00 10 00 	mv r2,r24                                      
    uint32_t b;                                                       
    fb = sg->length / fd->block_size;                                 
    data = sg->buffer;                                                
    for (b = 0; b < fb; b++, data += fd->block_size)                  
    {                                                                 
      ret = rtems_fdisk_read_block (fd, sg->block + b, data);         
 8004590:	b7 70 80 00 	add r16,fp,r16                                 
  rtems_fdisk_block_ctl*   bc;                                        
  rtems_fdisk_segment_ctl* sc;                                        
  rtems_fdisk_page_desc*   pd;                                        
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, "read-block:%d", block);                      
 8004594:	ba 00 18 00 	mv r3,r16                                      
 8004598:	fb ff f9 ff 	calli 8002d94 <rtems_fdisk_info>               
                                                                      
  /*                                                                  
   * Broken out to allow info messages when testing.                  
   */                                                                 
                                                                      
  if (block >= (fd->block_count - fd->unavail_blocks))                
 800459c:	29 83 00 1c 	lw r3,(r12+28)                                 
 80045a0:	29 81 00 20 	lw r1,(r12+32)                                 
 80045a4:	c8 61 08 00 	sub r1,r3,r1                                   
 80045a8:	54 30 00 07 	bgu r1,r16,80045c4 <rtems_fdisk_ioctl+0x1f0>   <== ALWAYS TAKEN
  {                                                                   
    rtems_fdisk_error ("read-block: block out of range: %d", block);  
 80045ac:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
 80045b0:	b8 40 08 00 	mv r1,r2                                       <== NOT EXECUTED
 80045b4:	38 21 40 b8 	ori r1,r1,0x40b8                               <== NOT EXECUTED
 80045b8:	ba 00 10 00 	mv r2,r16                                      <== NOT EXECUTED
 80045bc:	fb ff fb 7f 	calli 80033b8 <rtems_fdisk_error>              <== NOT EXECUTED
 80045c0:	e0 00 00 6e 	bi 8004778 <rtems_fdisk_ioctl+0x3a4>           <== NOT EXECUTED
    return EIO;                                                       
  }                                                                   
                                                                      
  bc = &fd->blocks[block];                                            
 80045c4:	ba 00 08 00 	mv r1,r16                                      
 80045c8:	34 02 00 03 	mvi r2,3                                       
 80045cc:	fb ff f3 c5 	calli 80014e0 <__ashlsi3>                      
 80045d0:	29 92 00 18 	lw r18,(r12+24)                                
 80045d4:	b6 41 90 00 	add r18,r18,r1                                 
                                                                      
  if (!bc->segment)                                                   
 80045d8:	2a 4b 00 00 	lw r11,(r18+0)                                 
 80045dc:	5d 60 00 0a 	bne r11,r0,8004604 <rtems_fdisk_ioctl+0x230>   
  {                                                                   
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, "read-block: no segment mapping: %d", block);
 80045e0:	2b 82 00 6c 	lw r2,(sp+108)                                 
 80045e4:	ba 00 18 00 	mv r3,r16                                      
 80045e8:	b9 80 08 00 	mv r1,r12                                      
 80045ec:	fb ff f9 ea 	calli 8002d94 <rtems_fdisk_info>               
#endif                                                                
    memset (buffer, 0xff, fd->block_size);                            
 80045f0:	29 83 00 14 	lw r3,(r12+20)                                 
 80045f4:	b9 c0 08 00 	mv r1,r14                                      
 80045f8:	34 02 00 ff 	mvi r2,255                                     
 80045fc:	f8 00 72 c5 	calli 8021110 <memset>                         
 8004600:	e0 00 03 b7 	bi 80054dc <rtems_fdisk_ioctl+0x1108>          
    return 0;                                                         
  }                                                                   
                                                                      
  sc = fd->blocks[block].segment;                                     
  pd = &sc->page_descriptors[bc->page];                               
 8004604:	2a 4f 00 04 	lw r15,(r18+4)                                 
 8004608:	34 02 00 03 	mvi r2,3                                       
 800460c:	b9 e0 08 00 	mv r1,r15                                      
 8004610:	fb ff f3 b4 	calli 80014e0 <__ashlsi3>                      
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd,                                               
 8004614:	29 69 00 00 	lw r9,(r11+0)                                  
    memset (buffer, 0xff, fd->block_size);                            
    return 0;                                                         
  }                                                                   
                                                                      
  sc = fd->blocks[block].segment;                                     
  pd = &sc->page_descriptors[bc->page];                               
 8004618:	29 6d 00 10 	lw r13,(r11+16)                                
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd,                                               
 800461c:	29 64 00 08 	lw r4,(r11+8)                                  
 8004620:	29 65 00 0c 	lw r5,(r11+12)                                 
    memset (buffer, 0xff, fd->block_size);                            
    return 0;                                                         
  }                                                                   
                                                                      
  sc = fd->blocks[block].segment;                                     
  pd = &sc->page_descriptors[bc->page];                               
 8004624:	b5 a1 68 00 	add r13,r13,r1                                 
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd,                                               
 8004628:	29 67 00 14 	lw r7,(r11+20)                                 
 800462c:	29 68 00 1c 	lw r8,(r11+28)                                 
 8004630:	29 66 00 20 	lw r6,(r11+32)                                 
 8004634:	29 63 00 24 	lw r3,(r11+36)                                 
 8004638:	ba e0 08 00 	mv r1,r23                                      
 800463c:	45 20 00 02 	be r9,r0,8004644 <rtems_fdisk_ioctl+0x270>     
 8004640:	ba a0 08 00 	mv r1,r21                                      
 8004644:	5b 86 00 04 	sw (sp+4),r6                                   
 8004648:	5b 83 00 08 	sw (sp+8),r3                                   
 800464c:	5b 81 00 0c 	sw (sp+12),r1                                  
 8004650:	2d a3 00 02 	lhu r3,(r13+2)                                 
 8004654:	ba c0 10 00 	mv r2,r22                                      
 8004658:	b9 e0 30 00 	mv r6,r15                                      
 800465c:	5b 83 00 10 	sw (sp+16),r3                                  
 8004660:	2d a3 00 00 	lhu r3,(r13+0)                                 
 8004664:	5b 83 00 14 	sw (sp+20),r3                                  
 8004668:	29 a1 00 04 	lw r1,(r13+4)                                  
 800466c:	ba 00 18 00 	mv r3,r16                                      
 8004670:	5b 81 00 18 	sw (sp+24),r1                                  
 8004674:	b9 80 08 00 	mv r1,r12                                      
 8004678:	fb ff f9 c7 	calli 8002d94 <rtems_fdisk_info>               
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 800467c:	2d a3 00 02 	lhu r3,(r13+2)                                 
                    sc->pages, sc->pages_active, sc->pages_used, sc->pages_bad,
                    sc->next ? "set" : "null",                        
                    pd->flags, pd->crc, pd->block);                   
#endif                                                                
                                                                      
  if (rtems_fdisk_page_desc_flags_set (pd, RTEMS_FDISK_PAGE_ACTIVE))  
 8004680:	20 61 00 01 	andi r1,r3,0x1                                 
 8004684:	5c 20 00 35 	bne r1,r0,8004758 <rtems_fdisk_ioctl+0x384>    <== NEVER TAKEN
 * only set a flag by changing it from 1 to 0.                        
 */                                                                   
static bool                                                           
rtems_fdisk_page_desc_flags_clear (rtems_fdisk_page_desc* pd, uint16_t flags)
{                                                                     
  return (pd->flags & flags) == flags ? true : false;                 
 8004688:	20 63 00 02 	andi r3,r3,0x2                                 
                    pd->flags, pd->crc, pd->block);                   
#endif                                                                
                                                                      
  if (rtems_fdisk_page_desc_flags_set (pd, RTEMS_FDISK_PAGE_ACTIVE))  
  {                                                                   
    if (rtems_fdisk_page_desc_flags_clear (pd, RTEMS_FDISK_PAGE_USED))
 800468c:	34 01 00 02 	mvi r1,2                                       
 8004690:	2a 44 00 04 	lw r4,(r18+4)                                  
 8004694:	5c 61 00 29 	bne r3,r1,8004738 <rtems_fdisk_ioctl+0x364>    <== NEVER TAKEN
                           rtems_fdisk_segment_ctl* sc,               
                           uint32_t                 page,             
                           void*                    buffer)           
{                                                                     
  return rtems_fdisk_seg_read (fd, sc,                                
                               page * fd->block_size, buffer, fd->block_size);
 8004698:	29 8f 00 14 	lw r15,(r12+20)                                
                                                                      
      /*                                                              
       * We use the segment page offset not the page number used in the
       * driver. This skips the page descriptors.                     
       */                                                             
      int ret = rtems_fdisk_seg_read_page (fd, sc,                    
 800469c:	29 61 00 18 	lw r1,(r11+24)                                 
rtems_fdisk_seg_read_page (const rtems_flashdisk*   fd,               
                           rtems_fdisk_segment_ctl* sc,               
                           uint32_t                 page,             
                           void*                    buffer)           
{                                                                     
  return rtems_fdisk_seg_read (fd, sc,                                
 80046a0:	b9 e0 10 00 	mv r2,r15                                      
 80046a4:	b4 24 08 00 	add r1,r1,r4                                   
 80046a8:	fb ff f3 dc 	calli 8001618 <__mulsi3>                       
 80046ac:	b8 20 18 00 	mv r3,r1                                       
 80046b0:	b9 60 10 00 	mv r2,r11                                      
 80046b4:	b9 80 08 00 	mv r1,r12                                      
 80046b8:	b9 c0 20 00 	mv r4,r14                                      
 80046bc:	b9 e0 28 00 	mv r5,r15                                      
 80046c0:	fb ff fa 0d 	calli 8002ef4 <rtems_fdisk_seg_read>           
 80046c4:	b8 20 98 00 	mv r19,r1                                      
       * driver. This skips the page descriptors.                     
       */                                                             
      int ret = rtems_fdisk_seg_read_page (fd, sc,                    
                                           bc->page + sc->pages_desc, buffer);
                                                                      
      if (ret)                                                        
 80046c8:	44 20 00 0f 	be r1,r0,8004704 <rtems_fdisk_ioctl+0x330>     <== ALWAYS TAKEN
      {                                                               
#if RTEMS_FDISK_TRACE                                                 
        rtems_fdisk_info (fd,                                         
 80046cc:	29 6e 00 08 	lw r14,(r11+8)                                 <== NOT EXECUTED
 80046d0:	29 6d 00 0c 	lw r13,(r11+12)                                <== NOT EXECUTED
 80046d4:	2a 4b 00 04 	lw r11,(r18+4)                                 <== NOT EXECUTED
 80046d8:	f8 00 77 e5 	calli 802266c <strerror>                       <== NOT EXECUTED
 80046dc:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
 80046e0:	b8 20 30 00 	mv r6,r1                                       <== NOT EXECUTED
 80046e4:	38 42 41 48 	ori r2,r2,0x4148                               <== NOT EXECUTED
 80046e8:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 80046ec:	b9 c0 18 00 	mv r3,r14                                      <== NOT EXECUTED
 80046f0:	b9 a0 20 00 	mv r4,r13                                      <== NOT EXECUTED
 80046f4:	b9 60 28 00 	mv r5,r11                                      <== NOT EXECUTED
 80046f8:	ba 60 38 00 	mv r7,r19                                      <== NOT EXECUTED
 80046fc:	fb ff f9 a6 	calli 8002d94 <rtems_fdisk_info>               <== NOT EXECUTED
 8004700:	e0 00 00 1e 	bi 8004778 <rtems_fdisk_ioctl+0x3a4>           <== NOT EXECUTED
                          strerror (ret), ret);                       
#endif                                                                
        return ret;                                                   
      }                                                               
                                                                      
      cs = rtems_fdisk_page_checksum (buffer, fd->block_size);        
 8004704:	29 82 00 14 	lw r2,(r12+20)                                 
 8004708:	b9 c0 08 00 	mv r1,r14                                      
 800470c:	fb ff f9 83 	calli 8002d18 <rtems_fdisk_page_checksum>      
                                                                      
      if (cs == pd->crc)                                              
 8004710:	2d a4 00 00 	lhu r4,(r13+0)                                 
                          strerror (ret), ret);                       
#endif                                                                
        return ret;                                                   
      }                                                               
                                                                      
      cs = rtems_fdisk_page_checksum (buffer, fd->block_size);        
 8004714:	b8 20 28 00 	mv r5,r1                                       
                                                                      
      if (cs == pd->crc)                                              
 8004718:	44 24 03 71 	be r1,r4,80054dc <rtems_fdisk_ioctl+0x1108>    
        return 0;                                                     
                                                                      
      rtems_fdisk_error ("read-block: crc failure: %d: buffer:%04x page:%04x",
 800471c:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
 8004720:	b8 40 08 00 	mv r1,r2                                       <== NOT EXECUTED
 8004724:	b8 a0 18 00 	mv r3,r5                                       <== NOT EXECUTED
 8004728:	ba 00 10 00 	mv r2,r16                                      <== NOT EXECUTED
 800472c:	38 21 41 80 	ori r1,r1,0x4180                               <== NOT EXECUTED
 8004730:	fb ff fb 22 	calli 80033b8 <rtems_fdisk_error>              <== NOT EXECUTED
 8004734:	e0 00 00 11 	bi 8004778 <rtems_fdisk_ioctl+0x3a4>           <== NOT EXECUTED
                         block, cs, pd->crc);                         
    }                                                                 
    else                                                              
    {                                                                 
      rtems_fdisk_error ("read-block: block points to used page: %d: %d-%d-%d",
 8004738:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
 800473c:	b8 40 08 00 	mv r1,r2                                       <== NOT EXECUTED
 8004740:	b8 80 28 00 	mv r5,r4                                       <== NOT EXECUTED
 8004744:	38 21 41 b4 	ori r1,r1,0x41b4                               <== NOT EXECUTED
 8004748:	ba 00 10 00 	mv r2,r16                                      <== NOT EXECUTED
 800474c:	29 63 00 08 	lw r3,(r11+8)                                  <== NOT EXECUTED
 8004750:	29 64 00 0c 	lw r4,(r11+12)                                 <== NOT EXECUTED
 8004754:	e0 00 00 08 	bi 8004774 <rtems_fdisk_ioctl+0x3a0>           <== NOT EXECUTED
                         block, sc->device, sc->segment, bc->page);   
    }                                                                 
  }                                                                   
  else                                                                
  {                                                                   
    rtems_fdisk_error ("read-block: block page not active: %d: %d-%d-%d",
 8004758:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
 800475c:	29 63 00 08 	lw r3,(r11+8)                                  <== NOT EXECUTED
 8004760:	29 64 00 0c 	lw r4,(r11+12)                                 <== NOT EXECUTED
 8004764:	2a 45 00 04 	lw r5,(r18+4)                                  <== NOT EXECUTED
 8004768:	b8 40 08 00 	mv r1,r2                                       <== NOT EXECUTED
 800476c:	38 21 41 e8 	ori r1,r1,0x41e8                               <== NOT EXECUTED
 8004770:	ba 00 10 00 	mv r2,r16                                      <== NOT EXECUTED
 8004774:	fb ff fb 11 	calli 80033b8 <rtems_fdisk_error>              <== NOT EXECUTED
      if (ret)                                                        
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  rtems_blkdev_request_done (req, ret ? RTEMS_IO_ERROR : RTEMS_SUCCESSFUL);
 8004778:	34 02 00 1b 	mvi r2,27                                      <== NOT EXECUTED
 800477c:	e0 00 00 07 	bi 8004798 <rtems_fdisk_ioctl+0x3c4>           <== NOT EXECUTED
    uint8_t* data;                                                    
    uint32_t fb;                                                      
    uint32_t b;                                                       
    fb = sg->length / fd->block_size;                                 
    data = sg->buffer;                                                
    for (b = 0; b < fb; b++, data += fd->block_size)                  
 8004780:	56 9b ff 81 	bgu r20,fp,8004584 <rtems_fdisk_ioctl+0x1b0>   
 8004784:	e0 00 03 5a 	bi 80054ec <rtems_fdisk_ioctl+0x1118>          
{                                                                     
  rtems_blkdev_sg_buffer* sg = req->bufs;                             
  uint32_t                buf;                                        
  int                     ret = 0;                                    
                                                                      
  for (buf = 0; (ret == 0) && (buf < req->bufnum); buf++, sg++)       
 8004788:	2b 82 00 60 	lw r2,(sp+96)                                  
 800478c:	28 41 00 10 	lw r1,(r2+16)                                  
 8004790:	54 39 ff 76 	bgu r1,r25,8004568 <rtems_fdisk_ioctl+0x194>   
      if (ret)                                                        
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  rtems_blkdev_request_done (req, ret ? RTEMS_IO_ERROR : RTEMS_SUCCESSFUL);
 8004794:	34 02 00 00 	mvi r2,0                                       
static inline void rtems_blkdev_request_done(                         
  rtems_blkdev_request *req,                                          
  rtems_status_code status                                            
)                                                                     
{                                                                     
  (*req->done)(req, status);                                          
 8004798:	2b 83 00 60 	lw r3,(sp+96)                                  
 800479c:	28 64 00 04 	lw r4,(r3+4)                                   
 80047a0:	b8 60 08 00 	mv r1,r3                                       
 80047a4:	d8 80 00 00 	call r4                                        
        else                                                          
        {                                                             
          switch (r->req)                                             
          {                                                           
            case RTEMS_BLKDEV_REQ_READ:                               
              errno = rtems_fdisk_read (&rtems_flashdisks[minor], r); 
 80047a8:	2b 81 00 68 	lw r1,(sp+104)                                 
 80047ac:	e0 00 03 24 	bi 800543c <rtems_fdisk_ioctl+0x1068>          
              break;                                                  
                                                                      
            case RTEMS_BLKDEV_REQ_WRITE:                              
              errno = rtems_fdisk_write (&rtems_flashdisks[minor], r);
 80047b0:	f8 00 6c 99 	calli 801fa14 <__errno>                        
 80047b4:	78 02 08 04 	mvhi r2,0x804                                  
 80047b8:	38 42 97 5c 	ori r2,r2,0x975c                               
 80047bc:	28 42 00 00 	lw r2,(r2+0)                                   
 80047c0:	2b 83 00 64 	lw r3,(sp+100)                                 
 80047c4:	5b 81 00 94 	sw (sp+148),r1                                 
 * @retval 0 Always.  The request done callback contains the status.  
 */                                                                   
static int                                                            
rtems_fdisk_write (rtems_flashdisk* fd, rtems_blkdev_request* req)    
{                                                                     
  rtems_blkdev_sg_buffer* sg = req->bufs;                             
 80047c8:	2b 81 00 60 	lw r1,(sp+96)                                  
            case RTEMS_BLKDEV_REQ_READ:                               
              errno = rtems_fdisk_read (&rtems_flashdisks[minor], r); 
              break;                                                  
                                                                      
            case RTEMS_BLKDEV_REQ_WRITE:                              
              errno = rtems_fdisk_write (&rtems_flashdisks[minor], r);
 80047cc:	b4 43 c0 00 	add r24,r2,r3                                  
  rtems_fdisk_page_desc*   pd;                                        
  uint32_t                 page;                                      
  int                      ret;                                       
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, "write-block:%d", block);                     
 80047d0:	78 02 08 03 	mvhi r2,0x803                                  
      bc->page    = page;                                             
                                                                      
      rtems_fdisk_page_desc_set_flags (pd, RTEMS_FDISK_PAGE_ACTIVE);  
                                                                      
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, " write:%d=>%02d-%03d-%03d: write: " \    
 80047d4:	78 03 08 03 	mvhi r3,0x803                                  
  rtems_fdisk_page_desc*   pd;                                        
  uint32_t                 page;                                      
  int                      ret;                                       
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, "write-block:%d", block);                     
 80047d8:	38 42 42 18 	ori r2,r2,0x4218                               
      bc->page    = page;                                             
                                                                      
      rtems_fdisk_page_desc_set_flags (pd, RTEMS_FDISK_PAGE_ACTIVE);  
                                                                      
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, " write:%d=>%02d-%03d-%03d: write: " \    
 80047dc:	38 63 3c dc 	ori r3,r3,0x3cdc                               
 * @retval 0 Always.  The request done callback contains the status.  
 */                                                                   
static int                                                            
rtems_fdisk_write (rtems_flashdisk* fd, rtems_blkdev_request* req)    
{                                                                     
  rtems_blkdev_sg_buffer* sg = req->bufs;                             
 80047e0:	34 3b 00 18 	addi fp,r1,24                                  
  rtems_fdisk_page_desc*   pd;                                        
  uint32_t                 page;                                      
  int                      ret;                                       
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, "write-block:%d", block);                     
 80047e4:	5b 82 00 68 	sw (sp+104),r2                                 
      bc->page    = page;                                             
                                                                      
      rtems_fdisk_page_desc_set_flags (pd, RTEMS_FDISK_PAGE_ACTIVE);  
                                                                      
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, " write:%d=>%02d-%03d-%03d: write: " \    
 80047e8:	5b 83 00 6c 	sw (sp+108),r3                                 
 80047ec:	78 01 08 03 	mvhi r1,0x803                                  
      {                                                               
        ret = rtems_fdisk_seg_write_page_desc (fd, sc, page, pd);     
        if (ret)                                                      
        {                                                             
#if RTEMS_FDISK_TRACE                                                 
          rtems_fdisk_info (fd, "write-block:%02d-%03d-%03d: "  \     
 80047f0:	78 02 08 03 	mvhi r2,0x803                                  
       */                                                             
      ret = rtems_fdisk_seg_write_page (fd, sc, page + sc->pages_desc, buffer);
      if (ret)                                                        
      {                                                               
#if RTEMS_FDISK_TRACE                                                 
        rtems_fdisk_info (fd, "write-block:%02d-%03d-%03d: write page failed: " \
 80047f4:	78 03 08 03 	mvhi r3,0x803                                  
      bc->page    = page;                                             
                                                                      
      rtems_fdisk_page_desc_set_flags (pd, RTEMS_FDISK_PAGE_ACTIVE);  
                                                                      
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, " write:%d=>%02d-%03d-%03d: write: " \    
 80047f8:	38 21 43 98 	ori r1,r1,0x4398                               
      {                                                               
        ret = rtems_fdisk_seg_write_page_desc (fd, sc, page, pd);     
        if (ret)                                                      
        {                                                             
#if RTEMS_FDISK_TRACE                                                 
          rtems_fdisk_info (fd, "write-block:%02d-%03d-%03d: "  \     
 80047fc:	38 42 44 20 	ori r2,r2,0x4420                               
       */                                                             
      ret = rtems_fdisk_seg_write_page (fd, sc, page + sc->pages_desc, buffer);
      if (ret)                                                        
      {                                                               
#if RTEMS_FDISK_TRACE                                                 
        rtems_fdisk_info (fd, "write-block:%02d-%03d-%03d: write page failed: " \
 8004800:	38 63 43 e8 	ori r3,r3,0x43e8                               
      bc->page    = page;                                             
                                                                      
      rtems_fdisk_page_desc_set_flags (pd, RTEMS_FDISK_PAGE_ACTIVE);  
                                                                      
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, " write:%d=>%02d-%03d-%03d: write: " \    
 8004804:	5b 81 00 70 	sw (sp+112),r1                                 
      {                                                               
        ret = rtems_fdisk_seg_write_page_desc (fd, sc, page, pd);     
        if (ret)                                                      
        {                                                             
#if RTEMS_FDISK_TRACE                                                 
          rtems_fdisk_info (fd, "write-block:%02d-%03d-%03d: "  \     
 8004808:	5b 82 00 74 	sw (sp+116),r2                                 
       */                                                             
      ret = rtems_fdisk_seg_write_page (fd, sc, page + sc->pages_desc, buffer);
      if (ret)                                                        
      {                                                               
#if RTEMS_FDISK_TRACE                                                 
        rtems_fdisk_info (fd, "write-block:%02d-%03d-%03d: write page failed: " \
 800480c:	5b 83 00 78 	sw (sp+120),r3                                 
      bc->page    = page;                                             
                                                                      
      rtems_fdisk_page_desc_set_flags (pd, RTEMS_FDISK_PAGE_ACTIVE);  
                                                                      
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, " write:%d=>%02d-%03d-%03d: write: " \    
 8004810:	78 01 08 03 	mvhi r1,0x803                                  
#if RTEMS_FDISK_TRACE                                                 
  if (fd->info_level >= 3)                                            
  {                                                                   
    char queues[5];                                                   
    rtems_fdisk_queue_status (fd, sc, queues);                        
    rtems_fdisk_info (fd, " write:%d=>%02d-%03d: queue check: %s",    
 8004814:	78 02 08 03 	mvhi r2,0x803                                  
  {                                                                   
    sc = bc->segment;                                                 
    pd = &sc->page_descriptors[bc->page];                             
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, " write:%02d-%03d-%03d: flag used",         
 8004818:	78 03 08 03 	mvhi r3,0x803                                  
      bc->page    = page;                                             
                                                                      
      rtems_fdisk_page_desc_set_flags (pd, RTEMS_FDISK_PAGE_ACTIVE);  
                                                                      
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, " write:%d=>%02d-%03d-%03d: write: " \    
 800481c:	38 21 3c d8 	ori r1,r1,0x3cd8                               
#if RTEMS_FDISK_TRACE                                                 
  if (fd->info_level >= 3)                                            
  {                                                                   
    char queues[5];                                                   
    rtems_fdisk_queue_status (fd, sc, queues);                        
    rtems_fdisk_info (fd, " write:%d=>%02d-%03d: queue check: %s",    
 8004820:	38 42 43 70 	ori r2,r2,0x4370                               
  {                                                                   
    sc = bc->segment;                                                 
    pd = &sc->page_descriptors[bc->page];                             
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, " write:%02d-%03d-%03d: flag used",         
 8004824:	38 63 42 4c 	ori r3,r3,0x424c                               
      bc->page    = page;                                             
                                                                      
      rtems_fdisk_page_desc_set_flags (pd, RTEMS_FDISK_PAGE_ACTIVE);  
                                                                      
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, " write:%d=>%02d-%03d-%03d: write: " \    
 8004828:	5b 81 00 7c 	sw (sp+124),r1                                 
#if RTEMS_FDISK_TRACE                                                 
  if (fd->info_level >= 3)                                            
  {                                                                   
    char queues[5];                                                   
    rtems_fdisk_queue_status (fd, sc, queues);                        
    rtems_fdisk_info (fd, " write:%d=>%02d-%03d: queue check: %s",    
 800482c:	5b 82 00 80 	sw (sp+128),r2                                 
  {                                                                   
    sc = bc->segment;                                                 
    pd = &sc->page_descriptors[bc->page];                             
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, " write:%02d-%03d-%03d: flag used",         
 8004830:	5b 83 00 84 	sw (sp+132),r3                                 
  const rtems_fdisk_segment_desc*    sd;                              
  const rtems_fdisk_driver_handlers* ops;                             
  sd  = rtems_fdisk_seg_descriptor (fd, device, segment);             
  ops = fd->devices[device].descriptor->flash_ops;                    
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, "  seg-verify: %02d-%03d: o=%08x s=%d",     
 8004834:	78 01 08 03 	mvhi r1,0x803                                  
    ret = rtems_fdisk_seg_write_page_desc_flags (fd, sc, bc->page, pd);
                                                                      
    if (ret)                                                          
    {                                                                 
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, " write:%02d-%03d-%03d: "      \          
 8004838:	78 02 08 03 	mvhi r2,0x803                                  
                                &flash_flags, sizeof (flash_flags));  
    if (ret)                                                          
      return ret;                                                     
    if ((flash_flags & page_desc->flags) != page_desc->flags)         
    {                                                                 
      rtems_fdisk_error ("  seg-write-page-flags: %02d-%03d-%03d: "   
 800483c:	78 03 08 03 	mvhi r3,0x803                                  
  const rtems_fdisk_segment_desc*    sd;                              
  const rtems_fdisk_driver_handlers* ops;                             
  sd  = rtems_fdisk_seg_descriptor (fd, device, segment);             
  ops = fd->devices[device].descriptor->flash_ops;                    
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, "  seg-verify: %02d-%03d: o=%08x s=%d",     
 8004840:	38 21 42 70 	ori r1,r1,0x4270                               
    ret = rtems_fdisk_seg_write_page_desc_flags (fd, sc, bc->page, pd);
                                                                      
    if (ret)                                                          
    {                                                                 
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, " write:%02d-%03d-%03d: "      \          
 8004844:	38 42 43 14 	ori r2,r2,0x4314                               
                                &flash_flags, sizeof (flash_flags));  
    if (ret)                                                          
      return ret;                                                     
    if ((flash_flags & page_desc->flags) != page_desc->flags)         
    {                                                                 
      rtems_fdisk_error ("  seg-write-page-flags: %02d-%03d-%03d: "   
 8004848:	38 63 42 c8 	ori r3,r3,0x42c8                               
{                                                                     
  rtems_blkdev_sg_buffer* sg = req->bufs;                             
  uint32_t                buf;                                        
  int                     ret = 0;                                    
                                                                      
  for (buf = 0; (ret == 0) && (buf < req->bufnum); buf++, sg++)       
 800484c:	34 17 00 00 	mvi r23,0                                      
  const rtems_fdisk_segment_desc*    sd;                              
  const rtems_fdisk_driver_handlers* ops;                             
  sd  = rtems_fdisk_seg_descriptor (fd, device, segment);             
  ops = fd->devices[device].descriptor->flash_ops;                    
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, "  seg-verify: %02d-%03d: o=%08x s=%d",     
 8004850:	5b 81 00 88 	sw (sp+136),r1                                 
    ret = rtems_fdisk_seg_write_page_desc_flags (fd, sc, bc->page, pd);
                                                                      
    if (ret)                                                          
    {                                                                 
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, " write:%02d-%03d-%03d: "      \          
 8004854:	5b 82 00 8c 	sw (sp+140),r2                                 
                                &flash_flags, sizeof (flash_flags));  
    if (ret)                                                          
      return ret;                                                     
    if ((flash_flags & page_desc->flags) != page_desc->flags)         
    {                                                                 
      rtems_fdisk_error ("  seg-write-page-flags: %02d-%03d-%03d: "   
 8004858:	5b 83 00 90 	sw (sp+144),r3                                 
 800485c:	e0 00 01 39 	bi 8004d40 <rtems_fdisk_ioctl+0x96c>           
  for (buf = 0; (ret == 0) && (buf < req->bufnum); buf++, sg++)       
  {                                                                   
    uint8_t* data;                                                    
    uint32_t fb;                                                      
    uint32_t b;                                                       
    fb = sg->length / fd->block_size;                                 
 8004860:	2b 61 00 04 	lw r1,(fp+4)                                   
 8004864:	2b 02 00 14 	lw r2,(r24+20)                                 
    data = sg->buffer;                                                
    for (b = 0; b < fb; b++, data += fd->block_size)                  
 8004868:	34 16 00 00 	mvi r22,0                                      
  for (buf = 0; (ret == 0) && (buf < req->bufnum); buf++, sg++)       
  {                                                                   
    uint8_t* data;                                                    
    uint32_t fb;                                                      
    uint32_t b;                                                       
    fb = sg->length / fd->block_size;                                 
 800486c:	fb ff f3 77 	calli 8001648 <__udivsi3>                      
 8004870:	5b 81 00 98 	sw (sp+152),r1                                 
    data = sg->buffer;                                                
 8004874:	2b 75 00 08 	lw r21,(fp+8)                                  
 8004878:	e0 00 01 2d 	bi 8004d2c <rtems_fdisk_ioctl+0x958>           
    for (b = 0; b < fb; b++, data += fd->block_size)                  
    {                                                                 
      ret = rtems_fdisk_write_block (fd, sg->block + b, data);        
 800487c:	2b 63 00 00 	lw r3,(fp+0)                                   
  rtems_fdisk_page_desc*   pd;                                        
  uint32_t                 page;                                      
  int                      ret;                                       
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, "write-block:%d", block);                     
 8004880:	2b 82 00 68 	lw r2,(sp+104)                                 
 8004884:	bb 00 08 00 	mv r1,r24                                      
    uint32_t b;                                                       
    fb = sg->length / fd->block_size;                                 
    data = sg->buffer;                                                
    for (b = 0; b < fb; b++, data += fd->block_size)                  
    {                                                                 
      ret = rtems_fdisk_write_block (fd, sg->block + b, data);        
 8004888:	b6 c3 c8 00 	add r25,r22,r3                                 
  rtems_fdisk_page_desc*   pd;                                        
  uint32_t                 page;                                      
  int                      ret;                                       
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, "write-block:%d", block);                     
 800488c:	bb 20 18 00 	mv r3,r25                                      
 8004890:	fb ff f9 41 	calli 8002d94 <rtems_fdisk_info>               
                                                                      
  /*                                                                  
   * Broken out to allow info messages when testing.                  
   */                                                                 
                                                                      
  if (block >= (fd->block_count - fd->unavail_blocks))                
 8004894:	2b 07 00 1c 	lw r7,(r24+28)                                 
 8004898:	2b 06 00 20 	lw r6,(r24+32)                                 
 800489c:	c8 e6 30 00 	sub r6,r7,r6                                   
 80048a0:	54 d9 00 07 	bgu r6,r25,80048bc <rtems_fdisk_ioctl+0x4e8>   <== ALWAYS TAKEN
  {                                                                   
    rtems_fdisk_error ("write-block: block out of range: %d", block); 
 80048a4:	78 04 08 03 	mvhi r4,0x803                                  <== NOT EXECUTED
 80048a8:	b8 80 08 00 	mv r1,r4                                       <== NOT EXECUTED
 80048ac:	bb 20 10 00 	mv r2,r25                                      <== NOT EXECUTED
 80048b0:	38 21 42 28 	ori r1,r1,0x4228                               <== NOT EXECUTED
 80048b4:	fb ff fa c1 	calli 80033b8 <rtems_fdisk_error>              <== NOT EXECUTED
 80048b8:	e0 00 01 20 	bi 8004d38 <rtems_fdisk_ioctl+0x964>           <== NOT EXECUTED
    return EIO;                                                       
  }                                                                   
                                                                      
  bc = &fd->blocks[block];                                            
 80048bc:	bb 20 08 00 	mv r1,r25                                      
 80048c0:	34 02 00 03 	mvi r2,3                                       
 80048c4:	fb ff f3 07 	calli 80014e0 <__ashlsi3>                      
 80048c8:	2b 06 00 18 	lw r6,(r24+24)                                 
 80048cc:	b4 c1 80 00 	add r16,r6,r1                                  
                                                                      
  /*                                                                  
   * Does the page exist in flash ?                                   
   */                                                                 
  if (bc->segment)                                                    
 80048d0:	2a 0d 00 00 	lw r13,(r16+0)                                 
 80048d4:	45 a0 00 82 	be r13,r0,8004adc <rtems_fdisk_ioctl+0x708>    
  {                                                                   
    sc = bc->segment;                                                 
    pd = &sc->page_descriptors[bc->page];                             
 80048d8:	2a 14 00 04 	lw r20,(r16+4)                                 
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, " write:%02d-%03d-%03d: flag used",         
 80048dc:	29 a3 00 08 	lw r3,(r13+8)                                  
 80048e0:	29 a4 00 0c 	lw r4,(r13+12)                                 
 80048e4:	2b 82 00 84 	lw r2,(sp+132)                                 
 80048e8:	ba 80 28 00 	mv r5,r20                                      
 80048ec:	bb 00 08 00 	mv r1,r24                                      
   * Does the page exist in flash ?                                   
   */                                                                 
  if (bc->segment)                                                    
  {                                                                   
    sc = bc->segment;                                                 
    pd = &sc->page_descriptors[bc->page];                             
 80048f0:	29 ac 00 10 	lw r12,(r13+16)                                
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, " write:%02d-%03d-%03d: flag used",         
 80048f4:	fb ff f9 28 	calli 8002d94 <rtems_fdisk_info>               
#endif                                                                
                                                                      
    /*                                                                
     * The page exists in flash so see if the page has been changed.  
     */                                                               
    if (rtems_fdisk_seg_verify_page (fd, sc->device, sc->segment,     
 80048f8:	29 a8 00 18 	lw r8,(r13+24)                                 
 80048fc:	2a 07 00 04 	lw r7,(r16+4)                                  
                             uint32_t               segment,          
                             uint32_t               page,             
                             const void*            buffer)           
{                                                                     
  return rtems_fdisk_seg_verify (fd, device, segment,                 
                                 page * fd->block_size, buffer, fd->block_size);
 8004900:	2b 12 00 14 	lw r18,(r24+20)                                
#endif                                                                
                                                                      
    /*                                                                
     * The page exists in flash so see if the page has been changed.  
     */                                                               
    if (rtems_fdisk_seg_verify_page (fd, sc->device, sc->segment,     
 8004904:	29 af 00 08 	lw r15,(r13+8)                                 
                             uint32_t               device,           
                             uint32_t               segment,          
                             uint32_t               page,             
                             const void*            buffer)           
{                                                                     
  return rtems_fdisk_seg_verify (fd, device, segment,                 
 8004908:	b5 07 08 00 	add r1,r8,r7                                   
 800490c:	ba 40 10 00 	mv r2,r18                                      
 8004910:	fb ff f3 42 	calli 8001618 <__mulsi3>                       
 8004914:	b8 20 98 00 	mv r19,r1                                      
static const rtems_fdisk_segment_desc*                                
rtems_fdisk_seg_descriptor (const rtems_flashdisk* fd,                
                            uint32_t               device,            
                            uint32_t               segment)           
{                                                                     
  return fd->devices[device].segments[segment].descriptor;            
 8004918:	34 02 00 01 	mvi r2,1                                       
 800491c:	b9 e0 08 00 	mv r1,r15                                      
 8004920:	fb ff f2 f0 	calli 80014e0 <__ashlsi3>                      
 8004924:	34 02 00 02 	mvi r2,2                                       
 8004928:	b4 2f 08 00 	add r1,r1,r15                                  
 800492c:	fb ff f2 ed 	calli 80014e0 <__ashlsi3>                      
 8004930:	2b 07 00 2c 	lw r7,(r24+44)                                 
#endif                                                                
                                                                      
    /*                                                                
     * The page exists in flash so see if the page has been changed.  
     */                                                               
    if (rtems_fdisk_seg_verify_page (fd, sc->device, sc->segment,     
 8004934:	29 b1 00 0c 	lw r17,(r13+12)                                
static const rtems_fdisk_segment_desc*                                
rtems_fdisk_seg_descriptor (const rtems_flashdisk* fd,                
                            uint32_t               device,            
                            uint32_t               segment)           
{                                                                     
  return fd->devices[device].segments[segment].descriptor;            
 8004938:	34 02 00 30 	mvi r2,48                                      
 800493c:	b4 e1 58 00 	add r11,r7,r1                                  
 8004940:	29 6e 00 00 	lw r14,(r11+0)                                 
 8004944:	ba 20 08 00 	mv r1,r17                                      
 8004948:	fb ff f3 34 	calli 8001618 <__mulsi3>                       
 800494c:	b5 c1 38 00 	add r7,r14,r1                                  
 8004950:	28 ee 00 04 	lw r14,(r7+4)                                  
                        uint32_t               size)                  
{                                                                     
  const rtems_fdisk_segment_desc*    sd;                              
  const rtems_fdisk_driver_handlers* ops;                             
  sd  = rtems_fdisk_seg_descriptor (fd, device, segment);             
  ops = fd->devices[device].descriptor->flash_ops;                    
 8004954:	29 67 00 08 	lw r7,(r11+8)                                  
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, "  seg-verify: %02d-%03d: o=%08x s=%d",     
 8004958:	2b 82 00 88 	lw r2,(sp+136)                                 
 800495c:	b9 e0 18 00 	mv r3,r15                                      
                        uint32_t               size)                  
{                                                                     
  const rtems_fdisk_segment_desc*    sd;                              
  const rtems_fdisk_driver_handlers* ops;                             
  sd  = rtems_fdisk_seg_descriptor (fd, device, segment);             
  ops = fd->devices[device].descriptor->flash_ops;                    
 8004960:	28 eb 00 08 	lw r11,(r7+8)                                  
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, "  seg-verify: %02d-%03d: o=%08x s=%d",     
 8004964:	ba 20 20 00 	mv r4,r17                                      
 8004968:	ba 60 28 00 	mv r5,r19                                      
 800496c:	ba 40 30 00 	mv r6,r18                                      
 8004970:	bb 00 08 00 	mv r1,r24                                      
 8004974:	fb ff f9 34 	calli 8002e44 <rtems_fdisk_printf>             
                      device, segment, offset, size);                 
#endif                                                                
  return ops->verify (sd, device, segment, offset, buffer, size);     
 8004978:	29 67 00 0c 	lw r7,(r11+12)                                 
 800497c:	b9 c0 08 00 	mv r1,r14                                      
 8004980:	b9 e0 10 00 	mv r2,r15                                      
 8004984:	ba 20 18 00 	mv r3,r17                                      
 8004988:	ba 60 20 00 	mv r4,r19                                      
 800498c:	ba a0 28 00 	mv r5,r21                                      
 8004990:	ba 40 30 00 	mv r6,r18                                      
 8004994:	d8 e0 00 00 	call r7                                        
 8004998:	2a 0e 00 04 	lw r14,(r16+4)                                 
#endif                                                                
                                                                      
    /*                                                                
     * The page exists in flash so see if the page has been changed.  
     */                                                               
    if (rtems_fdisk_seg_verify_page (fd, sc->device, sc->segment,     
 800499c:	5c 20 00 0b 	bne r1,r0,80049c8 <rtems_fdisk_ioctl+0x5f4>    
                                     bc->page + sc->pages_desc, buffer) == 0)
    {                                                                 
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, "write-block:%d=>%02d-%03d-%03d: page verified",
 80049a0:	78 07 08 03 	mvhi r7,0x803                                  
 80049a4:	29 a4 00 08 	lw r4,(r13+8)                                  
 80049a8:	29 a5 00 0c 	lw r5,(r13+12)                                 
 80049ac:	b8 e0 10 00 	mv r2,r7                                       
 80049b0:	bb 00 08 00 	mv r1,r24                                      
 80049b4:	38 42 42 98 	ori r2,r2,0x4298                               
 80049b8:	bb 20 18 00 	mv r3,r25                                      
 80049bc:	b9 c0 30 00 	mv r6,r14                                      
 80049c0:	fb ff f8 f5 	calli 8002d94 <rtems_fdisk_info>               
 80049c4:	e0 00 00 d7 	bi 8004d20 <rtems_fdisk_ioctl+0x94c>           
   * Does the page exist in flash ?                                   
   */                                                                 
  if (bc->segment)                                                    
  {                                                                   
    sc = bc->segment;                                                 
    pd = &sc->page_descriptors[bc->page];                             
 80049c8:	34 02 00 03 	mvi r2,3                                       
 80049cc:	ba 80 08 00 	mv r1,r20                                      
 80049d0:	fb ff f2 c4 	calli 80014e0 <__ashlsi3>                      
 80049d4:	b5 81 60 00 	add r12,r12,r1                                 
 * Set the flags. Setting means clear the bit to 0.                   
 */                                                                   
static void                                                           
rtems_fdisk_page_desc_set_flags (rtems_fdisk_page_desc* pd, uint16_t flags)
{                                                                     
  pd->flags &= ~flags;                                                
 80049d8:	2d 87 00 02 	lhu r7,(r12+2)                                 
rtems_fdisk_seg_write_page_desc_flags (const rtems_flashdisk*       fd,
                                       rtems_fdisk_segment_ctl*     sc,
                                       uint32_t                     page,
                                       const rtems_fdisk_page_desc* page_desc)
{                                                                     
  uint32_t offset = ((page * sizeof (rtems_fdisk_page_desc)) +        
 80049dc:	b9 c0 08 00 	mv r1,r14                                      
 80049e0:	34 02 00 03 	mvi r2,3                                       
 * Set the flags. Setting means clear the bit to 0.                   
 */                                                                   
static void                                                           
rtems_fdisk_page_desc_set_flags (rtems_fdisk_page_desc* pd, uint16_t flags)
{                                                                     
  pd->flags &= ~flags;                                                
 80049e4:	20 e7 ff fd 	andi r7,r7,0xfffd                              
 80049e8:	0d 87 00 02 	sh (r12+2),r7                                  
rtems_fdisk_seg_write_page_desc_flags (const rtems_flashdisk*       fd,
                                       rtems_fdisk_segment_ctl*     sc,
                                       uint32_t                     page,
                                       const rtems_fdisk_page_desc* page_desc)
{                                                                     
  uint32_t offset = ((page * sizeof (rtems_fdisk_page_desc)) +        
 80049ec:	fb ff f2 bd 	calli 80014e0 <__ashlsi3>                      
                     ((uint8_t*) &page_desc->flags) - ((uint8_t*) page_desc));
  if ((fd->flags & RTEMS_FDISK_BLANK_CHECK_BEFORE_WRITE))             
 80049f0:	2b 07 00 08 	lw r7,(r24+8)                                  
                                       rtems_fdisk_segment_ctl*     sc,
                                       uint32_t                     page,
                                       const rtems_fdisk_page_desc* page_desc)
{                                                                     
  uint32_t offset = ((page * sizeof (rtems_fdisk_page_desc)) +        
                     ((uint8_t*) &page_desc->flags) - ((uint8_t*) page_desc));
 80049f4:	34 2f 00 02 	addi r15,r1,2                                  
  if ((fd->flags & RTEMS_FDISK_BLANK_CHECK_BEFORE_WRITE))             
 80049f8:	20 e7 00 08 	andi r7,r7,0x8                                 
 80049fc:	44 e0 00 14 	be r7,r0,8004a4c <rtems_fdisk_ioctl+0x678>     <== NEVER TAKEN
  {                                                                   
    uint16_t flash_flags;                                             
    int      ret;                                                     
    ret = rtems_fdisk_seg_read (fd, sc, offset,                       
 8004a00:	bb 00 08 00 	mv r1,r24                                      
 8004a04:	b9 a0 10 00 	mv r2,r13                                      
 8004a08:	b9 e0 18 00 	mv r3,r15                                      
 8004a0c:	37 84 00 a2 	addi r4,sp,162                                 
 8004a10:	34 05 00 02 	mvi r5,2                                       
 8004a14:	fb ff f9 38 	calli 8002ef4 <rtems_fdisk_seg_read>           
 8004a18:	b8 20 58 00 	mv r11,r1                                      
                                &flash_flags, sizeof (flash_flags));  
    if (ret)                                                          
 8004a1c:	5c 20 00 14 	bne r1,r0,8004a6c <rtems_fdisk_ioctl+0x698>    <== NEVER TAKEN
      return ret;                                                     
    if ((flash_flags & page_desc->flags) != page_desc->flags)         
 8004a20:	2f 85 00 a2 	lhu r5,(sp+162)                                
 8004a24:	2d 88 00 02 	lhu r8,(r12+2)                                 
 8004a28:	a1 05 38 00 	and r7,r8,r5                                   
 8004a2c:	44 e8 00 08 	be r7,r8,8004a4c <rtems_fdisk_ioctl+0x678>     <== ALWAYS TAKEN
    {                                                                 
      rtems_fdisk_error ("  seg-write-page-flags: %02d-%03d-%03d: "   
 8004a30:	2b 81 00 90 	lw r1,(sp+144)                                 <== NOT EXECUTED
 8004a34:	29 a2 00 08 	lw r2,(r13+8)                                  <== NOT EXECUTED
 8004a38:	29 a3 00 0c 	lw r3,(r13+12)                                 <== NOT EXECUTED
 8004a3c:	b9 c0 20 00 	mv r4,r14                                      <== NOT EXECUTED
 8004a40:	b9 00 30 00 	mv r6,r8                                       <== NOT EXECUTED
 8004a44:	fb ff fa 5d 	calli 80033b8 <rtems_fdisk_error>              <== NOT EXECUTED
 8004a48:	e0 00 00 17 	bi 8004aa4 <rtems_fdisk_ioctl+0x6d0>           <== NOT EXECUTED
                         sc->device, sc->segment, page,               
                         flash_flags, page_desc->flags);              
      return ret;                                                     
    }                                                                 
  }                                                                   
  return rtems_fdisk_seg_write (fd, sc, offset,                       
 8004a4c:	bb 00 08 00 	mv r1,r24                                      
 8004a50:	b9 a0 10 00 	mv r2,r13                                      
 8004a54:	b9 e0 18 00 	mv r3,r15                                      
 8004a58:	35 84 00 02 	addi r4,r12,2                                  
 8004a5c:	34 05 00 02 	mvi r5,2                                       
 8004a60:	fb ff f9 97 	calli 80030bc <rtems_fdisk_seg_write>          
 8004a64:	b8 20 58 00 	mv r11,r1                                      
                                                                      
    rtems_fdisk_page_desc_set_flags (pd, RTEMS_FDISK_PAGE_USED);      
                                                                      
    ret = rtems_fdisk_seg_write_page_desc_flags (fd, sc, bc->page, pd);
                                                                      
    if (ret)                                                          
 8004a68:	44 20 00 0f 	be r1,r0,8004aa4 <rtems_fdisk_ioctl+0x6d0>     <== ALWAYS TAKEN
    {                                                                 
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, " write:%02d-%03d-%03d: "      \          
 8004a6c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8004a70:	29 ac 00 08 	lw r12,(r13+8)                                 <== NOT EXECUTED
 8004a74:	29 ae 00 0c 	lw r14,(r13+12)                                <== NOT EXECUTED
 8004a78:	2a 0f 00 04 	lw r15,(r16+4)                                 <== NOT EXECUTED
 8004a7c:	f8 00 76 fc 	calli 802266c <strerror>                       <== NOT EXECUTED
 8004a80:	2b 82 00 8c 	lw r2,(sp+140)                                 <== NOT EXECUTED
 8004a84:	b8 20 30 00 	mv r6,r1                                       <== NOT EXECUTED
 8004a88:	b9 80 18 00 	mv r3,r12                                      <== NOT EXECUTED
 8004a8c:	bb 00 08 00 	mv r1,r24                                      <== NOT EXECUTED
 8004a90:	b9 c0 20 00 	mv r4,r14                                      <== NOT EXECUTED
 8004a94:	b9 e0 28 00 	mv r5,r15                                      <== NOT EXECUTED
 8004a98:	b9 60 38 00 	mv r7,r11                                      <== NOT EXECUTED
 8004a9c:	fb ff f8 be 	calli 8002d94 <rtems_fdisk_info>               <== NOT EXECUTED
 8004aa0:	e0 00 00 07 	bi 8004abc <rtems_fdisk_ioctl+0x6e8>           <== NOT EXECUTED
                        strerror (ret), ret);                         
#endif                                                                
    }                                                                 
    else                                                              
    {                                                                 
      sc->pages_active--;                                             
 8004aa4:	29 a6 00 1c 	lw r6,(r13+28)                                 
 8004aa8:	34 c6 ff ff 	addi r6,r6,-1                                  
 8004aac:	59 a6 00 1c 	sw (r13+28),r6                                 
      sc->pages_used++;                                               
 8004ab0:	29 a6 00 20 	lw r6,(r13+32)                                 
 8004ab4:	34 c6 00 01 	addi r6,r6,1                                   
 8004ab8:	59 a6 00 20 	sw (r13+32),r6                                 
    /*                                                                
     * If possible reuse this segment. This will mean the segment     
     * needs to be removed from the available list and placed         
     * back if space is still available.                              
     */                                                               
    rtems_fdisk_queue_segment (fd, sc);                               
 8004abc:	bb 00 08 00 	mv r1,r24                                      
 8004ac0:	b9 a0 10 00 	mv r2,r13                                      
 8004ac4:	fb ff fb 1b 	calli 8003730 <rtems_fdisk_queue_segment>      
    /*                                                                
     * If no background compacting then compact in the forground.     
     * If we compact we ignore the error as there is little we        
     * can do from here. The write may will work.                     
     */                                                               
    if ((fd->flags & RTEMS_FDISK_BACKGROUND_COMPACT) == 0)            
 8004ac8:	2b 06 00 08 	lw r6,(r24+8)                                  
 8004acc:	20 c6 00 02 	andi r6,r6,0x2                                 
 8004ad0:	5c c0 00 03 	bne r6,r0,8004adc <rtems_fdisk_ioctl+0x708>    <== NEVER TAKEN
      rtems_fdisk_compact (fd);                                       
 8004ad4:	bb 00 08 00 	mv r1,r24                                      
 8004ad8:	fb ff fd ab 	calli 8004184 <rtems_fdisk_compact>            
  /*                                                                  
   * Is it time to compact the disk ?                                 
   *                                                                  
   * We override the background compaction configruation.             
   */                                                                 
  if (rtems_fdisk_segment_count_queue (&fd->available) <=             
 8004adc:	2b 01 00 34 	lw r1,(r24+52)                                 
 8004ae0:	fb ff fa 81 	calli 80034e4 <rtems_fdisk_segment_count_queue.clone.1>
 8004ae4:	2b 06 00 10 	lw r6,(r24+16)                                 
 8004ae8:	54 26 00 03 	bgu r1,r6,8004af4 <rtems_fdisk_ioctl+0x720>    
      fd->avail_compact_segs)                                         
    rtems_fdisk_compact (fd);                                         
 8004aec:	bb 00 08 00 	mv r1,r24                                      
 8004af0:	fb ff fd a5 	calli 8004184 <rtems_fdisk_compact>            
                                                                      
  /*                                                                  
   * Get the next avaliable segment.                                  
   */                                                                 
  sc = rtems_fdisk_segment_queue_pop_head (&fd->available);           
 8004af4:	37 0b 00 34 	addi r11,r24,52                                
 8004af8:	b9 60 08 00 	mv r1,r11                                      
 8004afc:	fb ff f8 4e 	calli 8002c34 <rtems_fdisk_segment_queue_pop_head>
 8004b00:	b8 20 98 00 	mv r19,r1                                      
                                                                      
  /*                                                                  
   * Is the flash disk full ?                                         
   */                                                                 
  if (!sc)                                                            
 8004b04:	5c 20 00 0f 	bne r1,r0,8004b40 <rtems_fdisk_ioctl+0x76c>    <== ALWAYS TAKEN
  {                                                                   
    /*                                                                
     * If compacting is configured for the background do it now       
     * to see if we can get some space back.                          
     */                                                               
    if ((fd->flags & RTEMS_FDISK_BACKGROUND_COMPACT))                 
 8004b08:	2b 06 00 08 	lw r6,(r24+8)                                  <== NOT EXECUTED
 8004b0c:	20 c6 00 02 	andi r6,r6,0x2                                 <== NOT EXECUTED
 8004b10:	44 c1 00 03 	be r6,r1,8004b1c <rtems_fdisk_ioctl+0x748>     <== NOT EXECUTED
      rtems_fdisk_compact (fd);                                       
 8004b14:	bb 00 08 00 	mv r1,r24                                      <== NOT EXECUTED
 8004b18:	fb ff fd 9b 	calli 8004184 <rtems_fdisk_compact>            <== NOT EXECUTED
                                                                      
    /*                                                                
     * Try again for some free space.                                 
     */                                                               
    sc = rtems_fdisk_segment_queue_pop_head (&fd->available);         
 8004b1c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8004b20:	fb ff f8 45 	calli 8002c34 <rtems_fdisk_segment_queue_pop_head><== NOT EXECUTED
 8004b24:	b8 20 98 00 	mv r19,r1                                      <== NOT EXECUTED
                                                                      
    if (!sc)                                                          
 8004b28:	5c 20 00 06 	bne r1,r0,8004b40 <rtems_fdisk_ioctl+0x76c>    <== NOT EXECUTED
    {                                                                 
      rtems_fdisk_error ("write-block: no available pages");          
 8004b2c:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
 8004b30:	b8 40 08 00 	mv r1,r2                                       <== NOT EXECUTED
 8004b34:	38 21 43 50 	ori r1,r1,0x4350                               <== NOT EXECUTED
 8004b38:	fb ff fa 20 	calli 80033b8 <rtems_fdisk_error>              <== NOT EXECUTED
 8004b3c:	e0 00 00 7f 	bi 8004d38 <rtems_fdisk_ioctl+0x964>           <== NOT EXECUTED
      return ENOSPC;                                                  
    }                                                                 
  }                                                                   
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  if (fd->info_level >= 3)                                            
 8004b40:	2b 07 00 6c 	lw r7,(r24+108)                                
 8004b44:	34 06 00 02 	mvi r6,2                                       
 8004b48:	50 c7 00 0d 	bgeu r6,r7,8004b7c <rtems_fdisk_ioctl+0x7a8>   <== ALWAYS TAKEN
  {                                                                   
    char queues[5];                                                   
    rtems_fdisk_queue_status (fd, sc, queues);                        
 8004b4c:	37 8b 00 9c 	addi r11,sp,156                                <== NOT EXECUTED
 8004b50:	bb 00 08 00 	mv r1,r24                                      <== NOT EXECUTED
 8004b54:	ba 60 10 00 	mv r2,r19                                      <== NOT EXECUTED
 8004b58:	b9 60 18 00 	mv r3,r11                                      <== NOT EXECUTED
 8004b5c:	fb ff fa 70 	calli 800351c <rtems_fdisk_queue_status>       <== NOT EXECUTED
    rtems_fdisk_info (fd, " write:%d=>%02d-%03d: queue check: %s",    
 8004b60:	2b 82 00 80 	lw r2,(sp+128)                                 <== NOT EXECUTED
 8004b64:	2a 64 00 08 	lw r4,(r19+8)                                  <== NOT EXECUTED
 8004b68:	2a 65 00 0c 	lw r5,(r19+12)                                 <== NOT EXECUTED
 8004b6c:	bb 00 08 00 	mv r1,r24                                      <== NOT EXECUTED
 8004b70:	bb 20 18 00 	mv r3,r25                                      <== NOT EXECUTED
 8004b74:	b9 60 30 00 	mv r6,r11                                      <== NOT EXECUTED
 8004b78:	fb ff f8 87 	calli 8002d94 <rtems_fdisk_info>               <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Find the next avaliable page in the segment.                     
   */                                                                 
                                                                      
  pd = sc->page_descriptors;                                          
 8004b7c:	2a 6b 00 10 	lw r11,(r19+16)                                
                                                                      
  for (page = 0; page < sc->pages; page++, pd++)                      
 8004b80:	34 0e 00 00 	mvi r14,0                                      
 8004b84:	e0 00 00 58 	bi 8004ce4 <rtems_fdisk_ioctl+0x910>           
  {                                                                   
    if (rtems_fdisk_page_desc_erased (pd))                            
 8004b88:	b9 60 08 00 	mv r1,r11                                      
 8004b8c:	fb ff f8 5b 	calli 8002cf8 <rtems_fdisk_page_desc_erased>   
 8004b90:	44 20 00 53 	be r1,r0,8004cdc <rtems_fdisk_ioctl+0x908>     
    {                                                                 
      pd->crc   = rtems_fdisk_page_checksum (buffer, fd->block_size); 
 8004b94:	2b 02 00 14 	lw r2,(r24+20)                                 
 8004b98:	ba a0 08 00 	mv r1,r21                                      
 8004b9c:	fb ff f8 5f 	calli 8002d18 <rtems_fdisk_page_checksum>      
 * Set the flags. Setting means clear the bit to 0.                   
 */                                                                   
static void                                                           
rtems_fdisk_page_desc_set_flags (rtems_fdisk_page_desc* pd, uint16_t flags)
{                                                                     
  pd->flags &= ~flags;                                                
 8004ba0:	2d 68 00 02 	lhu r8,(r11+2)                                 
                                                                      
  for (page = 0; page < sc->pages; page++, pd++)                      
  {                                                                   
    if (rtems_fdisk_page_desc_erased (pd))                            
    {                                                                 
      pd->crc   = rtems_fdisk_page_checksum (buffer, fd->block_size); 
 8004ba4:	0d 61 00 00 	sh (r11+0),r1                                  
      pd->block = block;                                              
 8004ba8:	59 79 00 04 	sw (r11+4),r25                                 
      bc->page    = page;                                             
                                                                      
      rtems_fdisk_page_desc_set_flags (pd, RTEMS_FDISK_PAGE_ACTIVE);  
                                                                      
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, " write:%d=>%02d-%03d-%03d: write: " \    
 8004bac:	2a 6a 00 00 	lw r10,(r19+0)                                 
 * Set the flags. Setting means clear the bit to 0.                   
 */                                                                   
static void                                                           
rtems_fdisk_page_desc_set_flags (rtems_fdisk_page_desc* pd, uint16_t flags)
{                                                                     
  pd->flags &= ~flags;                                                
 8004bb0:	21 06 ff fe 	andi r6,r8,0xfffe                              
    if (rtems_fdisk_page_desc_erased (pd))                            
    {                                                                 
      pd->crc   = rtems_fdisk_page_checksum (buffer, fd->block_size); 
      pd->block = block;                                              
                                                                      
      bc->segment = sc;                                               
 8004bb4:	5a 13 00 00 	sw (r16+0),r19                                 
      bc->page    = page;                                             
 8004bb8:	5a 0e 00 04 	sw (r16+4),r14                                 
 * Set the flags. Setting means clear the bit to 0.                   
 */                                                                   
static void                                                           
rtems_fdisk_page_desc_set_flags (rtems_fdisk_page_desc* pd, uint16_t flags)
{                                                                     
  pd->flags &= ~flags;                                                
 8004bbc:	0d 66 00 02 	sh (r11+2),r6                                  
                                                                      
  for (page = 0; page < sc->pages; page++, pd++)                      
  {                                                                   
    if (rtems_fdisk_page_desc_erased (pd))                            
    {                                                                 
      pd->crc   = rtems_fdisk_page_checksum (buffer, fd->block_size); 
 8004bc0:	b8 20 78 00 	mv r15,r1                                      
      bc->page    = page;                                             
                                                                      
      rtems_fdisk_page_desc_set_flags (pd, RTEMS_FDISK_PAGE_ACTIVE);  
                                                                      
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, " write:%d=>%02d-%03d-%03d: write: " \    
 8004bc4:	2a 64 00 08 	lw r4,(r19+8)                                  
 8004bc8:	2a 65 00 0c 	lw r5,(r19+12)                                 
 8004bcc:	2a 68 00 1c 	lw r8,(r19+28)                                 
 8004bd0:	2a 6d 00 20 	lw r13,(r19+32)                                
 8004bd4:	2a 6c 00 24 	lw r12,(r19+36)                                
 8004bd8:	2b 89 00 6c 	lw r9,(sp+108)                                 
 8004bdc:	45 40 00 02 	be r10,r0,8004be4 <rtems_fdisk_ioctl+0x810>    <== ALWAYS TAKEN
 8004be0:	2b 89 00 7c 	lw r9,(sp+124)                                 <== NOT EXECUTED
 8004be4:	2b 82 00 70 	lw r2,(sp+112)                                 
 8004be8:	5b 86 00 10 	sw (sp+16),r6                                  
 8004bec:	bb 20 18 00 	mv r3,r25                                      
 8004bf0:	b9 c0 30 00 	mv r6,r14                                      
 8004bf4:	ba 20 38 00 	mv r7,r17                                      
 8004bf8:	bb 00 08 00 	mv r1,r24                                      
 8004bfc:	5b 8d 00 04 	sw (sp+4),r13                                  
 8004c00:	5b 89 00 0c 	sw (sp+12),r9                                  
 8004c04:	5b 8c 00 08 	sw (sp+8),r12                                  
 8004c08:	5b 8f 00 14 	sw (sp+20),r15                                 
 8004c0c:	5b 99 00 18 	sw (sp+24),r25                                 
 8004c10:	fb ff f8 61 	calli 8002d94 <rtems_fdisk_info>               
                                                                      
      /*                                                              
       * We use the segment page offset not the page number used in the
       * driver. This skips the page descriptors.                     
       */                                                             
      ret = rtems_fdisk_seg_write_page (fd, sc, page + sc->pages_desc, buffer);
 8004c14:	2a 67 00 18 	lw r7,(r19+24)                                 
 8004c18:	bb 00 08 00 	mv r1,r24                                      
 8004c1c:	ba 60 10 00 	mv r2,r19                                      
 8004c20:	b5 c7 18 00 	add r3,r14,r7                                  
 8004c24:	ba a0 20 00 	mv r4,r21                                      
 8004c28:	fb ff f9 8c 	calli 8003258 <rtems_fdisk_seg_write_page>     
 8004c2c:	b8 20 68 00 	mv r13,r1                                      
      if (ret)                                                        
 8004c30:	44 20 00 08 	be r1,r0,8004c50 <rtems_fdisk_ioctl+0x87c>     <== ALWAYS TAKEN
      {                                                               
#if RTEMS_FDISK_TRACE                                                 
        rtems_fdisk_info (fd, "write-block:%02d-%03d-%03d: write page failed: " \
 8004c34:	2a 6b 00 08 	lw r11,(r19+8)                                 <== NOT EXECUTED
 8004c38:	2a 6c 00 0c 	lw r12,(r19+12)                                <== NOT EXECUTED
 8004c3c:	f8 00 76 8c 	calli 802266c <strerror>                       <== NOT EXECUTED
 8004c40:	b8 20 30 00 	mv r6,r1                                       <== NOT EXECUTED
 8004c44:	2b 82 00 78 	lw r2,(sp+120)                                 <== NOT EXECUTED
 8004c48:	bb 00 08 00 	mv r1,r24                                      <== NOT EXECUTED
 8004c4c:	e0 00 00 0f 	bi 8004c88 <rtems_fdisk_ioctl+0x8b4>           <== NOT EXECUTED
                          strerror (ret), ret);                       
#endif                                                                
      }                                                               
      else                                                            
      {                                                               
        ret = rtems_fdisk_seg_write_page_desc (fd, sc, page, pd);     
 8004c50:	bb 00 08 00 	mv r1,r24                                      
 8004c54:	ba 60 10 00 	mv r2,r19                                      
 8004c58:	b9 c0 18 00 	mv r3,r14                                      
 8004c5c:	b9 60 20 00 	mv r4,r11                                      
 8004c60:	fb ff f9 58 	calli 80031c0 <rtems_fdisk_seg_write_page_desc>
 8004c64:	b8 20 68 00 	mv r13,r1                                      
        if (ret)                                                      
 8004c68:	44 20 00 0e 	be r1,r0,8004ca0 <rtems_fdisk_ioctl+0x8cc>     <== ALWAYS TAKEN
        {                                                             
#if RTEMS_FDISK_TRACE                                                 
          rtems_fdisk_info (fd, "write-block:%02d-%03d-%03d: "  \     
 8004c6c:	2a 6b 00 08 	lw r11,(r19+8)                                 <== NOT EXECUTED
 8004c70:	2a 6c 00 0c 	lw r12,(r19+12)                                <== NOT EXECUTED
 8004c74:	2a 0e 00 04 	lw r14,(r16+4)                                 <== NOT EXECUTED
 8004c78:	f8 00 76 7d 	calli 802266c <strerror>                       <== NOT EXECUTED
 8004c7c:	2b 82 00 74 	lw r2,(sp+116)                                 <== NOT EXECUTED
 8004c80:	b8 20 30 00 	mv r6,r1                                       <== NOT EXECUTED
 8004c84:	bb 00 08 00 	mv r1,r24                                      <== NOT EXECUTED
 8004c88:	b9 60 18 00 	mv r3,r11                                      <== NOT EXECUTED
 8004c8c:	b9 80 20 00 	mv r4,r12                                      <== NOT EXECUTED
 8004c90:	b9 c0 28 00 	mv r5,r14                                      <== NOT EXECUTED
 8004c94:	b9 a0 38 00 	mv r7,r13                                      <== NOT EXECUTED
 8004c98:	fb ff f8 3f 	calli 8002d94 <rtems_fdisk_info>               <== NOT EXECUTED
 8004c9c:	e0 00 00 04 	bi 8004cac <rtems_fdisk_ioctl+0x8d8>           <== NOT EXECUTED
                            strerror (ret), ret);                     
#endif                                                                
        }                                                             
        else                                                          
        {                                                             
          sc->pages_active++;                                         
 8004ca0:	2a 63 00 1c 	lw r3,(r19+28)                                 
 8004ca4:	34 63 00 01 	addi r3,r3,1                                   
 8004ca8:	5a 63 00 1c 	sw (r19+28),r3                                 
        }                                                             
      }                                                               
                                                                      
      rtems_fdisk_queue_segment (fd, sc);                             
 8004cac:	bb 00 08 00 	mv r1,r24                                      
 8004cb0:	ba 60 10 00 	mv r2,r19                                      
 8004cb4:	fb ff fa 9f 	calli 8003730 <rtems_fdisk_queue_segment>      
static bool                                                           
rtems_fdisk_is_erased_blocks_starvation (rtems_flashdisk* fd)         
{                                                                     
  bool starvation = fd->erased_blocks < fd->starvation_threshold;     
                                                                      
  if (starvation)                                                     
 8004cb8:	2b 06 00 28 	lw r6,(r24+40)                                 
 8004cbc:	2b 03 00 24 	lw r3,(r24+36)                                 
 8004cc0:	50 c3 00 17 	bgeu r6,r3,8004d1c <rtems_fdisk_ioctl+0x948>   
    fd->starvations++;                                                
 8004cc4:	2b 03 00 70 	lw r3,(r24+112)                                
      }                                                               
                                                                      
      rtems_fdisk_queue_segment (fd, sc);                             
                                                                      
      if (rtems_fdisk_is_erased_blocks_starvation (fd))               
        rtems_fdisk_compact (fd);                                     
 8004cc8:	bb 00 08 00 	mv r1,r24                                      
rtems_fdisk_is_erased_blocks_starvation (rtems_flashdisk* fd)         
{                                                                     
  bool starvation = fd->erased_blocks < fd->starvation_threshold;     
                                                                      
  if (starvation)                                                     
    fd->starvations++;                                                
 8004ccc:	34 63 00 01 	addi r3,r3,1                                   
 8004cd0:	5b 03 00 70 	sw (r24+112),r3                                
      }                                                               
                                                                      
      rtems_fdisk_queue_segment (fd, sc);                             
                                                                      
      if (rtems_fdisk_is_erased_blocks_starvation (fd))               
        rtems_fdisk_compact (fd);                                     
 8004cd4:	fb ff fd 2c 	calli 8004184 <rtems_fdisk_compact>            
 8004cd8:	e0 00 00 11 	bi 8004d1c <rtems_fdisk_ioctl+0x948>           
   * Find the next avaliable page in the segment.                     
   */                                                                 
                                                                      
  pd = sc->page_descriptors;                                          
                                                                      
  for (page = 0; page < sc->pages; page++, pd++)                      
 8004cdc:	35 ce 00 01 	addi r14,r14,1                                 
 8004ce0:	35 6b 00 08 	addi r11,r11,8                                 
 8004ce4:	2a 71 00 14 	lw r17,(r19+20)                                
 8004ce8:	56 2e ff a8 	bgu r17,r14,8004b88 <rtems_fdisk_ioctl+0x7b4>  <== ALWAYS TAKEN
                                                                      
      return ret;                                                     
    }                                                                 
  }                                                                   
                                                                      
  rtems_fdisk_error ("write-block: no erased page descs in segment: %d-%d",
 8004cec:	78 04 08 03 	mvhi r4,0x803                                  <== NOT EXECUTED
 8004cf0:	2a 62 00 08 	lw r2,(r19+8)                                  <== NOT EXECUTED
 8004cf4:	2a 63 00 0c 	lw r3,(r19+12)                                 <== NOT EXECUTED
 8004cf8:	b8 80 08 00 	mv r1,r4                                       <== NOT EXECUTED
 8004cfc:	38 21 44 5c 	ori r1,r1,0x445c                               <== NOT EXECUTED
 8004d00:	fb ff f9 ae 	calli 80033b8 <rtems_fdisk_error>              <== NOT EXECUTED
                     sc->device, sc->segment);                        
                                                                      
  sc->failed = true;                                                  
 8004d04:	34 04 00 01 	mvi r4,1                                       <== NOT EXECUTED
 8004d08:	5a 64 00 28 	sw (r19+40),r4                                 <== NOT EXECUTED
  rtems_fdisk_queue_segment (fd, sc);                                 
 8004d0c:	bb 00 08 00 	mv r1,r24                                      <== NOT EXECUTED
 8004d10:	ba 60 10 00 	mv r2,r19                                      <== NOT EXECUTED
 8004d14:	fb ff fa 87 	calli 8003730 <rtems_fdisk_queue_segment>      <== NOT EXECUTED
 8004d18:	e0 00 00 08 	bi 8004d38 <rtems_fdisk_ioctl+0x964>           <== NOT EXECUTED
    fb = sg->length / fd->block_size;                                 
    data = sg->buffer;                                                
    for (b = 0; b < fb; b++, data += fd->block_size)                  
    {                                                                 
      ret = rtems_fdisk_write_block (fd, sg->block + b, data);        
      if (ret)                                                        
 8004d1c:	5d a0 00 07 	bne r13,r0,8004d38 <rtems_fdisk_ioctl+0x964>   <== NEVER TAKEN
    uint8_t* data;                                                    
    uint32_t fb;                                                      
    uint32_t b;                                                       
    fb = sg->length / fd->block_size;                                 
    data = sg->buffer;                                                
    for (b = 0; b < fb; b++, data += fd->block_size)                  
 8004d20:	2b 03 00 14 	lw r3,(r24+20)                                 
 8004d24:	36 d6 00 01 	addi r22,r22,1                                 
 8004d28:	b6 a3 a8 00 	add r21,r21,r3                                 
 8004d2c:	2b 81 00 98 	lw r1,(sp+152)                                 
 8004d30:	54 36 fe d3 	bgu r1,r22,800487c <rtems_fdisk_ioctl+0x4a8>   
 8004d34:	e0 00 01 f1 	bi 80054f8 <rtems_fdisk_ioctl+0x1124>          
      if (ret)                                                        
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  rtems_blkdev_request_done (req, ret ? RTEMS_IO_ERROR : RTEMS_SUCCESSFUL);
 8004d38:	34 02 00 1b 	mvi r2,27                                      <== NOT EXECUTED
 8004d3c:	e0 00 00 05 	bi 8004d50 <rtems_fdisk_ioctl+0x97c>           <== NOT EXECUTED
{                                                                     
  rtems_blkdev_sg_buffer* sg = req->bufs;                             
  uint32_t                buf;                                        
  int                     ret = 0;                                    
                                                                      
  for (buf = 0; (ret == 0) && (buf < req->bufnum); buf++, sg++)       
 8004d40:	2b 82 00 60 	lw r2,(sp+96)                                  
 8004d44:	28 43 00 10 	lw r3,(r2+16)                                  
 8004d48:	54 77 fe c6 	bgu r3,r23,8004860 <rtems_fdisk_ioctl+0x48c>   
      if (ret)                                                        
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  rtems_blkdev_request_done (req, ret ? RTEMS_IO_ERROR : RTEMS_SUCCESSFUL);
 8004d4c:	34 02 00 00 	mvi r2,0                                       
 8004d50:	2b 83 00 60 	lw r3,(sp+96)                                  
 8004d54:	28 64 00 04 	lw r4,(r3+4)                                   
 8004d58:	b8 60 08 00 	mv r1,r3                                       
 8004d5c:	d8 80 00 00 	call r4                                        
            case RTEMS_BLKDEV_REQ_READ:                               
              errno = rtems_fdisk_read (&rtems_flashdisks[minor], r); 
              break;                                                  
                                                                      
            case RTEMS_BLKDEV_REQ_WRITE:                              
              errno = rtems_fdisk_write (&rtems_flashdisks[minor], r);
 8004d60:	2b 81 00 94 	lw r1,(sp+148)                                 
 8004d64:	e0 00 01 b6 	bi 800543c <rtems_fdisk_ioctl+0x1068>          
              break;                                                  
                                                                      
            default:                                                  
              errno = EINVAL;                                         
 8004d68:	f8 00 6b 2b 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 8004d6c:	34 02 00 16 	mvi r2,22                                      <== NOT EXECUTED
 8004d70:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
              break;                                                  
 8004d74:	e0 00 01 b8 	bi 8005454 <rtems_fdisk_ioctl+0x1080>          <== NOT EXECUTED
          }                                                           
        }                                                             
        break;                                                        
                                                                      
      case RTEMS_FDISK_IOCTL_ERASE_DISK:                              
        errno = rtems_fdisk_erase_disk (&rtems_flashdisks[minor]);    
 8004d78:	f8 00 6b 27 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 8004d7c:	2b 82 00 64 	lw r2,(sp+100)                                 <== NOT EXECUTED
 8004d80:	29 6b 00 00 	lw r11,(r11+0)                                 <== NOT EXECUTED
 8004d84:	b8 20 80 00 	mv r16,r1                                      <== NOT EXECUTED
  for (device = 0; device < fd->device_count; device++)               
  {                                                                   
    int ret;                                                          
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, " erase-flash:%02d", device);               
 8004d88:	78 0f 08 03 	mvhi r15,0x803                                 <== NOT EXECUTED
          }                                                           
        }                                                             
        break;                                                        
                                                                      
      case RTEMS_FDISK_IOCTL_ERASE_DISK:                              
        errno = rtems_fdisk_erase_disk (&rtems_flashdisks[minor]);    
 8004d8c:	b5 62 58 00 	add r11,r11,r2                                 <== NOT EXECUTED
{                                                                     
  uint32_t device;                                                    
  int      ret;                                                       
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, "erase-disk");                                
 8004d90:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
 8004d94:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8004d98:	38 42 44 90 	ori r2,r2,0x4490                               <== NOT EXECUTED
rtems_fdisk_device_erase (const rtems_flashdisk* fd, uint32_t device) 
{                                                                     
  const rtems_fdisk_driver_handlers* ops;                             
  ops = fd->devices[device].descriptor->flash_ops;                    
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, " device-erase: %02d", device);             
 8004d9c:	78 0e 08 03 	mvhi r14,0x803                                 <== NOT EXECUTED
{                                                                     
  uint32_t device;                                                    
  int      ret;                                                       
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, "erase-disk");                                
 8004da0:	fb ff f7 fd 	calli 8002d94 <rtems_fdisk_info>               <== NOT EXECUTED
 8004da4:	34 0d 00 00 	mvi r13,0                                      <== NOT EXECUTED
 */                                                                   
static int                                                            
rtems_fdisk_erase_flash (const rtems_flashdisk* fd)                   
{                                                                     
  uint32_t device;                                                    
  for (device = 0; device < fd->device_count; device++)               
 8004da8:	34 0c 00 00 	mvi r12,0                                      <== NOT EXECUTED
  {                                                                   
    int ret;                                                          
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, " erase-flash:%02d", device);               
 8004dac:	39 ef 44 9c 	ori r15,r15,0x449c                             <== NOT EXECUTED
rtems_fdisk_device_erase (const rtems_flashdisk* fd, uint32_t device) 
{                                                                     
  const rtems_fdisk_driver_handlers* ops;                             
  ops = fd->devices[device].descriptor->flash_ops;                    
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, " device-erase: %02d", device);             
 8004db0:	39 ce 44 b0 	ori r14,r14,0x44b0                             <== NOT EXECUTED
 8004db4:	e0 00 00 16 	bi 8004e0c <rtems_fdisk_ioctl+0xa38>           <== NOT EXECUTED
  for (device = 0; device < fd->device_count; device++)               
  {                                                                   
    int ret;                                                          
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, " erase-flash:%02d", device);               
 8004db8:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
 8004dbc:	b9 80 18 00 	mv r3,r12                                      <== NOT EXECUTED
 8004dc0:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8004dc4:	fb ff f7 f4 	calli 8002d94 <rtems_fdisk_info>               <== NOT EXECUTED
 */                                                                   
static int                                                            
rtems_fdisk_device_erase (const rtems_flashdisk* fd, uint32_t device) 
{                                                                     
  const rtems_fdisk_driver_handlers* ops;                             
  ops = fd->devices[device].descriptor->flash_ops;                    
 8004dc8:	29 61 00 2c 	lw r1,(r11+44)                                 <== NOT EXECUTED
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, " device-erase: %02d", device);             
 8004dcc:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 8004dd0:	b9 80 18 00 	mv r3,r12                                      <== NOT EXECUTED
 */                                                                   
static int                                                            
rtems_fdisk_device_erase (const rtems_flashdisk* fd, uint32_t device) 
{                                                                     
  const rtems_fdisk_driver_handlers* ops;                             
  ops = fd->devices[device].descriptor->flash_ops;                    
 8004dd4:	b4 2d 08 00 	add r1,r1,r13                                  <== NOT EXECUTED
 8004dd8:	28 21 00 08 	lw r1,(r1+8)                                   <== NOT EXECUTED
 8004ddc:	28 31 00 08 	lw r17,(r1+8)                                  <== NOT EXECUTED
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, " device-erase: %02d", device);             
 8004de0:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8004de4:	fb ff f8 18 	calli 8002e44 <rtems_fdisk_printf>             <== NOT EXECUTED
#endif                                                                
  return ops->erase_device (fd->devices[device].descriptor, device);  
 8004de8:	29 61 00 2c 	lw r1,(r11+44)                                 <== NOT EXECUTED
 8004dec:	2a 23 00 14 	lw r3,(r17+20)                                 <== NOT EXECUTED
 8004df0:	b9 80 10 00 	mv r2,r12                                      <== NOT EXECUTED
 8004df4:	b4 2d 08 00 	add r1,r1,r13                                  <== NOT EXECUTED
 8004df8:	28 21 00 08 	lw r1,(r1+8)                                   <== NOT EXECUTED
 8004dfc:	35 ad 00 0c 	addi r13,r13,12                                <== NOT EXECUTED
 8004e00:	d8 60 00 00 	call r3                                        <== NOT EXECUTED
    rtems_fdisk_info (fd, " erase-flash:%02d", device);               
#endif                                                                
                                                                      
    ret = rtems_fdisk_device_erase (fd, device);                      
                                                                      
    if (ret != 0)                                                     
 8004e04:	5c 20 00 16 	bne r1,r0,8004e5c <rtems_fdisk_ioctl+0xa88>    <== NOT EXECUTED
 */                                                                   
static int                                                            
rtems_fdisk_erase_flash (const rtems_flashdisk* fd)                   
{                                                                     
  uint32_t device;                                                    
  for (device = 0; device < fd->device_count; device++)               
 8004e08:	35 8c 00 01 	addi r12,r12,1                                 <== NOT EXECUTED
 8004e0c:	29 61 00 30 	lw r1,(r11+48)                                 <== NOT EXECUTED
 8004e10:	54 2c ff ea 	bgu r1,r12,8004db8 <rtems_fdisk_ioctl+0x9e4>   <== NOT EXECUTED
 8004e14:	34 0d 00 00 	mvi r13,0                                      <== NOT EXECUTED
 8004e18:	34 0c 00 00 	mvi r12,0                                      <== NOT EXECUTED
 8004e1c:	e0 00 00 0a 	bi 8004e44 <rtems_fdisk_ioctl+0xa70>           <== NOT EXECUTED
                                                                      
  if (ret == 0)                                                       
  {                                                                   
    for (device = 0; device < fd->device_count; device++)             
    {                                                                 
      if (!fd->devices[device].segments)                              
 8004e20:	29 61 00 2c 	lw r1,(r11+44)                                 <== NOT EXECUTED
 8004e24:	b4 2d 08 00 	add r1,r1,r13                                  <== NOT EXECUTED
 8004e28:	28 21 00 00 	lw r1,(r1+0)                                   <== NOT EXECUTED
 8004e2c:	44 20 00 0a 	be r1,r0,8004e54 <rtems_fdisk_ioctl+0xa80>     <== NOT EXECUTED
        return ENOMEM;                                                
                                                                      
      ret = rtems_fdisk_recover_block_mappings (fd);                  
 8004e30:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8004e34:	fb ff fa be 	calli 800392c <rtems_fdisk_recover_block_mappings><== NOT EXECUTED
 8004e38:	35 ad 00 0c 	addi r13,r13,12                                <== NOT EXECUTED
      if (ret)                                                        
 8004e3c:	5c 20 00 08 	bne r1,r0,8004e5c <rtems_fdisk_ioctl+0xa88>    <== NOT EXECUTED
                                                                      
  ret = rtems_fdisk_erase_flash (fd);                                 
                                                                      
  if (ret == 0)                                                       
  {                                                                   
    for (device = 0; device < fd->device_count; device++)             
 8004e40:	35 8c 00 01 	addi r12,r12,1                                 <== NOT EXECUTED
 8004e44:	29 61 00 30 	lw r1,(r11+48)                                 <== NOT EXECUTED
 8004e48:	54 2c ff f6 	bgu r1,r12,8004e20 <rtems_fdisk_ioctl+0xa4c>   <== NOT EXECUTED
 8004e4c:	34 04 00 00 	mvi r4,0                                       <== NOT EXECUTED
 8004e50:	e0 00 00 04 	bi 8004e60 <rtems_fdisk_ioctl+0xa8c>           <== NOT EXECUTED
    {                                                                 
      if (!fd->devices[device].segments)                              
        return ENOMEM;                                                
 8004e54:	34 04 00 0c 	mvi r4,12                                      <== NOT EXECUTED
 8004e58:	e0 00 00 02 	bi 8004e60 <rtems_fdisk_ioctl+0xa8c>           <== NOT EXECUTED
 8004e5c:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
          }                                                           
        }                                                             
        break;                                                        
                                                                      
      case RTEMS_FDISK_IOCTL_ERASE_DISK:                              
        errno = rtems_fdisk_erase_disk (&rtems_flashdisks[minor]);    
 8004e60:	5a 04 00 00 	sw (r16+0),r4                                  <== NOT EXECUTED
        break;                                                        
 8004e64:	e0 00 01 7c 	bi 8005454 <rtems_fdisk_ioctl+0x1080>          <== NOT EXECUTED
                                                                      
      case RTEMS_FDISK_IOCTL_COMPACT:                                 
        errno = rtems_fdisk_compact (&rtems_flashdisks[minor]);       
 8004e68:	f8 00 6a eb 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 8004e6c:	29 62 00 00 	lw r2,(r11+0)                                  <== NOT EXECUTED
 8004e70:	2b 83 00 64 	lw r3,(sp+100)                                 <== NOT EXECUTED
 8004e74:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
 8004e78:	b4 43 08 00 	add r1,r2,r3                                   <== NOT EXECUTED
 8004e7c:	fb ff fc c2 	calli 8004184 <rtems_fdisk_compact>            <== NOT EXECUTED
 8004e80:	59 81 00 00 	sw (r12+0),r1                                  <== NOT EXECUTED
        break;                                                        
 8004e84:	e0 00 01 74 	bi 8005454 <rtems_fdisk_ioctl+0x1080>          <== NOT EXECUTED
                                                                      
      case RTEMS_FDISK_IOCTL_ERASE_USED:                              
        errno = rtems_fdisk_erase_used (&rtems_flashdisks[minor]);    
 8004e88:	f8 00 6a e3 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 8004e8c:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
 8004e90:	29 6c 00 00 	lw r12,(r11+0)                                 <== NOT EXECUTED
 8004e94:	2b 81 00 64 	lw r1,(sp+100)                                 <== NOT EXECUTED
 */                                                                   
static int                                                            
rtems_fdisk_erase_used (rtems_flashdisk* fd)                          
{                                                                     
  rtems_fdisk_segment_ctl* sc;                                        
  int                      latched_ret = 0;                           
 8004e98:	34 0b 00 00 	mvi r11,0                                      <== NOT EXECUTED
      case RTEMS_FDISK_IOCTL_COMPACT:                                 
        errno = rtems_fdisk_compact (&rtems_flashdisks[minor]);       
        break;                                                        
                                                                      
      case RTEMS_FDISK_IOCTL_ERASE_USED:                              
        errno = rtems_fdisk_erase_used (&rtems_flashdisks[minor]);    
 8004e9c:	b5 81 60 00 	add r12,r12,r1                                 <== NOT EXECUTED
rtems_fdisk_erase_used (rtems_flashdisk* fd)                          
{                                                                     
  rtems_fdisk_segment_ctl* sc;                                        
  int                      latched_ret = 0;                           
                                                                      
  while ((sc = rtems_fdisk_segment_queue_pop_head (&fd->erase)))      
 8004ea0:	35 8e 00 4c 	addi r14,r12,76                                <== NOT EXECUTED
 8004ea4:	e0 00 00 08 	bi 8004ec4 <rtems_fdisk_ioctl+0xaf0>           <== NOT EXECUTED
  {                                                                   
    /*                                                                
     * The segment will either end up on the available queue or       
     * the failed queue.                                              
     */                                                               
    int ret = rtems_fdisk_erase_segment (fd, sc);                     
 8004ea8:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8004eac:	fb ff f9 ce 	calli 80035e4 <rtems_fdisk_erase_segment>      <== NOT EXECUTED
    if (ret && !latched_ret)                                          
 8004eb0:	7c 23 00 00 	cmpnei r3,r1,0                                 <== NOT EXECUTED
 8004eb4:	65 62 00 00 	cmpei r2,r11,0                                 <== NOT EXECUTED
 8004eb8:	a0 62 10 00 	and r2,r3,r2                                   <== NOT EXECUTED
 8004ebc:	44 40 00 02 	be r2,r0,8004ec4 <rtems_fdisk_ioctl+0xaf0>     <== NOT EXECUTED
 8004ec0:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
rtems_fdisk_erase_used (rtems_flashdisk* fd)                          
{                                                                     
  rtems_fdisk_segment_ctl* sc;                                        
  int                      latched_ret = 0;                           
                                                                      
  while ((sc = rtems_fdisk_segment_queue_pop_head (&fd->erase)))      
 8004ec4:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 8004ec8:	fb ff f7 5b 	calli 8002c34 <rtems_fdisk_segment_queue_pop_head><== NOT EXECUTED
 8004ecc:	b8 20 10 00 	mv r2,r1                                       <== NOT EXECUTED
 8004ed0:	5c 20 ff f6 	bne r1,r0,8004ea8 <rtems_fdisk_ioctl+0xad4>    <== NOT EXECUTED
      case RTEMS_FDISK_IOCTL_COMPACT:                                 
        errno = rtems_fdisk_compact (&rtems_flashdisks[minor]);       
        break;                                                        
                                                                      
      case RTEMS_FDISK_IOCTL_ERASE_USED:                              
        errno = rtems_fdisk_erase_used (&rtems_flashdisks[minor]);    
 8004ed4:	59 ab 00 00 	sw (r13+0),r11                                 <== NOT EXECUTED
        break;                                                        
 8004ed8:	e0 00 01 5f 	bi 8005454 <rtems_fdisk_ioctl+0x1080>          <== NOT EXECUTED
                                                                      
      case RTEMS_FDISK_IOCTL_MONITORING:                              
        errno = rtems_fdisk_monitoring_data (&rtems_flashdisks[minor],
 8004edc:	f8 00 6a ce 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 8004ee0:	2b 82 00 64 	lw r2,(sp+100)                                 <== NOT EXECUTED
 8004ee4:	29 6b 00 00 	lw r11,(r11+0)                                 <== NOT EXECUTED
                             rtems_fdisk_monitor_data* data)          
{                                                                     
  uint32_t i;                                                         
  uint32_t j;                                                         
                                                                      
  data->block_size     = fd->block_size;                              
 8004ee8:	2b 83 00 60 	lw r3,(sp+96)                                  <== NOT EXECUTED
      case RTEMS_FDISK_IOCTL_ERASE_USED:                              
        errno = rtems_fdisk_erase_used (&rtems_flashdisks[minor]);    
        break;                                                        
                                                                      
      case RTEMS_FDISK_IOCTL_MONITORING:                              
        errno = rtems_fdisk_monitoring_data (&rtems_flashdisks[minor],
 8004eec:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
 8004ef0:	b5 62 58 00 	add r11,r11,r2                                 <== NOT EXECUTED
                             rtems_fdisk_monitor_data* data)          
{                                                                     
  uint32_t i;                                                         
  uint32_t j;                                                         
                                                                      
  data->block_size     = fd->block_size;                              
 8004ef4:	29 62 00 14 	lw r2,(r11+20)                                 <== NOT EXECUTED
  data->block_count    = fd->block_count;                             
 8004ef8:	29 65 00 1c 	lw r5,(r11+28)                                 <== NOT EXECUTED
  data->unavail_blocks = fd->unavail_blocks;                          
  data->device_count   = fd->device_count;                            
 8004efc:	29 6c 00 30 	lw r12,(r11+48)                                <== NOT EXECUTED
                             rtems_fdisk_monitor_data* data)          
{                                                                     
  uint32_t i;                                                         
  uint32_t j;                                                         
                                                                      
  data->block_size     = fd->block_size;                              
 8004f00:	58 62 00 00 	sw (r3+0),r2                                   <== NOT EXECUTED
  data->block_count    = fd->block_count;                             
  data->unavail_blocks = fd->unavail_blocks;                          
 8004f04:	29 62 00 20 	lw r2,(r11+32)                                 <== NOT EXECUTED
{                                                                     
  uint32_t i;                                                         
  uint32_t j;                                                         
                                                                      
  data->block_size     = fd->block_size;                              
  data->block_count    = fd->block_count;                             
 8004f08:	58 65 00 04 	sw (r3+4),r5                                   <== NOT EXECUTED
  data->unavail_blocks = fd->unavail_blocks;                          
  data->device_count   = fd->device_count;                            
 8004f0c:	58 6c 00 0c 	sw (r3+12),r12                                 <== NOT EXECUTED
  uint32_t i;                                                         
  uint32_t j;                                                         
                                                                      
  data->block_size     = fd->block_size;                              
  data->block_count    = fd->block_count;                             
  data->unavail_blocks = fd->unavail_blocks;                          
 8004f10:	58 62 00 08 	sw (r3+8),r2                                   <== NOT EXECUTED
  data->device_count   = fd->device_count;                            
                                                                      
  data->blocks_used = 0;                                              
 8004f14:	58 60 00 18 	sw (r3+24),r0                                  <== NOT EXECUTED
 8004f18:	34 04 00 00 	mvi r4,0                                       <== NOT EXECUTED
  for (i = 0; i < fd->block_count; i++)                               
 8004f1c:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 8004f20:	b8 60 08 00 	mv r1,r3                                       <== NOT EXECUTED
 8004f24:	e0 00 00 0a 	bi 8004f4c <rtems_fdisk_ioctl+0xb78>           <== NOT EXECUTED
    if (fd->blocks[i].segment)                                        
 8004f28:	29 63 00 18 	lw r3,(r11+24)                                 <== NOT EXECUTED
 8004f2c:	b4 64 18 00 	add r3,r3,r4                                   <== NOT EXECUTED
 8004f30:	28 63 00 00 	lw r3,(r3+0)                                   <== NOT EXECUTED
 8004f34:	44 60 00 04 	be r3,r0,8004f44 <rtems_fdisk_ioctl+0xb70>     <== NOT EXECUTED
      data->blocks_used++;                                            
 8004f38:	28 23 00 18 	lw r3,(r1+24)                                  <== NOT EXECUTED
 8004f3c:	34 63 00 01 	addi r3,r3,1                                   <== NOT EXECUTED
 8004f40:	58 23 00 18 	sw (r1+24),r3                                  <== NOT EXECUTED
  data->block_count    = fd->block_count;                             
  data->unavail_blocks = fd->unavail_blocks;                          
  data->device_count   = fd->device_count;                            
                                                                      
  data->blocks_used = 0;                                              
  for (i = 0; i < fd->block_count; i++)                               
 8004f44:	34 42 00 01 	addi r2,r2,1                                   <== NOT EXECUTED
 8004f48:	34 84 00 08 	addi r4,r4,8                                   <== NOT EXECUTED
 8004f4c:	54 a2 ff f7 	bgu r5,r2,8004f28 <rtems_fdisk_ioctl+0xb54>    <== NOT EXECUTED
    if (fd->blocks[i].segment)                                        
      data->blocks_used++;                                            
                                                                      
  data->segs_available = rtems_fdisk_segment_count_queue (&fd->available);
 8004f50:	29 61 00 34 	lw r1,(r11+52)                                 <== NOT EXECUTED
 8004f54:	fb ff f9 64 	calli 80034e4 <rtems_fdisk_segment_count_queue.clone.1><== NOT EXECUTED
 8004f58:	2b 82 00 60 	lw r2,(sp+96)                                  <== NOT EXECUTED
 8004f5c:	58 41 00 1c 	sw (r2+28),r1                                  <== NOT EXECUTED
  data->segs_used      = rtems_fdisk_segment_count_queue (&fd->used); 
 8004f60:	29 61 00 40 	lw r1,(r11+64)                                 <== NOT EXECUTED
 8004f64:	fb ff f9 60 	calli 80034e4 <rtems_fdisk_segment_count_queue.clone.1><== NOT EXECUTED
 8004f68:	2b 83 00 60 	lw r3,(sp+96)                                  <== NOT EXECUTED
 8004f6c:	58 61 00 20 	sw (r3+32),r1                                  <== NOT EXECUTED
  data->segs_failed    = rtems_fdisk_segment_count_queue (&fd->failed);
 8004f70:	29 61 00 58 	lw r1,(r11+88)                                 <== NOT EXECUTED
 8004f74:	fb ff f9 5c 	calli 80034e4 <rtems_fdisk_segment_count_queue.clone.1><== NOT EXECUTED
 8004f78:	2b 82 00 60 	lw r2,(sp+96)                                  <== NOT EXECUTED
  data->page_count    = 0;                                            
  data->pages_desc    = 0;                                            
  data->pages_active  = 0;                                            
  data->pages_used    = 0;                                            
  data->pages_bad     = 0;                                            
  data->seg_erases    = 0;                                            
 8004f7c:	34 05 00 00 	mvi r5,0                                       <== NOT EXECUTED
                                                                      
  for (i = 0; i < fd->device_count; i++)                              
 8004f80:	34 04 00 00 	mvi r4,0                                       <== NOT EXECUTED
    if (fd->blocks[i].segment)                                        
      data->blocks_used++;                                            
                                                                      
  data->segs_available = rtems_fdisk_segment_count_queue (&fd->available);
  data->segs_used      = rtems_fdisk_segment_count_queue (&fd->used); 
  data->segs_failed    = rtems_fdisk_segment_count_queue (&fd->failed);
 8004f84:	58 41 00 24 	sw (r2+36),r1                                  <== NOT EXECUTED
                                                                      
  data->segment_count = 0;                                            
 8004f88:	58 40 00 10 	sw (r2+16),r0                                  <== NOT EXECUTED
  data->page_count    = 0;                                            
 8004f8c:	58 40 00 14 	sw (r2+20),r0                                  <== NOT EXECUTED
  data->pages_desc    = 0;                                            
 8004f90:	58 40 00 2c 	sw (r2+44),r0                                  <== NOT EXECUTED
  data->pages_active  = 0;                                            
 8004f94:	58 40 00 30 	sw (r2+48),r0                                  <== NOT EXECUTED
  data->pages_used    = 0;                                            
 8004f98:	58 40 00 34 	sw (r2+52),r0                                  <== NOT EXECUTED
  data->pages_bad     = 0;                                            
 8004f9c:	58 40 00 38 	sw (r2+56),r0                                  <== NOT EXECUTED
  data->seg_erases    = 0;                                            
 8004fa0:	58 40 00 28 	sw (r2+40),r0                                  <== NOT EXECUTED
 8004fa4:	b8 40 08 00 	mv r1,r2                                       <== NOT EXECUTED
 8004fa8:	e0 00 00 29 	bi 800504c <rtems_fdisk_ioctl+0xc78>           <== NOT EXECUTED
                                                                      
  for (i = 0; i < fd->device_count; i++)                              
  {                                                                   
    data->segment_count += fd->devices[i].segment_count;              
 8004fac:	29 67 00 2c 	lw r7,(r11+44)                                 <== NOT EXECUTED
 8004fb0:	28 22 00 10 	lw r2,(r1+16)                                  <== NOT EXECUTED
 8004fb4:	34 06 00 00 	mvi r6,0                                       <== NOT EXECUTED
 8004fb8:	b4 e5 38 00 	add r7,r7,r5                                   <== NOT EXECUTED
 8004fbc:	28 e8 00 04 	lw r8,(r7+4)                                   <== NOT EXECUTED
                                                                      
    for (j = 0; j < fd->devices[i].segment_count; j++)                
 8004fc0:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
  data->pages_bad     = 0;                                            
  data->seg_erases    = 0;                                            
                                                                      
  for (i = 0; i < fd->device_count; i++)                              
  {                                                                   
    data->segment_count += fd->devices[i].segment_count;              
 8004fc4:	b4 48 10 00 	add r2,r2,r8                                   <== NOT EXECUTED
 8004fc8:	58 22 00 10 	sw (r1+16),r2                                  <== NOT EXECUTED
 8004fcc:	e0 00 00 1d 	bi 8005040 <rtems_fdisk_ioctl+0xc6c>           <== NOT EXECUTED
                                                                      
    for (j = 0; j < fd->devices[i].segment_count; j++)                
    {                                                                 
      rtems_fdisk_segment_ctl* sc = &fd->devices[i].segments[j];      
 8004fd0:	28 e2 00 00 	lw r2,(r7+0)                                   <== NOT EXECUTED
                                                                      
      data->page_count   += sc->pages;                                
 8004fd4:	28 2a 00 14 	lw r10,(r1+20)                                 <== NOT EXECUTED
                                                                      
  for (i = 0; i < fd->device_count; i++)                              
  {                                                                   
    data->segment_count += fd->devices[i].segment_count;              
                                                                      
    for (j = 0; j < fd->devices[i].segment_count; j++)                
 8004fd8:	34 63 00 01 	addi r3,r3,1                                   <== NOT EXECUTED
    {                                                                 
      rtems_fdisk_segment_ctl* sc = &fd->devices[i].segments[j];      
 8004fdc:	b4 46 10 00 	add r2,r2,r6                                   <== NOT EXECUTED
                                                                      
      data->page_count   += sc->pages;                                
 8004fe0:	28 49 00 14 	lw r9,(r2+20)                                  <== NOT EXECUTED
                                                                      
  for (i = 0; i < fd->device_count; i++)                              
  {                                                                   
    data->segment_count += fd->devices[i].segment_count;              
                                                                      
    for (j = 0; j < fd->devices[i].segment_count; j++)                
 8004fe4:	34 c6 00 30 	addi r6,r6,48                                  <== NOT EXECUTED
    {                                                                 
      rtems_fdisk_segment_ctl* sc = &fd->devices[i].segments[j];      
                                                                      
      data->page_count   += sc->pages;                                
 8004fe8:	b5 49 48 00 	add r9,r10,r9                                  <== NOT EXECUTED
 8004fec:	58 29 00 14 	sw (r1+20),r9                                  <== NOT EXECUTED
      data->pages_desc   += sc->pages_desc;                           
 8004ff0:	28 2a 00 2c 	lw r10,(r1+44)                                 <== NOT EXECUTED
 8004ff4:	28 49 00 18 	lw r9,(r2+24)                                  <== NOT EXECUTED
 8004ff8:	b5 49 48 00 	add r9,r10,r9                                  <== NOT EXECUTED
 8004ffc:	58 29 00 2c 	sw (r1+44),r9                                  <== NOT EXECUTED
      data->pages_active += sc->pages_active;                         
 8005000:	28 2a 00 30 	lw r10,(r1+48)                                 <== NOT EXECUTED
 8005004:	28 49 00 1c 	lw r9,(r2+28)                                  <== NOT EXECUTED
 8005008:	b5 49 48 00 	add r9,r10,r9                                  <== NOT EXECUTED
 800500c:	58 29 00 30 	sw (r1+48),r9                                  <== NOT EXECUTED
      data->pages_used   += sc->pages_used;                           
 8005010:	28 2a 00 34 	lw r10,(r1+52)                                 <== NOT EXECUTED
 8005014:	28 49 00 20 	lw r9,(r2+32)                                  <== NOT EXECUTED
 8005018:	b5 49 48 00 	add r9,r10,r9                                  <== NOT EXECUTED
 800501c:	58 29 00 34 	sw (r1+52),r9                                  <== NOT EXECUTED
      data->pages_bad    += sc->pages_bad;                            
 8005020:	28 2a 00 38 	lw r10,(r1+56)                                 <== NOT EXECUTED
 8005024:	28 49 00 24 	lw r9,(r2+36)                                  <== NOT EXECUTED
      data->seg_erases   += sc->erased;                               
 8005028:	28 42 00 2c 	lw r2,(r2+44)                                  <== NOT EXECUTED
                                                                      
      data->page_count   += sc->pages;                                
      data->pages_desc   += sc->pages_desc;                           
      data->pages_active += sc->pages_active;                         
      data->pages_used   += sc->pages_used;                           
      data->pages_bad    += sc->pages_bad;                            
 800502c:	b5 49 48 00 	add r9,r10,r9                                  <== NOT EXECUTED
 8005030:	58 29 00 38 	sw (r1+56),r9                                  <== NOT EXECUTED
      data->seg_erases   += sc->erased;                               
 8005034:	28 29 00 28 	lw r9,(r1+40)                                  <== NOT EXECUTED
 8005038:	b5 22 10 00 	add r2,r9,r2                                   <== NOT EXECUTED
 800503c:	58 22 00 28 	sw (r1+40),r2                                  <== NOT EXECUTED
                                                                      
  for (i = 0; i < fd->device_count; i++)                              
  {                                                                   
    data->segment_count += fd->devices[i].segment_count;              
                                                                      
    for (j = 0; j < fd->devices[i].segment_count; j++)                
 8005040:	55 03 ff e4 	bgu r8,r3,8004fd0 <rtems_fdisk_ioctl+0xbfc>    <== NOT EXECUTED
  data->pages_active  = 0;                                            
  data->pages_used    = 0;                                            
  data->pages_bad     = 0;                                            
  data->seg_erases    = 0;                                            
                                                                      
  for (i = 0; i < fd->device_count; i++)                              
 8005044:	34 84 00 01 	addi r4,r4,1                                   <== NOT EXECUTED
 8005048:	34 a5 00 0c 	addi r5,r5,12                                  <== NOT EXECUTED
 800504c:	55 84 ff d8 	bgu r12,r4,8004fac <rtems_fdisk_ioctl+0xbd8>   <== NOT EXECUTED
      data->pages_bad    += sc->pages_bad;                            
      data->seg_erases   += sc->erased;                               
    }                                                                 
  }                                                                   
                                                                      
  data->info_level = fd->info_level;                                  
 8005050:	29 62 00 6c 	lw r2,(r11+108)                                <== NOT EXECUTED
 8005054:	2b 83 00 60 	lw r3,(sp+96)                                  <== NOT EXECUTED
 8005058:	58 62 00 3c 	sw (r3+60),r2                                  <== NOT EXECUTED
      case RTEMS_FDISK_IOCTL_ERASE_USED:                              
        errno = rtems_fdisk_erase_used (&rtems_flashdisks[minor]);    
        break;                                                        
                                                                      
      case RTEMS_FDISK_IOCTL_MONITORING:                              
        errno = rtems_fdisk_monitoring_data (&rtems_flashdisks[minor],
 800505c:	59 a0 00 00 	sw (r13+0),r0                                  <== NOT EXECUTED
                                             (rtems_fdisk_monitor_data*) argp);
        break;                                                        
 8005060:	e0 00 00 fd 	bi 8005454 <rtems_fdisk_ioctl+0x1080>          <== NOT EXECUTED
                                                                      
      case RTEMS_FDISK_IOCTL_INFO_LEVEL:                              
        rtems_flashdisks[minor].info_level = (uintptr_t) argp;        
 8005064:	29 62 00 00 	lw r2,(r11+0)                                  <== NOT EXECUTED
 8005068:	2b 81 00 64 	lw r1,(sp+100)                                 <== NOT EXECUTED
 800506c:	2b 83 00 60 	lw r3,(sp+96)                                  <== NOT EXECUTED
 8005070:	b4 41 10 00 	add r2,r2,r1                                   <== NOT EXECUTED
 8005074:	58 43 00 6c 	sw (r2+108),r3                                 <== NOT EXECUTED
        break;                                                        
 8005078:	e0 00 00 f7 	bi 8005454 <rtems_fdisk_ioctl+0x1080>          <== NOT EXECUTED
                                                                      
      case RTEMS_FDISK_IOCTL_PRINT_STATUS:                            
        errno = rtems_fdisk_print_status (&rtems_flashdisks[minor]);  
 800507c:	f8 00 6a 66 	calli 801fa14 <__errno>                        
 8005080:	5b 81 00 60 	sw (sp+96),r1                                  
 8005084:	29 6b 00 00 	lw r11,(r11+0)                                 
 8005088:	2b 81 00 64 	lw r1,(sp+100)                                 
 800508c:	b5 61 58 00 	add r11,r11,r1                                 
 */                                                                   
static int                                                            
rtems_fdisk_print_status (rtems_flashdisk* fd)                        
{                                                                     
#if RTEMS_FDISK_TRACE                                                 
  uint32_t current_info_level = fd->info_level;                       
 8005090:	29 62 00 6c 	lw r2,(r11+108)                                
  uint32_t count;                                                     
  uint32_t device;                                                    
                                                                      
  fd->info_level = 3;                                                 
                                                                      
  rtems_fdisk_printf (fd,                                             
 8005094:	29 64 00 04 	lw r4,(r11+4)                                  
 8005098:	29 63 00 00 	lw r3,(r11+0)                                  
 */                                                                   
static int                                                            
rtems_fdisk_print_status (rtems_flashdisk* fd)                        
{                                                                     
#if RTEMS_FDISK_TRACE                                                 
  uint32_t current_info_level = fd->info_level;                       
 800509c:	5b 82 00 68 	sw (sp+104),r2                                 
  uint32_t total;                                                     
  uint32_t count;                                                     
  uint32_t device;                                                    
                                                                      
  fd->info_level = 3;                                                 
 80050a0:	34 02 00 03 	mvi r2,3                                       
 80050a4:	59 62 00 6c 	sw (r11+108),r2                                
                                                                      
  rtems_fdisk_printf (fd,                                             
 80050a8:	78 02 08 03 	mvhi r2,0x803                                  
 80050ac:	38 42 44 c4 	ori r2,r2,0x44c4                               
 80050b0:	b9 60 08 00 	mv r1,r11                                      
 80050b4:	fb ff f7 64 	calli 8002e44 <rtems_fdisk_printf>             
                      "Flash Disk Driver Status : %d.%d", fd->major, fd->minor);
                                                                      
  rtems_fdisk_printf (fd, "Block count\t%d", fd->block_count);        
 80050b8:	29 63 00 1c 	lw r3,(r11+28)                                 
 80050bc:	78 02 08 03 	mvhi r2,0x803                                  
 80050c0:	38 42 44 e8 	ori r2,r2,0x44e8                               
 80050c4:	b9 60 08 00 	mv r1,r11                                      
 80050c8:	fb ff f7 5f 	calli 8002e44 <rtems_fdisk_printf>             
  rtems_fdisk_printf (fd, "Unavail blocks\t%d", fd->unavail_blocks);  
 80050cc:	29 63 00 20 	lw r3,(r11+32)                                 
 80050d0:	78 02 08 03 	mvhi r2,0x803                                  
 80050d4:	38 42 44 f8 	ori r2,r2,0x44f8                               
 80050d8:	b9 60 08 00 	mv r1,r11                                      
 80050dc:	fb ff f7 5a 	calli 8002e44 <rtems_fdisk_printf>             
  rtems_fdisk_printf (fd, "Starvation threshold\t%d", fd->starvation_threshold);
 80050e0:	29 63 00 24 	lw r3,(r11+36)                                 
 80050e4:	78 02 08 03 	mvhi r2,0x803                                  
 80050e8:	38 42 45 0c 	ori r2,r2,0x450c                               
 80050ec:	b9 60 08 00 	mv r1,r11                                      
 80050f0:	fb ff f7 55 	calli 8002e44 <rtems_fdisk_printf>             
  rtems_fdisk_printf (fd, "Starvations\t%d", fd->starvations);        
 80050f4:	29 63 00 70 	lw r3,(r11+112)                                
 80050f8:	78 02 08 03 	mvhi r2,0x803                                  
 80050fc:	38 42 45 24 	ori r2,r2,0x4524                               
 8005100:	b9 60 08 00 	mv r1,r11                                      
 8005104:	fb ff f7 50 	calli 8002e44 <rtems_fdisk_printf>             
  count = rtems_fdisk_segment_count_queue (&fd->available);           
 8005108:	29 61 00 34 	lw r1,(r11+52)                                 
 800510c:	fb ff f8 f6 	calli 80034e4 <rtems_fdisk_segment_count_queue.clone.1>
  total = count;                                                      
  rtems_fdisk_printf (fd, "Available queue\t%ld (%ld)",               
 8005110:	29 64 00 3c 	lw r4,(r11+60)                                 
                                                                      
  rtems_fdisk_printf (fd, "Block count\t%d", fd->block_count);        
  rtems_fdisk_printf (fd, "Unavail blocks\t%d", fd->unavail_blocks);  
  rtems_fdisk_printf (fd, "Starvation threshold\t%d", fd->starvation_threshold);
  rtems_fdisk_printf (fd, "Starvations\t%d", fd->starvations);        
  count = rtems_fdisk_segment_count_queue (&fd->available);           
 8005114:	b8 20 60 00 	mv r12,r1                                      
  total = count;                                                      
  rtems_fdisk_printf (fd, "Available queue\t%ld (%ld)",               
 8005118:	78 02 08 03 	mvhi r2,0x803                                  
 800511c:	b9 80 18 00 	mv r3,r12                                      
 8005120:	38 42 45 34 	ori r2,r2,0x4534                               
 8005124:	b9 60 08 00 	mv r1,r11                                      
 8005128:	fb ff f7 47 	calli 8002e44 <rtems_fdisk_printf>             
                      count, rtems_fdisk_segment_queue_count (&fd->available));
  count = rtems_fdisk_segment_count_queue (&fd->used);                
 800512c:	29 61 00 40 	lw r1,(r11+64)                                 
 8005130:	fb ff f8 ed 	calli 80034e4 <rtems_fdisk_segment_count_queue.clone.1>
  total += count;                                                     
  rtems_fdisk_printf (fd, "Used queue\t%ld (%ld)",                    
 8005134:	29 64 00 48 	lw r4,(r11+72)                                 
 8005138:	78 02 08 03 	mvhi r2,0x803                                  
  rtems_fdisk_printf (fd, "Starvations\t%d", fd->starvations);        
  count = rtems_fdisk_segment_count_queue (&fd->available);           
  total = count;                                                      
  rtems_fdisk_printf (fd, "Available queue\t%ld (%ld)",               
                      count, rtems_fdisk_segment_queue_count (&fd->available));
  count = rtems_fdisk_segment_count_queue (&fd->used);                
 800513c:	b8 20 18 00 	mv r3,r1                                       
  total += count;                                                     
  rtems_fdisk_printf (fd, "Used queue\t%ld (%ld)",                    
 8005140:	38 42 45 50 	ori r2,r2,0x4550                               
  count = rtems_fdisk_segment_count_queue (&fd->available);           
  total = count;                                                      
  rtems_fdisk_printf (fd, "Available queue\t%ld (%ld)",               
                      count, rtems_fdisk_segment_queue_count (&fd->available));
  count = rtems_fdisk_segment_count_queue (&fd->used);                
  total += count;                                                     
 8005144:	b4 2c 60 00 	add r12,r1,r12                                 
  rtems_fdisk_printf (fd, "Used queue\t%ld (%ld)",                    
 8005148:	b9 60 08 00 	mv r1,r11                                      
 800514c:	fb ff f7 3e 	calli 8002e44 <rtems_fdisk_printf>             
                      count, rtems_fdisk_segment_queue_count (&fd->used));
  count = rtems_fdisk_segment_count_queue (&fd->erase);               
 8005150:	29 61 00 4c 	lw r1,(r11+76)                                 
 8005154:	fb ff f8 e4 	calli 80034e4 <rtems_fdisk_segment_count_queue.clone.1>
  total += count;                                                     
  rtems_fdisk_printf (fd, "Erase queue\t%ld (%ld)",                   
 8005158:	29 64 00 54 	lw r4,(r11+84)                                 
 800515c:	78 02 08 03 	mvhi r2,0x803                                  
                      count, rtems_fdisk_segment_queue_count (&fd->available));
  count = rtems_fdisk_segment_count_queue (&fd->used);                
  total += count;                                                     
  rtems_fdisk_printf (fd, "Used queue\t%ld (%ld)",                    
                      count, rtems_fdisk_segment_queue_count (&fd->used));
  count = rtems_fdisk_segment_count_queue (&fd->erase);               
 8005160:	b8 20 18 00 	mv r3,r1                                       
  total += count;                                                     
  rtems_fdisk_printf (fd, "Erase queue\t%ld (%ld)",                   
 8005164:	38 42 45 68 	ori r2,r2,0x4568                               
  count = rtems_fdisk_segment_count_queue (&fd->used);                
  total += count;                                                     
  rtems_fdisk_printf (fd, "Used queue\t%ld (%ld)",                    
                      count, rtems_fdisk_segment_queue_count (&fd->used));
  count = rtems_fdisk_segment_count_queue (&fd->erase);               
  total += count;                                                     
 8005168:	b5 81 60 00 	add r12,r12,r1                                 
  rtems_fdisk_printf (fd, "Erase queue\t%ld (%ld)",                   
 800516c:	b9 60 08 00 	mv r1,r11                                      
 8005170:	fb ff f7 35 	calli 8002e44 <rtems_fdisk_printf>             
                      count, rtems_fdisk_segment_queue_count (&fd->erase));
  count = rtems_fdisk_segment_count_queue (&fd->failed);              
 8005174:	29 61 00 58 	lw r1,(r11+88)                                 
 8005178:	fb ff f8 db 	calli 80034e4 <rtems_fdisk_segment_count_queue.clone.1>
 800517c:	b8 20 20 00 	mv r4,r1                                       
  total += count;                                                     
  rtems_fdisk_printf (fd, "Failed queue\t%ld (%ld)",                  
 8005180:	b8 80 18 00 	mv r3,r4                                       
 8005184:	29 64 00 60 	lw r4,(r11+96)                                 
 8005188:	78 02 08 03 	mvhi r2,0x803                                  
 800518c:	38 42 45 80 	ori r2,r2,0x4580                               
  count = rtems_fdisk_segment_count_queue (&fd->erase);               
  total += count;                                                     
  rtems_fdisk_printf (fd, "Erase queue\t%ld (%ld)",                   
                      count, rtems_fdisk_segment_queue_count (&fd->erase));
  count = rtems_fdisk_segment_count_queue (&fd->failed);              
  total += count;                                                     
 8005190:	b5 81 60 00 	add r12,r12,r1                                 
  rtems_fdisk_printf (fd, "Failed queue\t%ld (%ld)",                  
 8005194:	b9 60 08 00 	mv r1,r11                                      
 8005198:	fb ff f7 2b 	calli 8002e44 <rtems_fdisk_printf>             
                      count, rtems_fdisk_segment_queue_count (&fd->failed));
                                                                      
  count = 0;                                                          
  for (device = 0; device < fd->device_count; device++)               
 800519c:	29 63 00 30 	lw r3,(r11+48)                                 
 80051a0:	34 05 00 00 	mvi r5,0                                       
 80051a4:	34 02 00 00 	mvi r2,0                                       
  count = rtems_fdisk_segment_count_queue (&fd->failed);              
  total += count;                                                     
  rtems_fdisk_printf (fd, "Failed queue\t%ld (%ld)",                  
                      count, rtems_fdisk_segment_queue_count (&fd->failed));
                                                                      
  count = 0;                                                          
 80051a8:	34 04 00 00 	mvi r4,0                                       
 80051ac:	e0 00 00 07 	bi 80051c8 <rtems_fdisk_ioctl+0xdf4>           
  for (device = 0; device < fd->device_count; device++)               
    count += fd->devices[device].segment_count;                       
 80051b0:	29 61 00 2c 	lw r1,(r11+44)                                 
  total += count;                                                     
  rtems_fdisk_printf (fd, "Failed queue\t%ld (%ld)",                  
                      count, rtems_fdisk_segment_queue_count (&fd->failed));
                                                                      
  count = 0;                                                          
  for (device = 0; device < fd->device_count; device++)               
 80051b4:	34 42 00 01 	addi r2,r2,1                                   
    count += fd->devices[device].segment_count;                       
 80051b8:	b4 25 08 00 	add r1,r1,r5                                   
 80051bc:	28 21 00 04 	lw r1,(r1+4)                                   
  total += count;                                                     
  rtems_fdisk_printf (fd, "Failed queue\t%ld (%ld)",                  
                      count, rtems_fdisk_segment_queue_count (&fd->failed));
                                                                      
  count = 0;                                                          
  for (device = 0; device < fd->device_count; device++)               
 80051c0:	34 a5 00 0c 	addi r5,r5,12                                  
    count += fd->devices[device].segment_count;                       
 80051c4:	b4 81 20 00 	add r4,r4,r1                                   
  total += count;                                                     
  rtems_fdisk_printf (fd, "Failed queue\t%ld (%ld)",                  
                      count, rtems_fdisk_segment_queue_count (&fd->failed));
                                                                      
  count = 0;                                                          
  for (device = 0; device < fd->device_count; device++)               
 80051c8:	54 62 ff fa 	bgu r3,r2,80051b0 <rtems_fdisk_ioctl+0xddc>    
    count += fd->devices[device].segment_count;                       
                                                                      
  rtems_fdisk_printf (fd, "Queue total\t%ld of %ld, %s", total, count,
 80051cc:	78 05 08 03 	mvhi r5,0x803                                  
 80051d0:	38 a5 40 a0 	ori r5,r5,0x40a0                               
 80051d4:	5d 84 00 03 	bne r12,r4,80051e0 <rtems_fdisk_ioctl+0xe0c>   <== NEVER TAKEN
 80051d8:	78 05 08 03 	mvhi r5,0x803                                  
 80051dc:	38 a5 40 9c 	ori r5,r5,0x409c                               
 80051e0:	78 02 08 03 	mvhi r2,0x803                                  
 80051e4:	38 42 45 98 	ori r2,r2,0x4598                               
 80051e8:	b9 80 18 00 	mv r3,r12                                      
 80051ec:	b9 60 08 00 	mv r1,r11                                      
 80051f0:	fb ff f7 15 	calli 8002e44 <rtems_fdisk_printf>             
                      total == count ? "ok" : "MISSING");             
                                                                      
  rtems_fdisk_printf (fd, "Device count\t%d", fd->device_count);      
 80051f4:	29 63 00 30 	lw r3,(r11+48)                                 
 80051f8:	78 02 08 03 	mvhi r2,0x803                                  
                                                                      
        for (block = 0; block < fd->block_count; block++)             
        {                                                             
          if ((fd->blocks[block].segment == sc) &&                    
              (fd->blocks[block].page == page) && !is_active)         
            rtems_fdisk_printf (fd,                                   
 80051fc:	78 13 08 03 	mvhi r19,0x803                                 
      {                                                               
        if (fd->blocks[block].segment == sc)                          
          count++;                                                    
      }                                                               
                                                                      
      rtems_fdisk_printf (fd, "  %3ld %s p:%3ld a:%3ld/%3ld" \        
 8005200:	78 12 08 03 	mvhi r18,0x803                                 
    count += fd->devices[device].segment_count;                       
                                                                      
  rtems_fdisk_printf (fd, "Queue total\t%ld of %ld, %s", total, count,
                      total == count ? "ok" : "MISSING");             
                                                                      
  rtems_fdisk_printf (fd, "Device count\t%d", fd->device_count);      
 8005204:	b9 60 08 00 	mv r1,r11                                      
 8005208:	38 42 45 b4 	ori r2,r2,0x45b4                               
  for (device = 0; device < fd->device_count; device++)               
  {                                                                   
    uint32_t block;                                                   
    uint32_t seg;                                                     
                                                                      
    rtems_fdisk_printf (fd, " Device\t\t%ld", device);                
 800520c:	78 15 08 03 	mvhi r21,0x803                                 
    rtems_fdisk_printf (fd, "  Segment count\t%ld",                   
 8005210:	78 14 08 03 	mvhi r20,0x803                                 
                                                                      
        for (block = 0; block < fd->block_count; block++)             
        {                                                             
          if ((fd->blocks[block].segment == sc) &&                    
              (fd->blocks[block].page == page) && !is_active)         
            rtems_fdisk_printf (fd,                                   
 8005214:	3a 73 45 e8 	ori r19,r19,0x45e8                             
      {                                                               
        if (fd->blocks[block].segment == sc)                          
          count++;                                                    
      }                                                               
                                                                      
      rtems_fdisk_printf (fd, "  %3ld %s p:%3ld a:%3ld/%3ld" \        
 8005218:	3a 52 46 18 	ori r18,r18,0x4618                             
    count += fd->devices[device].segment_count;                       
                                                                      
  rtems_fdisk_printf (fd, "Queue total\t%ld of %ld, %s", total, count,
                      total == count ? "ok" : "MISSING");             
                                                                      
  rtems_fdisk_printf (fd, "Device count\t%d", fd->device_count);      
 800521c:	fb ff f7 0a 	calli 8002e44 <rtems_fdisk_printf>             
 8005220:	34 0f 00 00 	mvi r15,0                                      
                                                                      
  for (device = 0; device < fd->device_count; device++)               
 8005224:	34 0e 00 00 	mvi r14,0                                      
  {                                                                   
    uint32_t block;                                                   
    uint32_t seg;                                                     
                                                                      
    rtems_fdisk_printf (fd, " Device\t\t%ld", device);                
 8005228:	3a b5 45 c4 	ori r21,r21,0x45c4                             
    rtems_fdisk_printf (fd, "  Segment count\t%ld",                   
 800522c:	3a 94 45 d4 	ori r20,r20,0x45d4                             
 8005230:	5b 93 00 6c 	sw (sp+108),r19                                
 8005234:	5b 92 00 70 	sw (sp+112),r18                                
 8005238:	e0 00 00 69 	bi 80053dc <rtems_fdisk_ioctl+0x1008>          
  for (device = 0; device < fd->device_count; device++)               
  {                                                                   
    uint32_t block;                                                   
    uint32_t seg;                                                     
                                                                      
    rtems_fdisk_printf (fd, " Device\t\t%ld", device);                
 800523c:	ba a0 10 00 	mv r2,r21                                      
 8005240:	b9 c0 18 00 	mv r3,r14                                      
 8005244:	b9 60 08 00 	mv r1,r11                                      
 8005248:	fb ff f6 ff 	calli 8002e44 <rtems_fdisk_printf>             
    rtems_fdisk_printf (fd, "  Segment count\t%ld",                   
 800524c:	29 63 00 2c 	lw r3,(r11+44)                                 
 8005250:	b9 60 08 00 	mv r1,r11                                      
 8005254:	ba 80 10 00 	mv r2,r20                                      
 8005258:	b4 6f 18 00 	add r3,r3,r15                                  
 800525c:	28 63 00 04 	lw r3,(r3+4)                                   
 8005260:	34 16 00 00 	mvi r22,0                                      
                        fd->devices[device].segment_count);           
                                                                      
    for (seg = 0; seg < fd->devices[device].segment_count; seg++)     
 8005264:	34 10 00 00 	mvi r16,0                                      
  {                                                                   
    uint32_t block;                                                   
    uint32_t seg;                                                     
                                                                      
    rtems_fdisk_printf (fd, " Device\t\t%ld", device);                
    rtems_fdisk_printf (fd, "  Segment count\t%ld",                   
 8005268:	fb ff f6 f7 	calli 8002e44 <rtems_fdisk_printf>             
 800526c:	e0 00 00 56 	bi 80053c4 <rtems_fdisk_ioctl+0xff0>           
                        fd->devices[device].segment_count);           
                                                                      
    for (seg = 0; seg < fd->devices[device].segment_count; seg++)     
    {                                                                 
      rtems_fdisk_segment_ctl* sc = &fd->devices[device].segments[seg];
 8005270:	28 2c 00 00 	lw r12,(r1+0)                                  
      uint32_t                 active = 0;                            
      uint32_t                 used = 0;                              
      bool                     is_active = false;                     
      char                     queues[5];                             
                                                                      
      rtems_fdisk_queue_status (fd, sc, queues);                      
 8005274:	37 83 00 9c 	addi r3,sp,156                                 
 8005278:	b9 60 08 00 	mv r1,r11                                      
    rtems_fdisk_printf (fd, "  Segment count\t%ld",                   
                        fd->devices[device].segment_count);           
                                                                      
    for (seg = 0; seg < fd->devices[device].segment_count; seg++)     
    {                                                                 
      rtems_fdisk_segment_ctl* sc = &fd->devices[device].segments[seg];
 800527c:	b5 96 60 00 	add r12,r12,r22                                
      uint32_t                 active = 0;                            
      uint32_t                 used = 0;                              
      bool                     is_active = false;                     
      char                     queues[5];                             
                                                                      
      rtems_fdisk_queue_status (fd, sc, queues);                      
 8005280:	b9 80 10 00 	mv r2,r12                                      
 8005284:	fb ff f8 a6 	calli 800351c <rtems_fdisk_queue_status>       
      rtems_fdisk_segment_ctl* sc = &fd->devices[device].segments[seg];
      uint32_t                 page;                                  
      uint32_t                 erased = 0;                            
      uint32_t                 active = 0;                            
      uint32_t                 used = 0;                              
      bool                     is_active = false;                     
 8005288:	34 13 00 00 	mvi r19,0                                      
      char                     queues[5];                             
                                                                      
      rtems_fdisk_queue_status (fd, sc, queues);                      
 800528c:	34 1b 00 00 	mvi fp,0                                       
    {                                                                 
      rtems_fdisk_segment_ctl* sc = &fd->devices[device].segments[seg];
      uint32_t                 page;                                  
      uint32_t                 erased = 0;                            
      uint32_t                 active = 0;                            
      uint32_t                 used = 0;                              
 8005290:	34 19 00 00 	mvi r25,0                                      
    for (seg = 0; seg < fd->devices[device].segment_count; seg++)     
    {                                                                 
      rtems_fdisk_segment_ctl* sc = &fd->devices[device].segments[seg];
      uint32_t                 page;                                  
      uint32_t                 erased = 0;                            
      uint32_t                 active = 0;                            
 8005294:	34 17 00 00 	mvi r23,0                                      
                                                                      
    for (seg = 0; seg < fd->devices[device].segment_count; seg++)     
    {                                                                 
      rtems_fdisk_segment_ctl* sc = &fd->devices[device].segments[seg];
      uint32_t                 page;                                  
      uint32_t                 erased = 0;                            
 8005298:	34 18 00 00 	mvi r24,0                                      
      bool                     is_active = false;                     
      char                     queues[5];                             
                                                                      
      rtems_fdisk_queue_status (fd, sc, queues);                      
                                                                      
      for (page = 0; page < sc->pages; page++)                        
 800529c:	34 0d 00 00 	mvi r13,0                                      
 80052a0:	e0 00 00 27 	bi 800533c <rtems_fdisk_ioctl+0xf68>           
      {                                                               
        if (rtems_fdisk_page_desc_erased (&sc->page_descriptors[page]))
 80052a4:	29 91 00 10 	lw r17,(r12+16)                                
 80052a8:	b6 3b 88 00 	add r17,r17,fp                                 
 80052ac:	ba 20 08 00 	mv r1,r17                                      
 80052b0:	fb ff f6 92 	calli 8002cf8 <rtems_fdisk_page_desc_erased>   
 80052b4:	44 20 00 03 	be r1,r0,80052c0 <rtems_fdisk_ioctl+0xeec>     
          erased++;                                                   
 80052b8:	37 18 00 01 	addi r24,r24,1                                 
 80052bc:	e0 00 00 0b 	bi 80052e8 <rtems_fdisk_ioctl+0xf14>           
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 80052c0:	2e 24 00 02 	lhu r4,(r17+2)                                 
                                                                      
      for (page = 0; page < sc->pages; page++)                        
      {                                                               
        if (rtems_fdisk_page_desc_erased (&sc->page_descriptors[page]))
          erased++;                                                   
        else if (rtems_fdisk_page_desc_flags_set (&sc->page_descriptors[page],
 80052c4:	20 83 00 01 	andi r3,r4,0x1                                 
 80052c8:	5c 61 00 08 	bne r3,r1,80052e8 <rtems_fdisk_ioctl+0xf14>    <== NEVER TAKEN
                                                  RTEMS_FDISK_PAGE_ACTIVE))
        {                                                             
          if (rtems_fdisk_page_desc_flags_set (&sc->page_descriptors[page],
 80052cc:	20 84 00 02 	andi r4,r4,0x2                                 
 80052d0:	20 84 ff ff 	andi r4,r4,0xffff                              
 80052d4:	5c 83 00 03 	bne r4,r3,80052e0 <rtems_fdisk_ioctl+0xf0c>    
                                               RTEMS_FDISK_PAGE_USED))
            used++;                                                   
 80052d8:	37 39 00 01 	addi r25,r25,1                                 
 80052dc:	e0 00 00 03 	bi 80052e8 <rtems_fdisk_ioctl+0xf14>           
          else                                                        
          {                                                           
            active++;                                                 
 80052e0:	36 f7 00 01 	addi r23,r23,1                                 
            is_active = true;                                         
 80052e4:	34 13 00 01 	mvi r19,1                                      
 80052e8:	34 12 00 00 	mvi r18,0                                      
          }                                                           
        }                                                             
                                                                      
        for (block = 0; block < fd->block_count; block++)             
 80052ec:	34 11 00 00 	mvi r17,0                                      
 80052f0:	e0 00 00 0f 	bi 800532c <rtems_fdisk_ioctl+0xf58>           
        {                                                             
          if ((fd->blocks[block].segment == sc) &&                    
 80052f4:	29 61 00 18 	lw r1,(r11+24)                                 
 80052f8:	b4 32 08 00 	add r1,r1,r18                                  
 80052fc:	28 23 00 00 	lw r3,(r1+0)                                   
 8005300:	5c 6c 00 09 	bne r3,r12,8005324 <rtems_fdisk_ioctl+0xf50>   
 8005304:	28 21 00 04 	lw r1,(r1+4)                                   
 8005308:	5c 2d 00 07 	bne r1,r13,8005324 <rtems_fdisk_ioctl+0xf50>   
              (fd->blocks[block].page == page) && !is_active)         
 800530c:	5e 60 00 06 	bne r19,r0,8005324 <rtems_fdisk_ioctl+0xf50>   <== ALWAYS TAKEN
            rtems_fdisk_printf (fd,                                   
 8005310:	2b 82 00 6c 	lw r2,(sp+108)                                 <== NOT EXECUTED
 8005314:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8005318:	b9 a0 18 00 	mv r3,r13                                      <== NOT EXECUTED
 800531c:	ba 20 20 00 	mv r4,r17                                      <== NOT EXECUTED
 8005320:	fb ff f6 c9 	calli 8002e44 <rtems_fdisk_printf>             <== NOT EXECUTED
            active++;                                                 
            is_active = true;                                         
          }                                                           
        }                                                             
                                                                      
        for (block = 0; block < fd->block_count; block++)             
 8005324:	36 31 00 01 	addi r17,r17,1                                 
 8005328:	36 52 00 08 	addi r18,r18,8                                 
 800532c:	29 61 00 1c 	lw r1,(r11+28)                                 
 8005330:	54 31 ff f1 	bgu r1,r17,80052f4 <rtems_fdisk_ioctl+0xf20>   
      bool                     is_active = false;                     
      char                     queues[5];                             
                                                                      
      rtems_fdisk_queue_status (fd, sc, queues);                      
                                                                      
      for (page = 0; page < sc->pages; page++)                        
 8005334:	35 ad 00 01 	addi r13,r13,1                                 
 8005338:	37 7b 00 08 	addi fp,fp,8                                   
 800533c:	29 85 00 14 	lw r5,(r12+20)                                 
 8005340:	54 ad ff d9 	bgu r5,r13,80052a4 <rtems_fdisk_ioctl+0xed0>   
                                page, block);                         
        }                                                             
      }                                                               
                                                                      
      count = 0;                                                      
      for (block = 0; block < fd->block_count; block++)               
 8005344:	29 66 00 1c 	lw r6,(r11+28)                                 
 8005348:	34 04 00 00 	mvi r4,0                                       
 800534c:	34 03 00 00 	mvi r3,0                                       
 8005350:	34 01 00 00 	mvi r1,0                                       
 8005354:	e0 00 00 08 	bi 8005374 <rtems_fdisk_ioctl+0xfa0>           
      {                                                               
        if (fd->blocks[block].segment == sc)                          
 8005358:	29 67 00 18 	lw r7,(r11+24)                                 
                                page, block);                         
        }                                                             
      }                                                               
                                                                      
      count = 0;                                                      
      for (block = 0; block < fd->block_count; block++)               
 800535c:	34 63 00 01 	addi r3,r3,1                                   
      {                                                               
        if (fd->blocks[block].segment == sc)                          
 8005360:	b4 e4 38 00 	add r7,r7,r4                                   
 8005364:	28 e7 00 00 	lw r7,(r7+0)                                   
                                page, block);                         
        }                                                             
      }                                                               
                                                                      
      count = 0;                                                      
      for (block = 0; block < fd->block_count; block++)               
 8005368:	34 84 00 08 	addi r4,r4,8                                   
      {                                                               
        if (fd->blocks[block].segment == sc)                          
          count++;                                                    
 800536c:	e4 ec 38 00 	cmpe r7,r7,r12                                 
 8005370:	b4 27 08 00 	add r1,r1,r7                                   
                                page, block);                         
        }                                                             
      }                                                               
                                                                      
      count = 0;                                                      
      for (block = 0; block < fd->block_count; block++)               
 8005374:	54 c3 ff f9 	bgu r6,r3,8005358 <rtems_fdisk_ioctl+0xf84>    
      rtems_fdisk_printf (fd, "  %3ld %s p:%3ld a:%3ld/%3ld" \        
                          " u:%3ld/%3ld e:%3ld/%3ld br:%ld",          
                          seg, queues,                                
                          sc->pages, sc->pages_active, active,        
                          sc->pages_used, used, erased,               
                          sc->pages - (sc->pages_active +             
 8005378:	29 86 00 1c 	lw r6,(r12+28)                                 
                                       sc->pages_used + sc->pages_bad),
 800537c:	29 88 00 20 	lw r8,(r12+32)                                 
      {                                                               
        if (fd->blocks[block].segment == sc)                          
          count++;                                                    
      }                                                               
                                                                      
      rtems_fdisk_printf (fd, "  %3ld %s p:%3ld a:%3ld/%3ld" \        
 8005380:	5b 99 00 04 	sw (sp+4),r25                                  
 8005384:	5b 98 00 08 	sw (sp+8),r24                                  
 * @param req IOCTL request code.                                     
 * @param argp IOCTL argument.                                        
 * @retval The IOCTL return value                                     
 */                                                                   
static int                                                            
rtems_fdisk_ioctl (rtems_disk_device *dd, uint32_t req, void* argp)   
 8005388:	29 83 00 24 	lw r3,(r12+36)                                 
      {                                                               
        if (fd->blocks[block].segment == sc)                          
          count++;                                                    
      }                                                               
                                                                      
      rtems_fdisk_printf (fd, "  %3ld %s p:%3ld a:%3ld/%3ld" \        
 800538c:	2b 82 00 70 	lw r2,(sp+112)                                 
 8005390:	5b 81 00 10 	sw (sp+16),r1                                  
 * @param req IOCTL request code.                                     
 * @param argp IOCTL argument.                                        
 * @retval The IOCTL return value                                     
 */                                                                   
static int                                                            
rtems_fdisk_ioctl (rtems_disk_device *dd, uint32_t req, void* argp)   
 8005394:	c8 03 18 00 	sub r3,r0,r3                                   
      rtems_fdisk_printf (fd, "  %3ld %s p:%3ld a:%3ld/%3ld" \        
                          " u:%3ld/%3ld e:%3ld/%3ld br:%ld",          
                          seg, queues,                                
                          sc->pages, sc->pages_active, active,        
                          sc->pages_used, used, erased,               
                          sc->pages - (sc->pages_active +             
 8005398:	c8 66 18 00 	sub r3,r3,r6                                   
                                       sc->pages_used + sc->pages_bad),
 800539c:	c8 68 18 00 	sub r3,r3,r8                                   
      {                                                               
        if (fd->blocks[block].segment == sc)                          
          count++;                                                    
      }                                                               
                                                                      
      rtems_fdisk_printf (fd, "  %3ld %s p:%3ld a:%3ld/%3ld" \        
 80053a0:	b4 65 18 00 	add r3,r3,r5                                   
 80053a4:	5b 83 00 0c 	sw (sp+12),r3                                  
 80053a8:	b9 60 08 00 	mv r1,r11                                      
 80053ac:	ba 00 18 00 	mv r3,r16                                      
 80053b0:	37 84 00 9c 	addi r4,sp,156                                 
 80053b4:	ba e0 38 00 	mv r7,r23                                      
 80053b8:	fb ff f6 a3 	calli 8002e44 <rtems_fdisk_printf>             
                                                                      
    rtems_fdisk_printf (fd, " Device\t\t%ld", device);                
    rtems_fdisk_printf (fd, "  Segment count\t%ld",                   
                        fd->devices[device].segment_count);           
                                                                      
    for (seg = 0; seg < fd->devices[device].segment_count; seg++)     
 80053bc:	36 10 00 01 	addi r16,r16,1                                 
 80053c0:	36 d6 00 30 	addi r22,r22,48                                
 80053c4:	29 61 00 2c 	lw r1,(r11+44)                                 
 80053c8:	b4 2f 08 00 	add r1,r1,r15                                  
 80053cc:	28 23 00 04 	lw r3,(r1+4)                                   
 80053d0:	54 70 ff a8 	bgu r3,r16,8005270 <rtems_fdisk_ioctl+0xe9c>   
  rtems_fdisk_printf (fd, "Queue total\t%ld of %ld, %s", total, count,
                      total == count ? "ok" : "MISSING");             
                                                                      
  rtems_fdisk_printf (fd, "Device count\t%d", fd->device_count);      
                                                                      
  for (device = 0; device < fd->device_count; device++)               
 80053d4:	35 ce 00 01 	addi r14,r14,1                                 
 80053d8:	35 ef 00 0c 	addi r15,r15,12                                
 80053dc:	29 61 00 30 	lw r1,(r11+48)                                 
 80053e0:	54 2e ff 97 	bgu r1,r14,800523c <rtems_fdisk_ioctl+0xe68>   
  }                                                                   
                                                                      
  {                                                                   
    rtems_fdisk_segment_ctl* sc = fd->used.head;                      
    int count = 0;                                                    
    rtems_fdisk_printf (fd, "Used List:");                            
 80053e4:	78 02 08 03 	mvhi r2,0x803                                  
 80053e8:	b9 60 08 00 	mv r1,r11                                      
 80053ec:	38 42 46 54 	ori r2,r2,0x4654                               
    while (sc)                                                        
    {                                                                 
      rtems_fdisk_printf (fd, "  %3d %02d:%03d u:%3ld",               
 80053f0:	78 0d 08 03 	mvhi r13,0x803                                 
                          count);                                     
    }                                                                 
  }                                                                   
                                                                      
  {                                                                   
    rtems_fdisk_segment_ctl* sc = fd->used.head;                      
 80053f4:	29 6c 00 40 	lw r12,(r11+64)                                
    int count = 0;                                                    
 80053f8:	34 0e 00 00 	mvi r14,0                                      
    rtems_fdisk_printf (fd, "Used List:");                            
 80053fc:	fb ff f6 92 	calli 8002e44 <rtems_fdisk_printf>             
    while (sc)                                                        
    {                                                                 
      rtems_fdisk_printf (fd, "  %3d %02d:%03d u:%3ld",               
 8005400:	39 ad 46 60 	ori r13,r13,0x4660                             
 8005404:	e0 00 00 0a 	bi 800542c <rtems_fdisk_ioctl+0x1058>          
 8005408:	29 84 00 08 	lw r4,(r12+8)                                  
 800540c:	29 85 00 0c 	lw r5,(r12+12)                                 
 8005410:	29 86 00 20 	lw r6,(r12+32)                                 
 8005414:	b9 c0 18 00 	mv r3,r14                                      
 8005418:	b9 60 08 00 	mv r1,r11                                      
 800541c:	b9 a0 10 00 	mv r2,r13                                      
 8005420:	fb ff f6 89 	calli 8002e44 <rtems_fdisk_printf>             
                          count, sc->device, sc->segment, sc->pages_used);
      sc = sc->next;                                                  
 8005424:	29 8c 00 00 	lw r12,(r12+0)                                 
      count++;                                                        
 8005428:	35 ce 00 01 	addi r14,r14,1                                 
                                                                      
  {                                                                   
    rtems_fdisk_segment_ctl* sc = fd->used.head;                      
    int count = 0;                                                    
    rtems_fdisk_printf (fd, "Used List:");                            
    while (sc)                                                        
 800542c:	5d 80 ff f7 	bne r12,r0,8005408 <rtems_fdisk_ioctl+0x1034>  
                          count, sc->device, sc->segment, sc->pages_used);
      sc = sc->next;                                                  
      count++;                                                        
    }                                                                 
  }                                                                   
  fd->info_level = current_info_level;                                
 8005430:	2b 83 00 68 	lw r3,(sp+104)                                 
      case RTEMS_FDISK_IOCTL_INFO_LEVEL:                              
        rtems_flashdisks[minor].info_level = (uintptr_t) argp;        
        break;                                                        
                                                                      
      case RTEMS_FDISK_IOCTL_PRINT_STATUS:                            
        errno = rtems_fdisk_print_status (&rtems_flashdisks[minor]);  
 8005434:	2b 81 00 60 	lw r1,(sp+96)                                  
                          count, sc->device, sc->segment, sc->pages_used);
      sc = sc->next;                                                  
      count++;                                                        
    }                                                                 
  }                                                                   
  fd->info_level = current_info_level;                                
 8005438:	59 63 00 6c 	sw (r11+108),r3                                
      case RTEMS_FDISK_IOCTL_INFO_LEVEL:                              
        rtems_flashdisks[minor].info_level = (uintptr_t) argp;        
        break;                                                        
                                                                      
      case RTEMS_FDISK_IOCTL_PRINT_STATUS:                            
        errno = rtems_fdisk_print_status (&rtems_flashdisks[minor]);  
 800543c:	58 20 00 00 	sw (r1+0),r0                                   
        break;                                                        
 8005440:	e0 00 00 05 	bi 8005454 <rtems_fdisk_ioctl+0x1080>          
                                                                      
      default:                                                        
        rtems_blkdev_ioctl (dd, req, argp);                           
 8005444:	2b 83 00 60 	lw r3,(sp+96)                                  
 8005448:	b9 a0 08 00 	mv r1,r13                                      
 800544c:	b9 80 10 00 	mv r2,r12                                      
 8005450:	f8 00 39 9d 	calli 8013ac4 <rtems_blkdev_ioctl>             
        break;                                                        
    }                                                                 
                                                                      
    sc = rtems_semaphore_release (rtems_flashdisks[minor].lock);      
 8005454:	78 02 08 04 	mvhi r2,0x804                                  
 8005458:	38 42 97 5c 	ori r2,r2,0x975c                               
 800545c:	28 42 00 00 	lw r2,(r2+0)                                   
 8005460:	2b 83 00 64 	lw r3,(sp+100)                                 
 8005464:	b4 43 08 00 	add r1,r2,r3                                   
 8005468:	28 21 00 64 	lw r1,(r1+100)                                 
 800546c:	f8 00 10 00 	calli 800946c <rtems_semaphore_release>        
    if (sc != RTEMS_SUCCESSFUL)                                       
 8005470:	44 20 00 04 	be r1,r0,8005480 <rtems_fdisk_ioctl+0x10ac>    <== ALWAYS TAKEN
      errno = EIO;                                                    
 8005474:	f8 00 69 68 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 8005478:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 800547c:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
  }                                                                   
                                                                      
  return errno == 0 ? 0 : -1;                                         
 8005480:	f8 00 69 65 	calli 801fa14 <__errno>                        
 8005484:	28 21 00 00 	lw r1,(r1+0)                                   
 8005488:	7c 21 00 00 	cmpnei r1,r1,0                                 
}                                                                     
 800548c:	c8 01 08 00 	sub r1,r0,r1                                   
 8005490:	2b 9d 00 1c 	lw ra,(sp+28)                                  
 8005494:	2b 8b 00 5c 	lw r11,(sp+92)                                 
 8005498:	2b 8c 00 58 	lw r12,(sp+88)                                 
 800549c:	2b 8d 00 54 	lw r13,(sp+84)                                 
 80054a0:	2b 8e 00 50 	lw r14,(sp+80)                                 
 80054a4:	2b 8f 00 4c 	lw r15,(sp+76)                                 
 80054a8:	2b 90 00 48 	lw r16,(sp+72)                                 
 80054ac:	2b 91 00 44 	lw r17,(sp+68)                                 
 80054b0:	2b 92 00 40 	lw r18,(sp+64)                                 
 80054b4:	2b 93 00 3c 	lw r19,(sp+60)                                 
 80054b8:	2b 94 00 38 	lw r20,(sp+56)                                 
 80054bc:	2b 95 00 34 	lw r21,(sp+52)                                 
 80054c0:	2b 96 00 30 	lw r22,(sp+48)                                 
 80054c4:	2b 97 00 2c 	lw r23,(sp+44)                                 
 80054c8:	2b 98 00 28 	lw r24,(sp+40)                                 
 80054cc:	2b 99 00 24 	lw r25,(sp+36)                                 
 80054d0:	2b 9b 00 20 	lw fp,(sp+32)                                  
 80054d4:	37 9c 00 a0 	addi sp,sp,160                                 
 80054d8:	c3 a0 00 00 	ret                                            
    uint8_t* data;                                                    
    uint32_t fb;                                                      
    uint32_t b;                                                       
    fb = sg->length / fd->block_size;                                 
    data = sg->buffer;                                                
    for (b = 0; b < fb; b++, data += fd->block_size)                  
 80054dc:	29 81 00 14 	lw r1,(r12+20)                                 
 80054e0:	37 7b 00 01 	addi fp,fp,1                                   
 80054e4:	b5 c1 70 00 	add r14,r14,r1                                 
 80054e8:	e3 ff fc a6 	bi 8004780 <rtems_fdisk_ioctl+0x3ac>           
{                                                                     
  rtems_blkdev_sg_buffer* sg = req->bufs;                             
  uint32_t                buf;                                        
  int                     ret = 0;                                    
                                                                      
  for (buf = 0; (ret == 0) && (buf < req->bufnum); buf++, sg++)       
 80054ec:	37 39 00 01 	addi r25,r25,1                                 
 80054f0:	36 31 00 10 	addi r17,r17,16                                
 80054f4:	e3 ff fc a5 	bi 8004788 <rtems_fdisk_ioctl+0x3b4>           
{                                                                     
  rtems_blkdev_sg_buffer* sg = req->bufs;                             
  uint32_t                buf;                                        
  int                     ret = 0;                                    
                                                                      
  for (buf = 0; (ret == 0) && (buf < req->bufnum); buf++, sg++)       
 80054f8:	36 f7 00 01 	addi r23,r23,1                                 
 80054fc:	37 7b 00 10 	addi fp,fp,16                                  
 8005500:	e3 ff fe 10 	bi 8004d40 <rtems_fdisk_ioctl+0x96c>           
                                                                      

08003730 <rtems_fdisk_queue_segment>: * @param fd The flash disk control table. * @param sc The segment control table to be reallocated */ static void rtems_fdisk_queue_segment (rtems_flashdisk* fd, rtems_fdisk_segment_ctl* sc) {
 8003730:	37 9c ff e4 	addi sp,sp,-28                                 
 8003734:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8003738:	5b 8c 00 18 	sw (sp+24),r12                                 
 800373c:	5b 8d 00 14 	sw (sp+20),r13                                 
 8003740:	5b 8e 00 10 	sw (sp+16),r14                                 
 8003744:	5b 9d 00 0c 	sw (sp+12),ra                                  
 8003748:	b8 20 60 00 	mv r12,r1                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, " queue-seg:%02d-%03d: p=%d a=%d u=%d b=%d f=%s n=%s",
 800374c:	28 41 00 28 	lw r1,(r2+40)                                  
 * @param fd The flash disk control table.                            
 * @param sc The segment control table to be reallocated              
 */                                                                   
static void                                                           
rtems_fdisk_queue_segment (rtems_flashdisk* fd, rtems_fdisk_segment_ctl* sc)
{                                                                     
 8003750:	b8 40 58 00 	mv r11,r2                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, " queue-seg:%02d-%03d: p=%d a=%d u=%d b=%d f=%s n=%s",
 8003754:	28 43 00 08 	lw r3,(r2+8)                                   
 8003758:	28 44 00 0c 	lw r4,(r2+12)                                  
 800375c:	28 45 00 14 	lw r5,(r2+20)                                  
 8003760:	28 46 00 1c 	lw r6,(r2+28)                                  
 8003764:	28 47 00 20 	lw r7,(r2+32)                                  
 8003768:	28 48 00 24 	lw r8,(r2+36)                                  
 800376c:	78 02 08 03 	mvhi r2,0x803                                  
 8003770:	38 42 59 c4 	ori r2,r2,0x59c4                               
 8003774:	44 20 00 03 	be r1,r0,8003780 <rtems_fdisk_queue_segment+0x50><== ALWAYS TAKEN
 8003778:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
 800377c:	38 42 3c d0 	ori r2,r2,0x3cd0                               <== NOT EXECUTED
 8003780:	29 69 00 00 	lw r9,(r11+0)                                  
 8003784:	78 01 08 03 	mvhi r1,0x803                                  
 8003788:	38 21 3c dc 	ori r1,r1,0x3cdc                               
 800378c:	45 20 00 03 	be r9,r0,8003798 <rtems_fdisk_queue_segment+0x68>
 8003790:	78 01 08 03 	mvhi r1,0x803                                  
 8003794:	38 21 3c d8 	ori r1,r1,0x3cd8                               
 8003798:	5b 82 00 04 	sw (sp+4),r2                                   
 800379c:	78 02 08 03 	mvhi r2,0x803                                  
 80037a0:	5b 81 00 08 	sw (sp+8),r1                                   
 80037a4:	38 42 3c e4 	ori r2,r2,0x3ce4                               
 80037a8:	b9 80 08 00 	mv r1,r12                                      
 80037ac:	fb ff fd 7a 	calli 8002d94 <rtems_fdisk_info>               
                                                                      
  /*                                                                  
   * If the segment has failed then check the failed queue and append 
   * if not failed.                                                   
   */                                                                 
  if (sc->failed)                                                     
 80037b0:	29 61 00 28 	lw r1,(r11+40)                                 
 80037b4:	44 20 00 07 	be r1,r0,80037d0 <rtems_fdisk_queue_segment+0xa0><== ALWAYS TAKEN
  {                                                                   
    if (!rtems_fdisk_segment_queue_present (&fd->failed, sc))         
 80037b8:	29 81 00 58 	lw r1,(r12+88)                                 <== NOT EXECUTED
 80037bc:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 80037c0:	fb ff ff 50 	calli 8003500 <rtems_fdisk_segment_queue_present.clone.2><== NOT EXECUTED
 80037c4:	5c 20 00 53 	bne r1,r0,8003910 <rtems_fdisk_queue_segment+0x1e0><== NOT EXECUTED
      rtems_fdisk_segment_queue_push_tail (&fd->failed, sc);          
 80037c8:	35 81 00 58 	addi r1,r12,88                                 <== NOT EXECUTED
 80037cc:	e0 00 00 4f 	bi 8003908 <rtems_fdisk_queue_segment+0x1d8>   <== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   * Remove the queue from the available or used queue.               
   */                                                                 
  rtems_fdisk_segment_queue_remove (&fd->available, sc);              
 80037d0:	35 8d 00 34 	addi r13,r12,52                                
 80037d4:	b9 a0 08 00 	mv r1,r13                                      
 80037d8:	b9 60 10 00 	mv r2,r11                                      
 80037dc:	fb ff fd 30 	calli 8002c9c <rtems_fdisk_segment_queue_remove>
  rtems_fdisk_segment_queue_remove (&fd->used, sc);                   
 80037e0:	35 8e 00 40 	addi r14,r12,64                                
 80037e4:	b9 c0 08 00 	mv r1,r14                                      
 80037e8:	b9 60 10 00 	mv r2,r11                                      
 80037ec:	fb ff fd 2c 	calli 8002c9c <rtems_fdisk_segment_queue_remove>
 * active, used and bad pages.                                        
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_pages_available (const rtems_fdisk_segment_ctl* sc)   
{                                                                     
  return sc->pages - (sc->pages_active + sc->pages_used + sc->pages_bad);
 80037f0:	29 61 00 1c 	lw r1,(r11+28)                                 
 80037f4:	29 66 00 20 	lw r6,(r11+32)                                 
 80037f8:	29 64 00 24 	lw r4,(r11+36)                                 
 80037fc:	29 65 00 14 	lw r5,(r11+20)                                 
 8003800:	b4 c1 10 00 	add r2,r6,r1                                   
 8003804:	b4 44 20 00 	add r4,r2,r4                                   
   * If they are and the driver has been configured to background     
   * erase place the segment on the used queue. If not configured     
   * to background erase perform the erase now.                       
   *                                                                  
   */                                                                 
  if (rtems_fdisk_seg_pages_available (sc) == 0)                      
 8003808:	5c a4 00 20 	bne r5,r4,8003888 <rtems_fdisk_queue_segment+0x158>
  {                                                                   
    if (sc->pages_active)                                             
 800380c:	44 20 00 16 	be r1,r0,8003864 <rtems_fdisk_queue_segment+0x134><== NEVER TAKEN
      /*                                                              
       * Keep the used queue sorted by the most number of used        
       * pages. When we compact we want to move the pages into        
       * a new segment and cover more than one segment.               
       */                                                             
      rtems_fdisk_segment_ctl* seg = fd->used.head;                   
 8003810:	29 83 00 40 	lw r3,(r12+64)                                 
 8003814:	b8 60 10 00 	mv r2,r3                                       
                                                                      
      while (seg)                                                     
 8003818:	e0 00 00 04 	bi 8003828 <rtems_fdisk_queue_segment+0xf8>    
      {                                                               
        if (sc->pages_used > seg->pages_used)                         
 800381c:	28 41 00 20 	lw r1,(r2+32)                                  
 8003820:	54 c1 00 04 	bgu r6,r1,8003830 <rtems_fdisk_queue_segment+0x100>
          break;                                                      
        seg = seg->next;                                              
 8003824:	28 42 00 00 	lw r2,(r2+0)                                   
       * pages. When we compact we want to move the pages into        
       * a new segment and cover more than one segment.               
       */                                                             
      rtems_fdisk_segment_ctl* seg = fd->used.head;                   
                                                                      
      while (seg)                                                     
 8003828:	5c 40 ff fd 	bne r2,r0,800381c <rtems_fdisk_queue_segment+0xec>
 800382c:	e0 00 00 34 	bi 80038fc <rtems_fdisk_queue_segment+0x1cc>   
                                         rtems_fdisk_segment_ctl*       item,
                                         rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (item)                                                           
  {                                                                   
    rtems_fdisk_segment_ctl** prev = &queue->head;                    
 8003830:	35 81 00 40 	addi r1,r12,64                                 
 8003834:	e0 00 00 0a 	bi 800385c <rtems_fdisk_queue_segment+0x12c>   
    rtems_fdisk_segment_ctl*  it = queue->head;                       
                                                                      
    while (it)                                                        
    {                                                                 
      if (item == it)                                                 
 8003838:	5c 43 00 07 	bne r2,r3,8003854 <rtems_fdisk_queue_segment+0x124>
      {                                                               
        sc->next = item;                                              
 800383c:	59 62 00 00 	sw (r11+0),r2                                  
        *prev = sc;                                                   
 8003840:	58 2b 00 00 	sw (r1+0),r11                                  
        queue->count++;                                               
 8003844:	29 81 00 48 	lw r1,(r12+72)                                 
 8003848:	34 21 00 01 	addi r1,r1,1                                   
 800384c:	59 81 00 48 	sw (r12+72),r1                                 
 8003850:	e0 00 00 30 	bi 8003910 <rtems_fdisk_queue_segment+0x1e0>   
        return;                                                       
      }                                                               
                                                                      
      prev = &it->next;                                               
 8003854:	b8 60 08 00 	mv r1,r3                                       
      it = it->next;                                                  
 8003858:	28 63 00 00 	lw r3,(r3+0)                                   
  if (item)                                                           
  {                                                                   
    rtems_fdisk_segment_ctl** prev = &queue->head;                    
    rtems_fdisk_segment_ctl*  it = queue->head;                       
                                                                      
    while (it)                                                        
 800385c:	5c 60 ff f7 	bne r3,r0,8003838 <rtems_fdisk_queue_segment+0x108><== ALWAYS TAKEN
 8003860:	e0 00 00 27 	bi 80038fc <rtems_fdisk_queue_segment+0x1cc>   <== NOT EXECUTED
      else                                                            
        rtems_fdisk_segment_queue_push_tail (&fd->used, sc);          
    }                                                                 
    else                                                              
    {                                                                 
      if ((fd->flags & RTEMS_FDISK_BACKGROUND_ERASE))                 
 8003864:	29 82 00 08 	lw r2,(r12+8)                                  <== NOT EXECUTED
 8003868:	20 42 00 01 	andi r2,r2,0x1                                 <== NOT EXECUTED
 800386c:	44 41 00 03 	be r2,r1,8003878 <rtems_fdisk_queue_segment+0x148><== NOT EXECUTED
        rtems_fdisk_segment_queue_push_tail (&fd->erase, sc);         
 8003870:	35 81 00 4c 	addi r1,r12,76                                 <== NOT EXECUTED
 8003874:	e0 00 00 25 	bi 8003908 <rtems_fdisk_queue_segment+0x1d8>   <== NOT EXECUTED
      else                                                            
        rtems_fdisk_erase_segment (fd, sc);                           
 8003878:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 800387c:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 8003880:	fb ff ff 59 	calli 80035e4 <rtems_fdisk_erase_segment>      <== NOT EXECUTED
 8003884:	e0 00 00 23 	bi 8003910 <rtems_fdisk_queue_segment+0x1e0>   <== NOT EXECUTED
     * bit is cleared for that segment. When 32 erasers               
     * has occurred the page is re-written to the flash               
     * with all the counters updated with the number of               
     * bits cleared and all bits set back to 1.                       
     */                                                               
    rtems_fdisk_segment_ctl* seg = fd->available.head;                
 8003888:	29 83 00 34 	lw r3,(r12+52)                                 
 * active, used and bad pages.                                        
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_pages_available (const rtems_fdisk_segment_ctl* sc)   
{                                                                     
  return sc->pages - (sc->pages_active + sc->pages_used + sc->pages_bad);
 800388c:	c8 a4 20 00 	sub r4,r5,r4                                   
     * bit is cleared for that segment. When 32 erasers               
     * has occurred the page is re-written to the flash               
     * with all the counters updated with the number of               
     * bits cleared and all bits set back to 1.                       
     */                                                               
    rtems_fdisk_segment_ctl* seg = fd->available.head;                
 8003890:	b8 60 10 00 	mv r2,r3                                       
                                                                      
    while (seg)                                                       
 8003894:	e0 00 00 0b 	bi 80038c0 <rtems_fdisk_queue_segment+0x190>   
 *                                                                    
 * @param fd The flash disk control table.                            
 * @param sc The segment control table to be reallocated              
 */                                                                   
static void                                                           
rtems_fdisk_queue_segment (rtems_flashdisk* fd, rtems_fdisk_segment_ctl* sc)
 8003898:	28 41 00 24 	lw r1,(r2+36)                                  
 * active, used and bad pages.                                        
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_pages_available (const rtems_fdisk_segment_ctl* sc)   
{                                                                     
  return sc->pages - (sc->pages_active + sc->pages_used + sc->pages_bad);
 800389c:	28 45 00 20 	lw r5,(r2+32)                                  
 *                                                                    
 * @param fd The flash disk control table.                            
 * @param sc The segment control table to be reallocated              
 */                                                                   
static void                                                           
rtems_fdisk_queue_segment (rtems_flashdisk* fd, rtems_fdisk_segment_ctl* sc)
 80038a0:	c8 01 08 00 	sub r1,r0,r1                                   
 * active, used and bad pages.                                        
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_pages_available (const rtems_fdisk_segment_ctl* sc)   
{                                                                     
  return sc->pages - (sc->pages_active + sc->pages_used + sc->pages_bad);
 80038a4:	c8 25 08 00 	sub r1,r1,r5                                   
 80038a8:	28 45 00 14 	lw r5,(r2+20)                                  
 80038ac:	b4 25 08 00 	add r1,r1,r5                                   
 80038b0:	28 45 00 1c 	lw r5,(r2+28)                                  
 80038b4:	c8 25 08 00 	sub r1,r1,r5                                   
     */                                                               
    rtems_fdisk_segment_ctl* seg = fd->available.head;                
                                                                      
    while (seg)                                                       
    {                                                                 
      if (rtems_fdisk_seg_pages_available (sc) <                      
 80038b8:	54 24 00 04 	bgu r1,r4,80038c8 <rtems_fdisk_queue_segment+0x198>
          rtems_fdisk_seg_pages_available (seg))                      
        break;                                                        
      seg = seg->next;                                                
 80038bc:	28 42 00 00 	lw r2,(r2+0)                                   
     * with all the counters updated with the number of               
     * bits cleared and all bits set back to 1.                       
     */                                                               
    rtems_fdisk_segment_ctl* seg = fd->available.head;                
                                                                      
    while (seg)                                                       
 80038c0:	5c 40 ff f6 	bne r2,r0,8003898 <rtems_fdisk_queue_segment+0x168>
 80038c4:	e0 00 00 10 	bi 8003904 <rtems_fdisk_queue_segment+0x1d4>   
                                         rtems_fdisk_segment_ctl*       item,
                                         rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (item)                                                           
  {                                                                   
    rtems_fdisk_segment_ctl** prev = &queue->head;                    
 80038c8:	35 81 00 34 	addi r1,r12,52                                 
 80038cc:	e0 00 00 0a 	bi 80038f4 <rtems_fdisk_queue_segment+0x1c4>   
    rtems_fdisk_segment_ctl*  it = queue->head;                       
                                                                      
    while (it)                                                        
    {                                                                 
      if (item == it)                                                 
 80038d0:	5c 43 00 07 	bne r2,r3,80038ec <rtems_fdisk_queue_segment+0x1bc><== NEVER TAKEN
      {                                                               
        sc->next = item;                                              
 80038d4:	59 62 00 00 	sw (r11+0),r2                                  
        *prev = sc;                                                   
 80038d8:	58 2b 00 00 	sw (r1+0),r11                                  
        queue->count++;                                               
 80038dc:	29 81 00 3c 	lw r1,(r12+60)                                 
 80038e0:	34 21 00 01 	addi r1,r1,1                                   
 80038e4:	59 81 00 3c 	sw (r12+60),r1                                 
 80038e8:	e0 00 00 0a 	bi 8003910 <rtems_fdisk_queue_segment+0x1e0>   
        return;                                                       
      }                                                               
                                                                      
      prev = &it->next;                                               
 80038ec:	b8 60 08 00 	mv r1,r3                                       <== NOT EXECUTED
      it = it->next;                                                  
 80038f0:	28 63 00 00 	lw r3,(r3+0)                                   <== NOT EXECUTED
  if (item)                                                           
  {                                                                   
    rtems_fdisk_segment_ctl** prev = &queue->head;                    
    rtems_fdisk_segment_ctl*  it = queue->head;                       
                                                                      
    while (it)                                                        
 80038f4:	5c 60 ff f7 	bne r3,r0,80038d0 <rtems_fdisk_queue_segment+0x1a0><== ALWAYS TAKEN
 80038f8:	e0 00 00 03 	bi 8003904 <rtems_fdisk_queue_segment+0x1d4>   <== NOT EXECUTED
      }                                                               
                                                                      
      if (seg)                                                        
        rtems_fdisk_segment_queue_insert_before (&fd->used, seg, sc); 
      else                                                            
        rtems_fdisk_segment_queue_push_tail (&fd->used, sc);          
 80038fc:	b9 c0 08 00 	mv r1,r14                                      
 8003900:	e0 00 00 02 	bi 8003908 <rtems_fdisk_queue_segment+0x1d8>   
    }                                                                 
                                                                      
    if (seg)                                                          
      rtems_fdisk_segment_queue_insert_before (&fd->available, seg, sc);
    else                                                              
      rtems_fdisk_segment_queue_push_tail (&fd->available, sc);       
 8003904:	b9 a0 08 00 	mv r1,r13                                      
 8003908:	b9 60 10 00 	mv r2,r11                                      
 800390c:	fb ff fc d6 	calli 8002c64 <rtems_fdisk_segment_queue_push_tail>
  }                                                                   
}                                                                     
 8003910:	2b 9d 00 0c 	lw ra,(sp+12)                                  
 8003914:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8003918:	2b 8c 00 18 	lw r12,(sp+24)                                 
 800391c:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8003920:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8003924:	37 9c 00 1c 	addi sp,sp,28                                  
 8003928:	c3 a0 00 00 	ret                                            
                                                                      

0800392c <rtems_fdisk_recover_block_mappings>: /** * Recover the block mappings from the devices. */ static int rtems_fdisk_recover_block_mappings (rtems_flashdisk* fd) {
 800392c:	37 9c ff bc 	addi sp,sp,-68                                 
 8003930:	5b 8b 00 44 	sw (sp+68),r11                                 
 8003934:	5b 8c 00 40 	sw (sp+64),r12                                 
 8003938:	5b 8d 00 3c 	sw (sp+60),r13                                 
 800393c:	5b 8e 00 38 	sw (sp+56),r14                                 
 8003940:	5b 8f 00 34 	sw (sp+52),r15                                 
 8003944:	5b 90 00 30 	sw (sp+48),r16                                 
 8003948:	5b 91 00 2c 	sw (sp+44),r17                                 
 800394c:	5b 92 00 28 	sw (sp+40),r18                                 
 8003950:	5b 93 00 24 	sw (sp+36),r19                                 
 8003954:	5b 94 00 20 	sw (sp+32),r20                                 
 8003958:	5b 95 00 1c 	sw (sp+28),r21                                 
 800395c:	5b 96 00 18 	sw (sp+24),r22                                 
 8003960:	5b 97 00 14 	sw (sp+20),r23                                 
 8003964:	5b 98 00 10 	sw (sp+16),r24                                 
 8003968:	5b 99 00 0c 	sw (sp+12),r25                                 
 800396c:	5b 9b 00 08 	sw (sp+8),fp                                   
 8003970:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003974:	b8 20 58 00 	mv r11,r1                                      
 * Initialise the segment control queue.                              
 */                                                                   
static void                                                           
rtems_fdisk_segment_queue_init (rtems_fdisk_segment_ctl_queue* queue) 
{                                                                     
  queue->head = queue->tail = 0;                                      
 8003978:	58 20 00 38 	sw (r1+56),r0                                  
 800397c:	58 20 00 34 	sw (r1+52),r0                                  
  queue->count = 0;                                                   
 8003980:	58 20 00 3c 	sw (r1+60),r0                                  
 * Initialise the segment control queue.                              
 */                                                                   
static void                                                           
rtems_fdisk_segment_queue_init (rtems_fdisk_segment_ctl_queue* queue) 
{                                                                     
  queue->head = queue->tail = 0;                                      
 8003984:	58 20 00 44 	sw (r1+68),r0                                  
 8003988:	58 20 00 40 	sw (r1+64),r0                                  
  queue->count = 0;                                                   
 800398c:	58 20 00 48 	sw (r1+72),r0                                  
 * Initialise the segment control queue.                              
 */                                                                   
static void                                                           
rtems_fdisk_segment_queue_init (rtems_fdisk_segment_ctl_queue* queue) 
{                                                                     
  queue->head = queue->tail = 0;                                      
 8003990:	58 20 00 50 	sw (r1+80),r0                                  
 8003994:	58 20 00 4c 	sw (r1+76),r0                                  
  queue->count = 0;                                                   
 8003998:	58 20 00 54 	sw (r1+84),r0                                  
 * Initialise the segment control queue.                              
 */                                                                   
static void                                                           
rtems_fdisk_segment_queue_init (rtems_fdisk_segment_ctl_queue* queue) 
{                                                                     
  queue->head = queue->tail = 0;                                      
 800399c:	58 20 00 5c 	sw (r1+92),r0                                  
 80039a0:	58 20 00 58 	sw (r1+88),r0                                  
  queue->count = 0;                                                   
 80039a4:	58 20 00 60 	sw (r1+96),r0                                  
  rtems_fdisk_segment_queue_init (&fd->failed);                       
                                                                      
  /*                                                                  
   * Clear the lock mappings.                                         
   */                                                                 
  memset (fd->blocks, 0, fd->block_count * sizeof (rtems_fdisk_block_ctl));
 80039a8:	28 21 00 1c 	lw r1,(r1+28)                                  
 80039ac:	34 02 00 03 	mvi r2,3                                       
      rtems_fdisk_page_desc*          pd;                             
      uint32_t                        page;                           
      int                             ret;                            
                                                                      
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, "recover-block-mappings:%02d-%03d", device, segment);
 80039b0:	78 16 08 03 	mvhi r22,0x803                                 
  rtems_fdisk_segment_queue_init (&fd->failed);                       
                                                                      
  /*                                                                  
   * Clear the lock mappings.                                         
   */                                                                 
  memset (fd->blocks, 0, fd->block_count * sizeof (rtems_fdisk_block_ctl));
 80039b4:	fb ff f6 cb 	calli 80014e0 <__ashlsi3>                      
 80039b8:	b8 20 18 00 	mv r3,r1                                       
 80039bc:	29 61 00 18 	lw r1,(r11+24)                                 
 80039c0:	34 02 00 00 	mvi r2,0                                       
                                                                      
      if (!sc->page_descriptors)                                      
        sc->page_descriptors = malloc (sc->pages_desc * fd->block_size);
                                                                      
      if (!sc->page_descriptors)                                      
        rtems_fdisk_abort ("no memory for page descriptors");         
 80039c4:	78 15 08 03 	mvhi r21,0x803                                 
               * each block so we can tell which is the later block when
               * duplicates appear. A power down with a failed wirte could cause
               * a duplicate.                                         
               */                                                     
              const rtems_fdisk_segment_ctl* bsc = fd->blocks[pd->block].segment;
              rtems_fdisk_error ("duplicate block: %d-%d-%d: " \      
 80039c8:	78 14 08 03 	mvhi r20,0x803                                 
          else if (rtems_fdisk_page_desc_flags_set (pd, RTEMS_FDISK_PAGE_ACTIVE))
          {                                                           
            if (pd->block >= fd->block_count)                         
            {                                                         
#if RTEMS_FDISK_TRACE                                                 
              rtems_fdisk_warning (fd,                                
 80039cc:	78 13 08 03 	mvhi r19,0x803                                 
            ++fd->erased_blocks;                                      
          }                                                           
          else                                                        
          {                                                           
#if RTEMS_FDISK_TRACE                                                 
            rtems_fdisk_warning (fd, "page not blank: %d-%d-%d",      
 80039d0:	78 12 08 03 	mvhi r18,0x803                                 
            ret = rtems_fdisk_seg_write_page_desc (fd, sc,            
                                                   page, pd);         
                                                                      
            if (ret)                                                  
            {                                                         
              rtems_fdisk_error ("forcing page to used failed: %d-%d-%d",
 80039d4:	78 11 08 03 	mvhi r17,0x803                                 
  rtems_fdisk_segment_queue_init (&fd->failed);                       
                                                                      
  /*                                                                  
   * Clear the lock mappings.                                         
   */                                                                 
  memset (fd->blocks, 0, fd->block_count * sizeof (rtems_fdisk_block_ctl));
 80039d8:	f8 00 75 ce 	calli 8021110 <memset>                         
  /*                                                                  
   * Scan each segment or each device recovering the valid pages.     
   */                                                                 
  fd->erased_blocks = 0;                                              
  fd->starvation_threshold = 0;                                       
  for (device = 0; device < fd->device_count; device++)               
 80039dc:	34 17 00 00 	mvi r23,0                                      
  memset (fd->blocks, 0, fd->block_count * sizeof (rtems_fdisk_block_ctl));
                                                                      
  /*                                                                  
   * Scan each segment or each device recovering the valid pages.     
   */                                                                 
  fd->erased_blocks = 0;                                              
 80039e0:	59 60 00 28 	sw (r11+40),r0                                 
  fd->starvation_threshold = 0;                                       
 80039e4:	59 60 00 24 	sw (r11+36),r0                                 
  for (device = 0; device < fd->device_count; device++)               
 80039e8:	34 10 00 00 	mvi r16,0                                      
      rtems_fdisk_page_desc*          pd;                             
      uint32_t                        page;                           
      int                             ret;                            
                                                                      
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, "recover-block-mappings:%02d-%03d", device, segment);
 80039ec:	3a d6 3d 18 	ori r22,r22,0x3d18                             
                                                                      
      if (!sc->page_descriptors)                                      
        sc->page_descriptors = malloc (sc->pages_desc * fd->block_size);
                                                                      
      if (!sc->page_descriptors)                                      
        rtems_fdisk_abort ("no memory for page descriptors");         
 80039f0:	3a b5 3d 3c 	ori r21,r21,0x3d3c                             
               * each block so we can tell which is the later block when
               * duplicates appear. A power down with a failed wirte could cause
               * a duplicate.                                         
               */                                                     
              const rtems_fdisk_segment_ctl* bsc = fd->blocks[pd->block].segment;
              rtems_fdisk_error ("duplicate block: %d-%d-%d: " \      
 80039f4:	3a 94 3e 10 	ori r20,r20,0x3e10                             
          else if (rtems_fdisk_page_desc_flags_set (pd, RTEMS_FDISK_PAGE_ACTIVE))
          {                                                           
            if (pd->block >= fd->block_count)                         
            {                                                         
#if RTEMS_FDISK_TRACE                                                 
              rtems_fdisk_warning (fd,                                
 80039f8:	3a 73 3d e4 	ori r19,r19,0x3de4                             
            ++fd->erased_blocks;                                      
          }                                                           
          else                                                        
          {                                                           
#if RTEMS_FDISK_TRACE                                                 
            rtems_fdisk_warning (fd, "page not blank: %d-%d-%d",      
 80039fc:	3a 52 3d a0 	ori r18,r18,0x3da0                             
 * Set the flags. Setting means clear the bit to 0.                   
 */                                                                   
static void                                                           
rtems_fdisk_page_desc_set_flags (rtems_fdisk_page_desc* pd, uint16_t flags)
{                                                                     
  pd->flags &= ~flags;                                                
 8003a00:	34 19 ff fd 	mvi r25,-3                                     
            ret = rtems_fdisk_seg_write_page_desc (fd, sc,            
                                                   page, pd);         
                                                                      
            if (ret)                                                  
            {                                                         
              rtems_fdisk_error ("forcing page to used failed: %d-%d-%d",
 8003a04:	3a 31 3d bc 	ori r17,r17,0x3dbc                             
  /*                                                                  
   * Scan each segment or each device recovering the valid pages.     
   */                                                                 
  fd->erased_blocks = 0;                                              
  fd->starvation_threshold = 0;                                       
  for (device = 0; device < fd->device_count; device++)               
 8003a08:	e0 00 00 a5 	bi 8003c9c <rtems_fdisk_recover_block_mappings+0x370>
  {                                                                   
    uint32_t segment;                                                 
    for (segment = 0; segment < fd->devices[device].segment_count; segment++)
    {                                                                 
      rtems_fdisk_segment_ctl*        sc = &fd->devices[device].segments[segment];
 8003a0c:	28 2c 00 00 	lw r12,(r1+0)                                  
      rtems_fdisk_page_desc*          pd;                             
      uint32_t                        page;                           
      int                             ret;                            
                                                                      
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, "recover-block-mappings:%02d-%03d", device, segment);
 8003a10:	ba 00 18 00 	mv r3,r16                                      
 8003a14:	b9 e0 20 00 	mv r4,r15                                      
  for (device = 0; device < fd->device_count; device++)               
  {                                                                   
    uint32_t segment;                                                 
    for (segment = 0; segment < fd->devices[device].segment_count; segment++)
    {                                                                 
      rtems_fdisk_segment_ctl*        sc = &fd->devices[device].segments[segment];
 8003a18:	b5 98 60 00 	add r12,r12,r24                                
      const rtems_fdisk_segment_desc* sd = sc->descriptor;            
 8003a1c:	29 8e 00 04 	lw r14,(r12+4)                                 
      rtems_fdisk_page_desc*          pd;                             
      uint32_t                        page;                           
      int                             ret;                            
                                                                      
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, "recover-block-mappings:%02d-%03d", device, segment);
 8003a20:	ba c0 10 00 	mv r2,r22                                      
 8003a24:	b9 60 08 00 	mv r1,r11                                      
 8003a28:	fb ff fc db 	calli 8002d94 <rtems_fdisk_info>               
#endif                                                                
                                                                      
      sc->pages_desc = rtems_fdisk_page_desc_pages (sd, fd->block_size);
 8003a2c:	29 6d 00 14 	lw r13,(r11+20)                                
 */                                                                   
static uint32_t                                                       
rtems_fdisk_pages_in_segment (const rtems_fdisk_segment_desc* sd,     
                              uint32_t                        page_size)
{                                                                     
  return sd->size / page_size;                                        
 8003a30:	29 c1 00 08 	lw r1,(r14+8)                                  
 8003a34:	b9 a0 10 00 	mv r2,r13                                      
 8003a38:	fb ff f7 04 	calli 8001648 <__udivsi3>                      
static uint32_t                                                       
rtems_fdisk_page_desc_pages (const rtems_fdisk_segment_desc* sd,      
                             uint32_t                        page_size)
{                                                                     
  uint32_t pages = rtems_fdisk_pages_in_segment (sd, page_size);      
  uint32_t bytes = pages * sizeof (rtems_fdisk_page_desc);            
 8003a3c:	34 02 00 03 	mvi r2,3                                       
 */                                                                   
static uint32_t                                                       
rtems_fdisk_pages_in_segment (const rtems_fdisk_segment_desc* sd,     
                              uint32_t                        page_size)
{                                                                     
  return sd->size / page_size;                                        
 8003a40:	b8 20 70 00 	mv r14,r1                                      
static uint32_t                                                       
rtems_fdisk_page_desc_pages (const rtems_fdisk_segment_desc* sd,      
                             uint32_t                        page_size)
{                                                                     
  uint32_t pages = rtems_fdisk_pages_in_segment (sd, page_size);      
  uint32_t bytes = pages * sizeof (rtems_fdisk_page_desc);            
 8003a44:	fb ff f6 a7 	calli 80014e0 <__ashlsi3>                      
  return ((bytes - 1) / page_size) + 1;                               
 8003a48:	b9 a0 10 00 	mv r2,r13                                      
 8003a4c:	34 21 ff ff 	addi r1,r1,-1                                  
 8003a50:	fb ff f6 fe 	calli 8001648 <__udivsi3>                      
 8003a54:	34 23 00 01 	addi r3,r1,1                                   
#endif                                                                
                                                                      
      sc->pages_desc = rtems_fdisk_page_desc_pages (sd, fd->block_size);
      sc->pages =                                                     
        rtems_fdisk_pages_in_segment (sd, fd->block_size) - sc->pages_desc;
      if (sc->pages > fd->starvation_threshold)                       
 8003a58:	29 62 00 24 	lw r2,(r11+36)                                 
      rtems_fdisk_info (fd, "recover-block-mappings:%02d-%03d", device, segment);
#endif                                                                
                                                                      
      sc->pages_desc = rtems_fdisk_page_desc_pages (sd, fd->block_size);
      sc->pages =                                                     
        rtems_fdisk_pages_in_segment (sd, fd->block_size) - sc->pages_desc;
 8003a5c:	c9 c3 08 00 	sub r1,r14,r3                                  
                                                                      
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, "recover-block-mappings:%02d-%03d", device, segment);
#endif                                                                
                                                                      
      sc->pages_desc = rtems_fdisk_page_desc_pages (sd, fd->block_size);
 8003a60:	59 83 00 18 	sw (r12+24),r3                                 
      sc->pages =                                                     
 8003a64:	59 81 00 14 	sw (r12+20),r1                                 
        rtems_fdisk_pages_in_segment (sd, fd->block_size) - sc->pages_desc;
      if (sc->pages > fd->starvation_threshold)                       
 8003a68:	50 41 00 02 	bgeu r2,r1,8003a70 <rtems_fdisk_recover_block_mappings+0x144>
        fd->starvation_threshold = sc->pages;                         
 8003a6c:	59 61 00 24 	sw (r11+36),r1                                 
      sc->pages_used   = 0;                                           
      sc->pages_bad    = 0;                                           
                                                                      
      sc->failed = false;                                             
                                                                      
      if (!sc->page_descriptors)                                      
 8003a70:	29 81 00 10 	lw r1,(r12+16)                                 
      sc->pages =                                                     
        rtems_fdisk_pages_in_segment (sd, fd->block_size) - sc->pages_desc;
      if (sc->pages > fd->starvation_threshold)                       
        fd->starvation_threshold = sc->pages;                         
                                                                      
      sc->pages_active = 0;                                           
 8003a74:	59 80 00 1c 	sw (r12+28),r0                                 
      sc->pages_used   = 0;                                           
 8003a78:	59 80 00 20 	sw (r12+32),r0                                 
      sc->pages_bad    = 0;                                           
 8003a7c:	59 80 00 24 	sw (r12+36),r0                                 
                                                                      
      sc->failed = false;                                             
 8003a80:	59 80 00 28 	sw (r12+40),r0                                 
                                                                      
      if (!sc->page_descriptors)                                      
 8003a84:	5c 20 00 06 	bne r1,r0,8003a9c <rtems_fdisk_recover_block_mappings+0x170><== NEVER TAKEN
        sc->page_descriptors = malloc (sc->pages_desc * fd->block_size);
 8003a88:	b8 60 08 00 	mv r1,r3                                       
 8003a8c:	b9 a0 10 00 	mv r2,r13                                      
 8003a90:	fb ff f6 e2 	calli 8001618 <__mulsi3>                       
 8003a94:	f8 00 0c 69 	calli 8006c38 <malloc>                         
 8003a98:	59 81 00 10 	sw (r12+16),r1                                 
                                                                      
      if (!sc->page_descriptors)                                      
 8003a9c:	29 81 00 10 	lw r1,(r12+16)                                 
 8003aa0:	5c 20 00 03 	bne r1,r0,8003aac <rtems_fdisk_recover_block_mappings+0x180><== ALWAYS TAKEN
        rtems_fdisk_abort ("no memory for page descriptors");         
 8003aa4:	ba a0 08 00 	mv r1,r21                                      <== NOT EXECUTED
 8003aa8:	fb ff fe 6c 	calli 8003458 <rtems_fdisk_abort>              <== NOT EXECUTED
       * descriptors.                                                 
       *                                                              
       * @todo It may be better to ask the driver to get these value  
       *       so NAND flash could be better supported.               
       */                                                             
      ret = rtems_fdisk_seg_read (fd, sc, 0, (void*) pd,              
 8003aac:	29 82 00 18 	lw r2,(r12+24)                                 
 8003ab0:	29 61 00 14 	lw r1,(r11+20)                                 
        sc->page_descriptors = malloc (sc->pages_desc * fd->block_size);
                                                                      
      if (!sc->page_descriptors)                                      
        rtems_fdisk_abort ("no memory for page descriptors");         
                                                                      
      pd = sc->page_descriptors;                                      
 8003ab4:	29 8d 00 10 	lw r13,(r12+16)                                
       * descriptors.                                                 
       *                                                              
       * @todo It may be better to ask the driver to get these value  
       *       so NAND flash could be better supported.               
       */                                                             
      ret = rtems_fdisk_seg_read (fd, sc, 0, (void*) pd,              
 8003ab8:	fb ff f6 d8 	calli 8001618 <__mulsi3>                       
 8003abc:	b8 20 28 00 	mv r5,r1                                       
 8003ac0:	b9 80 10 00 	mv r2,r12                                      
 8003ac4:	b9 60 08 00 	mv r1,r11                                      
 8003ac8:	34 03 00 00 	mvi r3,0                                       
 8003acc:	b9 a0 20 00 	mv r4,r13                                      
 8003ad0:	fb ff fd 09 	calli 8002ef4 <rtems_fdisk_seg_read>           
 8003ad4:	b8 20 70 00 	mv r14,r1                                      
                                  sc->pages_desc * fd->block_size);   
                                                                      
      if (ret)                                                        
 8003ad8:	44 20 00 61 	be r1,r0,8003c5c <rtems_fdisk_recover_block_mappings+0x330><== ALWAYS TAKEN
      {                                                               
        rtems_fdisk_error ("recover-block-mappings:%02d-%03d: " \     
 8003adc:	f8 00 7a e4 	calli 802266c <strerror>                       <== NOT EXECUTED
 8003ae0:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
 8003ae4:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8003ae8:	ba 00 10 00 	mv r2,r16                                      <== NOT EXECUTED
 8003aec:	b9 e0 18 00 	mv r3,r15                                      <== NOT EXECUTED
 8003af0:	b9 c0 28 00 	mv r5,r14                                      <== NOT EXECUTED
 8003af4:	38 21 3d 5c 	ori r1,r1,0x3d5c                               <== NOT EXECUTED
 8003af8:	fb ff fe 30 	calli 80033b8 <rtems_fdisk_error>              <== NOT EXECUTED
                           "read page desc failed: %s (%d)",          
                           device, segment, strerror (ret), ret);     
        return ret;                                                   
 8003afc:	e0 00 00 6b 	bi 8003ca8 <rtems_fdisk_recover_block_mappings+0x37c><== NOT EXECUTED
       * If the page is active see if the block is with-in range and  
       * if the block is a duplicate.                                 
       */                                                             
      for (page = 0; page < sc->pages; page++, pd++)                  
      {                                                               
        if (rtems_fdisk_page_desc_erased (pd))                        
 8003b00:	b9 a0 08 00 	mv r1,r13                                      
 8003b04:	fb ff fc 7d 	calli 8002cf8 <rtems_fdisk_page_desc_erased>   
 8003b08:	44 20 00 26 	be r1,r0,8003ba0 <rtems_fdisk_recover_block_mappings+0x274><== NEVER TAKEN
rtems_fdisk_seg_blank_check_page (const rtems_flashdisk*   fd,        
                                  rtems_fdisk_segment_ctl* sc,        
                                  uint32_t                 page)      
{                                                                     
  return rtems_fdisk_seg_blank_check (fd, sc,                         
                                      page * fd->block_size, fd->block_size);
 8003b0c:	29 7b 00 14 	lw fp,(r11+20)                                 
        if (rtems_fdisk_page_desc_erased (pd))                        
        {                                                             
          /*                                                          
           * Is the page erased ?                                     
           */                                                         
          ret = rtems_fdisk_seg_blank_check_page (fd, sc,             
 8003b10:	29 81 00 18 	lw r1,(r12+24)                                 
static int                                                            
rtems_fdisk_seg_blank_check_page (const rtems_flashdisk*   fd,        
                                  rtems_fdisk_segment_ctl* sc,        
                                  uint32_t                 page)      
{                                                                     
  return rtems_fdisk_seg_blank_check (fd, sc,                         
 8003b14:	bb 60 10 00 	mv r2,fp                                       
 8003b18:	b5 c1 08 00 	add r1,r14,r1                                  
 8003b1c:	fb ff f6 bf 	calli 8001618 <__mulsi3>                       
 8003b20:	b8 20 18 00 	mv r3,r1                                       
 8003b24:	b9 80 10 00 	mv r2,r12                                      
 8003b28:	b9 60 08 00 	mv r1,r11                                      
 8003b2c:	bb 60 20 00 	mv r4,fp                                       
 8003b30:	fb ff fd 2c 	calli 8002fe0 <rtems_fdisk_seg_blank_check>    
           * Is the page erased ?                                     
           */                                                         
          ret = rtems_fdisk_seg_blank_check_page (fd, sc,             
                                                  page + sc->pages_desc);
                                                                      
          if (ret == 0)                                               
 8003b34:	5c 20 00 05 	bne r1,r0,8003b48 <rtems_fdisk_recover_block_mappings+0x21c><== NEVER TAKEN
          {                                                           
            ++fd->erased_blocks;                                      
 8003b38:	29 61 00 28 	lw r1,(r11+40)                                 
 8003b3c:	34 21 00 01 	addi r1,r1,1                                   
 8003b40:	59 61 00 28 	sw (r11+40),r1                                 
 8003b44:	e0 00 00 44 	bi 8003c54 <rtems_fdisk_recover_block_mappings+0x328>
          }                                                           
          else                                                        
          {                                                           
#if RTEMS_FDISK_TRACE                                                 
            rtems_fdisk_warning (fd, "page not blank: %d-%d-%d",      
 8003b48:	29 a6 00 04 	lw r6,(r13+4)                                  <== NOT EXECUTED
 8003b4c:	ba 40 10 00 	mv r2,r18                                      <== NOT EXECUTED
 8003b50:	ba 00 18 00 	mv r3,r16                                      <== NOT EXECUTED
 8003b54:	b9 e0 20 00 	mv r4,r15                                      <== NOT EXECUTED
 8003b58:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8003b5c:	b9 c0 28 00 	mv r5,r14                                      <== NOT EXECUTED
 8003b60:	fb ff fd eb 	calli 800330c <rtems_fdisk_warning>            <== NOT EXECUTED
 * Set the flags. Setting means clear the bit to 0.                   
 */                                                                   
static void                                                           
rtems_fdisk_page_desc_set_flags (rtems_fdisk_page_desc* pd, uint16_t flags)
{                                                                     
  pd->flags &= ~flags;                                                
 8003b64:	2d a1 00 02 	lhu r1,(r13+2)                                 <== NOT EXECUTED
            rtems_fdisk_warning (fd, "page not blank: %d-%d-%d",      
                                 device, segment, page, pd->block);   
#endif                                                                
            rtems_fdisk_page_desc_set_flags (pd, RTEMS_FDISK_PAGE_USED);
                                                                      
            ret = rtems_fdisk_seg_write_page_desc (fd, sc,            
 8003b68:	b9 80 10 00 	mv r2,r12                                      <== NOT EXECUTED
 8003b6c:	b9 c0 18 00 	mv r3,r14                                      <== NOT EXECUTED
 * Set the flags. Setting means clear the bit to 0.                   
 */                                                                   
static void                                                           
rtems_fdisk_page_desc_set_flags (rtems_fdisk_page_desc* pd, uint16_t flags)
{                                                                     
  pd->flags &= ~flags;                                                
 8003b70:	a0 39 08 00 	and r1,r1,r25                                  <== NOT EXECUTED
 8003b74:	0d a1 00 02 	sh (r13+2),r1                                  <== NOT EXECUTED
            rtems_fdisk_warning (fd, "page not blank: %d-%d-%d",      
                                 device, segment, page, pd->block);   
#endif                                                                
            rtems_fdisk_page_desc_set_flags (pd, RTEMS_FDISK_PAGE_USED);
                                                                      
            ret = rtems_fdisk_seg_write_page_desc (fd, sc,            
 8003b78:	b9 a0 20 00 	mv r4,r13                                      <== NOT EXECUTED
 8003b7c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8003b80:	fb ff fd 90 	calli 80031c0 <rtems_fdisk_seg_write_page_desc><== NOT EXECUTED
                                                   page, pd);         
                                                                      
            if (ret)                                                  
 8003b84:	44 20 00 0b 	be r1,r0,8003bb0 <rtems_fdisk_recover_block_mappings+0x284><== NOT EXECUTED
            {                                                         
              rtems_fdisk_error ("forcing page to used failed: %d-%d-%d",
 8003b88:	ba 20 08 00 	mv r1,r17                                      <== NOT EXECUTED
 8003b8c:	ba 00 10 00 	mv r2,r16                                      <== NOT EXECUTED
 8003b90:	b9 e0 18 00 	mv r3,r15                                      <== NOT EXECUTED
 8003b94:	b9 c0 20 00 	mv r4,r14                                      <== NOT EXECUTED
 8003b98:	fb ff fe 08 	calli 80033b8 <rtems_fdisk_error>              <== NOT EXECUTED
 8003b9c:	e0 00 00 05 	bi 8003bb0 <rtems_fdisk_recover_block_mappings+0x284><== NOT EXECUTED
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 8003ba0:	2d a2 00 02 	lhu r2,(r13+2)                                 <== NOT EXECUTED
            sc->pages_used++;                                         
          }                                                           
        }                                                             
        else                                                          
        {                                                             
          if (rtems_fdisk_page_desc_flags_set (pd, RTEMS_FDISK_PAGE_USED))
 8003ba4:	20 43 00 02 	andi r3,r2,0x2                                 <== NOT EXECUTED
 8003ba8:	20 63 ff ff 	andi r3,r3,0xffff                              <== NOT EXECUTED
 8003bac:	5c 61 00 05 	bne r3,r1,8003bc0 <rtems_fdisk_recover_block_mappings+0x294><== NOT EXECUTED
          {                                                           
            sc->pages_used++;                                         
 8003bb0:	29 81 00 20 	lw r1,(r12+32)                                 <== NOT EXECUTED
 8003bb4:	34 21 00 01 	addi r1,r1,1                                   <== NOT EXECUTED
 8003bb8:	59 81 00 20 	sw (r12+32),r1                                 <== NOT EXECUTED
 8003bbc:	e0 00 00 26 	bi 8003c54 <rtems_fdisk_recover_block_mappings+0x328><== NOT EXECUTED
          }                                                           
          else if (rtems_fdisk_page_desc_flags_set (pd, RTEMS_FDISK_PAGE_ACTIVE))
 8003bc0:	20 42 00 01 	andi r2,r2,0x1                                 <== NOT EXECUTED
 8003bc4:	5c 40 00 21 	bne r2,r0,8003c48 <rtems_fdisk_recover_block_mappings+0x31c><== NOT EXECUTED
          {                                                           
            if (pd->block >= fd->block_count)                         
 8003bc8:	29 a6 00 04 	lw r6,(r13+4)                                  <== NOT EXECUTED
 8003bcc:	29 61 00 1c 	lw r1,(r11+28)                                 <== NOT EXECUTED
 8003bd0:	54 26 00 08 	bgu r1,r6,8003bf0 <rtems_fdisk_recover_block_mappings+0x2c4><== NOT EXECUTED
            {                                                         
#if RTEMS_FDISK_TRACE                                                 
              rtems_fdisk_warning (fd,                                
 8003bd4:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8003bd8:	ba 60 10 00 	mv r2,r19                                      <== NOT EXECUTED
 8003bdc:	ba 00 18 00 	mv r3,r16                                      <== NOT EXECUTED
 8003be0:	b9 e0 20 00 	mv r4,r15                                      <== NOT EXECUTED
 8003be4:	b9 c0 28 00 	mv r5,r14                                      <== NOT EXECUTED
 8003be8:	fb ff fd c9 	calli 800330c <rtems_fdisk_warning>            <== NOT EXECUTED
 8003bec:	e0 00 00 17 	bi 8003c48 <rtems_fdisk_recover_block_mappings+0x31c><== NOT EXECUTED
                                   "invalid block number: %d-%d-%d: block: %d",
                                   device, segment, page, pd->block); 
#endif                                                                
              sc->pages_bad++;                                        
            }                                                         
            else if (fd->blocks[pd->block].segment)                   
 8003bf0:	b8 c0 08 00 	mv r1,r6                                       <== NOT EXECUTED
 8003bf4:	34 02 00 03 	mvi r2,3                                       <== NOT EXECUTED
 8003bf8:	fb ff f6 3a 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 8003bfc:	29 64 00 18 	lw r4,(r11+24)                                 <== NOT EXECUTED
 8003c00:	b4 81 20 00 	add r4,r4,r1                                   <== NOT EXECUTED
 8003c04:	28 83 00 00 	lw r3,(r4+0)                                   <== NOT EXECUTED
 8003c08:	44 60 00 0a 	be r3,r0,8003c30 <rtems_fdisk_recover_block_mappings+0x304><== NOT EXECUTED
               * each block so we can tell which is the later block when
               * duplicates appear. A power down with a failed wirte could cause
               * a duplicate.                                         
               */                                                     
              const rtems_fdisk_segment_ctl* bsc = fd->blocks[pd->block].segment;
              rtems_fdisk_error ("duplicate block: %d-%d-%d: " \      
 8003c0c:	28 62 00 08 	lw r2,(r3+8)                                   <== NOT EXECUTED
 8003c10:	28 84 00 04 	lw r4,(r4+4)                                   <== NOT EXECUTED
 8003c14:	28 63 00 0c 	lw r3,(r3+12)                                  <== NOT EXECUTED
 8003c18:	ba 80 08 00 	mv r1,r20                                      <== NOT EXECUTED
 8003c1c:	ba 00 28 00 	mv r5,r16                                      <== NOT EXECUTED
 8003c20:	b9 e0 30 00 	mv r6,r15                                      <== NOT EXECUTED
 8003c24:	b9 c0 38 00 	mv r7,r14                                      <== NOT EXECUTED
 8003c28:	fb ff fd e4 	calli 80033b8 <rtems_fdisk_error>              <== NOT EXECUTED
 8003c2c:	e0 00 00 07 	bi 8003c48 <rtems_fdisk_recover_block_mappings+0x31c><== NOT EXECUTED
              fd->blocks[pd->block].page    = page;                   
                                                                      
              /*                                                      
               * The page is active.                                  
               */                                                     
              sc->pages_active++;                                     
 8003c30:	29 81 00 1c 	lw r1,(r12+28)                                 <== NOT EXECUTED
            {                                                         
              /**                                                     
               * @todo                                                
               * Add start up crc checks here.                        
               */                                                     
              fd->blocks[pd->block].segment = sc;                     
 8003c34:	58 8c 00 00 	sw (r4+0),r12                                  <== NOT EXECUTED
              fd->blocks[pd->block].page    = page;                   
 8003c38:	58 8e 00 04 	sw (r4+4),r14                                  <== NOT EXECUTED
                                                                      
              /*                                                      
               * The page is active.                                  
               */                                                     
              sc->pages_active++;                                     
 8003c3c:	34 21 00 01 	addi r1,r1,1                                   <== NOT EXECUTED
 8003c40:	59 81 00 1c 	sw (r12+28),r1                                 <== NOT EXECUTED
 8003c44:	e0 00 00 04 	bi 8003c54 <rtems_fdisk_recover_block_mappings+0x328><== NOT EXECUTED
            }                                                         
          }                                                           
          else                                                        
            sc->pages_bad++;                                          
 8003c48:	29 81 00 24 	lw r1,(r12+36)                                 <== NOT EXECUTED
 8003c4c:	34 21 00 01 	addi r1,r1,1                                   <== NOT EXECUTED
 8003c50:	59 81 00 24 	sw (r12+36),r1                                 <== NOT EXECUTED
       * are active and how many are used.                            
       *                                                              
       * If the page is active see if the block is with-in range and  
       * if the block is a duplicate.                                 
       */                                                             
      for (page = 0; page < sc->pages; page++, pd++)                  
 8003c54:	35 ce 00 01 	addi r14,r14,1                                 
 8003c58:	35 ad 00 08 	addi r13,r13,8                                 
 8003c5c:	29 81 00 14 	lw r1,(r12+20)                                 
 8003c60:	54 2e ff a8 	bgu r1,r14,8003b00 <rtems_fdisk_recover_block_mappings+0x1d4>
      }                                                               
                                                                      
      /*                                                              
       * Place the segment on to the correct queue.                   
       */                                                             
      rtems_fdisk_queue_segment (fd, sc);                             
 8003c64:	b9 60 08 00 	mv r1,r11                                      
 8003c68:	b9 80 10 00 	mv r2,r12                                      
 8003c6c:	fb ff fe b1 	calli 8003730 <rtems_fdisk_queue_segment>      
  fd->erased_blocks = 0;                                              
  fd->starvation_threshold = 0;                                       
  for (device = 0; device < fd->device_count; device++)               
  {                                                                   
    uint32_t segment;                                                 
    for (segment = 0; segment < fd->devices[device].segment_count; segment++)
 8003c70:	35 ef 00 01 	addi r15,r15,1                                 
 8003c74:	37 18 00 30 	addi r24,r24,48                                
 8003c78:	e0 00 00 03 	bi 8003c84 <rtems_fdisk_recover_block_mappings+0x358>
  /*                                                                  
   * Scan each segment or each device recovering the valid pages.     
   */                                                                 
  fd->erased_blocks = 0;                                              
  fd->starvation_threshold = 0;                                       
  for (device = 0; device < fd->device_count; device++)               
 8003c7c:	34 18 00 00 	mvi r24,0                                      
 8003c80:	34 0f 00 00 	mvi r15,0                                      
  {                                                                   
    uint32_t segment;                                                 
    for (segment = 0; segment < fd->devices[device].segment_count; segment++)
 8003c84:	29 61 00 2c 	lw r1,(r11+44)                                 
 8003c88:	b4 37 08 00 	add r1,r1,r23                                  
 8003c8c:	28 22 00 04 	lw r2,(r1+4)                                   
 8003c90:	54 4f ff 5f 	bgu r2,r15,8003a0c <rtems_fdisk_recover_block_mappings+0xe0>
  /*                                                                  
   * Scan each segment or each device recovering the valid pages.     
   */                                                                 
  fd->erased_blocks = 0;                                              
  fd->starvation_threshold = 0;                                       
  for (device = 0; device < fd->device_count; device++)               
 8003c94:	36 10 00 01 	addi r16,r16,1                                 
 8003c98:	36 f7 00 0c 	addi r23,r23,12                                
 8003c9c:	29 61 00 30 	lw r1,(r11+48)                                 
 8003ca0:	54 30 ff f7 	bgu r1,r16,8003c7c <rtems_fdisk_recover_block_mappings+0x350>
       */                                                             
      rtems_fdisk_queue_segment (fd, sc);                             
    }                                                                 
  }                                                                   
                                                                      
  return 0;                                                           
 8003ca4:	34 0e 00 00 	mvi r14,0                                      
}                                                                     
 8003ca8:	b9 c0 08 00 	mv r1,r14                                      
 8003cac:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003cb0:	2b 8b 00 44 	lw r11,(sp+68)                                 
 8003cb4:	2b 8c 00 40 	lw r12,(sp+64)                                 
 8003cb8:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 8003cbc:	2b 8e 00 38 	lw r14,(sp+56)                                 
 8003cc0:	2b 8f 00 34 	lw r15,(sp+52)                                 
 8003cc4:	2b 90 00 30 	lw r16,(sp+48)                                 
 8003cc8:	2b 91 00 2c 	lw r17,(sp+44)                                 
 8003ccc:	2b 92 00 28 	lw r18,(sp+40)                                 
 8003cd0:	2b 93 00 24 	lw r19,(sp+36)                                 
 8003cd4:	2b 94 00 20 	lw r20,(sp+32)                                 
 8003cd8:	2b 95 00 1c 	lw r21,(sp+28)                                 
 8003cdc:	2b 96 00 18 	lw r22,(sp+24)                                 
 8003ce0:	2b 97 00 14 	lw r23,(sp+20)                                 
 8003ce4:	2b 98 00 10 	lw r24,(sp+16)                                 
 8003ce8:	2b 99 00 0c 	lw r25,(sp+12)                                 
 8003cec:	2b 9b 00 08 	lw fp,(sp+8)                                   
 8003cf0:	37 9c 00 44 	addi sp,sp,68                                  
 8003cf4:	c3 a0 00 00 	ret                                            
                                                                      

08003d5c <rtems_fdisk_recycle_segment>: static int rtems_fdisk_recycle_segment (rtems_flashdisk* fd, rtems_fdisk_segment_ctl* ssc, rtems_fdisk_segment_ctl* dsc, uint32_t *pages) {
 8003d5c:	37 9c ff b8 	addi sp,sp,-72                                 
 8003d60:	5b 8b 00 48 	sw (sp+72),r11                                 
 8003d64:	5b 8c 00 44 	sw (sp+68),r12                                 
 8003d68:	5b 8d 00 40 	sw (sp+64),r13                                 
 8003d6c:	5b 8e 00 3c 	sw (sp+60),r14                                 
 8003d70:	5b 8f 00 38 	sw (sp+56),r15                                 
 8003d74:	5b 90 00 34 	sw (sp+52),r16                                 
 8003d78:	5b 91 00 30 	sw (sp+48),r17                                 
 8003d7c:	5b 92 00 2c 	sw (sp+44),r18                                 
 8003d80:	5b 93 00 28 	sw (sp+40),r19                                 
 8003d84:	5b 94 00 24 	sw (sp+36),r20                                 
 8003d88:	5b 95 00 20 	sw (sp+32),r21                                 
 8003d8c:	5b 96 00 1c 	sw (sp+28),r22                                 
 8003d90:	5b 97 00 18 	sw (sp+24),r23                                 
 8003d94:	5b 98 00 14 	sw (sp+20),r24                                 
 8003d98:	5b 99 00 10 	sw (sp+16),r25                                 
 8003d9c:	5b 9b 00 0c 	sw (sp+12),fp                                  
 8003da0:	5b 9d 00 08 	sw (sp+8),ra                                   
        rtems_fdisk_segment_queue_push_head (&fd->used, ssc);         
        return EIO;                                                   
      }                                                               
                                                                      
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, "recycle: %02d-%03d-%03d=>%02d-%03d-%03d",
 8003da4:	78 16 08 03 	mvhi r22,0x803                                 
                           rtems_fdisk_segment_ctl* dst_sc,           
                           uint32_t                 dst_page)         
{                                                                     
  int ret;                                                            
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, "  seg-copy-page: %02d-%03d~%03d=>%02d-%03d~%03d",
 8003da8:	78 15 08 03 	mvhi r21,0x803                                 
static int                                                            
rtems_fdisk_recycle_segment (rtems_flashdisk*         fd,             
                                    rtems_fdisk_segment_ctl* ssc,     
                                    rtems_fdisk_segment_ctl* dsc,     
                                    uint32_t *pages)                  
{                                                                     
 8003dac:	b8 20 58 00 	mv r11,r1                                      
 8003db0:	b8 40 68 00 	mv r13,r2                                      
 8003db4:	b8 60 60 00 	mv r12,r3                                      
 8003db8:	b8 80 90 00 	mv r18,r4                                      
  int      ret;                                                       
  uint32_t spage;                                                     
  uint32_t used = 0;                                                  
  uint32_t active = 0;                                                
                                                                      
  for (spage = 0; spage < ssc->pages; spage++)                        
 8003dbc:	34 17 00 00 	mvi r23,0                                      
                                    uint32_t *pages)                  
{                                                                     
  int      ret;                                                       
  uint32_t spage;                                                     
  uint32_t used = 0;                                                  
  uint32_t active = 0;                                                
 8003dc0:	34 14 00 00 	mvi r20,0                                      
                                    rtems_fdisk_segment_ctl* dsc,     
                                    uint32_t *pages)                  
{                                                                     
  int      ret;                                                       
  uint32_t spage;                                                     
  uint32_t used = 0;                                                  
 8003dc4:	34 13 00 00 	mvi r19,0                                      
  uint32_t active = 0;                                                
                                                                      
  for (spage = 0; spage < ssc->pages; spage++)                        
 8003dc8:	34 10 00 00 	mvi r16,0                                      
        rtems_fdisk_segment_queue_push_head (&fd->used, ssc);         
        return EIO;                                                   
      }                                                               
                                                                      
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, "recycle: %02d-%03d-%03d=>%02d-%03d-%03d",
 8003dcc:	3a d6 3e 94 	ori r22,r22,0x3e94                             
                           rtems_fdisk_segment_ctl* dst_sc,           
                           uint32_t                 dst_page)         
{                                                                     
  int ret;                                                            
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, "  seg-copy-page: %02d-%03d~%03d=>%02d-%03d~%03d",
 8003dd0:	3a b5 3e bc 	ori r21,r21,0x3ebc                             
  int      ret;                                                       
  uint32_t spage;                                                     
  uint32_t used = 0;                                                  
  uint32_t active = 0;                                                
                                                                      
  for (spage = 0; spage < ssc->pages; spage++)                        
 8003dd4:	e0 00 00 c4 	bi 80040e4 <rtems_fdisk_recycle_segment+0x388> 
  {                                                                   
    rtems_fdisk_page_desc* spd = &ssc->page_descriptors[spage];       
 8003dd8:	29 b1 00 10 	lw r17,(r13+16)                                
                                                                      
    if (!dsc && ssc->pages_active > 0)                                
 8003ddc:	5d 80 00 07 	bne r12,r0,8003df8 <rtems_fdisk_recycle_segment+0x9c>
 8003de0:	29 a1 00 1c 	lw r1,(r13+28)                                 
 8003de4:	44 2c 00 05 	be r1,r12,8003df8 <rtems_fdisk_recycle_segment+0x9c><== ALWAYS TAKEN
    {                                                                 
      rtems_fdisk_error ("recycle: no available dst segment");        
 8003de8:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8003dec:	38 21 3e 40 	ori r1,r1,0x3e40                               <== NOT EXECUTED
 8003df0:	fb ff fd 72 	calli 80033b8 <rtems_fdisk_error>              <== NOT EXECUTED
 8003df4:	e0 00 00 2f 	bi 8003eb0 <rtems_fdisk_recycle_segment+0x154> <== NOT EXECUTED
  uint32_t used = 0;                                                  
  uint32_t active = 0;                                                
                                                                      
  for (spage = 0; spage < ssc->pages; spage++)                        
  {                                                                   
    rtems_fdisk_page_desc* spd = &ssc->page_descriptors[spage];       
 8003df8:	b6 37 88 00 	add r17,r17,r23                                
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 8003dfc:	2e 22 00 02 	lhu r2,(r17+2)                                 
    {                                                                 
      rtems_fdisk_error ("recycle: no available dst segment");        
      return EIO;                                                     
    }                                                                 
                                                                      
    if (rtems_fdisk_page_desc_flags_set (spd, RTEMS_FDISK_PAGE_ACTIVE) &&
 8003e00:	20 41 00 01 	andi r1,r2,0x1                                 
 8003e04:	5c 20 00 ae 	bne r1,r0,80040bc <rtems_fdisk_recycle_segment+0x360><== NEVER TAKEN
 8003e08:	20 42 00 02 	andi r2,r2,0x2                                 
 8003e0c:	20 42 ff ff 	andi r2,r2,0xffff                              
 8003e10:	44 41 00 ab 	be r2,r1,80040bc <rtems_fdisk_recycle_segment+0x360><== NEVER TAKEN
 * Find the next available page in a segment.                         
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_next_available_page (rtems_fdisk_segment_ctl* sc)     
{                                                                     
  rtems_fdisk_page_desc* pd = &sc->page_descriptors[0];               
 8003e14:	29 99 00 10 	lw r25,(r12+16)                                
  uint32_t               page;                                        
                                                                      
  for (page = 0; page < sc->pages; page++, pd++)                      
 8003e18:	34 0f 00 00 	mvi r15,0                                      
 * Find the next available page in a segment.                         
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_next_available_page (rtems_fdisk_segment_ctl* sc)     
{                                                                     
  rtems_fdisk_page_desc* pd = &sc->page_descriptors[0];               
 8003e1c:	bb 20 c0 00 	mv r24,r25                                     
 8003e20:	e0 00 00 08 	bi 8003e40 <rtems_fdisk_recycle_segment+0xe4>  
  uint32_t               page;                                        
                                                                      
  for (page = 0; page < sc->pages; page++, pd++)                      
    if (rtems_fdisk_page_desc_erased (pd))                            
 8003e24:	bb 00 08 00 	mv r1,r24                                      
 8003e28:	fb ff fb b4 	calli 8002cf8 <rtems_fdisk_page_desc_erased>   
 8003e2c:	44 20 00 03 	be r1,r0,8003e38 <rtems_fdisk_recycle_segment+0xdc>
      dpage = rtems_fdisk_seg_next_available_page (dsc);              
      dpd   = &dsc->page_descriptors[dpage];                          
                                                                      
      active++;                                                       
                                                                      
      if (dpage >= dsc->pages)                                        
 8003e30:	51 ee 00 06 	bgeu r15,r14,8003e48 <rtems_fdisk_recycle_segment+0xec><== NEVER TAKEN
 8003e34:	e0 00 00 21 	bi 8003eb8 <rtems_fdisk_recycle_segment+0x15c> 
rtems_fdisk_seg_next_available_page (rtems_fdisk_segment_ctl* sc)     
{                                                                     
  rtems_fdisk_page_desc* pd = &sc->page_descriptors[0];               
  uint32_t               page;                                        
                                                                      
  for (page = 0; page < sc->pages; page++, pd++)                      
 8003e38:	35 ef 00 01 	addi r15,r15,1                                 
 8003e3c:	37 18 00 08 	addi r24,r24,8                                 
 8003e40:	29 8e 00 14 	lw r14,(r12+20)                                
 8003e44:	55 cf ff f8 	bgu r14,r15,8003e24 <rtems_fdisk_recycle_segment+0xc8><== ALWAYS TAKEN
      rtems_fdisk_segment_queue_push_tail (&fd->available, sc);       
  }                                                                   
}                                                                     
                                                                      
static int                                                            
rtems_fdisk_recycle_segment (rtems_flashdisk*         fd,             
 8003e48:	29 84 00 24 	lw r4,(r12+36)                                 <== NOT EXECUTED
 * active, used and bad pages.                                        
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_pages_available (const rtems_fdisk_segment_ctl* sc)   
{                                                                     
  return sc->pages - (sc->pages_active + sc->pages_used + sc->pages_bad);
 8003e4c:	29 81 00 20 	lw r1,(r12+32)                                 <== NOT EXECUTED
                                                                      
      active++;                                                       
                                                                      
      if (dpage >= dsc->pages)                                        
      {                                                               
        rtems_fdisk_error ("recycle: %02d-%03d: " \                   
 8003e50:	29 82 00 08 	lw r2,(r12+8)                                  <== NOT EXECUTED
      rtems_fdisk_segment_queue_push_tail (&fd->available, sc);       
  }                                                                   
}                                                                     
                                                                      
static int                                                            
rtems_fdisk_recycle_segment (rtems_flashdisk*         fd,             
 8003e54:	c8 04 20 00 	sub r4,r0,r4                                   <== NOT EXECUTED
 * active, used and bad pages.                                        
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_pages_available (const rtems_fdisk_segment_ctl* sc)   
{                                                                     
  return sc->pages - (sc->pages_active + sc->pages_used + sc->pages_bad);
 8003e58:	c8 81 20 00 	sub r4,r4,r1                                   <== NOT EXECUTED
 8003e5c:	29 81 00 1c 	lw r1,(r12+28)                                 <== NOT EXECUTED
                                                                      
      active++;                                                       
                                                                      
      if (dpage >= dsc->pages)                                        
      {                                                               
        rtems_fdisk_error ("recycle: %02d-%03d: " \                   
 8003e60:	29 83 00 0c 	lw r3,(r12+12)                                 <== NOT EXECUTED
 * active, used and bad pages.                                        
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_pages_available (const rtems_fdisk_segment_ctl* sc)   
{                                                                     
  return sc->pages - (sc->pages_active + sc->pages_used + sc->pages_bad);
 8003e64:	c8 81 20 00 	sub r4,r4,r1                                   <== NOT EXECUTED
                                                                      
      active++;                                                       
                                                                      
      if (dpage >= dsc->pages)                                        
      {                                                               
        rtems_fdisk_error ("recycle: %02d-%03d: " \                   
 8003e68:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8003e6c:	b4 8e 20 00 	add r4,r4,r14                                  <== NOT EXECUTED
 8003e70:	38 21 3e 64 	ori r1,r1,0x3e64                               <== NOT EXECUTED
 8003e74:	fb ff fd 51 	calli 80033b8 <rtems_fdisk_error>              <== NOT EXECUTED
                           "no page desc available: %d",              
                           dsc->device, dsc->segment,                 
                           rtems_fdisk_seg_pages_available (dsc));    
        dsc->failed = true;                                           
 8003e78:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
 8003e7c:	59 81 00 28 	sw (r12+40),r1                                 <== NOT EXECUTED
        rtems_fdisk_queue_segment (fd, dsc);                          
 8003e80:	b9 80 10 00 	mv r2,r12                                      <== NOT EXECUTED
 8003e84:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8003e88:	fb ff fe 2a 	calli 8003730 <rtems_fdisk_queue_segment>      <== NOT EXECUTED
rtems_fdisk_segment_queue_push_head (rtems_fdisk_segment_ctl_queue* queue,
                                     rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (sc)                                                             
  {                                                                   
    sc->next = queue->head;                                           
 8003e8c:	29 61 00 40 	lw r1,(r11+64)                                 <== NOT EXECUTED
 8003e90:	59 a1 00 00 	sw (r13+0),r1                                  <== NOT EXECUTED
    queue->head = sc;                                                 
                                                                      
    if (queue->tail == 0)                                             
 8003e94:	29 61 00 44 	lw r1,(r11+68)                                 <== NOT EXECUTED
                                     rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (sc)                                                             
  {                                                                   
    sc->next = queue->head;                                           
    queue->head = sc;                                                 
 8003e98:	59 6d 00 40 	sw (r11+64),r13                                <== NOT EXECUTED
                                                                      
    if (queue->tail == 0)                                             
 8003e9c:	5c 20 00 02 	bne r1,r0,8003ea4 <rtems_fdisk_recycle_segment+0x148><== NOT EXECUTED
      queue->tail = sc;                                               
 8003ea0:	59 6d 00 44 	sw (r11+68),r13                                <== NOT EXECUTED
    queue->count++;                                                   
 8003ea4:	29 61 00 48 	lw r1,(r11+72)                                 <== NOT EXECUTED
 8003ea8:	34 21 00 01 	addi r1,r1,1                                   <== NOT EXECUTED
 8003eac:	59 61 00 48 	sw (r11+72),r1                                 <== NOT EXECUTED
                           dsc->device, dsc->segment,                 
                           rtems_fdisk_seg_pages_available (dsc));    
        dsc->failed = true;                                           
        rtems_fdisk_queue_segment (fd, dsc);                          
        rtems_fdisk_segment_queue_push_head (&fd->used, ssc);         
        return EIO;                                                   
 8003eb0:	34 0e 00 05 	mvi r14,5                                      <== NOT EXECUTED
 8003eb4:	e0 00 00 a0 	bi 8004134 <rtems_fdisk_recycle_segment+0x3d8> <== NOT EXECUTED
      }                                                               
                                                                      
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, "recycle: %02d-%03d-%03d=>%02d-%03d-%03d",
 8003eb8:	29 a3 00 08 	lw r3,(r13+8)                                  
 8003ebc:	29 a4 00 0c 	lw r4,(r13+12)                                 
 8003ec0:	29 86 00 08 	lw r6,(r12+8)                                  
 8003ec4:	29 87 00 0c 	lw r7,(r12+12)                                 
 8003ec8:	ba c0 10 00 	mv r2,r22                                      
 8003ecc:	ba 00 28 00 	mv r5,r16                                      
 8003ed0:	b9 e0 40 00 	mv r8,r15                                      
 8003ed4:	b9 60 08 00 	mv r1,r11                                      
 8003ed8:	fb ff fb af 	calli 8002d94 <rtems_fdisk_info>               
                        ssc->device, ssc->segment, spage,             
                        dsc->device, dsc->segment, dpage);            
#endif                                                                
      ret = rtems_fdisk_seg_copy_page (fd, ssc,                       
 8003edc:	29 ae 00 18 	lw r14,(r13+24)                                
 8003ee0:	29 98 00 18 	lw r24,(r12+24)                                
                           rtems_fdisk_segment_ctl* dst_sc,           
                           uint32_t                 dst_page)         
{                                                                     
  int ret;                                                            
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, "  seg-copy-page: %02d-%03d~%03d=>%02d-%03d~%03d",
 8003ee4:	29 a3 00 08 	lw r3,(r13+8)                                  
 8003ee8:	29 a4 00 0c 	lw r4,(r13+12)                                 
 8003eec:	29 86 00 08 	lw r6,(r12+8)                                  
 8003ef0:	29 87 00 0c 	lw r7,(r12+12)                                 
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, "recycle: %02d-%03d-%03d=>%02d-%03d-%03d",
                        ssc->device, ssc->segment, spage,             
                        dsc->device, dsc->segment, dpage);            
#endif                                                                
      ret = rtems_fdisk_seg_copy_page (fd, ssc,                       
 8003ef4:	b6 0e 70 00 	add r14,r16,r14                                
 8003ef8:	b5 f8 c0 00 	add r24,r15,r24                                
                           rtems_fdisk_segment_ctl* dst_sc,           
                           uint32_t                 dst_page)         
{                                                                     
  int ret;                                                            
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, "  seg-copy-page: %02d-%03d~%03d=>%02d-%03d~%03d",
 8003efc:	b9 c0 28 00 	mv r5,r14                                      
 8003f00:	bb 00 40 00 	mv r8,r24                                      
 8003f04:	ba a0 10 00 	mv r2,r21                                      
 8003f08:	b9 60 08 00 	mv r1,r11                                      
 8003f0c:	fb ff fb ce 	calli 8002e44 <rtems_fdisk_printf>             
                           rtems_fdisk_segment_ctl* sc,               
                           uint32_t                 page,             
                           void*                    buffer)           
{                                                                     
  return rtems_fdisk_seg_read (fd, sc,                                
                               page * fd->block_size, buffer, fd->block_size);
 8003f10:	29 7b 00 14 	lw fp,(r11+20)                                 
rtems_fdisk_seg_read_page (const rtems_flashdisk*   fd,               
                           rtems_fdisk_segment_ctl* sc,               
                           uint32_t                 page,             
                           void*                    buffer)           
{                                                                     
  return rtems_fdisk_seg_read (fd, sc,                                
 8003f14:	b9 c0 08 00 	mv r1,r14                                      
 8003f18:	bb 60 10 00 	mv r2,fp                                       
 8003f1c:	fb ff f5 bf 	calli 8001618 <__mulsi3>                       
 8003f20:	29 64 00 68 	lw r4,(r11+104)                                
 8003f24:	b8 20 18 00 	mv r3,r1                                       
 8003f28:	b9 a0 10 00 	mv r2,r13                                      
 8003f2c:	b9 60 08 00 	mv r1,r11                                      
 8003f30:	bb 60 28 00 	mv r5,fp                                       
 8003f34:	fb ff fb f0 	calli 8002ef4 <rtems_fdisk_seg_read>           
 8003f38:	b8 20 70 00 	mv r14,r1                                      
                      src_sc->device, src_sc->segment, src_page,      
                      dst_sc->device, dst_sc->segment, dst_page);     
#endif                                                                
  ret = rtems_fdisk_seg_read_page (fd, src_sc, src_page,              
                                   fd->copy_buffer);                  
  if (ret)                                                            
 8003f3c:	5c 20 00 08 	bne r1,r0,8003f5c <rtems_fdisk_recycle_segment+0x200><== NEVER TAKEN
    return ret;                                                       
  return rtems_fdisk_seg_write_page (fd, dst_sc, dst_page,            
 8003f40:	29 64 00 68 	lw r4,(r11+104)                                
 8003f44:	b9 60 08 00 	mv r1,r11                                      
 8003f48:	b9 80 10 00 	mv r2,r12                                      
 8003f4c:	bb 00 18 00 	mv r3,r24                                      
 8003f50:	fb ff fc c2 	calli 8003258 <rtems_fdisk_seg_write_page>     
 8003f54:	b8 20 70 00 	mv r14,r1                                      
#endif                                                                
      ret = rtems_fdisk_seg_copy_page (fd, ssc,                       
                                       spage + ssc->pages_desc,       
                                       dsc,                           
                                       dpage + dsc->pages_desc);      
      if (ret)                                                        
 8003f58:	44 20 00 0c 	be r1,r0,8003f88 <rtems_fdisk_recycle_segment+0x22c><== ALWAYS TAKEN
      {                                                               
        rtems_fdisk_error ("recycle: %02d-%03d-%03d=>" \              
 8003f5c:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 8003f60:	29 b4 00 08 	lw r20,(r13+8)                                 <== NOT EXECUTED
 8003f64:	29 b3 00 0c 	lw r19,(r13+12)                                <== NOT EXECUTED
 8003f68:	29 92 00 08 	lw r18,(r12+8)                                 <== NOT EXECUTED
 8003f6c:	29 91 00 0c 	lw r17,(r12+12)                                <== NOT EXECUTED
 8003f70:	f8 00 79 bf 	calli 802266c <strerror>                       <== NOT EXECUTED
 8003f74:	b8 20 40 00 	mv r8,r1                                       <== NOT EXECUTED
 8003f78:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8003f7c:	5b 8e 00 04 	sw (sp+4),r14                                  <== NOT EXECUTED
 8003f80:	38 21 3e ec 	ori r1,r1,0x3eec                               <== NOT EXECUTED
 8003f84:	e0 00 00 18 	bi 8003fe4 <rtems_fdisk_recycle_segment+0x288> <== NOT EXECUTED
      uint32_t               dst_pages;                               
      rtems_fdisk_page_desc* dpd;                                     
      uint32_t               dpage;                                   
                                                                      
      dpage = rtems_fdisk_seg_next_available_page (dsc);              
      dpd   = &dsc->page_descriptors[dpage];                          
 8003f88:	34 02 00 03 	mvi r2,3                                       
 8003f8c:	b9 e0 08 00 	mv r1,r15                                      
 8003f90:	fb ff f5 54 	calli 80014e0 <__ashlsi3>                      
 8003f94:	b7 21 20 00 	add r4,r25,r1                                  
        rtems_fdisk_queue_segment (fd, dsc);                          
        rtems_fdisk_segment_queue_push_head (&fd->used, ssc);         
        return ret;                                                   
      }                                                               
                                                                      
      *dpd = *spd;                                                    
 8003f98:	2a 21 00 00 	lw r1,(r17+0)                                  
                                                                      
      ret = rtems_fdisk_seg_write_page_desc (fd,                      
 8003f9c:	b9 80 10 00 	mv r2,r12                                      
 8003fa0:	b9 e0 18 00 	mv r3,r15                                      
        rtems_fdisk_queue_segment (fd, dsc);                          
        rtems_fdisk_segment_queue_push_head (&fd->used, ssc);         
        return ret;                                                   
      }                                                               
                                                                      
      *dpd = *spd;                                                    
 8003fa4:	58 81 00 00 	sw (r4+0),r1                                   
 8003fa8:	2a 21 00 04 	lw r1,(r17+4)                                  
 8003fac:	58 81 00 04 	sw (r4+4),r1                                   
                                                                      
      ret = rtems_fdisk_seg_write_page_desc (fd,                      
 8003fb0:	b9 60 08 00 	mv r1,r11                                      
 8003fb4:	fb ff fc 83 	calli 80031c0 <rtems_fdisk_seg_write_page_desc>
 8003fb8:	b8 20 70 00 	mv r14,r1                                      
                                             dsc,                     
                                             dpage, dpd);             
                                                                      
      if (ret)                                                        
 8003fbc:	44 20 00 1e 	be r1,r0,8004034 <rtems_fdisk_recycle_segment+0x2d8>
      {                                                               
        rtems_fdisk_error ("recycle: %02d-%03d-%03d=>"   \            
 8003fc0:	29 b4 00 08 	lw r20,(r13+8)                                 <== NOT EXECUTED
 8003fc4:	29 b3 00 0c 	lw r19,(r13+12)                                <== NOT EXECUTED
 8003fc8:	29 92 00 08 	lw r18,(r12+8)                                 <== NOT EXECUTED
 8003fcc:	29 91 00 0c 	lw r17,(r12+12)                                <== NOT EXECUTED
 8003fd0:	f8 00 79 a7 	calli 802266c <strerror>                       <== NOT EXECUTED
 8003fd4:	b8 20 40 00 	mv r8,r1                                       <== NOT EXECUTED
 8003fd8:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8003fdc:	5b 8e 00 04 	sw (sp+4),r14                                  <== NOT EXECUTED
 8003fe0:	38 21 3f 30 	ori r1,r1,0x3f30                               <== NOT EXECUTED
 8003fe4:	ba 80 10 00 	mv r2,r20                                      <== NOT EXECUTED
 8003fe8:	ba 60 18 00 	mv r3,r19                                      <== NOT EXECUTED
 8003fec:	ba 00 20 00 	mv r4,r16                                      <== NOT EXECUTED
 8003ff0:	ba 40 28 00 	mv r5,r18                                      <== NOT EXECUTED
 8003ff4:	ba 20 30 00 	mv r6,r17                                      <== NOT EXECUTED
 8003ff8:	b9 e0 38 00 	mv r7,r15                                      <== NOT EXECUTED
 8003ffc:	fb ff fc ef 	calli 80033b8 <rtems_fdisk_error>              <== NOT EXECUTED
                           "%02d-%03d-%03d: copy pd failed: %s (%d)", 
                           ssc->device, ssc->segment, spage,          
                           dsc->device, dsc->segment, dpage,          
                           strerror (ret), ret);                      
        rtems_fdisk_queue_segment (fd, dsc);                          
 8004000:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8004004:	b9 80 10 00 	mv r2,r12                                      <== NOT EXECUTED
 8004008:	fb ff fd ca 	calli 8003730 <rtems_fdisk_queue_segment>      <== NOT EXECUTED
rtems_fdisk_segment_queue_push_head (rtems_fdisk_segment_ctl_queue* queue,
                                     rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (sc)                                                             
  {                                                                   
    sc->next = queue->head;                                           
 800400c:	29 61 00 40 	lw r1,(r11+64)                                 <== NOT EXECUTED
 8004010:	59 a1 00 00 	sw (r13+0),r1                                  <== NOT EXECUTED
    queue->head = sc;                                                 
                                                                      
    if (queue->tail == 0)                                             
 8004014:	29 61 00 44 	lw r1,(r11+68)                                 <== NOT EXECUTED
                                     rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (sc)                                                             
  {                                                                   
    sc->next = queue->head;                                           
    queue->head = sc;                                                 
 8004018:	59 6d 00 40 	sw (r11+64),r13                                <== NOT EXECUTED
                                                                      
    if (queue->tail == 0)                                             
 800401c:	5c 20 00 02 	bne r1,r0,8004024 <rtems_fdisk_recycle_segment+0x2c8><== NOT EXECUTED
      queue->tail = sc;                                               
 8004020:	59 6d 00 44 	sw (r11+68),r13                                <== NOT EXECUTED
    queue->count++;                                                   
 8004024:	29 61 00 48 	lw r1,(r11+72)                                 <== NOT EXECUTED
 8004028:	34 21 00 01 	addi r1,r1,1                                   <== NOT EXECUTED
 800402c:	59 61 00 48 	sw (r11+72),r1                                 <== NOT EXECUTED
 8004030:	e0 00 00 41 	bi 8004134 <rtems_fdisk_recycle_segment+0x3d8> <== NOT EXECUTED
        rtems_fdisk_queue_segment (fd, dsc);                          
        rtems_fdisk_segment_queue_push_head (&fd->used, ssc);         
        return ret;                                                   
      }                                                               
                                                                      
      dsc->pages_active++;                                            
 8004034:	29 81 00 1c 	lw r1,(r12+28)                                 
       */                                                             
                                                                      
      ssc->pages_active--;                                            
      ssc->pages_used++;                                              
                                                                      
      fd->blocks[spd->block].segment = dsc;                           
 8004038:	34 02 00 03 	mvi r2,3                                       
        rtems_fdisk_queue_segment (fd, dsc);                          
        rtems_fdisk_segment_queue_push_head (&fd->used, ssc);         
        return ret;                                                   
      }                                                               
                                                                      
      dsc->pages_active++;                                            
 800403c:	34 21 00 01 	addi r1,r1,1                                   
 8004040:	59 81 00 1c 	sw (r12+28),r1                                 
       * segment will be erased. Power down could be a problem.       
       * We do the stats to make sure everything is as it should      
       * be.                                                          
       */                                                             
                                                                      
      ssc->pages_active--;                                            
 8004044:	29 a1 00 1c 	lw r1,(r13+28)                                 
 8004048:	34 21 ff ff 	addi r1,r1,-1                                  
 800404c:	59 a1 00 1c 	sw (r13+28),r1                                 
      ssc->pages_used++;                                              
 8004050:	29 a1 00 20 	lw r1,(r13+32)                                 
 8004054:	34 21 00 01 	addi r1,r1,1                                   
 8004058:	59 a1 00 20 	sw (r13+32),r1                                 
                                                                      
      fd->blocks[spd->block].segment = dsc;                           
 800405c:	2a 21 00 04 	lw r1,(r17+4)                                  
 8004060:	fb ff f5 20 	calli 80014e0 <__ashlsi3>                      
 8004064:	29 62 00 18 	lw r2,(r11+24)                                 
 8004068:	b4 41 08 00 	add r1,r2,r1                                   
 800406c:	58 2c 00 00 	sw (r1+0),r12                                  
      fd->blocks[spd->block].page    = dpage;                         
 8004070:	58 2f 00 04 	sw (r1+4),r15                                  
                                                                      
      /*                                                              
       * Place the segment on to the correct queue.                   
       */                                                             
      rtems_fdisk_queue_segment (fd, dsc);                            
 8004074:	b9 80 10 00 	mv r2,r12                                      
 8004078:	b9 60 08 00 	mv r1,r11                                      
 800407c:	fb ff fd ad 	calli 8003730 <rtems_fdisk_queue_segment>      
 * active, used and bad pages.                                        
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_pages_available (const rtems_fdisk_segment_ctl* sc)   
{                                                                     
  return sc->pages - (sc->pages_active + sc->pages_used + sc->pages_bad);
 8004080:	29 82 00 20 	lw r2,(r12+32)                                 
 8004084:	29 81 00 1c 	lw r1,(r12+28)                                 
 8004088:	b4 41 08 00 	add r1,r2,r1                                   
 800408c:	29 82 00 24 	lw r2,(r12+36)                                 
 8004090:	b4 22 08 00 	add r1,r1,r2                                   
                                                                      
      /*                                                              
       * Get new destination segment if necessary.                    
       */                                                             
      dst_pages = rtems_fdisk_seg_pages_available (dsc);              
      if (dst_pages == 0)                                             
 8004094:	29 82 00 14 	lw r2,(r12+20)                                 
 8004098:	5c 41 00 04 	bne r2,r1,80040a8 <rtems_fdisk_recycle_segment+0x34c>
        dsc = rtems_fdisk_seg_most_available (&fd->available);        
 800409c:	29 61 00 34 	lw r1,(r11+52)                                 
 80040a0:	fb ff ff 16 	calli 8003cf8 <rtems_fdisk_seg_most_available.clone.9>
 80040a4:	b8 20 60 00 	mv r12,r1                                      
                                                                      
      (*pages)--;                                                     
 80040a8:	2a 41 00 00 	lw r1,(r18+0)                                  
      uint32_t               dpage;                                   
                                                                      
      dpage = rtems_fdisk_seg_next_available_page (dsc);              
      dpd   = &dsc->page_descriptors[dpage];                          
                                                                      
      active++;                                                       
 80040ac:	36 94 00 01 	addi r20,r20,1                                 
       */                                                             
      dst_pages = rtems_fdisk_seg_pages_available (dsc);              
      if (dst_pages == 0)                                             
        dsc = rtems_fdisk_seg_most_available (&fd->available);        
                                                                      
      (*pages)--;                                                     
 80040b0:	34 21 ff ff 	addi r1,r1,-1                                  
 80040b4:	5a 41 00 00 	sw (r18+0),r1                                  
      return EIO;                                                     
    }                                                                 
                                                                      
    if (rtems_fdisk_page_desc_flags_set (spd, RTEMS_FDISK_PAGE_ACTIVE) &&
        !rtems_fdisk_page_desc_flags_set (spd, RTEMS_FDISK_PAGE_USED))
    {                                                                 
 80040b8:	e0 00 00 09 	bi 80040dc <rtems_fdisk_recycle_segment+0x380> 
      if (dst_pages == 0)                                             
        dsc = rtems_fdisk_seg_most_available (&fd->available);        
                                                                      
      (*pages)--;                                                     
    }                                                                 
    else if (rtems_fdisk_page_desc_erased (spd))                      
 80040bc:	ba 20 08 00 	mv r1,r17                                      
 80040c0:	fb ff fb 0e 	calli 8002cf8 <rtems_fdisk_page_desc_erased>   
 80040c4:	44 20 00 05 	be r1,r0,80040d8 <rtems_fdisk_recycle_segment+0x37c><== ALWAYS TAKEN
    {                                                                 
      --fd->erased_blocks;                                            
 80040c8:	29 61 00 28 	lw r1,(r11+40)                                 <== NOT EXECUTED
 80040cc:	34 21 ff ff 	addi r1,r1,-1                                  <== NOT EXECUTED
 80040d0:	59 61 00 28 	sw (r11+40),r1                                 <== NOT EXECUTED
 80040d4:	e0 00 00 02 	bi 80040dc <rtems_fdisk_recycle_segment+0x380> <== NOT EXECUTED
    }                                                                 
    else                                                              
    {                                                                 
      used++;                                                         
 80040d8:	36 73 00 01 	addi r19,r19,1                                 
  int      ret;                                                       
  uint32_t spage;                                                     
  uint32_t used = 0;                                                  
  uint32_t active = 0;                                                
                                                                      
  for (spage = 0; spage < ssc->pages; spage++)                        
 80040dc:	36 10 00 01 	addi r16,r16,1                                 
 80040e0:	36 f7 00 08 	addi r23,r23,8                                 
 80040e4:	29 a1 00 14 	lw r1,(r13+20)                                 
 80040e8:	54 30 ff 3c 	bgu r1,r16,8003dd8 <rtems_fdisk_recycle_segment+0x7c><== NEVER TAKEN
      used++;                                                         
    }                                                                 
  }                                                                   
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, "ssc end: %d-%d: p=%ld, a=%ld, u=%ld",      
 80040ec:	29 a3 00 08 	lw r3,(r13+8)                                  
 80040f0:	29 a4 00 0c 	lw r4,(r13+12)                                 
 80040f4:	78 02 08 03 	mvhi r2,0x803                                  
 80040f8:	38 42 3f 74 	ori r2,r2,0x3f74                               
 80040fc:	b9 60 08 00 	mv r1,r11                                      
 8004100:	ba 40 28 00 	mv r5,r18                                      
 8004104:	ba 80 30 00 	mv r6,r20                                      
 8004108:	ba 60 38 00 	mv r7,r19                                      
 800410c:	fb ff fb 4e 	calli 8002e44 <rtems_fdisk_printf>             
                      ssc->device, ssc->segment,                      
                      pages, active, used);                           
#endif                                                                
  if (ssc->pages_active != 0)                                         
 8004110:	29 a2 00 1c 	lw r2,(r13+28)                                 
 8004114:	44 40 00 04 	be r2,r0,8004124 <rtems_fdisk_recycle_segment+0x3c8><== ALWAYS TAKEN
  {                                                                   
    rtems_fdisk_error ("compacting: ssc pages not 0: %d",             
 8004118:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800411c:	38 21 3f 98 	ori r1,r1,0x3f98                               <== NOT EXECUTED
 8004120:	fb ff fc a6 	calli 80033b8 <rtems_fdisk_error>              <== NOT EXECUTED
                       ssc->pages_active);                            
  }                                                                   
                                                                      
  ret = rtems_fdisk_erase_segment (fd, ssc);                          
 8004124:	b9 60 08 00 	mv r1,r11                                      
 8004128:	b9 a0 10 00 	mv r2,r13                                      
 800412c:	fb ff fd 2e 	calli 80035e4 <rtems_fdisk_erase_segment>      
 8004130:	b8 20 70 00 	mv r14,r1                                      
                                                                      
  return ret;                                                         
}                                                                     
 8004134:	b9 c0 08 00 	mv r1,r14                                      
 8004138:	2b 9d 00 08 	lw ra,(sp+8)                                   
 800413c:	2b 8b 00 48 	lw r11,(sp+72)                                 
 8004140:	2b 8c 00 44 	lw r12,(sp+68)                                 
 8004144:	2b 8d 00 40 	lw r13,(sp+64)                                 
 8004148:	2b 8e 00 3c 	lw r14,(sp+60)                                 
 800414c:	2b 8f 00 38 	lw r15,(sp+56)                                 
 8004150:	2b 90 00 34 	lw r16,(sp+52)                                 
 8004154:	2b 91 00 30 	lw r17,(sp+48)                                 
 8004158:	2b 92 00 2c 	lw r18,(sp+44)                                 
 800415c:	2b 93 00 28 	lw r19,(sp+40)                                 
 8004160:	2b 94 00 24 	lw r20,(sp+36)                                 
 8004164:	2b 95 00 20 	lw r21,(sp+32)                                 
 8004168:	2b 96 00 1c 	lw r22,(sp+28)                                 
 800416c:	2b 97 00 18 	lw r23,(sp+24)                                 
 8004170:	2b 98 00 14 	lw r24,(sp+20)                                 
 8004174:	2b 99 00 10 	lw r25,(sp+16)                                 
 8004178:	2b 9b 00 0c 	lw fp,(sp+12)                                  
 800417c:	37 9c 00 48 	addi sp,sp,72                                  
 8004180:	c3 a0 00 00 	ret                                            
                                                                      

080030bc <rtems_fdisk_seg_write>: rtems_fdisk_seg_write (const rtems_flashdisk* fd, rtems_fdisk_segment_ctl* sc, uint32_t offset, const void* buffer, uint32_t size) {
 80030bc:	37 9c ff d8 	addi sp,sp,-40                                 
 80030c0:	5b 8b 00 28 	sw (sp+40),r11                                 
 80030c4:	5b 8c 00 24 	sw (sp+36),r12                                 
 80030c8:	5b 8d 00 20 	sw (sp+32),r13                                 
 80030cc:	5b 8e 00 1c 	sw (sp+28),r14                                 
 80030d0:	5b 8f 00 18 	sw (sp+24),r15                                 
 80030d4:	5b 90 00 14 	sw (sp+20),r16                                 
 80030d8:	5b 91 00 10 	sw (sp+16),r17                                 
 80030dc:	5b 92 00 0c 	sw (sp+12),r18                                 
 80030e0:	5b 93 00 08 	sw (sp+8),r19                                  
 80030e4:	5b 9d 00 04 	sw (sp+4),ra                                   
  int ret;                                                            
  uint32_t                           device;                          
  uint32_t                           segment;                         
  const rtems_fdisk_segment_desc*    sd;                              
  const rtems_fdisk_driver_handlers* ops;                             
  device = sc->device;                                                
 80030e8:	28 4b 00 08 	lw r11,(r2+8)                                  
  segment = sc->segment;                                              
 80030ec:	28 4d 00 0c 	lw r13,(r2+12)                                 
rtems_fdisk_seg_write (const rtems_flashdisk*   fd,                   
                       rtems_fdisk_segment_ctl* sc,                   
                       uint32_t                 offset,               
                       const void*              buffer,               
                       uint32_t                 size)                 
{                                                                     
 80030f0:	b8 20 70 00 	mv r14,r1                                      
 80030f4:	b8 40 60 00 	mv r12,r2                                      
static const rtems_fdisk_segment_desc*                                
rtems_fdisk_seg_descriptor (const rtems_flashdisk* fd,                
                            uint32_t               device,            
                            uint32_t               segment)           
{                                                                     
  return fd->devices[device].segments[segment].descriptor;            
 80030f8:	b9 60 08 00 	mv r1,r11                                      
 80030fc:	34 02 00 01 	mvi r2,1                                       
rtems_fdisk_seg_write (const rtems_flashdisk*   fd,                   
                       rtems_fdisk_segment_ctl* sc,                   
                       uint32_t                 offset,               
                       const void*              buffer,               
                       uint32_t                 size)                 
{                                                                     
 8003100:	b8 60 88 00 	mv r17,r3                                      
 8003104:	b8 a0 80 00 	mv r16,r5                                      
 8003108:	b8 80 90 00 	mv r18,r4                                      
static const rtems_fdisk_segment_desc*                                
rtems_fdisk_seg_descriptor (const rtems_flashdisk* fd,                
                            uint32_t               device,            
                            uint32_t               segment)           
{                                                                     
  return fd->devices[device].segments[segment].descriptor;            
 800310c:	fb ff f8 f5 	calli 80014e0 <__ashlsi3>                      
 8003110:	34 02 00 02 	mvi r2,2                                       
 8003114:	b4 2b 08 00 	add r1,r1,r11                                  
 8003118:	fb ff f8 f2 	calli 80014e0 <__ashlsi3>                      
 800311c:	29 cf 00 2c 	lw r15,(r14+44)                                
 8003120:	34 02 00 30 	mvi r2,48                                      
 8003124:	b5 e1 78 00 	add r15,r15,r1                                 
 8003128:	29 f3 00 00 	lw r19,(r15+0)                                 
 800312c:	b9 a0 08 00 	mv r1,r13                                      
 8003130:	fb ff f9 3a 	calli 8001618 <__mulsi3>                       
 8003134:	b6 61 08 00 	add r1,r19,r1                                  
 8003138:	28 33 00 04 	lw r19,(r1+4)                                  
  const rtems_fdisk_segment_desc*    sd;                              
  const rtems_fdisk_driver_handlers* ops;                             
  device = sc->device;                                                
  segment = sc->segment;                                              
  sd = rtems_fdisk_seg_descriptor (fd, device, segment);              
  ops = fd->devices[device].descriptor->flash_ops;                    
 800313c:	29 e1 00 08 	lw r1,(r15+8)                                  
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, "  seg-write: %02d-%03d: o=%08x s=%d",      
 8003140:	78 02 08 03 	mvhi r2,0x803                                  
 8003144:	38 42 3c 44 	ori r2,r2,0x3c44                               
  const rtems_fdisk_segment_desc*    sd;                              
  const rtems_fdisk_driver_handlers* ops;                             
  device = sc->device;                                                
  segment = sc->segment;                                              
  sd = rtems_fdisk_seg_descriptor (fd, device, segment);              
  ops = fd->devices[device].descriptor->flash_ops;                    
 8003148:	28 2f 00 08 	lw r15,(r1+8)                                  
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, "  seg-write: %02d-%03d: o=%08x s=%d",      
 800314c:	b9 60 18 00 	mv r3,r11                                      
 8003150:	b9 a0 20 00 	mv r4,r13                                      
 8003154:	ba 20 28 00 	mv r5,r17                                      
 8003158:	ba 00 30 00 	mv r6,r16                                      
 800315c:	b9 c0 08 00 	mv r1,r14                                      
 8003160:	fb ff ff 39 	calli 8002e44 <rtems_fdisk_printf>             
                      device, segment, offset, size);                 
#endif                                                                
  ret = ops->write (sd, device, segment, offset, buffer, size);       
 8003164:	29 e7 00 04 	lw r7,(r15+4)                                  
 8003168:	ba 60 08 00 	mv r1,r19                                      
 800316c:	b9 60 10 00 	mv r2,r11                                      
 8003170:	b9 a0 18 00 	mv r3,r13                                      
 8003174:	ba 20 20 00 	mv r4,r17                                      
 8003178:	ba 40 28 00 	mv r5,r18                                      
 800317c:	ba 00 30 00 	mv r6,r16                                      
 8003180:	d8 e0 00 00 	call r7                                        
  if (ret)                                                            
 8003184:	44 20 00 03 	be r1,r0,8003190 <rtems_fdisk_seg_write+0xd4>  <== ALWAYS TAKEN
    sc->failed = true;                                                
 8003188:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 800318c:	59 82 00 28 	sw (r12+40),r2                                 <== NOT EXECUTED
                                                                      
  return ret;                                                         
}                                                                     
 8003190:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003194:	2b 8b 00 28 	lw r11,(sp+40)                                 
 8003198:	2b 8c 00 24 	lw r12,(sp+36)                                 
 800319c:	2b 8d 00 20 	lw r13,(sp+32)                                 
 80031a0:	2b 8e 00 1c 	lw r14,(sp+28)                                 
 80031a4:	2b 8f 00 18 	lw r15,(sp+24)                                 
 80031a8:	2b 90 00 14 	lw r16,(sp+20)                                 
 80031ac:	2b 91 00 10 	lw r17,(sp+16)                                 
 80031b0:	2b 92 00 0c 	lw r18,(sp+12)                                 
 80031b4:	2b 93 00 08 	lw r19,(sp+8)                                  
 80031b8:	37 9c 00 28 	addi sp,sp,40                                  
 80031bc:	c3 a0 00 00 	ret                                            
                                                                      

08003258 <rtems_fdisk_seg_write_page>: static int rtems_fdisk_seg_write_page (rtems_flashdisk* fd, rtems_fdisk_segment_ctl* sc, uint32_t page, const void* buffer) {
 8003258:	37 9c ff e8 	addi sp,sp,-24                                 
 800325c:	5b 8b 00 18 	sw (sp+24),r11                                 
 8003260:	5b 8c 00 14 	sw (sp+20),r12                                 
 8003264:	5b 8d 00 10 	sw (sp+16),r13                                 
 8003268:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800326c:	5b 8f 00 08 	sw (sp+8),r15                                  
 8003270:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003274:	b8 20 58 00 	mv r11,r1                                      
  if ((fd->flags & RTEMS_FDISK_BLANK_CHECK_BEFORE_WRITE))             
 8003278:	28 21 00 08 	lw r1,(r1+8)                                   
static int                                                            
rtems_fdisk_seg_write_page (rtems_flashdisk*         fd,              
                            rtems_fdisk_segment_ctl* sc,              
                            uint32_t                 page,            
                            const void*              buffer)          
{                                                                     
 800327c:	b8 40 68 00 	mv r13,r2                                      
 8003280:	b8 60 70 00 	mv r14,r3                                      
  if ((fd->flags & RTEMS_FDISK_BLANK_CHECK_BEFORE_WRITE))             
 8003284:	20 21 00 08 	andi r1,r1,0x8                                 
static int                                                            
rtems_fdisk_seg_write_page (rtems_flashdisk*         fd,              
                            rtems_fdisk_segment_ctl* sc,              
                            uint32_t                 page,            
                            const void*              buffer)          
{                                                                     
 8003288:	b8 80 78 00 	mv r15,r4                                      
  if ((fd->flags & RTEMS_FDISK_BLANK_CHECK_BEFORE_WRITE))             
 800328c:	44 20 00 0b 	be r1,r0,80032b8 <rtems_fdisk_seg_write_page+0x60><== NEVER TAKEN
rtems_fdisk_seg_blank_check_page (const rtems_flashdisk*   fd,        
                                  rtems_fdisk_segment_ctl* sc,        
                                  uint32_t                 page)      
{                                                                     
  return rtems_fdisk_seg_blank_check (fd, sc,                         
                                      page * fd->block_size, fd->block_size);
 8003290:	29 6c 00 14 	lw r12,(r11+20)                                
static int                                                            
rtems_fdisk_seg_blank_check_page (const rtems_flashdisk*   fd,        
                                  rtems_fdisk_segment_ctl* sc,        
                                  uint32_t                 page)      
{                                                                     
  return rtems_fdisk_seg_blank_check (fd, sc,                         
 8003294:	b8 60 08 00 	mv r1,r3                                       
 8003298:	b9 80 10 00 	mv r2,r12                                      
 800329c:	fb ff f8 df 	calli 8001618 <__mulsi3>                       
 80032a0:	b8 20 18 00 	mv r3,r1                                       
 80032a4:	b9 a0 10 00 	mv r2,r13                                      
 80032a8:	b9 60 08 00 	mv r1,r11                                      
 80032ac:	b9 80 20 00 	mv r4,r12                                      
 80032b0:	fb ff ff 4c 	calli 8002fe0 <rtems_fdisk_seg_blank_check>    
                            const void*              buffer)          
{                                                                     
  if ((fd->flags & RTEMS_FDISK_BLANK_CHECK_BEFORE_WRITE))             
  {                                                                   
    int ret = rtems_fdisk_seg_blank_check_page (fd, sc, page);        
    if (ret)                                                          
 80032b4:	5c 20 00 0e 	bne r1,r0,80032ec <rtems_fdisk_seg_write_page+0x94><== NEVER TAKEN
      return ret;                                                     
  }                                                                   
  --fd->erased_blocks;                                                
 80032b8:	29 61 00 28 	lw r1,(r11+40)                                 
  return rtems_fdisk_seg_write (fd, sc,                               
                                page * fd->block_size, buffer, fd->block_size);
 80032bc:	29 6c 00 14 	lw r12,(r11+20)                                
  {                                                                   
    int ret = rtems_fdisk_seg_blank_check_page (fd, sc, page);        
    if (ret)                                                          
      return ret;                                                     
  }                                                                   
  --fd->erased_blocks;                                                
 80032c0:	34 21 ff ff 	addi r1,r1,-1                                  
 80032c4:	59 61 00 28 	sw (r11+40),r1                                 
  return rtems_fdisk_seg_write (fd, sc,                               
 80032c8:	b9 80 10 00 	mv r2,r12                                      
 80032cc:	b9 c0 08 00 	mv r1,r14                                      
 80032d0:	fb ff f8 d2 	calli 8001618 <__mulsi3>                       
 80032d4:	b8 20 18 00 	mv r3,r1                                       
 80032d8:	b9 a0 10 00 	mv r2,r13                                      
 80032dc:	b9 60 08 00 	mv r1,r11                                      
 80032e0:	b9 e0 20 00 	mv r4,r15                                      
 80032e4:	b9 80 28 00 	mv r5,r12                                      
 80032e8:	fb ff ff 75 	calli 80030bc <rtems_fdisk_seg_write>          
                                page * fd->block_size, buffer, fd->block_size);
}                                                                     
 80032ec:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80032f0:	2b 8b 00 18 	lw r11,(sp+24)                                 
 80032f4:	2b 8c 00 14 	lw r12,(sp+20)                                 
 80032f8:	2b 8d 00 10 	lw r13,(sp+16)                                 
 80032fc:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8003300:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8003304:	37 9c 00 18 	addi sp,sp,24                                  
 8003308:	c3 a0 00 00 	ret                                            
                                                                      

080031c0 <rtems_fdisk_seg_write_page_desc>: static int rtems_fdisk_seg_write_page_desc (const rtems_flashdisk* fd, rtems_fdisk_segment_ctl* sc, uint32_t page, const rtems_fdisk_page_desc* page_desc) {
 80031c0:	37 9c ff ec 	addi sp,sp,-20                                 
 80031c4:	5b 8b 00 14 	sw (sp+20),r11                                 
 80031c8:	5b 8c 00 10 	sw (sp+16),r12                                 
 80031cc:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80031d0:	5b 8e 00 08 	sw (sp+8),r14                                  
 80031d4:	5b 9d 00 04 	sw (sp+4),ra                                   
 80031d8:	b8 20 58 00 	mv r11,r1                                      
 80031dc:	b8 40 68 00 	mv r13,r2                                      
  uint32_t offset = page * sizeof (rtems_fdisk_page_desc);            
 80031e0:	b8 60 08 00 	mv r1,r3                                       
 80031e4:	34 02 00 03 	mvi r2,3                                       
static int                                                            
rtems_fdisk_seg_write_page_desc (const rtems_flashdisk*       fd,     
                                 rtems_fdisk_segment_ctl*     sc,     
                                 uint32_t                     page,   
                                 const rtems_fdisk_page_desc* page_desc)
{                                                                     
 80031e8:	b8 80 70 00 	mv r14,r4                                      
  uint32_t offset = page * sizeof (rtems_fdisk_page_desc);            
 80031ec:	fb ff f8 bd 	calli 80014e0 <__ashlsi3>                      
 80031f0:	b8 20 60 00 	mv r12,r1                                      
  if ((fd->flags & RTEMS_FDISK_BLANK_CHECK_BEFORE_WRITE))             
 80031f4:	29 61 00 08 	lw r1,(r11+8)                                  
 80031f8:	20 21 00 08 	andi r1,r1,0x8                                 
 80031fc:	44 20 00 08 	be r1,r0,800321c <rtems_fdisk_seg_write_page_desc+0x5c><== NEVER TAKEN
  {                                                                   
    int ret = rtems_fdisk_seg_blank_check (fd, sc,                    
 8003200:	b9 60 08 00 	mv r1,r11                                      
 8003204:	b9 a0 10 00 	mv r2,r13                                      
 8003208:	b9 80 18 00 	mv r3,r12                                      
 800320c:	34 04 00 08 	mvi r4,8                                       
 8003210:	fb ff ff 74 	calli 8002fe0 <rtems_fdisk_seg_blank_check>    
 8003214:	b8 20 28 00 	mv r5,r1                                       
                                           offset,                    
                                           sizeof (rtems_fdisk_page_desc));
    if (ret)                                                          
 8003218:	5c 20 00 08 	bne r1,r0,8003238 <rtems_fdisk_seg_write_page_desc+0x78><== NEVER TAKEN
      return ret;                                                     
  }                                                                   
  return rtems_fdisk_seg_write (fd, sc, offset,                       
 800321c:	34 05 00 08 	mvi r5,8                                       
 8003220:	b9 60 08 00 	mv r1,r11                                      
 8003224:	b9 a0 10 00 	mv r2,r13                                      
 8003228:	b9 80 18 00 	mv r3,r12                                      
 800322c:	b9 c0 20 00 	mv r4,r14                                      
 8003230:	fb ff ff a3 	calli 80030bc <rtems_fdisk_seg_write>          
 8003234:	b8 20 28 00 	mv r5,r1                                       
                                page_desc, sizeof (rtems_fdisk_page_desc));
}                                                                     
 8003238:	b8 a0 08 00 	mv r1,r5                                       
 800323c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003240:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8003244:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8003248:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800324c:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8003250:	37 9c 00 14 	addi sp,sp,20                                  
 8003254:	c3 a0 00 00 	ret                                            
                                                                      

08002c34 <rtems_fdisk_segment_queue_pop_head>: * Pop the head of the segment control queue. */ static rtems_fdisk_segment_ctl* rtems_fdisk_segment_queue_pop_head (rtems_fdisk_segment_ctl_queue* queue) { if (queue->head)
 8002c34:	28 22 00 00 	lw r2,(r1+0)                                   
 8002c38:	44 40 00 09 	be r2,r0,8002c5c <rtems_fdisk_segment_queue_pop_head+0x28><== NEVER TAKEN
  {                                                                   
    rtems_fdisk_segment_ctl* sc = queue->head;                        
                                                                      
    queue->head = sc->next;                                           
 8002c3c:	28 43 00 00 	lw r3,(r2+0)                                   
 8002c40:	58 23 00 00 	sw (r1+0),r3                                   
    if (!queue->head)                                                 
 8002c44:	5c 60 00 02 	bne r3,r0,8002c4c <rtems_fdisk_segment_queue_pop_head+0x18>
      queue->tail = 0;                                                
 8002c48:	58 20 00 04 	sw (r1+4),r0                                   
                                                                      
    queue->count--;                                                   
 8002c4c:	28 23 00 08 	lw r3,(r1+8)                                   
 8002c50:	34 63 ff ff 	addi r3,r3,-1                                  
 8002c54:	58 23 00 08 	sw (r1+8),r3                                   
                                                                      
    sc->next = 0;                                                     
 8002c58:	58 40 00 00 	sw (r2+0),r0                                   
                                                                      
    return sc;                                                        
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 8002c5c:	b8 40 08 00 	mv r1,r2                                       
 8002c60:	c3 a0 00 00 	ret                                            
                                                                      

08002c64 <rtems_fdisk_segment_queue_push_tail>: */ static void rtems_fdisk_segment_queue_push_tail (rtems_fdisk_segment_ctl_queue* queue, rtems_fdisk_segment_ctl* sc) { if (sc)
 8002c64:	44 40 00 0d 	be r2,r0,8002c98 <rtems_fdisk_segment_queue_push_tail+0x34><== NEVER TAKEN
  {                                                                   
    sc->next = 0;                                                     
                                                                      
    if (queue->head)                                                  
 8002c68:	28 23 00 00 	lw r3,(r1+0)                                   
rtems_fdisk_segment_queue_push_tail (rtems_fdisk_segment_ctl_queue* queue,
                                     rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (sc)                                                             
  {                                                                   
    sc->next = 0;                                                     
 8002c6c:	58 40 00 00 	sw (r2+0),r0                                   
                                                                      
    if (queue->head)                                                  
 8002c70:	44 60 00 05 	be r3,r0,8002c84 <rtems_fdisk_segment_queue_push_tail+0x20>
    {                                                                 
      queue->tail->next = sc;                                         
 8002c74:	28 23 00 04 	lw r3,(r1+4)                                   
 8002c78:	58 62 00 00 	sw (r3+0),r2                                   
      queue->tail       = sc;                                         
 8002c7c:	58 22 00 04 	sw (r1+4),r2                                   
 8002c80:	e0 00 00 03 	bi 8002c8c <rtems_fdisk_segment_queue_push_tail+0x28>
    }                                                                 
    else                                                              
    {                                                                 
      queue->head = queue->tail = sc;                                 
 8002c84:	58 22 00 04 	sw (r1+4),r2                                   
 8002c88:	58 22 00 00 	sw (r1+0),r2                                   
    }                                                                 
                                                                      
    queue->count++;                                                   
 8002c8c:	28 22 00 08 	lw r2,(r1+8)                                   
 8002c90:	34 42 00 01 	addi r2,r2,1                                   
 8002c94:	58 22 00 08 	sw (r1+8),r2                                   
 8002c98:	c3 a0 00 00 	ret                                            
                                                                      

08002c9c <rtems_fdisk_segment_queue_remove>: static void rtems_fdisk_segment_queue_remove (rtems_fdisk_segment_ctl_queue* queue, rtems_fdisk_segment_ctl* sc) { rtems_fdisk_segment_ctl* prev = 0; rtems_fdisk_segment_ctl* it = queue->head;
 8002c9c:	28 24 00 00 	lw r4,(r1+0)                                   
 */                                                                   
static void                                                           
rtems_fdisk_segment_queue_remove (rtems_fdisk_segment_ctl_queue* queue,
                                  rtems_fdisk_segment_ctl*       sc)  
{                                                                     
  rtems_fdisk_segment_ctl* prev = 0;                                  
 8002ca0:	34 03 00 00 	mvi r3,0                                       
                                                                      
  /*                                                                  
   * Do not change sc->next as sc could be on another queue.          
   */                                                                 
                                                                      
  while (it)                                                          
 8002ca4:	e0 00 00 13 	bi 8002cf0 <rtems_fdisk_segment_queue_remove+0x54>
  {                                                                   
    if (sc == it)                                                     
 8002ca8:	5c 44 00 10 	bne r2,r4,8002ce8 <rtems_fdisk_segment_queue_remove+0x4c>
 8002cac:	28 44 00 00 	lw r4,(r2+0)                                   
    {                                                                 
      if (prev == 0)                                                  
 8002cb0:	5c 60 00 05 	bne r3,r0,8002cc4 <rtems_fdisk_segment_queue_remove+0x28>
      {                                                               
        queue->head = sc->next;                                       
 8002cb4:	58 24 00 00 	sw (r1+0),r4                                   
        if (queue->head == 0)                                         
 8002cb8:	5c 83 00 07 	bne r4,r3,8002cd4 <rtems_fdisk_segment_queue_remove+0x38>
          queue->tail = 0;                                            
 8002cbc:	58 20 00 04 	sw (r1+4),r0                                   
 8002cc0:	e0 00 00 05 	bi 8002cd4 <rtems_fdisk_segment_queue_remove+0x38>
      }                                                               
      else                                                            
      {                                                               
        prev->next = sc->next;                                        
 8002cc4:	58 64 00 00 	sw (r3+0),r4                                   
        if (queue->tail == sc)                                        
 8002cc8:	28 24 00 04 	lw r4,(r1+4)                                   
 8002ccc:	5c 82 00 02 	bne r4,r2,8002cd4 <rtems_fdisk_segment_queue_remove+0x38><== NEVER TAKEN
          queue->tail = prev;                                         
 8002cd0:	58 23 00 04 	sw (r1+4),r3                                   
      }                                                               
      sc->next = 0;                                                   
 8002cd4:	58 40 00 00 	sw (r2+0),r0                                   
      queue->count--;                                                 
 8002cd8:	28 22 00 08 	lw r2,(r1+8)                                   
 8002cdc:	34 42 ff ff 	addi r2,r2,-1                                  
 8002ce0:	58 22 00 08 	sw (r1+8),r2                                   
      break;                                                          
 8002ce4:	c3 a0 00 00 	ret                                            
    }                                                                 
                                                                      
    prev = it;                                                        
    it = it->next;                                                    
 8002ce8:	b8 80 18 00 	mv r3,r4                                       
 8002cec:	28 84 00 00 	lw r4,(r4+0)                                   
                                                                      
  /*                                                                  
   * Do not change sc->next as sc could be on another queue.          
   */                                                                 
                                                                      
  while (it)                                                          
 8002cf0:	5c 80 ff ee 	bne r4,r0,8002ca8 <rtems_fdisk_segment_queue_remove+0xc>
 8002cf4:	c3 a0 00 00 	ret                                            
                                                                      

0800330c <rtems_fdisk_warning>: * @param ... The arguments for the format text. * @return int The number of bytes written to the output. */ static int rtems_fdisk_warning (const rtems_flashdisk* fd, const char *format, ...) {
 800330c:	37 9c ff d4 	addi sp,sp,-44                                 <== NOT EXECUTED
 8003310:	5b 8b 00 10 	sw (sp+16),r11                                 <== NOT EXECUTED
 8003314:	5b 8c 00 0c 	sw (sp+12),r12                                 <== NOT EXECUTED
 8003318:	5b 8d 00 08 	sw (sp+8),r13                                  <== NOT EXECUTED
 800331c:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
 8003320:	5b 82 00 14 	sw (sp+20),r2                                  <== NOT EXECUTED
 8003324:	5b 83 00 18 	sw (sp+24),r3                                  <== NOT EXECUTED
 8003328:	5b 84 00 1c 	sw (sp+28),r4                                  <== NOT EXECUTED
 800332c:	5b 85 00 20 	sw (sp+32),r5                                  <== NOT EXECUTED
 8003330:	5b 86 00 24 	sw (sp+36),r6                                  <== NOT EXECUTED
 8003334:	5b 87 00 28 	sw (sp+40),r7                                  <== NOT EXECUTED
 8003338:	5b 88 00 2c 	sw (sp+44),r8                                  <== NOT EXECUTED
  int ret = 0;                                                        
  if (fd->info_level >= 1)                                            
 800333c:	28 21 00 6c 	lw r1,(r1+108)                                 <== NOT EXECUTED
 * @param ... The arguments for the format text.                      
 * @return int The number of bytes written to the output.             
 */                                                                   
static int                                                            
rtems_fdisk_warning (const rtems_flashdisk* fd, const char *format, ...)
{                                                                     
 8003340:	b8 40 68 00 	mv r13,r2                                      <== NOT EXECUTED
  int ret = 0;                                                        
 8003344:	34 0c 00 00 	mvi r12,0                                      <== NOT EXECUTED
  if (fd->info_level >= 1)                                            
 8003348:	44 20 00 15 	be r1,r0,800339c <rtems_fdisk_warning+0x90>    <== NOT EXECUTED
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
    fprintf (stdout, "fdisk:warning:");                               
 800334c:	78 0b 08 03 	mvhi r11,0x803                                 <== NOT EXECUTED
 8003350:	39 6b 92 40 	ori r11,r11,0x9240                             <== NOT EXECUTED
 8003354:	29 62 00 00 	lw r2,(r11+0)                                  <== NOT EXECUTED
 8003358:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800335c:	38 21 3c 68 	ori r1,r1,0x3c68                               <== NOT EXECUTED
 8003360:	28 42 00 08 	lw r2,(r2+8)                                   <== NOT EXECUTED
 8003364:	f8 00 74 8e 	calli 802059c <fputs>                          <== NOT EXECUTED
    ret =  vfprintf (stdout, format, args);                           
 8003368:	29 61 00 00 	lw r1,(r11+0)                                  <== NOT EXECUTED
 800336c:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 8003370:	37 83 00 18 	addi r3,sp,24                                  <== NOT EXECUTED
 8003374:	28 21 00 08 	lw r1,(r1+8)                                   <== NOT EXECUTED
 8003378:	f8 00 96 03 	calli 8028b84 <vfprintf>                       <== NOT EXECUTED
    fprintf (stdout, "\n");                                           
 800337c:	29 62 00 00 	lw r2,(r11+0)                                  <== NOT EXECUTED
  if (fd->info_level >= 1)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
    fprintf (stdout, "fdisk:warning:");                               
    ret =  vfprintf (stdout, format, args);                           
 8003380:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
    fprintf (stdout, "\n");                                           
 8003384:	34 01 00 0a 	mvi r1,10                                      <== NOT EXECUTED
 8003388:	28 42 00 08 	lw r2,(r2+8)                                   <== NOT EXECUTED
 800338c:	f8 00 74 40 	calli 802048c <fputc>                          <== NOT EXECUTED
    fflush (stdout);                                                  
 8003390:	29 61 00 00 	lw r1,(r11+0)                                  <== NOT EXECUTED
 8003394:	28 21 00 08 	lw r1,(r1+8)                                   <== NOT EXECUTED
 8003398:	f8 00 72 af 	calli 801fe54 <fflush>                         <== NOT EXECUTED
    va_end (args);                                                    
  }                                                                   
  return ret;                                                         
}                                                                     
 800339c:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 80033a0:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 80033a4:	2b 8b 00 10 	lw r11,(sp+16)                                 <== NOT EXECUTED
 80033a8:	2b 8c 00 0c 	lw r12,(sp+12)                                 <== NOT EXECUTED
 80033ac:	2b 8d 00 08 	lw r13,(sp+8)                                  <== NOT EXECUTED
 80033b0:	37 9c 00 2c 	addi sp,sp,44                                  <== NOT EXECUTED
 80033b4:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08002d48 <rtems_filesystem_do_unmount>: } void rtems_filesystem_do_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) {
 8002d48:	37 9c ff f4 	addi sp,sp,-12                                 
 8002d4c:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8002d50:	5b 8c 00 08 	sw (sp+8),r12                                  
 8002d54:	5b 9d 00 04 	sw (sp+4),ra                                   
 */                                                                   
#include <rtems/userenv.h>                                            
                                                                      
static inline void rtems_libio_lock( void )                           
{                                                                     
  rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
 8002d58:	78 0c 08 01 	mvhi r12,0x801                                 
 8002d5c:	39 8c d7 a8 	ori r12,r12,0xd7a8                             
 8002d60:	b8 20 58 00 	mv r11,r1                                      
 8002d64:	29 81 00 00 	lw r1,(r12+0)                                  
 8002d68:	34 03 00 00 	mvi r3,0                                       
 8002d6c:	34 02 00 00 	mvi r2,0                                       
 8002d70:	f8 00 02 90 	calli 80037b0 <rtems_semaphore_obtain>         
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
 8002d74:	29 62 00 00 	lw r2,(r11+0)                                  
  previous       = the_node->previous;                                
 8002d78:	29 61 00 04 	lw r1,(r11+4)                                  
  next->previous = previous;                                          
 8002d7c:	58 41 00 04 	sw (r2+4),r1                                   
  previous->next = next;                                              
 8002d80:	58 22 00 00 	sw (r1+0),r2                                   
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
 8002d84:	29 81 00 00 	lw r1,(r12+0)                                  
 8002d88:	f8 00 02 da 	calli 80038f0 <rtems_semaphore_release>        
  rtems_filesystem_mt_lock();                                         
  rtems_chain_extract_unprotected(&mt_entry->mt_node);                
  rtems_filesystem_mt_unlock();                                       
  rtems_filesystem_global_location_release(mt_entry->mt_point_node);  
 8002d8c:	29 61 00 20 	lw r1,(r11+32)                                 
 8002d90:	f8 00 00 71 	calli 8002f54 <rtems_filesystem_global_location_release>
  (*mt_entry->ops->fsunmount_me_h)(mt_entry);                         
 8002d94:	29 61 00 0c 	lw r1,(r11+12)                                 
 8002d98:	28 22 00 3c 	lw r2,(r1+60)                                  
 8002d9c:	b9 60 08 00 	mv r1,r11                                      
 8002da0:	d8 40 00 00 	call r2                                        
                                                                      
  if (mt_entry->unmount_task != 0) {                                  
 8002da4:	29 61 00 3c 	lw r1,(r11+60)                                 
 8002da8:	44 20 00 08 	be r1,r0,8002dc8 <rtems_filesystem_do_unmount+0x80><== NEVER TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE rtems_status_code rtems_event_transient_send(    
  rtems_id id                                                         
)                                                                     
{                                                                     
  return rtems_event_system_send( id, RTEMS_EVENT_SYSTEM_TRANSIENT ); 
 8002dac:	78 02 80 00 	mvhi r2,0x8000                                 
 8002db0:	f8 00 03 0e 	calli 80039e8 <rtems_event_system_send>        
    rtems_status_code sc =                                            
      rtems_event_transient_send(mt_entry->unmount_task);             
    if (sc != RTEMS_SUCCESSFUL) {                                     
 8002db4:	44 20 00 05 	be r1,r0,8002dc8 <rtems_filesystem_do_unmount+0x80><== ALWAYS TAKEN
      rtems_fatal_error_occurred(0xdeadbeef);                         
 8002db8:	78 02 08 01 	mvhi r2,0x801                                  <== NOT EXECUTED
 8002dbc:	38 42 b9 84 	ori r2,r2,0xb984                               <== NOT EXECUTED
 8002dc0:	28 41 00 00 	lw r1,(r2+0)                                   <== NOT EXECUTED
 8002dc4:	f8 00 04 75 	calli 8003f98 <rtems_fatal_error_occurred>     <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
  free(mt_entry);                                                     
 8002dc8:	b9 60 08 00 	mv r1,r11                                      
 8002dcc:	fb ff f9 e2 	calli 8001554 <free>                           
}                                                                     
 8002dd0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002dd4:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8002dd8:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8002ddc:	37 9c 00 0c 	addi sp,sp,12                                  
 8002de0:	c3 a0 00 00 	ret                                            
                                                                      

08008e10 <rtems_filesystem_eval_path_generic>: void rtems_filesystem_eval_path_generic( rtems_filesystem_eval_path_context_t *ctx, void *arg, const rtems_filesystem_eval_path_generic_config *config ) {
 8008e10:	37 9c ff d0 	addi sp,sp,-48                                 
 8008e14:	5b 8b 00 30 	sw (sp+48),r11                                 
 8008e18:	5b 8c 00 2c 	sw (sp+44),r12                                 
 8008e1c:	5b 8d 00 28 	sw (sp+40),r13                                 
 8008e20:	5b 8e 00 24 	sw (sp+36),r14                                 
 8008e24:	5b 8f 00 20 	sw (sp+32),r15                                 
 8008e28:	5b 90 00 1c 	sw (sp+28),r16                                 
 8008e2c:	5b 91 00 18 	sw (sp+24),r17                                 
 8008e30:	5b 92 00 14 	sw (sp+20),r18                                 
 8008e34:	5b 93 00 10 	sw (sp+16),r19                                 
 8008e38:	5b 94 00 0c 	sw (sp+12),r20                                 
 8008e3c:	5b 95 00 08 	sw (sp+8),r21                                  
 8008e40:	5b 9d 00 04 	sw (sp+4),ra                                   
            } else {                                                  
              /* This is the root file system */                      
              status = (*config->eval_token)(ctx, arg, ".", 1);       
            }                                                         
          } else {                                                    
            status = (*config->eval_token)(ctx, arg, "..", 2);        
 8008e44:	78 11 08 01 	mvhi r17,0x801                                 
                ¤tloc->mt_entry->mt_point_node                  
              );                                                      
              status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;       
            } else {                                                  
              /* This is the root file system */                      
              status = (*config->eval_token)(ctx, arg, ".", 1);       
 8008e48:	78 0f 08 01 	mvhi r15,0x801                                 
void rtems_filesystem_eval_path_generic(                              
  rtems_filesystem_eval_path_context_t *ctx,                          
  void *arg,                                                          
  const rtems_filesystem_eval_path_generic_config *config             
)                                                                     
{                                                                     
 8008e4c:	b8 20 58 00 	mv r11,r1                                      
 8008e50:	b8 40 70 00 	mv r14,r2                                      
 8008e54:	b8 60 60 00 	mv r12,r3                                      
static inline bool rtems_filesystem_is_current_directory(             
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 1 && token [0] == '.';                           
 8008e58:	34 15 00 01 	mvi r21,1                                      
static inline bool rtems_filesystem_is_parent_directory(              
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 2 && token [0] == '.' && token [1] == '.';       
 8008e5c:	34 14 00 02 	mvi r20,2                                      
 8008e60:	34 12 00 2e 	mvi r18,46                                     
              rtems_filesystem_eval_path_error(ctx, EINVAL);          
              status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;       
            }                                                         
          }                                                           
        } else if (rtems_filesystem_is_parent_directory(token, tokenlen)) {
          rtems_filesystem_location_info_t *currentloc =              
 8008e64:	34 33 00 18 	addi r19,r1,24                                 
            } else {                                                  
              /* This is the root file system */                      
              status = (*config->eval_token)(ctx, arg, ".", 1);       
            }                                                         
          } else {                                                    
            status = (*config->eval_token)(ctx, arg, "..", 2);        
 8008e68:	3a 31 bd e0 	ori r17,r17,0xbde0                             
                ¤tloc->mt_entry->mt_point_node                  
              );                                                      
              status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;       
            } else {                                                  
              /* This is the root file system */                      
              status = (*config->eval_token)(ctx, arg, ".", 1);       
 8008e6c:	39 ef b9 80 	ori r15,r15,0xb980                             
  rtems_filesystem_eval_path_context_t *ctx,                          
  const char **token,                                                 
  size_t *tokenlen                                                    
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_next_token(ctx);                         
 8008e70:	b9 60 08 00 	mv r1,r11                                      
 8008e74:	f8 00 00 7e 	calli 800906c <rtems_filesystem_eval_path_next_token>
  *token = ctx->token;                                                
  *tokenlen = ctx->tokenlen;                                          
 8008e78:	29 6d 00 0c 	lw r13,(r11+12)                                
  const char **token,                                                 
  size_t *tokenlen                                                    
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_next_token(ctx);                         
  *token = ctx->token;                                                
 8008e7c:	29 70 00 08 	lw r16,(r11+8)                                 
    const char *token;                                                
    size_t tokenlen;                                                  
                                                                      
    rtems_filesystem_eval_path_get_next_token(ctx, &token, &tokenlen);
                                                                      
    if (tokenlen > 0) {                                               
 8008e80:	45 a0 00 5e 	be r13,r0,8008ff8 <rtems_filesystem_eval_path_generic+0x1e8>
      if ((*config->is_directory)(ctx, arg)) {                        
 8008e84:	29 83 00 00 	lw r3,(r12+0)                                  
 8008e88:	b9 60 08 00 	mv r1,r11                                      
 8008e8c:	b9 c0 10 00 	mv r2,r14                                      
 8008e90:	d8 60 00 00 	call r3                                        
 8008e94:	44 20 00 44 	be r1,r0,8008fa4 <rtems_filesystem_eval_path_generic+0x194>
static inline bool rtems_filesystem_is_current_directory(             
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 1 && token [0] == '.';                           
 8008e98:	5d b5 00 49 	bne r13,r21,8008fbc <rtems_filesystem_eval_path_generic+0x1ac>
 8008e9c:	42 01 00 00 	lbu r1,(r16+0)                                 
 8008ea0:	5c 32 00 48 	bne r1,r18,8008fc0 <rtems_filesystem_eval_path_generic+0x1b0>
        if (rtems_filesystem_is_current_directory(token, tokenlen)) { 
          if (rtems_filesystem_eval_path_has_path(ctx)) {             
 8008ea4:	29 61 00 04 	lw r1,(r11+4)                                  
 8008ea8:	5c 20 00 24 	bne r1,r0,8008f38 <rtems_filesystem_eval_path_generic+0x128>
            status = (*config->eval_token)(ctx, arg, ".", 1);         
          } else {                                                    
            int eval_flags = rtems_filesystem_eval_path_get_flags(ctx);
                                                                      
            if ((eval_flags & RTEMS_FS_REJECT_TERMINAL_DOT) == 0) {   
 8008eac:	29 62 00 10 	lw r2,(r11+16)                                 
 8008eb0:	20 42 01 00 	andi r2,r2,0x100                               
 8008eb4:	44 41 00 21 	be r2,r1,8008f38 <rtems_filesystem_eval_path_generic+0x128>
              status = (*config->eval_token)(ctx, arg, ".", 1);       
            } else {                                                  
              rtems_filesystem_eval_path_error(ctx, EINVAL);          
 8008eb8:	b9 60 08 00 	mv r1,r11                                      
 8008ebc:	34 02 00 16 	mvi r2,22                                      
 8008ec0:	e0 00 00 3b 	bi 8008fac <rtems_filesystem_eval_path_generic+0x19c>
static inline bool rtems_filesystem_is_parent_directory(              
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 2 && token [0] == '.' && token [1] == '.';       
 8008ec4:	42 01 00 00 	lbu r1,(r16+0)                                 
 8008ec8:	5c 32 00 3e 	bne r1,r18,8008fc0 <rtems_filesystem_eval_path_generic+0x1b0>
 8008ecc:	42 01 00 01 	lbu r1,(r16+1)                                 
 8008ed0:	5c 32 00 3c 	bne r1,r18,8008fc0 <rtems_filesystem_eval_path_generic+0x1b0><== NEVER TAKEN
      }                                                               
    } else {                                                          
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;               
    }                                                                 
  }                                                                   
}                                                                     
 8008ed4:	29 62 00 30 	lw r2,(r11+48)                                 
static bool is_eval_path_root(                                        
  const rtems_filesystem_eval_path_context_t *ctx,                    
  const rtems_filesystem_location_info_t *loc                         
)                                                                     
{                                                                     
  const rtems_filesystem_mount_table_entry_t *mt_entry = loc->mt_entry;
 8008ed8:	29 61 00 2c 	lw r1,(r11+44)                                 
  const rtems_filesystem_location_info_t *rootloc = &ctx->rootloc->location;
                                                                      
  return mt_entry == rootloc->mt_entry                                
    && (*mt_entry->ops->are_nodes_equal_h)( loc, rootloc );           
 8008edc:	28 43 00 14 	lw r3,(r2+20)                                  
 8008ee0:	5c 23 00 3e 	bne r1,r3,8008fd8 <rtems_filesystem_eval_path_generic+0x1c8>
 8008ee4:	28 21 00 0c 	lw r1,(r1+12)                                  
 8008ee8:	28 23 00 10 	lw r3,(r1+16)                                  
 8008eec:	ba 60 08 00 	mv r1,r19                                      
 8008ef0:	d8 60 00 00 	call r3                                        
 8008ef4:	44 20 00 39 	be r1,r0,8008fd8 <rtems_filesystem_eval_path_generic+0x1c8>
 8008ef8:	e0 00 00 10 	bi 8008f38 <rtems_filesystem_eval_path_generic+0x128>
                                                                      
          if (is_eval_path_root(ctx, currentloc)) {                   
            /* This prevents the escape from a chroot() environment */
            status = (*config->eval_token)(ctx, arg, ".", 1);         
          } else if (is_fs_root(currentloc)) {                        
            if (currentloc->mt_entry->mt_point_node != NULL) {        
 8008efc:	29 62 00 2c 	lw r2,(r11+44)                                 
 8008f00:	28 41 00 20 	lw r1,(r2+32)                                  
 8008f04:	44 20 00 0d 	be r1,r0,8008f38 <rtems_filesystem_eval_path_generic+0x128><== NEVER TAKEN
                                                                      
static inline void rtems_filesystem_eval_path_put_back_token(         
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  size_t tokenlen = ctx->tokenlen;                                    
 8008f08:	29 61 00 0c 	lw r1,(r11+12)                                 
                                                                      
  ctx->path -= tokenlen;                                              
 8008f0c:	29 63 00 00 	lw r3,(r11+0)                                  
  ctx->pathlen += tokenlen;                                           
  ctx->tokenlen = 0;                                                  
 8008f10:	59 60 00 0c 	sw (r11+12),r0                                 
              rtems_filesystem_eval_path_put_back_token(ctx);         
              rtems_filesystem_eval_path_restart(                     
 8008f14:	34 42 00 20 	addi r2,r2,32                                  
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  size_t tokenlen = ctx->tokenlen;                                    
                                                                      
  ctx->path -= tokenlen;                                              
 8008f18:	c8 61 18 00 	sub r3,r3,r1                                   
 8008f1c:	59 63 00 00 	sw (r11+0),r3                                  
  ctx->pathlen += tokenlen;                                           
 8008f20:	29 63 00 04 	lw r3,(r11+4)                                  
 8008f24:	b4 61 08 00 	add r1,r3,r1                                   
 8008f28:	59 61 00 04 	sw (r11+4),r1                                  
 8008f2c:	b9 60 08 00 	mv r1,r11                                      
 8008f30:	fb ff e7 0a 	calli 8002b58 <rtems_filesystem_eval_path_restart>
 8008f34:	e0 00 00 31 	bi 8008ff8 <rtems_filesystem_eval_path_generic+0x1e8>
                ¤tloc->mt_entry->mt_point_node                  
              );                                                      
              status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;       
            } else {                                                  
              /* This is the root file system */                      
              status = (*config->eval_token)(ctx, arg, ".", 1);       
 8008f38:	29 85 00 04 	lw r5,(r12+4)                                  
 8008f3c:	b9 60 08 00 	mv r1,r11                                      
 8008f40:	b9 c0 10 00 	mv r2,r14                                      
 8008f44:	b9 e0 18 00 	mv r3,r15                                      
 8008f48:	34 04 00 01 	mvi r4,1                                       
 8008f4c:	e0 00 00 06 	bi 8008f64 <rtems_filesystem_eval_path_generic+0x154>
            }                                                         
          } else {                                                    
            status = (*config->eval_token)(ctx, arg, "..", 2);        
 8008f50:	29 85 00 04 	lw r5,(r12+4)                                  
 8008f54:	b9 60 08 00 	mv r1,r11                                      
 8008f58:	b9 c0 10 00 	mv r2,r14                                      
 8008f5c:	ba 20 18 00 	mv r3,r17                                      
 8008f60:	34 04 00 02 	mvi r4,2                                       
 8008f64:	d8 a0 00 00 	call r5                                        
 8008f68:	b8 20 68 00 	mv r13,r1                                      
          }                                                           
        } else {                                                      
          status = (*config->eval_token)(ctx, arg, token, tokenlen);  
        }                                                             
                                                                      
        if (status == RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY) {  
 8008f6c:	5c 34 00 12 	bne r1,r20,8008fb4 <rtems_filesystem_eval_path_generic+0x1a4>
          if (rtems_filesystem_eval_path_has_path(ctx)) {             
 8008f70:	29 61 00 04 	lw r1,(r11+4)                                  
 8008f74:	44 20 00 10 	be r1,r0,8008fb4 <rtems_filesystem_eval_path_generic+0x1a4>
            int eval_flags;                                           
                                                                      
            rtems_filesystem_eval_path_eat_delimiter(ctx);            
 8008f78:	b9 60 08 00 	mv r1,r11                                      
 8008f7c:	f8 00 00 2d 	calli 8009030 <rtems_filesystem_eval_path_eat_delimiter>
            eval_flags = rtems_filesystem_eval_path_get_flags(ctx);   
            if (                                                      
              (eval_flags & RTEMS_FS_ACCEPT_RESIDUAL_DELIMITERS) == 0 
 8008f80:	29 61 00 10 	lw r1,(r11+16)                                 
 8008f84:	20 21 00 80 	andi r1,r1,0x80                                
          if (rtems_filesystem_eval_path_has_path(ctx)) {             
            int eval_flags;                                           
                                                                      
            rtems_filesystem_eval_path_eat_delimiter(ctx);            
            eval_flags = rtems_filesystem_eval_path_get_flags(ctx);   
            if (                                                      
 8008f88:	44 20 00 03 	be r1,r0,8008f94 <rtems_filesystem_eval_path_generic+0x184>
              (eval_flags & RTEMS_FS_ACCEPT_RESIDUAL_DELIMITERS) == 0 
                || rtems_filesystem_eval_path_has_path(ctx)           
 8008f8c:	29 61 00 04 	lw r1,(r11+4)                                  
 8008f90:	44 20 00 09 	be r1,r0,8008fb4 <rtems_filesystem_eval_path_generic+0x1a4>
            ) {                                                       
              rtems_filesystem_eval_path_error(ctx, ENOENT);          
 8008f94:	b9 60 08 00 	mv r1,r11                                      
 8008f98:	34 02 00 02 	mvi r2,2                                       
 8008f9c:	fb ff e5 bb 	calli 8002688 <rtems_filesystem_eval_path_error>
 8008fa0:	e0 00 00 05 	bi 8008fb4 <rtems_filesystem_eval_path_generic+0x1a4>
            }                                                         
          }                                                           
        }                                                             
      } else {                                                        
        rtems_filesystem_eval_path_error(ctx, ENOTDIR);               
 8008fa4:	b9 60 08 00 	mv r1,r11                                      
 8008fa8:	34 02 00 14 	mvi r2,20                                      
 8008fac:	fb ff e5 b7 	calli 8002688 <rtems_filesystem_eval_path_error>
 8008fb0:	e0 00 00 12 	bi 8008ff8 <rtems_filesystem_eval_path_generic+0x1e8>
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_generic_status status =                  
    RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE;                      
                                                                      
  while (status == RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE) {     
 8008fb4:	45 a0 ff af 	be r13,r0,8008e70 <rtems_filesystem_eval_path_generic+0x60>
 8008fb8:	e0 00 00 10 	bi 8008ff8 <rtems_filesystem_eval_path_generic+0x1e8>
static inline bool rtems_filesystem_is_parent_directory(              
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 2 && token [0] == '.' && token [1] == '.';       
 8008fbc:	45 b4 ff c2 	be r13,r20,8008ec4 <rtems_filesystem_eval_path_generic+0xb4>
            }                                                         
          } else {                                                    
            status = (*config->eval_token)(ctx, arg, "..", 2);        
          }                                                           
        } else {                                                      
          status = (*config->eval_token)(ctx, arg, token, tokenlen);  
 8008fc0:	29 85 00 04 	lw r5,(r12+4)                                  
 8008fc4:	b9 60 08 00 	mv r1,r11                                      
 8008fc8:	b9 c0 10 00 	mv r2,r14                                      
 8008fcc:	ba 00 18 00 	mv r3,r16                                      
 8008fd0:	b9 a0 20 00 	mv r4,r13                                      
 8008fd4:	e3 ff ff e4 	bi 8008f64 <rtems_filesystem_eval_path_generic+0x154>
                                                                      
#include <rtems/libio_.h>                                             
                                                                      
static bool is_fs_root( const rtems_filesystem_location_info_t *loc ) 
{                                                                     
  const rtems_filesystem_mount_table_entry_t *mt_entry = loc->mt_entry;
 8008fd8:	29 62 00 2c 	lw r2,(r11+44)                                 
  const rtems_filesystem_location_info_t *mt_fs_root =                
    &mt_entry->mt_fs_root->location;                                  
                                                                      
  return (*mt_entry->ops->are_nodes_equal_h)( loc, mt_fs_root );      
 8008fdc:	28 41 00 0c 	lw r1,(r2+12)                                  
 8008fe0:	28 42 00 24 	lw r2,(r2+36)                                  
 8008fe4:	28 23 00 10 	lw r3,(r1+16)                                  
 8008fe8:	ba 60 08 00 	mv r1,r19                                      
 8008fec:	d8 60 00 00 	call r3                                        
            rtems_filesystem_eval_path_get_currentloc( ctx );         
                                                                      
          if (is_eval_path_root(ctx, currentloc)) {                   
            /* This prevents the escape from a chroot() environment */
            status = (*config->eval_token)(ctx, arg, ".", 1);         
          } else if (is_fs_root(currentloc)) {                        
 8008ff0:	5c 20 ff c3 	bne r1,r0,8008efc <rtems_filesystem_eval_path_generic+0xec>
 8008ff4:	e3 ff ff d7 	bi 8008f50 <rtems_filesystem_eval_path_generic+0x140>
      }                                                               
    } else {                                                          
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;               
    }                                                                 
  }                                                                   
}                                                                     
 8008ff8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8008ffc:	2b 8b 00 30 	lw r11,(sp+48)                                 
 8009000:	2b 8c 00 2c 	lw r12,(sp+44)                                 
 8009004:	2b 8d 00 28 	lw r13,(sp+40)                                 
 8009008:	2b 8e 00 24 	lw r14,(sp+36)                                 
 800900c:	2b 8f 00 20 	lw r15,(sp+32)                                 
 8009010:	2b 90 00 1c 	lw r16,(sp+28)                                 
 8009014:	2b 91 00 18 	lw r17,(sp+24)                                 
 8009018:	2b 92 00 14 	lw r18,(sp+20)                                 
 800901c:	2b 93 00 10 	lw r19,(sp+16)                                 
 8009020:	2b 94 00 0c 	lw r20,(sp+12)                                 
 8009024:	2b 95 00 08 	lw r21,(sp+8)                                  
 8009028:	37 9c 00 30 	addi sp,sp,48                                  
 800902c:	c3 a0 00 00 	ret                                            
                                                                      

08002be8 <rtems_filesystem_eval_path_recursive>: void rtems_filesystem_eval_path_recursive( rtems_filesystem_eval_path_context_t *ctx, const char *path, size_t pathlen ) {
 8002be8:	37 9c ff e8 	addi sp,sp,-24                                 
 8002bec:	5b 8b 00 18 	sw (sp+24),r11                                 
 8002bf0:	5b 8c 00 14 	sw (sp+20),r12                                 
 8002bf4:	5b 8d 00 10 	sw (sp+16),r13                                 
 8002bf8:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8002bfc:	5b 8f 00 08 	sw (sp+8),r15                                  
 8002c00:	5b 9d 00 04 	sw (sp+4),ra                                   
 8002c04:	b8 20 58 00 	mv r11,r1                                      
 8002c08:	b8 40 68 00 	mv r13,r2                                      
 8002c0c:	b8 60 60 00 	mv r12,r3                                      
  if (pathlen > 0) {                                                  
 8002c10:	44 60 00 22 	be r3,r0,8002c98 <rtems_filesystem_eval_path_recursive+0xb0><== NEVER TAKEN
    if (ctx->recursionlevel < RTEMS_FILESYSTEM_SYMLOOP_MAX) {         
 8002c14:	28 23 00 14 	lw r3,(r1+20)                                  
 8002c18:	34 02 00 1f 	mvi r2,31                                      
 8002c1c:	48 62 00 1d 	bg r3,r2,8002c90 <rtems_filesystem_eval_path_recursive+0xa8>
      const char *saved_path = ctx->path;                             
      size_t saved_pathlen = ctx->pathlen;                            
                                                                      
      if (rtems_filesystem_is_delimiter(path [0])) {                  
 8002c20:	41 a2 00 00 	lbu r2,(r13+0)                                 
  size_t pathlen                                                      
)                                                                     
{                                                                     
  if (pathlen > 0) {                                                  
    if (ctx->recursionlevel < RTEMS_FILESYSTEM_SYMLOOP_MAX) {         
      const char *saved_path = ctx->path;                             
 8002c24:	28 2f 00 00 	lw r15,(r1+0)                                  
      size_t saved_pathlen = ctx->pathlen;                            
 8002c28:	28 2e 00 04 	lw r14,(r1+4)                                  
  gid_t node_gid                                                      
);                                                                    
                                                                      
static inline bool rtems_filesystem_is_delimiter(char c)              
{                                                                     
  return c == '/' || c == '\\';                                       
 8002c2c:	64 43 00 5c 	cmpei r3,r2,92                                 
 8002c30:	64 42 00 2f 	cmpei r2,r2,47                                 
 8002c34:	b8 62 10 00 	or r2,r3,r2                                    
                                                                      
      if (rtems_filesystem_is_delimiter(path [0])) {                  
 8002c38:	44 40 00 03 	be r2,r0,8002c44 <rtems_filesystem_eval_path_recursive+0x5c>
        rtems_filesystem_eval_path_restart(ctx, &ctx->rootloc);       
 8002c3c:	34 22 00 30 	addi r2,r1,48                                  
 8002c40:	fb ff ff c6 	calli 8002b58 <rtems_filesystem_eval_path_restart>
      }                                                               
                                                                      
      ctx->path = path;                                               
      ctx->pathlen = pathlen;                                         
                                                                      
      ++ctx->recursionlevel;                                          
 8002c44:	29 61 00 14 	lw r1,(r11+20)                                 
                                                                      
      if (rtems_filesystem_is_delimiter(path [0])) {                  
        rtems_filesystem_eval_path_restart(ctx, &ctx->rootloc);       
      }                                                               
                                                                      
      ctx->path = path;                                               
 8002c48:	59 6d 00 00 	sw (r11+0),r13                                 
      ctx->pathlen = pathlen;                                         
 8002c4c:	59 6c 00 04 	sw (r11+4),r12                                 
                                                                      
      ++ctx->recursionlevel;                                          
 8002c50:	34 21 00 01 	addi r1,r1,1                                   
 8002c54:	59 61 00 14 	sw (r11+20),r1                                 
      while (ctx->pathlen > 0) {                                      
 8002c58:	e0 00 00 06 	bi 8002c70 <rtems_filesystem_eval_path_recursive+0x88>
        (*ctx->currentloc.mt_entry->ops->eval_path_h)(ctx);           
 8002c5c:	29 61 00 2c 	lw r1,(r11+44)                                 
 8002c60:	28 21 00 0c 	lw r1,(r1+12)                                  
 8002c64:	28 22 00 08 	lw r2,(r1+8)                                   
 8002c68:	b9 60 08 00 	mv r1,r11                                      
 8002c6c:	d8 40 00 00 	call r2                                        
                                                                      
      ctx->path = path;                                               
      ctx->pathlen = pathlen;                                         
                                                                      
      ++ctx->recursionlevel;                                          
      while (ctx->pathlen > 0) {                                      
 8002c70:	29 61 00 04 	lw r1,(r11+4)                                  
 8002c74:	5c 20 ff fa 	bne r1,r0,8002c5c <rtems_filesystem_eval_path_recursive+0x74>
        (*ctx->currentloc.mt_entry->ops->eval_path_h)(ctx);           
      }                                                               
      --ctx->recursionlevel;                                          
 8002c78:	29 61 00 14 	lw r1,(r11+20)                                 
                                                                      
      ctx->path = saved_path;                                         
 8002c7c:	59 6f 00 00 	sw (r11+0),r15                                 
      ctx->pathlen = saved_pathlen;                                   
 8002c80:	59 6e 00 04 	sw (r11+4),r14                                 
                                                                      
      ++ctx->recursionlevel;                                          
      while (ctx->pathlen > 0) {                                      
        (*ctx->currentloc.mt_entry->ops->eval_path_h)(ctx);           
      }                                                               
      --ctx->recursionlevel;                                          
 8002c84:	34 21 ff ff 	addi r1,r1,-1                                  
 8002c88:	59 61 00 14 	sw (r11+20),r1                                 
 8002c8c:	e0 00 00 05 	bi 8002ca0 <rtems_filesystem_eval_path_recursive+0xb8>
                                                                      
      ctx->path = saved_path;                                         
      ctx->pathlen = saved_pathlen;                                   
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, ELOOP);                   
 8002c90:	34 02 00 5c 	mvi r2,92                                      
 8002c94:	e0 00 00 02 	bi 8002c9c <rtems_filesystem_eval_path_recursive+0xb4>
    }                                                                 
  } else {                                                            
    rtems_filesystem_eval_path_error(ctx, ENOENT);                    
 8002c98:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
 8002c9c:	fb ff fe 7b 	calli 8002688 <rtems_filesystem_eval_path_error>
  }                                                                   
}                                                                     
 8002ca0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002ca4:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8002ca8:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8002cac:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8002cb0:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8002cb4:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8002cb8:	37 9c 00 18 	addi sp,sp,24                                  
 8002cbc:	c3 a0 00 00 	ret                                            
                                                                      

08008b64 <rtems_filesystem_get_mount_handler>: rtems_filesystem_fsmount_me_t rtems_filesystem_get_mount_handler( const char *type ) {
 8008b64:	37 9c ff f4 	addi sp,sp,-12                                 
 8008b68:	5b 9d 00 04 	sw (sp+4),ra                                   
  find_arg fa = {                                                     
 8008b6c:	5b 81 00 08 	sw (sp+8),r1                                   
 8008b70:	5b 80 00 0c 	sw (sp+12),r0                                  
    .type = type,                                                     
    .mount_h = NULL                                                   
  };                                                                  
                                                                      
  if ( type != NULL ) {                                               
 8008b74:	44 20 00 05 	be r1,r0,8008b88 <rtems_filesystem_get_mount_handler+0x24><== NEVER TAKEN
    rtems_filesystem_iterate( find_handler, &fa );                    
 8008b78:	78 01 08 00 	mvhi r1,0x800                                  
 8008b7c:	38 21 8a 00 	ori r1,r1,0x8a00                               
 8008b80:	37 82 00 08 	addi r2,sp,8                                   
 8008b84:	fb ff ff c7 	calli 8008aa0 <rtems_filesystem_iterate>       
  }                                                                   
                                                                      
  return fa.mount_h;                                                  
}                                                                     
 8008b88:	2b 81 00 0c 	lw r1,(sp+12)                                  
 8008b8c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8008b90:	37 9c 00 0c 	addi sp,sp,12                                  
 8008b94:	c3 a0 00 00 	ret                                            
                                                                      

080011a4 <rtems_filesystem_initialize>: /* * Default mode for created files. */ void rtems_filesystem_initialize( void ) {
 80011a4:	37 9c ff f8 	addi sp,sp,-8                                  
 80011a8:	5b 8b 00 08 	sw (sp+8),r11                                  
 80011ac:	5b 9d 00 04 	sw (sp+4),ra                                   
  int rv = 0;                                                         
  const rtems_filesystem_mount_configuration *root_config =           
    &rtems_filesystem_root_configuration;                             
                                                                      
  rv = mount(                                                         
 80011b0:	78 05 08 01 	mvhi r5,0x801                                  
 80011b4:	38 a5 b1 f4 	ori r5,r5,0xb1f4                               
 80011b8:	28 a2 00 04 	lw r2,(r5+4)                                   
 80011bc:	28 a1 00 00 	lw r1,(r5+0)                                   
 80011c0:	28 a3 00 08 	lw r3,(r5+8)                                   
 80011c4:	28 a4 00 0c 	lw r4,(r5+12)                                  
 80011c8:	28 a5 00 10 	lw r5,(r5+16)                                  
 80011cc:	f8 00 02 7f 	calli 8001bc8 <mount>                          
    root_config->filesystemtype,                                      
    root_config->options,                                             
    root_config->data                                                 
  );                                                                  
  if ( rv != 0 )                                                      
    rtems_fatal_error_occurred( 0xABCD0002 );                         
 80011d0:	78 02 08 01 	mvhi r2,0x801                                  
{                                                                     
  int rv = 0;                                                         
  const rtems_filesystem_mount_configuration *root_config =           
    &rtems_filesystem_root_configuration;                             
                                                                      
  rv = mount(                                                         
 80011d4:	b8 20 58 00 	mv r11,r1                                      
    root_config->filesystemtype,                                      
    root_config->options,                                             
    root_config->data                                                 
  );                                                                  
  if ( rv != 0 )                                                      
    rtems_fatal_error_occurred( 0xABCD0002 );                         
 80011d8:	38 42 b4 44 	ori r2,r2,0xb444                               
    root_config->target,                                              
    root_config->filesystemtype,                                      
    root_config->options,                                             
    root_config->data                                                 
  );                                                                  
  if ( rv != 0 )                                                      
 80011dc:	5c 20 00 08 	bne r1,r0,80011fc <rtems_filesystem_initialize+0x58><== NEVER TAKEN
   *                                                                  
   *  NOTE: UNIX root is 755 and owned by root/root (0/0).  It is actually
   *        created that way by the IMFS.                             
   */                                                                 
                                                                      
  rv = mkdir( "/dev", 0777);                                          
 80011e0:	78 01 08 01 	mvhi r1,0x801                                  
 80011e4:	38 21 b4 3c 	ori r1,r1,0xb43c                               
 80011e8:	34 02 01 ff 	mvi r2,511                                     
 80011ec:	f8 00 02 15 	calli 8001a40 <mkdir>                          
  if ( rv != 0 )                                                      
 80011f0:	44 2b 00 05 	be r1,r11,8001204 <rtems_filesystem_initialize+0x60><== ALWAYS TAKEN
    rtems_fatal_error_occurred( 0xABCD0003 );                         
 80011f4:	78 02 08 01 	mvhi r2,0x801                                  <== NOT EXECUTED
 80011f8:	38 42 b4 48 	ori r2,r2,0xb448                               <== NOT EXECUTED
 80011fc:	28 41 00 00 	lw r1,(r2+0)                                   <== NOT EXECUTED
 8001200:	f8 00 0b 66 	calli 8003f98 <rtems_fatal_error_occurred>     <== NOT EXECUTED
   *  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.        
   */                                                                 
}                                                                     
 8001204:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001208:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800120c:	37 9c 00 08 	addi sp,sp,8                                   
 8001210:	c3 a0 00 00 	ret                                            
                                                                      

08008aa0 <rtems_filesystem_iterate>: bool rtems_filesystem_iterate( rtems_per_filesystem_routine routine, void *routine_arg ) {
 8008aa0:	37 9c ff e8 	addi sp,sp,-24                                 
 8008aa4:	5b 8b 00 18 	sw (sp+24),r11                                 
 8008aa8:	5b 8c 00 14 	sw (sp+20),r12                                 
 8008aac:	5b 8d 00 10 	sw (sp+16),r13                                 
 8008ab0:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8008ab4:	5b 8f 00 08 	sw (sp+8),r15                                  
 8008ab8:	5b 9d 00 04 	sw (sp+4),ra                                   
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
 8008abc:	78 0b 08 01 	mvhi r11,0x801                                 
                                                                      
bool rtems_filesystem_iterate(                                        
  rtems_per_filesystem_routine routine,                               
  void *routine_arg                                                   
)                                                                     
{                                                                     
 8008ac0:	b8 20 70 00 	mv r14,r1                                      
 8008ac4:	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;                                                  
 8008ac8:	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];
 8008acc:	39 6b b1 e4 	ori r11,r11,0xb1e4                             
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  while ( table_entry->type && !stop ) {                              
 8008ad0:	e0 00 00 06 	bi 8008ae8 <rtems_filesystem_iterate+0x48>     
    stop = (*routine)( table_entry, routine_arg );                    
 8008ad4:	b9 60 08 00 	mv r1,r11                                      
 8008ad8:	b9 e0 10 00 	mv r2,r15                                      
 8008adc:	d9 c0 00 00 	call r14                                       
 8008ae0:	b8 20 18 00 	mv r3,r1                                       
    ++table_entry;                                                    
 8008ae4:	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 ) {                              
 8008ae8:	29 61 00 00 	lw r1,(r11+0)                                  
 8008aec:	44 20 00 03 	be r1,r0,8008af8 <rtems_filesystem_iterate+0x58>
 8008af0:	44 60 ff f9 	be r3,r0,8008ad4 <rtems_filesystem_iterate+0x34>
 8008af4:	e0 00 00 13 	bi 8008b40 <rtems_filesystem_iterate+0xa0>     
 8008af8:	b8 60 58 00 	mv r11,r3                                      
    stop = (*routine)( table_entry, routine_arg );                    
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
 8008afc:	5c 23 00 11 	bne r1,r3,8008b40 <rtems_filesystem_iterate+0xa0>
    rtems_libio_lock();                                               
 8008b00:	fb ff ff d4 	calli 8008a50 <rtems_libio_lock>               
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
 8008b04:	78 03 08 01 	mvhi r3,0x801                                  
 8008b08:	38 63 d1 b0 	ori r3,r3,0xd1b0                               
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
    rtems_libio_lock();                                               
    for (                                                             
 8008b0c:	78 0d 08 01 	mvhi r13,0x801                                 
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
 8008b10:	28 6c 00 00 	lw r12,(r3+0)                                  
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
    rtems_libio_lock();                                               
    for (                                                             
 8008b14:	39 ad d1 b4 	ori r13,r13,0xd1b4                             
 8008b18:	e0 00 00 06 	bi 8008b30 <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 );                  
 8008b1c:	35 81 00 08 	addi r1,r12,8                                  
 8008b20:	b9 e0 10 00 	mv r2,r15                                      
 8008b24:	d9 c0 00 00 	call r14                                       
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
 8008b28:	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 );                  
 8008b2c:	b8 20 58 00 	mv r11,r1                                      
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
    rtems_libio_lock();                                               
    for (                                                             
 8008b30:	45 8d 00 02 	be r12,r13,8008b38 <rtems_filesystem_iterate+0x98>
      node = rtems_chain_first( &filesystem_chain );                  
      !rtems_chain_is_tail( &filesystem_chain, node ) && !stop;       
 8008b34:	45 60 ff fa 	be r11,r0,8008b1c <rtems_filesystem_iterate+0x7c><== ALWAYS TAKEN
    ) {                                                               
      const filesystem_node *fsn = (filesystem_node *) node;          
                                                                      
      stop = (*routine)( &fsn->entry, routine_arg );                  
    }                                                                 
    rtems_libio_unlock();                                             
 8008b38:	fb ff ff d1 	calli 8008a7c <rtems_libio_unlock>             
 8008b3c:	b9 60 18 00 	mv r3,r11                                      
  }                                                                   
                                                                      
  return stop;                                                        
}                                                                     
 8008b40:	b8 60 08 00 	mv r1,r3                                       
 8008b44:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8008b48:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8008b4c:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8008b50:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8008b54:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8008b58:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8008b5c:	37 9c 00 18 	addi sp,sp,24                                  
 8008b60:	c3 a0 00 00 	ret                                            
                                                                      

08002de4 <rtems_filesystem_location_remove_from_mt_entry>: } void rtems_filesystem_location_remove_from_mt_entry( rtems_filesystem_location_info_t *loc ) {
 8002de4:	37 9c ff fc 	addi sp,sp,-4                                  
 8002de8:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_filesystem_mt_entry_declare_lock_context(lock_context);       
  bool do_unmount;                                                    
                                                                      
  rtems_filesystem_mt_entry_lock(lock_context);                       
 8002dec:	90 00 20 00 	rcsr r4,IE                                     
 8002df0:	34 02 ff fe 	mvi r2,-2                                      
 8002df4:	a0 82 10 00 	and r2,r4,r2                                   
 8002df8:	d0 02 00 00 	wcsr IE,r2                                     
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
 8002dfc:	28 23 00 00 	lw r3,(r1+0)                                   
  previous       = the_node->previous;                                
 8002e00:	28 22 00 04 	lw r2,(r1+4)                                   
  next->previous = previous;                                          
 8002e04:	58 62 00 04 	sw (r3+4),r2                                   
  previous->next = next;                                              
 8002e08:	58 43 00 00 	sw (r2+0),r3                                   
  rtems_chain_extract_unprotected(&loc->mt_entry_node);               
  do_unmount = rtems_filesystem_is_ready_for_unmount(loc->mt_entry);  
 8002e0c:	28 22 00 14 	lw r2,(r1+20)                                  
 8002e10:	34 03 00 00 	mvi r3,0                                       
  rtems_filesystem_mount_table_entry_t *mt_entry                      
)                                                                     
{                                                                     
  bool ready = !mt_entry->mounted                                     
    && rtems_chain_has_only_one_node( &mt_entry->location_chain )     
    && mt_entry->mt_fs_root->reference_count == 1;                    
 8002e14:	40 45 00 28 	lbu r5,(r2+40)                                 
 8002e18:	5c a0 00 0d 	bne r5,r0,8002e4c <rtems_filesystem_location_remove_from_mt_entry+0x68>
static inline bool rtems_filesystem_is_ready_for_unmount(             
  rtems_filesystem_mount_table_entry_t *mt_entry                      
)                                                                     
{                                                                     
  bool ready = !mt_entry->mounted                                     
    && rtems_chain_has_only_one_node( &mt_entry->location_chain )     
 8002e1c:	28 46 00 14 	lw r6,(r2+20)                                  
 8002e20:	28 45 00 1c 	lw r5,(r2+28)                                  
 8002e24:	5c c5 00 0a 	bne r6,r5,8002e4c <rtems_filesystem_location_remove_from_mt_entry+0x68>
    && mt_entry->mt_fs_root->reference_count == 1;                    
 8002e28:	28 43 00 24 	lw r3,(r2+36)                                  
      ++global_loc->deferred_released_count;                          
    }                                                                 
  }                                                                   
}                                                                     
                                                                      
void rtems_filesystem_location_remove_from_mt_entry(                  
 8002e2c:	28 63 00 18 	lw r3,(r3+24)                                  
                                                                      
static inline bool rtems_filesystem_is_ready_for_unmount(             
  rtems_filesystem_mount_table_entry_t *mt_entry                      
)                                                                     
{                                                                     
  bool ready = !mt_entry->mounted                                     
 8002e30:	64 63 00 01 	cmpei r3,r3,1                                  
    && rtems_chain_has_only_one_node( &mt_entry->location_chain )     
    && mt_entry->mt_fs_root->reference_count == 1;                    
                                                                      
  if ( ready ) {                                                      
 8002e34:	44 60 00 06 	be r3,r0,8002e4c <rtems_filesystem_location_remove_from_mt_entry+0x68><== ALWAYS TAKEN
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 );                        
 8002e38:	34 45 00 18 	addi r5,r2,24                                  <== NOT EXECUTED
                                                                      
  head->next = tail;                                                  
 8002e3c:	58 45 00 14 	sw (r2+20),r5                                  <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
 8002e40:	34 45 00 14 	addi r5,r2,20                                  <== NOT EXECUTED
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
 8002e44:	58 40 00 18 	sw (r2+24),r0                                  <== NOT EXECUTED
  tail->previous = head;                                              
 8002e48:	58 45 00 1c 	sw (r2+28),r5                                  <== NOT EXECUTED
  bool do_unmount;                                                    
                                                                      
  rtems_filesystem_mt_entry_lock(lock_context);                       
  rtems_chain_extract_unprotected(&loc->mt_entry_node);               
  do_unmount = rtems_filesystem_is_ready_for_unmount(loc->mt_entry);  
  rtems_filesystem_mt_entry_unlock(lock_context);                     
 8002e4c:	d0 04 00 00 	wcsr IE,r4                                     
                                                                      
  if (do_unmount) {                                                   
 8002e50:	44 60 00 03 	be r3,r0,8002e5c <rtems_filesystem_location_remove_from_mt_entry+0x78><== ALWAYS TAKEN
    rtems_filesystem_do_unmount(loc->mt_entry);                       
 8002e54:	28 21 00 14 	lw r1,(r1+20)                                  <== NOT EXECUTED
 8002e58:	fb ff ff bc 	calli 8002d48 <rtems_filesystem_do_unmount>    <== NOT EXECUTED
  }                                                                   
}                                                                     
 8002e5c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002e60:	37 9c 00 04 	addi sp,sp,4                                   
 8002e64:	c3 a0 00 00 	ret                                            
                                                                      

080030e0 <rtems_filesystem_location_transform_to_global>: } rtems_filesystem_global_location_t *rtems_filesystem_location_transform_to_global( rtems_filesystem_location_info_t *loc ) {
 80030e0:	37 9c ff f0 	addi sp,sp,-16                                 
 80030e4:	5b 8b 00 0c 	sw (sp+12),r11                                 
 80030e8:	5b 8c 00 08 	sw (sp+8),r12                                  
 80030ec:	5b 9d 00 04 	sw (sp+4),ra                                   
 80030f0:	b8 20 60 00 	mv r12,r1                                      
  rtems_filesystem_global_location_t *global_loc = malloc(sizeof(*global_loc));
 80030f4:	34 01 00 24 	mvi r1,36                                      
 80030f8:	fb ff fa 13 	calli 8001944 <malloc>                         
 80030fc:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  if (global_loc != NULL) {                                           
 8003100:	44 20 00 0a 	be r1,r0,8003128 <rtems_filesystem_location_transform_to_global+0x48><== NEVER TAKEN
    global_loc->reference_count = 1;                                  
 8003104:	34 02 00 01 	mvi r2,1                                       
 8003108:	58 22 00 18 	sw (r1+24),r2                                  
    global_loc->deferred_released_next = NULL;                        
 800310c:	58 20 00 1c 	sw (r1+28),r0                                  
    global_loc->deferred_released_count = 0;                          
    rtems_filesystem_location_copy(&global_loc->location, loc);       
 8003110:	b9 80 10 00 	mv r2,r12                                      
  rtems_filesystem_global_location_t *global_loc = malloc(sizeof(*global_loc));
                                                                      
  if (global_loc != NULL) {                                           
    global_loc->reference_count = 1;                                  
    global_loc->deferred_released_next = NULL;                        
    global_loc->deferred_released_count = 0;                          
 8003114:	58 20 00 20 	sw (r1+32),r0                                  
    rtems_filesystem_location_copy(&global_loc->location, loc);       
 8003118:	fb ff fe ea 	calli 8002cc0 <rtems_filesystem_location_copy> 
    rtems_filesystem_location_remove_from_mt_entry(loc);              
 800311c:	b9 80 08 00 	mv r1,r12                                      
 8003120:	fb ff ff 31 	calli 8002de4 <rtems_filesystem_location_remove_from_mt_entry>
 8003124:	e0 00 00 0a 	bi 800314c <rtems_filesystem_location_transform_to_global+0x6c>
  } else {                                                            
    rtems_filesystem_location_free(loc);                              
 8003128:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 800312c:	f8 00 15 8e 	calli 8008764 <rtems_filesystem_location_free> <== NOT EXECUTED
static inline rtems_filesystem_global_location_t *                    
rtems_filesystem_global_location_obtain_null(void)                    
{                                                                     
  rtems_filesystem_global_location_t *global_loc = NULL;              
                                                                      
  return rtems_filesystem_global_location_obtain( &global_loc );      
 8003130:	37 81 00 10 	addi r1,sp,16                                  <== NOT EXECUTED
);                                                                    
                                                                      
static inline rtems_filesystem_global_location_t *                    
rtems_filesystem_global_location_obtain_null(void)                    
{                                                                     
  rtems_filesystem_global_location_t *global_loc = NULL;              
 8003134:	5b 80 00 10 	sw (sp+16),r0                                  <== NOT EXECUTED
                                                                      
  return rtems_filesystem_global_location_obtain( &global_loc );      
 8003138:	fb ff ff b0 	calli 8002ff8 <rtems_filesystem_global_location_obtain><== NOT EXECUTED
 800313c:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
    global_loc = rtems_filesystem_global_location_obtain_null();      
    errno = ENOMEM;                                                   
 8003140:	f8 00 21 b3 	calli 800b80c <__errno>                        <== NOT EXECUTED
 8003144:	34 02 00 0c 	mvi r2,12                                      <== NOT EXECUTED
 8003148:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
  }                                                                   
                                                                      
  return global_loc;                                                  
}                                                                     
 800314c:	b9 60 08 00 	mv r1,r11                                      
 8003150:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003154:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8003158:	2b 8c 00 08 	lw r12,(sp+8)                                  
 800315c:	37 9c 00 10 	addi sp,sp,16                                  
 8003160:	c3 a0 00 00 	ret                                            
                                                                      

08001c34 <rtems_gxx_key_create>: int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *)) {
 8001c34:	37 9c ff f0 	addi sp,sp,-16                                 
 8001c38:	5b 8b 00 10 	sw (sp+16),r11                                 
 8001c3c:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8001c40:	5b 8d 00 08 	sw (sp+8),r13                                  
 8001c44:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001c48:	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 ) );
 8001c4c:	34 01 00 08 	mvi r1,8                                       
  }                                                                   
  return 0;                                                           
}                                                                     
                                                                      
int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *))
{                                                                     
 8001c50:	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 ) );
 8001c54:	f8 00 01 3e 	calli 800214c <malloc>                         
  *key = new_key;                                                     
 8001c58:	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 ) );
 8001c5c:	b8 20 58 00 	mv r11,r1                                      
  *key = new_key;                                                     
  new_key->val  = NULL;                                               
 8001c60:	58 20 00 00 	sw (r1+0),r0                                   
  new_key->dtor = dtor;                                               
 8001c64:	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 );
 8001c68:	b9 60 10 00 	mv r2,r11                                      
 8001c6c:	34 01 00 00 	mvi r1,0                                       
 8001c70:	b9 80 18 00 	mv r3,r12                                      
 8001c74:	f8 00 0a 31 	calli 8004538 <rtems_task_variable_add>        
  if ( status == RTEMS_SUCCESSFUL )                                   
    return 0;                                                         
 8001c78:	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 )                                   
 8001c7c:	44 20 00 04 	be r1,r0,8001c8c <rtems_gxx_key_create+0x58>   <== ALWAYS TAKEN
    return 0;                                                         
                                                                      
  free( new_key );                                                    
 8001c80:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8001c84:	fb ff ff 64 	calli 8001a14 <free>                           <== NOT EXECUTED
  return -1;                                                          
 8001c88:	34 02 ff ff 	mvi r2,-1                                      <== NOT EXECUTED
}                                                                     
 8001c8c:	b8 40 08 00 	mv r1,r2                                       
 8001c90:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001c94:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8001c98:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8001c9c:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8001ca0:	37 9c 00 10 	addi sp,sp,16                                  
 8001ca4:	c3 a0 00 00 	ret                                            
                                                                      

08001cb4 <rtems_gxx_key_delete>: int rtems_gxx_key_delete (__gthread_key_t key) {
 8001cb4:	37 9c ff f8 	addi sp,sp,-8                                  
 8001cb8:	5b 8b 00 08 	sw (sp+8),r11                                  
 8001cbc:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001cc0:	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 );    
 8001cc4:	b9 60 10 00 	mv r2,r11                                      
 8001cc8:	34 01 00 00 	mvi r1,0                                       
 8001ccc:	f8 00 0a 4a 	calli 80045f4 <rtems_task_variable_delete>     
  if ( status == RTEMS_SUCCESSFUL ) {                                 
 8001cd0:	5c 20 00 04 	bne r1,r0,8001ce0 <rtems_gxx_key_delete+0x2c>  <== NEVER TAKEN
    /* Hmm - hopefully all tasks using this key have gone away... */  
    if ( key ) free( *(void **)key );                                 
 8001cd4:	45 61 00 03 	be r11,r1,8001ce0 <rtems_gxx_key_delete+0x2c>  <== NEVER TAKEN
 8001cd8:	29 61 00 00 	lw r1,(r11+0)                                  
 8001cdc:	fb ff ff 4e 	calli 8001a14 <free>                           
    return 0;                                                         
  }                                                                   
  key = NULL;                                                         
  return 0;                                                           
}                                                                     
 8001ce0:	34 01 00 00 	mvi r1,0                                       
 8001ce4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001ce8:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8001cec:	37 9c 00 08 	addi sp,sp,8                                   
 8001cf0:	c3 a0 00 00 	ret                                            
                                                                      

08001bb4 <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)) {
 8001bb4:	37 9c ff e8 	addi sp,sp,-24                                 
 8001bb8:	5b 8b 00 14 	sw (sp+20),r11                                 
 8001bbc:	5b 8c 00 10 	sw (sp+16),r12                                 
 8001bc0:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8001bc4:	5b 8e 00 08 	sw (sp+8),r14                                  
 8001bc8:	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 ) {                    
 8001bcc:	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))       
{                                                                     
 8001bd0:	b8 20 58 00 	mv r11,r1                                      
 8001bd4:	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 ) {                    
 8001bd8:	5d a0 00 0f 	bne r13,r0,8001c14 <rtems_gxx_once+0x60>       
    rtems_mode saveMode;                                              
    __gthread_once_t o;                                               
                                                                      
    rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 
 8001bdc:	34 01 01 00 	mvi r1,256                                     
 8001be0:	34 02 01 00 	mvi r2,256                                     
 8001be4:	37 83 00 18 	addi r3,sp,24                                  
 8001be8:	f8 00 09 cb 	calli 8004314 <rtems_task_mode>                
    if ( (o = *(volatile __gthread_once_t *)once) == 0 ) {            
 8001bec:	29 6c 00 00 	lw r12,(r11+0)                                 
 8001bf0:	5d 8d 00 03 	bne r12,r13,8001bfc <rtems_gxx_once+0x48>      <== NEVER TAKEN
      *(volatile __gthread_once_t *)once = 1;                         
 8001bf4:	34 01 00 01 	mvi r1,1                                       
 8001bf8:	59 61 00 00 	sw (r11+0),r1                                  
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
 8001bfc:	2b 81 00 18 	lw r1,(sp+24)                                  
 8001c00:	34 02 01 00 	mvi r2,256                                     
 8001c04:	37 83 00 18 	addi r3,sp,24                                  
 8001c08:	f8 00 09 c3 	calli 8004314 <rtems_task_mode>                
    if ( o == 0 )                                                     
 8001c0c:	5d 80 00 02 	bne r12,r0,8001c14 <rtems_gxx_once+0x60>       <== NEVER TAKEN
      (*func)();                                                      
 8001c10:	d9 c0 00 00 	call r14                                       
  }                                                                   
  return 0;                                                           
}                                                                     
 8001c14:	34 01 00 00 	mvi r1,0                                       
 8001c18:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001c1c:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8001c20:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8001c24:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8001c28:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8001c2c:	37 9c 00 18 	addi sp,sp,24                                  
 8001c30:	c3 a0 00 00 	ret                                            
                                                                      

08001d64 <rtems_gxx_setspecific>: int rtems_gxx_setspecific(__gthread_key_t key, const void *ptr) {
 8001d64:	37 9c ff f4 	addi sp,sp,-12                                 
 8001d68:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8001d6c:	5b 8c 00 08 	sw (sp+8),r12                                  
 8001d70:	5b 9d 00 04 	sw (sp+4),ra                                   
 8001d74:	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 );
 8001d78:	29 63 00 04 	lw r3,(r11+4)                                  
  #endif                                                              
  return p;                                                           
}                                                                     
                                                                      
int rtems_gxx_setspecific(__gthread_key_t key, const void *ptr)       
{                                                                     
 8001d7c:	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 );
 8001d80:	34 01 00 00 	mvi r1,0                                       
 8001d84:	b9 60 10 00 	mv r2,r11                                      
 8001d88:	f8 00 09 ec 	calli 8004538 <rtems_task_variable_add>        
  if ( status == RTEMS_SUCCESSFUL ) {                                 
    /* now let's set the proper value */                              
    key->val =  (void *)ptr;                                          
    return 0;                                                         
  }                                                                   
  return -1;                                                          
 8001d8c:	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 ) {                                 
 8001d90:	5c 20 00 03 	bne r1,r0,8001d9c <rtems_gxx_setspecific+0x38> <== NEVER TAKEN
    /* now let's set the proper value */                              
    key->val =  (void *)ptr;                                          
 8001d94:	59 6c 00 00 	sw (r11+0),r12                                 
    return 0;                                                         
 8001d98:	34 03 00 00 	mvi r3,0                                       
  }                                                                   
  return -1;                                                          
}                                                                     
 8001d9c:	b8 60 08 00 	mv r1,r3                                       
 8001da0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001da4:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8001da8:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8001dac:	37 9c 00 0c 	addi sp,sp,12                                  
 8001db0:	c3 a0 00 00 	ret                                            
                                                                      

08006bb8 <rtems_heap_allocate_aligned_with_boundary>: void *rtems_heap_allocate_aligned_with_boundary( size_t size, uintptr_t alignment, uintptr_t boundary ) {
 8006bb8:	37 9c ff f0 	addi sp,sp,-16                                 
 8006bbc:	5b 8b 00 10 	sw (sp+16),r11                                 
 8006bc0:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8006bc4:	5b 8d 00 08 	sw (sp+8),r13                                  
 8006bc8:	5b 9d 00 04 	sw (sp+4),ra                                   
  if (                                                                
 8006bcc:	78 05 08 02 	mvhi r5,0x802                                  
 8006bd0:	38 a5 53 3c 	ori r5,r5,0x533c                               
void *rtems_heap_allocate_aligned_with_boundary(                      
  size_t size,                                                        
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
 8006bd4:	b8 40 60 00 	mv r12,r2                                      
  if (                                                                
 8006bd8:	28 a2 00 00 	lw r2,(r5+0)                                   
void *rtems_heap_allocate_aligned_with_boundary(                      
  size_t size,                                                        
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
 8006bdc:	b8 20 68 00 	mv r13,r1                                      
  if (                                                                
 8006be0:	34 01 00 03 	mvi r1,3                                       
void *rtems_heap_allocate_aligned_with_boundary(                      
  size_t size,                                                        
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
 8006be4:	b8 60 58 00 	mv r11,r3                                      
  if (                                                                
 8006be8:	5c 41 00 04 	bne r2,r1,8006bf8 <rtems_heap_allocate_aligned_with_boundary+0x40><== NEVER TAKEN
    _System_state_Is_up( _System_state_Get() )                        
      && !malloc_is_system_state_OK()                                 
 8006bec:	fb ff fb 34 	calli 80058bc <malloc_is_system_state_OK>      
  ) {                                                                 
    return NULL;                                                      
 8006bf0:	34 05 00 00 	mvi r5,0                                       
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
  if (                                                                
    _System_state_Is_up( _System_state_Get() )                        
      && !malloc_is_system_state_OK()                                 
 8006bf4:	44 20 00 0a 	be r1,r0,8006c1c <rtems_heap_allocate_aligned_with_boundary+0x64>
  ) {                                                                 
    return NULL;                                                      
  }                                                                   
                                                                      
  malloc_deferred_frees_process();                                    
 8006bf8:	fb ff fb 3b 	calli 80058e4 <malloc_deferred_frees_process>  
                                                                      
  /* FIXME: Statistics, boundary checks */                            
                                                                      
  return _Protected_heap_Allocate_aligned_with_boundary(              
 8006bfc:	78 05 08 02 	mvhi r5,0x802                                  
 8006c00:	38 a5 40 54 	ori r5,r5,0x4054                               
 8006c04:	28 a1 00 00 	lw r1,(r5+0)                                   
 8006c08:	b9 a0 10 00 	mv r2,r13                                      
 8006c0c:	b9 80 18 00 	mv r3,r12                                      
 8006c10:	b9 60 20 00 	mv r4,r11                                      
 8006c14:	f8 00 11 8b 	calli 800b240 <_Protected_heap_Allocate_aligned_with_boundary>
 8006c18:	b8 20 28 00 	mv r5,r1                                       
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment,                                                        
    boundary                                                          
  );                                                                  
}                                                                     
 8006c1c:	b8 a0 08 00 	mv r1,r5                                       
 8006c20:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006c24:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8006c28:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8006c2c:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8006c30:	37 9c 00 10 	addi sp,sp,16                                  
 8006c34:	c3 a0 00 00 	ret                                            
                                                                      

0800224c <rtems_heap_extend_via_sbrk>: void *rtems_heap_extend_via_sbrk( Heap_Control *heap, size_t alloc_size ) {
 800224c:	37 9c ff e8 	addi sp,sp,-24                                 
 8002250:	5b 8b 00 18 	sw (sp+24),r11                                 
 8002254:	5b 8c 00 14 	sw (sp+20),r12                                 
 8002258:	5b 8d 00 10 	sw (sp+16),r13                                 
 800225c:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8002260:	5b 8f 00 08 	sw (sp+8),r15                                  
 8002264:	5b 9d 00 04 	sw (sp+4),ra                                   
 8002268:	b8 40 60 00 	mv r12,r2                                      
  ptrdiff_t sbrk_amount = RTEMS_Malloc_Sbrk_amount;                   
 800226c:	78 02 08 01 	mvhi r2,0x801                                  
 8002270:	38 42 38 b0 	ori r2,r2,0x38b0                               
 8002274:	28 4d 00 00 	lw r13,(r2+0)                                  
                                                                      
void *rtems_heap_extend_via_sbrk(                                     
  Heap_Control *heap,                                                 
  size_t alloc_size                                                   
)                                                                     
{                                                                     
 8002278:	b8 20 78 00 	mv r15,r1                                      
  ptrdiff_t sbrk_amount = RTEMS_Malloc_Sbrk_amount;                   
  ptrdiff_t sbrk_size = (ptrdiff_t) alloc_size;                       
  ptrdiff_t misaligned = sbrk_size % sbrk_amount;                     
 800227c:	b9 80 08 00 	mv r1,r12                                      
 8002280:	b9 a0 10 00 	mv r2,r13                                      
  Heap_Control *heap,                                                 
  size_t alloc_size                                                   
)                                                                     
{                                                                     
  ptrdiff_t sbrk_amount = RTEMS_Malloc_Sbrk_amount;                   
  ptrdiff_t sbrk_size = (ptrdiff_t) alloc_size;                       
 8002284:	b9 80 58 00 	mv r11,r12                                     
  ptrdiff_t misaligned = sbrk_size % sbrk_amount;                     
 8002288:	f8 00 3c 74 	calli 8011458 <__modsi3>                       
  void *return_this = NULL;                                           
                                                                      
  if ( misaligned != 0 ) {                                            
 800228c:	44 20 00 03 	be r1,r0,8002298 <rtems_heap_extend_via_sbrk+0x4c>
    sbrk_size += sbrk_amount - misaligned;                            
 8002290:	b5 8d 58 00 	add r11,r12,r13                                
 8002294:	c9 61 58 00 	sub r11,r11,r1                                 
  }                                                                   
                                                                      
  if ( sbrk_size > 0 && sbrk_amount > 0 ) {                           
 8002298:	69 61 00 00 	cmpgi r1,r11,0                                 
 800229c:	69 ad 00 00 	cmpgi r13,r13,0                                
)                                                                     
{                                                                     
  ptrdiff_t sbrk_amount = RTEMS_Malloc_Sbrk_amount;                   
  ptrdiff_t sbrk_size = (ptrdiff_t) alloc_size;                       
  ptrdiff_t misaligned = sbrk_size % sbrk_amount;                     
  void *return_this = NULL;                                           
 80022a0:	34 0e 00 00 	mvi r14,0                                      
                                                                      
  if ( misaligned != 0 ) {                                            
    sbrk_size += sbrk_amount - misaligned;                            
  }                                                                   
                                                                      
  if ( sbrk_size > 0 && sbrk_amount > 0 ) {                           
 80022a4:	a0 2d 68 00 	and r13,r1,r13                                 
 80022a8:	45 a0 00 18 	be r13,r0,8002308 <rtems_heap_extend_via_sbrk+0xbc><== NEVER TAKEN
    void *area_begin = sbrk( sbrk_size );                             
 80022ac:	b9 60 08 00 	mv r1,r11                                      
 80022b0:	fb ff f8 43 	calli 80003bc <sbrk>                           
 80022b4:	b8 20 10 00 	mv r2,r1                                       
                                                                      
    if ( area_begin != (void *) -1 ) {                                
 80022b8:	34 01 ff ff 	mvi r1,-1                                      
 80022bc:	44 41 00 13 	be r2,r1,8002308 <rtems_heap_extend_via_sbrk+0xbc>
      bool ok = _Protected_heap_Extend( heap, area_begin, sbrk_size );
 80022c0:	b9 e0 08 00 	mv r1,r15                                      
 80022c4:	b9 60 18 00 	mv r3,r11                                      
 80022c8:	f8 00 0c 94 	calli 8005518 <_Protected_heap_Extend>         
                                                                      
      if ( ok ) {                                                     
 80022cc:	44 20 00 0d 	be r1,r0,8002300 <rtems_heap_extend_via_sbrk+0xb4>
        MSBUMP( space_available, sbrk_size );                         
 80022d0:	78 03 08 01 	mvhi r3,0x801                                  
 80022d4:	38 63 38 80 	ori r3,r3,0x3880                               
 80022d8:	28 61 00 00 	lw r1,(r3+0)                                   
 80022dc:	b9 80 10 00 	mv r2,r12                                      
 80022e0:	34 04 00 00 	mvi r4,0                                       
 80022e4:	b5 61 58 00 	add r11,r11,r1                                 
 80022e8:	58 6b 00 00 	sw (r3+0),r11                                  
 80022ec:	b9 e0 08 00 	mv r1,r15                                      
 80022f0:	34 03 00 00 	mvi r3,0                                       
 80022f4:	f8 00 0c 6f 	calli 80054b0 <_Protected_heap_Allocate_aligned_with_boundary>
 80022f8:	b8 20 70 00 	mv r14,r1                                      
 80022fc:	e0 00 00 03 	bi 8002308 <rtems_heap_extend_via_sbrk+0xbc>   
                                                                      
        return_this = _Protected_heap_Allocate( heap, alloc_size );   
      } else {                                                        
        sbrk( -sbrk_size );                                           
 8002300:	c8 0b 08 00 	sub r1,r0,r11                                  
 8002304:	fb ff f8 2e 	calli 80003bc <sbrk>                           
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return return_this;                                                 
}                                                                     
 8002308:	b9 c0 08 00 	mv r1,r14                                      
 800230c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002310:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8002314:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8002318:	2b 8d 00 10 	lw r13,(sp+16)                                 
 800231c:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8002320:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8002324:	37 9c 00 18 	addi sp,sp,24                                  
 8002328:	c3 a0 00 00 	ret                                            
                                                                      

0800258c <rtems_heap_null_extend>: Heap_Control *heap __attribute__((unused)), size_t alloc_size __attribute__((unused)) ) { return NULL; }
 800258c:	34 01 00 00 	mvi r1,0                                       
 8002590:	c3 a0 00 00 	ret                                            
                                                                      

08003538 <rtems_ide_part_table_free>: * RETURNS: * N/A */ void rtems_ide_part_table_free(rtems_disk_desc_t *disk_desc) {
 8003538:	37 9c ff fc 	addi sp,sp,-4                                  <== NOT EXECUTED
 800353c:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
    partition_table_free( disk_desc );                                
 8003540:	fb ff fe 8a 	calli 8002f68 <partition_table_free>           <== NOT EXECUTED
}                                                                     
 8003544:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 8003548:	37 9c 00 04 	addi sp,sp,4                                   <== NOT EXECUTED
 800354c:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08003550 <rtems_ide_part_table_get>: * RTEMS_SUCCESSFUL if success, * RTEMS_INTERNAL_ERROR otherwise */ rtems_status_code rtems_ide_part_table_get(const char *dev_name, rtems_disk_desc_t *disk_desc) {
 8003550:	37 9c ff fc 	addi sp,sp,-4                                  <== NOT EXECUTED
 8003554:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
    return partition_table_get( dev_name, disk_desc );                
 8003558:	fb ff ff 7b 	calli 8003344 <partition_table_get>            <== NOT EXECUTED
}                                                                     
 800355c:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 8003560:	37 9c 00 04 	addi sp,sp,4                                   <== NOT EXECUTED
 8003564:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08003568 <rtems_ide_part_table_initialize>: * RTEMS_NO_MEMOTY if cannot have not enough memory, * RTEMS_INTERNAL_ERROR if other error occurs. */ rtems_status_code rtems_ide_part_table_initialize(const char *dev_name) {
 8003568:	37 9c ff c0 	addi sp,sp,-64                                 
 800356c:	5b 8b 00 30 	sw (sp+48),r11                                 
 8003570:	5b 8c 00 2c 	sw (sp+44),r12                                 
 8003574:	5b 8d 00 28 	sw (sp+40),r13                                 
 8003578:	5b 8e 00 24 	sw (sp+36),r14                                 
 800357c:	5b 8f 00 20 	sw (sp+32),r15                                 
 8003580:	5b 90 00 1c 	sw (sp+28),r16                                 
 8003584:	5b 91 00 18 	sw (sp+24),r17                                 
 8003588:	5b 92 00 14 	sw (sp+20),r18                                 
 800358c:	5b 93 00 10 	sw (sp+16),r19                                 
 8003590:	5b 94 00 0c 	sw (sp+12),r20                                 
 8003594:	5b 95 00 08 	sw (sp+8),r21                                  
 8003598:	5b 9d 00 04 	sw (sp+4),ra                                   
    rtems_part_desc_t          *part_desc;                            
                                                                      
    /* logical device name /dev/hdxyy */                              
    char                        name[RTEMS_IDE_PARTITION_DEV_NAME_LENGTH_MAX];
                                                                      
    disk_desc = (rtems_disk_desc_t *) calloc(1, sizeof(rtems_disk_desc_t));
 800359c:	34 02 01 28 	mvi r2,296                                     
 *      RTEMS_NO_MEMOTY if cannot have not enough memory,             
 *      RTEMS_INTERNAL_ERROR if other error occurs.                   
 */                                                                   
rtems_status_code                                                     
rtems_ide_part_table_initialize(const char *dev_name)                 
{                                                                     
 80035a0:	b8 20 98 00 	mv r19,r1                                      
    rtems_part_desc_t          *part_desc;                            
                                                                      
    /* logical device name /dev/hdxyy */                              
    char                        name[RTEMS_IDE_PARTITION_DEV_NAME_LENGTH_MAX];
                                                                      
    disk_desc = (rtems_disk_desc_t *) calloc(1, sizeof(rtems_disk_desc_t));
 80035a4:	34 01 00 01 	mvi r1,1                                       
 80035a8:	f8 00 02 32 	calli 8003e70 <calloc>                         
 80035ac:	b8 20 58 00 	mv r11,r1                                      
    if (disk_desc == NULL)                                            
    {                                                                 
        return RTEMS_NO_MEMORY;                                       
 80035b0:	34 0e 00 1a 	mvi r14,26                                     
                                                                      
    /* logical device name /dev/hdxyy */                              
    char                        name[RTEMS_IDE_PARTITION_DEV_NAME_LENGTH_MAX];
                                                                      
    disk_desc = (rtems_disk_desc_t *) calloc(1, sizeof(rtems_disk_desc_t));
    if (disk_desc == NULL)                                            
 80035b4:	44 20 00 31 	be r1,r0,8003678 <rtems_ide_part_table_initialize+0x110><== NEVER TAKEN
    {                                                                 
        return RTEMS_NO_MEMORY;                                       
    }                                                                 
                                                                      
    /* get partition table */                                         
    rc = partition_table_get(dev_name, disk_desc);                    
 80035b8:	ba 60 08 00 	mv r1,r19                                      
 80035bc:	b9 60 10 00 	mv r2,r11                                      
 80035c0:	fb ff ff 61 	calli 8003344 <partition_table_get>            
 80035c4:	b8 20 70 00 	mv r14,r1                                      
    if (rc != RTEMS_SUCCESSFUL)                                       
 80035c8:	44 20 00 04 	be r1,r0,80035d8 <rtems_ide_part_table_initialize+0x70><== ALWAYS TAKEN
    {                                                                 
        free(disk_desc);                                              
 80035cc:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 80035d0:	f8 00 02 72 	calli 8003f98 <free>                           <== NOT EXECUTED
        return rc;                                                    
 80035d4:	e0 00 00 29 	bi 8003678 <rtems_ide_part_table_initialize+0x110><== NOT EXECUTED
    rtems_filesystem_split_dev_t (disk_desc->dev, major, minor);      
                                                                      
    /* create logical disks on the physical one */                    
    for (part_num = 0; part_num < disk_desc->last_log_id; part_num++) 
    {                                                                 
        sprintf(name, "%s%d", dev_name, part_num + 1);                
 80035d8:	78 10 08 02 	mvhi r16,0x802                                 
                                                                      
        rc = rtems_disk_create_log(dev, disk_desc->dev, part_desc->start,
                                   part_desc->size, name);            
        if (rc != RTEMS_SUCCESSFUL)                                   
        {                                                             
            fprintf(stdout,"Cannot create device %s, error code %d\n", name, rc);
 80035dc:	78 0d 08 02 	mvhi r13,0x802                                 
 80035e0:	78 0f 08 02 	mvhi r15,0x802                                 
    /* To avoid device numbers conflicts we have to use for logic disk the same
     * device major number as ATA device has, and minor number that equals to
     * sum of logic disk partition number and the minor number of physical disk
     */                                                               
                                                                      
    rtems_filesystem_split_dev_t (disk_desc->dev, major, minor);      
 80035e4:	29 75 00 00 	lw r21,(r11+0)                                 
 80035e8:	29 74 00 04 	lw r20,(r11+4)                                 
)                                                                     
{                                                                     
  union __rtems_dev_t temp;                                           
                                                                      
  temp.device = device;                                               
  return temp.__overlay.minor;                                        
 80035ec:	b9 60 90 00 	mv r18,r11                                     
                                                                      
    /* create logical disks on the physical one */                    
    for (part_num = 0; part_num < disk_desc->last_log_id; part_num++) 
 80035f0:	34 0c 00 00 	mvi r12,0                                      
    {                                                                 
        sprintf(name, "%s%d", dev_name, part_num + 1);                
 80035f4:	37 91 00 34 	addi r17,sp,52                                 
 80035f8:	3a 10 52 6c 	ori r16,r16,0x526c                             
                                                                      
        rc = rtems_disk_create_log(dev, disk_desc->dev, part_desc->start,
                                   part_desc->size, name);            
        if (rc != RTEMS_SUCCESSFUL)                                   
        {                                                             
            fprintf(stdout,"Cannot create device %s, error code %d\n", name, rc);
 80035fc:	39 ad 72 28 	ori r13,r13,0x7228                             
 8003600:	39 ef 52 74 	ori r15,r15,0x5274                             
     */                                                               
                                                                      
    rtems_filesystem_split_dev_t (disk_desc->dev, major, minor);      
                                                                      
    /* create logical disks on the physical one */                    
    for (part_num = 0; part_num < disk_desc->last_log_id; part_num++) 
 8003604:	e0 00 00 19 	bi 8003668 <rtems_ide_part_table_initialize+0x100>
    {                                                                 
        sprintf(name, "%s%d", dev_name, part_num + 1);                
 8003608:	35 8c 00 01 	addi r12,r12,1                                 
 800360c:	ba 00 10 00 	mv r2,r16                                      
 8003610:	ba 20 08 00 	mv r1,r17                                      
 8003614:	ba 60 18 00 	mv r3,r19                                      
 8003618:	b9 80 20 00 	mv r4,r12                                      
 800361c:	f8 00 40 26 	calli 80136b4 <sprintf>                        
        dev = rtems_filesystem_make_dev_t(major, ++minor);            
                                                                      
        part_desc = disk_desc->partitions[part_num];                  
 8003620:	2a 46 00 28 	lw r6,(r18+40)                                 
)                                                                     
{                                                                     
  union __rtems_dev_t temp;                                           
                                                                      
  temp.__overlay.major = _major;                                      
  temp.__overlay.minor = _minor;                                      
 8003624:	b5 94 10 00 	add r2,r12,r20                                 
        if (part_desc == NULL)                                        
 8003628:	44 c0 00 0f 	be r6,r0,8003664 <rtems_ide_part_table_initialize+0xfc>
        {                                                             
            continue;                                                 
        }                                                             
                                                                      
        rc = rtems_disk_create_log(dev, disk_desc->dev, part_desc->start,
 800362c:	29 64 00 04 	lw r4,(r11+4)                                  
 8003630:	28 c5 00 04 	lw r5,(r6+4)                                   
 8003634:	29 63 00 00 	lw r3,(r11+0)                                  
 8003638:	28 c6 00 08 	lw r6,(r6+8)                                   
 800363c:	ba a0 08 00 	mv r1,r21                                      
 8003640:	ba 20 38 00 	mv r7,r17                                      
 8003644:	fb ff fc 87 	calli 8002860 <rtems_disk_create_log>          
 8003648:	b8 20 20 00 	mv r4,r1                                       
                                   part_desc->size, name);            
        if (rc != RTEMS_SUCCESSFUL)                                   
 800364c:	44 20 00 06 	be r1,r0,8003664 <rtems_ide_part_table_initialize+0xfc><== ALWAYS TAKEN
        {                                                             
            fprintf(stdout,"Cannot create device %s, error code %d\n", name, rc);
 8003650:	29 a1 00 00 	lw r1,(r13+0)                                  <== NOT EXECUTED
 8003654:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
 8003658:	ba 20 18 00 	mv r3,r17                                      <== NOT EXECUTED
 800365c:	28 21 00 08 	lw r1,(r1+8)                                   <== NOT EXECUTED
 8003660:	f8 00 3d 9d 	calli 8012cd4 <fprintf>                        <== NOT EXECUTED
            continue;                                                 
 8003664:	36 52 00 04 	addi r18,r18,4                                 
     */                                                               
                                                                      
    rtems_filesystem_split_dev_t (disk_desc->dev, major, minor);      
                                                                      
    /* create logical disks on the physical one */                    
    for (part_num = 0; part_num < disk_desc->last_log_id; part_num++) 
 8003668:	29 61 00 24 	lw r1,(r11+36)                                 
 800366c:	48 2c ff e7 	bg r1,r12,8003608 <rtems_ide_part_table_initialize+0xa0>
            fprintf(stdout,"Cannot create device %s, error code %d\n", name, rc);
            continue;                                                 
        }                                                             
    }                                                                 
                                                                      
    partition_table_free(disk_desc);                                  
 8003670:	b9 60 08 00 	mv r1,r11                                      
 8003674:	fb ff fe 3d 	calli 8002f68 <partition_table_free>           
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
 8003678:	b9 c0 08 00 	mv r1,r14                                      
 800367c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003680:	2b 8b 00 30 	lw r11,(sp+48)                                 
 8003684:	2b 8c 00 2c 	lw r12,(sp+44)                                 
 8003688:	2b 8d 00 28 	lw r13,(sp+40)                                 
 800368c:	2b 8e 00 24 	lw r14,(sp+36)                                 
 8003690:	2b 8f 00 20 	lw r15,(sp+32)                                 
 8003694:	2b 90 00 1c 	lw r16,(sp+28)                                 
 8003698:	2b 91 00 18 	lw r17,(sp+24)                                 
 800369c:	2b 92 00 14 	lw r18,(sp+20)                                 
 80036a0:	2b 93 00 10 	lw r19,(sp+16)                                 
 80036a4:	2b 94 00 0c 	lw r20,(sp+12)                                 
 80036a8:	2b 95 00 08 	lw r21,(sp+8)                                  
 80036ac:	37 9c 00 40 	addi sp,sp,64                                  
 80036b0:	c3 a0 00 00 	ret                                            
                                                                      

08006a3c <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) {
 8006a3c:	37 9c ff e4 	addi sp,sp,-28                                 
 8006a40:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8006a44:	5b 8c 00 18 	sw (sp+24),r12                                 
 8006a48:	5b 8d 00 14 	sw (sp+20),r13                                 
 8006a4c:	5b 8e 00 10 	sw (sp+16),r14                                 
 8006a50:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8006a54:	5b 90 00 08 	sw (sp+8),r16                                  
 8006a58:	5b 9d 00 04 	sw (sp+4),ra                                   
 8006a5c:	b8 20 78 00 	mv r15,r1                                      
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
 8006a60:	44 20 00 18 	be r1,r0,8006ac0 <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) 
 8006a64:	78 02 08 02 	mvhi r2,0x802                                  
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
 8006a68:	78 0b 08 02 	mvhi r11,0x802                                 
#endif                                                                
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/thread.h>                                       
                                                                      
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) 
 8006a6c:	38 42 0c 5c 	ori r2,r2,0xc5c                                
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
 8006a70:	39 6b 0c 60 	ori r11,r11,0xc60                              
#endif                                                                
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/thread.h>                                       
                                                                      
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) 
 8006a74:	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 ] )                 
 8006a78:	29 61 00 00 	lw r1,(r11+0)                                  
 8006a7c:	44 20 00 0f 	be r1,r0,8006ab8 <rtems_iterate_over_all_threads+0x7c>
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
 8006a80:	28 2c 00 04 	lw r12,(r1+4)                                  
    if ( !information )                                               
 8006a84:	34 0e 00 04 	mvi r14,4                                      
 8006a88:	34 0d 00 01 	mvi r13,1                                      
 8006a8c:	5d 80 00 09 	bne r12,r0,8006ab0 <rtems_iterate_over_all_threads+0x74>
 8006a90:	e0 00 00 0a 	bi 8006ab8 <rtems_iterate_over_all_threads+0x7c>
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
      the_thread = (Thread_Control *)information->local_table[ i ];   
 8006a94:	29 81 00 1c 	lw r1,(r12+28)                                 
 8006a98:	b4 2e 08 00 	add r1,r1,r14                                  
 8006a9c:	28 21 00 00 	lw r1,(r1+0)                                   
                                                                      
      if ( !the_thread )                                              
 8006aa0:	44 20 00 02 	be r1,r0,8006aa8 <rtems_iterate_over_all_threads+0x6c>
	continue;                                                            
                                                                      
      (*routine)(the_thread);                                         
 8006aa4:	d9 e0 00 00 	call r15                                       
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( !information )                                               
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
 8006aa8:	35 ad 00 01 	addi r13,r13,1                                 
 8006aac:	35 ce 00 04 	addi r14,r14,4                                 
 8006ab0:	2d 81 00 10 	lhu r1,(r12+16)                                
 8006ab4:	50 2d ff f8 	bgeu r1,r13,8006a94 <rtems_iterate_over_all_threads+0x58>
 8006ab8:	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++ ) {
 8006abc:	5d 70 ff ef 	bne r11,r16,8006a78 <rtems_iterate_over_all_threads+0x3c>
                                                                      
      (*routine)(the_thread);                                         
    }                                                                 
  }                                                                   
                                                                      
}                                                                     
 8006ac0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8006ac4:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8006ac8:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8006acc:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8006ad0:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8006ad4:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8006ad8:	2b 90 00 08 	lw r16,(sp+8)                                  
 8006adc:	37 9c 00 1c 	addi sp,sp,28                                  
 8006ae0:	c3 a0 00 00 	ret                                            
                                                                      

080016f4 <rtems_libio_init>: rtems_id rtems_libio_semaphore; rtems_libio_t *rtems_libio_iops; rtems_libio_t *rtems_libio_iop_freelist; void rtems_libio_init( void ) {
 80016f4:	37 9c ff f4 	addi sp,sp,-12                                 
 80016f8:	5b 8b 00 0c 	sw (sp+12),r11                                 
 80016fc:	5b 8c 00 08 	sw (sp+8),r12                                  
 8001700:	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)                                  
 8001704:	78 01 08 01 	mvhi r1,0x801                                  
 8001708:	38 21 d0 10 	ori r1,r1,0xd010                               
 800170c:	28 2c 00 00 	lw r12,(r1+0)                                  
 8001710:	45 80 00 19 	be r12,r0,8001774 <rtems_libio_init+0x80>      <== NEVER TAKEN
    {                                                                 
        rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
 8001714:	b9 80 08 00 	mv r1,r12                                      
 8001718:	34 02 00 2c 	mvi r2,44                                      
 800171c:	fb ff fe be 	calli 8001214 <calloc>                         
 8001720:	b8 20 58 00 	mv r11,r1                                      
 8001724:	78 01 08 01 	mvhi r1,0x801                                  
 8001728:	38 21 d7 a0 	ori r1,r1,0xd7a0                               
 800172c:	58 2b 00 00 	sw (r1+0),r11                                  
                                                    sizeof(rtems_libio_t));
        if (rtems_libio_iops == NULL)                                 
            rtems_fatal_error_occurred(RTEMS_NO_MEMORY);              
 8001730:	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)                                 
 8001734:	45 60 00 1b 	be r11,r0,80017a0 <rtems_libio_init+0xac>      
            rtems_fatal_error_occurred(RTEMS_NO_MEMORY);              
                                                                      
        iop = rtems_libio_iop_freelist = rtems_libio_iops;            
 8001738:	78 01 08 01 	mvhi r1,0x801                                  
 800173c:	38 21 d7 a4 	ori r1,r1,0xd7a4                               
 8001740:	58 2b 00 00 	sw (r1+0),r11                                  
        for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)  
 8001744:	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;            
 8001748:	b9 60 08 00 	mv r1,r11                                      
        for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)  
 800174c:	e0 00 00 02 	bi 8001754 <rtems_libio_init+0x60>             
          iop->data1 = iop + 1;                                       
 8001750:	58 21 ff fc 	sw (r1+-4),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++)  
 8001754:	34 42 00 01 	addi r2,r2,1                                   
 8001758:	34 21 00 2c 	addi r1,r1,44                                  
 800175c:	55 82 ff fd 	bgu r12,r2,8001750 <rtems_libio_init+0x5c>     
          iop->data1 = iop + 1;                                       
        iop->data1 = NULL;                                            
 8001760:	b9 80 08 00 	mv r1,r12                                      
 8001764:	34 02 00 2c 	mvi r2,44                                      
 8001768:	f8 00 63 29 	calli 801a40c <__mulsi3>                       
 800176c:	b5 61 08 00 	add r1,r11,r1                                  
 8001770:	58 20 ff fc 	sw (r1+-4),r0                                  
  /*                                                                  
   *  Create the binary semaphore used to provide mutual exclusion    
   *  on the IOP Table.                                               
   */                                                                 
                                                                      
  rc = rtems_semaphore_create(                                        
 8001774:	78 02 08 01 	mvhi r2,0x801                                  
 8001778:	38 42 b9 38 	ori r2,r2,0xb938                               
 800177c:	28 41 00 00 	lw r1,(r2+0)                                   
 8001780:	78 05 08 01 	mvhi r5,0x801                                  
 8001784:	34 03 00 54 	mvi r3,84                                      
 8001788:	34 02 00 01 	mvi r2,1                                       
 800178c:	34 04 00 00 	mvi r4,0                                       
 8001790:	38 a5 d7 a8 	ori r5,r5,0xd7a8                               
 8001794:	f8 00 07 8a 	calli 80035bc <rtems_semaphore_create>         
 8001798:	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 )                                       
 800179c:	44 20 00 02 	be r1,r0,80017a4 <rtems_libio_init+0xb0>       <== ALWAYS TAKEN
    rtems_fatal_error_occurred( rc );                                 
 80017a0:	f8 00 09 fe 	calli 8003f98 <rtems_fatal_error_occurred>     
                                                                      
  /*                                                                  
   *  Initialize the base file system infrastructure.                 
   */                                                                 
                                                                      
  if (rtems_fs_init_helper)                                           
 80017a4:	78 02 08 01 	mvhi r2,0x801                                  
 80017a8:	38 42 d0 0c 	ori r2,r2,0xd00c                               
 80017ac:	28 41 00 00 	lw r1,(r2+0)                                   
 80017b0:	44 23 00 02 	be r1,r3,80017b8 <rtems_libio_init+0xc4>       
     (* rtems_fs_init_helper)();                                      
 80017b4:	d8 20 00 00 	call r1                                        
}                                                                     
 80017b8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80017bc:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80017c0:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80017c4:	37 9c 00 0c 	addi sp,sp,12                                  
 80017c8:	c3 a0 00 00 	ret                                            
                                                                      

08002b8c <rtems_libio_set_private_env>: rtems_status_code rtems_libio_set_private_env(void) {
 8002b8c:	37 9c ff ec 	addi sp,sp,-20                                 
 8002b90:	5b 8b 00 14 	sw (sp+20),r11                                 
 8002b94:	5b 8c 00 10 	sw (sp+16),r12                                 
 8002b98:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8002b9c:	5b 8e 00 08 	sw (sp+8),r14                                  
 8002ba0:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_id self_task_id = rtems_task_self();                          
 8002ba4:	f8 00 07 18 	calli 8004804 <rtems_task_self>                
  rtems_user_env_t *old_env = rtems_current_user_env;                 
 8002ba8:	78 02 08 01 	mvhi r2,0x801                                  
 8002bac:	38 42 21 48 	ori r2,r2,0x2148                               
 8002bb0:	28 4d 00 00 	lw r13,(r2+0)                                  
  bool uses_global_env = old_env == &rtems_global_user_env;           
  bool uses_shared_env = old_env->task_id != self_task_id;            
                                                                      
  if (uses_global_env || uses_shared_env) {                           
 8002bb4:	78 02 08 01 	mvhi r2,0x801                                  
 8002bb8:	38 42 21 1c 	ori r2,r2,0x211c                               
}                                                                     
                                                                      
rtems_status_code rtems_libio_set_private_env(void)                   
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_id self_task_id = rtems_task_self();                          
 8002bbc:	b8 20 70 00 	mv r14,r1                                      
  rtems_user_env_t *old_env = rtems_current_user_env;                 
  bool uses_global_env = old_env == &rtems_global_user_env;           
  bool uses_shared_env = old_env->task_id != self_task_id;            
 8002bc0:	29 a1 00 24 	lw r1,(r13+36)                                 
                                                                      
  if (uses_global_env || uses_shared_env) {                           
 8002bc4:	45 a2 00 03 	be r13,r2,8002bd0 <rtems_libio_set_private_env+0x44>
  _Thread_Enable_dispatch();                                          
}                                                                     
                                                                      
rtems_status_code rtems_libio_set_private_env(void)                   
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
 8002bc8:	34 0c 00 00 	mvi r12,0                                      
  rtems_id self_task_id = rtems_task_self();                          
  rtems_user_env_t *old_env = rtems_current_user_env;                 
  bool uses_global_env = old_env == &rtems_global_user_env;           
  bool uses_shared_env = old_env->task_id != self_task_id;            
                                                                      
  if (uses_global_env || uses_shared_env) {                           
 8002bcc:	44 2e 00 2c 	be r1,r14,8002c7c <rtems_libio_set_private_env+0xf0>
    rtems_user_env_t *new_env = calloc(1, sizeof(*new_env));          
 8002bd0:	34 01 00 01 	mvi r1,1                                       
 8002bd4:	34 02 00 2c 	mvi r2,44                                      
 8002bd8:	f8 00 16 8f 	calli 8008614 <calloc>                         
 8002bdc:	b8 20 58 00 	mv r11,r1                                      
                                                                      
      if (sc != RTEMS_SUCCESSFUL) {                                   
        free_user_env(new_env);                                       
      }                                                               
    } else {                                                          
      sc = RTEMS_NO_MEMORY;                                           
 8002be0:	34 0c 00 1a 	mvi r12,26                                     
  bool uses_shared_env = old_env->task_id != self_task_id;            
                                                                      
  if (uses_global_env || uses_shared_env) {                           
    rtems_user_env_t *new_env = calloc(1, sizeof(*new_env));          
                                                                      
    if (new_env != NULL) {                                            
 8002be4:	44 20 00 26 	be r1,r0,8002c7c <rtems_libio_set_private_env+0xf0>
      *new_env = *old_env;                                            
 8002be8:	b9 a0 10 00 	mv r2,r13                                      
 8002bec:	34 03 00 2c 	mvi r3,44                                      
 8002bf0:	f8 00 21 12 	calli 800b038 <memcpy>                         
      new_env->reference_count = 1;                                   
 8002bf4:	34 01 00 01 	mvi r1,1                                       
 8002bf8:	59 61 00 28 	sw (r11+40),r1                                 
      new_env->task_id = self_task_id;                                
      new_env->root_directory =                                       
        rtems_filesystem_global_location_obtain(&old_env->root_directory);
 8002bfc:	35 a1 00 04 	addi r1,r13,4                                  
    rtems_user_env_t *new_env = calloc(1, sizeof(*new_env));          
                                                                      
    if (new_env != NULL) {                                            
      *new_env = *old_env;                                            
      new_env->reference_count = 1;                                   
      new_env->task_id = self_task_id;                                
 8002c00:	59 6e 00 24 	sw (r11+36),r14                                
      new_env->root_directory =                                       
        rtems_filesystem_global_location_obtain(&old_env->root_directory);
 8002c04:	f8 00 03 a4 	calli 8003a94 <rtems_filesystem_global_location_obtain>
                                                                      
    if (new_env != NULL) {                                            
      *new_env = *old_env;                                            
      new_env->reference_count = 1;                                   
      new_env->task_id = self_task_id;                                
      new_env->root_directory =                                       
 8002c08:	59 61 00 04 	sw (r11+4),r1                                  
        rtems_filesystem_global_location_obtain(&old_env->root_directory);
      new_env->current_directory =                                    
        rtems_filesystem_global_location_obtain(&old_env->current_directory);
 8002c0c:	b9 a0 08 00 	mv r1,r13                                      
 8002c10:	f8 00 03 a1 	calli 8003a94 <rtems_filesystem_global_location_obtain>
      rtems_fatal_error_occurred(0xdeadbeef);                         
    }                                                                 
                                                                      
    rtems_current_user_env = &rtems_global_user_env;                  
  }                                                                   
}                                                                     
 8002c14:	29 63 00 04 	lw r3,(r11+4)                                  
      new_env->root_directory =                                       
        rtems_filesystem_global_location_obtain(&old_env->root_directory);
      new_env->current_directory =                                    
        rtems_filesystem_global_location_obtain(&old_env->current_directory);
                                                                      
      if (                                                            
 8002c18:	78 02 08 01 	mvhi r2,0x801                                  
      *new_env = *old_env;                                            
      new_env->reference_count = 1;                                   
      new_env->task_id = self_task_id;                                
      new_env->root_directory =                                       
        rtems_filesystem_global_location_obtain(&old_env->root_directory);
      new_env->current_directory =                                    
 8002c1c:	59 61 00 00 	sw (r11+0),r1                                  
        rtems_filesystem_global_location_obtain(&old_env->current_directory);
                                                                      
      if (                                                            
 8002c20:	28 63 00 10 	lw r3,(r3+16)                                  
 8002c24:	38 42 17 54 	ori r2,r2,0x1754                               
 8002c28:	44 62 00 10 	be r3,r2,8002c68 <rtems_libio_set_private_env+0xdc>
        !rtems_filesystem_global_location_is_null(new_env->root_directory)
          && !rtems_filesystem_global_location_is_null(new_env->current_directory)
 8002c2c:	28 21 00 10 	lw r1,(r1+16)                                  
 8002c30:	44 22 00 0e 	be r1,r2,8002c68 <rtems_libio_set_private_env+0xdc><== NEVER TAKEN
      ) {                                                             
        sc = rtems_task_variable_add(                                 
 8002c34:	78 0e 08 01 	mvhi r14,0x801                                 
 8002c38:	39 ce 21 48 	ori r14,r14,0x2148                             
 8002c3c:	78 03 08 00 	mvhi r3,0x800                                  
 8002c40:	34 01 00 00 	mvi r1,0                                       
 8002c44:	b9 c0 10 00 	mv r2,r14                                      
 8002c48:	38 63 2b 08 	ori r3,r3,0x2b08                               
 8002c4c:	f8 00 07 13 	calli 8004898 <rtems_task_variable_add>        
 8002c50:	b8 20 60 00 	mv r12,r1                                      
          RTEMS_SELF,                                                 
          (void **) &rtems_current_user_env,                          
          free_user_env                                               
        );                                                            
        if (sc == RTEMS_SUCCESSFUL) {                                 
 8002c54:	5c 20 00 07 	bne r1,r0,8002c70 <rtems_libio_set_private_env+0xe4>
          free_user_env_protected(old_env);                           
 8002c58:	b9 a0 08 00 	mv r1,r13                                      
 8002c5c:	fb ff ff c2 	calli 8002b64 <free_user_env_protected>        
          rtems_current_user_env = new_env;                           
 8002c60:	59 cb 00 00 	sw (r14+0),r11                                 
 8002c64:	e0 00 00 06 	bi 8002c7c <rtems_libio_set_private_env+0xf0>  
        } else {                                                      
          sc = RTEMS_TOO_MANY;                                        
        }                                                             
      } else {                                                        
        sc = RTEMS_UNSATISFIED;                                       
 8002c68:	34 0c 00 0d 	mvi r12,13                                     
 8002c6c:	e0 00 00 02 	bi 8002c74 <rtems_libio_set_private_env+0xe8>  
        );                                                            
        if (sc == RTEMS_SUCCESSFUL) {                                 
          free_user_env_protected(old_env);                           
          rtems_current_user_env = new_env;                           
        } else {                                                      
          sc = RTEMS_TOO_MANY;                                        
 8002c70:	34 0c 00 05 	mvi r12,5                                      
      } else {                                                        
        sc = RTEMS_UNSATISFIED;                                       
      }                                                               
                                                                      
      if (sc != RTEMS_SUCCESSFUL) {                                   
        free_user_env(new_env);                                       
 8002c74:	b9 60 08 00 	mv r1,r11                                      
 8002c78:	fb ff ff a4 	calli 8002b08 <free_user_env>                  
      sc = RTEMS_NO_MEMORY;                                           
    }                                                                 
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
 8002c7c:	b9 80 08 00 	mv r1,r12                                      
 8002c80:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002c84:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8002c88:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8002c8c:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8002c90:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8002c94:	37 9c 00 14 	addi sp,sp,20                                  
 8002c98:	c3 a0 00 00 	ret                                            
                                                                      

08002c9c <rtems_libio_share_private_env>: rtems_status_code rtems_libio_share_private_env(rtems_id task_id) {
 8002c9c:	37 9c ff ec 	addi sp,sp,-20                                 
 8002ca0:	5b 8b 00 10 	sw (sp+16),r11                                 
 8002ca4:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8002ca8:	5b 8d 00 08 	sw (sp+8),r13                                  
 8002cac:	5b 9d 00 04 	sw (sp+4),ra                                   
 8002cb0:	b8 20 68 00 	mv r13,r1                                      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_id self_task_id = rtems_task_self();                          
 8002cb4:	f8 00 06 d4 	calli 8004804 <rtems_task_self>                
                                                                      
  if (task_id != RTEMS_SELF && self_task_id != task_id) {             
 8002cb8:	fc 2d 08 00 	cmpne r1,r1,r13                                
 8002cbc:	7d a2 00 00 	cmpnei r2,r13,0                                
  return sc;                                                          
}                                                                     
                                                                      
rtems_status_code rtems_libio_share_private_env(rtems_id task_id)     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
 8002cc0:	34 0b 00 00 	mvi r11,0                                      
  rtems_id self_task_id = rtems_task_self();                          
                                                                      
  if (task_id != RTEMS_SELF && self_task_id != task_id) {             
 8002cc4:	a0 22 08 00 	and r1,r1,r2                                   
 8002cc8:	44 20 00 21 	be r1,r0,8002d4c <rtems_libio_share_private_env+0xb0>
    /*                                                                
     * We have to disable the thread dispatching to prevent deletion of the
     * environment in the meantime.                                   
     */                                                               
    _Thread_Disable_dispatch();                                       
    sc = rtems_task_variable_get(                                     
 8002ccc:	78 0c 08 01 	mvhi r12,0x801                                 
                                                                      
    /*                                                                
     * We have to disable the thread dispatching to prevent deletion of the
     * environment in the meantime.                                   
     */                                                               
    _Thread_Disable_dispatch();                                       
 8002cd0:	fb ff ff 88 	calli 8002af0 <_Thread_Disable_dispatch>       
    sc = rtems_task_variable_get(                                     
 8002cd4:	39 8c 21 48 	ori r12,r12,0x2148                             
 8002cd8:	b9 a0 08 00 	mv r1,r13                                      
 8002cdc:	b9 80 10 00 	mv r2,r12                                      
 8002ce0:	37 83 00 14 	addi r3,sp,20                                  
 8002ce4:	f8 00 07 3f 	calli 80049e0 <rtems_task_variable_get>        
 8002ce8:	b8 20 58 00 	mv r11,r1                                      
      task_id,                                                        
      (void *) &rtems_current_user_env,                               
      (void *) &env                                                   
    );                                                                
    if (sc == RTEMS_SUCCESSFUL) {                                     
 8002cec:	5c 20 00 06 	bne r1,r0,8002d04 <rtems_libio_share_private_env+0x68>
      ++env->reference_count;                                         
 8002cf0:	2b 81 00 14 	lw r1,(sp+20)                                  
 8002cf4:	28 22 00 28 	lw r2,(r1+40)                                  
 8002cf8:	34 42 00 01 	addi r2,r2,1                                   
 8002cfc:	58 22 00 28 	sw (r1+40),r2                                  
 8002d00:	e0 00 00 02 	bi 8002d08 <rtems_libio_share_private_env+0x6c>
    } else {                                                          
      sc = RTEMS_UNSATISFIED;                                         
 8002d04:	34 0b 00 0d 	mvi r11,13                                     
    }                                                                 
    _Thread_Enable_dispatch();                                        
 8002d08:	f8 00 10 53 	calli 8006e54 <_Thread_Enable_dispatch>        
                                                                      
    if (sc == RTEMS_SUCCESSFUL) {                                     
 8002d0c:	5d 60 00 10 	bne r11,r0,8002d4c <rtems_libio_share_private_env+0xb0>
      sc = rtems_task_variable_add(                                   
 8002d10:	78 03 08 00 	mvhi r3,0x800                                  
 8002d14:	34 01 00 00 	mvi r1,0                                       
 8002d18:	b9 80 10 00 	mv r2,r12                                      
 8002d1c:	38 63 2b 08 	ori r3,r3,0x2b08                               
 8002d20:	f8 00 06 de 	calli 8004898 <rtems_task_variable_add>        
 8002d24:	b8 20 58 00 	mv r11,r1                                      
        RTEMS_SELF,                                                   
        (void **) &rtems_current_user_env,                            
        free_user_env                                                 
      );                                                              
      if (sc == RTEMS_SUCCESSFUL) {                                   
 8002d28:	5c 20 00 06 	bne r1,r0,8002d40 <rtems_libio_share_private_env+0xa4><== NEVER TAKEN
        free_user_env_protected(rtems_current_user_env);              
 8002d2c:	29 81 00 00 	lw r1,(r12+0)                                  
 8002d30:	fb ff ff 8d 	calli 8002b64 <free_user_env_protected>        
        rtems_current_user_env = env;                                 
 8002d34:	2b 81 00 14 	lw r1,(sp+20)                                  
 8002d38:	59 81 00 00 	sw (r12+0),r1                                  
 8002d3c:	e0 00 00 04 	bi 8002d4c <rtems_libio_share_private_env+0xb0>
      } else {                                                        
        free_user_env_protected(env);                                 
 8002d40:	2b 81 00 14 	lw r1,(sp+20)                                  <== NOT EXECUTED
        sc = RTEMS_TOO_MANY;                                          
 8002d44:	34 0b 00 05 	mvi r11,5                                      <== NOT EXECUTED
      );                                                              
      if (sc == RTEMS_SUCCESSFUL) {                                   
        free_user_env_protected(rtems_current_user_env);              
        rtems_current_user_env = env;                                 
      } else {                                                        
        free_user_env_protected(env);                                 
 8002d48:	fb ff ff 87 	calli 8002b64 <free_user_env_protected>        <== NOT EXECUTED
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
 8002d4c:	b9 60 08 00 	mv r1,r11                                      
 8002d50:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002d54:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8002d58:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8002d5c:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8002d60:	37 9c 00 14 	addi sp,sp,20                                  
 8002d64:	c3 a0 00 00 	ret                                            
                                                                      

08008904 <rtems_libio_to_fcntl_flags>: int rtems_libio_to_fcntl_flags( uint32_t flags ) { int fcntl_flags = 0; if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) {
 8008904:	20 24 00 06 	andi r4,r1,0x6                                 
 8008908:	34 03 00 06 	mvi r3,6                                       
    fcntl_flags |= O_RDWR;                                            
 800890c:	34 02 00 02 	mvi r2,2                                       
                                                                      
int rtems_libio_to_fcntl_flags( uint32_t flags )                      
{                                                                     
  int fcntl_flags = 0;                                                
                                                                      
  if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 
 8008910:	44 83 00 06 	be r4,r3,8008928 <rtems_libio_to_fcntl_flags+0x24><== NEVER TAKEN
    fcntl_flags |= O_RDWR;                                            
  } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {       
 8008914:	20 23 00 02 	andi r3,r1,0x2                                 
    fcntl_flags |= O_RDONLY;                                          
 8008918:	34 02 00 00 	mvi r2,0                                       
{                                                                     
  int 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) {       
 800891c:	5c 60 00 03 	bne r3,r0,8008928 <rtems_libio_to_fcntl_flags+0x24><== ALWAYS TAKEN
    fcntl_flags |= O_RDONLY;                                          
  } else if ( (flags & LIBIO_FLAGS_WRITE) == LIBIO_FLAGS_WRITE) {     
 8008920:	20 22 00 04 	andi r2,r1,0x4                                 <== NOT EXECUTED
int rtems_libio_to_fcntl_flags( uint32_t flags )                      
{                                                                     
  int fcntl_flags = 0;                                                
                                                                      
  if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) { 
    fcntl_flags |= O_RDWR;                                            
 8008924:	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 ) {     
 8008928:	20 23 00 01 	andi r3,r1,0x1                                 
 800892c:	44 60 00 02 	be r3,r0,8008934 <rtems_libio_to_fcntl_flags+0x30>
    fcntl_flags |= O_NONBLOCK;                                        
 8008930:	38 42 40 00 	ori r2,r2,0x4000                               
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) {         
 8008934:	20 23 02 00 	andi r3,r1,0x200                               
 8008938:	44 60 00 02 	be r3,r0,8008940 <rtems_libio_to_fcntl_flags+0x3c>
    fcntl_flags |= O_APPEND;                                          
 800893c:	38 42 00 08 	ori r2,r2,0x8                                  
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) {         
 8008940:	20 21 04 00 	andi r1,r1,0x400                               
 8008944:	44 20 00 02 	be r1,r0,800894c <rtems_libio_to_fcntl_flags+0x48>
    fcntl_flags |= O_CREAT;                                           
 8008948:	38 42 02 00 	ori r2,r2,0x200                                
  }                                                                   
                                                                      
  return fcntl_flags;                                                 
}                                                                     
 800894c:	b8 40 08 00 	mv r1,r2                                       
 8008950:	c3 a0 00 00 	ret                                            
                                                                      

08002d68 <rtems_libio_use_global_env>: void rtems_libio_use_global_env(void) {
 8002d68:	37 9c ff f4 	addi sp,sp,-12                                 
 8002d6c:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8002d70:	5b 8c 00 08 	sw (sp+8),r12                                  
 8002d74:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_user_env_t *env = rtems_current_user_env;                     
  bool uses_private_env = env != &rtems_global_user_env;              
                                                                      
  if (uses_private_env) {                                             
 8002d78:	78 0b 08 01 	mvhi r11,0x801                                 
 8002d7c:	39 6b 21 48 	ori r11,r11,0x2148                             
 8002d80:	29 61 00 00 	lw r1,(r11+0)                                  
 8002d84:	78 0c 08 01 	mvhi r12,0x801                                 
 8002d88:	39 8c 21 1c 	ori r12,r12,0x211c                             
 8002d8c:	44 2c 00 0a 	be r1,r12,8002db4 <rtems_libio_use_global_env+0x4c>
    sc = rtems_task_variable_delete(                                  
 8002d90:	34 01 00 00 	mvi r1,0                                       
 8002d94:	b9 60 10 00 	mv r2,r11                                      
 8002d98:	f8 00 06 ef 	calli 8004954 <rtems_task_variable_delete>     
      RTEMS_SELF,                                                     
      (void **) &rtems_current_user_env                               
    );                                                                
    if (sc != RTEMS_SUCCESSFUL) {                                     
 8002d9c:	44 20 00 05 	be r1,r0,8002db0 <rtems_libio_use_global_env+0x48><== ALWAYS TAKEN
      rtems_fatal_error_occurred(0xdeadbeef);                         
 8002da0:	78 02 08 01 	mvhi r2,0x801                                  <== NOT EXECUTED
 8002da4:	38 42 17 4c 	ori r2,r2,0x174c                               <== NOT EXECUTED
 8002da8:	28 41 00 00 	lw r1,(r2+0)                                   <== NOT EXECUTED
 8002dac:	f8 00 07 9f 	calli 8004c28 <rtems_fatal_error_occurred>     <== NOT EXECUTED
    }                                                                 
                                                                      
    rtems_current_user_env = &rtems_global_user_env;                  
 8002db0:	59 6c 00 00 	sw (r11+0),r12                                 
  }                                                                   
}                                                                     
 8002db4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8002db8:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8002dbc:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8002dc0:	37 9c 00 0c 	addi sp,sp,12                                  
 8002dc4:	c3 a0 00 00 	ret                                            
                                                                      

08005d4c <rtems_malloc_statistics_at_free>: * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) {
 8005d4c:	37 9c ff f8 	addi sp,sp,-8                                  
 8005d50:	5b 9d 00 04 	sw (sp+4),ra                                   
  uintptr_t size;                                                     
                                                                      
  if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
 8005d54:	78 03 08 02 	mvhi r3,0x802                                  
 8005d58:	38 63 40 54 	ori r3,r3,0x4054                               
 *  size and thus we skip updating the statistics.                    
 */                                                                   
static void rtems_malloc_statistics_at_free(                          
  void *pointer                                                       
)                                                                     
{                                                                     
 8005d5c:	b8 20 10 00 	mv r2,r1                                       
  uintptr_t size;                                                     
                                                                      
  if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
 8005d60:	28 61 00 00 	lw r1,(r3+0)                                   
 8005d64:	37 83 00 08 	addi r3,sp,8                                   
 8005d68:	f8 00 15 7f 	calli 800b364 <_Protected_heap_Get_block_size> 
 8005d6c:	44 20 00 0b 	be r1,r0,8005d98 <rtems_malloc_statistics_at_free+0x4c><== NEVER TAKEN
    MSBUMP(lifetime_freed, size);                                     
 8005d70:	78 01 08 02 	mvhi r1,0x802                                  
 8005d74:	38 21 50 98 	ori r1,r1,0x5098                               
 8005d78:	2b 83 00 08 	lw r3,(sp+8)                                   
 8005d7c:	28 22 00 2c 	lw r2,(r1+44)                                  
 8005d80:	28 24 00 28 	lw r4,(r1+40)                                  
 8005d84:	b4 62 10 00 	add r2,r3,r2                                   
 8005d88:	f4 62 18 00 	cmpgu r3,r3,r2                                 
 8005d8c:	58 22 00 2c 	sw (r1+44),r2                                  
 8005d90:	b4 64 18 00 	add r3,r3,r4                                   
 8005d94:	58 23 00 28 	sw (r1+40),r3                                  
  }                                                                   
}                                                                     
 8005d98:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005d9c:	37 9c 00 08 	addi sp,sp,8                                   
 8005da0:	c3 a0 00 00 	ret                                            
                                                                      

08005da4 <rtems_malloc_statistics_at_malloc>: } static void rtems_malloc_statistics_at_malloc( void *pointer ) {
 8005da4:	37 9c ff f8 	addi sp,sp,-8                                  
 8005da8:	5b 9d 00 04 	sw (sp+4),ra                                   
  uintptr_t actual_size = 0;                                          
 8005dac:	5b 80 00 08 	sw (sp+8),r0                                   
}                                                                     
                                                                      
static void rtems_malloc_statistics_at_malloc(                        
  void *pointer                                                       
)                                                                     
{                                                                     
 8005db0:	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 )                                                     
 8005db4:	44 20 00 15 	be r1,r0,8005e08 <rtems_malloc_statistics_at_malloc+0x64><== NEVER TAKEN
    return;                                                           
                                                                      
  _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
 8005db8:	78 03 08 02 	mvhi r3,0x802                                  
 8005dbc:	38 63 40 54 	ori r3,r3,0x4054                               
 8005dc0:	28 61 00 00 	lw r1,(r3+0)                                   
 8005dc4:	37 83 00 08 	addi r3,sp,8                                   
 8005dc8:	f8 00 15 67 	calli 800b364 <_Protected_heap_Get_block_size> 
                                                                      
  MSBUMP(lifetime_allocated, actual_size);                            
 8005dcc:	78 01 08 02 	mvhi r1,0x802                                  
 8005dd0:	38 21 50 98 	ori r1,r1,0x5098                               
 8005dd4:	2b 83 00 08 	lw r3,(sp+8)                                   
 8005dd8:	28 22 00 24 	lw r2,(r1+36)                                  
 8005ddc:	28 24 00 20 	lw r4,(r1+32)                                  
 8005de0:	b4 62 10 00 	add r2,r3,r2                                   
 8005de4:	f4 62 18 00 	cmpgu r3,r3,r2                                 
 8005de8:	58 22 00 24 	sw (r1+36),r2                                  
 8005dec:	b4 64 18 00 	add r3,r3,r4                                   
 8005df0:	58 23 00 20 	sw (r1+32),r3                                  
                                                                      
  current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
 8005df4:	28 23 00 2c 	lw r3,(r1+44)                                  
 8005df8:	c8 43 10 00 	sub r2,r2,r3                                   
  if (current_depth > s->max_depth)                                   
 8005dfc:	28 23 00 18 	lw r3,(r1+24)                                  
 8005e00:	50 62 00 02 	bgeu r3,r2,8005e08 <rtems_malloc_statistics_at_malloc+0x64>
      s->max_depth = current_depth;                                   
 8005e04:	58 22 00 18 	sw (r1+24),r2                                  
}                                                                     
 8005e08:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005e0c:	37 9c 00 08 	addi sp,sp,8                                   
 8005e10:	c3 a0 00 00 	ret                                            
                                                                      

0800d2ec <rtems_memalign>: int rtems_memalign( void **pointer, size_t alignment, size_t size ) {
 800d2ec:	37 9c ff ec 	addi sp,sp,-20                                 
 800d2f0:	5b 8b 00 14 	sw (sp+20),r11                                 
 800d2f4:	5b 8c 00 10 	sw (sp+16),r12                                 
 800d2f8:	5b 8d 00 0c 	sw (sp+12),r13                                 
 800d2fc:	5b 8e 00 08 	sw (sp+8),r14                                  
 800d300:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
  /*                                                                  
   *  Parameter error checks                                          
   */                                                                 
  if ( !pointer )                                                     
    return EINVAL;                                                    
 800d304:	34 0c 00 16 	mvi r12,22                                     
int rtems_memalign(                                                   
  void   **pointer,                                                   
  size_t   alignment,                                                 
  size_t   size                                                       
)                                                                     
{                                                                     
 800d308:	b8 20 58 00 	mv r11,r1                                      
 800d30c:	b8 40 68 00 	mv r13,r2                                      
 800d310:	b8 60 70 00 	mv r14,r3                                      
  void *return_this;                                                  
                                                                      
  /*                                                                  
   *  Parameter error checks                                          
   */                                                                 
  if ( !pointer )                                                     
 800d314:	44 20 00 1d 	be r1,r0,800d388 <rtems_memalign+0x9c>         
    return EINVAL;                                                    
                                                                      
  *pointer = NULL;                                                    
 800d318:	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()) &&                    
 800d31c:	78 01 08 01 	mvhi r1,0x801                                  
 800d320:	38 21 9a 74 	ori r1,r1,0x9a74                               
 800d324:	28 22 00 00 	lw r2,(r1+0)                                   
 800d328:	34 01 00 03 	mvi r1,3                                       
 800d32c:	5c 41 00 03 	bne r2,r1,800d338 <rtems_memalign+0x4c>        
       !malloc_is_system_state_OK() )                                 
 800d330:	fb ff d6 a8 	calli 8002dd0 <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()) &&                    
 800d334:	44 20 00 15 	be r1,r0,800d388 <rtems_memalign+0x9c>         <== NEVER TAKEN
    return EINVAL;                                                    
                                                                      
  /*                                                                  
   *  If some free's have been deferred, then do them now.            
   */                                                                 
  malloc_deferred_frees_process();                                    
 800d338:	fb ff d6 b0 	calli 8002df8 <malloc_deferred_frees_process>  
  Heap_Control *heap,                                                 
  uintptr_t size,                                                     
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return                                                              
 800d33c:	78 01 08 01 	mvhi r1,0x801                                  
 800d340:	38 21 90 54 	ori r1,r1,0x9054                               
 800d344:	28 21 00 00 	lw r1,(r1+0)                                   
 800d348:	b9 a0 18 00 	mv r3,r13                                      
 800d34c:	b9 c0 10 00 	mv r2,r14                                      
 800d350:	34 04 00 00 	mvi r4,0                                       
 800d354:	fb ff e6 ad 	calli 8006e08 <_Protected_heap_Allocate_aligned_with_boundary>
 800d358:	b8 20 68 00 	mv r13,r1                                      
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment                                                         
  );                                                                  
  if ( !return_this )                                                 
    return ENOMEM;                                                    
 800d35c:	34 0c 00 0c 	mvi r12,12                                     
  return_this = _Protected_heap_Allocate_aligned(                     
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment                                                         
  );                                                                  
  if ( !return_this )                                                 
 800d360:	44 20 00 0a 	be r1,r0,800d388 <rtems_memalign+0x9c>         
    return ENOMEM;                                                    
                                                                      
  /*                                                                  
   *  If configured, update the more involved statistics              
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
 800d364:	78 02 08 01 	mvhi r2,0x801                                  
 800d368:	38 42 96 cc 	ori r2,r2,0x96cc                               
 800d36c:	28 41 00 00 	lw r1,(r2+0)                                   
 800d370:	44 20 00 04 	be r1,r0,800d380 <rtems_memalign+0x94>         
    (*rtems_malloc_statistics_helpers->at_malloc)(pointer);           
 800d374:	28 22 00 04 	lw r2,(r1+4)                                   
 800d378:	b9 60 08 00 	mv r1,r11                                      
 800d37c:	d8 40 00 00 	call r2                                        
                                                                      
  *pointer = return_this;                                             
 800d380:	59 6d 00 00 	sw (r11+0),r13                                 
  return 0;                                                           
 800d384:	34 0c 00 00 	mvi r12,0                                      
}                                                                     
 800d388:	b9 80 08 00 	mv r1,r12                                      
 800d38c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800d390:	2b 8b 00 14 	lw r11,(sp+20)                                 
 800d394:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800d398:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800d39c:	2b 8e 00 08 	lw r14,(sp+8)                                  
 800d3a0:	37 9c 00 14 	addi sp,sp,20                                  
 800d3a4:	c3 a0 00 00 	ret                                            
                                                                      

08011fc0 <rtems_message_queue_broadcast>: rtems_id id, const void *buffer, size_t size, uint32_t *count ) {
 8011fc0:	37 9c ff e4 	addi sp,sp,-28                                 
 8011fc4:	5b 8b 00 14 	sw (sp+20),r11                                 
 8011fc8:	5b 8c 00 10 	sw (sp+16),r12                                 
 8011fcc:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8011fd0:	5b 8e 00 08 	sw (sp+8),r14                                  
 8011fd4:	5b 9d 00 04 	sw (sp+4),ra                                   
 8011fd8:	b8 20 60 00 	mv r12,r1                                      
 8011fdc:	b8 40 68 00 	mv r13,r2                                      
 8011fe0:	b8 60 70 00 	mv r14,r3                                      
 8011fe4:	b8 80 58 00 	mv r11,r4                                      
  register Message_queue_Control *the_message_queue;                  
  Objects_Locations               location;                           
  CORE_message_queue_Status       core_status;                        
                                                                      
  if ( !buffer )                                                      
    return RTEMS_INVALID_ADDRESS;                                     
 8011fe8:	34 01 00 09 	mvi r1,9                                       
{                                                                     
  register Message_queue_Control *the_message_queue;                  
  Objects_Locations               location;                           
  CORE_message_queue_Status       core_status;                        
                                                                      
  if ( !buffer )                                                      
 8011fec:	44 40 00 16 	be r2,r0,8012044 <rtems_message_queue_broadcast+0x84><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !count )                                                       
 8011ff0:	44 80 00 15 	be r4,r0,8012044 <rtems_message_queue_broadcast+0x84><== NEVER TAKEN
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Message_queue_Control *)                                    
     _Objects_Get( &_Message_queue_Information, id, location );       
 8011ff4:	78 01 08 03 	mvhi r1,0x803                                  
 8011ff8:	b9 80 10 00 	mv r2,r12                                      
 8011ffc:	38 21 de f0 	ori r1,r1,0xdef0                               
 8012000:	37 83 00 1c 	addi r3,sp,28                                  
 8012004:	f8 00 1a 2a 	calli 80188ac <_Objects_Get>                   
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_message_queue = _Message_queue_Get( id, &location );            
  switch ( location ) {                                               
 8012008:	2b 82 00 1c 	lw r2,(sp+28)                                  
 801200c:	5c 40 00 0d 	bne r2,r0,8012040 <rtems_message_queue_broadcast+0x80>
                                                                      
    case OBJECTS_LOCAL:                                               
      core_status = _CORE_message_queue_Broadcast(                    
 8012010:	b9 a0 10 00 	mv r2,r13                                      
 8012014:	b9 c0 18 00 	mv r3,r14                                      
 8012018:	b9 80 20 00 	mv r4,r12                                      
 801201c:	34 05 00 00 	mvi r5,0                                       
 8012020:	b9 60 30 00 	mv r6,r11                                      
 8012024:	34 21 00 14 	addi r1,r1,20                                  
 8012028:	f8 00 11 61 	calli 80165ac <_CORE_message_queue_Broadcast>  
                        NULL,                                         
                      #endif                                          
                      count                                           
                    );                                                
                                                                      
      _Thread_Enable_dispatch();                                      
 801202c:	5b 81 00 18 	sw (sp+24),r1                                  
 8012030:	f8 00 1e 82 	calli 8019a38 <_Thread_Enable_dispatch>        
      return                                                          
 8012034:	2b 81 00 18 	lw r1,(sp+24)                                  
 8012038:	f8 00 01 0e 	calli 8012470 <_Message_queue_Translate_core_message_queue_return_code>
 801203c:	e0 00 00 02 	bi 8012044 <rtems_message_queue_broadcast+0x84>
#endif                                                                
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
  return RTEMS_INVALID_ID;                                            
 8012040:	34 01 00 04 	mvi r1,4                                       
}                                                                     
 8012044:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8012048:	2b 8b 00 14 	lw r11,(sp+20)                                 
 801204c:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8012050:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8012054:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8012058:	37 9c 00 1c 	addi sp,sp,28                                  
 801205c:	c3 a0 00 00 	ret                                            
                                                                      

08007b48 <rtems_mkdir>: return (retval); } int rtems_mkdir(const char *path, mode_t mode) {
 8007b48:	37 9c ff 84 	addi sp,sp,-124                                
 8007b4c:	5b 8b 00 34 	sw (sp+52),r11                                 
 8007b50:	5b 8c 00 30 	sw (sp+48),r12                                 
 8007b54:	5b 8d 00 2c 	sw (sp+44),r13                                 
 8007b58:	5b 8e 00 28 	sw (sp+40),r14                                 
 8007b5c:	5b 8f 00 24 	sw (sp+36),r15                                 
 8007b60:	5b 90 00 20 	sw (sp+32),r16                                 
 8007b64:	5b 91 00 1c 	sw (sp+28),r17                                 
 8007b68:	5b 92 00 18 	sw (sp+24),r18                                 
 8007b6c:	5b 93 00 14 	sw (sp+20),r19                                 
 8007b70:	5b 94 00 10 	sw (sp+16),r20                                 
 8007b74:	5b 95 00 0c 	sw (sp+12),r21                                 
 8007b78:	5b 96 00 08 	sw (sp+8),r22                                  
 8007b7c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8007b80:	b8 40 b0 00 	mv r22,r2                                      
  int success = 0;                                                    
  char *dup_path = strdup(path);                                      
 8007b84:	f8 00 69 a1 	calli 8022208 <strdup>                         
 8007b88:	b8 20 60 00 	mv r12,r1                                      
  if (dup_path != NULL) {                                             
    success = build(dup_path, mode);                                  
    free(dup_path);                                                   
  }                                                                   
                                                                      
  return success != 0 ? 0 : -1;                                       
 8007b8c:	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) {                                             
 8007b90:	45 80 00 4d 	be r12,r0,8007cc4 <rtems_mkdir+0x17c>          
  char *p;                                                            
                                                                      
  p = path;                                                           
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
 8007b94:	41 8b 00 00 	lbu r11,(r12+0)                                
 8007b98:	34 0e 00 00 	mvi r14,0                                      
 8007b9c:	34 01 00 01 	mvi r1,1                                       
    ++p;                                                              
 8007ba0:	65 6b 00 2f 	cmpei r11,r11,47                               
        retval = 0;                                                   
        break;                                                        
      }                                                               
    }                                                                 
    if (!last)                                                        
        *p = '/';                                                     
 8007ba4:	34 15 00 2f 	mvi r21,47                                     
                                                                      
  p = path;                                                           
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
    ++p;                                                              
 8007ba8:	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) {                       
 8007bac:	34 14 00 11 	mvi r20,17                                     
        if (stat(path, &sb) < 0) {                                    
 8007bb0:	37 93 00 38 	addi r19,sp,56                                 
          retval = 0;                                                 
          break;                                                      
        } else if (!S_ISDIR(sb.st_mode)) {                            
 8007bb4:	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) {                       
 8007bb8:	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);                         
 8007bbc:	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] != '/')                                             
 8007bc0:	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')                                                 
 8007bc4:	41 64 00 00 	lbu r4,(r11+0)                                 
      last = 1;                                                       
 8007bc8:	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')                                                 
 8007bcc:	44 80 00 03 	be r4,r0,8007bd8 <rtems_mkdir+0x90>            
      last = 1;                                                       
    else if (p[0] != '/')                                             
 8007bd0:	5c 8f 00 33 	bne r4,r15,8007c9c <rtems_mkdir+0x154>         
 8007bd4:	34 03 00 00 	mvi r3,0                                       
      continue;                                                       
    *p = '\0';                                                        
 8007bd8:	31 60 00 00 	sb (r11+0),r0                                  
    if (!last && p[1] == '\0')                                        
 8007bdc:	34 0d 00 01 	mvi r13,1                                      
 8007be0:	5c 60 00 03 	bne r3,r0,8007bec <rtems_mkdir+0xa4>           
 8007be4:	41 6d 00 01 	lbu r13,(r11+1)                                
 8007be8:	65 ad 00 00 	cmpei r13,r13,0                                
      last = 1;                                                       
    if (first) {                                                      
 8007bec:	44 20 00 06 	be r1,r0,8007c04 <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);                                              
 8007bf0:	34 01 00 00 	mvi r1,0                                       
 8007bf4:	f8 00 03 55 	calli 8008948 <umask>                          
 8007bf8:	b8 20 70 00 	mv r14,r1                                      
      numask = oumask & ~(S_IWUSR | S_IXUSR);                         
      (void)umask(numask);                                            
 8007bfc:	a0 30 08 00 	and r1,r1,r16                                  
 8007c00:	f8 00 03 52 	calli 8008948 <umask>                          
      first = 0;                                                      
    }                                                                 
    if (last)                                                         
      (void)umask(oumask);                                            
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
 8007c04:	34 03 01 ff 	mvi r3,511                                     
      oumask = umask(0);                                              
      numask = oumask & ~(S_IWUSR | S_IXUSR);                         
      (void)umask(numask);                                            
      first = 0;                                                      
    }                                                                 
    if (last)                                                         
 8007c08:	45 a0 00 04 	be r13,r0,8007c18 <rtems_mkdir+0xd0>           
      (void)umask(oumask);                                            
 8007c0c:	b9 c0 08 00 	mv r1,r14                                      
 8007c10:	f8 00 03 4e 	calli 8008948 <umask>                          
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
 8007c14:	ba c0 18 00 	mv r3,r22                                      
 8007c18:	b9 80 08 00 	mv r1,r12                                      
 8007c1c:	b8 60 10 00 	mv r2,r3                                       
 8007c20:	fb ff fc 45 	calli 8006d34 <mkdir>                          
 8007c24:	4c 20 00 1b 	bge r1,r0,8007c90 <rtems_mkdir+0x148>          
      if (errno == EEXIST || errno == EISDIR) {                       
 8007c28:	f8 00 5f 7b 	calli 801fa14 <__errno>                        
 8007c2c:	28 21 00 00 	lw r1,(r1+0)                                   
 8007c30:	44 34 00 04 	be r1,r20,8007c40 <rtems_mkdir+0xf8>           
 8007c34:	f8 00 5f 78 	calli 801fa14 <__errno>                        
 8007c38:	28 21 00 00 	lw r1,(r1+0)                                   
 8007c3c:	5c 31 00 1a 	bne r1,r17,8007ca4 <rtems_mkdir+0x15c>         <== ALWAYS TAKEN
        if (stat(path, &sb) < 0) {                                    
 8007c40:	b9 80 08 00 	mv r1,r12                                      
 8007c44:	ba 60 10 00 	mv r2,r19                                      
 8007c48:	f8 00 00 32 	calli 8007d10 <stat>                           
 8007c4c:	48 01 00 16 	bg r0,r1,8007ca4 <rtems_mkdir+0x15c>           <== NEVER TAKEN
          retval = 0;                                                 
          break;                                                      
        } else if (!S_ISDIR(sb.st_mode)) {                            
 8007c50:	2b 81 00 44 	lw r1,(sp+68)                                  
 8007c54:	20 21 f0 00 	andi r1,r1,0xf000                              
 8007c58:	44 32 00 0c 	be r1,r18,8007c88 <rtems_mkdir+0x140>          
          if (last)                                                   
 8007c5c:	45 a0 00 06 	be r13,r0,8007c74 <rtems_mkdir+0x12c>          
            errno = EEXIST;                                           
 8007c60:	f8 00 5f 6d 	calli 801fa14 <__errno>                        
 8007c64:	34 02 00 11 	mvi r2,17                                      
 8007c68:	58 22 00 00 	sw (r1+0),r2                                   
          else                                                        
            errno = ENOTDIR;                                          
          retval = 0;                                                 
 8007c6c:	34 0b 00 00 	mvi r11,0                                      
 8007c70:	e0 00 00 11 	bi 8007cb4 <rtems_mkdir+0x16c>                 
          break;                                                      
        } else if (!S_ISDIR(sb.st_mode)) {                            
          if (last)                                                   
            errno = EEXIST;                                           
          else                                                        
            errno = ENOTDIR;                                          
 8007c74:	f8 00 5f 68 	calli 801fa14 <__errno>                        
 8007c78:	34 02 00 14 	mvi r2,20                                      
 8007c7c:	58 22 00 00 	sw (r1+0),r2                                   
          retval = 0;                                                 
 8007c80:	34 0b 00 00 	mvi r11,0                                      
 8007c84:	e0 00 00 0a 	bi 8007cac <rtems_mkdir+0x164>                 
          break;                                                      
        }                                                             
        if (last)                                                     
 8007c88:	5d a0 00 1e 	bne r13,r0,8007d00 <rtems_mkdir+0x1b8>         
 8007c8c:	e0 00 00 02 	bi 8007c94 <rtems_mkdir+0x14c>                 
      } else {                                                        
        retval = 0;                                                   
        break;                                                        
      }                                                               
    }                                                                 
    if (!last)                                                        
 8007c90:	5d a0 00 1e 	bne r13,r0,8007d08 <rtems_mkdir+0x1c0>         
        *p = '/';                                                     
 8007c94:	31 75 00 00 	sb (r11+0),r21                                 
 8007c98:	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) {                            
 8007c9c:	35 6b 00 01 	addi r11,r11,1                                 
 8007ca0:	e3 ff ff c9 	bi 8007bc4 <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;                                                 
 8007ca4:	34 0b 00 00 	mvi r11,0                                      
      }                                                               
    }                                                                 
    if (!last)                                                        
        *p = '/';                                                     
  }                                                                   
  if (!first && !last)                                                
 8007ca8:	5d a0 00 03 	bne r13,r0,8007cb4 <rtems_mkdir+0x16c>         <== ALWAYS TAKEN
    (void)umask(oumask);                                              
 8007cac:	b9 c0 08 00 	mv r1,r14                                      
 8007cb0:	f8 00 03 26 	calli 8008948 <umask>                          
  int success = 0;                                                    
  char *dup_path = strdup(path);                                      
                                                                      
  if (dup_path != NULL) {                                             
    success = build(dup_path, mode);                                  
    free(dup_path);                                                   
 8007cb4:	b9 80 08 00 	mv r1,r12                                      
 8007cb8:	fb ff f9 f5 	calli 800648c <free>                           
  }                                                                   
                                                                      
  return success != 0 ? 0 : -1;                                       
 8007cbc:	7d 61 00 00 	cmpnei r1,r11,0                                
 8007cc0:	34 21 ff ff 	addi r1,r1,-1                                  
}                                                                     
 8007cc4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8007cc8:	2b 8b 00 34 	lw r11,(sp+52)                                 
 8007ccc:	2b 8c 00 30 	lw r12,(sp+48)                                 
 8007cd0:	2b 8d 00 2c 	lw r13,(sp+44)                                 
 8007cd4:	2b 8e 00 28 	lw r14,(sp+40)                                 
 8007cd8:	2b 8f 00 24 	lw r15,(sp+36)                                 
 8007cdc:	2b 90 00 20 	lw r16,(sp+32)                                 
 8007ce0:	2b 91 00 1c 	lw r17,(sp+28)                                 
 8007ce4:	2b 92 00 18 	lw r18,(sp+24)                                 
 8007ce8:	2b 93 00 14 	lw r19,(sp+20)                                 
 8007cec:	2b 94 00 10 	lw r20,(sp+16)                                 
 8007cf0:	2b 95 00 0c 	lw r21,(sp+12)                                 
 8007cf4:	2b 96 00 08 	lw r22,(sp+8)                                  
 8007cf8:	37 9c 00 7c 	addi sp,sp,124                                 
 8007cfc:	c3 a0 00 00 	ret                                            
            errno = ENOTDIR;                                          
          retval = 0;                                                 
          break;                                                      
        }                                                             
        if (last)                                                     
          retval = 2;                                                 
 8007d00:	34 0b 00 02 	mvi r11,2                                      
 8007d04:	e3 ff ff ec 	bi 8007cb4 <rtems_mkdir+0x16c>                 
      } else {                                                        
        retval = 0;                                                   
        break;                                                        
      }                                                               
    }                                                                 
    if (!last)                                                        
 8007d08:	34 0b 00 01 	mvi r11,1                                      
 8007d0c:	e3 ff ff ea 	bi 8007cb4 <rtems_mkdir+0x16c>                 
                                                                      

0801253c <rtems_partition_create>: uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) {
 801253c:	37 9c ff d8 	addi sp,sp,-40                                 
 8012540:	5b 8b 00 28 	sw (sp+40),r11                                 
 8012544:	5b 8c 00 24 	sw (sp+36),r12                                 
 8012548:	5b 8d 00 20 	sw (sp+32),r13                                 
 801254c:	5b 8e 00 1c 	sw (sp+28),r14                                 
 8012550:	5b 8f 00 18 	sw (sp+24),r15                                 
 8012554:	5b 90 00 14 	sw (sp+20),r16                                 
 8012558:	5b 91 00 10 	sw (sp+16),r17                                 
 801255c:	5b 92 00 0c 	sw (sp+12),r18                                 
 8012560:	5b 93 00 08 	sw (sp+8),r19                                  
 8012564:	5b 9d 00 04 	sw (sp+4),ra                                   
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
 8012568:	34 07 00 03 	mvi r7,3                                       
  uint32_t         length,                                            
  uint32_t         buffer_size,                                       
  rtems_attribute  attribute_set,                                     
  rtems_id        *id                                                 
)                                                                     
{                                                                     
 801256c:	b8 20 88 00 	mv r17,r1                                      
 8012570:	b8 40 70 00 	mv r14,r2                                      
 8012574:	b8 60 78 00 	mv r15,r3                                      
 8012578:	b8 80 60 00 	mv r12,r4                                      
 801257c:	b8 a0 98 00 	mv r19,r5                                      
 8012580:	b8 c0 80 00 	mv r16,r6                                      
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
 8012584:	44 20 00 36 	be r1,r0,801265c <rtems_partition_create+0x120>
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !starting_address )                                            
    return RTEMS_INVALID_ADDRESS;                                     
 8012588:	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 )                                            
 801258c:	44 40 00 34 	be r2,r0,801265c <rtems_partition_create+0x120>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !id )                                                          
 8012590:	44 c0 00 33 	be r6,r0,801265c <rtems_partition_create+0x120><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( length == 0 || buffer_size == 0 || length < buffer_size ||     
 8012594:	64 82 00 00 	cmpei r2,r4,0                                  
 8012598:	64 61 00 00 	cmpei r1,r3,0                                  
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
 801259c:	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 ||     
 80125a0:	b8 41 08 00 	or r1,r2,r1                                    
 80125a4:	5c 20 00 2e 	bne r1,r0,801265c <rtems_partition_create+0x120>
 80125a8:	54 83 00 2d 	bgu r4,r3,801265c <rtems_partition_create+0x120>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_size_aligned (         
   uint32_t   buffer_size                                             
)                                                                     
{                                                                     
  return ((buffer_size % CPU_PARTITION_ALIGNMENT) == 0);              
 80125ac:	20 81 00 03 	andi r1,r4,0x3                                 
 80125b0:	5c 20 00 2b 	bne r1,r0,801265c <rtems_partition_create+0x120>
)                                                                     
{                                                                     
#if (CPU_ALIGNMENT == 0)                                              
    return true;                                                      
#else                                                                 
    return (((uintptr_t)address % CPU_ALIGNMENT) == 0);               
 80125b4:	21 d2 00 03 	andi r18,r14,0x3                               
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
                                                                      
  if ( !_Addresses_Is_aligned( starting_address ) )                   
     return RTEMS_INVALID_ADDRESS;                                    
 80125b8:	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 ) )                   
 80125bc:	5e 41 00 28 	bne r18,r1,801265c <rtems_partition_create+0x120>
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    uint32_t level = _Thread_Dispatch_disable_level;                  
 80125c0:	78 02 08 03 	mvhi r2,0x803                                  
 80125c4:	38 42 dc d0 	ori r2,r2,0xdcd0                               
 80125c8:	28 41 00 00 	lw r1,(r2+0)                                   
                                                                      
    ++level;                                                          
 80125cc:	34 21 00 01 	addi r1,r1,1                                   
    _Thread_Dispatch_disable_level = level;                           
 80125d0:	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 );
 80125d4:	78 0d 08 03 	mvhi r13,0x803                                 
 80125d8:	39 ad db 10 	ori r13,r13,0xdb10                             
 80125dc:	b9 a0 08 00 	mv r1,r13                                      
 80125e0:	f8 00 16 f5 	calli 80181b4 <_Objects_Allocate>              
 80125e4:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  _Thread_Disable_dispatch();               /* prevents deletion */   
                                                                      
  the_partition = _Partition_Allocate();                              
                                                                      
  if ( !the_partition ) {                                             
 80125e8:	5c 32 00 04 	bne r1,r18,80125f8 <rtems_partition_create+0xbc>
    _Thread_Enable_dispatch();                                        
 80125ec:	f8 00 1d 13 	calli 8019a38 <_Thread_Enable_dispatch>        
    return RTEMS_TOO_MANY;                                            
 80125f0:	34 07 00 05 	mvi r7,5                                       
 80125f4:	e0 00 00 1a 	bi 801265c <rtems_partition_create+0x120>      
  }                                                                   
#endif                                                                
                                                                      
  the_partition->starting_address      = starting_address;            
  the_partition->length                = length;                      
  the_partition->buffer_size           = buffer_size;                 
 80125f8:	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 );          
 80125fc:	b9 80 10 00 	mv r2,r12                                      
    _Thread_Enable_dispatch();                                        
    return RTEMS_TOO_MANY;                                            
  }                                                                   
#endif                                                                
                                                                      
  the_partition->starting_address      = starting_address;            
 8012600:	58 2e 00 10 	sw (r1+16),r14                                 
  the_partition->length                = length;                      
 8012604:	58 2f 00 14 	sw (r1+20),r15                                 
  the_partition->buffer_size           = buffer_size;                 
  the_partition->attribute_set         = attribute_set;               
 8012608:	58 33 00 1c 	sw (r1+28),r19                                 
  the_partition->number_of_used_blocks = 0;                           
 801260c:	58 20 00 20 	sw (r1+32),r0                                  
                                                                      
  _Chain_Initialize( &the_partition->Memory, starting_address,        
 8012610:	34 32 00 24 	addi r18,r1,36                                 
                        length / buffer_size, buffer_size );          
 8012614:	b9 e0 08 00 	mv r1,r15                                      
 8012618:	f8 00 72 b5 	calli 802f0ec <__udivsi3>                      
 801261c:	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,        
 8012620:	b9 80 20 00 	mv r4,r12                                      
 8012624:	ba 40 08 00 	mv r1,r18                                      
 8012628:	b9 c0 10 00 	mv r2,r14                                      
 801262c:	f8 00 0f d3 	calli 8016578 <_Chain_Initialize>              
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
 8012630:	29 6c 00 08 	lw r12,(r11+8)                                 
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
 8012634:	29 ad 00 1c 	lw r13,(r13+28)                                
 8012638:	34 02 00 02 	mvi r2,2                                       
 801263c:	21 81 ff ff 	andi r1,r12,0xffff                             
 8012640:	fb ff ee c0 	calli 800e140 <__ashlsi3>                      
 8012644:	b5 a1 08 00 	add r1,r13,r1                                  
 8012648:	58 2b 00 00 	sw (r1+0),r11                                  
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
 801264c:	59 71 00 0c 	sw (r11+12),r17                                
    &_Partition_Information,                                          
    &the_partition->Object,                                           
    (Objects_Name) name                                               
  );                                                                  
                                                                      
  *id = the_partition->Object.id;                                     
 8012650:	5a 0c 00 00 	sw (r16+0),r12                                 
      name,                                                           
      0                  /* Not used */                               
    );                                                                
#endif                                                                
                                                                      
  _Thread_Enable_dispatch();                                          
 8012654:	f8 00 1c f9 	calli 8019a38 <_Thread_Enable_dispatch>        
  return RTEMS_SUCCESSFUL;                                            
 8012658:	34 07 00 00 	mvi r7,0                                       
}                                                                     
 801265c:	b8 e0 08 00 	mv r1,r7                                       
 8012660:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8012664:	2b 8b 00 28 	lw r11,(sp+40)                                 
 8012668:	2b 8c 00 24 	lw r12,(sp+36)                                 
 801266c:	2b 8d 00 20 	lw r13,(sp+32)                                 
 8012670:	2b 8e 00 1c 	lw r14,(sp+28)                                 
 8012674:	2b 8f 00 18 	lw r15,(sp+24)                                 
 8012678:	2b 90 00 14 	lw r16,(sp+20)                                 
 801267c:	2b 91 00 10 	lw r17,(sp+16)                                 
 8012680:	2b 92 00 0c 	lw r18,(sp+12)                                 
 8012684:	2b 93 00 08 	lw r19,(sp+8)                                  
 8012688:	37 9c 00 28 	addi sp,sp,40                                  
 801268c:	c3 a0 00 00 	ret                                            
                                                                      

0803345c <rtems_rate_monotonic_period>: rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) {
 803345c:	37 9c ff e8 	addi sp,sp,-24                                 
 8033460:	5b 8b 00 14 	sw (sp+20),r11                                 
 8033464:	5b 8c 00 10 	sw (sp+16),r12                                 
 8033468:	5b 8d 00 0c 	sw (sp+12),r13                                 
 803346c:	5b 8e 00 08 	sw (sp+8),r14                                  
 8033470:	5b 9d 00 04 	sw (sp+4),ra                                   
 8033474:	b8 20 60 00 	mv r12,r1                                      
 8033478:	78 01 08 06 	mvhi r1,0x806                                  
 803347c:	b8 40 68 00 	mv r13,r2                                      
 8033480:	38 21 83 d0 	ori r1,r1,0x83d0                               
 8033484:	b9 80 10 00 	mv r2,r12                                      
 8033488:	37 83 00 18 	addi r3,sp,24                                  
 803348c:	fb ff 45 f2 	calli 8004c54 <_Objects_Get>                   
 8033490:	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 ) {                                               
 8033494:	2b 81 00 18 	lw r1,(sp+24)                                  
 8033498:	5c 20 00 65 	bne r1,r0,803362c <rtems_rate_monotonic_period+0x1d0>
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
 803349c:	78 03 08 06 	mvhi r3,0x806                                  
 80334a0:	38 63 81 40 	ori r3,r3,0x8140                               
    case OBJECTS_LOCAL:                                               
      if ( !_Thread_Is_executing( the_period->owner ) ) {             
 80334a4:	29 62 00 40 	lw r2,(r11+64)                                 
 80334a8:	28 61 00 10 	lw r1,(r3+16)                                  
 80334ac:	44 41 00 04 	be r2,r1,80334bc <rtems_rate_monotonic_period+0x60>
        _Thread_Enable_dispatch();                                    
 80334b0:	fb ff 49 b0 	calli 8005b70 <_Thread_Enable_dispatch>        
        return RTEMS_NOT_OWNER_OF_RESOURCE;                           
 80334b4:	34 0c 00 17 	mvi r12,23                                     
 80334b8:	e0 00 00 5e 	bi 8033630 <rtems_rate_monotonic_period+0x1d4> 
      }                                                               
                                                                      
      if ( length == RTEMS_PERIOD_STATUS ) {                          
 80334bc:	5d a0 00 0d 	bne r13,r0,80334f0 <rtems_rate_monotonic_period+0x94>
        switch ( the_period->state ) {                                
 80334c0:	29 61 00 38 	lw r1,(r11+56)                                 
 80334c4:	34 02 00 04 	mvi r2,4                                       
 80334c8:	34 0c 00 00 	mvi r12,0                                      
 80334cc:	54 22 00 07 	bgu r1,r2,80334e8 <rtems_rate_monotonic_period+0x8c><== NEVER TAKEN
 80334d0:	78 0b 08 06 	mvhi r11,0x806                                 
 80334d4:	34 02 00 02 	mvi r2,2                                       
 80334d8:	fb ff 33 48 	calli 80001f8 <__ashlsi3>                      
 80334dc:	39 6b 0d 2c 	ori r11,r11,0xd2c                              
 80334e0:	b5 61 08 00 	add r1,r11,r1                                  
 80334e4:	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();                                    
 80334e8:	fb ff 49 a2 	calli 8005b70 <_Thread_Enable_dispatch>        
        return( return_value );                                       
 80334ec:	e0 00 00 51 	bi 8033630 <rtems_rate_monotonic_period+0x1d4> 
      }                                                               
                                                                      
      _ISR_Disable( level );                                          
 80334f0:	90 00 70 00 	rcsr r14,IE                                    
 80334f4:	34 01 ff fe 	mvi r1,-2                                      
 80334f8:	a1 c1 08 00 	and r1,r14,r1                                  
 80334fc:	d0 01 00 00 	wcsr IE,r1                                     
      if ( the_period->state == RATE_MONOTONIC_INACTIVE ) {           
 8033500:	29 63 00 38 	lw r3,(r11+56)                                 
 8033504:	5c 60 00 13 	bne r3,r0,8033550 <rtems_rate_monotonic_period+0xf4>
        _ISR_Enable( level );                                         
 8033508:	d0 0e 00 00 	wcsr IE,r14                                    
        the_period->next_length = length;                             
                                                                      
        /*                                                            
         *  Baseline statistics information for the beginning of a period.
         */                                                           
        _Rate_monotonic_Initiate_statistics( the_period );            
 803350c:	b9 60 08 00 	mv r1,r11                                      
                                                                      
      _ISR_Disable( level );                                          
      if ( the_period->state == RATE_MONOTONIC_INACTIVE ) {           
        _ISR_Enable( level );                                         
                                                                      
        the_period->next_length = length;                             
 8033510:	59 6d 00 3c 	sw (r11+60),r13                                
                                                                      
        /*                                                            
         *  Baseline statistics information for the beginning of a period.
         */                                                           
        _Rate_monotonic_Initiate_statistics( the_period );            
 8033514:	fb ff ff a5 	calli 80333a8 <_Rate_monotonic_Initiate_statistics>
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
 8033518:	34 01 00 02 	mvi r1,2                                       
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
 803351c:	78 03 08 03 	mvhi r3,0x803                                  
 8033520:	59 61 00 38 	sw (r11+56),r1                                 
 8033524:	38 63 36 50 	ori r3,r3,0x3650                               
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 8033528:	78 01 08 06 	mvhi r1,0x806                                  
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 803352c:	59 60 00 18 	sw (r11+24),r0                                 
  the_watchdog->routine   = routine;                                  
 8033530:	59 63 00 2c 	sw (r11+44),r3                                 
  the_watchdog->id        = id;                                       
 8033534:	59 6c 00 30 	sw (r11+48),r12                                
  the_watchdog->user_data = user_data;                                
 8033538:	59 60 00 34 	sw (r11+52),r0                                 
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 803353c:	59 6d 00 1c 	sw (r11+28),r13                                
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 8033540:	38 21 80 58 	ori r1,r1,0x8058                               
 8033544:	35 62 00 10 	addi r2,r11,16                                 
 8033548:	fb ff 4d 2d 	calli 80069fc <_Watchdog_Insert>               
 803354c:	e0 00 00 1f 	bi 80335c8 <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 ) {             
 8033550:	34 01 00 02 	mvi r1,2                                       
 8033554:	5c 61 00 20 	bne r3,r1,80335d4 <rtems_rate_monotonic_period+0x178>
        /*                                                            
         *  Update statistics from the concluding period.             
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
 8033558:	b9 60 08 00 	mv r1,r11                                      
 803355c:	fb ff ff 49 	calli 8033280 <_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;         
 8033560:	34 01 00 01 	mvi r1,1                                       
 8033564:	59 61 00 38 	sw (r11+56),r1                                 
        the_period->next_length = length;                             
 8033568:	59 6d 00 3c 	sw (r11+60),r13                                
                                                                      
        _ISR_Enable( level );                                         
 803356c:	d0 0e 00 00 	wcsr IE,r14                                    
                                                                      
        _Thread_Executing->Wait.id = the_period->Object.id;           
 8033570:	78 01 08 06 	mvhi r1,0x806                                  
 8033574:	38 21 81 40 	ori r1,r1,0x8140                               
 8033578:	29 62 00 08 	lw r2,(r11+8)                                  
 803357c:	28 21 00 10 	lw r1,(r1+16)                                  
 8033580:	58 22 00 20 	sw (r1+32),r2                                  
        _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
 8033584:	34 02 40 00 	mvi r2,16384                                   
 8033588:	fb ff 4c 0b 	calli 80065b4 <_Thread_Set_state>              
                                                                      
        /*                                                            
         *  Did the watchdog timer expire while we were actually blocking
         *  on it?                                                    
         */                                                           
        _ISR_Disable( level );                                        
 803358c:	90 00 08 00 	rcsr r1,IE                                     
 8033590:	34 02 ff fe 	mvi r2,-2                                      
 8033594:	a0 22 10 00 	and r2,r1,r2                                   
 8033598:	d0 02 00 00 	wcsr IE,r2                                     
          local_state = the_period->state;                            
          the_period->state = RATE_MONOTONIC_ACTIVE;                  
 803359c:	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;                            
 80335a0:	29 62 00 38 	lw r2,(r11+56)                                 
          the_period->state = RATE_MONOTONIC_ACTIVE;                  
 80335a4:	59 63 00 38 	sw (r11+56),r3                                 
        _ISR_Enable( level );                                         
 80335a8:	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 )   
 80335ac:	34 01 00 03 	mvi r1,3                                       
 80335b0:	5c 41 00 06 	bne r2,r1,80335c8 <rtems_rate_monotonic_period+0x16c>
          _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
 80335b4:	78 01 08 06 	mvhi r1,0x806                                  
 80335b8:	38 21 81 40 	ori r1,r1,0x8140                               
 80335bc:	28 21 00 10 	lw r1,(r1+16)                                  
 80335c0:	34 02 40 00 	mvi r2,16384                                   
 80335c4:	fb ff 63 df 	calli 800c540 <_Thread_Clear_state>            
                                                                      
        _Thread_Enable_dispatch();                                    
 80335c8:	fb ff 49 6a 	calli 8005b70 <_Thread_Enable_dispatch>        
        return RTEMS_SUCCESSFUL;                                      
 80335cc:	34 0c 00 00 	mvi r12,0                                      
 80335d0:	e0 00 00 18 	bi 8033630 <rtems_rate_monotonic_period+0x1d4> 
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 80335d4:	34 0c 00 04 	mvi r12,4                                      
                                                                      
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
                                                                      
      if ( the_period->state == RATE_MONOTONIC_EXPIRED ) {            
 80335d8:	5c 6c 00 16 	bne r3,r12,8033630 <rtems_rate_monotonic_period+0x1d4><== NEVER TAKEN
        /*                                                            
         *  Update statistics from the concluding period              
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
 80335dc:	b9 60 08 00 	mv r1,r11                                      
 80335e0:	fb ff ff 28 	calli 8033280 <_Rate_monotonic_Update_statistics>
                                                                      
        _ISR_Enable( level );                                         
 80335e4:	d0 0e 00 00 	wcsr IE,r14                                    
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
 80335e8:	34 01 00 02 	mvi r1,2                                       
 80335ec:	59 61 00 38 	sw (r11+56),r1                                 
 80335f0:	78 01 08 06 	mvhi r1,0x806                                  
 80335f4:	38 21 80 58 	ori r1,r1,0x8058                               
 80335f8:	35 62 00 10 	addi r2,r11,16                                 
        the_period->next_length = length;                             
 80335fc:	59 6d 00 3c 	sw (r11+60),r13                                
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 8033600:	59 6d 00 1c 	sw (r11+28),r13                                
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 8033604:	fb ff 4c fe 	calli 80069fc <_Watchdog_Insert>               
 8033608:	78 01 08 06 	mvhi r1,0x806                                  
 803360c:	38 21 40 18 	ori r1,r1,0x4018                               
 8033610:	28 23 00 34 	lw r3,(r1+52)                                  
 8033614:	29 62 00 3c 	lw r2,(r11+60)                                 
 8033618:	29 61 00 40 	lw r1,(r11+64)                                 
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
        _Scheduler_Release_job(the_period->owner, the_period->next_length);
        _Thread_Enable_dispatch();                                    
        return RTEMS_TIMEOUT;                                         
 803361c:	34 0c 00 06 	mvi r12,6                                      
 8033620:	d8 60 00 00 	call r3                                        
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
        the_period->next_length = length;                             
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
        _Scheduler_Release_job(the_period->owner, the_period->next_length);
        _Thread_Enable_dispatch();                                    
 8033624:	fb ff 49 53 	calli 8005b70 <_Thread_Enable_dispatch>        
        return RTEMS_TIMEOUT;                                         
 8033628:	e0 00 00 02 	bi 8033630 <rtems_rate_monotonic_period+0x1d4> 
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 803362c:	34 0c 00 04 	mvi r12,4                                      
}                                                                     
 8033630:	b9 80 08 00 	mv r1,r12                                      
 8033634:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8033638:	2b 8b 00 14 	lw r11,(sp+20)                                 
 803363c:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8033640:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8033644:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8033648:	37 9c 00 18 	addi sp,sp,24                                  
 803364c:	c3 a0 00 00 	ret                                            
                                                                      

08024de8 <rtems_rate_monotonic_report_statistics_with_plugin>: void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) {
 8024de8:	37 9c ff 5c 	addi sp,sp,-164                                
 8024dec:	5b 8b 00 44 	sw (sp+68),r11                                 
 8024df0:	5b 8c 00 40 	sw (sp+64),r12                                 
 8024df4:	5b 8d 00 3c 	sw (sp+60),r13                                 
 8024df8:	5b 8e 00 38 	sw (sp+56),r14                                 
 8024dfc:	5b 8f 00 34 	sw (sp+52),r15                                 
 8024e00:	5b 90 00 30 	sw (sp+48),r16                                 
 8024e04:	5b 91 00 2c 	sw (sp+44),r17                                 
 8024e08:	5b 92 00 28 	sw (sp+40),r18                                 
 8024e0c:	5b 93 00 24 	sw (sp+36),r19                                 
 8024e10:	5b 94 00 20 	sw (sp+32),r20                                 
 8024e14:	5b 95 00 1c 	sw (sp+28),r21                                 
 8024e18:	5b 96 00 18 	sw (sp+24),r22                                 
 8024e1c:	5b 97 00 14 	sw (sp+20),r23                                 
 8024e20:	5b 98 00 10 	sw (sp+16),r24                                 
 8024e24:	5b 99 00 0c 	sw (sp+12),r25                                 
 8024e28:	5b 9b 00 08 	sw (sp+8),fp                                   
 8024e2c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8024e30:	b8 20 60 00 	mv r12,r1                                      
 8024e34:	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 )                                                       
 8024e38:	44 40 00 72 	be r2,r0,8025000 <rtems_rate_monotonic_report_statistics_with_plugin+0x218><== NEVER TAKEN
    return;                                                           
                                                                      
  (*print)( context, "Period information by period\n" );              
 8024e3c:	78 02 08 05 	mvhi r2,0x805                                  
 8024e40:	38 42 de 30 	ori r2,r2,0xde30                               
 8024e44:	d9 60 00 00 	call r11                                       
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    (*print)( context, "--- CPU times are in seconds ---\n" );        
 8024e48:	78 02 08 05 	mvhi r2,0x805                                  
 8024e4c:	38 42 de 50 	ori r2,r2,0xde50                               
 8024e50:	b9 80 08 00 	mv r1,r12                                      
 8024e54:	d9 60 00 00 	call r11                                       
    (*print)( context, "--- Wall times are in seconds ---\n" );       
 8024e58:	78 02 08 05 	mvhi r2,0x805                                  
 8024e5c:	38 42 de 74 	ori r2,r2,0xde74                               
 8024e60:	b9 80 08 00 	mv r1,r12                                      
 8024e64:	d9 60 00 00 	call r11                                       
  Be sure to test the various cases.                                  
  (*print)( context,"\                                                
1234567890123456789012345678901234567890123456789012345678901234567890123456789\
\n");                                                                 
*/                                                                    
  (*print)( context, "   ID     OWNER COUNT MISSED     "              
 8024e68:	78 02 08 05 	mvhi r2,0x805                                  
 8024e6c:	38 42 de 98 	ori r2,r2,0xde98                               
 8024e70:	b9 80 08 00 	mv r1,r12                                      
 8024e74:	d9 60 00 00 	call r11                                       
       #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                     
          "          "                                                
       #endif                                                         
          "   WALL TIME\n"                                            
  );                                                                  
  (*print)( context, "                               "                
 8024e78:	78 02 08 05 	mvhi r2,0x805                                  
 8024e7c:	b9 80 08 00 	mv r1,r12                                      
 8024e80:	38 42 de e4 	ori r2,r2,0xdee4                               
 8024e84:	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 ;                   
 8024e88:	78 01 08 06 	mvhi r1,0x806                                  
 8024e8c:	38 21 83 d0 	ori r1,r1,0x83d0                               
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
 8024e90:	78 11 08 05 	mvhi r17,0x805                                 
      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,                                              
 8024e94:	78 10 08 05 	mvhi r16,0x805                                 
      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,                                              
 8024e98:	78 0f 08 05 	mvhi r15,0x805                                 
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
 8024e9c:	78 0e 08 05 	mvhi r14,0x805                                 
                                                                      
  /*                                                                  
   * 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 ;                   
 8024ea0:	28 2d 00 08 	lw r13,(r1+8)                                  
        id <= _Rate_monotonic_Information.maximum_id ;                
 8024ea4:	b8 20 a0 00 	mv r20,r1                                      
        id++ ) {                                                      
    status = rtems_rate_monotonic_get_statistics( id, &the_stats );   
 8024ea8:	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 );      
 8024eac:	37 98 00 80 	addi r24,sp,128                                
    #endif                                                            
                                                                      
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
 8024eb0:	37 93 00 a0 	addi r19,sp,160                                
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
 8024eb4:	3a 31 df 30 	ori r17,r17,0xdf30                             
    {                                                                 
    #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;         
 8024eb8:	37 97 00 60 	addi r23,sp,96                                 
                                                                      
      _Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average );
 8024ebc:	37 92 00 98 	addi r18,sp,152                                
      (*print)( context,                                              
 8024ec0:	3a 10 df 48 	ori r16,r16,0xdf48                             
    {                                                                 
    #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;       
 8024ec4:	37 96 00 78 	addi r22,sp,120                                
                                                                      
      _Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average);
      (*print)( context,                                              
 8024ec8:	39 ef df 68 	ori r15,r15,0xdf68                             
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
 8024ecc:	39 ce f5 e8 	ori r14,r14,0xf5e8                             
                                                                      
  /*                                                                  
   * 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 ;                   
 8024ed0:	e0 00 00 4a 	bi 8024ff8 <rtems_rate_monotonic_report_statistics_with_plugin+0x210>
        id <= _Rate_monotonic_Information.maximum_id ;                
        id++ ) {                                                      
    status = rtems_rate_monotonic_get_statistics( id, &the_stats );   
 8024ed4:	b9 a0 08 00 	mv r1,r13                                      
 8024ed8:	bb 20 10 00 	mv r2,r25                                      
 8024edc:	f8 00 37 ce 	calli 8032e14 <rtems_rate_monotonic_get_statistics>
 8024ee0:	b8 20 a8 00 	mv r21,r1                                      
    if ( status != RTEMS_SUCCESSFUL )                                 
 8024ee4:	5c 20 00 44 	bne r1,r0,8024ff4 <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 );      
 8024ee8:	bb 00 10 00 	mv r2,r24                                      
 8024eec:	b9 a0 08 00 	mv r1,r13                                      
 8024ef0:	f8 00 38 56 	calli 8033048 <rtems_rate_monotonic_get_status>
    #endif                                                            
                                                                      
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
 8024ef4:	2b 81 00 80 	lw r1,(sp+128)                                 
 8024ef8:	34 02 00 05 	mvi r2,5                                       
 8024efc:	ba 60 18 00 	mv r3,r19                                      
 8024f00:	fb ff 9a 0f 	calli 800b73c <rtems_object_get_name>          
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
 8024f04:	2b 85 00 48 	lw r5,(sp+72)                                  
 8024f08:	2b 86 00 4c 	lw r6,(sp+76)                                  
 8024f0c:	ba 20 10 00 	mv r2,r17                                      
 8024f10:	b9 80 08 00 	mv r1,r12                                      
 8024f14:	b9 a0 18 00 	mv r3,r13                                      
 8024f18:	ba 60 20 00 	mv r4,r19                                      
 8024f1c:	d9 60 00 00 	call r11                                       
    );                                                                
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
 8024f20:	2b 82 00 48 	lw r2,(sp+72)                                  
 8024f24:	5c 55 00 05 	bne r2,r21,8024f38 <rtems_rate_monotonic_report_statistics_with_plugin+0x150>
      (*print)( context, "\n" );                                      
 8024f28:	b9 80 08 00 	mv r1,r12                                      
 8024f2c:	b9 c0 10 00 	mv r2,r14                                      
 8024f30:	d9 60 00 00 	call r11                                       
      continue;                                                       
 8024f34:	e0 00 00 30 	bi 8024ff4 <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 );
 8024f38:	ba 40 18 00 	mv r3,r18                                      
 8024f3c:	ba e0 08 00 	mv r1,r23                                      
 8024f40:	f8 00 04 a5 	calli 80261d4 <_Timespec_Divide_by_integer>    
      (*print)( context,                                              
 8024f44:	2b 81 00 54 	lw r1,(sp+84)                                  
 8024f48:	34 02 03 e8 	mvi r2,1000                                    
 8024f4c:	f8 00 c9 75 	calli 8057520 <__divsi3>                       
 8024f50:	b8 20 d8 00 	mv fp,r1                                       
 8024f54:	2b 81 00 5c 	lw r1,(sp+92)                                  
 8024f58:	34 02 03 e8 	mvi r2,1000                                    
 8024f5c:	f8 00 c9 71 	calli 8057520 <__divsi3>                       
 8024f60:	b8 20 a8 00 	mv r21,r1                                      
 8024f64:	2b 81 00 9c 	lw r1,(sp+156)                                 
 8024f68:	34 02 03 e8 	mvi r2,1000                                    
 8024f6c:	f8 00 c9 6d 	calli 8057520 <__divsi3>                       
 8024f70:	2b 85 00 58 	lw r5,(sp+88)                                  
 8024f74:	2b 87 00 98 	lw r7,(sp+152)                                 
 8024f78:	2b 83 00 50 	lw r3,(sp+80)                                  
 8024f7c:	b8 20 40 00 	mv r8,r1                                       
 8024f80:	bb 60 20 00 	mv r4,fp                                       
 8024f84:	ba a0 30 00 	mv r6,r21                                      
 8024f88:	ba 00 10 00 	mv r2,r16                                      
 8024f8c:	b9 80 08 00 	mv r1,r12                                      
 8024f90:	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);
 8024f94:	2b 82 00 48 	lw r2,(sp+72)                                  
 8024f98:	ba 40 18 00 	mv r3,r18                                      
 8024f9c:	ba c0 08 00 	mv r1,r22                                      
 8024fa0:	f8 00 04 8d 	calli 80261d4 <_Timespec_Divide_by_integer>    
      (*print)( context,                                              
 8024fa4:	2b 81 00 6c 	lw r1,(sp+108)                                 
 8024fa8:	34 02 03 e8 	mvi r2,1000                                    
 8024fac:	f8 00 c9 5d 	calli 8057520 <__divsi3>                       
 8024fb0:	b8 20 d8 00 	mv fp,r1                                       
 8024fb4:	2b 81 00 74 	lw r1,(sp+116)                                 
 8024fb8:	34 02 03 e8 	mvi r2,1000                                    
 8024fbc:	f8 00 c9 59 	calli 8057520 <__divsi3>                       
 8024fc0:	b8 20 a8 00 	mv r21,r1                                      
 8024fc4:	2b 81 00 9c 	lw r1,(sp+156)                                 
 8024fc8:	34 02 03 e8 	mvi r2,1000                                    
 8024fcc:	f8 00 c9 55 	calli 8057520 <__divsi3>                       
 8024fd0:	2b 83 00 68 	lw r3,(sp+104)                                 
 8024fd4:	2b 85 00 70 	lw r5,(sp+112)                                 
 8024fd8:	2b 87 00 98 	lw r7,(sp+152)                                 
 8024fdc:	b8 20 40 00 	mv r8,r1                                       
 8024fe0:	b9 e0 10 00 	mv r2,r15                                      
 8024fe4:	b9 80 08 00 	mv r1,r12                                      
 8024fe8:	bb 60 20 00 	mv r4,fp                                       
 8024fec:	ba a0 30 00 	mv r6,r21                                      
 8024ff0:	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++ ) {                                                      
 8024ff4:	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 ;                   
 8024ff8:	2a 81 00 0c 	lw r1,(r20+12)                                 
 8024ffc:	50 2d ff b6 	bgeu r1,r13,8024ed4 <rtems_rate_monotonic_report_statistics_with_plugin+0xec>
        the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall
      );                                                              
    #endif                                                            
    }                                                                 
  }                                                                   
}                                                                     
 8025000:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8025004:	2b 8b 00 44 	lw r11,(sp+68)                                 
 8025008:	2b 8c 00 40 	lw r12,(sp+64)                                 
 802500c:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 8025010:	2b 8e 00 38 	lw r14,(sp+56)                                 
 8025014:	2b 8f 00 34 	lw r15,(sp+52)                                 
 8025018:	2b 90 00 30 	lw r16,(sp+48)                                 
 802501c:	2b 91 00 2c 	lw r17,(sp+44)                                 
 8025020:	2b 92 00 28 	lw r18,(sp+40)                                 
 8025024:	2b 93 00 24 	lw r19,(sp+36)                                 
 8025028:	2b 94 00 20 	lw r20,(sp+32)                                 
 802502c:	2b 95 00 1c 	lw r21,(sp+28)                                 
 8025030:	2b 96 00 18 	lw r22,(sp+24)                                 
 8025034:	2b 97 00 14 	lw r23,(sp+20)                                 
 8025038:	2b 98 00 10 	lw r24,(sp+16)                                 
 802503c:	2b 99 00 0c 	lw r25,(sp+12)                                 
 8025040:	2b 9b 00 08 	lw fp,(sp+8)                                   
 8025044:	37 9c 00 a4 	addi sp,sp,164                                 
 8025048:	c3 a0 00 00 	ret                                            
                                                                      

080046c8 <rtems_rbheap_allocate>: return big_enough; } void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size) {
 80046c8:	37 9c ff e8 	addi sp,sp,-24                                 
 80046cc:	5b 8b 00 18 	sw (sp+24),r11                                 
 80046d0:	5b 8c 00 14 	sw (sp+20),r12                                 
 80046d4:	5b 8d 00 10 	sw (sp+16),r13                                 
 80046d8:	5b 8e 00 0c 	sw (sp+12),r14                                 
 80046dc:	5b 8f 00 08 	sw (sp+8),r15                                  
 80046e0:	5b 9d 00 04 	sw (sp+4),ra                                   
  void *ptr = NULL;                                                   
  rtems_chain_control *free_chain = &control->free_chunk_chain;       
  rtems_rbtree_control *chunk_tree = &control->chunk_tree;            
  uintptr_t alignment = control->alignment;                           
 80046e4:	28 2d 00 30 	lw r13,(r1+48)                                 
                                                                      
  return big_enough;                                                  
}                                                                     
                                                                      
void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size)
{                                                                     
 80046e8:	b8 40 60 00 	mv r12,r2                                      
 80046ec:	b8 20 58 00 	mv r11,r1                                      
                                                                      
#include <stdlib.h>                                                   
                                                                      
static uintptr_t align_up(uintptr_t alignment, uintptr_t value)       
{                                                                     
  uintptr_t excess = value % alignment;                               
 80046f0:	b8 40 08 00 	mv r1,r2                                       
 80046f4:	b9 a0 10 00 	mv r2,r13                                      
 80046f8:	f8 00 37 fc 	calli 80126e8 <__umodsi3>                      
                                                                      
  if (excess > 0) {                                                   
 80046fc:	b9 80 70 00 	mv r14,r12                                     
 8004700:	44 20 00 03 	be r1,r0,800470c <rtems_rbheap_allocate+0x44>  <== ALWAYS TAKEN
    value += alignment - excess;                                      
 8004704:	b5 8d 70 00 	add r14,r12,r13                                <== NOT EXECUTED
 8004708:	c9 c1 70 00 	sub r14,r14,r1                                 <== NOT EXECUTED
  rtems_chain_control *free_chain = &control->free_chunk_chain;       
  rtems_rbtree_control *chunk_tree = &control->chunk_tree;            
  uintptr_t alignment = control->alignment;                           
  uintptr_t aligned_size = align_up(alignment, size);                 
                                                                      
  if (size > 0 && size <= aligned_size) {                             
 800470c:	f1 cc 08 00 	cmpgeu r1,r14,r12                              
 8004710:	7d 8c 00 00 	cmpnei r12,r12,0                               
 8004714:	a0 2c 60 00 	and r12,r1,r12                                 
  return big_enough;                                                  
}                                                                     
                                                                      
void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size)
{                                                                     
  void *ptr = NULL;                                                   
 8004718:	34 01 00 00 	mvi r1,0                                       
  rtems_chain_control *free_chain = &control->free_chunk_chain;       
  rtems_rbtree_control *chunk_tree = &control->chunk_tree;            
  uintptr_t alignment = control->alignment;                           
  uintptr_t aligned_size = align_up(alignment, size);                 
                                                                      
  if (size > 0 && size <= aligned_size) {                             
 800471c:	45 80 00 3b 	be r12,r0,8004808 <rtems_rbheap_allocate+0x140>
  rtems_rbheap_chunk *chunk = malloc(sizeof(*chunk));                 
                                                                      
  if (chunk != NULL) {                                                
    rtems_rbheap_add_to_spare_descriptor_chain(control, chunk);       
  }                                                                   
}                                                                     
 8004720:	29 61 00 00 	lw r1,(r11+0)                                  
  rtems_chain_control *free_chain,                                    
  size_t size                                                         
)                                                                     
{                                                                     
  rtems_chain_node *current = rtems_chain_first(free_chain);          
  const rtems_chain_node *tail = rtems_chain_tail(free_chain);        
 8004724:	35 63 00 04 	addi r3,r11,4                                  
  rtems_rbheap_chunk *big_enough = NULL;                              
 8004728:	34 0c 00 00 	mvi r12,0                                      
 800472c:	e0 00 00 06 	bi 8004744 <rtems_rbheap_allocate+0x7c>        
                                                                      
  while (current != tail && big_enough == NULL) {                     
    rtems_rbheap_chunk *free_chunk = (rtems_rbheap_chunk *) current;  
                                                                      
    if (free_chunk->size >= size) {                                   
 8004730:	28 2c 00 1c 	lw r12,(r1+28)                                 
 8004734:	f1 8e 60 00 	cmpgeu r12,r12,r14                             
 8004738:	c8 0c 60 00 	sub r12,r0,r12                                 
 800473c:	a0 2c 60 00 	and r12,r1,r12                                 
  rtems_rbheap_chunk *chunk = malloc(sizeof(*chunk));                 
                                                                      
  if (chunk != NULL) {                                                
    rtems_rbheap_add_to_spare_descriptor_chain(control, chunk);       
  }                                                                   
}                                                                     
 8004740:	28 21 00 00 	lw r1,(r1+0)                                   
{                                                                     
  rtems_chain_node *current = rtems_chain_first(free_chain);          
  const rtems_chain_node *tail = rtems_chain_tail(free_chain);        
  rtems_rbheap_chunk *big_enough = NULL;                              
                                                                      
  while (current != tail && big_enough == NULL) {                     
 8004744:	65 84 00 00 	cmpei r4,r12,0                                 
 8004748:	fc 23 10 00 	cmpne r2,r1,r3                                 
 800474c:	a0 82 10 00 	and r2,r4,r2                                   
 8004750:	5c 40 ff f8 	bne r2,r0,8004730 <rtems_rbheap_allocate+0x68> 
  return big_enough;                                                  
}                                                                     
                                                                      
void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size)
{                                                                     
  void *ptr = NULL;                                                   
 8004754:	34 01 00 00 	mvi r1,0                                       
  uintptr_t aligned_size = align_up(alignment, size);                 
                                                                      
  if (size > 0 && size <= aligned_size) {                             
    rtems_rbheap_chunk *free_chunk = search_free_chunk(free_chain, aligned_size);
                                                                      
    if (free_chunk != NULL) {                                         
 8004758:	45 82 00 2c 	be r12,r2,8004808 <rtems_rbheap_allocate+0x140>
      uintptr_t free_size = free_chunk->size;                         
 800475c:	29 8f 00 1c 	lw r15,(r12+28)                                
                                                                      
      if (free_size > aligned_size) {                                 
 8004760:	51 cf 00 21 	bgeu r14,r15,80047e4 <rtems_rbheap_allocate+0x11c>
  rtems_rbheap_chunk *chunk = malloc(sizeof(*chunk));                 
                                                                      
  if (chunk != NULL) {                                                
    rtems_rbheap_add_to_spare_descriptor_chain(control, chunk);       
  }                                                                   
}                                                                     
 8004764:	29 6d 00 0c 	lw r13,(r11+12)                                
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
 8004768:	35 61 00 10 	addi r1,r11,16                                 
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
 800476c:	45 a1 00 06 	be r13,r1,8004784 <rtems_rbheap_allocate+0xbc> <== NEVER TAKEN
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
 8004770:	29 a1 00 00 	lw r1,(r13+0)                                  
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_first_unprotected(        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
 8004774:	35 62 00 0c 	addi r2,r11,12                                 
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
                                                                      
  head->next = new_first;                                             
 8004778:	59 61 00 0c 	sw (r11+12),r1                                 
  new_first->previous = head;                                         
 800477c:	58 22 00 04 	sw (r1+4),r2                                   
 8004780:	e0 00 00 0b 	bi 80047ac <rtems_rbheap_allocate+0xe4>        
{                                                                     
  rtems_chain_control *chain = &control->spare_descriptor_chain;      
  rtems_chain_node *chunk = rtems_chain_get_unprotected(chain);       
                                                                      
  if (chunk == NULL) {                                                
    (*control->extend_descriptors)(control);                          
 8004784:	29 62 00 34 	lw r2,(r11+52)                                 <== NOT EXECUTED
 8004788:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800478c:	d8 40 00 00 	call r2                                        <== NOT EXECUTED
  rtems_rbheap_chunk *chunk = malloc(sizeof(*chunk));                 
                                                                      
  if (chunk != NULL) {                                                
    rtems_rbheap_add_to_spare_descriptor_chain(control, chunk);       
  }                                                                   
}                                                                     
 8004790:	29 61 00 0c 	lw r1,(r11+12)                                 <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
 8004794:	44 2d 00 1c 	be r1,r13,8004804 <rtems_rbheap_allocate+0x13c><== NOT EXECUTED
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
 8004798:	28 22 00 00 	lw r2,(r1+0)                                   <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_first_unprotected(        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
 800479c:	35 63 00 0c 	addi r3,r11,12                                 <== NOT EXECUTED
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
                                                                      
  head->next = new_first;                                             
  new_first->previous = head;                                         
 80047a0:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
                                                                      
  head->next = new_first;                                             
 80047a4:	59 62 00 0c 	sw (r11+12),r2                                 <== NOT EXECUTED
  new_first->previous = head;                                         
 80047a8:	58 43 00 04 	sw (r2+4),r3                                   <== NOT EXECUTED
      uintptr_t free_size = free_chunk->size;                         
                                                                      
      if (free_size > aligned_size) {                                 
        rtems_rbheap_chunk *new_chunk = get_chunk(control);           
                                                                      
        if (new_chunk != NULL) {                                      
 80047ac:	45 a0 00 16 	be r13,r0,8004804 <rtems_rbheap_allocate+0x13c><== NEVER TAKEN
          uintptr_t new_free_size = free_size - aligned_size;         
                                                                      
          free_chunk->size = new_free_size;                           
          new_chunk->begin = free_chunk->begin + new_free_size;       
 80047b0:	29 82 00 18 	lw r2,(r12+24)                                 
                                                                      
      if (free_size > aligned_size) {                                 
        rtems_rbheap_chunk *new_chunk = get_chunk(control);           
                                                                      
        if (new_chunk != NULL) {                                      
          uintptr_t new_free_size = free_size - aligned_size;         
 80047b4:	c9 ee 08 00 	sub r1,r15,r14                                 
                                                                      
          free_chunk->size = new_free_size;                           
 80047b8:	59 81 00 1c 	sw (r12+28),r1                                 
          new_chunk->begin = free_chunk->begin + new_free_size;       
 80047bc:	b4 22 08 00 	add r1,r1,r2                                   
 80047c0:	59 a1 00 18 	sw (r13+24),r1                                 
          new_chunk->size = aligned_size;                             
 80047c4:	59 ae 00 1c 	sw (r13+28),r14                                
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(                       
  Chain_Node *node                                                    
)                                                                     
{                                                                     
  node->next = node->previous = NULL;                                 
 80047c8:	59 a0 00 04 	sw (r13+4),r0                                  
 80047cc:	59 a0 00 00 	sw (r13+0),r0                                  
static void insert_into_tree(                                         
  rtems_rbtree_control *tree,                                         
  rtems_rbheap_chunk *chunk                                           
)                                                                     
{                                                                     
  _RBTree_Insert_unprotected(tree, &chunk->tree_node);                
 80047d0:	35 61 00 18 	addi r1,r11,24                                 
 80047d4:	35 a2 00 08 	addi r2,r13,8                                  
 80047d8:	f8 00 07 6e 	calli 8006590 <_RBTree_Insert_unprotected>     
          free_chunk->size = new_free_size;                           
          new_chunk->begin = free_chunk->begin + new_free_size;       
          new_chunk->size = aligned_size;                             
          rtems_chain_set_off_chain(&new_chunk->chain_node);          
          insert_into_tree(chunk_tree, new_chunk);                    
          ptr = (void *) new_chunk->begin;                            
 80047dc:	29 a1 00 18 	lw r1,(r13+24)                                 
 80047e0:	e0 00 00 0a 	bi 8004808 <rtems_rbheap_allocate+0x140>       
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
 80047e4:	29 81 00 04 	lw r1,(r12+4)                                  
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
 80047e8:	29 82 00 00 	lw r2,(r12+0)                                  
  previous       = the_node->previous;                                
  next->previous = previous;                                          
 80047ec:	58 41 00 04 	sw (r2+4),r1                                   
  previous->next = next;                                              
 80047f0:	58 22 00 00 	sw (r1+0),r2                                   
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(                       
  Chain_Node *node                                                    
)                                                                     
{                                                                     
  node->next = node->previous = NULL;                                 
 80047f4:	59 80 00 04 	sw (r12+4),r0                                  
 80047f8:	59 80 00 00 	sw (r12+0),r0                                  
        }                                                             
      } else {                                                        
        rtems_chain_extract_unprotected(&free_chunk->chain_node);     
        rtems_chain_set_off_chain(&free_chunk->chain_node);           
        ptr = (void *) free_chunk->begin;                             
 80047fc:	29 81 00 18 	lw r1,(r12+24)                                 
 8004800:	e0 00 00 02 	bi 8004808 <rtems_rbheap_allocate+0x140>       
  return big_enough;                                                  
}                                                                     
                                                                      
void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size)
{                                                                     
  void *ptr = NULL;                                                   
 8004804:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return ptr;                                                         
}                                                                     
 8004808:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800480c:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8004810:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8004814:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8004818:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800481c:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8004820:	37 9c 00 18 	addi sp,sp,24                                  
 8004824:	c3 a0 00 00 	ret                                            
                                                                      

08004964 <rtems_rbheap_extend_descriptors_with_malloc>: void rtems_rbheap_extend_descriptors_with_malloc(rtems_rbheap_control *control) {
 8004964:	37 9c ff f8 	addi sp,sp,-8                                  <== NOT EXECUTED
 8004968:	5b 8b 00 08 	sw (sp+8),r11                                  <== NOT EXECUTED
 800496c:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
 8004970:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
  rtems_rbheap_chunk *chunk = malloc(sizeof(*chunk));                 
 8004974:	34 01 00 20 	mvi r1,32                                      <== NOT EXECUTED
 8004978:	fb ff f5 b6 	calli 8002050 <malloc>                         <== NOT EXECUTED
                                                                      
  if (chunk != NULL) {                                                
 800497c:	44 20 00 07 	be r1,r0,8004998 <rtems_rbheap_extend_descriptors_with_malloc+0x34><== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Prepend_unprotected(                 
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  _Chain_Insert_unprotected(_Chain_Head(the_chain), the_node);        
 8004980:	35 62 00 0c 	addi r2,r11,12                                 <== NOT EXECUTED
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
 8004984:	58 22 00 04 	sw (r1+4),r2                                   <== NOT EXECUTED
  before_node           = after_node->next;                           
 8004988:	29 62 00 0c 	lw r2,(r11+12)                                 <== NOT EXECUTED
  after_node->next      = the_node;                                   
 800498c:	59 61 00 0c 	sw (r11+12),r1                                 <== NOT EXECUTED
  the_node->next        = before_node;                                
 8004990:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
  before_node->previous = the_node;                                   
 8004994:	58 41 00 04 	sw (r2+4),r1                                   <== NOT EXECUTED
    rtems_rbheap_add_to_spare_descriptor_chain(control, chunk);       
  }                                                                   
}                                                                     
 8004998:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 800499c:	2b 8b 00 08 	lw r11,(sp+8)                                  <== NOT EXECUTED
 80049a0:	37 9c 00 08 	addi sp,sp,8                                   <== NOT EXECUTED
 80049a4:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08004828 <rtems_rbheap_free>: _RBTree_Extract_unprotected(chunk_tree, &b->tree_node); } } rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr) {
 8004828:	37 9c ff c8 	addi sp,sp,-56                                 
 800482c:	5b 8b 00 18 	sw (sp+24),r11                                 
 8004830:	5b 8c 00 14 	sw (sp+20),r12                                 
 8004834:	5b 8d 00 10 	sw (sp+16),r13                                 
 8004838:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800483c:	5b 8f 00 08 	sw (sp+8),r15                                  
 8004840:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004844:	b8 20 58 00 	mv r11,r1                                      
 8004848:	b8 40 60 00 	mv r12,r2                                      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
 800484c:	34 01 00 00 	mvi r1,0                                       
                                                                      
  if (ptr != NULL) {                                                  
 8004850:	44 40 00 3c 	be r2,r0,8004940 <rtems_rbheap_free+0x118>     
                                                                      
#define NULL_PAGE rtems_rbheap_chunk_of_node(NULL)                    
                                                                      
static rtems_rbheap_chunk *find(rtems_rbtree_control *chunk_tree, uintptr_t key)
{                                                                     
  rtems_rbheap_chunk chunk = { .begin = key };                        
 8004854:	37 81 00 1c 	addi r1,sp,28                                  
 8004858:	34 02 00 00 	mvi r2,0                                       
 800485c:	34 03 00 20 	mvi r3,32                                      
 8004860:	f8 00 23 01 	calli 800d464 <memset>                         
                                                                      
  return rtems_rbheap_chunk_of_node(                                  
 8004864:	37 8e 00 24 	addi r14,sp,36                                 
                                                                      
#define NULL_PAGE rtems_rbheap_chunk_of_node(NULL)                    
                                                                      
static rtems_rbheap_chunk *find(rtems_rbtree_control *chunk_tree, uintptr_t key)
{                                                                     
  rtems_rbheap_chunk chunk = { .begin = key };                        
 8004868:	5b 8c 00 34 	sw (sp+52),r12                                 
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Find_unprotected(           
    RBTree_Control *the_rbtree,                                       
    RBTree_Node *the_node                                             
    )                                                                 
{                                                                     
  RBTree_Node* iter_node = the_rbtree->root;                          
 800486c:	29 6d 00 1c 	lw r13,(r11+28)                                
  RBTree_Node* found = NULL;                                          
 8004870:	34 0c 00 00 	mvi r12,0                                      
 8004874:	e0 00 00 0e 	bi 80048ac <rtems_rbheap_free+0x84>            
  int compare_result;                                                 
  while (iter_node) {                                                 
    compare_result = the_rbtree->compare_function(the_node, iter_node);
 8004878:	29 63 00 28 	lw r3,(r11+40)                                 
 800487c:	b9 c0 08 00 	mv r1,r14                                      
 8004880:	b9 a0 10 00 	mv r2,r13                                      
 8004884:	d8 60 00 00 	call r3                                        
    if ( _RBTree_Is_equal( compare_result ) ) {                       
 8004888:	5c 20 00 04 	bne r1,r0,8004898 <rtems_rbheap_free+0x70>     
      found = iter_node;                                              
      if ( the_rbtree->is_unique )                                    
 800488c:	41 62 00 2c 	lbu r2,(r11+44)                                
 8004890:	5c 41 00 09 	bne r2,r1,80048b4 <rtems_rbheap_free+0x8c>     <== ALWAYS TAKEN
 8004894:	b9 a0 60 00 	mv r12,r13                                     <== NOT EXECUTED
        break;                                                        
    }                                                                 
                                                                      
    RBTree_Direction dir =                                            
      (RBTree_Direction) _RBTree_Is_greater( compare_result );        
    iter_node = iter_node->child[dir];                                
 8004898:	68 21 00 00 	cmpgi r1,r1,0                                  
 800489c:	34 02 00 02 	mvi r2,2                                       
 80048a0:	fb ff f1 19 	calli 8000d04 <__ashlsi3>                      
 80048a4:	b5 a1 68 00 	add r13,r13,r1                                 
 80048a8:	29 ad 00 04 	lw r13,(r13+4)                                 
    )                                                                 
{                                                                     
  RBTree_Node* iter_node = the_rbtree->root;                          
  RBTree_Node* found = NULL;                                          
  int compare_result;                                                 
  while (iter_node) {                                                 
 80048ac:	5d a0 ff f3 	bne r13,r0,8004878 <rtems_rbheap_free+0x50>    
 80048b0:	b9 80 68 00 	mv r13,r12                                     
  if (ptr != NULL) {                                                  
    rtems_chain_control *free_chain = &control->free_chunk_chain;     
    rtems_rbtree_control *chunk_tree = &control->chunk_tree;          
    rtems_rbheap_chunk *chunk = find(chunk_tree, (uintptr_t) ptr);    
                                                                      
    if (chunk != NULL_PAGE) {                                         
 80048b4:	35 ac ff f8 	addi r12,r13,-8                                
        check_and_merge(free_chain, chunk_tree, chunk, pred);         
      } else {                                                        
        sc = RTEMS_INCORRECT_STATE;                                   
      }                                                               
    } else {                                                          
      sc = RTEMS_INVALID_ID;                                          
 80048b8:	34 01 00 04 	mvi r1,4                                       
  if (ptr != NULL) {                                                  
    rtems_chain_control *free_chain = &control->free_chunk_chain;     
    rtems_rbtree_control *chunk_tree = &control->chunk_tree;          
    rtems_rbheap_chunk *chunk = find(chunk_tree, (uintptr_t) ptr);    
                                                                      
    if (chunk != NULL_PAGE) {                                         
 80048bc:	45 a0 00 21 	be r13,r0,8004940 <rtems_rbheap_free+0x118>    
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_node_off_chain(                   
  const Chain_Node *node                                              
)                                                                     
{                                                                     
  return (node->next == NULL) && (node->previous == NULL);            
 80048c0:	29 a2 ff f8 	lw r2,(r13+-8)                                 
 80048c4:	34 01 00 00 	mvi r1,0                                       
 80048c8:	5c 40 00 03 	bne r2,r0,80048d4 <rtems_rbheap_free+0xac>     
    add_to_chain(free_chain, b);                                      
    _RBTree_Extract_unprotected(chunk_tree, &b->tree_node);           
  }                                                                   
}                                                                     
                                                                      
rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr)
 80048cc:	29 81 00 04 	lw r1,(r12+4)                                  
 80048d0:	64 21 00 00 	cmpei r1,r1,0                                  
    rtems_chain_control *free_chain = &control->free_chunk_chain;     
    rtems_rbtree_control *chunk_tree = &control->chunk_tree;          
    rtems_rbheap_chunk *chunk = find(chunk_tree, (uintptr_t) ptr);    
                                                                      
    if (chunk != NULL_PAGE) {                                         
      if (!rtems_rbheap_is_chunk_free(chunk)) {                       
 80048d4:	18 22 00 01 	xori r2,r1,0x1                                 
                                                                      
        check_and_merge(free_chain, chunk_tree, chunk, succ);         
        add_to_chain(free_chain, chunk);                              
        check_and_merge(free_chain, chunk_tree, chunk, pred);         
      } else {                                                        
        sc = RTEMS_INCORRECT_STATE;                                   
 80048d8:	34 01 00 0e 	mvi r1,14                                      
    rtems_chain_control *free_chain = &control->free_chunk_chain;     
    rtems_rbtree_control *chunk_tree = &control->chunk_tree;          
    rtems_rbheap_chunk *chunk = find(chunk_tree, (uintptr_t) ptr);    
                                                                      
    if (chunk != NULL_PAGE) {                                         
      if (!rtems_rbheap_is_chunk_free(chunk)) {                       
 80048dc:	5c 40 00 19 	bne r2,r0,8004940 <rtems_rbheap_free+0x118>    
static rtems_rbheap_chunk *get_next(                                  
  const rtems_rbheap_chunk *chunk,                                    
  RBTree_Direction dir                                                
)                                                                     
{                                                                     
  return rtems_rbheap_chunk_of_node(                                  
 80048e0:	35 8e 00 08 	addi r14,r12,8                                 
 80048e4:	b9 c0 08 00 	mv r1,r14                                      
 80048e8:	f8 00 07 cf 	calli 8006824 <_RBTree_Next_unprotected>       
 80048ec:	b8 20 78 00 	mv r15,r1                                      
 80048f0:	34 02 00 01 	mvi r2,1                                       
 80048f4:	b9 c0 08 00 	mv r1,r14                                      
 80048f8:	f8 00 07 cb 	calli 8006824 <_RBTree_Next_unprotected>       
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (ptr != NULL) {                                                  
    rtems_chain_control *free_chain = &control->free_chunk_chain;     
    rtems_rbtree_control *chunk_tree = &control->chunk_tree;          
 80048fc:	35 6d 00 18 	addi r13,r11,24                                
static rtems_rbheap_chunk *get_next(                                  
  const rtems_rbheap_chunk *chunk,                                    
  RBTree_Direction dir                                                
)                                                                     
{                                                                     
  return rtems_rbheap_chunk_of_node(                                  
 8004900:	34 24 ff f8 	addi r4,r1,-8                                  
    if (chunk != NULL_PAGE) {                                         
      if (!rtems_rbheap_is_chunk_free(chunk)) {                       
        rtems_rbheap_chunk *pred = get_next(chunk, RBT_LEFT);         
        rtems_rbheap_chunk *succ = get_next(chunk, RBT_RIGHT);        
                                                                      
        check_and_merge(free_chain, chunk_tree, chunk, succ);         
 8004904:	b9 a0 10 00 	mv r2,r13                                      
 8004908:	b9 60 08 00 	mv r1,r11                                      
 800490c:	b9 80 18 00 	mv r3,r12                                      
 8004910:	fb ff fe f0 	calli 80044d0 <check_and_merge>                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
 8004914:	29 62 00 00 	lw r2,(r11+0)                                  
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
 8004918:	59 8b 00 04 	sw (r12+4),r11                                 
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
 800491c:	59 6c 00 00 	sw (r11+0),r12                                 
  the_node->next        = before_node;                                
 8004920:	59 82 00 00 	sw (r12+0),r2                                  
  before_node->previous = the_node;                                   
 8004924:	58 4c 00 04 	sw (r2+4),r12                                  
        add_to_chain(free_chain, chunk);                              
        check_and_merge(free_chain, chunk_tree, chunk, pred);         
 8004928:	b9 60 08 00 	mv r1,r11                                      
 800492c:	b9 a0 10 00 	mv r2,r13                                      
 8004930:	b9 80 18 00 	mv r3,r12                                      
 8004934:	35 e4 ff f8 	addi r4,r15,-8                                 
 8004938:	fb ff fe e6 	calli 80044d0 <check_and_merge>                
  }                                                                   
}                                                                     
                                                                      
rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr)
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
 800493c:	34 01 00 00 	mvi r1,0                                       
      sc = RTEMS_INVALID_ID;                                          
    }                                                                 
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
 8004940:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004944:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8004948:	2b 8c 00 14 	lw r12,(sp+20)                                 
 800494c:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8004950:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8004954:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8004958:	37 9c 00 38 	addi sp,sp,56                                  
 800495c:	c3 a0 00 00 	ret                                            
                                                                      

08004560 <rtems_rbheap_initialize>: uintptr_t area_size, uintptr_t alignment, rtems_rbheap_extend_descriptors extend_descriptors, void *handler_arg ) {
 8004560:	37 9c ff dc 	addi sp,sp,-36                                 
 8004564:	5b 8b 00 24 	sw (sp+36),r11                                 
 8004568:	5b 8c 00 20 	sw (sp+32),r12                                 
 800456c:	5b 8d 00 1c 	sw (sp+28),r13                                 
 8004570:	5b 8e 00 18 	sw (sp+24),r14                                 
 8004574:	5b 8f 00 14 	sw (sp+20),r15                                 
 8004578:	5b 90 00 10 	sw (sp+16),r16                                 
 800457c:	5b 91 00 0c 	sw (sp+12),r17                                 
 8004580:	5b 92 00 08 	sw (sp+8),r18                                  
 8004584:	5b 9d 00 04 	sw (sp+4),ra                                   
      }                                                               
    } else {                                                          
      sc = RTEMS_INVALID_ADDRESS;                                     
    }                                                                 
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
 8004588:	34 0f 00 0a 	mvi r15,10                                     
  uintptr_t area_size,                                                
  uintptr_t alignment,                                                
  rtems_rbheap_extend_descriptors extend_descriptors,                 
  void *handler_arg                                                   
)                                                                     
{                                                                     
 800458c:	b8 20 58 00 	mv r11,r1                                      
 8004590:	b8 40 60 00 	mv r12,r2                                      
 8004594:	b8 80 70 00 	mv r14,r4                                      
 8004598:	b8 a0 88 00 	mv r17,r5                                      
 800459c:	b8 c0 90 00 	mv r18,r6                                      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (alignment > 0) {                                                
 80045a0:	44 80 00 3e 	be r4,r0,8004698 <rtems_rbheap_initialize+0x138>
    uintptr_t begin = (uintptr_t) area_begin;                         
    uintptr_t end = begin + area_size;                                
 80045a4:	b4 43 80 00 	add r16,r2,r3                                  
                                                                      
#include <stdlib.h>                                                   
                                                                      
static uintptr_t align_up(uintptr_t alignment, uintptr_t value)       
{                                                                     
  uintptr_t excess = value % alignment;                               
 80045a8:	b8 40 08 00 	mv r1,r2                                       
 80045ac:	b8 80 10 00 	mv r2,r4                                       
 80045b0:	f8 00 38 4e 	calli 80126e8 <__umodsi3>                      
                                                                      
  if (excess > 0) {                                                   
 80045b4:	b9 80 68 00 	mv r13,r12                                     
 80045b8:	44 20 00 03 	be r1,r0,80045c4 <rtems_rbheap_initialize+0x64>
    value += alignment - excess;                                      
 80045bc:	b5 8e 68 00 	add r13,r12,r14                                
 80045c0:	c9 a1 68 00 	sub r13,r13,r1                                 
    uintptr_t begin = (uintptr_t) area_begin;                         
    uintptr_t end = begin + area_size;                                
    uintptr_t aligned_begin = align_up(alignment, begin);             
    uintptr_t aligned_end = align_down(alignment, end);               
                                                                      
    if (begin < end && begin <= aligned_begin && aligned_begin < aligned_end) {
 80045c4:	f1 ac 08 00 	cmpgeu r1,r13,r12                              
 80045c8:	f6 0c 60 00 	cmpgu r12,r16,r12                              
        insert_into_tree(chunk_tree, first);                          
      } else {                                                        
        sc = RTEMS_NO_MEMORY;                                         
      }                                                               
    } else {                                                          
      sc = RTEMS_INVALID_ADDRESS;                                     
 80045cc:	34 0f 00 09 	mvi r15,9                                      
    uintptr_t begin = (uintptr_t) area_begin;                         
    uintptr_t end = begin + area_size;                                
    uintptr_t aligned_begin = align_up(alignment, begin);             
    uintptr_t aligned_end = align_down(alignment, end);               
                                                                      
    if (begin < end && begin <= aligned_begin && aligned_begin < aligned_end) {
 80045d0:	a0 2c 60 00 	and r12,r1,r12                                 
 80045d4:	45 80 00 31 	be r12,r0,8004698 <rtems_rbheap_initialize+0x138>
  return value;                                                       
}                                                                     
                                                                      
static uintptr_t align_down(uintptr_t alignment, uintptr_t value)     
{                                                                     
  uintptr_t excess = value % alignment;                               
 80045d8:	ba 00 08 00 	mv r1,r16                                      
 80045dc:	b9 c0 10 00 	mv r2,r14                                      
 80045e0:	f8 00 38 42 	calli 80126e8 <__umodsi3>                      
                                                                      
  return value - excess;                                              
 80045e4:	ca 01 80 00 	sub r16,r16,r1                                 
    uintptr_t begin = (uintptr_t) area_begin;                         
    uintptr_t end = begin + area_size;                                
    uintptr_t aligned_begin = align_up(alignment, begin);             
    uintptr_t aligned_end = align_down(alignment, end);               
                                                                      
    if (begin < end && begin <= aligned_begin && aligned_begin < aligned_end) {
 80045e8:	51 b0 00 2c 	bgeu r13,r16,8004698 <rtems_rbheap_initialize+0x138>
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 );                        
 80045ec:	35 61 00 04 	addi r1,r11,4                                  
{                                                                     
  the_rbtree->permanent_null   = NULL;                                
  the_rbtree->root             = NULL;                                
  the_rbtree->first[0]         = NULL;                                
  the_rbtree->first[1]         = NULL;                                
  the_rbtree->compare_function = compare_function;                    
 80045f0:	78 02 08 00 	mvhi r2,0x800                                  
 80045f4:	38 42 44 c0 	ori r2,r2,0x44c0                               
                                                                      
  head->next = tail;                                                  
 80045f8:	59 61 00 00 	sw (r11+0),r1                                  
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
 80045fc:	35 6c 00 0c 	addi r12,r11,12                                
  the_rbtree->is_unique        = is_unique;                           
 8004600:	34 01 00 01 	mvi r1,1                                       
  Chain_Node *tail = _Chain_Tail( the_chain );                        
 8004604:	35 6f 00 10 	addi r15,r11,16                                
{                                                                     
  the_rbtree->permanent_null   = NULL;                                
  the_rbtree->root             = NULL;                                
  the_rbtree->first[0]         = NULL;                                
  the_rbtree->first[1]         = NULL;                                
  the_rbtree->compare_function = compare_function;                    
 8004608:	59 62 00 28 	sw (r11+40),r2                                 
  the_rbtree->is_unique        = is_unique;                           
 800460c:	31 61 00 2c 	sb (r11+44),r1                                 
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
 8004610:	59 60 00 04 	sw (r11+4),r0                                  
  tail->previous = head;                                              
 8004614:	59 6b 00 08 	sw (r11+8),r11                                 
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 8004618:	59 6f 00 0c 	sw (r11+12),r15                                
  head->previous = NULL;                                              
 800461c:	59 60 00 10 	sw (r11+16),r0                                 
  tail->previous = head;                                              
 8004620:	59 6c 00 14 	sw (r11+20),r12                                
    RBTree_Control          *the_rbtree,                              
    RBTree_Compare_function  compare_function,                        
    bool                     is_unique                                
    )                                                                 
{                                                                     
  the_rbtree->permanent_null   = NULL;                                
 8004624:	59 60 00 18 	sw (r11+24),r0                                 
  the_rbtree->root             = NULL;                                
 8004628:	59 60 00 1c 	sw (r11+28),r0                                 
  the_rbtree->first[0]         = NULL;                                
 800462c:	59 60 00 20 	sw (r11+32),r0                                 
  the_rbtree->first[1]         = NULL;                                
 8004630:	59 60 00 24 	sw (r11+36),r0                                 
      rtems_rbheap_chunk *first = NULL;                               
                                                                      
      rtems_chain_initialize_empty(free_chain);                       
      rtems_chain_initialize_empty(&control->spare_descriptor_chain); 
      rtems_rbtree_initialize_empty(chunk_tree, chunk_compare, true); 
      control->alignment = alignment;                                 
 8004634:	59 6e 00 30 	sw (r11+48),r14                                
      control->handler_arg = handler_arg;                             
 8004638:	59 72 00 38 	sw (r11+56),r18                                
      control->extend_descriptors = extend_descriptors;               
 800463c:	59 71 00 34 	sw (r11+52),r17                                
{                                                                     
  rtems_chain_control *chain = &control->spare_descriptor_chain;      
  rtems_chain_node *chunk = rtems_chain_get_unprotected(chain);       
                                                                      
  if (chunk == NULL) {                                                
    (*control->extend_descriptors)(control);                          
 8004640:	b9 60 08 00 	mv r1,r11                                      
 8004644:	da 20 00 00 	call r17                                       
  rtems_rbheap_chunk *chunk = malloc(sizeof(*chunk));                 
                                                                      
  if (chunk != NULL) {                                                
    rtems_rbheap_add_to_spare_descriptor_chain(control, chunk);       
  }                                                                   
}                                                                     
 8004648:	29 62 00 0c 	lw r2,(r11+12)                                 
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
 800464c:	44 4f 00 12 	be r2,r15,8004694 <rtems_rbheap_initialize+0x134>
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
 8004650:	28 41 00 00 	lw r1,(r2+0)                                   
                                                                      
  head->next = new_first;                                             
 8004654:	59 61 00 0c 	sw (r11+12),r1                                 
  new_first->previous = head;                                         
 8004658:	58 2c 00 04 	sw (r1+4),r12                                  
      control->alignment = alignment;                                 
      control->handler_arg = handler_arg;                             
      control->extend_descriptors = extend_descriptors;               
                                                                      
      first = get_chunk(control);                                     
      if (first != NULL) {                                            
 800465c:	44 40 00 0e 	be r2,r0,8004694 <rtems_rbheap_initialize+0x134><== NEVER TAKEN
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
 8004660:	29 61 00 00 	lw r1,(r11+0)                                  
        first->begin = aligned_begin;                                 
        first->size = aligned_end - aligned_begin;                    
 8004664:	ca 0d 80 00 	sub r16,r16,r13                                
      control->handler_arg = handler_arg;                             
      control->extend_descriptors = extend_descriptors;               
                                                                      
      first = get_chunk(control);                                     
      if (first != NULL) {                                            
        first->begin = aligned_begin;                                 
 8004668:	58 4d 00 18 	sw (r2+24),r13                                 
        first->size = aligned_end - aligned_begin;                    
 800466c:	58 50 00 1c 	sw (r2+28),r16                                 
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
 8004670:	58 4b 00 04 	sw (r2+4),r11                                  
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
 8004674:	59 62 00 00 	sw (r11+0),r2                                  
  the_node->next        = before_node;                                
 8004678:	58 41 00 00 	sw (r2+0),r1                                   
  before_node->previous = the_node;                                   
 800467c:	58 22 00 04 	sw (r1+4),r2                                   
static void insert_into_tree(                                         
  rtems_rbtree_control *tree,                                         
  rtems_rbheap_chunk *chunk                                           
)                                                                     
{                                                                     
  _RBTree_Insert_unprotected(tree, &chunk->tree_node);                
 8004680:	35 61 00 18 	addi r1,r11,24                                 
 8004684:	34 42 00 08 	addi r2,r2,8                                   
 8004688:	f8 00 07 c2 	calli 8006590 <_RBTree_Insert_unprotected>     
  uintptr_t alignment,                                                
  rtems_rbheap_extend_descriptors extend_descriptors,                 
  void *handler_arg                                                   
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
 800468c:	34 0f 00 00 	mvi r15,0                                      
 8004690:	e0 00 00 02 	bi 8004698 <rtems_rbheap_initialize+0x138>     
        first->begin = aligned_begin;                                 
        first->size = aligned_end - aligned_begin;                    
        add_to_chain(free_chain, first);                              
        insert_into_tree(chunk_tree, first);                          
      } else {                                                        
        sc = RTEMS_NO_MEMORY;                                         
 8004694:	34 0f 00 1a 	mvi r15,26                                     
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
 8004698:	b9 e0 08 00 	mv r1,r15                                      
 800469c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80046a0:	2b 8b 00 24 	lw r11,(sp+36)                                 
 80046a4:	2b 8c 00 20 	lw r12,(sp+32)                                 
 80046a8:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 80046ac:	2b 8e 00 18 	lw r14,(sp+24)                                 
 80046b0:	2b 8f 00 14 	lw r15,(sp+20)                                 
 80046b4:	2b 90 00 10 	lw r16,(sp+16)                                 
 80046b8:	2b 91 00 0c 	lw r17,(sp+12)                                 
 80046bc:	2b 92 00 08 	lw r18,(sp+8)                                  
 80046c0:	37 9c 00 24 	addi sp,sp,36                                  
 80046c4:	c3 a0 00 00 	ret                                            
                                                                      

08017b3c <rtems_rfs_bitmap_load_map>: * @return int The error number (errno). No error if 0. */ static int rtems_rfs_bitmap_load_map (rtems_rfs_bitmap_control* control, rtems_rfs_bitmap_map* map) {
 8017b3c:	37 9c ff f4 	addi sp,sp,-12                                 
 8017b40:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8017b44:	5b 8c 00 08 	sw (sp+8),r12                                  
 8017b48:	5b 9d 00 04 	sw (sp+4),ra                                   
 8017b4c:	b8 40 60 00 	mv r12,r2                                      
  int rc;                                                             
                                                                      
  if (!control->buffer)                                               
 8017b50:	28 22 00 00 	lw r2,(r1+0)                                   
 * @return int The error number (errno). No error if 0.               
 */                                                                   
static int                                                            
rtems_rfs_bitmap_load_map (rtems_rfs_bitmap_control* control,         
                           rtems_rfs_bitmap_map*     map)             
{                                                                     
 8017b54:	b8 20 58 00 	mv r11,r1                                      
  int rc;                                                             
                                                                      
  if (!control->buffer)                                               
    return ENXIO;                                                     
 8017b58:	34 01 00 06 	mvi r1,6                                       
rtems_rfs_bitmap_load_map (rtems_rfs_bitmap_control* control,         
                           rtems_rfs_bitmap_map*     map)             
{                                                                     
  int rc;                                                             
                                                                      
  if (!control->buffer)                                               
 8017b5c:	44 40 00 0b 	be r2,r0,8017b88 <rtems_rfs_bitmap_load_map+0x4c>
    return ENXIO;                                                     
                                                                      
  *map = NULL;                                                        
                                                                      
  rc = rtems_rfs_buffer_handle_request (control->fs,                  
 8017b60:	29 61 00 04 	lw r1,(r11+4)                                  
 8017b64:	29 63 00 08 	lw r3,(r11+8)                                  
  int rc;                                                             
                                                                      
  if (!control->buffer)                                               
    return ENXIO;                                                     
                                                                      
  *map = NULL;                                                        
 8017b68:	59 80 00 00 	sw (r12+0),r0                                  
                                                                      
  rc = rtems_rfs_buffer_handle_request (control->fs,                  
 8017b6c:	34 04 00 01 	mvi r4,1                                       
 8017b70:	f8 00 08 a3 	calli 8019dfc <rtems_rfs_buffer_handle_request>
                                        control->buffer,              
                                        control->block,               
                                        true);                        
  if (rc)                                                             
 8017b74:	5c 20 00 05 	bne r1,r0,8017b88 <rtems_rfs_bitmap_load_map+0x4c><== NEVER TAKEN
    return rc;                                                        
                                                                      
  *map = rtems_rfs_buffer_data (control->buffer);                     
 8017b78:	29 62 00 00 	lw r2,(r11+0)                                  
 8017b7c:	28 42 00 08 	lw r2,(r2+8)                                   
 8017b80:	28 42 00 1c 	lw r2,(r2+28)                                  
 8017b84:	59 82 00 00 	sw (r12+0),r2                                  
  return 0;                                                           
}                                                                     
 8017b88:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8017b8c:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8017b90:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8017b94:	37 9c 00 0c 	addi sp,sp,12                                  
 8017b98:	c3 a0 00 00 	ret                                            
                                                                      

080182f0 <rtems_rfs_bitmap_map_alloc>: int rtems_rfs_bitmap_map_alloc (rtems_rfs_bitmap_control* control, rtems_rfs_bitmap_bit seed, bool* allocated, rtems_rfs_bitmap_bit* bit) {
 80182f0:	37 9c ff e8 	addi sp,sp,-24                                 
 80182f4:	5b 8b 00 18 	sw (sp+24),r11                                 
 80182f8:	5b 8c 00 14 	sw (sp+20),r12                                 
 80182fc:	5b 8d 00 10 	sw (sp+16),r13                                 
 8018300:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8018304:	5b 8f 00 08 	sw (sp+8),r15                                  
 8018308:	5b 9d 00 04 	sw (sp+4),ra                                   
 801830c:	b8 20 60 00 	mv r12,r1                                      
 8018310:	b8 60 70 00 	mv r14,r3                                      
 8018314:	b8 80 78 00 	mv r15,r4                                      
  int                  rc = 0;                                        
                                                                      
  /*                                                                  
   * By default we assume the allocation failed.                      
   */                                                                 
  *allocated = false;                                                 
 8018318:	30 60 00 00 	sb (r3+0),r0                                   
   * seed up then from the seed down a window number of bits, then repeat the
   * process from the window distance from the seed, again above then 
   * below. Keep moving out until all bits have been searched.        
   */                                                                 
  upper_seed = seed;                                                  
  lower_seed = seed;                                                  
 801831c:	b8 40 58 00 	mv r11,r2                                      
   * of bits from the original seed above then below. That is search from the
   * seed up then from the seed down a window number of bits, then repeat the
   * process from the window distance from the seed, again above then 
   * below. Keep moving out until all bits have been searched.        
   */                                                                 
  upper_seed = seed;                                                  
 8018320:	b8 40 68 00 	mv r13,r2                                      
   * we have searched all of the map. The seed may not be aligned to a window
   * boundary so we may need to search a partial window and this may also not
   * be balanced for the upper or lower seeds. We move to the limits, search
   * then return false if no clear bits are found.                    
   */                                                                 
  while (((upper_seed >= 0) && (upper_seed < control->size))          
 8018324:	e0 00 00 1b 	bi 8018390 <rtems_rfs_bitmap_map_alloc+0xa0>   
         || ((lower_seed >= 0) && (lower_seed < control->size)))      
  {                                                                   
    /*                                                                
     * Search up first so bits allocated in succession are grouped together.
     */                                                               
    if (upper_seed < control->size)                                   
 8018328:	29 81 00 0c 	lw r1,(r12+12)                                 
 801832c:	51 a1 00 0a 	bgeu r13,r1,8018354 <rtems_rfs_bitmap_map_alloc+0x64>
    {                                                                 
      *bit = upper_seed;                                              
 8018330:	59 ed 00 00 	sw (r15+0),r13                                 
      rc = rtems_rfs_search_map_for_clear_bit (control, bit, allocated,
 8018334:	b9 80 08 00 	mv r1,r12                                      
 8018338:	b9 e0 10 00 	mv r2,r15                                      
 801833c:	b9 c0 18 00 	mv r3,r14                                      
 8018340:	34 04 00 01 	mvi r4,1                                       
 8018344:	fb ff fe 16 	calli 8017b9c <rtems_rfs_search_map_for_clear_bit.clone.0>
                                               window, 1);            
      if ((rc > 0) || *allocated)                                     
 8018348:	48 20 00 18 	bg r1,r0,80183a8 <rtems_rfs_bitmap_map_alloc+0xb8><== NEVER TAKEN
 801834c:	41 c1 00 00 	lbu r1,(r14+0)                                 
 8018350:	5c 20 00 16 	bne r1,r0,80183a8 <rtems_rfs_bitmap_map_alloc+0xb8>
        break;                                                        
    }                                                                 
                                                                      
    if (lower_seed >= 0)                                              
 8018354:	48 0b 00 0a 	bg r0,r11,801837c <rtems_rfs_bitmap_map_alloc+0x8c>
    {                                                                 
      *bit = lower_seed;                                              
 8018358:	59 eb 00 00 	sw (r15+0),r11                                 
      rc = rtems_rfs_search_map_for_clear_bit (control, bit, allocated,
 801835c:	b9 80 08 00 	mv r1,r12                                      
 8018360:	b9 e0 10 00 	mv r2,r15                                      
 8018364:	b9 c0 18 00 	mv r3,r14                                      
 8018368:	34 04 ff ff 	mvi r4,-1                                      
 801836c:	fb ff fe 0c 	calli 8017b9c <rtems_rfs_search_map_for_clear_bit.clone.0>
                                               window, -1);           
      if ((rc > 0) || *allocated)                                     
 8018370:	48 20 00 0e 	bg r1,r0,80183a8 <rtems_rfs_bitmap_map_alloc+0xb8><== NEVER TAKEN
 8018374:	41 c1 00 00 	lbu r1,(r14+0)                                 
 8018378:	5c 20 00 0c 	bne r1,r0,80183a8 <rtems_rfs_bitmap_map_alloc+0xb8>
                                                                      
    /*                                                                
     * Do not bound the limits at the edges of the map. Do not update if an
     * edge has been passed.                                          
     */                                                               
    if (upper_seed < control->size)                                   
 801837c:	29 81 00 0c 	lw r1,(r12+12)                                 
 8018380:	51 a1 00 02 	bgeu r13,r1,8018388 <rtems_rfs_bitmap_map_alloc+0x98>
      upper_seed += window;                                           
 8018384:	35 ad 08 00 	addi r13,r13,2048                              
    if (lower_seed >= 0)                                              
 8018388:	48 0b 00 02 	bg r0,r11,8018390 <rtems_rfs_bitmap_map_alloc+0xa0>
      lower_seed -= window;                                           
 801838c:	35 6b f8 00 	addi r11,r11,-2048                             
   * we have searched all of the map. The seed may not be aligned to a window
   * boundary so we may need to search a partial window and this may also not
   * be balanced for the upper or lower seeds. We move to the limits, search
   * then return false if no clear bits are found.                    
   */                                                                 
  while (((upper_seed >= 0) && (upper_seed < control->size))          
 8018390:	48 0d 00 03 	bg r0,r13,801839c <rtems_rfs_bitmap_map_alloc+0xac>
 8018394:	29 81 00 0c 	lw r1,(r12+12)                                 
 8018398:	54 2d ff e4 	bgu r1,r13,8018328 <rtems_rfs_bitmap_map_alloc+0x38>
         || ((lower_seed >= 0) && (lower_seed < control->size)))      
 801839c:	48 0b 00 03 	bg r0,r11,80183a8 <rtems_rfs_bitmap_map_alloc+0xb8>
 80183a0:	29 81 00 0c 	lw r1,(r12+12)                                 
 80183a4:	54 2b ff e1 	bgu r1,r11,8018328 <rtems_rfs_bitmap_map_alloc+0x38>
    if (lower_seed >= 0)                                              
      lower_seed -= window;                                           
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 80183a8:	34 01 00 00 	mvi r1,0                                       
 80183ac:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80183b0:	2b 8b 00 18 	lw r11,(sp+24)                                 
 80183b4:	2b 8c 00 14 	lw r12,(sp+20)                                 
 80183b8:	2b 8d 00 10 	lw r13,(sp+16)                                 
 80183bc:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 80183c0:	2b 8f 00 08 	lw r15,(sp+8)                                  
 80183c4:	37 9c 00 18 	addi sp,sp,24                                  
 80183c8:	c3 a0 00 00 	ret                                            
                                                                      

08017ea0 <rtems_rfs_bitmap_mask>: return 0; } rtems_rfs_bitmap_element rtems_rfs_bitmap_mask (unsigned int size) {
 8017ea0:	37 9c ff fc 	addi sp,sp,-4                                  <== NOT EXECUTED
 8017ea4:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
  rtems_rfs_bitmap_element mask = RTEMS_RFS_BITMAP_ELEMENT_FULL_MASK; 
  mask >>= (rtems_rfs_bitmap_element_bits () - size);                 
 8017ea8:	34 02 00 20 	mvi r2,32                                      <== NOT EXECUTED
 8017eac:	c8 41 10 00 	sub r2,r2,r1                                   <== NOT EXECUTED
 8017eb0:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 8017eb4:	fb ff a5 b2 	calli 800157c <__lshrsi3>                      <== NOT EXECUTED
  return mask;                                                        
}                                                                     
 8017eb8:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 8017ebc:	37 9c 00 04 	addi sp,sp,4                                   <== NOT EXECUTED
 8017ec0:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08017ec4 <rtems_rfs_bitmap_mask_section>: rtems_rfs_bitmap_element rtems_rfs_bitmap_mask_section (unsigned int start, unsigned int end) {
 8017ec4:	37 9c ff f8 	addi sp,sp,-8                                  
 8017ec8:	5b 8b 00 08 	sw (sp+8),r11                                  
 8017ecc:	5b 9d 00 04 	sw (sp+4),ra                                   
 8017ed0:	b8 20 58 00 	mv r11,r1                                      
  rtems_rfs_bitmap_element mask = 0;                                  
 8017ed4:	34 01 00 00 	mvi r1,0                                       
  if (end > start)                                                    
 8017ed8:	51 62 00 07 	bgeu r11,r2,8017ef4 <rtems_rfs_bitmap_mask_section+0x30><== NEVER TAKEN
                                                                      
rtems_rfs_bitmap_element                                              
rtems_rfs_bitmap_mask (unsigned int size)                             
{                                                                     
  rtems_rfs_bitmap_element mask = RTEMS_RFS_BITMAP_ELEMENT_FULL_MASK; 
  mask >>= (rtems_rfs_bitmap_element_bits () - size);                 
 8017edc:	c9 62 10 00 	sub r2,r11,r2                                  
 8017ee0:	34 42 00 20 	addi r2,r2,32                                  
 8017ee4:	34 01 ff ff 	mvi r1,-1                                      
 8017ee8:	fb ff a5 a5 	calli 800157c <__lshrsi3>                      
rtems_rfs_bitmap_element                                              
rtems_rfs_bitmap_mask_section (unsigned int start, unsigned int end)  
{                                                                     
  rtems_rfs_bitmap_element mask = 0;                                  
  if (end > start)                                                    
    mask = rtems_rfs_bitmap_mask (end - start) << start;              
 8017eec:	b9 60 10 00 	mv r2,r11                                      
 8017ef0:	fb ff a5 7c 	calli 80014e0 <__ashlsi3>                      
  return mask;                                                        
}                                                                     
 8017ef4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8017ef8:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8017efc:	37 9c 00 08 	addi sp,sp,8                                   
 8017f00:	c3 a0 00 00 	ret                                            
                                                                      

08018578 <rtems_rfs_block_find_indirect>: rtems_rfs_block_find_indirect (rtems_rfs_file_system* fs, rtems_rfs_buffer_handle* buffer, rtems_rfs_block_no block, int offset, rtems_rfs_block_no* result) {
 8018578:	37 9c ff e4 	addi sp,sp,-28                                 
 801857c:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8018580:	5b 8c 00 18 	sw (sp+24),r12                                 
 8018584:	5b 8d 00 14 	sw (sp+20),r13                                 
 8018588:	5b 8e 00 10 	sw (sp+16),r14                                 
 801858c:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8018590:	5b 90 00 08 	sw (sp+8),r16                                  
 8018594:	5b 9d 00 04 	sw (sp+4),ra                                   
 8018598:	b8 80 68 00 	mv r13,r4                                      
                                                                      
  /*                                                                  
   * If the handle has a buffer and this request is a different block the current
   * buffer is released.                                              
   */                                                                 
  rc = rtems_rfs_buffer_handle_request (fs, buffer, block, true);     
 801859c:	34 04 00 01 	mvi r4,1                                       
rtems_rfs_block_find_indirect (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* buffer,       
                               rtems_rfs_block_no       block,        
                               int                      offset,       
                               rtems_rfs_block_no*      result)       
{                                                                     
 80185a0:	b8 20 78 00 	mv r15,r1                                      
 80185a4:	b8 40 60 00 	mv r12,r2                                      
 80185a8:	b8 60 70 00 	mv r14,r3                                      
 80185ac:	b8 a0 58 00 	mv r11,r5                                      
                                                                      
  /*                                                                  
   * If the handle has a buffer and this request is a different block the current
   * buffer is released.                                              
   */                                                                 
  rc = rtems_rfs_buffer_handle_request (fs, buffer, block, true);     
 80185b0:	f8 00 06 13 	calli 8019dfc <rtems_rfs_buffer_handle_request>
  if (rc > 0)                                                         
 80185b4:	48 20 00 27 	bg r1,r0,8018650 <rtems_rfs_block_find_indirect+0xd8><== NEVER TAKEN
    return rc;                                                        
                                                                      
  *result = rtems_rfs_block_get_number (buffer, offset);              
 80185b8:	29 81 00 08 	lw r1,(r12+8)                                  
 80185bc:	34 02 00 02 	mvi r2,2                                       
 80185c0:	28 2c 00 1c 	lw r12,(r1+28)                                 
 80185c4:	b9 a0 08 00 	mv r1,r13                                      
 80185c8:	fb ff a3 c6 	calli 80014e0 <__ashlsi3>                      
 80185cc:	b5 81 60 00 	add r12,r12,r1                                 
 80185d0:	41 81 00 00 	lbu r1,(r12+0)                                 
 80185d4:	41 90 00 03 	lbu r16,(r12+3)                                
 80185d8:	34 02 00 18 	mvi r2,24                                      
 80185dc:	fb ff a3 c1 	calli 80014e0 <__ashlsi3>                      
 80185e0:	ba 01 80 00 	or r16,r16,r1                                  
 80185e4:	41 81 00 01 	lbu r1,(r12+1)                                 
 80185e8:	34 02 00 10 	mvi r2,16                                      
 80185ec:	fb ff a3 bd 	calli 80014e0 <__ashlsi3>                      
 80185f0:	ba 01 80 00 	or r16,r16,r1                                  
 80185f4:	41 81 00 02 	lbu r1,(r12+2)                                 
 80185f8:	34 02 00 08 	mvi r2,8                                       
 80185fc:	fb ff a3 b9 	calli 80014e0 <__ashlsi3>                      
 8018600:	ba 01 10 00 	or r2,r16,r1                                   
 8018604:	59 62 00 00 	sw (r11+0),r2                                  
  if ((*result + 1) == 0)                                             
 8018608:	34 01 ff ff 	mvi r1,-1                                      
 801860c:	5c 41 00 02 	bne r2,r1,8018614 <rtems_rfs_block_find_indirect+0x9c><== ALWAYS TAKEN
    *result = 0;                                                      
 8018610:	59 60 00 00 	sw (r11+0),r0                                  <== NOT EXECUTED
                                                                      
  if (*result >= rtems_rfs_fs_blocks (fs))                            
 8018614:	29 63 00 00 	lw r3,(r11+0)                                  
 8018618:	29 e2 00 04 	lw r2,(r15+4)                                  
              " block=%" PRId32 ", indirect=%" PRId32 "/%d\n", *result, block, offset);
    *result = 0;                                                      
    rc = EIO;                                                         
  }                                                                   
                                                                      
  return 0;                                                           
 801861c:	34 01 00 00 	mvi r1,0                                       
                                                                      
  *result = rtems_rfs_block_get_number (buffer, offset);              
  if ((*result + 1) == 0)                                             
    *result = 0;                                                      
                                                                      
  if (*result >= rtems_rfs_fs_blocks (fs))                            
 8018620:	54 43 00 0c 	bgu r2,r3,8018650 <rtems_rfs_block_find_indirect+0xd8><== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_FIND))                 
 8018624:	34 02 10 00 	mvi r2,4096                                    <== NOT EXECUTED
 8018628:	fb ff e1 5f 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801862c:	44 20 00 07 	be r1,r0,8018648 <rtems_rfs_block_find_indirect+0xd0><== NOT EXECUTED
      printf ("rtems-rfs: block-find: invalid block in table:"        
 8018630:	29 62 00 00 	lw r2,(r11+0)                                  <== NOT EXECUTED
 8018634:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8018638:	38 21 62 20 	ori r1,r1,0x6220                               <== NOT EXECUTED
 801863c:	b9 c0 18 00 	mv r3,r14                                      <== NOT EXECUTED
 8018640:	b9 a0 20 00 	mv r4,r13                                      <== NOT EXECUTED
 8018644:	f8 00 23 4f 	calli 8021380 <printf>                         <== NOT EXECUTED
              " block=%" PRId32 ", indirect=%" PRId32 "/%d\n", *result, block, offset);
    *result = 0;                                                      
 8018648:	59 60 00 00 	sw (r11+0),r0                                  <== NOT EXECUTED
    rc = EIO;                                                         
  }                                                                   
                                                                      
  return 0;                                                           
 801864c:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
}                                                                     
 8018650:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8018654:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8018658:	2b 8c 00 18 	lw r12,(sp+24)                                 
 801865c:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8018660:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8018664:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8018668:	2b 90 00 08 	lw r16,(sp+8)                                  
 801866c:	37 9c 00 1c 	addi sp,sp,28                                  
 8018670:	c3 a0 00 00 	ret                                            
                                                                      

080189e0 <rtems_rfs_block_get_block_size>: void rtems_rfs_block_get_block_size (rtems_rfs_file_system* fs, rtems_rfs_pos pos, rtems_rfs_block_size* size) {
 80189e0:	37 9c ff ec 	addi sp,sp,-20                                 <== NOT EXECUTED
 80189e4:	5b 8b 00 14 	sw (sp+20),r11                                 <== NOT EXECUTED
 80189e8:	5b 8c 00 10 	sw (sp+16),r12                                 <== NOT EXECUTED
 80189ec:	5b 8d 00 0c 	sw (sp+12),r13                                 <== NOT EXECUTED
 80189f0:	5b 8e 00 08 	sw (sp+8),r14                                  <== NOT EXECUTED
 80189f4:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
 80189f8:	b8 40 68 00 	mv r13,r2                                      <== NOT EXECUTED
  if (pos == 0)                                                       
 80189fc:	b8 43 10 00 	or r2,r2,r3                                    <== NOT EXECUTED
                                                                      
void                                                                  
rtems_rfs_block_get_block_size (rtems_rfs_file_system* fs,            
                                rtems_rfs_pos          pos,           
                                rtems_rfs_block_size*  size)          
{                                                                     
 8018a00:	b8 60 60 00 	mv r12,r3                                      <== NOT EXECUTED
 8018a04:	b8 80 58 00 	mv r11,r4                                      <== NOT EXECUTED
  if (pos == 0)                                                       
 8018a08:	5c 40 00 04 	bne r2,r0,8018a18 <rtems_rfs_block_get_block_size+0x38><== NOT EXECUTED
 * @param size A pointer to the block size.                           
 */                                                                   
static inline void                                                    
rtems_rfs_block_set_size_zero (rtems_rfs_block_size* size)            
{                                                                     
  size->count = 0;                                                    
 8018a0c:	58 80 00 00 	sw (r4+0),r0                                   <== NOT EXECUTED
  size->offset = 0;                                                   
 8018a10:	58 80 00 04 	sw (r4+4),r0                                   <== NOT EXECUTED
 8018a14:	e0 00 00 0f 	bi 8018a50 <rtems_rfs_block_get_block_size+0x70><== NOT EXECUTED
    rtems_rfs_block_set_size_zero (size);                             
  else                                                                
  {                                                                   
    size->count  = pos / rtems_rfs_fs_block_size (fs) + 1;            
 8018a18:	28 2e 00 08 	lw r14,(r1+8)                                  <== NOT EXECUTED
 8018a1c:	b8 60 10 00 	mv r2,r3                                       <== NOT EXECUTED
 8018a20:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 8018a24:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 8018a28:	b9 c0 20 00 	mv r4,r14                                      <== NOT EXECUTED
 8018a2c:	f8 00 58 43 	calli 802eb38 <__udivdi3>                      <== NOT EXECUTED
 8018a30:	34 42 00 01 	addi r2,r2,1                                   <== NOT EXECUTED
 8018a34:	59 62 00 00 	sw (r11+0),r2                                  <== NOT EXECUTED
    size->offset = pos % rtems_rfs_fs_block_size (fs);                
 8018a38:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 8018a3c:	b9 80 10 00 	mv r2,r12                                      <== NOT EXECUTED
 8018a40:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 8018a44:	b9 c0 20 00 	mv r4,r14                                      <== NOT EXECUTED
 8018a48:	f8 00 5a 2a 	calli 802f2f0 <__umoddi3>                      <== NOT EXECUTED
 8018a4c:	59 62 00 04 	sw (r11+4),r2                                  <== NOT EXECUTED
  }                                                                   
}                                                                     
 8018a50:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 8018a54:	2b 8b 00 14 	lw r11,(sp+20)                                 <== NOT EXECUTED
 8018a58:	2b 8c 00 10 	lw r12,(sp+16)                                 <== NOT EXECUTED
 8018a5c:	2b 8d 00 0c 	lw r13,(sp+12)                                 <== NOT EXECUTED
 8018a60:	2b 8e 00 08 	lw r14,(sp+8)                                  <== NOT EXECUTED
 8018a64:	37 9c 00 14 	addi sp,sp,20                                  <== NOT EXECUTED
 8018a68:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08018ce8 <rtems_rfs_block_map_close>: int rtems_rfs_block_map_close (rtems_rfs_file_system* fs, rtems_rfs_block_map* map) {
 8018ce8:	37 9c ff d8 	addi sp,sp,-40                                 
 8018cec:	5b 8b 00 28 	sw (sp+40),r11                                 
 8018cf0:	5b 8c 00 24 	sw (sp+36),r12                                 
 8018cf4:	5b 8d 00 20 	sw (sp+32),r13                                 
 8018cf8:	5b 8e 00 1c 	sw (sp+28),r14                                 
 8018cfc:	5b 8f 00 18 	sw (sp+24),r15                                 
 8018d00:	5b 90 00 14 	sw (sp+20),r16                                 
 8018d04:	5b 91 00 10 	sw (sp+16),r17                                 
 8018d08:	5b 92 00 0c 	sw (sp+12),r18                                 
 8018d0c:	5b 93 00 08 	sw (sp+8),r19                                  
 8018d10:	5b 9d 00 04 	sw (sp+4),ra                                   
 8018d14:	b8 40 58 00 	mv r11,r2                                      
  int rc = 0;                                                         
  int brc;                                                            
                                                                      
  if (map->dirty && map->inode)                                       
 8018d18:	40 42 00 00 	lbu r2,(r2+0)                                  
}                                                                     
                                                                      
int                                                                   
rtems_rfs_block_map_close (rtems_rfs_file_system* fs,                 
                           rtems_rfs_block_map*   map)                
{                                                                     
 8018d1c:	b8 20 80 00 	mv r16,r1                                      
  int rc = 0;                                                         
 8018d20:	34 0c 00 00 	mvi r12,0                                      
  int brc;                                                            
                                                                      
  if (map->dirty && map->inode)                                       
 8018d24:	44 40 00 75 	be r2,r0,8018ef8 <rtems_rfs_block_map_close+0x210>
 8018d28:	29 62 00 04 	lw r2,(r11+4)                                  
 8018d2c:	44 40 00 73 	be r2,r0,8018ef8 <rtems_rfs_block_map_close+0x210><== NEVER TAKEN
  {                                                                   
    brc = rtems_rfs_inode_load (fs, map->inode);                      
 8018d30:	fb ff d7 b4 	calli 800ec00 <rtems_rfs_inode_load>           
    if (brc > 0)                                                      
 8018d34:	b8 20 60 00 	mv r12,r1                                      
 8018d38:	48 20 00 70 	bg r1,r0,8018ef8 <rtems_rfs_block_map_close+0x210><== NEVER TAKEN
 8018d3c:	b9 60 88 00 	mv r17,r11                                     
 8018d40:	34 0c 00 00 	mvi r12,0                                      
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_block (rtems_rfs_inode_handle* handle, int block, uint32_t bno)
{                                                                     
  rtems_rfs_write_u32 (&handle->node->data.blocks[block], bno);       
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
 8018d44:	34 0e 00 01 	mvi r14,1                                      
                                                                      
    if (rc == 0)                                                      
    {                                                                 
      int b;                                                          
                                                                      
      for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                    
 8018d48:	34 12 00 14 	mvi r18,20                                     
        rtems_rfs_inode_set_block (map->inode, b, map->blocks[b]);    
 8018d4c:	29 6d 00 04 	lw r13,(r11+4)                                 
 8018d50:	2a 2f 00 24 	lw r15,(r17+36)                                
 * @param bno The block number.                                       
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_block (rtems_rfs_inode_handle* handle, int block, uint32_t bno)
{                                                                     
  rtems_rfs_write_u32 (&handle->node->data.blocks[block], bno);       
 8018d54:	34 02 00 18 	mvi r2,24                                      
 8018d58:	29 b3 00 0c 	lw r19,(r13+12)                                
 8018d5c:	b9 e0 08 00 	mv r1,r15                                      
 8018d60:	fb ff a2 07 	calli 800157c <__lshrsi3>                      
 8018d64:	b6 6c 98 00 	add r19,r19,r12                                
 8018d68:	32 61 00 1c 	sb (r19+28),r1                                 
 8018d6c:	29 b3 00 0c 	lw r19,(r13+12)                                
 8018d70:	34 02 00 10 	mvi r2,16                                      
 8018d74:	b9 e0 08 00 	mv r1,r15                                      
 8018d78:	fb ff a2 01 	calli 800157c <__lshrsi3>                      
 8018d7c:	b6 6c 98 00 	add r19,r19,r12                                
 8018d80:	32 61 00 1d 	sb (r19+29),r1                                 
 8018d84:	29 b3 00 0c 	lw r19,(r13+12)                                
 8018d88:	b9 e0 08 00 	mv r1,r15                                      
 8018d8c:	34 02 00 08 	mvi r2,8                                       
 8018d90:	fb ff a1 fb 	calli 800157c <__lshrsi3>                      
 8018d94:	b6 6c 98 00 	add r19,r19,r12                                
 8018d98:	32 61 00 1e 	sb (r19+30),r1                                 
 8018d9c:	29 a1 00 0c 	lw r1,(r13+12)                                 
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
 8018da0:	36 31 00 04 	addi r17,r17,4                                 
 * @param bno The block number.                                       
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_block (rtems_rfs_inode_handle* handle, int block, uint32_t bno)
{                                                                     
  rtems_rfs_write_u32 (&handle->node->data.blocks[block], bno);       
 8018da4:	b4 2c 08 00 	add r1,r1,r12                                  
 8018da8:	30 2f 00 1f 	sb (r1+31),r15                                 
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
 8018dac:	31 ae 00 10 	sb (r13+16),r14                                
 8018db0:	35 8c 00 04 	addi r12,r12,4                                 
                                                                      
    if (rc == 0)                                                      
    {                                                                 
      int b;                                                          
                                                                      
      for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                    
 8018db4:	5d 92 ff e6 	bne r12,r18,8018d4c <rtems_rfs_block_map_close+0x64>
        rtems_rfs_inode_set_block (map->inode, b, map->blocks[b]);    
      rtems_rfs_inode_set_block_count (map->inode, map->size.count);  
 8018db8:	29 6c 00 04 	lw r12,(r11+4)                                 
 8018dbc:	29 6d 00 08 	lw r13,(r11+8)                                 
 * @param block_count The block count.                                
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_block_count (rtems_rfs_inode_handle* handle, uint32_t block_count)
{                                                                     
  rtems_rfs_write_u32 (&handle->node->block_count, block_count);      
 8018dc0:	34 02 00 18 	mvi r2,24                                      
 8018dc4:	29 8f 00 0c 	lw r15,(r12+12)                                
 8018dc8:	b9 a0 08 00 	mv r1,r13                                      
 8018dcc:	fb ff a1 ec 	calli 800157c <__lshrsi3>                      
 8018dd0:	31 e1 00 0c 	sb (r15+12),r1                                 
 8018dd4:	29 8f 00 0c 	lw r15,(r12+12)                                
 8018dd8:	b9 a0 08 00 	mv r1,r13                                      
 8018ddc:	34 02 00 10 	mvi r2,16                                      
 8018de0:	fb ff a1 e7 	calli 800157c <__lshrsi3>                      
 8018de4:	31 e1 00 0d 	sb (r15+13),r1                                 
 8018de8:	29 8f 00 0c 	lw r15,(r12+12)                                
 8018dec:	b9 a0 08 00 	mv r1,r13                                      
 8018df0:	34 02 00 08 	mvi r2,8                                       
 8018df4:	fb ff a1 e2 	calli 800157c <__lshrsi3>                      
 8018df8:	31 e1 00 0e 	sb (r15+14),r1                                 
 8018dfc:	29 81 00 0c 	lw r1,(r12+12)                                 
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_block_offset (rtems_rfs_inode_handle* handle,     
                                  uint16_t                block_offset)
{                                                                     
  rtems_rfs_write_u16 (&handle->node->block_offset, block_offset);    
 8018e00:	34 02 00 08 	mvi r2,8                                       
 * @param block_count The block count.                                
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_block_count (rtems_rfs_inode_handle* handle, uint32_t block_count)
{                                                                     
  rtems_rfs_write_u32 (&handle->node->block_count, block_count);      
 8018e04:	30 2d 00 0f 	sb (r1+15),r13                                 
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
 8018e08:	31 8e 00 10 	sb (r12+16),r14                                
      rtems_rfs_inode_set_block_offset (map->inode, map->size.offset);
 8018e0c:	29 6c 00 04 	lw r12,(r11+4)                                 
 8018e10:	2d 6d 00 0e 	lhu r13,(r11+14)                               
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_block_offset (rtems_rfs_inode_handle* handle,     
                                  uint16_t                block_offset)
{                                                                     
  rtems_rfs_write_u16 (&handle->node->block_offset, block_offset);    
 8018e14:	29 8f 00 0c 	lw r15,(r12+12)                                
 8018e18:	b9 a0 08 00 	mv r1,r13                                      
 8018e1c:	fb ff a1 d8 	calli 800157c <__lshrsi3>                      
 8018e20:	31 e1 00 0a 	sb (r15+10),r1                                 
 8018e24:	29 81 00 0c 	lw r1,(r12+12)                                 
 * @param block_count The last map block number.                      
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_last_map_block (rtems_rfs_inode_handle* handle, uint32_t last_map_block)
{                                                                     
  rtems_rfs_write_u32 (&handle->node->last_map_block, last_map_block);
 8018e28:	34 02 00 18 	mvi r2,24                                      
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_block_offset (rtems_rfs_inode_handle* handle,     
                                  uint16_t                block_offset)
{                                                                     
  rtems_rfs_write_u16 (&handle->node->block_offset, block_offset);    
 8018e2c:	30 2d 00 0b 	sb (r1+11),r13                                 
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
 8018e30:	31 8e 00 10 	sb (r12+16),r14                                
      rtems_rfs_inode_set_last_map_block (map->inode, map->last_map_block);
 8018e34:	29 6c 00 04 	lw r12,(r11+4)                                 
 8018e38:	29 6d 00 1c 	lw r13,(r11+28)                                
 * @param block_count The last map block number.                      
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_last_map_block (rtems_rfs_inode_handle* handle, uint32_t last_map_block)
{                                                                     
  rtems_rfs_write_u32 (&handle->node->last_map_block, last_map_block);
 8018e3c:	29 8f 00 0c 	lw r15,(r12+12)                                
 8018e40:	b9 a0 08 00 	mv r1,r13                                      
 8018e44:	fb ff a1 ce 	calli 800157c <__lshrsi3>                      
 8018e48:	31 e1 00 30 	sb (r15+48),r1                                 
 8018e4c:	29 8f 00 0c 	lw r15,(r12+12)                                
 8018e50:	b9 a0 08 00 	mv r1,r13                                      
 8018e54:	34 02 00 10 	mvi r2,16                                      
 8018e58:	fb ff a1 c9 	calli 800157c <__lshrsi3>                      
 8018e5c:	31 e1 00 31 	sb (r15+49),r1                                 
 8018e60:	29 8f 00 0c 	lw r15,(r12+12)                                
 8018e64:	b9 a0 08 00 	mv r1,r13                                      
 8018e68:	34 02 00 08 	mvi r2,8                                       
 8018e6c:	fb ff a1 c4 	calli 800157c <__lshrsi3>                      
 8018e70:	31 e1 00 32 	sb (r15+50),r1                                 
 8018e74:	29 81 00 0c 	lw r1,(r12+12)                                 
 * @param block_count The last data block number.                     
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_last_data_block (rtems_rfs_inode_handle* handle, uint32_t last_data_block)
{                                                                     
  rtems_rfs_write_u32 (&handle->node->last_data_block, last_data_block);
 8018e78:	34 02 00 18 	mvi r2,24                                      
 * @param block_count The last map block number.                      
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_last_map_block (rtems_rfs_inode_handle* handle, uint32_t last_map_block)
{                                                                     
  rtems_rfs_write_u32 (&handle->node->last_map_block, last_map_block);
 8018e7c:	30 2d 00 33 	sb (r1+51),r13                                 
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
 8018e80:	31 8e 00 10 	sb (r12+16),r14                                
      rtems_rfs_inode_set_last_data_block (map->inode, map->last_data_block);
 8018e84:	29 6c 00 04 	lw r12,(r11+4)                                 
 8018e88:	29 6d 00 20 	lw r13,(r11+32)                                
 * @param block_count The last data block number.                     
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_last_data_block (rtems_rfs_inode_handle* handle, uint32_t last_data_block)
{                                                                     
  rtems_rfs_write_u32 (&handle->node->last_data_block, last_data_block);
 8018e8c:	29 8f 00 0c 	lw r15,(r12+12)                                
 8018e90:	b9 a0 08 00 	mv r1,r13                                      
 8018e94:	fb ff a1 ba 	calli 800157c <__lshrsi3>                      
 8018e98:	31 e1 00 34 	sb (r15+52),r1                                 
 8018e9c:	29 8f 00 0c 	lw r15,(r12+12)                                
 8018ea0:	34 02 00 10 	mvi r2,16                                      
 8018ea4:	b9 a0 08 00 	mv r1,r13                                      
 8018ea8:	fb ff a1 b5 	calli 800157c <__lshrsi3>                      
 8018eac:	31 e1 00 35 	sb (r15+53),r1                                 
 8018eb0:	29 8f 00 0c 	lw r15,(r12+12)                                
 8018eb4:	34 02 00 08 	mvi r2,8                                       
 8018eb8:	b9 a0 08 00 	mv r1,r13                                      
 8018ebc:	fb ff a1 b0 	calli 800157c <__lshrsi3>                      
 8018ec0:	31 e1 00 36 	sb (r15+54),r1                                 
 8018ec4:	29 81 00 0c 	lw r1,(r12+12)                                 
                                                                      
      brc = rtems_rfs_inode_unload (fs, map->inode, true);            
 8018ec8:	34 03 00 01 	mvi r3,1                                       
 8018ecc:	30 2d 00 37 	sb (r1+55),r13                                 
 8018ed0:	29 62 00 04 	lw r2,(r11+4)                                  
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
 8018ed4:	31 8e 00 10 	sb (r12+16),r14                                
 8018ed8:	ba 00 08 00 	mv r1,r16                                      
 8018edc:	fb ff d7 bf 	calli 800edd8 <rtems_rfs_inode_unload>         
 8018ee0:	b8 20 60 00 	mv r12,r1                                      
 8018ee4:	34 02 00 1f 	mvi r2,31                                      
 8018ee8:	a4 20 08 00 	not r1,r1                                      
 8018eec:	f8 00 67 c9 	calli 8032e10 <__ashrsi3>                      
 8018ef0:	a1 81 60 00 	and r12,r12,r1                                 
      if (brc > 0)                                                    
        rc = brc;                                                     
                                                                      
      map->dirty = false;                                             
 8018ef4:	31 60 00 00 	sb (r11+0),r0                                  
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 8018ef8:	35 62 00 38 	addi r2,r11,56                                 
    }                                                                 
  }                                                                   
                                                                      
  map->inode = NULL;                                                  
 8018efc:	59 60 00 04 	sw (r11+4),r0                                  
 8018f00:	ba 00 08 00 	mv r1,r16                                      
 8018f04:	f8 00 03 4f 	calli 8019c40 <rtems_rfs_buffer_handle_release>
 8018f08:	ba 00 08 00 	mv r1,r16                                      
  handle->dirty = false;                                              
 8018f0c:	31 60 00 38 	sb (r11+56),r0                                 
  handle->bnum  = 0;                                                  
 8018f10:	59 60 00 3c 	sw (r11+60),r0                                 
  handle->buffer = NULL;                                              
 8018f14:	59 60 00 40 	sw (r11+64),r0                                 
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 8018f18:	35 62 00 44 	addi r2,r11,68                                 
 8018f1c:	f8 00 03 49 	calli 8019c40 <rtems_rfs_buffer_handle_release>
    rc = brc;                                                         
  brc = rtems_rfs_buffer_handle_close (fs, &map->doubly_buffer);      
  if ((brc > 0) && (rc == 0))                                         
    rc = brc;                                                         
  return rc;                                                          
}                                                                     
 8018f20:	b9 80 08 00 	mv r1,r12                                      
  handle->dirty = false;                                              
 8018f24:	31 60 00 44 	sb (r11+68),r0                                 
  handle->bnum  = 0;                                                  
 8018f28:	59 60 00 48 	sw (r11+72),r0                                 
  handle->buffer = NULL;                                              
 8018f2c:	59 60 00 4c 	sw (r11+76),r0                                 
 8018f30:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8018f34:	2b 8b 00 28 	lw r11,(sp+40)                                 
 8018f38:	2b 8c 00 24 	lw r12,(sp+36)                                 
 8018f3c:	2b 8d 00 20 	lw r13,(sp+32)                                 
 8018f40:	2b 8e 00 1c 	lw r14,(sp+28)                                 
 8018f44:	2b 8f 00 18 	lw r15,(sp+24)                                 
 8018f48:	2b 90 00 14 	lw r16,(sp+20)                                 
 8018f4c:	2b 91 00 10 	lw r17,(sp+16)                                 
 8018f50:	2b 92 00 0c 	lw r18,(sp+12)                                 
 8018f54:	2b 93 00 08 	lw r19,(sp+8)                                  
 8018f58:	37 9c 00 28 	addi sp,sp,40                                  
 8018f5c:	c3 a0 00 00 	ret                                            
                                                                      

08018f60 <rtems_rfs_block_map_find>: int rtems_rfs_block_map_find (rtems_rfs_file_system* fs, rtems_rfs_block_map* map, rtems_rfs_block_pos* bpos, rtems_rfs_block_no* block) {
 8018f60:	37 9c ff d4 	addi sp,sp,-44                                 
 8018f64:	5b 8b 00 28 	sw (sp+40),r11                                 
 8018f68:	5b 8c 00 24 	sw (sp+36),r12                                 
 8018f6c:	5b 8d 00 20 	sw (sp+32),r13                                 
 8018f70:	5b 8e 00 1c 	sw (sp+28),r14                                 
 8018f74:	5b 8f 00 18 	sw (sp+24),r15                                 
 8018f78:	5b 90 00 14 	sw (sp+20),r16                                 
 8018f7c:	5b 91 00 10 	sw (sp+16),r17                                 
 8018f80:	5b 92 00 0c 	sw (sp+12),r18                                 
 8018f84:	5b 93 00 08 	sw (sp+8),r19                                  
 8018f88:	5b 9d 00 04 	sw (sp+4),ra                                   
  int rc = 0;                                                         
                                                                      
  *block = 0;                                                         
 8018f8c:	58 80 00 00 	sw (r4+0),r0                                   
                                                                      
  /*                                                                  
   * Range checking here makes the remaining logic simpler.           
   */                                                                 
  if (rtems_rfs_block_pos_block_past_end (bpos, &map->size))          
 8018f90:	28 6f 00 00 	lw r15,(r3+0)                                  
int                                                                   
rtems_rfs_block_map_find (rtems_rfs_file_system* fs,                  
                          rtems_rfs_block_map*   map,                 
                          rtems_rfs_block_pos*   bpos,                
                          rtems_rfs_block_no*    block)               
{                                                                     
 8018f94:	b8 20 60 00 	mv r12,r1                                      
 8018f98:	b8 40 58 00 	mv r11,r2                                      
 8018f9c:	b8 60 70 00 	mv r14,r3                                      
 8018fa0:	b8 80 68 00 	mv r13,r4                                      
  *block = 0;                                                         
                                                                      
  /*                                                                  
   * Range checking here makes the remaining logic simpler.           
   */                                                                 
  if (rtems_rfs_block_pos_block_past_end (bpos, &map->size))          
 8018fa4:	45 e0 00 04 	be r15,r0,8018fb4 <rtems_rfs_block_map_find+0x54>
 8018fa8:	28 41 00 08 	lw r1,(r2+8)                                   
    return ENXIO;                                                     
 8018fac:	34 06 00 06 	mvi r6,6                                       
  *block = 0;                                                         
                                                                      
  /*                                                                  
   * Range checking here makes the remaining logic simpler.           
   */                                                                 
  if (rtems_rfs_block_pos_block_past_end (bpos, &map->size))          
 8018fb0:	44 20 00 4e 	be r1,r0,80190e8 <rtems_rfs_block_map_find+0x188><== NEVER TAKEN
 8018fb4:	29 71 00 08 	lw r17,(r11+8)                                 
    return ENXIO;                                                     
 8018fb8:	34 06 00 06 	mvi r6,6                                       
  *block = 0;                                                         
                                                                      
  /*                                                                  
   * Range checking here makes the remaining logic simpler.           
   */                                                                 
  if (rtems_rfs_block_pos_block_past_end (bpos, &map->size))          
 8018fbc:	51 f1 00 4b 	bgeu r15,r17,80190e8 <rtems_rfs_block_map_find+0x188>
    return ENXIO;                                                     
                                                                      
  /*                                                                  
   * If the block position is the same and we have found the block just return it.
   */                                                                 
  if ((bpos->bno == map->bpos.bno) && (map->bpos.block != 0))         
 8018fc0:	29 61 00 10 	lw r1,(r11+16)                                 
 8018fc4:	5d e1 00 03 	bne r15,r1,8018fd0 <rtems_rfs_block_map_find+0x70>
 8018fc8:	29 61 00 18 	lw r1,(r11+24)                                 
 8018fcc:	5c 20 00 08 	bne r1,r0,8018fec <rtems_rfs_block_map_find+0x8c>
    /*                                                                
     * Determine the type of access we need to perform. If the number of blocks
     * is less than or equal to the number of slots in the inode the blocks are
     * directly accessed.                                             
     */                                                               
    if (map->size.count <= RTEMS_RFS_INODE_BLOCKS)                    
 8018fd0:	34 01 00 05 	mvi r1,5                                       
 8018fd4:	56 21 00 08 	bgu r17,r1,8018ff4 <rtems_rfs_block_map_find+0x94>
    {                                                                 
      *block = map->blocks[bpos->bno];                                
 8018fd8:	35 e1 00 08 	addi r1,r15,8                                  
 8018fdc:	34 02 00 02 	mvi r2,2                                       
 8018fe0:	fb ff a1 40 	calli 80014e0 <__ashlsi3>                      
 8018fe4:	b5 61 08 00 	add r1,r11,r1                                  
 8018fe8:	28 21 00 04 	lw r1,(r1+4)                                   
 8018fec:	59 a1 00 00 	sw (r13+0),r1                                  
 8018ff0:	e0 00 00 35 	bi 80190c4 <rtems_rfs_block_map_find+0x164>    
       * The map is either singly or doubly indirect.                 
       */                                                             
      rtems_rfs_block_no direct;                                      
      rtems_rfs_block_no singly;                                      
                                                                      
      direct = bpos->bno % fs->blocks_per_block;                      
 8018ff4:	29 90 00 34 	lw r16,(r12+52)                                
 8018ff8:	b9 e0 08 00 	mv r1,r15                                      
 8018ffc:	ba 00 10 00 	mv r2,r16                                      
 8019000:	f8 00 68 04 	calli 8033010 <__umodsi3>                      
      singly = bpos->bno / fs->blocks_per_block;                      
 8019004:	ba 00 10 00 	mv r2,r16                                      
       * The map is either singly or doubly indirect.                 
       */                                                             
      rtems_rfs_block_no direct;                                      
      rtems_rfs_block_no singly;                                      
                                                                      
      direct = bpos->bno % fs->blocks_per_block;                      
 8019008:	b8 20 90 00 	mv r18,r1                                      
      singly = bpos->bno / fs->blocks_per_block;                      
 801900c:	b9 e0 08 00 	mv r1,r15                                      
 8019010:	fb ff a1 8e 	calli 8001648 <__udivsi3>                      
                                                                      
      if (map->size.count <= fs->block_map_singly_blocks)             
 8019014:	29 82 00 38 	lw r2,(r12+56)                                 
       */                                                             
      rtems_rfs_block_no direct;                                      
      rtems_rfs_block_no singly;                                      
                                                                      
      direct = bpos->bno % fs->blocks_per_block;                      
      singly = bpos->bno / fs->blocks_per_block;                      
 8019018:	5b 81 00 2c 	sw (sp+44),r1                                  
 801901c:	b8 20 78 00 	mv r15,r1                                      
                                                                      
      if (map->size.count <= fs->block_map_singly_blocks)             
 8019020:	56 22 00 0a 	bgu r17,r2,8019048 <rtems_rfs_block_map_find+0xe8><== NEVER TAKEN
      {                                                               
        /*                                                            
         * This is a single indirect table of blocks anchored off a slot in the
         * inode.                                                     
         */                                                           
        rc = rtems_rfs_block_find_indirect (fs,                       
 8019024:	34 02 00 02 	mvi r2,2                                       
 8019028:	34 21 00 08 	addi r1,r1,8                                   
 801902c:	fb ff a1 2d 	calli 80014e0 <__ashlsi3>                      
 8019030:	b5 61 18 00 	add r3,r11,r1                                  
 8019034:	35 70 00 38 	addi r16,r11,56                                
 8019038:	b9 80 08 00 	mv r1,r12                                      
 801903c:	ba 00 10 00 	mv r2,r16                                      
 8019040:	28 63 00 04 	lw r3,(r3+4)                                   
 8019044:	e0 00 00 1b 	bi 80190b0 <rtems_rfs_block_map_find+0x150>    
         * The map is doubly indirect.                                
         */                                                           
        rtems_rfs_block_no doubly;                                    
                                                                      
        doubly  = singly / fs->blocks_per_block;                      
        singly %= fs->blocks_per_block;                               
 8019048:	ba 00 10 00 	mv r2,r16                                      <== NOT EXECUTED
 801904c:	f8 00 67 f1 	calli 8033010 <__umodsi3>                      <== NOT EXECUTED
 8019050:	b8 20 98 00 	mv r19,r1                                      <== NOT EXECUTED
 8019054:	5b 81 00 2c 	sw (sp+44),r1                                  <== NOT EXECUTED
                                                                      
        if (map->size.count < fs->block_map_doubly_blocks)            
 8019058:	29 81 00 3c 	lw r1,(r12+60)                                 <== NOT EXECUTED
        {                                                             
          /*                                                          
           * This should never happen. Here so Joel can remove once his coverage
           * testing gets to the file systems.                        
           */                                                         
          rc = ENXIO;                                                 
 801905c:	34 06 00 06 	mvi r6,6                                       <== NOT EXECUTED
        rtems_rfs_block_no doubly;                                    
                                                                      
        doubly  = singly / fs->blocks_per_block;                      
        singly %= fs->blocks_per_block;                               
                                                                      
        if (map->size.count < fs->block_map_doubly_blocks)            
 8019060:	52 21 00 22 	bgeu r17,r1,80190e8 <rtems_rfs_block_map_find+0x188><== NOT EXECUTED
        /*                                                            
         * The map is doubly indirect.                                
         */                                                           
        rtems_rfs_block_no doubly;                                    
                                                                      
        doubly  = singly / fs->blocks_per_block;                      
 8019064:	ba 00 10 00 	mv r2,r16                                      <== NOT EXECUTED
 8019068:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
 801906c:	fb ff a1 77 	calli 8001648 <__udivsi3>                      <== NOT EXECUTED
        singly %= fs->blocks_per_block;                               
                                                                      
        if (map->size.count < fs->block_map_doubly_blocks)            
        {                                                             
          rc = rtems_rfs_block_find_indirect (fs,                     
 8019070:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
 8019074:	34 21 00 08 	addi r1,r1,8                                   <== NOT EXECUTED
 8019078:	fb ff a1 1a 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 801907c:	b5 61 18 00 	add r3,r11,r1                                  <== NOT EXECUTED
 8019080:	28 63 00 04 	lw r3,(r3+4)                                   <== NOT EXECUTED
 8019084:	35 71 00 44 	addi r17,r11,68                                <== NOT EXECUTED
 8019088:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801908c:	ba 20 10 00 	mv r2,r17                                      <== NOT EXECUTED
 8019090:	ba 60 20 00 	mv r4,r19                                      <== NOT EXECUTED
 8019094:	37 85 00 2c 	addi r5,sp,44                                  <== NOT EXECUTED
 8019098:	fb ff fd 38 	calli 8018578 <rtems_rfs_block_find_indirect>  <== NOT EXECUTED
 801909c:	b8 20 30 00 	mv r6,r1                                       <== NOT EXECUTED
                                              &map->doubly_buffer,    
                                              map->blocks[doubly],    
                                              singly, &singly);       
          if (rc == 0)                                                
 80190a0:	5c 20 00 12 	bne r1,r0,80190e8 <rtems_rfs_block_map_find+0x188><== NOT EXECUTED
          {                                                           
            rc = rtems_rfs_block_find_indirect (fs,                   
 80190a4:	2b 83 00 2c 	lw r3,(sp+44)                                  <== NOT EXECUTED
 80190a8:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 80190ac:	35 62 00 38 	addi r2,r11,56                                 <== NOT EXECUTED
 80190b0:	ba 40 20 00 	mv r4,r18                                      
 80190b4:	b9 a0 28 00 	mv r5,r13                                      
 80190b8:	fb ff fd 30 	calli 8018578 <rtems_rfs_block_find_indirect>  
 80190bc:	b8 20 30 00 	mv r6,r1                                       
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if (rc == 0)                                                        
 80190c0:	5c 20 00 0a 	bne r1,r0,80190e8 <rtems_rfs_block_map_find+0x188><== NEVER TAKEN
  {                                                                   
    rtems_rfs_block_copy_bpos (&map->bpos, bpos);                     
 80190c4:	29 c1 00 00 	lw r1,(r14+0)                                  
    map->bpos.block = *block;                                         
 80190c8:	34 06 00 00 	mvi r6,0                                       
    }                                                                 
  }                                                                   
                                                                      
  if (rc == 0)                                                        
  {                                                                   
    rtems_rfs_block_copy_bpos (&map->bpos, bpos);                     
 80190cc:	59 61 00 10 	sw (r11+16),r1                                 
 80190d0:	29 c1 00 04 	lw r1,(r14+4)                                  
 80190d4:	59 61 00 14 	sw (r11+20),r1                                 
 80190d8:	29 c1 00 08 	lw r1,(r14+8)                                  
 80190dc:	59 61 00 18 	sw (r11+24),r1                                 
    map->bpos.block = *block;                                         
 80190e0:	29 a1 00 00 	lw r1,(r13+0)                                  
 80190e4:	59 61 00 18 	sw (r11+24),r1                                 
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
 80190e8:	b8 c0 08 00 	mv r1,r6                                       
 80190ec:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80190f0:	2b 8b 00 28 	lw r11,(sp+40)                                 
 80190f4:	2b 8c 00 24 	lw r12,(sp+36)                                 
 80190f8:	2b 8d 00 20 	lw r13,(sp+32)                                 
 80190fc:	2b 8e 00 1c 	lw r14,(sp+28)                                 
 8019100:	2b 8f 00 18 	lw r15,(sp+24)                                 
 8019104:	2b 90 00 14 	lw r16,(sp+20)                                 
 8019108:	2b 91 00 10 	lw r17,(sp+16)                                 
 801910c:	2b 92 00 0c 	lw r18,(sp+12)                                 
 8019110:	2b 93 00 08 	lw r19,(sp+8)                                  
 8019114:	37 9c 00 2c 	addi sp,sp,44                                  
 8019118:	c3 a0 00 00 	ret                                            
                                                                      

08019224 <rtems_rfs_block_map_grow>: int rtems_rfs_block_map_grow (rtems_rfs_file_system* fs, rtems_rfs_block_map* map, size_t blocks, rtems_rfs_block_no* new_block) {
 8019224:	37 9c ff b8 	addi sp,sp,-72                                 
 8019228:	5b 8b 00 40 	sw (sp+64),r11                                 
 801922c:	5b 8c 00 3c 	sw (sp+60),r12                                 
 8019230:	5b 8d 00 38 	sw (sp+56),r13                                 
 8019234:	5b 8e 00 34 	sw (sp+52),r14                                 
 8019238:	5b 8f 00 30 	sw (sp+48),r15                                 
 801923c:	5b 90 00 2c 	sw (sp+44),r16                                 
 8019240:	5b 91 00 28 	sw (sp+40),r17                                 
 8019244:	5b 92 00 24 	sw (sp+36),r18                                 
 8019248:	5b 93 00 20 	sw (sp+32),r19                                 
 801924c:	5b 94 00 1c 	sw (sp+28),r20                                 
 8019250:	5b 95 00 18 	sw (sp+24),r21                                 
 8019254:	5b 96 00 14 	sw (sp+20),r22                                 
 8019258:	5b 97 00 10 	sw (sp+16),r23                                 
 801925c:	5b 98 00 0c 	sw (sp+12),r24                                 
 8019260:	5b 99 00 08 	sw (sp+8),r25                                  
 8019264:	5b 9d 00 04 	sw (sp+4),ra                                   
 8019268:	b8 20 60 00 	mv r12,r1                                      
 801926c:	b8 40 58 00 	mv r11,r2                                      
  int b;                                                              
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_GROW))               
 8019270:	34 01 00 00 	mvi r1,0                                       
 8019274:	34 02 20 00 	mvi r2,8192                                    
int                                                                   
rtems_rfs_block_map_grow (rtems_rfs_file_system* fs,                  
                          rtems_rfs_block_map*   map,                 
                          size_t                 blocks,              
                          rtems_rfs_block_no*    new_block)           
{                                                                     
 8019278:	b8 60 b0 00 	mv r22,r3                                      
 801927c:	b8 80 c8 00 	mv r25,r4                                      
  int b;                                                              
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_GROW))               
 8019280:	fb ff de 49 	calli 8010ba4 <rtems_rfs_trace>                
 8019284:	44 20 00 06 	be r1,r0,801929c <rtems_rfs_block_map_grow+0x78><== ALWAYS TAKEN
    printf ("rtems-rfs: block-map-grow: entry: blocks=%zd count=%" PRIu32 "\n",
 8019288:	29 63 00 08 	lw r3,(r11+8)                                  <== NOT EXECUTED
 801928c:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8019290:	38 21 62 a0 	ori r1,r1,0x62a0                               <== NOT EXECUTED
 8019294:	ba c0 10 00 	mv r2,r22                                      <== NOT EXECUTED
 8019298:	f8 00 20 3a 	calli 8021380 <printf>                         <== NOT EXECUTED
            blocks, map->size.count);                                 
                                                                      
  if ((map->size.count + blocks) >= rtems_rfs_fs_max_block_map_blocks (fs))
 801929c:	29 61 00 08 	lw r1,(r11+8)                                  
 80192a0:	29 82 00 3c 	lw r2,(r12+60)                                 
    return EFBIG;                                                     
 80192a4:	34 0d 00 1b 	mvi r13,27                                     
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_GROW))               
    printf ("rtems-rfs: block-map-grow: entry: blocks=%zd count=%" PRIu32 "\n",
            blocks, map->size.count);                                 
                                                                      
  if ((map->size.count + blocks) >= rtems_rfs_fs_max_block_map_blocks (fs))
 80192a8:	b6 c1 08 00 	add r1,r22,r1                                  
 80192ac:	50 22 00 e7 	bgeu r1,r2,8019648 <rtems_rfs_block_map_grow+0x424><== NEVER TAKEN
 80192b0:	34 10 00 00 	mvi r16,0                                      
    rc = rtems_rfs_group_bitmap_alloc (fs, map->last_data_block,      
                                       false, &block);                
    if (rc > 0)                                                       
      return rc;                                                      
                                                                      
    if (map->size.count < RTEMS_RFS_INODE_BLOCKS)                     
 80192b4:	34 18 00 04 	mvi r24,4                                      
            return rc;                                                
          }                                                           
        }                                                             
      }                                                               
                                                                      
      rtems_rfs_block_set_number (&map->singly_buffer, direct, block);
 80192b8:	34 15 00 01 	mvi r21,1                                      
                                      singly,                         
                                      singly_block);                  
        }                                                             
        else                                                          
        {                                                             
          rc = rtems_rfs_buffer_handle_request (fs,                   
 80192bc:	35 74 00 44 	addi r20,r11,68                                
          }                                                           
                                                                      
          singly_block = rtems_rfs_block_get_number (&map->doubly_buffer,
                                                     singly);         
                                                                      
          rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
 80192c0:	35 6f 00 38 	addi r15,r11,56                                
         * doubly indirect block as well. Both always occur when direct is 0
         * and the doubly indirect block when singly is 0.            
         */                                                           
        if (direct == 0)                                              
        {                                                             
          rc = rtems_rfs_block_map_indirect_alloc (fs, map,           
 80192c4:	37 97 00 44 	addi r23,sp,68                                 
 80192c8:	e0 00 00 de 	bi 8019640 <rtems_rfs_block_map_grow+0x41c>    
    /*                                                                
     * Allocate the block. If an indirect block is needed and cannot be
     * allocated free this block.                                     
     */                                                               
                                                                      
    rc = rtems_rfs_group_bitmap_alloc (fs, map->last_data_block,      
 80192cc:	29 62 00 20 	lw r2,(r11+32)                                 
 80192d0:	b9 80 08 00 	mv r1,r12                                      
 80192d4:	34 03 00 00 	mvi r3,0                                       
 80192d8:	37 84 00 48 	addi r4,sp,72                                  
 80192dc:	fb ff d4 ef 	calli 800e698 <rtems_rfs_group_bitmap_alloc>   
 80192e0:	b8 20 68 00 	mv r13,r1                                      
                                       false, &block);                
    if (rc > 0)                                                       
 80192e4:	48 20 00 d9 	bg r1,r0,8019648 <rtems_rfs_block_map_grow+0x424>
      return rc;                                                      
                                                                      
    if (map->size.count < RTEMS_RFS_INODE_BLOCKS)                     
 80192e8:	29 6d 00 08 	lw r13,(r11+8)                                 
 80192ec:	55 b8 00 08 	bgu r13,r24,801930c <rtems_rfs_block_map_grow+0xe8>
      map->blocks[map->size.count] = block;                           
 80192f0:	34 02 00 02 	mvi r2,2                                       
 80192f4:	35 a1 00 08 	addi r1,r13,8                                  
 80192f8:	fb ff a0 7a 	calli 80014e0 <__ashlsi3>                      
 80192fc:	2b 82 00 48 	lw r2,(sp+72)                                  
 8019300:	b5 61 08 00 	add r1,r11,r1                                  
 8019304:	58 22 00 04 	sw (r1+4),r2                                   
 8019308:	e0 00 00 c3 	bi 8019614 <rtems_rfs_block_map_grow+0x3f0>    
       * Single indirect access is occuring. It could still be doubly indirect.
       */                                                             
      rtems_rfs_block_no direct;                                      
      rtems_rfs_block_no singly;                                      
                                                                      
      direct = map->size.count % fs->blocks_per_block;                
 801930c:	29 91 00 34 	lw r17,(r12+52)                                
 8019310:	b9 a0 08 00 	mv r1,r13                                      
 8019314:	ba 20 10 00 	mv r2,r17                                      
 8019318:	f8 00 67 3e 	calli 8033010 <__umodsi3>                      
      singly = map->size.count / fs->blocks_per_block;                
 801931c:	ba 20 10 00 	mv r2,r17                                      
       * Single indirect access is occuring. It could still be doubly indirect.
       */                                                             
      rtems_rfs_block_no direct;                                      
      rtems_rfs_block_no singly;                                      
                                                                      
      direct = map->size.count % fs->blocks_per_block;                
 8019320:	b8 20 70 00 	mv r14,r1                                      
      singly = map->size.count / fs->blocks_per_block;                
 8019324:	b9 a0 08 00 	mv r1,r13                                      
 8019328:	fb ff a0 c8 	calli 8001648 <__udivsi3>                      
                                                                      
      if (map->size.count < fs->block_map_singly_blocks)              
 801932c:	29 82 00 38 	lw r2,(r12+56)                                 
       */                                                             
      rtems_rfs_block_no direct;                                      
      rtems_rfs_block_no singly;                                      
                                                                      
      direct = map->size.count % fs->blocks_per_block;                
      singly = map->size.count / fs->blocks_per_block;                
 8019330:	b8 20 98 00 	mv r19,r1                                      
                                                                      
      if (map->size.count < fs->block_map_singly_blocks)              
 8019334:	51 a2 00 19 	bgeu r13,r2,8019398 <rtems_rfs_block_map_grow+0x174><== NEVER TAKEN
         * Singly indirect tables are being used. Allocate a new block for a
         * mapping table if direct is 0 or we are moving up (upping). If upping
         * move the direct blocks into the table and if not this is the first
         * entry of a new block.                                      
         */                                                           
        if ((direct == 0) ||                                          
 8019338:	45 c0 00 05 	be r14,r0,801934c <rtems_rfs_block_map_grow+0x128><== NEVER TAKEN
            ((singly == 0) && (direct == RTEMS_RFS_INODE_BLOCKS)))    
 801933c:	65 c2 00 05 	cmpei r2,r14,5                                 
 8019340:	64 21 00 00 	cmpei r1,r1,0                                  
         * Singly indirect tables are being used. Allocate a new block for a
         * mapping table if direct is 0 or we are moving up (upping). If upping
         * move the direct blocks into the table and if not this is the first
         * entry of a new block.                                      
         */                                                           
        if ((direct == 0) ||                                          
 8019344:	a0 41 08 00 	and r1,r2,r1                                   
 8019348:	44 20 00 0c 	be r1,r0,8019378 <rtems_rfs_block_map_grow+0x154>
          /*                                                          
           * Upping is when we move from direct to singly indirect.   
           */                                                         
          bool upping;                                                
          upping = map->size.count == RTEMS_RFS_INODE_BLOCKS;         
          rc = rtems_rfs_block_map_indirect_alloc (fs, map,           
 801934c:	36 61 00 08 	addi r1,r19,8                                  
 8019350:	34 02 00 02 	mvi r2,2                                       
 8019354:	fb ff a0 63 	calli 80014e0 <__ashlsi3>                      
 8019358:	b5 61 28 00 	add r5,r11,r1                                  
 801935c:	34 a4 00 04 	addi r4,r5,4                                   
 8019360:	65 a5 00 05 	cmpei r5,r13,5                                 
 8019364:	b9 80 08 00 	mv r1,r12                                      
 8019368:	b9 60 10 00 	mv r2,r11                                      
 801936c:	b9 e0 18 00 	mv r3,r15                                      
 8019370:	fb ff fc c1 	calli 8018674 <rtems_rfs_block_map_indirect_alloc>
 8019374:	e0 00 00 82 	bi 801957c <rtems_rfs_block_map_grow+0x358>    
                                                   &map->blocks[singly],
                                                   upping);           
        }                                                             
        else                                                          
        {                                                             
          rc = rtems_rfs_buffer_handle_request (fs,  &map->singly_buffer,
 8019378:	34 02 00 02 	mvi r2,2                                       
 801937c:	36 61 00 08 	addi r1,r19,8                                  
 8019380:	fb ff a0 58 	calli 80014e0 <__ashlsi3>                      
 8019384:	b5 61 18 00 	add r3,r11,r1                                  
 8019388:	b9 e0 10 00 	mv r2,r15                                      
 801938c:	b9 80 08 00 	mv r1,r12                                      
 8019390:	28 63 00 04 	lw r3,(r3+4)                                   
 8019394:	e0 00 00 78 	bi 8019574 <rtems_rfs_block_map_grow+0x350>    
         * Doubly indirect tables are being used.                     
         */                                                           
        rtems_rfs_block_no doubly;                                    
        rtems_rfs_block_no singly_block;                              
                                                                      
        doubly  = singly / fs->blocks_per_block;                      
 8019398:	ba 20 10 00 	mv r2,r17                                      <== NOT EXECUTED
 801939c:	fb ff a0 ab 	calli 8001648 <__udivsi3>                      <== NOT EXECUTED
        singly %= fs->blocks_per_block;                               
 80193a0:	ba 20 10 00 	mv r2,r17                                      <== NOT EXECUTED
         * Doubly indirect tables are being used.                     
         */                                                           
        rtems_rfs_block_no doubly;                                    
        rtems_rfs_block_no singly_block;                              
                                                                      
        doubly  = singly / fs->blocks_per_block;                      
 80193a4:	b8 20 90 00 	mv r18,r1                                      <== NOT EXECUTED
        singly %= fs->blocks_per_block;                               
 80193a8:	ba 60 08 00 	mv r1,r19                                      <== NOT EXECUTED
 80193ac:	f8 00 67 19 	calli 8033010 <__umodsi3>                      <== NOT EXECUTED
 80193b0:	b8 20 88 00 	mv r17,r1                                      <== NOT EXECUTED
         * Allocate a new block for a singly indirect table if direct is 0 as
         * it is the first entry of a new block. We may also need to allocate a
         * doubly indirect block as well. Both always occur when direct is 0
         * and the doubly indirect block when singly is 0.            
         */                                                           
        if (direct == 0)                                              
 80193b4:	5d c0 00 4e 	bne r14,r0,80194ec <rtems_rfs_block_map_grow+0x2c8><== NOT EXECUTED
        {                                                             
          rc = rtems_rfs_block_map_indirect_alloc (fs, map,           
 80193b8:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 80193bc:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 80193c0:	b9 e0 18 00 	mv r3,r15                                      <== NOT EXECUTED
 80193c4:	ba e0 20 00 	mv r4,r23                                      <== NOT EXECUTED
 80193c8:	34 05 00 00 	mvi r5,0                                       <== NOT EXECUTED
 80193cc:	fb ff fc aa 	calli 8018674 <rtems_rfs_block_map_indirect_alloc><== NOT EXECUTED
 80193d0:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
                                                   &map->singly_buffer,
                                                   &singly_block,     
                                                   false);            
          if (rc > 0)                                                 
 80193d4:	4d c1 00 02 	bge r14,r1,80193dc <rtems_rfs_block_map_grow+0x1b8><== NOT EXECUTED
 80193d8:	e0 00 00 6b 	bi 8019584 <rtems_rfs_block_map_grow+0x360>    <== NOT EXECUTED
                                                                      
          /*                                                          
           * Allocate a new block for a doubly indirect table if singly is 0 as
           * it is the first entry of a new singly indirect block.    
           */                                                         
          if ((singly == 0) ||                                        
 80193dc:	46 20 00 05 	be r17,r0,80193f0 <rtems_rfs_block_map_grow+0x1cc><== NOT EXECUTED
              ((doubly == 0) && (singly == RTEMS_RFS_INODE_BLOCKS)))  
 80193e0:	66 33 00 05 	cmpei r19,r17,5                                <== NOT EXECUTED
 80193e4:	66 41 00 00 	cmpei r1,r18,0                                 <== NOT EXECUTED
                                                                      
          /*                                                          
           * Allocate a new block for a doubly indirect table if singly is 0 as
           * it is the first entry of a new singly indirect block.    
           */                                                         
          if ((singly == 0) ||                                        
 80193e8:	a2 61 98 00 	and r19,r19,r1                                 <== NOT EXECUTED
 80193ec:	46 60 00 10 	be r19,r0,801942c <rtems_rfs_block_map_grow+0x208><== NOT EXECUTED
              ((doubly == 0) && (singly == RTEMS_RFS_INODE_BLOCKS)))  
          {                                                           
            bool upping;                                              
            upping = map->size.count == fs->block_map_singly_blocks;  
            rc = rtems_rfs_block_map_indirect_alloc (fs, map,         
 80193f0:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
 80193f4:	36 41 00 08 	addi r1,r18,8                                  <== NOT EXECUTED
 80193f8:	fb ff a0 3a 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 80193fc:	29 67 00 08 	lw r7,(r11+8)                                  <== NOT EXECUTED
 8019400:	29 85 00 38 	lw r5,(r12+56)                                 <== NOT EXECUTED
 8019404:	b5 61 30 00 	add r6,r11,r1                                  <== NOT EXECUTED
 8019408:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 801940c:	e4 e5 28 00 	cmpe r5,r7,r5                                  <== NOT EXECUTED
 8019410:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8019414:	ba 80 18 00 	mv r3,r20                                      <== NOT EXECUTED
 8019418:	34 c4 00 04 	addi r4,r6,4                                   <== NOT EXECUTED
 801941c:	fb ff fc 96 	calli 8018674 <rtems_rfs_block_map_indirect_alloc><== NOT EXECUTED
 8019420:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
                                                     &map->doubly_buffer,
                                                     &map->blocks[doubly],
                                                     upping);         
            if (rc > 0)                                               
 8019424:	4c 01 00 12 	bge r0,r1,801946c <rtems_rfs_block_map_grow+0x248><== NOT EXECUTED
 8019428:	e0 00 00 0c 	bi 8019458 <rtems_rfs_block_map_grow+0x234>    <== NOT EXECUTED
              return rc;                                              
            }                                                         
          }                                                           
          else                                                        
          {                                                           
            rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
 801942c:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
 8019430:	36 41 00 08 	addi r1,r18,8                                  <== NOT EXECUTED
 8019434:	fb ff a0 2b 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 8019438:	b5 61 18 00 	add r3,r11,r1                                  <== NOT EXECUTED
 801943c:	28 63 00 04 	lw r3,(r3+4)                                   <== NOT EXECUTED
 8019440:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8019444:	ba 80 10 00 	mv r2,r20                                      <== NOT EXECUTED
 8019448:	34 04 00 01 	mvi r4,1                                       <== NOT EXECUTED
 801944c:	f8 00 02 6c 	calli 8019dfc <rtems_rfs_buffer_handle_request><== NOT EXECUTED
 8019450:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
                                                  map->blocks[doubly], true);
            if (rc > 0)                                               
 8019454:	4e 61 00 06 	bge r19,r1,801946c <rtems_rfs_block_map_grow+0x248><== NOT EXECUTED
            {                                                         
              rtems_rfs_group_bitmap_free (fs, false, singly_block);  
 8019458:	2b 83 00 44 	lw r3,(sp+68)                                  <== NOT EXECUTED
 801945c:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8019460:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 8019464:	fb ff d5 25 	calli 800e8f8 <rtems_rfs_group_bitmap_free>    <== NOT EXECUTED
 8019468:	e0 00 00 47 	bi 8019584 <rtems_rfs_block_map_grow+0x360>    <== NOT EXECUTED
              rtems_rfs_group_bitmap_free (fs, false, block);         
              return rc;                                              
            }                                                         
          }                                                           
                                                                      
          rtems_rfs_block_set_number (&map->doubly_buffer,            
 801946c:	ba 20 08 00 	mv r1,r17                                      <== NOT EXECUTED
 8019470:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
 8019474:	fb ff a0 1b 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 8019478:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
 801947c:	29 61 00 4c 	lw r1,(r11+76)                                 <== NOT EXECUTED
 8019480:	34 02 00 18 	mvi r2,24                                      <== NOT EXECUTED
 8019484:	28 31 00 1c 	lw r17,(r1+28)                                 <== NOT EXECUTED
 8019488:	2b 81 00 44 	lw r1,(sp+68)                                  <== NOT EXECUTED
 801948c:	b6 2d 88 00 	add r17,r17,r13                                <== NOT EXECUTED
 8019490:	fb ff a0 3b 	calli 800157c <__lshrsi3>                      <== NOT EXECUTED
 8019494:	32 21 00 00 	sb (r17+0),r1                                  <== NOT EXECUTED
 8019498:	29 61 00 4c 	lw r1,(r11+76)                                 <== NOT EXECUTED
 801949c:	34 02 00 10 	mvi r2,16                                      <== NOT EXECUTED
 80194a0:	28 31 00 1c 	lw r17,(r1+28)                                 <== NOT EXECUTED
 80194a4:	2b 81 00 44 	lw r1,(sp+68)                                  <== NOT EXECUTED
 80194a8:	b6 2d 88 00 	add r17,r17,r13                                <== NOT EXECUTED
 80194ac:	fb ff a0 34 	calli 800157c <__lshrsi3>                      <== NOT EXECUTED
 80194b0:	32 21 00 01 	sb (r17+1),r1                                  <== NOT EXECUTED
 80194b4:	29 61 00 4c 	lw r1,(r11+76)                                 <== NOT EXECUTED
 80194b8:	34 02 00 08 	mvi r2,8                                       <== NOT EXECUTED
 80194bc:	28 31 00 1c 	lw r17,(r1+28)                                 <== NOT EXECUTED
 80194c0:	2b 81 00 44 	lw r1,(sp+68)                                  <== NOT EXECUTED
 80194c4:	b6 2d 88 00 	add r17,r17,r13                                <== NOT EXECUTED
 80194c8:	fb ff a0 2d 	calli 800157c <__lshrsi3>                      <== NOT EXECUTED
 80194cc:	32 21 00 02 	sb (r17+2),r1                                  <== NOT EXECUTED
 80194d0:	29 61 00 4c 	lw r1,(r11+76)                                 <== NOT EXECUTED
 80194d4:	28 21 00 1c 	lw r1,(r1+28)                                  <== NOT EXECUTED
 80194d8:	b4 2d 68 00 	add r13,r1,r13                                 <== NOT EXECUTED
 80194dc:	2b 81 00 44 	lw r1,(sp+68)                                  <== NOT EXECUTED
 80194e0:	31 a1 00 03 	sb (r13+3),r1                                  <== NOT EXECUTED
 80194e4:	31 75 00 44 	sb (r11+68),r21                                <== NOT EXECUTED
 80194e8:	e0 00 00 2c 	bi 8019598 <rtems_rfs_block_map_grow+0x374>    <== NOT EXECUTED
                                      singly,                         
                                      singly_block);                  
        }                                                             
        else                                                          
        {                                                             
          rc = rtems_rfs_buffer_handle_request (fs,                   
 80194ec:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
 80194f0:	36 41 00 08 	addi r1,r18,8                                  <== NOT EXECUTED
 80194f4:	fb ff 9f fb 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 80194f8:	b5 61 18 00 	add r3,r11,r1                                  <== NOT EXECUTED
 80194fc:	28 63 00 04 	lw r3,(r3+4)                                   <== NOT EXECUTED
 8019500:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8019504:	ba 80 10 00 	mv r2,r20                                      <== NOT EXECUTED
 8019508:	34 04 00 01 	mvi r4,1                                       <== NOT EXECUTED
 801950c:	f8 00 02 3c 	calli 8019dfc <rtems_rfs_buffer_handle_request><== NOT EXECUTED
 8019510:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
                                                &map->doubly_buffer,  
                                                map->blocks[doubly],  
                                                true);                
          if (rc > 0)                                                 
 8019514:	4c 01 00 02 	bge r0,r1,801951c <rtems_rfs_block_map_grow+0x2f8><== NOT EXECUTED
 8019518:	e0 00 00 1b 	bi 8019584 <rtems_rfs_block_map_grow+0x360>    <== NOT EXECUTED
          {                                                           
            rtems_rfs_group_bitmap_free (fs, false, block);           
            return rc;                                                
          }                                                           
                                                                      
          singly_block = rtems_rfs_block_get_number (&map->doubly_buffer,
 801951c:	29 61 00 4c 	lw r1,(r11+76)                                 <== NOT EXECUTED
 8019520:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
 8019524:	28 2d 00 1c 	lw r13,(r1+28)                                 <== NOT EXECUTED
 8019528:	ba 20 08 00 	mv r1,r17                                      <== NOT EXECUTED
 801952c:	fb ff 9f ed 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 8019530:	b5 a1 68 00 	add r13,r13,r1                                 <== NOT EXECUTED
 8019534:	41 a1 00 00 	lbu r1,(r13+0)                                 <== NOT EXECUTED
 8019538:	41 b1 00 03 	lbu r17,(r13+3)                                <== NOT EXECUTED
 801953c:	34 02 00 18 	mvi r2,24                                      <== NOT EXECUTED
 8019540:	fb ff 9f e8 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 8019544:	ba 21 88 00 	or r17,r17,r1                                  <== NOT EXECUTED
 8019548:	41 a1 00 01 	lbu r1,(r13+1)                                 <== NOT EXECUTED
 801954c:	34 02 00 10 	mvi r2,16                                      <== NOT EXECUTED
 8019550:	fb ff 9f e4 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 8019554:	ba 21 88 00 	or r17,r17,r1                                  <== NOT EXECUTED
 8019558:	41 a1 00 02 	lbu r1,(r13+2)                                 <== NOT EXECUTED
 801955c:	34 02 00 08 	mvi r2,8                                       <== NOT EXECUTED
 8019560:	fb ff 9f e0 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 8019564:	ba 21 18 00 	or r3,r17,r1                                   <== NOT EXECUTED
 8019568:	5b 83 00 44 	sw (sp+68),r3                                  <== NOT EXECUTED
                                                     singly);         
                                                                      
          rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
 801956c:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8019570:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
 8019574:	34 04 00 01 	mvi r4,1                                       
 8019578:	f8 00 02 21 	calli 8019dfc <rtems_rfs_buffer_handle_request>
 801957c:	b8 20 68 00 	mv r13,r1                                      
                                                singly_block, true);  
          if (rc > 0)                                                 
 8019580:	4c 01 00 06 	bge r0,r1,8019598 <rtems_rfs_block_map_grow+0x374><== ALWAYS TAKEN
          {                                                           
            rtems_rfs_group_bitmap_free (fs, false, block);           
 8019584:	2b 83 00 48 	lw r3,(sp+72)                                  <== NOT EXECUTED
 8019588:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801958c:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 8019590:	fb ff d4 da 	calli 800e8f8 <rtems_rfs_group_bitmap_free>    <== NOT EXECUTED
            return rc;                                                
 8019594:	e0 00 00 2d 	bi 8019648 <rtems_rfs_block_map_grow+0x424>    <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      rtems_rfs_block_set_number (&map->singly_buffer, direct, block);
 8019598:	b9 c0 08 00 	mv r1,r14                                      
 801959c:	34 02 00 02 	mvi r2,2                                       
 80195a0:	fb ff 9f d0 	calli 80014e0 <__ashlsi3>                      
 80195a4:	b8 20 68 00 	mv r13,r1                                      
 80195a8:	29 61 00 40 	lw r1,(r11+64)                                 
 80195ac:	34 02 00 18 	mvi r2,24                                      
 80195b0:	28 2e 00 1c 	lw r14,(r1+28)                                 
 80195b4:	2b 81 00 48 	lw r1,(sp+72)                                  
 80195b8:	b5 cd 70 00 	add r14,r14,r13                                
 80195bc:	fb ff 9f f0 	calli 800157c <__lshrsi3>                      
 80195c0:	31 c1 00 00 	sb (r14+0),r1                                  
 80195c4:	29 61 00 40 	lw r1,(r11+64)                                 
 80195c8:	34 02 00 10 	mvi r2,16                                      
 80195cc:	28 2e 00 1c 	lw r14,(r1+28)                                 
 80195d0:	2b 81 00 48 	lw r1,(sp+72)                                  
 80195d4:	b5 cd 70 00 	add r14,r14,r13                                
 80195d8:	fb ff 9f e9 	calli 800157c <__lshrsi3>                      
 80195dc:	31 c1 00 01 	sb (r14+1),r1                                  
 80195e0:	29 61 00 40 	lw r1,(r11+64)                                 
 80195e4:	34 02 00 08 	mvi r2,8                                       
 80195e8:	28 2e 00 1c 	lw r14,(r1+28)                                 
 80195ec:	2b 81 00 48 	lw r1,(sp+72)                                  
 80195f0:	b5 cd 70 00 	add r14,r14,r13                                
 80195f4:	fb ff 9f e2 	calli 800157c <__lshrsi3>                      
 80195f8:	31 c1 00 02 	sb (r14+2),r1                                  
 80195fc:	29 61 00 40 	lw r1,(r11+64)                                 
 8019600:	28 21 00 1c 	lw r1,(r1+28)                                  
 8019604:	b4 2d 68 00 	add r13,r1,r13                                 
 8019608:	2b 81 00 48 	lw r1,(sp+72)                                  
 801960c:	31 a1 00 03 	sb (r13+3),r1                                  
 8019610:	31 75 00 38 	sb (r11+56),r21                                
    }                                                                 
                                                                      
    map->size.count++;                                                
 8019614:	29 61 00 08 	lw r1,(r11+8)                                  
    map->size.offset = 0;                                             
 8019618:	59 60 00 0c 	sw (r11+12),r0                                 
      }                                                               
                                                                      
      rtems_rfs_block_set_number (&map->singly_buffer, direct, block);
    }                                                                 
                                                                      
    map->size.count++;                                                
 801961c:	34 21 00 01 	addi r1,r1,1                                   
 8019620:	59 61 00 08 	sw (r11+8),r1                                  
    map->size.offset = 0;                                             
                                                                      
    if (b == 0)                                                       
 8019624:	5e 00 00 03 	bne r16,r0,8019630 <rtems_rfs_block_map_grow+0x40c><== NEVER TAKEN
      *new_block = block;                                             
 8019628:	2b 81 00 48 	lw r1,(sp+72)                                  
 801962c:	5b 21 00 00 	sw (r25+0),r1                                  
    map->last_data_block = block;                                     
 8019630:	2b 81 00 48 	lw r1,(sp+72)                                  
    map->dirty = true;                                                
 8019634:	31 75 00 00 	sb (r11+0),r21                                 
                                                                      
  /*                                                                  
   * Allocate a block at a time. The buffer handles hold the blocks so adding
   * this way does not thrash the cache with lots of requests.        
   */                                                                 
  for (b = 0; b < blocks; b++)                                        
 8019638:	36 10 00 01 	addi r16,r16,1                                 
    map->size.count++;                                                
    map->size.offset = 0;                                             
                                                                      
    if (b == 0)                                                       
      *new_block = block;                                             
    map->last_data_block = block;                                     
 801963c:	59 61 00 20 	sw (r11+32),r1                                 
                                                                      
  /*                                                                  
   * Allocate a block at a time. The buffer handles hold the blocks so adding
   * this way does not thrash the cache with lots of requests.        
   */                                                                 
  for (b = 0; b < blocks; b++)                                        
 8019640:	56 d0 ff 23 	bgu r22,r16,80192cc <rtems_rfs_block_map_grow+0xa8>
      *new_block = block;                                             
    map->last_data_block = block;                                     
    map->dirty = true;                                                
  }                                                                   
                                                                      
  return 0;                                                           
 8019644:	34 0d 00 00 	mvi r13,0                                      
}                                                                     
 8019648:	b9 a0 08 00 	mv r1,r13                                      
 801964c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8019650:	2b 8b 00 40 	lw r11,(sp+64)                                 
 8019654:	2b 8c 00 3c 	lw r12,(sp+60)                                 
 8019658:	2b 8d 00 38 	lw r13,(sp+56)                                 
 801965c:	2b 8e 00 34 	lw r14,(sp+52)                                 
 8019660:	2b 8f 00 30 	lw r15,(sp+48)                                 
 8019664:	2b 90 00 2c 	lw r16,(sp+44)                                 
 8019668:	2b 91 00 28 	lw r17,(sp+40)                                 
 801966c:	2b 92 00 24 	lw r18,(sp+36)                                 
 8019670:	2b 93 00 20 	lw r19,(sp+32)                                 
 8019674:	2b 94 00 1c 	lw r20,(sp+28)                                 
 8019678:	2b 95 00 18 	lw r21,(sp+24)                                 
 801967c:	2b 96 00 14 	lw r22,(sp+20)                                 
 8019680:	2b 97 00 10 	lw r23,(sp+16)                                 
 8019684:	2b 98 00 0c 	lw r24,(sp+12)                                 
 8019688:	2b 99 00 08 	lw r25,(sp+8)                                  
 801968c:	37 9c 00 48 	addi sp,sp,72                                  
 8019690:	c3 a0 00 00 	ret                                            
                                                                      

08018674 <rtems_rfs_block_map_indirect_alloc>: rtems_rfs_block_map_indirect_alloc (rtems_rfs_file_system* fs, rtems_rfs_block_map* map, rtems_rfs_buffer_handle* buffer, rtems_rfs_block_no* block, bool upping) {
 8018674:	37 9c ff d8 	addi sp,sp,-40                                 
 8018678:	5b 8b 00 24 	sw (sp+36),r11                                 
 801867c:	5b 8c 00 20 	sw (sp+32),r12                                 
 8018680:	5b 8d 00 1c 	sw (sp+28),r13                                 
 8018684:	5b 8e 00 18 	sw (sp+24),r14                                 
 8018688:	5b 8f 00 14 	sw (sp+20),r15                                 
 801868c:	5b 90 00 10 	sw (sp+16),r16                                 
 8018690:	5b 91 00 0c 	sw (sp+12),r17                                 
 8018694:	5b 92 00 08 	sw (sp+8),r18                                  
 8018698:	5b 9d 00 04 	sw (sp+4),ra                                   
 801869c:	b8 40 70 00 	mv r14,r2                                      
  int                  rc;                                            
  /*                                                                  
   * Save the new block locally because upping can have *block pointing to the
   * slots which are cleared when upping.                             
   */                                                                 
  rc = rtems_rfs_group_bitmap_alloc (fs, map->last_map_block, false, &new_block);
 80186a0:	28 42 00 1c 	lw r2,(r2+28)                                  
rtems_rfs_block_map_indirect_alloc (rtems_rfs_file_system*   fs,      
                                    rtems_rfs_block_map*     map,     
                                    rtems_rfs_buffer_handle* buffer,  
                                    rtems_rfs_block_no*      block,   
                                    bool                     upping)  
{                                                                     
 80186a4:	b8 60 58 00 	mv r11,r3                                      
 80186a8:	b8 80 78 00 	mv r15,r4                                      
  int                  rc;                                            
  /*                                                                  
   * Save the new block locally because upping can have *block pointing to the
   * slots which are cleared when upping.                             
   */                                                                 
  rc = rtems_rfs_group_bitmap_alloc (fs, map->last_map_block, false, &new_block);
 80186ac:	34 03 00 00 	mvi r3,0                                       
 80186b0:	37 84 00 28 	addi r4,sp,40                                  
rtems_rfs_block_map_indirect_alloc (rtems_rfs_file_system*   fs,      
                                    rtems_rfs_block_map*     map,     
                                    rtems_rfs_buffer_handle* buffer,  
                                    rtems_rfs_block_no*      block,   
                                    bool                     upping)  
{                                                                     
 80186b4:	b8 20 68 00 	mv r13,r1                                      
 80186b8:	b8 a0 80 00 	mv r16,r5                                      
  int                  rc;                                            
  /*                                                                  
   * Save the new block locally because upping can have *block pointing to the
   * slots which are cleared when upping.                             
   */                                                                 
  rc = rtems_rfs_group_bitmap_alloc (fs, map->last_map_block, false, &new_block);
 80186bc:	fb ff d7 f7 	calli 800e698 <rtems_rfs_group_bitmap_alloc>   
 80186c0:	b8 20 60 00 	mv r12,r1                                      
  if (rc > 0)                                                         
 80186c4:	48 20 00 47 	bg r1,r0,80187e0 <rtems_rfs_block_map_indirect_alloc+0x16c><== NEVER TAKEN
    return rc;                                                        
  rc = rtems_rfs_buffer_handle_request (fs, buffer, new_block, false);
 80186c8:	2b 83 00 28 	lw r3,(sp+40)                                  
 80186cc:	b9 a0 08 00 	mv r1,r13                                      
 80186d0:	b9 60 10 00 	mv r2,r11                                      
 80186d4:	34 04 00 00 	mvi r4,0                                       
 80186d8:	f8 00 05 c9 	calli 8019dfc <rtems_rfs_buffer_handle_request>
 80186dc:	b8 20 60 00 	mv r12,r1                                      
  if (rc > 0)                                                         
 80186e0:	4c 01 00 06 	bge r0,r1,80186f8 <rtems_rfs_block_map_indirect_alloc+0x84><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_group_bitmap_free (fs, false, new_block);               
 80186e4:	2b 83 00 28 	lw r3,(sp+40)                                  <== NOT EXECUTED
 80186e8:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 80186ec:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 80186f0:	fb ff d8 82 	calli 800e8f8 <rtems_rfs_group_bitmap_free>    <== NOT EXECUTED
    return rc;                                                        
 80186f4:	e0 00 00 3b 	bi 80187e0 <rtems_rfs_block_map_indirect_alloc+0x16c><== NOT EXECUTED
  }                                                                   
  memset (rtems_rfs_buffer_data (buffer), 0xff, rtems_rfs_fs_block_size (fs));
 80186f8:	29 61 00 08 	lw r1,(r11+8)                                  
 80186fc:	29 a3 00 08 	lw r3,(r13+8)                                  
 8018700:	34 02 00 ff 	mvi r2,255                                     
 8018704:	28 21 00 1c 	lw r1,(r1+28)                                  
 8018708:	f8 00 22 82 	calli 8021110 <memset>                         
  if (upping)                                                         
 801870c:	46 00 00 2f 	be r16,r0,80187c8 <rtems_rfs_block_map_indirect_alloc+0x154><== NEVER TAKEN
  {                                                                   
    int b;                                                            
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_GROW))             
 8018710:	34 01 00 00 	mvi r1,0                                       
 8018714:	34 02 20 00 	mvi r2,8192                                    
 8018718:	fb ff e1 23 	calli 8010ba4 <rtems_rfs_trace>                
 801871c:	44 20 00 05 	be r1,r0,8018730 <rtems_rfs_block_map_indirect_alloc+0xbc><== ALWAYS TAKEN
      printf ("rtems-rfs: block-map-grow: upping: block-count=%" PRId32 "\n",
 8018720:	29 c2 00 08 	lw r2,(r14+8)                                  <== NOT EXECUTED
 8018724:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8018728:	38 21 62 6c 	ori r1,r1,0x626c                               <== NOT EXECUTED
 801872c:	f8 00 23 15 	calli 8021380 <printf>                         <== NOT EXECUTED
 8018730:	b9 c0 68 00 	mv r13,r14                                     
rtems_rfs_block_map_indirect_alloc (rtems_rfs_file_system*   fs,      
                                    rtems_rfs_block_map*     map,     
                                    rtems_rfs_buffer_handle* buffer,  
                                    rtems_rfs_block_no*      block,   
                                    bool                     upping)  
{                                                                     
 8018734:	34 0c 00 00 	mvi r12,0                                      
    int b;                                                            
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_GROW))             
      printf ("rtems-rfs: block-map-grow: upping: block-count=%" PRId32 "\n",
              map->size.count);                                       
    for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                      
      rtems_rfs_block_set_number (buffer, b, map->blocks[b]);         
 8018738:	34 11 00 01 	mvi r17,1                                      
  {                                                                   
    int b;                                                            
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_GROW))             
      printf ("rtems-rfs: block-map-grow: upping: block-count=%" PRId32 "\n",
              map->size.count);                                       
    for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                      
 801873c:	34 10 00 14 	mvi r16,20                                     
      rtems_rfs_block_set_number (buffer, b, map->blocks[b]);         
 8018740:	29 61 00 08 	lw r1,(r11+8)                                  
 8018744:	34 02 00 18 	mvi r2,24                                      
 8018748:	28 32 00 1c 	lw r18,(r1+28)                                 
 801874c:	29 a1 00 24 	lw r1,(r13+36)                                 
 8018750:	b6 4c 90 00 	add r18,r18,r12                                
 8018754:	fb ff a3 8a 	calli 800157c <__lshrsi3>                      
 8018758:	32 41 00 00 	sb (r18+0),r1                                  
 801875c:	29 61 00 08 	lw r1,(r11+8)                                  
 8018760:	34 02 00 10 	mvi r2,16                                      
 8018764:	28 32 00 1c 	lw r18,(r1+28)                                 
 8018768:	29 a1 00 24 	lw r1,(r13+36)                                 
 801876c:	b6 4c 90 00 	add r18,r18,r12                                
 8018770:	fb ff a3 83 	calli 800157c <__lshrsi3>                      
 8018774:	32 41 00 01 	sb (r18+1),r1                                  
 8018778:	29 61 00 08 	lw r1,(r11+8)                                  
 801877c:	34 02 00 08 	mvi r2,8                                       
 8018780:	28 32 00 1c 	lw r18,(r1+28)                                 
 8018784:	29 a1 00 24 	lw r1,(r13+36)                                 
 8018788:	b6 4c 90 00 	add r18,r18,r12                                
 801878c:	fb ff a3 7c 	calli 800157c <__lshrsi3>                      
 8018790:	32 41 00 02 	sb (r18+2),r1                                  
 8018794:	29 61 00 08 	lw r1,(r11+8)                                  
 8018798:	29 a2 00 24 	lw r2,(r13+36)                                 
 801879c:	35 ad 00 04 	addi r13,r13,4                                 
 80187a0:	28 21 00 1c 	lw r1,(r1+28)                                  
 80187a4:	b4 2c 08 00 	add r1,r1,r12                                  
 80187a8:	30 22 00 03 	sb (r1+3),r2                                   
 80187ac:	31 71 00 00 	sb (r11+0),r17                                 
 80187b0:	35 8c 00 04 	addi r12,r12,4                                 
  {                                                                   
    int b;                                                            
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_GROW))             
      printf ("rtems-rfs: block-map-grow: upping: block-count=%" PRId32 "\n",
              map->size.count);                                       
    for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                      
 80187b4:	5d 90 ff e3 	bne r12,r16,8018740 <rtems_rfs_block_map_indirect_alloc+0xcc>
      rtems_rfs_block_set_number (buffer, b, map->blocks[b]);         
    memset (map->blocks, 0, sizeof (map->blocks));                    
 80187b8:	35 c1 00 24 	addi r1,r14,36                                 
 80187bc:	34 02 00 00 	mvi r2,0                                       
 80187c0:	34 03 00 14 	mvi r3,20                                      
 80187c4:	f8 00 22 53 	calli 8021110 <memset>                         
  }                                                                   
  rtems_rfs_buffer_mark_dirty (buffer);                               
 80187c8:	34 01 00 01 	mvi r1,1                                       
 80187cc:	31 61 00 00 	sb (r11+0),r1                                  
  *block = new_block;                                                 
 80187d0:	2b 81 00 28 	lw r1,(sp+40)                                  
  map->last_map_block = new_block;                                    
  return 0;                                                           
 80187d4:	34 0c 00 00 	mvi r12,0                                      
    for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                      
      rtems_rfs_block_set_number (buffer, b, map->blocks[b]);         
    memset (map->blocks, 0, sizeof (map->blocks));                    
  }                                                                   
  rtems_rfs_buffer_mark_dirty (buffer);                               
  *block = new_block;                                                 
 80187d8:	59 e1 00 00 	sw (r15+0),r1                                  
  map->last_map_block = new_block;                                    
 80187dc:	59 c1 00 1c 	sw (r14+28),r1                                 
  return 0;                                                           
}                                                                     
 80187e0:	b9 80 08 00 	mv r1,r12                                      
 80187e4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80187e8:	2b 8b 00 24 	lw r11,(sp+36)                                 
 80187ec:	2b 8c 00 20 	lw r12,(sp+32)                                 
 80187f0:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 80187f4:	2b 8e 00 18 	lw r14,(sp+24)                                 
 80187f8:	2b 8f 00 14 	lw r15,(sp+20)                                 
 80187fc:	2b 90 00 10 	lw r16,(sp+16)                                 
 8018800:	2b 91 00 0c 	lw r17,(sp+12)                                 
 8018804:	2b 92 00 08 	lw r18,(sp+8)                                  
 8018808:	37 9c 00 28 	addi sp,sp,40                                  
 801880c:	c3 a0 00 00 	ret                                            
                                                                      

08018810 <rtems_rfs_block_map_indirect_shrink.clone.6>: * @param indirect The index index in the inode's block table. * @param index The index in the indirect table of the block. * @return int The error number (errno). No error if 0. */ static int rtems_rfs_block_map_indirect_shrink (rtems_rfs_file_system* fs,
 8018810:	37 9c ff dc 	addi sp,sp,-36                                 
 8018814:	5b 8b 00 24 	sw (sp+36),r11                                 
 8018818:	5b 8c 00 20 	sw (sp+32),r12                                 
 801881c:	5b 8d 00 1c 	sw (sp+28),r13                                 
 8018820:	5b 8e 00 18 	sw (sp+24),r14                                 
 8018824:	5b 8f 00 14 	sw (sp+20),r15                                 
 8018828:	5b 90 00 10 	sw (sp+16),r16                                 
 801882c:	5b 91 00 0c 	sw (sp+12),r17                                 
 8018830:	5b 92 00 08 	sw (sp+8),r18                                  
 8018834:	5b 9d 00 04 	sw (sp+4),ra                                   
 8018838:	b8 20 80 00 	mv r16,r1                                      
 801883c:	b8 40 60 00 	mv r12,r2                                      
 8018840:	b8 60 70 00 	mv r14,r3                                      
 8018844:	b8 80 58 00 	mv r11,r4                                      
 8018848:	b8 a0 68 00 	mv r13,r5                                      
   * block to be freed and the indirect block is now also free, or we have only
   * one indirect table and we can fit the remaining blocks into the inode,
   * then either move to the next indirect block or move the remaining blocks
   * into the inode and free the indirect table's block.              
   */                                                                 
  if ((index == 0) ||                                                 
 801884c:	44 a0 00 06 	be r5,r0,8018864 <rtems_rfs_block_map_indirect_shrink.clone.6+0x54><== NEVER TAKEN
      ((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS)))         
 8018850:	64 81 00 00 	cmpei r1,r4,0                                  
 8018854:	64 a2 00 05 	cmpei r2,r5,5                                  
   * block to be freed and the indirect block is now also free, or we have only
   * one indirect table and we can fit the remaining blocks into the inode,
   * then either move to the next indirect block or move the remaining blocks
   * into the inode and free the indirect table's block.              
   */                                                                 
  if ((index == 0) ||                                                 
 8018858:	a0 41 10 00 	and r2,r2,r1                                   
                                     rtems_rfs_block_map*     map,    
                                     rtems_rfs_buffer_handle* buffer, 
                                     rtems_rfs_block_no       indirect,
                                     rtems_rfs_block_no       index)  
{                                                                     
  int rc = 0;                                                         
 801885c:	34 01 00 00 	mvi r1,0                                       
   * block to be freed and the indirect block is now also free, or we have only
   * one indirect table and we can fit the remaining blocks into the inode,
   * then either move to the next indirect block or move the remaining blocks
   * into the inode and free the indirect table's block.              
   */                                                                 
  if ((index == 0) ||                                                 
 8018860:	44 40 00 2a 	be r2,r0,8018908 <rtems_rfs_block_map_indirect_shrink.clone.6+0xf8>
      ((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS)))         
  {                                                                   
    rtems_rfs_block_no block_to_free = map->blocks[indirect];         
 8018864:	35 61 00 08 	addi r1,r11,8                                  
 8018868:	34 02 00 02 	mvi r2,2                                       
                                                                      
    if ((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS))         
 801886c:	65 ad 00 05 	cmpei r13,r13,5                                
 8018870:	65 6b 00 00 	cmpei r11,r11,0                                
   * into the inode and free the indirect table's block.              
   */                                                                 
  if ((index == 0) ||                                                 
      ((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS)))         
  {                                                                   
    rtems_rfs_block_no block_to_free = map->blocks[indirect];         
 8018874:	fb ff a3 1b 	calli 80014e0 <__ashlsi3>                      
 8018878:	b5 81 10 00 	add r2,r12,r1                                  
                                                                      
    if ((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS))         
 801887c:	a1 ab 58 00 	and r11,r13,r11                                
   * into the inode and free the indirect table's block.              
   */                                                                 
  if ((index == 0) ||                                                 
      ((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS)))         
  {                                                                   
    rtems_rfs_block_no block_to_free = map->blocks[indirect];         
 8018880:	28 4f 00 04 	lw r15,(r2+4)                                  
                                                                      
    if ((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS))         
 8018884:	45 60 00 1a 	be r11,r0,80188ec <rtems_rfs_block_map_indirect_shrink.clone.6+0xdc><== NEVER TAKEN
      /*                                                              
       * Move to direct inode access.                                 
       */                                                             
      int b;                                                          
      for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                    
        map->blocks[b] = rtems_rfs_block_get_number (buffer, b);      
 8018888:	29 c1 00 00 	lw r1,(r14+0)                                  
 801888c:	34 0d 00 00 	mvi r13,0                                      
  if ((index == 0) ||                                                 
      ((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS)))         
  {                                                                   
    rtems_rfs_block_no block_to_free = map->blocks[indirect];         
                                                                      
    if ((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS))         
 8018890:	b9 80 70 00 	mv r14,r12                                     
 8018894:	28 2b 00 1c 	lw r11,(r1+28)                                 
    {                                                                 
      /*                                                              
       * Move to direct inode access.                                 
       */                                                             
      int b;                                                          
      for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                    
 8018898:	34 11 00 05 	mvi r17,5                                      
        map->blocks[b] = rtems_rfs_block_get_number (buffer, b);      
 801889c:	41 61 00 00 	lbu r1,(r11+0)                                 
 80188a0:	34 02 00 18 	mvi r2,24                                      
    {                                                                 
      /*                                                              
       * Move to direct inode access.                                 
       */                                                             
      int b;                                                          
      for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                    
 80188a4:	35 ad 00 01 	addi r13,r13,1                                 
        map->blocks[b] = rtems_rfs_block_get_number (buffer, b);      
 80188a8:	fb ff a3 0e 	calli 80014e0 <__ashlsi3>                      
 80188ac:	b8 20 90 00 	mv r18,r1                                      
 80188b0:	41 61 00 01 	lbu r1,(r11+1)                                 
 80188b4:	34 02 00 10 	mvi r2,16                                      
 80188b8:	fb ff a3 0a 	calli 80014e0 <__ashlsi3>                      
 80188bc:	ba 41 10 00 	or r2,r18,r1                                   
 80188c0:	41 72 00 03 	lbu r18,(r11+3)                                
 80188c4:	41 61 00 02 	lbu r1,(r11+2)                                 
    {                                                                 
      /*                                                              
       * Move to direct inode access.                                 
       */                                                             
      int b;                                                          
      for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                    
 80188c8:	35 6b 00 04 	addi r11,r11,4                                 
        map->blocks[b] = rtems_rfs_block_get_number (buffer, b);      
 80188cc:	b8 52 90 00 	or r18,r2,r18                                  
 80188d0:	34 02 00 08 	mvi r2,8                                       
 80188d4:	fb ff a3 03 	calli 80014e0 <__ashlsi3>                      
 80188d8:	ba 41 10 00 	or r2,r18,r1                                   
 80188dc:	59 c2 00 24 	sw (r14+36),r2                                 
    {                                                                 
      /*                                                              
       * Move to direct inode access.                                 
       */                                                             
      int b;                                                          
      for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                    
 80188e0:	35 ce 00 04 	addi r14,r14,4                                 
 80188e4:	5d b1 ff ee 	bne r13,r17,801889c <rtems_rfs_block_map_indirect_shrink.clone.6+0x8c>
 80188e8:	e0 00 00 02 	bi 80188f0 <rtems_rfs_block_map_indirect_shrink.clone.6+0xe0>
    else                                                              
    {                                                                 
      /*                                                              
       * One less singly indirect block in the inode.                 
       */                                                             
      map->blocks[indirect] = 0;                                      
 80188ec:	58 40 00 04 	sw (r2+4),r0                                   <== NOT EXECUTED
    }                                                                 
                                                                      
    rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);      
 80188f0:	ba 00 08 00 	mv r1,r16                                      
 80188f4:	34 02 00 00 	mvi r2,0                                       
 80188f8:	b9 e0 18 00 	mv r3,r15                                      
 80188fc:	fb ff d7 ff 	calli 800e8f8 <rtems_rfs_group_bitmap_free>    
    if (rc > 0)                                                       
 8018900:	48 20 00 02 	bg r1,r0,8018908 <rtems_rfs_block_map_indirect_shrink.clone.6+0xf8><== NEVER TAKEN
      return rc;                                                      
                                                                      
    map->last_map_block = block_to_free;                              
 8018904:	59 8f 00 1c 	sw (r12+28),r15                                
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
 8018908:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801890c:	2b 8b 00 24 	lw r11,(sp+36)                                 
 8018910:	2b 8c 00 20 	lw r12,(sp+32)                                 
 8018914:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 8018918:	2b 8e 00 18 	lw r14,(sp+24)                                 
 801891c:	2b 8f 00 14 	lw r15,(sp+20)                                 
 8018920:	2b 90 00 10 	lw r16,(sp+16)                                 
 8018924:	2b 91 00 0c 	lw r17,(sp+12)                                 
 8018928:	2b 92 00 08 	lw r18,(sp+8)                                  
 801892c:	37 9c 00 24 	addi sp,sp,36                                  
 8018930:	c3 a0 00 00 	ret                                            
                                                                      

08018acc <rtems_rfs_block_map_open>: int rtems_rfs_block_map_open (rtems_rfs_file_system* fs, rtems_rfs_inode_handle* inode, rtems_rfs_block_map* map) {
 8018acc:	37 9c ff dc 	addi sp,sp,-36                                 
 8018ad0:	5b 8b 00 24 	sw (sp+36),r11                                 
 8018ad4:	5b 8c 00 20 	sw (sp+32),r12                                 
 8018ad8:	5b 8d 00 1c 	sw (sp+28),r13                                 
 8018adc:	5b 8e 00 18 	sw (sp+24),r14                                 
 8018ae0:	5b 8f 00 14 	sw (sp+20),r15                                 
 8018ae4:	5b 90 00 10 	sw (sp+16),r16                                 
 8018ae8:	5b 91 00 0c 	sw (sp+12),r17                                 
 8018aec:	5b 92 00 08 	sw (sp+8),r18                                  
 8018af0:	5b 9d 00 04 	sw (sp+4),ra                                   
   * Set the count to 0 so at least find fails, then open the handle and make
   * sure the inode has been loaded into memory. If we did not load the inode
   * do not unload it. The caller may assume it is still loaded when we return.
   */                                                                 
                                                                      
  map->dirty = false;                                                 
 8018af4:	30 60 00 00 	sb (r3+0),r0                                   
  map->inode = NULL;                                                  
 8018af8:	58 60 00 04 	sw (r3+4),r0                                   
 * @param size A pointer to the block size.                           
 */                                                                   
static inline void                                                    
rtems_rfs_block_set_size_zero (rtems_rfs_block_size* size)            
{                                                                     
  size->count = 0;                                                    
 8018afc:	58 60 00 08 	sw (r3+8),r0                                   
  size->offset = 0;                                                   
 8018b00:	58 60 00 0c 	sw (r3+12),r0                                  
 * @param bpos A pointer to the block position.                       
 */                                                                   
static inline void                                                    
rtems_rfs_block_set_bpos_zero (rtems_rfs_block_pos* bpos)             
{                                                                     
  bpos->bno = 0;                                                      
 8018b04:	58 60 00 10 	sw (r3+16),r0                                  
  bpos->boff = 0;                                                     
 8018b08:	58 60 00 14 	sw (r3+20),r0                                  
  bpos->block = 0;                                                    
 8018b0c:	58 60 00 18 	sw (r3+24),r0                                  
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
 8018b10:	30 60 00 38 	sb (r3+56),r0                                  
  handle->bnum  = 0;                                                  
 8018b14:	58 60 00 3c 	sw (r3+60),r0                                  
  handle->buffer = NULL;                                              
 8018b18:	58 60 00 40 	sw (r3+64),r0                                  
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
 8018b1c:	30 60 00 44 	sb (r3+68),r0                                  
  handle->bnum  = 0;                                                  
 8018b20:	58 60 00 48 	sw (r3+72),r0                                  
  handle->buffer = NULL;                                              
 8018b24:	58 60 00 4c 	sw (r3+76),r0                                  
                                                                      
int                                                                   
rtems_rfs_block_map_open (rtems_rfs_file_system*  fs,                 
                          rtems_rfs_inode_handle* inode,              
                          rtems_rfs_block_map*    map)                
{                                                                     
 8018b28:	b8 20 78 00 	mv r15,r1                                      
 8018b2c:	b8 40 70 00 	mv r14,r2                                      
 8018b30:	b8 60 58 00 	mv r11,r3                                      
    return rc;                                                        
  rc = rtems_rfs_buffer_handle_open (fs, &map->doubly_buffer);        
  if (rc > 0)                                                         
    return rc;                                                        
                                                                      
  rc = rtems_rfs_inode_load (fs, inode);                              
 8018b34:	fb ff d8 33 	calli 800ec00 <rtems_rfs_inode_load>           
 8018b38:	b8 20 60 00 	mv r12,r1                                      
  if (rc > 0)                                                         
 8018b3c:	4c 01 00 0e 	bge r0,r1,8018b74 <rtems_rfs_block_map_open+0xa8><== ALWAYS TAKEN
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 8018b40:	35 62 00 38 	addi r2,r11,56                                 <== NOT EXECUTED
 8018b44:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
 8018b48:	f8 00 04 3e 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
 8018b4c:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
  handle->dirty = false;                                              
 8018b50:	31 60 00 38 	sb (r11+56),r0                                 <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 8018b54:	59 60 00 3c 	sw (r11+60),r0                                 <== NOT EXECUTED
  handle->buffer = NULL;                                              
 8018b58:	59 60 00 40 	sw (r11+64),r0                                 <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 8018b5c:	35 62 00 44 	addi r2,r11,68                                 <== NOT EXECUTED
 8018b60:	f8 00 04 38 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
 8018b64:	31 60 00 44 	sb (r11+68),r0                                 <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 8018b68:	59 60 00 48 	sw (r11+72),r0                                 <== NOT EXECUTED
  handle->buffer = NULL;                                              
 8018b6c:	59 60 00 4c 	sw (r11+76),r0                                 <== NOT EXECUTED
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &map->singly_buffer);          
    rtems_rfs_buffer_handle_close (fs, &map->doubly_buffer);          
    return rc;                                                        
 8018b70:	e0 00 00 52 	bi 8018cb8 <rtems_rfs_block_map_open+0x1ec>    <== NOT EXECUTED
int                                                                   
rtems_rfs_block_map_free_all (rtems_rfs_file_system* fs,              
                              rtems_rfs_block_map*   map)             
{                                                                     
  return rtems_rfs_block_map_shrink (fs, map, map->size.count);       
}                                                                     
 8018b74:	29 cc 00 0c 	lw r12,(r14+12)                                
                                                                      
  /*                                                                  
   * Extract the block and block count data from the inode into the targets
   * byte order.                                                      
   */                                                                 
  map->inode = inode;                                                 
 8018b78:	59 6e 00 04 	sw (r11+4),r14                                 
int                                                                   
rtems_rfs_block_map_free_all (rtems_rfs_file_system* fs,              
                              rtems_rfs_block_map*   map)             
{                                                                     
  return rtems_rfs_block_map_shrink (fs, map, map->size.count);       
}                                                                     
 8018b7c:	b9 60 80 00 	mv r16,r11                                     
 * @return uint32_t The block number.                                 
 */                                                                   
static inline uint32_t                                                
rtems_rfs_inode_get_block (rtems_rfs_inode_handle* handle, int block) 
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->data.blocks[block]);      
 8018b80:	35 8d 00 1c 	addi r13,r12,28                                
  block_size = rtems_rfs_fs_block_size (fs);                          
  return (((uint64_t) (size->count - 1)) * block_size) + offset;      
}                                                                     
                                                                      
int                                                                   
rtems_rfs_block_map_open (rtems_rfs_file_system*  fs,                 
 8018b84:	35 91 00 30 	addi r17,r12,48                                
 8018b88:	41 a1 00 00 	lbu r1,(r13+0)                                 
 8018b8c:	34 02 00 18 	mvi r2,24                                      
 8018b90:	fb ff a2 54 	calli 80014e0 <__ashlsi3>                      
 8018b94:	b8 20 90 00 	mv r18,r1                                      
 8018b98:	41 a1 00 01 	lbu r1,(r13+1)                                 
 8018b9c:	34 02 00 10 	mvi r2,16                                      
 8018ba0:	fb ff a2 50 	calli 80014e0 <__ashlsi3>                      
 8018ba4:	ba 41 08 00 	or r1,r18,r1                                   
 8018ba8:	41 b2 00 03 	lbu r18,(r13+3)                                
 8018bac:	34 02 00 08 	mvi r2,8                                       
 8018bb0:	b8 32 90 00 	or r18,r1,r18                                  
 8018bb4:	41 a1 00 02 	lbu r1,(r13+2)                                 
   * Extract the block and block count data from the inode into the targets
   * byte order.                                                      
   */                                                                 
  map->inode = inode;                                                 
  for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                        
    map->blocks[b] = rtems_rfs_inode_get_block (inode, b);            
 8018bb8:	35 ad 00 04 	addi r13,r13,4                                 
 8018bbc:	fb ff a2 49 	calli 80014e0 <__ashlsi3>                      
 8018bc0:	ba 41 08 00 	or r1,r18,r1                                   
 8018bc4:	5a 01 00 24 	sw (r16+36),r1                                 
 8018bc8:	36 10 00 04 	addi r16,r16,4                                 
  /*                                                                  
   * Extract the block and block count data from the inode into the targets
   * byte order.                                                      
   */                                                                 
  map->inode = inode;                                                 
  for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                        
 8018bcc:	5d b1 ff ef 	bne r13,r17,8018b88 <rtems_rfs_block_map_open+0xbc>
 * @return uint32_t The block count.                                  
 */                                                                   
static inline uint32_t                                                
rtems_rfs_inode_get_block_count (rtems_rfs_inode_handle* handle)      
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->block_count);             
 8018bd0:	41 81 00 0c 	lbu r1,(r12+12)                                
 8018bd4:	35 8d 00 0c 	addi r13,r12,12                                
 8018bd8:	41 b0 00 03 	lbu r16,(r13+3)                                
 8018bdc:	34 02 00 18 	mvi r2,24                                      
 8018be0:	fb ff a2 40 	calli 80014e0 <__ashlsi3>                      
 8018be4:	ba 01 80 00 	or r16,r16,r1                                  
 8018be8:	41 a1 00 01 	lbu r1,(r13+1)                                 
 8018bec:	34 02 00 10 	mvi r2,16                                      
 8018bf0:	fb ff a2 3c 	calli 80014e0 <__ashlsi3>                      
 8018bf4:	ba 01 80 00 	or r16,r16,r1                                  
 8018bf8:	41 a1 00 02 	lbu r1,(r13+2)                                 
 8018bfc:	34 02 00 08 	mvi r2,8                                       
 * @return uint32_t The block offset.                                 
 */                                                                   
static inline uint16_t                                                
rtems_rfs_inode_get_block_offset (rtems_rfs_inode_handle* handle)     
{                                                                     
  return rtems_rfs_read_u16 (&handle->node->block_offset);            
 8018c00:	35 8d 00 0a 	addi r13,r12,10                                
 * @return uint32_t The block count.                                  
 */                                                                   
static inline uint32_t                                                
rtems_rfs_inode_get_block_count (rtems_rfs_inode_handle* handle)      
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->block_count);             
 8018c04:	fb ff a2 37 	calli 80014e0 <__ashlsi3>                      
 8018c08:	ba 01 08 00 	or r1,r16,r1                                   
    map->blocks[b] = rtems_rfs_inode_get_block (inode, b);            
  map->size.count = rtems_rfs_inode_get_block_count (inode);          
 8018c0c:	59 61 00 08 	sw (r11+8),r1                                  
 * @return uint32_t The block offset.                                 
 */                                                                   
static inline uint16_t                                                
rtems_rfs_inode_get_block_offset (rtems_rfs_inode_handle* handle)     
{                                                                     
  return rtems_rfs_read_u16 (&handle->node->block_offset);            
 8018c10:	41 81 00 0a 	lbu r1,(r12+10)                                
 8018c14:	34 02 00 08 	mvi r2,8                                       
 8018c18:	fb ff a2 32 	calli 80014e0 <__ashlsi3>                      
 8018c1c:	41 a2 00 01 	lbu r2,(r13+1)                                 
 * @return uint32_t The last map block number.                        
 */                                                                   
static inline uint32_t                                                
rtems_rfs_inode_get_last_map_block (rtems_rfs_inode_handle* handle)   
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->last_map_block);          
 8018c20:	35 8d 00 30 	addi r13,r12,48                                
 * @return uint32_t The block offset.                                 
 */                                                                   
static inline uint16_t                                                
rtems_rfs_inode_get_block_offset (rtems_rfs_inode_handle* handle)     
{                                                                     
  return rtems_rfs_read_u16 (&handle->node->block_offset);            
 8018c24:	b8 22 08 00 	or r1,r1,r2                                    
  map->size.offset = rtems_rfs_inode_get_block_offset (inode);        
 8018c28:	20 21 ff ff 	andi r1,r1,0xffff                              
 8018c2c:	59 61 00 0c 	sw (r11+12),r1                                 
 * @return uint32_t The last map block number.                        
 */                                                                   
static inline uint32_t                                                
rtems_rfs_inode_get_last_map_block (rtems_rfs_inode_handle* handle)   
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->last_map_block);          
 8018c30:	41 81 00 30 	lbu r1,(r12+48)                                
 8018c34:	41 b0 00 03 	lbu r16,(r13+3)                                
 8018c38:	34 02 00 18 	mvi r2,24                                      
 8018c3c:	fb ff a2 29 	calli 80014e0 <__ashlsi3>                      
 8018c40:	ba 01 80 00 	or r16,r16,r1                                  
 8018c44:	41 a1 00 01 	lbu r1,(r13+1)                                 
 8018c48:	34 02 00 10 	mvi r2,16                                      
 8018c4c:	fb ff a2 25 	calli 80014e0 <__ashlsi3>                      
 8018c50:	ba 01 80 00 	or r16,r16,r1                                  
 8018c54:	41 a1 00 02 	lbu r1,(r13+2)                                 
 8018c58:	34 02 00 08 	mvi r2,8                                       
 * @return uint32_t The last data block number.                       
 */                                                                   
static inline uint32_t                                                
rtems_rfs_inode_get_last_data_block (rtems_rfs_inode_handle* handle)  
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->last_data_block);         
 8018c5c:	35 8d 00 34 	addi r13,r12,52                                
 * @return uint32_t The last map block number.                        
 */                                                                   
static inline uint32_t                                                
rtems_rfs_inode_get_last_map_block (rtems_rfs_inode_handle* handle)   
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->last_map_block);          
 8018c60:	fb ff a2 20 	calli 80014e0 <__ashlsi3>                      
 8018c64:	ba 01 08 00 	or r1,r16,r1                                   
  map->last_map_block = rtems_rfs_inode_get_last_map_block (inode);   
 8018c68:	59 61 00 1c 	sw (r11+28),r1                                 
 * @return uint32_t The last data block number.                       
 */                                                                   
static inline uint32_t                                                
rtems_rfs_inode_get_last_data_block (rtems_rfs_inode_handle* handle)  
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->last_data_block);         
 8018c6c:	41 81 00 34 	lbu r1,(r12+52)                                
 8018c70:	41 b0 00 03 	lbu r16,(r13+3)                                
 8018c74:	34 02 00 18 	mvi r2,24                                      
 8018c78:	fb ff a2 1a 	calli 80014e0 <__ashlsi3>                      
 8018c7c:	ba 01 60 00 	or r12,r16,r1                                  
 8018c80:	41 a1 00 01 	lbu r1,(r13+1)                                 
 8018c84:	34 02 00 10 	mvi r2,16                                      
 8018c88:	fb ff a2 16 	calli 80014e0 <__ashlsi3>                      
 8018c8c:	b9 81 60 00 	or r12,r12,r1                                  
 8018c90:	41 a1 00 02 	lbu r1,(r13+2)                                 
 8018c94:	34 02 00 08 	mvi r2,8                                       
 8018c98:	fb ff a2 12 	calli 80014e0 <__ashlsi3>                      
 8018c9c:	b9 81 08 00 	or r1,r12,r1                                   
  map->last_data_block = rtems_rfs_inode_get_last_data_block (inode); 
 8018ca0:	59 61 00 20 	sw (r11+32),r1                                 
                                                                      
  rc = rtems_rfs_inode_unload (fs, inode, false);                     
 8018ca4:	b9 c0 10 00 	mv r2,r14                                      
 8018ca8:	b9 e0 08 00 	mv r1,r15                                      
 8018cac:	34 03 00 00 	mvi r3,0                                       
 8018cb0:	fb ff d8 4a 	calli 800edd8 <rtems_rfs_inode_unload>         
 8018cb4:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  return rc;                                                          
}                                                                     
 8018cb8:	b9 80 08 00 	mv r1,r12                                      
 8018cbc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8018cc0:	2b 8b 00 24 	lw r11,(sp+36)                                 
 8018cc4:	2b 8c 00 20 	lw r12,(sp+32)                                 
 8018cc8:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 8018ccc:	2b 8e 00 18 	lw r14,(sp+24)                                 
 8018cd0:	2b 8f 00 14 	lw r15,(sp+20)                                 
 8018cd4:	2b 90 00 10 	lw r16,(sp+16)                                 
 8018cd8:	2b 91 00 0c 	lw r17,(sp+12)                                 
 8018cdc:	2b 92 00 08 	lw r18,(sp+8)                                  
 8018ce0:	37 9c 00 24 	addi sp,sp,36                                  
 8018ce4:	c3 a0 00 00 	ret                                            
                                                                      

08019694 <rtems_rfs_block_map_shrink>: int rtems_rfs_block_map_shrink (rtems_rfs_file_system* fs, rtems_rfs_block_map* map, size_t blocks) {
 8019694:	37 9c ff c0 	addi sp,sp,-64                                 
 8019698:	5b 8b 00 40 	sw (sp+64),r11                                 
 801969c:	5b 8c 00 3c 	sw (sp+60),r12                                 
 80196a0:	5b 8d 00 38 	sw (sp+56),r13                                 
 80196a4:	5b 8e 00 34 	sw (sp+52),r14                                 
 80196a8:	5b 8f 00 30 	sw (sp+48),r15                                 
 80196ac:	5b 90 00 2c 	sw (sp+44),r16                                 
 80196b0:	5b 91 00 28 	sw (sp+40),r17                                 
 80196b4:	5b 92 00 24 	sw (sp+36),r18                                 
 80196b8:	5b 93 00 20 	sw (sp+32),r19                                 
 80196bc:	5b 94 00 1c 	sw (sp+28),r20                                 
 80196c0:	5b 95 00 18 	sw (sp+24),r21                                 
 80196c4:	5b 96 00 14 	sw (sp+20),r22                                 
 80196c8:	5b 97 00 10 	sw (sp+16),r23                                 
 80196cc:	5b 98 00 0c 	sw (sp+12),r24                                 
 80196d0:	5b 99 00 08 	sw (sp+8),r25                                  
 80196d4:	5b 9d 00 04 	sw (sp+4),ra                                   
 80196d8:	b8 20 60 00 	mv r12,r1                                      
 80196dc:	b8 40 58 00 	mv r11,r2                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_SHRINK))             
 80196e0:	34 01 00 00 	mvi r1,0                                       
 80196e4:	34 02 40 00 	mvi r2,16384                                   
                                                                      
int                                                                   
rtems_rfs_block_map_shrink (rtems_rfs_file_system* fs,                
                            rtems_rfs_block_map*   map,               
                            size_t                 blocks)            
{                                                                     
 80196e8:	b8 60 68 00 	mv r13,r3                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_SHRINK))             
 80196ec:	fb ff dd 2e 	calli 8010ba4 <rtems_rfs_trace>                
 80196f0:	44 20 00 06 	be r1,r0,8019708 <rtems_rfs_block_map_shrink+0x74><== ALWAYS TAKEN
    printf ("rtems-rfs: block-map-shrink: entry: blocks=%zd count=%" PRIu32 "\n",
 80196f4:	29 63 00 08 	lw r3,(r11+8)                                  <== NOT EXECUTED
 80196f8:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 80196fc:	38 21 62 d8 	ori r1,r1,0x62d8                               <== NOT EXECUTED
 8019700:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 8019704:	f8 00 1f 1f 	calli 8021380 <printf>                         <== NOT EXECUTED
            blocks, map->size.count);                                 
                                                                      
  if (map->size.count == 0)                                           
 8019708:	29 61 00 08 	lw r1,(r11+8)                                  
    return 0;                                                         
 801970c:	34 06 00 00 	mvi r6,0                                       
{                                                                     
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_SHRINK))             
    printf ("rtems-rfs: block-map-shrink: entry: blocks=%zd count=%" PRIu32 "\n",
            blocks, map->size.count);                                 
                                                                      
  if (map->size.count == 0)                                           
 8019710:	44 20 00 be 	be r1,r0,8019a08 <rtems_rfs_block_map_shrink+0x374>
 8019714:	50 2d 00 a0 	bgeu r1,r13,8019994 <rtems_rfs_block_map_shrink+0x300><== ALWAYS TAKEN
 8019718:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
 801971c:	e0 00 00 9e 	bi 8019994 <rtems_rfs_block_map_shrink+0x300>  <== NOT EXECUTED
  {                                                                   
    rtems_rfs_block_no block;                                         
    rtems_rfs_block_no block_to_free;                                 
    int                rc;                                            
                                                                      
    block = map->size.count - 1;                                      
 8019720:	29 61 00 08 	lw r1,(r11+8)                                  
 8019724:	34 2f ff ff 	addi r15,r1,-1                                 
                                                                      
    if (block < RTEMS_RFS_INODE_BLOCKS)                               
 8019728:	55 f8 00 08 	bgu r15,r24,8019748 <rtems_rfs_block_map_shrink+0xb4>
    {                                                                 
      /*                                                              
       * We have less than RTEMS_RFS_INODE_BLOCKS so they are held in the
       * inode.                                                       
       */                                                             
      block_to_free = map->blocks[block];                             
 801972c:	34 21 00 07 	addi r1,r1,7                                   
 8019730:	34 02 00 02 	mvi r2,2                                       
 8019734:	fb ff 9f 6b 	calli 80014e0 <__ashlsi3>                      
 8019738:	b5 61 08 00 	add r1,r11,r1                                  
 801973c:	28 2f 00 04 	lw r15,(r1+4)                                  
      map->blocks[block] = 0;                                         
 8019740:	58 20 00 04 	sw (r1+4),r0                                   
 8019744:	e0 00 00 86 	bi 801995c <rtems_rfs_block_map_shrink+0x2c8>  
       * table of block numbers.                                      
       */                                                             
      rtems_rfs_block_no direct;                                      
      rtems_rfs_block_no singly;                                      
                                                                      
      direct = block % fs->blocks_per_block;                          
 8019748:	29 90 00 34 	lw r16,(r12+52)                                
 801974c:	b9 e0 08 00 	mv r1,r15                                      
 8019750:	ba 00 10 00 	mv r2,r16                                      
 8019754:	f8 00 66 2f 	calli 8033010 <__umodsi3>                      
      singly = block / fs->blocks_per_block;                          
 8019758:	ba 00 10 00 	mv r2,r16                                      
       * table of block numbers.                                      
       */                                                             
      rtems_rfs_block_no direct;                                      
      rtems_rfs_block_no singly;                                      
                                                                      
      direct = block % fs->blocks_per_block;                          
 801975c:	b8 20 70 00 	mv r14,r1                                      
      singly = block / fs->blocks_per_block;                          
 8019760:	b9 e0 08 00 	mv r1,r15                                      
 8019764:	fb ff 9f b9 	calli 8001648 <__udivsi3>                      
                                                                      
      if (block < fs->block_map_singly_blocks)                        
 8019768:	29 82 00 38 	lw r2,(r12+56)                                 
       */                                                             
      rtems_rfs_block_no direct;                                      
      rtems_rfs_block_no singly;                                      
                                                                      
      direct = block % fs->blocks_per_block;                          
      singly = block / fs->blocks_per_block;                          
 801976c:	b8 20 88 00 	mv r17,r1                                      
                                                                      
      if (block < fs->block_map_singly_blocks)                        
 8019770:	51 e2 00 2b 	bgeu r15,r2,801981c <rtems_rfs_block_map_shrink+0x188><== NEVER TAKEN
      {                                                               
        /*                                                            
         * Request the indirect block and then obtain the block number from the
         * indirect block.                                            
         */                                                           
        rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
 8019774:	34 02 00 02 	mvi r2,2                                       
 8019778:	34 21 00 08 	addi r1,r1,8                                   
 801977c:	fb ff 9f 59 	calli 80014e0 <__ashlsi3>                      
 8019780:	b5 61 20 00 	add r4,r11,r1                                  
 8019784:	28 83 00 04 	lw r3,(r4+4)                                   
 8019788:	b9 80 08 00 	mv r1,r12                                      
 801978c:	ba 40 10 00 	mv r2,r18                                      
 8019790:	34 04 00 01 	mvi r4,1                                       
 8019794:	f8 00 01 9a 	calli 8019dfc <rtems_rfs_buffer_handle_request>
 8019798:	b8 20 30 00 	mv r6,r1                                       
                                              map->blocks[singly], true);
        if (rc > 0)                                                   
 801979c:	48 20 00 9b 	bg r1,r0,8019a08 <rtems_rfs_block_map_shrink+0x374><== NEVER TAKEN
          return rc;                                                  
                                                                      
        block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
 80197a0:	29 61 00 40 	lw r1,(r11+64)                                 
 80197a4:	34 02 00 02 	mvi r2,2                                       
 80197a8:	28 2f 00 1c 	lw r15,(r1+28)                                 
 80197ac:	b9 c0 08 00 	mv r1,r14                                      
 80197b0:	fb ff 9f 4c 	calli 80014e0 <__ashlsi3>                      
 80197b4:	b5 e1 28 00 	add r5,r15,r1                                  
 80197b8:	40 b9 00 00 	lbu r25,(r5+0)                                 
 80197bc:	40 b3 00 01 	lbu r19,(r5+1)                                 
 80197c0:	40 b0 00 02 	lbu r16,(r5+2)                                 
 80197c4:	40 af 00 03 	lbu r15,(r5+3)                                 
                                                    direct);          
                                                                      
        rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
 80197c8:	b9 80 08 00 	mv r1,r12                                      
 80197cc:	b9 60 10 00 	mv r2,r11                                      
 80197d0:	ba a0 18 00 	mv r3,r21                                      
 80197d4:	ba 20 20 00 	mv r4,r17                                      
 80197d8:	b9 c0 28 00 	mv r5,r14                                      
 80197dc:	fb ff fc 0d 	calli 8018810 <rtems_rfs_block_map_indirect_shrink.clone.6>
 80197e0:	b8 20 30 00 	mv r6,r1                                       
                                                  singly, direct);    
        if (rc)                                                       
 80197e4:	5c 20 00 89 	bne r1,r0,8019a08 <rtems_rfs_block_map_shrink+0x374><== NEVER TAKEN
        rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
                                              map->blocks[singly], true);
        if (rc > 0)                                                   
          return rc;                                                  
                                                                      
        block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
 80197e8:	34 02 00 18 	mvi r2,24                                      
 80197ec:	bb 20 08 00 	mv r1,r25                                      
 80197f0:	fb ff 9f 3c 	calli 80014e0 <__ashlsi3>                      
 80197f4:	b9 e1 78 00 	or r15,r15,r1                                  
 80197f8:	34 02 00 10 	mvi r2,16                                      
 80197fc:	ba 60 08 00 	mv r1,r19                                      
 8019800:	fb ff 9f 38 	calli 80014e0 <__ashlsi3>                      
 8019804:	b9 e1 78 00 	or r15,r15,r1                                  
 8019808:	34 02 00 08 	mvi r2,8                                       
 801980c:	ba 00 08 00 	mv r1,r16                                      
 8019810:	fb ff 9f 34 	calli 80014e0 <__ashlsi3>                      
 8019814:	b9 e1 78 00 	or r15,r15,r1                                  
 8019818:	e0 00 00 51 	bi 801995c <rtems_rfs_block_map_shrink+0x2c8>  
        rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
                                                  singly, direct);    
        if (rc)                                                       
          return rc;                                                  
      }                                                               
      else if (block < fs->block_map_doubly_blocks)                   
 801981c:	29 82 00 3c 	lw r2,(r12+60)                                 <== NOT EXECUTED
 8019820:	51 e2 00 64 	bgeu r15,r2,80199b0 <rtems_rfs_block_map_shrink+0x31c><== NOT EXECUTED
         * value is still valid for doubly indirect tables.           
         */                                                           
        rtems_rfs_block_no doubly;                                    
        rtems_rfs_block_no doubly_singly;                             
                                                                      
        doubly        = singly / fs->blocks_per_block;                
 8019824:	ba 00 10 00 	mv r2,r16                                      <== NOT EXECUTED
 8019828:	fb ff 9f 88 	calli 8001648 <__udivsi3>                      <== NOT EXECUTED
        doubly_singly = singly % fs->blocks_per_block;                
                                                                      
        rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
 801982c:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
         * value is still valid for doubly indirect tables.           
         */                                                           
        rtems_rfs_block_no doubly;                                    
        rtems_rfs_block_no doubly_singly;                             
                                                                      
        doubly        = singly / fs->blocks_per_block;                
 8019830:	b8 20 98 00 	mv r19,r1                                      <== NOT EXECUTED
        doubly_singly = singly % fs->blocks_per_block;                
                                                                      
        rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
 8019834:	34 21 00 08 	addi r1,r1,8                                   <== NOT EXECUTED
 8019838:	fb ff 9f 2a 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 801983c:	b5 61 20 00 	add r4,r11,r1                                  <== NOT EXECUTED
 8019840:	28 83 00 04 	lw r3,(r4+4)                                   <== NOT EXECUTED
 8019844:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8019848:	ba e0 10 00 	mv r2,r23                                      <== NOT EXECUTED
 801984c:	34 04 00 01 	mvi r4,1                                       <== NOT EXECUTED
 8019850:	f8 00 01 6b 	calli 8019dfc <rtems_rfs_buffer_handle_request><== NOT EXECUTED
 8019854:	b8 20 30 00 	mv r6,r1                                       <== NOT EXECUTED
                                              map->blocks[doubly], true);
        if (rc > 0)                                                   
 8019858:	48 20 00 6c 	bg r1,r0,8019a08 <rtems_rfs_block_map_shrink+0x374><== NOT EXECUTED
         */                                                           
        rtems_rfs_block_no doubly;                                    
        rtems_rfs_block_no doubly_singly;                             
                                                                      
        doubly        = singly / fs->blocks_per_block;                
        doubly_singly = singly % fs->blocks_per_block;                
 801985c:	ba 20 08 00 	mv r1,r17                                      <== NOT EXECUTED
 8019860:	ba 00 10 00 	mv r2,r16                                      <== NOT EXECUTED
 8019864:	f8 00 65 eb 	calli 8033010 <__umodsi3>                      <== NOT EXECUTED
        rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
                                              map->blocks[doubly], true);
        if (rc > 0)                                                   
          return rc;                                                  
                                                                      
        singly = rtems_rfs_block_get_number (&map->doubly_buffer,     
 8019868:	29 62 00 4c 	lw r2,(r11+76)                                 <== NOT EXECUTED
         */                                                           
        rtems_rfs_block_no doubly;                                    
        rtems_rfs_block_no doubly_singly;                             
                                                                      
        doubly        = singly / fs->blocks_per_block;                
        doubly_singly = singly % fs->blocks_per_block;                
 801986c:	b8 20 c8 00 	mv r25,r1                                      <== NOT EXECUTED
        rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
                                              map->blocks[doubly], true);
        if (rc > 0)                                                   
          return rc;                                                  
                                                                      
        singly = rtems_rfs_block_get_number (&map->doubly_buffer,     
 8019870:	28 4f 00 1c 	lw r15,(r2+28)                                 <== NOT EXECUTED
 8019874:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
 8019878:	fb ff 9f 1a 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 801987c:	b5 e1 78 00 	add r15,r15,r1                                 <== NOT EXECUTED
 8019880:	41 e1 00 00 	lbu r1,(r15+0)                                 <== NOT EXECUTED
 8019884:	41 f1 00 03 	lbu r17,(r15+3)                                <== NOT EXECUTED
 8019888:	34 02 00 18 	mvi r2,24                                      <== NOT EXECUTED
 801988c:	fb ff 9f 15 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 8019890:	ba 21 88 00 	or r17,r17,r1                                  <== NOT EXECUTED
 8019894:	41 e1 00 01 	lbu r1,(r15+1)                                 <== NOT EXECUTED
 8019898:	34 02 00 10 	mvi r2,16                                      <== NOT EXECUTED
 801989c:	fb ff 9f 11 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 80198a0:	ba 21 88 00 	or r17,r17,r1                                  <== NOT EXECUTED
 80198a4:	41 e1 00 02 	lbu r1,(r15+2)                                 <== NOT EXECUTED
 80198a8:	34 02 00 08 	mvi r2,8                                       <== NOT EXECUTED
 80198ac:	fb ff 9f 0d 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 80198b0:	ba 21 88 00 	or r17,r17,r1                                  <== NOT EXECUTED
                                             doubly_singly);          
                                                                      
        /*                                                            
         * Read the singly indirect table and get the block number.   
         */                                                           
        rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
 80198b4:	ba 40 10 00 	mv r2,r18                                      <== NOT EXECUTED
 80198b8:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 80198bc:	ba 20 18 00 	mv r3,r17                                      <== NOT EXECUTED
 80198c0:	34 04 00 01 	mvi r4,1                                       <== NOT EXECUTED
 80198c4:	f8 00 01 4e 	calli 8019dfc <rtems_rfs_buffer_handle_request><== NOT EXECUTED
 80198c8:	b8 20 30 00 	mv r6,r1                                       <== NOT EXECUTED
                                              singly, true);          
        if (rc > 0)                                                   
 80198cc:	48 20 00 4f 	bg r1,r0,8019a08 <rtems_rfs_block_map_shrink+0x374><== NOT EXECUTED
          return rc;                                                  
                                                                      
        block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
 80198d0:	29 61 00 40 	lw r1,(r11+64)                                 <== NOT EXECUTED
 80198d4:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
 80198d8:	28 30 00 1c 	lw r16,(r1+28)                                 <== NOT EXECUTED
 80198dc:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 80198e0:	fb ff 9f 00 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 80198e4:	b6 01 80 00 	add r16,r16,r1                                 <== NOT EXECUTED
 80198e8:	42 01 00 00 	lbu r1,(r16+0)                                 <== NOT EXECUTED
 80198ec:	42 0f 00 03 	lbu r15,(r16+3)                                <== NOT EXECUTED
 80198f0:	34 02 00 18 	mvi r2,24                                      <== NOT EXECUTED
 80198f4:	fb ff 9e fb 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 80198f8:	b9 e1 78 00 	or r15,r15,r1                                  <== NOT EXECUTED
 80198fc:	42 01 00 01 	lbu r1,(r16+1)                                 <== NOT EXECUTED
 8019900:	34 02 00 10 	mvi r2,16                                      <== NOT EXECUTED
 8019904:	fb ff 9e f7 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 8019908:	b9 e1 78 00 	or r15,r15,r1                                  <== NOT EXECUTED
 801990c:	42 01 00 02 	lbu r1,(r16+2)                                 <== NOT EXECUTED
 8019910:	34 02 00 08 	mvi r2,8                                       <== NOT EXECUTED
 8019914:	fb ff 9e f3 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 8019918:	b9 e1 78 00 	or r15,r15,r1                                  <== NOT EXECUTED
                                                    direct);          
                                                                      
        if (direct == 0)                                              
 801991c:	5d c0 00 10 	bne r14,r0,801995c <rtems_rfs_block_map_shrink+0x2c8><== NOT EXECUTED
        {                                                             
          rc = rtems_rfs_group_bitmap_free (fs, false, singly);       
 8019920:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8019924:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 8019928:	ba 20 18 00 	mv r3,r17                                      <== NOT EXECUTED
 801992c:	fb ff d3 f3 	calli 800e8f8 <rtems_rfs_group_bitmap_free>    <== NOT EXECUTED
 8019930:	b8 20 30 00 	mv r6,r1                                       <== NOT EXECUTED
          if (rc > 0)                                                 
 8019934:	48 2e 00 35 	bg r1,r14,8019a08 <rtems_rfs_block_map_shrink+0x374><== NOT EXECUTED
            return rc;                                                
                                                                      
          map->last_map_block = singly;                               
 8019938:	59 71 00 1c 	sw (r11+28),r17                                <== NOT EXECUTED
                                                                      
          rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->doubly_buffer,
 801993c:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8019940:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 8019944:	ba c0 18 00 	mv r3,r22                                      <== NOT EXECUTED
 8019948:	ba 60 20 00 	mv r4,r19                                      <== NOT EXECUTED
 801994c:	bb 20 28 00 	mv r5,r25                                      <== NOT EXECUTED
 8019950:	fb ff fb b0 	calli 8018810 <rtems_rfs_block_map_indirect_shrink.clone.6><== NOT EXECUTED
 8019954:	b8 20 30 00 	mv r6,r1                                       <== NOT EXECUTED
                                                    doubly, doubly_singly);
          if (rc)                                                     
 8019958:	5c 20 00 2c 	bne r1,r0,8019a08 <rtems_rfs_block_map_shrink+0x374><== NOT EXECUTED
      {                                                               
        rc = EIO;                                                     
        break;                                                        
      }                                                               
    }                                                                 
    rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);      
 801995c:	b9 80 08 00 	mv r1,r12                                      
 8019960:	34 02 00 00 	mvi r2,0                                       
 8019964:	b9 e0 18 00 	mv r3,r15                                      
 8019968:	fb ff d3 e4 	calli 800e8f8 <rtems_rfs_group_bitmap_free>    
 801996c:	b8 20 30 00 	mv r6,r1                                       
    if (rc > 0)                                                       
 8019970:	48 20 00 26 	bg r1,r0,8019a08 <rtems_rfs_block_map_shrink+0x374><== NEVER TAKEN
      return rc;                                                      
    map->size.count--;                                                
 8019974:	29 61 00 08 	lw r1,(r11+8)                                  
    map->size.offset = 0;                                             
 8019978:	59 60 00 0c 	sw (r11+12),r0                                 
    map->last_data_block = block_to_free;                             
 801997c:	59 6f 00 20 	sw (r11+32),r15                                
      }                                                               
    }                                                                 
    rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);      
    if (rc > 0)                                                       
      return rc;                                                      
    map->size.count--;                                                
 8019980:	34 21 ff ff 	addi r1,r1,-1                                  
 8019984:	59 61 00 08 	sw (r11+8),r1                                  
    map->size.offset = 0;                                             
    map->last_data_block = block_to_free;                             
    map->dirty = true;                                                
 8019988:	31 74 00 00 	sb (r11+0),r20                                 
    blocks--;                                                         
 801998c:	35 ad ff ff 	addi r13,r13,-1                                
 8019990:	e0 00 00 07 	bi 80199ac <rtems_rfs_block_map_shrink+0x318>  
    rtems_rfs_block_no block_to_free;                                 
    int                rc;                                            
                                                                      
    block = map->size.count - 1;                                      
                                                                      
    if (block < RTEMS_RFS_INODE_BLOCKS)                               
 8019994:	34 18 00 04 	mvi r24,4                                      
        rtems_rfs_block_no doubly_singly;                             
                                                                      
        doubly        = singly / fs->blocks_per_block;                
        doubly_singly = singly % fs->blocks_per_block;                
                                                                      
        rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
 8019998:	35 77 00 44 	addi r23,r11,68                                
                                             doubly_singly);          
                                                                      
        /*                                                            
         * Read the singly indirect table and get the block number.   
         */                                                           
        rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
 801999c:	35 72 00 38 	addi r18,r11,56                                
int                                                                   
rtems_rfs_block_map_free_all (rtems_rfs_file_system* fs,              
                              rtems_rfs_block_map*   map)             
{                                                                     
  return rtems_rfs_block_map_shrink (fs, map, map->size.count);       
}                                                                     
 80199a0:	35 76 00 4c 	addi r22,r11,76                                
 80199a4:	35 75 00 40 	addi r21,r11,64                                
    if (rc > 0)                                                       
      return rc;                                                      
    map->size.count--;                                                
    map->size.offset = 0;                                             
    map->last_data_block = block_to_free;                             
    map->dirty = true;                                                
 80199a8:	34 14 00 01 	mvi r20,1                                      
    return 0;                                                         
                                                                      
  if (blocks > map->size.count)                                       
    blocks = map->size.count;                                         
                                                                      
  while (blocks)                                                      
 80199ac:	5d a0 ff 5d 	bne r13,r0,8019720 <rtems_rfs_block_map_shrink+0x8c>
    map->last_data_block = block_to_free;                             
    map->dirty = true;                                                
    blocks--;                                                         
  }                                                                   
                                                                      
  if (map->size.count == 0)                                           
 80199b0:	29 61 00 08 	lw r1,(r11+8)                                  
 80199b4:	5c 20 00 03 	bne r1,r0,80199c0 <rtems_rfs_block_map_shrink+0x32c>
  {                                                                   
    map->last_map_block = 0;                                          
 80199b8:	59 60 00 1c 	sw (r11+28),r0                                 
    map->last_data_block = 0;                                         
 80199bc:	59 60 00 20 	sw (r11+32),r0                                 
  }                                                                   
                                                                      
  /*                                                                  
   * Keep the position inside the map.                                
   */                                                                 
  if (rtems_rfs_block_pos_past_end (&map->bpos, &map->size))          
 80199c0:	29 62 00 10 	lw r2,(r11+16)                                 
 80199c4:	44 40 00 02 	be r2,r0,80199cc <rtems_rfs_block_map_shrink+0x338>
 80199c8:	44 20 00 08 	be r1,r0,80199e8 <rtems_rfs_block_map_shrink+0x354><== ALWAYS TAKEN
 80199cc:	50 41 00 07 	bgeu r2,r1,80199e8 <rtems_rfs_block_map_shrink+0x354>
 80199d0:	34 23 ff ff 	addi r3,r1,-1                                  
    rtems_rfs_block_size_get_bpos (&map->size, &map->bpos);           
                                                                      
  return 0;                                                           
 80199d4:	34 06 00 00 	mvi r6,0                                       
  }                                                                   
                                                                      
  /*                                                                  
   * Keep the position inside the map.                                
   */                                                                 
  if (rtems_rfs_block_pos_past_end (&map->bpos, &map->size))          
 80199d8:	5c 43 00 0c 	bne r2,r3,8019a08 <rtems_rfs_block_map_shrink+0x374><== NEVER TAKEN
 80199dc:	29 62 00 14 	lw r2,(r11+20)                                 
 80199e0:	29 63 00 0c 	lw r3,(r11+12)                                 
 80199e4:	50 62 00 09 	bgeu r3,r2,8019a08 <rtems_rfs_block_map_shrink+0x374><== NEVER TAKEN
    rtems_rfs_block_size_get_bpos (&map->size, &map->bpos);           
 80199e8:	29 62 00 0c 	lw r2,(r11+12)                                 
 80199ec:	59 61 00 10 	sw (r11+16),r1                                 
 80199f0:	59 60 00 18 	sw (r11+24),r0                                 
 80199f4:	59 62 00 14 	sw (r11+20),r2                                 
                                                                      
  return 0;                                                           
 80199f8:	34 06 00 00 	mvi r6,0                                       
                                                                      
  /*                                                                  
   * Keep the position inside the map.                                
   */                                                                 
  if (rtems_rfs_block_pos_past_end (&map->bpos, &map->size))          
    rtems_rfs_block_size_get_bpos (&map->size, &map->bpos);           
 80199fc:	44 40 00 03 	be r2,r0,8019a08 <rtems_rfs_block_map_shrink+0x374><== ALWAYS TAKEN
 8019a00:	34 21 ff ff 	addi r1,r1,-1                                  <== NOT EXECUTED
 8019a04:	59 61 00 10 	sw (r11+16),r1                                 <== NOT EXECUTED
                                                                      
  return 0;                                                           
}                                                                     
 8019a08:	b8 c0 08 00 	mv r1,r6                                       
 8019a0c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8019a10:	2b 8b 00 40 	lw r11,(sp+64)                                 
 8019a14:	2b 8c 00 3c 	lw r12,(sp+60)                                 
 8019a18:	2b 8d 00 38 	lw r13,(sp+56)                                 
 8019a1c:	2b 8e 00 34 	lw r14,(sp+52)                                 
 8019a20:	2b 8f 00 30 	lw r15,(sp+48)                                 
 8019a24:	2b 90 00 2c 	lw r16,(sp+44)                                 
 8019a28:	2b 91 00 28 	lw r17,(sp+40)                                 
 8019a2c:	2b 92 00 24 	lw r18,(sp+36)                                 
 8019a30:	2b 93 00 20 	lw r19,(sp+32)                                 
 8019a34:	2b 94 00 1c 	lw r20,(sp+28)                                 
 8019a38:	2b 95 00 18 	lw r21,(sp+24)                                 
 8019a3c:	2b 96 00 14 	lw r22,(sp+20)                                 
 8019a40:	2b 97 00 10 	lw r23,(sp+16)                                 
 8019a44:	2b 98 00 0c 	lw r24,(sp+12)                                 
 8019a48:	2b 99 00 08 	lw r25,(sp+8)                                  
 8019a4c:	37 9c 00 40 	addi sp,sp,64                                  
 8019a50:	c3 a0 00 00 	ret                                            
                                                                      

0801f3b0 <rtems_rfs_buffer_bdbuf_release>: int rtems_rfs_buffer_bdbuf_release (rtems_rfs_buffer* buffer, bool modified) {
 801f3b0:	37 9c ff f4 	addi sp,sp,-12                                 
 801f3b4:	5b 8b 00 0c 	sw (sp+12),r11                                 
 801f3b8:	5b 8c 00 08 	sw (sp+8),r12                                  
 801f3bc:	5b 9d 00 04 	sw (sp+4),ra                                   
 801f3c0:	b8 20 58 00 	mv r11,r1                                      
 801f3c4:	20 4c 00 ff 	andi r12,r2,0xff                               
  rtems_status_code sc;                                               
  int               rc = 0;                                           
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_RELEASE))               
 801f3c8:	34 01 00 00 	mvi r1,0                                       
 801f3cc:	34 02 00 40 	mvi r2,64                                      
 801f3d0:	fb ff c5 f5 	calli 8010ba4 <rtems_rfs_trace>                
 801f3d4:	44 20 00 0b 	be r1,r0,801f400 <rtems_rfs_buffer_bdbuf_release+0x50><== ALWAYS TAKEN
    printf ("rtems-rfs: bdbuf-release: block=%" PRIuPTR " bdbuf=%" PRIu32 " %s\n",
 801f3d8:	78 04 08 03 	mvhi r4,0x803                                  <== NOT EXECUTED
 801f3dc:	29 62 00 34 	lw r2,(r11+52)                                 <== NOT EXECUTED
 801f3e0:	29 63 00 18 	lw r3,(r11+24)                                 <== NOT EXECUTED
 801f3e4:	38 84 57 fc 	ori r4,r4,0x57fc                               <== NOT EXECUTED
 801f3e8:	45 80 00 03 	be r12,r0,801f3f4 <rtems_rfs_buffer_bdbuf_release+0x44><== NOT EXECUTED
 801f3ec:	78 04 08 03 	mvhi r4,0x803                                  <== NOT EXECUTED
 801f3f0:	38 84 78 74 	ori r4,r4,0x7874                               <== NOT EXECUTED
 801f3f4:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801f3f8:	38 21 78 80 	ori r1,r1,0x7880                               <== NOT EXECUTED
 801f3fc:	f8 00 07 e1 	calli 8021380 <printf>                         <== NOT EXECUTED
            ((intptr_t) buffer->user),                                
            buffer->block, modified ? "(modified)" : "");             
                                                                      
  if (modified)                                                       
 801f400:	45 80 00 04 	be r12,r0,801f410 <rtems_rfs_buffer_bdbuf_release+0x60>
    sc = rtems_bdbuf_release_modified (buffer);                       
 801f404:	b9 60 08 00 	mv r1,r11                                      
 801f408:	fb ff d0 31 	calli 80134cc <rtems_bdbuf_release_modified>   
 801f40c:	e0 00 00 03 	bi 801f418 <rtems_rfs_buffer_bdbuf_release+0x68>
  else                                                                
    sc = rtems_bdbuf_release (buffer);                                
 801f410:	b9 60 08 00 	mv r1,r11                                      
 801f414:	fb ff cf f9 	calli 80133f8 <rtems_bdbuf_release>            
int                                                                   
rtems_rfs_buffer_bdbuf_release (rtems_rfs_buffer* buffer,             
                                bool              modified)           
{                                                                     
  rtems_status_code sc;                                               
  int               rc = 0;                                           
 801f418:	7c 21 00 00 	cmpnei r1,r1,0                                 
 801f41c:	c8 01 08 00 	sub r1,r0,r1                                   
#endif                                                                
    rc = EIO;                                                         
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
 801f420:	20 21 00 05 	andi r1,r1,0x5                                 
 801f424:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801f428:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 801f42c:	2b 8c 00 08 	lw r12,(sp+8)                                  
 801f430:	37 9c 00 0c 	addi sp,sp,12                                  
 801f434:	c3 a0 00 00 	ret                                            
                                                                      

0801a3f0 <rtems_rfs_buffer_close>: return 0; } int rtems_rfs_buffer_close (rtems_rfs_file_system* fs) {
 801a3f0:	37 9c ff f4 	addi sp,sp,-12                                 
 801a3f4:	5b 8b 00 0c 	sw (sp+12),r11                                 
 801a3f8:	5b 8c 00 08 	sw (sp+8),r12                                  
 801a3fc:	5b 9d 00 04 	sw (sp+4),ra                                   
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CLOSE))                 
 801a400:	34 02 00 10 	mvi r2,16                                      
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_close (rtems_rfs_file_system* fs)                    
{                                                                     
 801a404:	b8 20 60 00 	mv r12,r1                                      
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CLOSE))                 
 801a408:	34 01 00 00 	mvi r1,0                                       
 801a40c:	fb ff d9 e6 	calli 8010ba4 <rtems_rfs_trace>                
 801a410:	44 20 00 04 	be r1,r0,801a420 <rtems_rfs_buffer_close+0x30> <== ALWAYS TAKEN
    printf ("rtems-rfs: buffer-close: closing\n");                    
 801a414:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801a418:	38 21 67 7c 	ori r1,r1,0x677c                               <== NOT EXECUTED
 801a41c:	f8 00 1c a1 	calli 80216a0 <puts>                           <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Change the block size to the media device size. It will release and sync
   * all buffers.                                                     
   */                                                                 
  rc = rtems_rfs_buffer_setblksize (fs, rtems_rfs_fs_media_block_size (fs));
 801a420:	29 82 00 10 	lw r2,(r12+16)                                 
 801a424:	b9 80 08 00 	mv r1,r12                                      
 801a428:	28 42 00 20 	lw r2,(r2+32)                                  
 801a42c:	fb ff ff b6 	calli 801a304 <rtems_rfs_buffer_setblksize>    
 801a430:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CLOSE))     
 801a434:	4c 01 00 0c 	bge r0,r1,801a464 <rtems_rfs_buffer_close+0x74><== ALWAYS TAKEN
 801a438:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801a43c:	34 02 00 10 	mvi r2,16                                      <== NOT EXECUTED
 801a440:	fb ff d9 d9 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801a444:	44 20 00 08 	be r1,r0,801a464 <rtems_rfs_buffer_close+0x74> <== NOT EXECUTED
    printf ("rtems-rfs: buffer-close: set media block size failed: %d: %s\n",
 801a448:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801a44c:	f8 00 20 88 	calli 802266c <strerror>                       <== NOT EXECUTED
 801a450:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 801a454:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801a458:	38 21 67 a0 	ori r1,r1,0x67a0                               <== NOT EXECUTED
 801a45c:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 801a460:	f8 00 1b c8 	calli 8021380 <printf>                         <== NOT EXECUTED
            rc, strerror (rc));                                       
                                                                      
  if (close (fs->device) < 0)                                         
 801a464:	29 81 00 0c 	lw r1,(r12+12)                                 
 801a468:	fb ff af de 	calli 80063e0 <close>                          
 801a46c:	4c 20 00 0e 	bge r1,r0,801a4a4 <rtems_rfs_buffer_close+0xb4><== ALWAYS TAKEN
  {                                                                   
    rc = errno;                                                       
 801a470:	f8 00 15 69 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 801a474:	28 2b 00 00 	lw r11,(r1+0)                                  <== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CLOSE))               
 801a478:	34 02 00 10 	mvi r2,16                                      <== NOT EXECUTED
 801a47c:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801a480:	fb ff d9 c9 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801a484:	44 20 00 08 	be r1,r0,801a4a4 <rtems_rfs_buffer_close+0xb4> <== NOT EXECUTED
      printf ("rtems-rfs: buffer-close: file close failed: %d: %s\n", 
 801a488:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801a48c:	f8 00 20 78 	calli 802266c <strerror>                       <== NOT EXECUTED
 801a490:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 801a494:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801a498:	38 21 67 e0 	ori r1,r1,0x67e0                               <== NOT EXECUTED
 801a49c:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 801a4a0:	f8 00 1b b8 	calli 8021380 <printf>                         <== NOT EXECUTED
              rc, strerror (rc));                                     
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
 801a4a4:	b9 60 08 00 	mv r1,r11                                      
 801a4a8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801a4ac:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 801a4b0:	2b 8c 00 08 	lw r12,(sp+8)                                  
 801a4b4:	37 9c 00 0c 	addi sp,sp,12                                  
 801a4b8:	c3 a0 00 00 	ret                                            
                                                                      

08019c40 <rtems_rfs_buffer_handle_release>: } int rtems_rfs_buffer_handle_release (rtems_rfs_file_system* fs, rtems_rfs_buffer_handle* handle) {
 8019c40:	37 9c ff ec 	addi sp,sp,-20                                 
 8019c44:	5b 8b 00 14 	sw (sp+20),r11                                 
 8019c48:	5b 8c 00 10 	sw (sp+16),r12                                 
 8019c4c:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8019c50:	5b 8e 00 08 	sw (sp+8),r14                                  
 8019c54:	5b 9d 00 04 	sw (sp+4),ra                                   
 8019c58:	b8 20 58 00 	mv r11,r1                                      
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_buffer_handle_has_block (handle))                     
 8019c5c:	28 41 00 08 	lw r1,(r2+8)                                   
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_handle_release (rtems_rfs_file_system*   fs,         
                                 rtems_rfs_buffer_handle* handle)     
{                                                                     
 8019c60:	b8 40 60 00 	mv r12,r2                                      
  int rc = 0;                                                         
 8019c64:	34 0d 00 00 	mvi r13,0                                      
                                                                      
  if (rtems_rfs_buffer_handle_has_block (handle))                     
 8019c68:	44 20 00 5d 	be r1,r0,8019ddc <rtems_rfs_buffer_handle_release+0x19c>
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_RELEASE))      
 8019c6c:	34 01 00 00 	mvi r1,0                                       
 8019c70:	34 02 02 00 	mvi r2,512                                     
 8019c74:	fb ff db cc 	calli 8010ba4 <rtems_rfs_trace>                
 8019c78:	44 20 00 12 	be r1,r0,8019cc0 <rtems_rfs_buffer_handle_release+0x80><== ALWAYS TAKEN
      printf ("rtems-rfs: buffer-release: block=%" PRIu32 " %s refs=%d %s\n",
 8019c7c:	41 81 00 00 	lbu r1,(r12+0)                                 <== NOT EXECUTED
 8019c80:	78 03 08 03 	mvhi r3,0x803                                  <== NOT EXECUTED
 8019c84:	29 82 00 04 	lw r2,(r12+4)                                  <== NOT EXECUTED
 8019c88:	38 63 57 fc 	ori r3,r3,0x57fc                               <== NOT EXECUTED
 8019c8c:	44 20 00 03 	be r1,r0,8019c98 <rtems_rfs_buffer_handle_release+0x58><== NOT EXECUTED
 8019c90:	78 03 08 03 	mvhi r3,0x803                                  <== NOT EXECUTED
 8019c94:	38 63 63 90 	ori r3,r3,0x6390                               <== NOT EXECUTED
              rtems_rfs_buffer_bnum (handle),                         
              rtems_rfs_buffer_dirty (handle) ? "(dirty)" : "",       
              rtems_rfs_buffer_refs (handle),                         
              rtems_rfs_buffer_refs (handle) == 0 ? "BAD REF COUNT" : "");
 8019c98:	29 81 00 08 	lw r1,(r12+8)                                  <== NOT EXECUTED
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_buffer_handle_has_block (handle))                     
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_RELEASE))      
      printf ("rtems-rfs: buffer-release: block=%" PRIu32 " %s refs=%d %s\n",
 8019c9c:	78 05 08 03 	mvhi r5,0x803                                  <== NOT EXECUTED
 8019ca0:	38 a5 57 fc 	ori r5,r5,0x57fc                               <== NOT EXECUTED
              rtems_rfs_buffer_bnum (handle),                         
              rtems_rfs_buffer_dirty (handle) ? "(dirty)" : "",       
              rtems_rfs_buffer_refs (handle),                         
              rtems_rfs_buffer_refs (handle) == 0 ? "BAD REF COUNT" : "");
 8019ca4:	28 24 00 30 	lw r4,(r1+48)                                  <== NOT EXECUTED
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_buffer_handle_has_block (handle))                     
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_RELEASE))      
      printf ("rtems-rfs: buffer-release: block=%" PRIu32 " %s refs=%d %s\n",
 8019ca8:	5c 80 00 03 	bne r4,r0,8019cb4 <rtems_rfs_buffer_handle_release+0x74><== NOT EXECUTED
 8019cac:	78 05 08 03 	mvhi r5,0x803                                  <== NOT EXECUTED
 8019cb0:	38 a5 63 98 	ori r5,r5,0x6398                               <== NOT EXECUTED
 8019cb4:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8019cb8:	38 21 63 a8 	ori r1,r1,0x63a8                               <== NOT EXECUTED
 8019cbc:	f8 00 1d b1 	calli 8021380 <printf>                         <== NOT EXECUTED
              rtems_rfs_buffer_bnum (handle),                         
              rtems_rfs_buffer_dirty (handle) ? "(dirty)" : "",       
              rtems_rfs_buffer_refs (handle),                         
              rtems_rfs_buffer_refs (handle) == 0 ? "BAD REF COUNT" : "");
                                                                      
    if (rtems_rfs_buffer_refs (handle) > 0)                           
 8019cc0:	29 81 00 08 	lw r1,(r12+8)                                  
 8019cc4:	28 22 00 30 	lw r2,(r1+48)                                  
 8019cc8:	4c 02 00 03 	bge r0,r2,8019cd4 <rtems_rfs_buffer_handle_release+0x94><== NEVER TAKEN
      rtems_rfs_buffer_refs_down (handle);                            
 8019ccc:	34 42 ff ff 	addi r2,r2,-1                                  
 8019cd0:	58 22 00 30 	sw (r1+48),r2                                  
                                                                      
    if (rtems_rfs_buffer_refs (handle) == 0)                          
 8019cd4:	28 22 00 30 	lw r2,(r1+48)                                  
                                                                      
int                                                                   
rtems_rfs_buffer_handle_release (rtems_rfs_file_system*   fs,         
                                 rtems_rfs_buffer_handle* handle)     
{                                                                     
  int rc = 0;                                                         
 8019cd8:	34 0d 00 00 	mvi r13,0                                      
              rtems_rfs_buffer_refs (handle) == 0 ? "BAD REF COUNT" : "");
                                                                      
    if (rtems_rfs_buffer_refs (handle) > 0)                           
      rtems_rfs_buffer_refs_down (handle);                            
                                                                      
    if (rtems_rfs_buffer_refs (handle) == 0)                          
 8019cdc:	5c 40 00 3f 	bne r2,r0,8019dd8 <rtems_rfs_buffer_handle_release+0x198>
 8019ce0:	fb ff f1 54 	calli 8016230 <_Chain_Extract>                 
    {                                                                 
      rtems_chain_extract (rtems_rfs_buffer_link (handle));           
      fs->buffers_count--;                                            
 8019ce4:	29 61 00 50 	lw r1,(r11+80)                                 
                                                                      
      if (rtems_rfs_fs_no_local_cache (fs))                           
 8019ce8:	29 6e 00 00 	lw r14,(r11+0)                                 
      rtems_rfs_buffer_refs_down (handle);                            
                                                                      
    if (rtems_rfs_buffer_refs (handle) == 0)                          
    {                                                                 
      rtems_chain_extract (rtems_rfs_buffer_link (handle));           
      fs->buffers_count--;                                            
 8019cec:	34 21 ff ff 	addi r1,r1,-1                                  
 8019cf0:	59 61 00 50 	sw (r11+80),r1                                 
                                                                      
      if (rtems_rfs_fs_no_local_cache (fs))                           
 8019cf4:	21 ce 00 02 	andi r14,r14,0x2                               
 8019cf8:	45 cd 00 07 	be r14,r13,8019d14 <rtems_rfs_buffer_handle_release+0xd4>
      {                                                               
        handle->buffer->user = (void*) 0;                             
 8019cfc:	29 81 00 08 	lw r1,(r12+8)                                  
        rc = rtems_rfs_buffer_io_release (handle->buffer,             
 8019d00:	41 82 00 00 	lbu r2,(r12+0)                                 
      rtems_chain_extract (rtems_rfs_buffer_link (handle));           
      fs->buffers_count--;                                            
                                                                      
      if (rtems_rfs_fs_no_local_cache (fs))                           
      {                                                               
        handle->buffer->user = (void*) 0;                             
 8019d04:	58 20 00 34 	sw (r1+52),r0                                  
        rc = rtems_rfs_buffer_io_release (handle->buffer,             
 8019d08:	f8 00 15 aa 	calli 801f3b0 <rtems_rfs_buffer_bdbuf_release> 
 8019d0c:	b8 20 68 00 	mv r13,r1                                      
 8019d10:	e0 00 00 32 	bi 8019dd8 <rtems_rfs_buffer_handle_release+0x198>
         * head.                                                      
         *                                                            
         * This code stops a large series of transactions causing all the
         * buffers in the cache being held in queues of this file system.
         */                                                           
        if ((fs->release_count +                                      
 8019d14:	29 62 00 70 	lw r2,(r11+112)                                
 8019d18:	29 61 00 60 	lw r1,(r11+96)                                 
                                                                      
int                                                                   
rtems_rfs_buffer_handle_release (rtems_rfs_file_system*   fs,         
                                 rtems_rfs_buffer_handle* handle)     
{                                                                     
  int rc = 0;                                                         
 8019d1c:	b9 c0 68 00 	mv r13,r14                                     
         * head.                                                      
         *                                                            
         * This code stops a large series of transactions causing all the
         * buffers in the cache being held in queues of this file system.
         */                                                           
        if ((fs->release_count +                                      
 8019d20:	b4 41 08 00 	add r1,r2,r1                                   
 8019d24:	29 62 00 40 	lw r2,(r11+64)                                 
 8019d28:	54 41 00 1e 	bgu r2,r1,8019da0 <rtems_rfs_buffer_handle_release+0x160>
             fs->release_modified_count) >= fs->max_held_buffers)     
        {                                                             
          rtems_rfs_buffer* buffer;                                   
          bool              modified;                                 
                                                                      
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_RELEASE))
 8019d2c:	34 01 00 00 	mvi r1,0                                       
 8019d30:	34 02 02 00 	mvi r2,512                                     
 8019d34:	fb ff db 9c 	calli 8010ba4 <rtems_rfs_trace>                
 8019d38:	44 2e 00 07 	be r1,r14,8019d54 <rtems_rfs_buffer_handle_release+0x114><== ALWAYS TAKEN
            printf ("rtems-rfs: buffer-release: local cache overflow:"
 8019d3c:	29 63 00 70 	lw r3,(r11+112)                                <== NOT EXECUTED
 8019d40:	29 62 00 60 	lw r2,(r11+96)                                 <== NOT EXECUTED
 8019d44:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8019d48:	38 21 63 dc 	ori r1,r1,0x63dc                               <== NOT EXECUTED
 8019d4c:	b4 62 10 00 	add r2,r3,r2                                   <== NOT EXECUTED
 8019d50:	f8 00 1d 8c 	calli 8021380 <printf>                         <== NOT EXECUTED
                    " %" PRIu32 "\n", fs->release_count + fs->release_modified_count);
                                                                      
          if (fs->release_count > fs->release_modified_count)         
 8019d54:	29 61 00 60 	lw r1,(r11+96)                                 
 8019d58:	29 62 00 70 	lw r2,(r11+112)                                
 8019d5c:	50 41 00 08 	bgeu r2,r1,8019d7c <rtems_rfs_buffer_handle_release+0x13c>
 */                                                                   
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(               
  rtems_chain_control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Get( the_chain );                                     
 8019d60:	35 61 00 54 	addi r1,r11,84                                 
 8019d64:	fb ff bf f6 	calli 8009d3c <_Chain_Get>                     
          {                                                           
            buffer = (rtems_rfs_buffer*) rtems_chain_get (&fs->release);
            fs->release_count--;                                      
 8019d68:	29 62 00 60 	lw r2,(r11+96)                                 
 8019d6c:	34 42 ff ff 	addi r2,r2,-1                                  
 8019d70:	59 62 00 60 	sw (r11+96),r2                                 
            modified = false;                                         
 8019d74:	34 02 00 00 	mvi r2,0                                       
 8019d78:	e0 00 00 07 	bi 8019d94 <rtems_rfs_buffer_handle_release+0x154>
 8019d7c:	35 61 00 64 	addi r1,r11,100                                
 8019d80:	fb ff bf ef 	calli 8009d3c <_Chain_Get>                     
          }                                                           
          else                                                        
          {                                                           
            buffer =                                                  
              (rtems_rfs_buffer*) rtems_chain_get (&fs->release_modified);
            fs->release_modified_count--;                             
 8019d84:	29 62 00 70 	lw r2,(r11+112)                                
 8019d88:	34 42 ff ff 	addi r2,r2,-1                                  
 8019d8c:	59 62 00 70 	sw (r11+112),r2                                
            modified = true;                                          
 8019d90:	34 02 00 01 	mvi r2,1                                       
          }                                                           
          buffer->user = (void*) 0;                                   
 8019d94:	58 20 00 34 	sw (r1+52),r0                                  
          rc = rtems_rfs_buffer_io_release (buffer, modified);        
 8019d98:	f8 00 15 86 	calli 801f3b0 <rtems_rfs_buffer_bdbuf_release> 
 8019d9c:	b8 20 68 00 	mv r13,r1                                      
        }                                                             
                                                                      
        if (rtems_rfs_buffer_dirty (handle))                          
 8019da0:	41 81 00 00 	lbu r1,(r12+0)                                 
 8019da4:	29 82 00 08 	lw r2,(r12+8)                                  
 8019da8:	44 20 00 07 	be r1,r0,8019dc4 <rtems_rfs_buffer_handle_release+0x184>
RTEMS_INLINE_ROUTINE void rtems_chain_append(                         
  rtems_chain_control *the_chain,                                     
  rtems_chain_node    *the_node                                       
)                                                                     
{                                                                     
  _Chain_Append( the_chain, the_node );                               
 8019dac:	35 61 00 64 	addi r1,r11,100                                
 8019db0:	fb ff bf d7 	calli 8009d0c <_Chain_Append>                  
        {                                                             
          rtems_chain_append (&fs->release_modified,                  
                              rtems_rfs_buffer_link (handle));        
          fs->release_modified_count++;                               
 8019db4:	29 61 00 70 	lw r1,(r11+112)                                
 8019db8:	34 21 00 01 	addi r1,r1,1                                   
 8019dbc:	59 61 00 70 	sw (r11+112),r1                                
 8019dc0:	e0 00 00 06 	bi 8019dd8 <rtems_rfs_buffer_handle_release+0x198>
 8019dc4:	35 61 00 54 	addi r1,r11,84                                 
 8019dc8:	fb ff bf d1 	calli 8009d0c <_Chain_Append>                  
        }                                                             
        else                                                          
        {                                                             
          rtems_chain_append (&fs->release, rtems_rfs_buffer_link (handle));
          fs->release_count++;                                        
 8019dcc:	29 61 00 60 	lw r1,(r11+96)                                 
 8019dd0:	34 21 00 01 	addi r1,r1,1                                   
 8019dd4:	59 61 00 60 	sw (r11+96),r1                                 
        }                                                             
      }                                                               
    }                                                                 
    handle->buffer = NULL;                                            
 8019dd8:	59 80 00 08 	sw (r12+8),r0                                  
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
 8019ddc:	b9 a0 08 00 	mv r1,r13                                      
 8019de0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8019de4:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8019de8:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8019dec:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8019df0:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8019df4:	37 9c 00 14 	addi sp,sp,20                                  
 8019df8:	c3 a0 00 00 	ret                                            
                                                                      

08019dfc <rtems_rfs_buffer_handle_request>: int rtems_rfs_buffer_handle_request (rtems_rfs_file_system* fs, rtems_rfs_buffer_handle* handle, rtems_rfs_buffer_block block, bool read) {
 8019dfc:	37 9c ff e4 	addi sp,sp,-28                                 
 8019e00:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8019e04:	5b 8c 00 18 	sw (sp+24),r12                                 
 8019e08:	5b 8d 00 14 	sw (sp+20),r13                                 
 8019e0c:	5b 8e 00 10 	sw (sp+16),r14                                 
 8019e10:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8019e14:	5b 90 00 08 	sw (sp+8),r16                                  
 8019e18:	5b 9d 00 04 	sw (sp+4),ra                                   
 8019e1c:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  /*                                                                  
   * If the handle has a buffer release it. This allows a handle to be reused
   * without needing to close then open it again.                     
   */                                                                 
  if (rtems_rfs_buffer_handle_has_block (handle))                     
 8019e20:	28 41 00 08 	lw r1,(r2+8)                                   
int                                                                   
rtems_rfs_buffer_handle_request (rtems_rfs_file_system*   fs,         
                                 rtems_rfs_buffer_handle* handle,     
                                 rtems_rfs_buffer_block   block,      
                                 bool                     read)       
{                                                                     
 8019e24:	b8 40 58 00 	mv r11,r2                                      
 8019e28:	b8 60 68 00 	mv r13,r3                                      
 8019e2c:	20 8f 00 ff 	andi r15,r4,0xff                               
                                                                      
  /*                                                                  
   * If the handle has a buffer release it. This allows a handle to be reused
   * without needing to close then open it again.                     
   */                                                                 
  if (rtems_rfs_buffer_handle_has_block (handle))                     
 8019e30:	44 20 00 14 	be r1,r0,8019e80 <rtems_rfs_buffer_handle_request+0x84>
  {                                                                   
    /*                                                                
     * Treat block 0 as special to handle the loading of the super block.
     */                                                               
    if (block && (rtems_rfs_buffer_bnum (handle) == block))           
 8019e34:	44 60 00 04 	be r3,r0,8019e44 <rtems_rfs_buffer_handle_request+0x48><== NEVER TAKEN
 8019e38:	28 41 00 04 	lw r1,(r2+4)                                   
      return 0;                                                       
 8019e3c:	34 0e 00 00 	mvi r14,0                                      
  if (rtems_rfs_buffer_handle_has_block (handle))                     
  {                                                                   
    /*                                                                
     * Treat block 0 as special to handle the loading of the super block.
     */                                                               
    if (block && (rtems_rfs_buffer_bnum (handle) == block))           
 8019e40:	44 23 00 7f 	be r1,r3,801a03c <rtems_rfs_buffer_handle_request+0x240>
      return 0;                                                       
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))      
 8019e44:	34 01 00 00 	mvi r1,0                                       
 8019e48:	34 02 01 00 	mvi r2,256                                     
 8019e4c:	fb ff db 56 	calli 8010ba4 <rtems_rfs_trace>                
 8019e50:	44 20 00 05 	be r1,r0,8019e64 <rtems_rfs_buffer_handle_request+0x68><== ALWAYS TAKEN
      printf ("rtems-rfs: buffer-request: handle has buffer: %" PRIu32 "\n",
 8019e54:	29 62 00 04 	lw r2,(r11+4)                                  <== NOT EXECUTED
 8019e58:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8019e5c:	38 21 64 18 	ori r1,r1,0x6418                               <== NOT EXECUTED
 8019e60:	f8 00 1d 48 	calli 8021380 <printf>                         <== NOT EXECUTED
              rtems_rfs_buffer_bnum (handle));                        
                                                                      
    rc = rtems_rfs_buffer_handle_release (fs, handle);                
 8019e64:	b9 80 08 00 	mv r1,r12                                      
 8019e68:	b9 60 10 00 	mv r2,r11                                      
 8019e6c:	fb ff ff 75 	calli 8019c40 <rtems_rfs_buffer_handle_release>
 8019e70:	b8 20 70 00 	mv r14,r1                                      
    if (rc > 0)                                                       
 8019e74:	48 20 00 72 	bg r1,r0,801a03c <rtems_rfs_buffer_handle_request+0x240><== NEVER TAKEN
      return rc;                                                      
    handle->dirty = false;                                            
 8019e78:	31 60 00 00 	sb (r11+0),r0                                  
    handle->bnum = 0;                                                 
 8019e7c:	59 60 00 04 	sw (r11+4),r0                                  
  }                                                                   
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))        
 8019e80:	34 01 00 00 	mvi r1,0                                       
 8019e84:	34 02 01 00 	mvi r2,256                                     
 8019e88:	fb ff db 47 	calli 8010ba4 <rtems_rfs_trace>                
 8019e8c:	44 20 00 05 	be r1,r0,8019ea0 <rtems_rfs_buffer_handle_request+0xa4><== ALWAYS TAKEN
    printf ("rtems-rfs: buffer-request: block=%" PRIu32 "\n", block); 
 8019e90:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8019e94:	38 21 64 4c 	ori r1,r1,0x644c                               <== NOT EXECUTED
 8019e98:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 8019e9c:	f8 00 1d 39 	calli 8021380 <printf>                         <== NOT EXECUTED
   * currently attached to a handle. If it is share the access. A buffer could
   * be shared where different parts of the block have separate functions. An
   * example is an inode block and the file system needs to handle 2 inodes in
   * the same block at the same time.                                 
   */                                                                 
  if (fs->buffers_count)                                              
 8019ea0:	29 81 00 50 	lw r1,(r12+80)                                 
 8019ea4:	44 20 00 11 	be r1,r0,8019ee8 <rtems_rfs_buffer_handle_request+0xec>
  {                                                                   
    /*                                                                
     * Check the active buffer list for shared buffers.               
     */                                                               
    handle->buffer = rtems_rfs_scan_chain (&fs->buffers,              
 8019ea8:	35 81 00 44 	addi r1,r12,68                                 
 8019eac:	35 82 00 50 	addi r2,r12,80                                 
 8019eb0:	b9 a0 18 00 	mv r3,r13                                      
 8019eb4:	fb ff ff 1c 	calli 8019b24 <rtems_rfs_scan_chain>           
 8019eb8:	59 61 00 08 	sw (r11+8),r1                                  
                                           &fs->buffers_count,        
                                           block);                    
    if (rtems_rfs_buffer_handle_has_block (handle) &&                 
 8019ebc:	44 20 00 0b 	be r1,r0,8019ee8 <rtems_rfs_buffer_handle_request+0xec>
        rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))      
 8019ec0:	34 01 00 00 	mvi r1,0                                       
 8019ec4:	34 02 01 00 	mvi r2,256                                     
 8019ec8:	fb ff db 37 	calli 8010ba4 <rtems_rfs_trace>                
     * Check the active buffer list for shared buffers.               
     */                                                               
    handle->buffer = rtems_rfs_scan_chain (&fs->buffers,              
                                           &fs->buffers_count,        
                                           block);                    
    if (rtems_rfs_buffer_handle_has_block (handle) &&                 
 8019ecc:	44 20 00 07 	be r1,r0,8019ee8 <rtems_rfs_buffer_handle_request+0xec><== ALWAYS TAKEN
        rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))      
      printf ("rtems-rfs: buffer-request: buffer shared: refs: %d\n", 
              rtems_rfs_buffer_refs (handle) + 1);                    
 8019ed0:	29 61 00 08 	lw r1,(r11+8)                                  <== NOT EXECUTED
    handle->buffer = rtems_rfs_scan_chain (&fs->buffers,              
                                           &fs->buffers_count,        
                                           block);                    
    if (rtems_rfs_buffer_handle_has_block (handle) &&                 
        rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))      
      printf ("rtems-rfs: buffer-request: buffer shared: refs: %d\n", 
 8019ed4:	28 22 00 30 	lw r2,(r1+48)                                  <== NOT EXECUTED
 8019ed8:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8019edc:	38 21 64 74 	ori r1,r1,0x6474                               <== NOT EXECUTED
 8019ee0:	34 42 00 01 	addi r2,r2,1                                   <== NOT EXECUTED
 8019ee4:	f8 00 1d 27 	calli 8021380 <printf>                         <== NOT EXECUTED
  /*                                                                  
   * If the buffer has not been found check the local cache of released
   * buffers. There are release and released modified lists to preserve the
   * state.                                                           
   */                                                                 
  if (!rtems_rfs_fs_no_local_cache (fs) &&                            
 8019ee8:	29 82 00 00 	lw r2,(r12+0)                                  
 8019eec:	20 42 00 02 	andi r2,r2,0x2                                 
 8019ef0:	5c 40 00 16 	bne r2,r0,8019f48 <rtems_rfs_buffer_handle_request+0x14c>
 8019ef4:	29 61 00 08 	lw r1,(r11+8)                                  
 8019ef8:	5c 22 00 14 	bne r1,r2,8019f48 <rtems_rfs_buffer_handle_request+0x14c>
      !rtems_rfs_buffer_handle_has_block (handle))                    
  {                                                                   
    /*                                                                
     * Check the local cache of released buffers.                     
     */                                                               
    if (fs->release_count)                                            
 8019efc:	29 82 00 60 	lw r2,(r12+96)                                 
 8019f00:	44 41 00 06 	be r2,r1,8019f18 <rtems_rfs_buffer_handle_request+0x11c>
      handle->buffer = rtems_rfs_scan_chain (&fs->release,            
 8019f04:	35 81 00 54 	addi r1,r12,84                                 
 8019f08:	35 82 00 60 	addi r2,r12,96                                 
 8019f0c:	b9 a0 18 00 	mv r3,r13                                      
 8019f10:	fb ff ff 05 	calli 8019b24 <rtems_rfs_scan_chain>           
 8019f14:	59 61 00 08 	sw (r11+8),r1                                  
                                             &fs->release_count,      
                                             block);                  
                                                                      
    if (!rtems_rfs_buffer_handle_has_block (handle) &&                
 8019f18:	29 61 00 08 	lw r1,(r11+8)                                  
 8019f1c:	5c 20 00 0b 	bne r1,r0,8019f48 <rtems_rfs_buffer_handle_request+0x14c>
 8019f20:	29 82 00 70 	lw r2,(r12+112)                                
 8019f24:	44 41 00 09 	be r2,r1,8019f48 <rtems_rfs_buffer_handle_request+0x14c>
        fs->release_modified_count)                                   
    {                                                                 
      handle->buffer = rtems_rfs_scan_chain (&fs->release_modified,   
 8019f28:	35 81 00 64 	addi r1,r12,100                                
 8019f2c:	35 82 00 70 	addi r2,r12,112                                
 8019f30:	b9 a0 18 00 	mv r3,r13                                      
 8019f34:	fb ff fe fc 	calli 8019b24 <rtems_rfs_scan_chain>           
 8019f38:	59 61 00 08 	sw (r11+8),r1                                  
                                             &fs->release_modified_count,
                                             block);                  
      /*                                                              
       * If we found a buffer retain the dirty buffer state.          
       */                                                             
      if (rtems_rfs_buffer_handle_has_block (handle))                 
 8019f3c:	44 20 00 03 	be r1,r0,8019f48 <rtems_rfs_buffer_handle_request+0x14c>
        rtems_rfs_buffer_mark_dirty (handle);                         
 8019f40:	34 01 00 01 	mvi r1,1                                       
 8019f44:	31 61 00 00 	sb (r11+0),r1                                  
  }                                                                   
                                                                      
  /*                                                                  
   * If not located we request the buffer from the I/O layer.         
   */                                                                 
  if (!rtems_rfs_buffer_handle_has_block (handle))                    
 8019f48:	29 70 00 08 	lw r16,(r11+8)                                 
 8019f4c:	5e 00 00 1e 	bne r16,r0,8019fc4 <rtems_rfs_buffer_handle_request+0x1c8>
  {                                                                   
    rc = rtems_rfs_buffer_io_request (fs, block, read, &handle->buffer);
 8019f50:	b9 80 08 00 	mv r1,r12                                      
 8019f54:	b9 a0 10 00 	mv r2,r13                                      
 8019f58:	b9 e0 18 00 	mv r3,r15                                      
 8019f5c:	35 64 00 08 	addi r4,r11,8                                  
 8019f60:	f8 00 15 04 	calli 801f370 <rtems_rfs_buffer_bdbuf_request> 
 8019f64:	b8 20 70 00 	mv r14,r1                                      
                                                                      
    if (rc > 0)                                                       
 8019f68:	4e 01 00 14 	bge r16,r1,8019fb8 <rtems_rfs_buffer_handle_request+0x1bc><== ALWAYS TAKEN
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))    
 8019f6c:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 8019f70:	34 02 01 00 	mvi r2,256                                     <== NOT EXECUTED
 8019f74:	fb ff db 0c 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 8019f78:	44 20 00 31 	be r1,r0,801a03c <rtems_rfs_buffer_handle_request+0x240><== NOT EXECUTED
        printf ("rtems-rfs: buffer-request: block=%" PRIu32 ": bdbuf-%s: %d: %s\n",
 8019f7c:	78 0b 08 03 	mvhi r11,0x803                                 <== NOT EXECUTED
 8019f80:	39 6b 64 14 	ori r11,r11,0x6414                             <== NOT EXECUTED
 8019f84:	45 e0 00 03 	be r15,r0,8019f90 <rtems_rfs_buffer_handle_request+0x194><== NOT EXECUTED
 8019f88:	78 0b 08 03 	mvhi r11,0x803                                 <== NOT EXECUTED
 8019f8c:	39 6b 5a 40 	ori r11,r11,0x5a40                             <== NOT EXECUTED
 8019f90:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 8019f94:	f8 00 21 b6 	calli 802266c <strerror>                       <== NOT EXECUTED
 8019f98:	b8 20 28 00 	mv r5,r1                                       <== NOT EXECUTED
 8019f9c:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8019fa0:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 8019fa4:	b9 60 18 00 	mv r3,r11                                      <== NOT EXECUTED
 8019fa8:	b9 c0 20 00 	mv r4,r14                                      <== NOT EXECUTED
 8019fac:	38 21 64 a8 	ori r1,r1,0x64a8                               <== NOT EXECUTED
 8019fb0:	f8 00 1c f4 	calli 8021380 <printf>                         <== NOT EXECUTED
 8019fb4:	e0 00 00 22 	bi 801a03c <rtems_rfs_buffer_handle_request+0x240><== NOT EXECUTED
                block, read ? "read" : "get", rc, strerror (rc));     
      return rc;                                                      
    }                                                                 
                                                                      
    rtems_chain_set_off_chain (rtems_rfs_buffer_link(handle));        
 8019fb8:	29 61 00 08 	lw r1,(r11+8)                                  
 8019fbc:	58 20 00 04 	sw (r1+4),r0                                   
 8019fc0:	58 20 00 00 	sw (r1+0),r0                                   
  }                                                                   
                                                                      
  /*                                                                  
   * Increase the reference count of the buffer.                      
   */                                                                 
  rtems_rfs_buffer_refs_up (handle);                                  
 8019fc4:	29 62 00 08 	lw r2,(r11+8)                                  
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))        
    printf ("rtems-rfs: buffer-request: block=%" PRIu32 " bdbuf-%s=%" PRIu32 " refs=%d\n",
            block, read ? "read" : "get", handle->buffer->block,      
            handle->buffer->references);                              
                                                                      
  return 0;                                                           
 8019fc8:	34 0e 00 00 	mvi r14,0                                      
  }                                                                   
                                                                      
  /*                                                                  
   * Increase the reference count of the buffer.                      
   */                                                                 
  rtems_rfs_buffer_refs_up (handle);                                  
 8019fcc:	28 41 00 30 	lw r1,(r2+48)                                  
 8019fd0:	34 21 00 01 	addi r1,r1,1                                   
 8019fd4:	58 41 00 30 	sw (r2+48),r1                                  
 8019fd8:	35 81 00 44 	addi r1,r12,68                                 
 8019fdc:	fb ff bf 4c 	calli 8009d0c <_Chain_Append>                  
  rtems_chain_append (&fs->buffers, rtems_rfs_buffer_link (handle));  
  fs->buffers_count++;                                                
 8019fe0:	29 81 00 50 	lw r1,(r12+80)                                 
                                                                      
  handle->buffer->user = (void*) ((intptr_t) block);                  
  handle->bnum = block;                                               
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))        
 8019fe4:	34 02 01 00 	mvi r2,256                                     
  /*                                                                  
   * Increase the reference count of the buffer.                      
   */                                                                 
  rtems_rfs_buffer_refs_up (handle);                                  
  rtems_chain_append (&fs->buffers, rtems_rfs_buffer_link (handle));  
  fs->buffers_count++;                                                
 8019fe8:	34 21 00 01 	addi r1,r1,1                                   
 8019fec:	59 81 00 50 	sw (r12+80),r1                                 
                                                                      
  handle->buffer->user = (void*) ((intptr_t) block);                  
 8019ff0:	29 61 00 08 	lw r1,(r11+8)                                  
 8019ff4:	58 2d 00 34 	sw (r1+52),r13                                 
  handle->bnum = block;                                               
 8019ff8:	59 6d 00 04 	sw (r11+4),r13                                 
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))        
 8019ffc:	34 01 00 00 	mvi r1,0                                       
 801a000:	fb ff da e9 	calli 8010ba4 <rtems_rfs_trace>                
 801a004:	44 20 00 0e 	be r1,r0,801a03c <rtems_rfs_buffer_handle_request+0x240><== ALWAYS TAKEN
    printf ("rtems-rfs: buffer-request: block=%" PRIu32 " bdbuf-%s=%" PRIu32 " refs=%d\n",
 801a008:	78 03 08 03 	mvhi r3,0x803                                  <== NOT EXECUTED
 801a00c:	38 63 64 14 	ori r3,r3,0x6414                               <== NOT EXECUTED
 801a010:	45 e0 00 03 	be r15,r0,801a01c <rtems_rfs_buffer_handle_request+0x220><== NOT EXECUTED
 801a014:	78 03 08 03 	mvhi r3,0x803                                  <== NOT EXECUTED
 801a018:	38 63 5a 40 	ori r3,r3,0x5a40                               <== NOT EXECUTED
            block, read ? "read" : "get", handle->buffer->block,      
 801a01c:	29 65 00 08 	lw r5,(r11+8)                                  <== NOT EXECUTED
                                                                      
  handle->buffer->user = (void*) ((intptr_t) block);                  
  handle->bnum = block;                                               
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))        
    printf ("rtems-rfs: buffer-request: block=%" PRIu32 " bdbuf-%s=%" PRIu32 " refs=%d\n",
 801a020:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801a024:	38 21 64 e0 	ori r1,r1,0x64e0                               <== NOT EXECUTED
 801a028:	28 a4 00 18 	lw r4,(r5+24)                                  <== NOT EXECUTED
 801a02c:	28 a5 00 30 	lw r5,(r5+48)                                  <== NOT EXECUTED
 801a030:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
            block, read ? "read" : "get", handle->buffer->block,      
            handle->buffer->references);                              
                                                                      
  return 0;                                                           
 801a034:	34 0e 00 00 	mvi r14,0                                      <== NOT EXECUTED
                                                                      
  handle->buffer->user = (void*) ((intptr_t) block);                  
  handle->bnum = block;                                               
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))        
    printf ("rtems-rfs: buffer-request: block=%" PRIu32 " bdbuf-%s=%" PRIu32 " refs=%d\n",
 801a038:	f8 00 1c d2 	calli 8021380 <printf>                         <== NOT EXECUTED
            block, read ? "read" : "get", handle->buffer->block,      
            handle->buffer->references);                              
                                                                      
  return 0;                                                           
}                                                                     
 801a03c:	b9 c0 08 00 	mv r1,r14                                      
 801a040:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801a044:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 801a048:	2b 8c 00 18 	lw r12,(sp+24)                                 
 801a04c:	2b 8d 00 14 	lw r13,(sp+20)                                 
 801a050:	2b 8e 00 10 	lw r14,(sp+16)                                 
 801a054:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 801a058:	2b 90 00 08 	lw r16,(sp+8)                                  
 801a05c:	37 9c 00 1c 	addi sp,sp,28                                  
 801a060:	c3 a0 00 00 	ret                                            
                                                                      

0801a064 <rtems_rfs_buffer_open>: return rc; } int rtems_rfs_buffer_open (const char* name, rtems_rfs_file_system* fs) {
 801a064:	37 9c ff a8 	addi sp,sp,-88                                 
 801a068:	5b 8b 00 10 	sw (sp+16),r11                                 
 801a06c:	5b 8c 00 0c 	sw (sp+12),r12                                 
 801a070:	5b 8d 00 08 	sw (sp+8),r13                                  
 801a074:	5b 9d 00 04 	sw (sp+4),ra                                   
 801a078:	b8 20 68 00 	mv r13,r1                                      
 801a07c:	b8 40 60 00 	mv r12,r2                                      
  struct stat st;                                                     
#if RTEMS_RFS_USE_LIBBLOCK                                            
  int rv;                                                             
#endif                                                                
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))                  
 801a080:	34 01 00 00 	mvi r1,0                                       
 801a084:	34 02 00 20 	mvi r2,32                                      
 801a088:	fb ff da c7 	calli 8010ba4 <rtems_rfs_trace>                
 801a08c:	44 20 00 05 	be r1,r0,801a0a0 <rtems_rfs_buffer_open+0x3c>  <== ALWAYS TAKEN
    printf ("rtems-rfs: buffer-open: opening: %s\n", name);           
 801a090:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801a094:	38 21 65 1c 	ori r1,r1,0x651c                               <== NOT EXECUTED
 801a098:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 801a09c:	f8 00 1c b9 	calli 8021380 <printf>                         <== NOT EXECUTED
                                                                      
  fs->device = open (name, O_RDWR);                                   
 801a0a0:	b9 a0 08 00 	mv r1,r13                                      
 801a0a4:	34 02 00 02 	mvi r2,2                                       
 801a0a8:	fb ff b5 42 	calli 80075b0 <open>                           
 801a0ac:	59 81 00 0c 	sw (r12+12),r1                                 
  if (fs->device < 0)                                                 
 801a0b0:	4c 20 00 09 	bge r1,r0,801a0d4 <rtems_rfs_buffer_open+0x70> <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_OPEN))                
 801a0b4:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801a0b8:	34 02 00 08 	mvi r2,8                                       <== NOT EXECUTED
 801a0bc:	fb ff da ba 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
      printf ("rtems-rfs: buffer-open: cannot open file\n");          
    return ENXIO;                                                     
 801a0c0:	34 0b 00 06 	mvi r11,6                                      <== NOT EXECUTED
    printf ("rtems-rfs: buffer-open: opening: %s\n", name);           
                                                                      
  fs->device = open (name, O_RDWR);                                   
  if (fs->device < 0)                                                 
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_OPEN))                
 801a0c4:	44 20 00 3c 	be r1,r0,801a1b4 <rtems_rfs_buffer_open+0x150> <== NOT EXECUTED
      printf ("rtems-rfs: buffer-open: cannot open file\n");          
 801a0c8:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801a0cc:	38 21 65 44 	ori r1,r1,0x6544                               <== NOT EXECUTED
 801a0d0:	e0 00 00 2d 	bi 801a184 <rtems_rfs_buffer_open+0x120>       <== NOT EXECUTED
    return ENXIO;                                                     
  }                                                                   
                                                                      
  if (fstat (fs->device, &st) < 0)                                    
 801a0d4:	37 82 00 14 	addi r2,sp,20                                  
 801a0d8:	fb ff b1 1b 	calli 8006544 <fstat>                          
 801a0dc:	4c 20 00 0e 	bge r1,r0,801a114 <rtems_rfs_buffer_open+0xb0> <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_OPEN))                
 801a0e0:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801a0e4:	34 02 00 08 	mvi r2,8                                       <== NOT EXECUTED
 801a0e8:	fb ff da af 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
      printf ("rtems-rfs: buffer-open: stat '%s' failed: %s\n",       
              name, strerror (errno));                                
    return ENXIO;                                                     
 801a0ec:	34 0b 00 06 	mvi r11,6                                      <== NOT EXECUTED
    return ENXIO;                                                     
  }                                                                   
                                                                      
  if (fstat (fs->device, &st) < 0)                                    
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_OPEN))                
 801a0f0:	44 20 00 31 	be r1,r0,801a1b4 <rtems_rfs_buffer_open+0x150> <== NOT EXECUTED
      printf ("rtems-rfs: buffer-open: stat '%s' failed: %s\n",       
              name, strerror (errno));                                
 801a0f4:	f8 00 16 48 	calli 801fa14 <__errno>                        <== NOT EXECUTED
  }                                                                   
                                                                      
  if (fstat (fs->device, &st) < 0)                                    
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_OPEN))                
      printf ("rtems-rfs: buffer-open: stat '%s' failed: %s\n",       
 801a0f8:	28 21 00 00 	lw r1,(r1+0)                                   <== NOT EXECUTED
 801a0fc:	f8 00 21 5c 	calli 802266c <strerror>                       <== NOT EXECUTED
 801a100:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 801a104:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801a108:	38 21 65 70 	ori r1,r1,0x6570                               <== NOT EXECUTED
 801a10c:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 801a110:	e0 00 00 28 	bi 801a1b0 <rtems_rfs_buffer_open+0x14c>       <== NOT EXECUTED
                                                                      
#if RTEMS_RFS_USE_LIBBLOCK                                            
  /*                                                                  
   * Is the device a block device ?                                   
   */                                                                 
  if (!S_ISBLK (st.st_mode))                                          
 801a114:	2b 82 00 20 	lw r2,(sp+32)                                  
 801a118:	34 01 60 00 	mvi r1,24576                                   
 801a11c:	20 42 f0 00 	andi r2,r2,0xf000                              
 801a120:	44 41 00 0b 	be r2,r1,801a14c <rtems_rfs_buffer_open+0xe8>  <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_OPEN))                
 801a124:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801a128:	34 02 00 08 	mvi r2,8                                       <== NOT EXECUTED
 801a12c:	fb ff da 9e 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
      printf ("rtems-rfs: buffer-open: '%s' is not a block device\n", name);
    return ENXIO;                                                     
 801a130:	34 0b 00 06 	mvi r11,6                                      <== NOT EXECUTED
  /*                                                                  
   * Is the device a block device ?                                   
   */                                                                 
  if (!S_ISBLK (st.st_mode))                                          
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_OPEN))                
 801a134:	44 20 00 20 	be r1,r0,801a1b4 <rtems_rfs_buffer_open+0x150> <== NOT EXECUTED
      printf ("rtems-rfs: buffer-open: '%s' is not a block device\n", name);
 801a138:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801a13c:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 801a140:	38 21 65 a0 	ori r1,r1,0x65a0                               <== NOT EXECUTED
 801a144:	f8 00 1c 8f 	calli 8021380 <printf>                         <== NOT EXECUTED
 801a148:	e0 00 00 1b 	bi 801a1b4 <rtems_rfs_buffer_open+0x150>       <== NOT EXECUTED
static inline int rtems_disk_fd_get_disk_device(                      
  int fd,                                                             
  rtems_disk_device **dd_ptr                                          
)                                                                     
{                                                                     
  return ioctl(fd, RTEMS_BLKIO_GETDISKDEV, dd_ptr);                   
 801a14c:	78 03 08 03 	mvhi r3,0x803                                  
 801a150:	38 63 5b c4 	ori r3,r3,0x5bc4                               
 801a154:	28 62 00 00 	lw r2,(r3+0)                                   
 801a158:	29 81 00 0c 	lw r1,(r12+12)                                 
 801a15c:	35 83 00 10 	addi r3,r12,16                                 
 801a160:	fb ff b1 64 	calli 80066f0 <ioctl>                          
                                                                      
  /*                                                                  
   * Check that device is registred as a block device and lock it.    
   */                                                                 
  rv = rtems_disk_fd_get_disk_device (fs->device, &fs->disk);         
  if (rv != 0)                                                        
 801a164:	44 20 00 0a 	be r1,r0,801a18c <rtems_rfs_buffer_open+0x128> <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_OPEN))                
 801a168:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801a16c:	34 02 00 08 	mvi r2,8                                       <== NOT EXECUTED
 801a170:	fb ff da 8d 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
      printf ("rtems-rfs: buffer-open: cannot obtain the disk\n");    
    return ENXIO;                                                     
 801a174:	34 0b 00 06 	mvi r11,6                                      <== NOT EXECUTED
   * Check that device is registred as a block device and lock it.    
   */                                                                 
  rv = rtems_disk_fd_get_disk_device (fs->device, &fs->disk);         
  if (rv != 0)                                                        
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_OPEN))                
 801a178:	44 20 00 0f 	be r1,r0,801a1b4 <rtems_rfs_buffer_open+0x150> <== NOT EXECUTED
      printf ("rtems-rfs: buffer-open: cannot obtain the disk\n");    
 801a17c:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801a180:	38 21 65 d4 	ori r1,r1,0x65d4                               <== NOT EXECUTED
 801a184:	f8 00 1d 47 	calli 80216a0 <puts>                           <== NOT EXECUTED
 801a188:	e0 00 00 0b 	bi 801a1b4 <rtems_rfs_buffer_open+0x150>       <== NOT EXECUTED
#else                                                                 
  fs->media_size = st.st_size;                                        
  strcat (fs->name, name);                                            
#endif                                                                
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))                  
 801a18c:	34 02 00 20 	mvi r2,32                                      
 801a190:	fb ff da 85 	calli 8010ba4 <rtems_rfs_trace>                
    printf ("rtems-rfs: buffer-open: blks=%" PRId32 ", blk-size=%" PRId32 "\n",
            rtems_rfs_fs_media_blocks (fs),                           
            rtems_rfs_fs_media_block_size (fs));                      
                                                                      
  return 0;                                                           
 801a194:	34 0b 00 00 	mvi r11,0                                      
#else                                                                 
  fs->media_size = st.st_size;                                        
  strcat (fs->name, name);                                            
#endif                                                                
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))                  
 801a198:	44 2b 00 07 	be r1,r11,801a1b4 <rtems_rfs_buffer_open+0x150><== ALWAYS TAKEN
    printf ("rtems-rfs: buffer-open: blks=%" PRId32 ", blk-size=%" PRId32 "\n",
            rtems_rfs_fs_media_blocks (fs),                           
 801a19c:	29 83 00 10 	lw r3,(r12+16)                                 <== NOT EXECUTED
  fs->media_size = st.st_size;                                        
  strcat (fs->name, name);                                            
#endif                                                                
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))                  
    printf ("rtems-rfs: buffer-open: blks=%" PRId32 ", blk-size=%" PRId32 "\n",
 801a1a0:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801a1a4:	38 21 66 04 	ori r1,r1,0x6604                               <== NOT EXECUTED
 801a1a8:	28 62 00 1c 	lw r2,(r3+28)                                  <== NOT EXECUTED
 801a1ac:	28 63 00 20 	lw r3,(r3+32)                                  <== NOT EXECUTED
 801a1b0:	f8 00 1c 74 	calli 8021380 <printf>                         <== NOT EXECUTED
            rtems_rfs_fs_media_blocks (fs),                           
            rtems_rfs_fs_media_block_size (fs));                      
                                                                      
  return 0;                                                           
}                                                                     
 801a1b4:	b9 60 08 00 	mv r1,r11                                      
 801a1b8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801a1bc:	2b 8b 00 10 	lw r11,(sp+16)                                 
 801a1c0:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 801a1c4:	2b 8d 00 08 	lw r13,(sp+8)                                  
 801a1c8:	37 9c 00 58 	addi sp,sp,88                                  
 801a1cc:	c3 a0 00 00 	ret                                            
                                                                      

0801a304 <rtems_rfs_buffer_setblksize>: return result; } int rtems_rfs_buffer_setblksize (rtems_rfs_file_system* fs, size_t size) {
 801a304:	37 9c ff f0 	addi sp,sp,-16                                 
 801a308:	5b 8b 00 0c 	sw (sp+12),r11                                 
 801a30c:	5b 8c 00 08 	sw (sp+8),r12                                  
 801a310:	5b 9d 00 04 	sw (sp+4),ra                                   
 801a314:	b8 20 58 00 	mv r11,r1                                      
 801a318:	5b 82 00 10 	sw (sp+16),r2                                  
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SETBLKSIZE))            
 801a31c:	34 01 00 00 	mvi r1,0                                       
 801a320:	34 02 04 00 	mvi r2,1024                                    
 801a324:	fb ff da 20 	calli 8010ba4 <rtems_rfs_trace>                
 801a328:	44 20 00 05 	be r1,r0,801a33c <rtems_rfs_buffer_setblksize+0x38><== ALWAYS TAKEN
    printf ("rtems-rfs: buffer-setblksize: block size: %zu\n", size); 
 801a32c:	2b 82 00 10 	lw r2,(sp+16)                                  <== NOT EXECUTED
 801a330:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801a334:	38 21 66 d0 	ori r1,r1,0x66d0                               <== NOT EXECUTED
 801a338:	f8 00 1c 12 	calli 8021380 <printf>                         <== NOT EXECUTED
                                                                      
  rc = rtems_rfs_buffers_release (fs);                                
 801a33c:	b9 60 08 00 	mv r1,r11                                      
 801a340:	fb ff ff ca 	calli 801a268 <rtems_rfs_buffers_release>      
 801a344:	b8 20 60 00 	mv r12,r1                                      
  if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SETBLKSIZE))
 801a348:	4c 01 00 0c 	bge r0,r1,801a378 <rtems_rfs_buffer_setblksize+0x74><== ALWAYS TAKEN
 801a34c:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801a350:	34 02 04 00 	mvi r2,1024                                    <== NOT EXECUTED
 801a354:	fb ff da 14 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801a358:	44 20 00 08 	be r1,r0,801a378 <rtems_rfs_buffer_setblksize+0x74><== NOT EXECUTED
    printf ("rtems-rfs: buffer-setblksize: buffer release failed: %d: %s\n",
 801a35c:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801a360:	f8 00 20 c3 	calli 802266c <strerror>                       <== NOT EXECUTED
 801a364:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 801a368:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801a36c:	38 21 67 00 	ori r1,r1,0x6700                               <== NOT EXECUTED
 801a370:	b9 80 10 00 	mv r2,r12                                      <== NOT EXECUTED
 801a374:	f8 00 1c 03 	calli 8021380 <printf>                         <== NOT EXECUTED
            rc, strerror (rc));                                       
                                                                      
  rc = rtems_rfs_buffer_sync (fs);                                    
 801a378:	b9 60 08 00 	mv r1,r11                                      
 801a37c:	fb ff ff 95 	calli 801a1d0 <rtems_rfs_buffer_sync>          
 801a380:	b8 20 60 00 	mv r12,r1                                      
  if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SETBLKSIZE))
 801a384:	4c 01 00 0c 	bge r0,r1,801a3b4 <rtems_rfs_buffer_setblksize+0xb0><== ALWAYS TAKEN
 801a388:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801a38c:	34 02 04 00 	mvi r2,1024                                    <== NOT EXECUTED
 801a390:	fb ff da 05 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801a394:	44 20 00 08 	be r1,r0,801a3b4 <rtems_rfs_buffer_setblksize+0xb0><== NOT EXECUTED
    printf ("rtems-rfs: buffer-setblksize: device sync failed: %d: %s\n",
 801a398:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801a39c:	f8 00 20 b4 	calli 802266c <strerror>                       <== NOT EXECUTED
 801a3a0:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 801a3a4:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801a3a8:	38 21 67 40 	ori r1,r1,0x6740                               <== NOT EXECUTED
 801a3ac:	b9 80 10 00 	mv r2,r12                                      <== NOT EXECUTED
 801a3b0:	f8 00 1b f4 	calli 8021380 <printf>                         <== NOT EXECUTED
            rc, strerror (rc));                                       
                                                                      
#if RTEMS_RFS_USE_LIBBLOCK                                            
  rc = fs->disk->ioctl (fs->disk, RTEMS_BLKIO_SETBLKSIZE, &size);     
 801a3b4:	29 61 00 10 	lw r1,(r11+16)                                 
 801a3b8:	78 03 08 03 	mvhi r3,0x803                                  
 801a3bc:	38 63 5b d0 	ori r3,r3,0x5bd0                               
 801a3c0:	28 62 00 00 	lw r2,(r3+0)                                   
 801a3c4:	28 24 00 38 	lw r4,(r1+56)                                  
 801a3c8:	37 83 00 10 	addi r3,sp,16                                  
 801a3cc:	d8 80 00 00 	call r4                                        
  if (rc < 0)                                                         
 801a3d0:	4c 20 00 03 	bge r1,r0,801a3dc <rtems_rfs_buffer_setblksize+0xd8><== ALWAYS TAKEN
    rc = errno;                                                       
 801a3d4:	f8 00 15 90 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 801a3d8:	28 21 00 00 	lw r1,(r1+0)                                   <== NOT EXECUTED
#endif                                                                
  return rc;                                                          
}                                                                     
 801a3dc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801a3e0:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 801a3e4:	2b 8c 00 08 	lw r12,(sp+8)                                  
 801a3e8:	37 9c 00 10 	addi sp,sp,16                                  
 801a3ec:	c3 a0 00 00 	ret                                            
                                                                      

0801a1d0 <rtems_rfs_buffer_sync>: return rc; } int rtems_rfs_buffer_sync (rtems_rfs_file_system* fs) {
 801a1d0:	37 9c ff f0 	addi sp,sp,-16                                 
 801a1d4:	5b 8b 00 10 	sw (sp+16),r11                                 
 801a1d8:	5b 8c 00 0c 	sw (sp+12),r12                                 
 801a1dc:	5b 8d 00 08 	sw (sp+8),r13                                  
 801a1e0:	5b 9d 00 04 	sw (sp+4),ra                                   
  int result = 0;                                                     
#if RTEMS_RFS_USE_LIBBLOCK                                            
  rtems_status_code sc;                                               
#endif                                                                
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))                  
 801a1e4:	34 02 00 20 	mvi r2,32                                      
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_sync (rtems_rfs_file_system* fs)                     
{                                                                     
 801a1e8:	b8 20 60 00 	mv r12,r1                                      
  int result = 0;                                                     
#if RTEMS_RFS_USE_LIBBLOCK                                            
  rtems_status_code sc;                                               
#endif                                                                
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))                  
 801a1ec:	34 01 00 00 	mvi r1,0                                       
 801a1f0:	fb ff da 6d 	calli 8010ba4 <rtems_rfs_trace>                
 801a1f4:	44 20 00 04 	be r1,r0,801a204 <rtems_rfs_buffer_sync+0x34>  <== ALWAYS TAKEN
    printf ("rtems-rfs: buffer-sync: syncing\n");                     
 801a1f8:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801a1fc:	38 21 66 34 	ori r1,r1,0x6634                               <== NOT EXECUTED
 801a200:	f8 00 1d 28 	calli 80216a0 <puts>                           <== NOT EXECUTED
                                                                      
  /*                                                                  
   * @todo Split in the separate files for each type.                 
   */                                                                 
#if RTEMS_RFS_USE_LIBBLOCK                                            
  sc = rtems_bdbuf_syncdev (rtems_rfs_fs_device (fs));                
 801a204:	29 81 00 10 	lw r1,(r12+16)                                 
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_sync (rtems_rfs_file_system* fs)                     
{                                                                     
  int result = 0;                                                     
 801a208:	34 0b 00 00 	mvi r11,0                                      
                                                                      
  /*                                                                  
   * @todo Split in the separate files for each type.                 
   */                                                                 
#if RTEMS_RFS_USE_LIBBLOCK                                            
  sc = rtems_bdbuf_syncdev (rtems_rfs_fs_device (fs));                
 801a20c:	fb ff e5 22 	calli 8013694 <rtems_bdbuf_syncdev>            
 801a210:	b8 20 68 00 	mv r13,r1                                      
  if (sc != RTEMS_SUCCESSFUL)                                         
 801a214:	44 20 00 0c 	be r1,r0,801a244 <rtems_rfs_buffer_sync+0x74>  <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))                
 801a218:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801a21c:	34 02 00 20 	mvi r2,32                                      <== NOT EXECUTED
 801a220:	fb ff da 61 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
      printf ("rtems-rfs: buffer-sync: device sync failed: %s\n",     
              rtems_status_text (sc));                                
    result = EIO;                                                     
 801a224:	34 0b 00 05 	mvi r11,5                                      <== NOT EXECUTED
   */                                                                 
#if RTEMS_RFS_USE_LIBBLOCK                                            
  sc = rtems_bdbuf_syncdev (rtems_rfs_fs_device (fs));                
  if (sc != RTEMS_SUCCESSFUL)                                         
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))                
 801a228:	44 20 00 07 	be r1,r0,801a244 <rtems_rfs_buffer_sync+0x74>  <== NOT EXECUTED
      printf ("rtems-rfs: buffer-sync: device sync failed: %s\n",     
 801a22c:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 801a230:	fb ff e9 85 	calli 8014844 <rtems_status_text>              <== NOT EXECUTED
 801a234:	b8 20 10 00 	mv r2,r1                                       <== NOT EXECUTED
 801a238:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801a23c:	38 21 66 54 	ori r1,r1,0x6654                               <== NOT EXECUTED
 801a240:	f8 00 1c 50 	calli 8021380 <printf>                         <== NOT EXECUTED
              rtems_status_text (sc));                                
    result = EIO;                                                     
  }                                                                   
  rtems_disk_release (fs->disk);                                      
 801a244:	29 81 00 10 	lw r1,(r12+16)                                 
 801a248:	fb ff a1 a4 	calli 80028d8 <rtems_disk_release>             
      printf ("rtems-rfs: buffer-sync: file sync failed: %d: %s\n",   
              result, strerror (result));                             
  }                                                                   
#endif                                                                
  return result;                                                      
}                                                                     
 801a24c:	b9 60 08 00 	mv r1,r11                                      
 801a250:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801a254:	2b 8b 00 10 	lw r11,(sp+16)                                 
 801a258:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 801a25c:	2b 8d 00 08 	lw r13,(sp+8)                                  
 801a260:	37 9c 00 10 	addi sp,sp,16                                  
 801a264:	c3 a0 00 00 	ret                                            
                                                                      

0801a268 <rtems_rfs_buffers_release>: return rrc; } int rtems_rfs_buffers_release (rtems_rfs_file_system* fs) {
 801a268:	37 9c ff f4 	addi sp,sp,-12                                 
 801a26c:	5b 8b 00 0c 	sw (sp+12),r11                                 
 801a270:	5b 8c 00 08 	sw (sp+8),r12                                  
 801a274:	5b 9d 00 04 	sw (sp+4),ra                                   
  int rrc = 0;                                                        
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_RELEASE))               
 801a278:	34 02 00 40 	mvi r2,64                                      
  return rrc;                                                         
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffers_release (rtems_rfs_file_system* fs)                 
{                                                                     
 801a27c:	b8 20 58 00 	mv r11,r1                                      
  int rrc = 0;                                                        
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_RELEASE))               
 801a280:	34 01 00 00 	mvi r1,0                                       
 801a284:	fb ff da 48 	calli 8010ba4 <rtems_rfs_trace>                
 801a288:	44 20 00 07 	be r1,r0,801a2a4 <rtems_rfs_buffers_release+0x3c><== ALWAYS TAKEN
    printf ("rtems-rfs: buffers-release: active:%" PRIu32 " "         
 801a28c:	29 62 00 50 	lw r2,(r11+80)                                 <== NOT EXECUTED
 801a290:	29 63 00 60 	lw r3,(r11+96)                                 <== NOT EXECUTED
 801a294:	29 64 00 70 	lw r4,(r11+112)                                <== NOT EXECUTED
 801a298:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801a29c:	38 21 66 84 	ori r1,r1,0x6684                               <== NOT EXECUTED
 801a2a0:	f8 00 1c 38 	calli 8021380 <printf>                         <== NOT EXECUTED
            "release:%" PRIu32 " release-modified:%" PRIu32 "\n",     
            fs->buffers_count, fs->release_count, fs->release_modified_count);
                                                                      
  rc = rtems_rfs_release_chain (&fs->release,                         
 801a2a4:	34 03 00 00 	mvi r3,0                                       
 801a2a8:	35 62 00 60 	addi r2,r11,96                                 
 801a2ac:	35 61 00 54 	addi r1,r11,84                                 
 801a2b0:	fb ff fd f0 	calli 8019a70 <rtems_rfs_release_chain>        
 801a2b4:	b8 20 60 00 	mv r12,r1                                      
 801a2b8:	34 02 00 1f 	mvi r2,31                                      
 801a2bc:	a4 20 08 00 	not r1,r1                                      
 801a2c0:	f8 00 62 d4 	calli 8032e10 <__ashrsi3>                      
 801a2c4:	a1 81 60 00 	and r12,r12,r1                                 
                                &fs->release_count,                   
                                false);                               
  if ((rc > 0) && (rrc == 0))                                         
    rrc = rc;                                                         
  rc = rtems_rfs_release_chain (&fs->release_modified,                
 801a2c8:	35 62 00 70 	addi r2,r11,112                                
 801a2cc:	34 03 00 01 	mvi r3,1                                       
 801a2d0:	35 61 00 64 	addi r1,r11,100                                
 801a2d4:	fb ff fd e7 	calli 8019a70 <rtems_rfs_release_chain>        
                                &fs->release_modified_count,          
                                true);                                
  if ((rc > 0) && (rrc == 0))                                         
 801a2d8:	65 83 00 00 	cmpei r3,r12,0                                 
 801a2dc:	68 22 00 00 	cmpgi r2,r1,0                                  
 801a2e0:	a0 62 10 00 	and r2,r3,r2                                   
 801a2e4:	44 40 00 02 	be r2,r0,801a2ec <rtems_rfs_buffers_release+0x84><== ALWAYS TAKEN
 801a2e8:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
    rrc = rc;                                                         
                                                                      
  return rrc;                                                         
}                                                                     
 801a2ec:	b9 80 08 00 	mv r1,r12                                      
 801a2f0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801a2f4:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 801a2f8:	2b 8c 00 08 	lw r12,(sp+8)                                  
 801a2fc:	37 9c 00 0c 	addi sp,sp,12                                  
 801a300:	c3 a0 00 00 	ret                                            
                                                                      

0801aa38 <rtems_rfs_dir_add_entry>: rtems_rfs_dir_add_entry (rtems_rfs_file_system* fs, rtems_rfs_inode_handle* dir, const char* name, size_t length, rtems_rfs_ino ino) {
 801aa38:	37 9c ff 40 	addi sp,sp,-192                                
 801aa3c:	5b 8b 00 44 	sw (sp+68),r11                                 
 801aa40:	5b 8c 00 40 	sw (sp+64),r12                                 
 801aa44:	5b 8d 00 3c 	sw (sp+60),r13                                 
 801aa48:	5b 8e 00 38 	sw (sp+56),r14                                 
 801aa4c:	5b 8f 00 34 	sw (sp+52),r15                                 
 801aa50:	5b 90 00 30 	sw (sp+48),r16                                 
 801aa54:	5b 91 00 2c 	sw (sp+44),r17                                 
 801aa58:	5b 92 00 28 	sw (sp+40),r18                                 
 801aa5c:	5b 93 00 24 	sw (sp+36),r19                                 
 801aa60:	5b 94 00 20 	sw (sp+32),r20                                 
 801aa64:	5b 95 00 1c 	sw (sp+28),r21                                 
 801aa68:	5b 96 00 18 	sw (sp+24),r22                                 
 801aa6c:	5b 97 00 14 	sw (sp+20),r23                                 
 801aa70:	5b 98 00 10 	sw (sp+16),r24                                 
 801aa74:	5b 99 00 0c 	sw (sp+12),r25                                 
 801aa78:	5b 9b 00 08 	sw (sp+8),fp                                   
 801aa7c:	5b 9d 00 04 	sw (sp+4),ra                                   
 801aa80:	b8 20 60 00 	mv r12,r1                                      
 801aa84:	b8 40 70 00 	mv r14,r2                                      
  rtems_rfs_block_map     map;                                        
  rtems_rfs_block_pos     bpos;                                       
  rtems_rfs_buffer_handle buffer;                                     
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))                
 801aa88:	34 01 00 00 	mvi r1,0                                       
 801aa8c:	78 02 20 00 	mvhi r2,0x2000                                 
rtems_rfs_dir_add_entry (rtems_rfs_file_system*  fs,                  
                         rtems_rfs_inode_handle* dir,                 
                         const char*             name,                
                         size_t                  length,              
                         rtems_rfs_ino           ino)                 
{                                                                     
 801aa90:	b8 60 98 00 	mv r19,r3                                      
 801aa94:	b8 80 78 00 	mv r15,r4                                      
 801aa98:	b8 a0 88 00 	mv r17,r5                                      
  rtems_rfs_block_map     map;                                        
  rtems_rfs_block_pos     bpos;                                       
  rtems_rfs_buffer_handle buffer;                                     
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))                
 801aa9c:	fb ff d8 42 	calli 8010ba4 <rtems_rfs_trace>                
 801aaa0:	44 20 00 10 	be r1,r0,801aae0 <rtems_rfs_dir_add_entry+0xa8><== ALWAYS TAKEN
  {                                                                   
    int c;                                                            
    printf ("rtems-rfs: dir-add-entry: dir=%" PRId32 ", name=",       
 801aaa4:	29 c2 00 08 	lw r2,(r14+8)                                  <== NOT EXECUTED
 801aaa8:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801aaac:	38 21 6a cc 	ori r1,r1,0x6acc                               <== NOT EXECUTED
 801aab0:	f8 00 1a 34 	calli 8021380 <printf>                         <== NOT EXECUTED
            rtems_rfs_inode_ino (dir));                               
    for (c = 0; c < length; c++)                                      
 801aab4:	34 0b 00 00 	mvi r11,0                                      <== NOT EXECUTED
 801aab8:	e0 00 00 05 	bi 801aacc <rtems_rfs_dir_add_entry+0x94>      <== NOT EXECUTED
  rtems_rfs_block_map_close (fs, &map);                               
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_dir_add_entry (rtems_rfs_file_system*  fs,                  
 801aabc:	b6 6b 08 00 	add r1,r19,r11                                 <== NOT EXECUTED
  {                                                                   
    int c;                                                            
    printf ("rtems-rfs: dir-add-entry: dir=%" PRId32 ", name=",       
            rtems_rfs_inode_ino (dir));                               
    for (c = 0; c < length; c++)                                      
      printf ("%c", name[c]);                                         
 801aac0:	40 21 00 00 	lbu r1,(r1+0)                                  <== NOT EXECUTED
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))                
  {                                                                   
    int c;                                                            
    printf ("rtems-rfs: dir-add-entry: dir=%" PRId32 ", name=",       
            rtems_rfs_inode_ino (dir));                               
    for (c = 0; c < length; c++)                                      
 801aac4:	35 6b 00 01 	addi r11,r11,1                                 <== NOT EXECUTED
      printf ("%c", name[c]);                                         
 801aac8:	f8 00 1a b4 	calli 8021598 <putchar>                        <== NOT EXECUTED
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))                
  {                                                                   
    int c;                                                            
    printf ("rtems-rfs: dir-add-entry: dir=%" PRId32 ", name=",       
            rtems_rfs_inode_ino (dir));                               
    for (c = 0; c < length; c++)                                      
 801aacc:	55 eb ff fc 	bgu r15,r11,801aabc <rtems_rfs_dir_add_entry+0x84><== NOT EXECUTED
      printf ("%c", name[c]);                                         
    printf (", len=%zd\n", length);                                   
 801aad0:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801aad4:	38 21 6a f8 	ori r1,r1,0x6af8                               <== NOT EXECUTED
 801aad8:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
 801aadc:	f8 00 1a 29 	calli 8021380 <printf>                         <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_block_map_open (fs, dir, &map);                      
 801aae0:	37 94 00 58 	addi r20,sp,88                                 
 801aae4:	b9 80 08 00 	mv r1,r12                                      
 801aae8:	b9 c0 10 00 	mv r2,r14                                      
 801aaec:	ba 80 18 00 	mv r3,r20                                      
 801aaf0:	fb ff f7 f7 	calli 8018acc <rtems_rfs_block_map_open>       
 801aaf4:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 801aaf8:	48 20 00 da 	bg r1,r0,801ae60 <rtems_rfs_dir_add_entry+0x428><== NEVER TAKEN
      elength = rtems_rfs_dir_entry_length (entry);                   
      eino    = rtems_rfs_dir_entry_ino (entry);                      
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
      {                                                               
        if ((length + RTEMS_RFS_DIR_ENTRY_SIZE) <                     
 801aafc:	35 e1 00 0a 	addi r1,r15,10                                 
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
 801ab00:	33 80 00 a8 	sb (sp+168),r0                                 
  handle->bnum  = 0;                                                  
 801ab04:	5b 80 00 ac 	sw (sp+172),r0                                 
  handle->buffer = NULL;                                              
 801ab08:	5b 80 00 b0 	sw (sp+176),r0                                 
 * @param bpos A pointer to the block position.                       
 */                                                                   
static inline void                                                    
rtems_rfs_block_set_bpos_zero (rtems_rfs_block_pos* bpos)             
{                                                                     
  bpos->bno = 0;                                                      
 801ab0c:	5b 80 00 b4 	sw (sp+180),r0                                 
  bpos->boff = 0;                                                     
 801ab10:	5b 80 00 b8 	sw (sp+184),r0                                 
  bpos->block = 0;                                                    
 801ab14:	5b 80 00 bc 	sw (sp+188),r0                                 
 801ab18:	5b 81 00 54 	sw (sp+84),r1                                  
    /*                                                                
     * Locate the first block. If an error the block will be 0. If the map is
     * empty which happens when creating a directory and adding the first entry
     * the seek will return ENXIO. In this case we need to grow the directory.
     */                                                               
    rc = rtems_rfs_block_map_find (fs, &map, &bpos, &block);          
 801ab1c:	b9 80 08 00 	mv r1,r12                                      
 801ab20:	ba 80 10 00 	mv r2,r20                                      
 801ab24:	37 83 00 b4 	addi r3,sp,180                                 
 801ab28:	37 84 00 c0 	addi r4,sp,192                                 
 801ab2c:	fb ff f9 0d 	calli 8018f60 <rtems_rfs_block_map_find>       
 801ab30:	b8 20 58 00 	mv r11,r1                                      
    if (rc > 0)                                                       
 801ab34:	4c 01 00 23 	bge r0,r1,801abc0 <rtems_rfs_dir_add_entry+0x188>
    {                                                                 
      if (rc != ENXIO)                                                
 801ab38:	34 01 00 06 	mvi r1,6                                       
 801ab3c:	45 61 00 0c 	be r11,r1,801ab6c <rtems_rfs_dir_add_entry+0x134><== ALWAYS TAKEN
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))          
 801ab40:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801ab44:	78 02 20 00 	mvhi r2,0x2000                                 <== NOT EXECUTED
 801ab48:	fb ff d8 17 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801ab4c:	44 20 00 bc 	be r1,r0,801ae3c <rtems_rfs_dir_add_entry+0x404><== NOT EXECUTED
          printf ("rtems-rfs: dir-add-entry: "                        
 801ab50:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801ab54:	29 cd 00 08 	lw r13,(r14+8)                                 <== NOT EXECUTED
 801ab58:	f8 00 1e c5 	calli 802266c <strerror>                       <== NOT EXECUTED
 801ab5c:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
 801ab60:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801ab64:	38 21 6b 04 	ori r1,r1,0x6b04                               <== NOT EXECUTED
 801ab68:	e0 00 00 12 	bi 801abb0 <rtems_rfs_dir_add_entry+0x178>     <== NOT EXECUTED
      }                                                               
                                                                      
      /*                                                              
       * We have reached the end of the directory so add a block.     
       */                                                             
      rc = rtems_rfs_block_map_grow (fs, &map, 1, &block);            
 801ab6c:	b9 80 08 00 	mv r1,r12                                      
 801ab70:	ba 80 10 00 	mv r2,r20                                      
 801ab74:	34 03 00 01 	mvi r3,1                                       
 801ab78:	37 84 00 c0 	addi r4,sp,192                                 
 801ab7c:	fb ff f9 aa 	calli 8019224 <rtems_rfs_block_map_grow>       
 801ab80:	b8 20 58 00 	mv r11,r1                                      
      if (rc > 0)                                                     
 801ab84:	4c 01 00 11 	bge r0,r1,801abc8 <rtems_rfs_dir_add_entry+0x190><== ALWAYS TAKEN
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))          
 801ab88:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801ab8c:	78 02 20 00 	mvhi r2,0x2000                                 <== NOT EXECUTED
 801ab90:	fb ff d8 05 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801ab94:	44 20 00 aa 	be r1,r0,801ae3c <rtems_rfs_dir_add_entry+0x404><== NOT EXECUTED
          printf ("rtems-rfs: dir-add-entry: "                        
 801ab98:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801ab9c:	29 cd 00 08 	lw r13,(r14+8)                                 <== NOT EXECUTED
 801aba0:	f8 00 1e b3 	calli 802266c <strerror>                       <== NOT EXECUTED
 801aba4:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
 801aba8:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801abac:	38 21 6b 4c 	ori r1,r1,0x6b4c                               <== NOT EXECUTED
 801abb0:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 801abb4:	b9 60 18 00 	mv r3,r11                                      <== NOT EXECUTED
 801abb8:	f8 00 19 f2 	calli 8021380 <printf>                         <== NOT EXECUTED
 801abbc:	e0 00 00 a0 	bi 801ae3c <rtems_rfs_dir_add_entry+0x404>     <== NOT EXECUTED
  while (true)                                                        
  {                                                                   
    rtems_rfs_block_no block;                                         
    uint8_t*           entry;                                         
    int                offset;                                        
    bool               read = true;                                   
 801abc0:	34 0d 00 01 	mvi r13,1                                      
 801abc4:	e0 00 00 02 	bi 801abcc <rtems_rfs_dir_add_entry+0x194>     
                  "block map grow failed for ino %" PRIu32 ": %d: %s\n",
                  rtems_rfs_inode_ino (dir), rc, strerror (rc));      
        break;                                                        
      }                                                               
                                                                      
      read = false;                                                   
 801abc8:	34 0d 00 00 	mvi r13,0                                      
    }                                                                 
                                                                      
    bpos.bno++;                                                       
 801abcc:	2b 81 00 b4 	lw r1,(sp+180)                                 
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, read);  
 801abd0:	2b 83 00 c0 	lw r3,(sp+192)                                 
 801abd4:	37 82 00 a8 	addi r2,sp,168                                 
      }                                                               
                                                                      
      read = false;                                                   
    }                                                                 
                                                                      
    bpos.bno++;                                                       
 801abd8:	34 21 00 01 	addi r1,r1,1                                   
 801abdc:	5b 81 00 b4 	sw (sp+180),r1                                 
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, read);  
 801abe0:	b9 a0 20 00 	mv r4,r13                                      
 801abe4:	b9 80 08 00 	mv r1,r12                                      
 801abe8:	fb ff fc 85 	calli 8019dfc <rtems_rfs_buffer_handle_request>
 801abec:	b8 20 58 00 	mv r11,r1                                      
    if (rc > 0)                                                       
 801abf0:	4c 01 00 0c 	bge r0,r1,801ac20 <rtems_rfs_dir_add_entry+0x1e8><== ALWAYS TAKEN
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))            
 801abf4:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801abf8:	78 02 20 00 	mvhi r2,0x2000                                 <== NOT EXECUTED
 801abfc:	fb ff d7 ea 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801ac00:	44 20 00 8f 	be r1,r0,801ae3c <rtems_rfs_dir_add_entry+0x404><== NOT EXECUTED
        printf ("rtems-rfs: dir-add-entry: "                          
 801ac04:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801ac08:	29 cd 00 08 	lw r13,(r14+8)                                 <== NOT EXECUTED
 801ac0c:	f8 00 1e 98 	calli 802266c <strerror>                       <== NOT EXECUTED
 801ac10:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
 801ac14:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801ac18:	38 21 6b 94 	ori r1,r1,0x6b94                               <== NOT EXECUTED
 801ac1c:	e3 ff ff e5 	bi 801abb0 <rtems_rfs_dir_add_entry+0x178>     <== NOT EXECUTED
                "block buffer req failed for ino %" PRIu32 ": %d: %s\n",
                rtems_rfs_inode_ino (dir), rc, strerror (rc));        
      break;                                                          
    }                                                                 
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
 801ac20:	2b 81 00 b0 	lw r1,(sp+176)                                 
 801ac24:	28 2b 00 1c 	lw r11,(r1+28)                                 
                                                                      
    if (!read)                                                        
 801ac28:	5d a0 00 05 	bne r13,r0,801ac3c <rtems_rfs_dir_add_entry+0x204>
      memset (entry, 0xff, rtems_rfs_fs_block_size (fs));             
 801ac2c:	29 83 00 08 	lw r3,(r12+8)                                  
 801ac30:	b9 60 08 00 	mv r1,r11                                      
 801ac34:	34 02 00 ff 	mvi r2,255                                     
 801ac38:	f8 00 19 36 	calli 8021110 <memset>                         
                                                                      
    offset = 0;                                                       
                                                                      
    while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
 801ac3c:	29 95 00 08 	lw r21,(r12+8)                                 
    entry  = rtems_rfs_buffer_data (&buffer);                         
                                                                      
    if (!read)                                                        
      memset (entry, 0xff, rtems_rfs_fs_block_size (fs));             
                                                                      
    offset = 0;                                                       
 801ac40:	34 10 00 00 	mvi r16,0                                      
                                                                      
    while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
 801ac44:	36 a1 ff f6 	addi r1,r21,-10                                
 801ac48:	5b 81 00 50 	sw (sp+80),r1                                  
 801ac4c:	e0 00 00 79 	bi 801ae30 <rtems_rfs_dir_add_entry+0x3f8>     
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
 801ac50:	41 61 00 08 	lbu r1,(r11+8)                                 
 801ac54:	34 02 00 08 	mvi r2,8                                       
 801ac58:	35 77 00 08 	addi r23,r11,8                                 
 801ac5c:	fb ff 9a 21 	calli 80014e0 <__ashlsi3>                      
 801ac60:	41 6d 00 09 	lbu r13,(r11+9)                                
 801ac64:	35 76 00 09 	addi r22,r11,9                                 
      eino    = rtems_rfs_dir_entry_ino (entry);                      
 801ac68:	41 64 00 00 	lbu r4,(r11+0)                                 
    while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
 801ac6c:	b8 2d 68 00 	or r13,r1,r13                                  
      eino    = rtems_rfs_dir_entry_ino (entry);                      
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
 801ac70:	38 01 ff ff 	mvu r1,0xffff                                  
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
      eino    = rtems_rfs_dir_entry_ino (entry);                      
 801ac74:	35 7b 00 01 	addi fp,r11,1                                  
 801ac78:	41 65 00 01 	lbu r5,(r11+1)                                 
 801ac7c:	35 79 00 02 	addi r25,r11,2                                 
 801ac80:	41 63 00 02 	lbu r3,(r11+2)                                 
 801ac84:	35 78 00 03 	addi r24,r11,3                                 
 801ac88:	41 72 00 03 	lbu r18,(r11+3)                                
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
 801ac8c:	5d a1 00 38 	bne r13,r1,801ad6c <rtems_rfs_dir_add_entry+0x334>
      {                                                               
        if ((length + RTEMS_RFS_DIR_ENTRY_SIZE) <                     
 801ac90:	2b 81 00 54 	lw r1,(sp+84)                                  
            (rtems_rfs_fs_block_size (fs) - offset))                  
 801ac94:	ca b0 80 00 	sub r16,r21,r16                                
      elength = rtems_rfs_dir_entry_length (entry);                   
      eino    = rtems_rfs_dir_entry_ino (entry);                      
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
      {                                                               
        if ((length + RTEMS_RFS_DIR_ENTRY_SIZE) <                     
 801ac98:	50 30 ff a1 	bgeu r1,r16,801ab1c <rtems_rfs_dir_add_entry+0xe4><== NEVER TAKEN
            (rtems_rfs_fs_block_size (fs) - offset))                  
        {                                                             
          uint32_t hash;                                              
          hash = rtems_rfs_dir_hash (name, length);                   
 801ac9c:	b9 e0 10 00 	mv r2,r15                                      
 801aca0:	ba 60 08 00 	mv r1,r19                                      
 801aca4:	f8 00 11 e5 	calli 801f438 <rtems_rfs_dir_hash>             
          rtems_rfs_dir_set_entry_hash (entry, hash);                 
 801aca8:	34 02 00 18 	mvi r2,24                                      
      {                                                               
        if ((length + RTEMS_RFS_DIR_ENTRY_SIZE) <                     
            (rtems_rfs_fs_block_size (fs) - offset))                  
        {                                                             
          uint32_t hash;                                              
          hash = rtems_rfs_dir_hash (name, length);                   
 801acac:	b8 20 68 00 	mv r13,r1                                      
          rtems_rfs_dir_set_entry_hash (entry, hash);                 
 801acb0:	fb ff 9a 33 	calli 800157c <__lshrsi3>                      
 801acb4:	31 61 00 04 	sb (r11+4),r1                                  
 801acb8:	34 02 00 10 	mvi r2,16                                      
 801acbc:	b9 a0 08 00 	mv r1,r13                                      
 801acc0:	fb ff 9a 2f 	calli 800157c <__lshrsi3>                      
 801acc4:	31 61 00 05 	sb (r11+5),r1                                  
 801acc8:	34 02 00 08 	mvi r2,8                                       
 801accc:	b9 a0 08 00 	mv r1,r13                                      
 801acd0:	fb ff 9a 2b 	calli 800157c <__lshrsi3>                      
 801acd4:	31 61 00 06 	sb (r11+6),r1                                  
 801acd8:	31 6d 00 07 	sb (r11+7),r13                                 
          rtems_rfs_dir_set_entry_ino (entry, ino);                   
 801acdc:	34 02 00 18 	mvi r2,24                                      
 801ace0:	ba 20 08 00 	mv r1,r17                                      
 801ace4:	fb ff 9a 26 	calli 800157c <__lshrsi3>                      
 801ace8:	31 61 00 00 	sb (r11+0),r1                                  
 801acec:	34 02 00 10 	mvi r2,16                                      
 801acf0:	ba 20 08 00 	mv r1,r17                                      
 801acf4:	fb ff 9a 22 	calli 800157c <__lshrsi3>                      
 801acf8:	33 61 00 00 	sb (fp+0),r1                                   
 801acfc:	34 02 00 08 	mvi r2,8                                       
 801ad00:	ba 20 08 00 	mv r1,r17                                      
 801ad04:	fb ff 9a 1e 	calli 800157c <__lshrsi3>                      
 801ad08:	33 21 00 00 	sb (r25+0),r1                                  
          rtems_rfs_dir_set_entry_length (entry,                      
 801ad0c:	35 ed 00 0a 	addi r13,r15,10                                
 801ad10:	34 02 00 08 	mvi r2,8                                       
            (rtems_rfs_fs_block_size (fs) - offset))                  
        {                                                             
          uint32_t hash;                                              
          hash = rtems_rfs_dir_hash (name, length);                   
          rtems_rfs_dir_set_entry_hash (entry, hash);                 
          rtems_rfs_dir_set_entry_ino (entry, ino);                   
 801ad14:	33 11 00 00 	sb (r24+0),r17                                 
          rtems_rfs_dir_set_entry_length (entry,                      
 801ad18:	21 a1 ff ff 	andi r1,r13,0xffff                             
 801ad1c:	fb ff 9a 18 	calli 800157c <__lshrsi3>                      
 801ad20:	32 e1 00 00 	sb (r23+0),r1                                  
                                          RTEMS_RFS_DIR_ENTRY_SIZE + length);
          memcpy (entry + RTEMS_RFS_DIR_ENTRY_SIZE, name, length);    
 801ad24:	b9 e0 18 00 	mv r3,r15                                      
 801ad28:	35 61 00 0a 	addi r1,r11,10                                 
 801ad2c:	ba 60 10 00 	mv r2,r19                                      
        {                                                             
          uint32_t hash;                                              
          hash = rtems_rfs_dir_hash (name, length);                   
          rtems_rfs_dir_set_entry_hash (entry, hash);                 
          rtems_rfs_dir_set_entry_ino (entry, ino);                   
          rtems_rfs_dir_set_entry_length (entry,                      
 801ad30:	32 cd 00 00 	sb (r22+0),r13                                 
                                          RTEMS_RFS_DIR_ENTRY_SIZE + length);
          memcpy (entry + RTEMS_RFS_DIR_ENTRY_SIZE, name, length);    
 801ad34:	f8 00 18 69 	calli 8020ed8 <memcpy>                         
          rtems_rfs_buffer_mark_dirty (&buffer);                      
 801ad38:	34 01 00 01 	mvi r1,1                                       
 801ad3c:	33 81 00 a8 	sb (sp+168),r1                                 
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 801ad40:	37 82 00 a8 	addi r2,sp,168                                 
 801ad44:	b9 80 08 00 	mv r1,r12                                      
 801ad48:	fb ff fb be 	calli 8019c40 <rtems_rfs_buffer_handle_release>
          rtems_rfs_buffer_handle_close (fs, &buffer);                
          rtems_rfs_block_map_close (fs, &map);                       
 801ad4c:	b9 80 08 00 	mv r1,r12                                      
 801ad50:	37 82 00 58 	addi r2,sp,88                                  
  handle->dirty = false;                                              
 801ad54:	33 80 00 a8 	sb (sp+168),r0                                 
  handle->bnum  = 0;                                                  
 801ad58:	5b 80 00 ac 	sw (sp+172),r0                                 
  handle->buffer = NULL;                                              
 801ad5c:	5b 80 00 b0 	sw (sp+176),r0                                 
          return 0;                                                   
 801ad60:	34 0b 00 00 	mvi r11,0                                      
          rtems_rfs_dir_set_entry_length (entry,                      
                                          RTEMS_RFS_DIR_ENTRY_SIZE + length);
          memcpy (entry + RTEMS_RFS_DIR_ENTRY_SIZE, name, length);    
          rtems_rfs_buffer_mark_dirty (&buffer);                      
          rtems_rfs_buffer_handle_close (fs, &buffer);                
          rtems_rfs_block_map_close (fs, &map);                       
 801ad64:	fb ff f7 e1 	calli 8018ce8 <rtems_rfs_block_map_close>      
          return 0;                                                   
 801ad68:	e0 00 00 3e 	bi 801ae60 <rtems_rfs_dir_add_entry+0x428>     
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
      eino    = rtems_rfs_dir_entry_ino (entry);                      
 801ad6c:	b8 80 08 00 	mv r1,r4                                       
 801ad70:	34 02 00 18 	mvi r2,24                                      
 801ad74:	5b 83 00 48 	sw (sp+72),r3                                  
 801ad78:	5b 85 00 4c 	sw (sp+76),r5                                  
 801ad7c:	fb ff 99 d9 	calli 80014e0 <__ashlsi3>                      
 801ad80:	2b 85 00 4c 	lw r5,(sp+76)                                  
 801ad84:	ba 41 90 00 	or r18,r18,r1                                  
 801ad88:	34 02 00 10 	mvi r2,16                                      
 801ad8c:	b8 a0 08 00 	mv r1,r5                                       
 801ad90:	fb ff 99 d4 	calli 80014e0 <__ashlsi3>                      
 801ad94:	2b 83 00 48 	lw r3,(sp+72)                                  
 801ad98:	ba 41 90 00 	or r18,r18,r1                                  
 801ad9c:	34 02 00 08 	mvi r2,8                                       
 801ada0:	b8 60 08 00 	mv r1,r3                                       
 801ada4:	fb ff 99 cf 	calli 80014e0 <__ashlsi3>                      
 801ada8:	ba 41 90 00 	or r18,r18,r1                                  
        }                                                             
                                                                      
        break;                                                        
      }                                                               
                                                                      
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
 801adac:	34 01 00 0a 	mvi r1,10                                      
 801adb0:	4c 2d 00 08 	bge r1,r13,801add0 <rtems_rfs_dir_add_entry+0x398><== NEVER TAKEN
 801adb4:	29 81 00 1c 	lw r1,(r12+28)                                 
 801adb8:	66 42 00 00 	cmpei r2,r18,0                                 
 801adbc:	f1 a1 08 00 	cmpgeu r1,r13,r1                               
 801adc0:	b8 41 08 00 	or r1,r2,r1                                    
 801adc4:	5c 20 00 03 	bne r1,r0,801add0 <rtems_rfs_dir_add_entry+0x398><== NEVER TAKEN
 801adc8:	29 81 00 14 	lw r1,(r12+20)                                 
 801adcc:	50 32 00 17 	bgeu r1,r18,801ae28 <rtems_rfs_dir_add_entry+0x3f0><== ALWAYS TAKEN
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))          
 801add0:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801add4:	78 02 20 00 	mvhi r2,0x2000                                 <== NOT EXECUTED
 801add8:	fb ff d7 73 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801addc:	44 20 00 08 	be r1,r0,801adfc <rtems_rfs_dir_add_entry+0x3c4><== NOT EXECUTED
          printf ("rtems-rfs: dir-add-entry: "                        
 801ade0:	29 c2 00 08 	lw r2,(r14+8)                                  <== NOT EXECUTED
 801ade4:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801ade8:	38 21 6b dc 	ori r1,r1,0x6bdc                               <== NOT EXECUTED
 801adec:	b9 a0 18 00 	mv r3,r13                                      <== NOT EXECUTED
 801adf0:	ba 40 20 00 	mv r4,r18                                      <== NOT EXECUTED
 801adf4:	ba 00 28 00 	mv r5,r16                                      <== NOT EXECUTED
 801adf8:	f8 00 19 62 	calli 8021380 <printf>                         <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 801adfc:	37 82 00 a8 	addi r2,sp,168                                 <== NOT EXECUTED
 801ae00:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801ae04:	fb ff fb 8f 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
                  "bad length or ino for ino %" PRIu32 ": %u/%" PRId32 " @ %04x\n",
                  rtems_rfs_inode_ino (dir), elength, eino, offset);  
        rtems_rfs_buffer_handle_close (fs, &buffer);                  
        rtems_rfs_block_map_close (fs, &map);                         
 801ae08:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801ae0c:	37 82 00 58 	addi r2,sp,88                                  <== NOT EXECUTED
  handle->dirty = false;                                              
 801ae10:	33 80 00 a8 	sb (sp+168),r0                                 <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 801ae14:	5b 80 00 ac 	sw (sp+172),r0                                 <== NOT EXECUTED
  handle->buffer = NULL;                                              
 801ae18:	5b 80 00 b0 	sw (sp+176),r0                                 <== NOT EXECUTED
        return EIO;                                                   
 801ae1c:	34 0b 00 05 	mvi r11,5                                      <== NOT EXECUTED
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))          
          printf ("rtems-rfs: dir-add-entry: "                        
                  "bad length or ino for ino %" PRIu32 ": %u/%" PRId32 " @ %04x\n",
                  rtems_rfs_inode_ino (dir), elength, eino, offset);  
        rtems_rfs_buffer_handle_close (fs, &buffer);                  
        rtems_rfs_block_map_close (fs, &map);                         
 801ae20:	fb ff f7 b2 	calli 8018ce8 <rtems_rfs_block_map_close>      <== NOT EXECUTED
        return EIO;                                                   
 801ae24:	e0 00 00 0f 	bi 801ae60 <rtems_rfs_dir_add_entry+0x428>     <== NOT EXECUTED
      }                                                               
                                                                      
      entry  += elength;                                              
 801ae28:	b5 6d 58 00 	add r11,r11,r13                                
      offset += elength;                                              
 801ae2c:	b6 0d 80 00 	add r16,r16,r13                                
    if (!read)                                                        
      memset (entry, 0xff, rtems_rfs_fs_block_size (fs));             
                                                                      
    offset = 0;                                                       
                                                                      
    while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
 801ae30:	2b 81 00 50 	lw r1,(sp+80)                                  
 801ae34:	54 30 ff 87 	bgu r1,r16,801ac50 <rtems_rfs_dir_add_entry+0x218><== ALWAYS TAKEN
 801ae38:	e3 ff ff 39 	bi 801ab1c <rtems_rfs_dir_add_entry+0xe4>      <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 801ae3c:	37 82 00 a8 	addi r2,sp,168                                 <== NOT EXECUTED
 801ae40:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801ae44:	fb ff fb 7f 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
      offset += elength;                                              
    }                                                                 
  }                                                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &buffer);                        
  rtems_rfs_block_map_close (fs, &map);                               
 801ae48:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801ae4c:	37 82 00 58 	addi r2,sp,88                                  <== NOT EXECUTED
  handle->dirty = false;                                              
 801ae50:	33 80 00 a8 	sb (sp+168),r0                                 <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 801ae54:	5b 80 00 ac 	sw (sp+172),r0                                 <== NOT EXECUTED
  handle->buffer = NULL;                                              
 801ae58:	5b 80 00 b0 	sw (sp+176),r0                                 <== NOT EXECUTED
 801ae5c:	fb ff f7 a3 	calli 8018ce8 <rtems_rfs_block_map_close>      <== NOT EXECUTED
  return rc;                                                          
}                                                                     
 801ae60:	b9 60 08 00 	mv r1,r11                                      
 801ae64:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801ae68:	2b 8b 00 44 	lw r11,(sp+68)                                 
 801ae6c:	2b 8c 00 40 	lw r12,(sp+64)                                 
 801ae70:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 801ae74:	2b 8e 00 38 	lw r14,(sp+56)                                 
 801ae78:	2b 8f 00 34 	lw r15,(sp+52)                                 
 801ae7c:	2b 90 00 30 	lw r16,(sp+48)                                 
 801ae80:	2b 91 00 2c 	lw r17,(sp+44)                                 
 801ae84:	2b 92 00 28 	lw r18,(sp+40)                                 
 801ae88:	2b 93 00 24 	lw r19,(sp+36)                                 
 801ae8c:	2b 94 00 20 	lw r20,(sp+32)                                 
 801ae90:	2b 95 00 1c 	lw r21,(sp+28)                                 
 801ae94:	2b 96 00 18 	lw r22,(sp+24)                                 
 801ae98:	2b 97 00 14 	lw r23,(sp+20)                                 
 801ae9c:	2b 98 00 10 	lw r24,(sp+16)                                 
 801aea0:	2b 99 00 0c 	lw r25,(sp+12)                                 
 801aea4:	2b 9b 00 08 	lw fp,(sp+8)                                   
 801aea8:	37 9c 00 c0 	addi sp,sp,192                                 
 801aeac:	c3 a0 00 00 	ret                                            
                                                                      

0801aeb0 <rtems_rfs_dir_del_entry>: int rtems_rfs_dir_del_entry (rtems_rfs_file_system* fs, rtems_rfs_inode_handle* dir, rtems_rfs_ino ino, uint32_t offset) {
 801aeb0:	37 9c ff 50 	addi sp,sp,-176                                
 801aeb4:	5b 8b 00 44 	sw (sp+68),r11                                 
 801aeb8:	5b 8c 00 40 	sw (sp+64),r12                                 
 801aebc:	5b 8d 00 3c 	sw (sp+60),r13                                 
 801aec0:	5b 8e 00 38 	sw (sp+56),r14                                 
 801aec4:	5b 8f 00 34 	sw (sp+52),r15                                 
 801aec8:	5b 90 00 30 	sw (sp+48),r16                                 
 801aecc:	5b 91 00 2c 	sw (sp+44),r17                                 
 801aed0:	5b 92 00 28 	sw (sp+40),r18                                 
 801aed4:	5b 93 00 24 	sw (sp+36),r19                                 
 801aed8:	5b 94 00 20 	sw (sp+32),r20                                 
 801aedc:	5b 95 00 1c 	sw (sp+28),r21                                 
 801aee0:	5b 96 00 18 	sw (sp+24),r22                                 
 801aee4:	5b 97 00 14 	sw (sp+20),r23                                 
 801aee8:	5b 98 00 10 	sw (sp+16),r24                                 
 801aeec:	5b 99 00 0c 	sw (sp+12),r25                                 
 801aef0:	5b 9b 00 08 	sw (sp+8),fp                                   
 801aef4:	5b 9d 00 04 	sw (sp+4),ra                                   
 801aef8:	b8 20 60 00 	mv r12,r1                                      
 801aefc:	b8 40 88 00 	mv r17,r2                                      
  rtems_rfs_block_no      block;                                      
  rtems_rfs_buffer_handle buffer;                                     
  bool                    search;                                     
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))                
 801af00:	34 01 00 00 	mvi r1,0                                       
 801af04:	78 02 40 00 	mvhi r2,0x4000                                 
int                                                                   
rtems_rfs_dir_del_entry (rtems_rfs_file_system*  fs,                  
                         rtems_rfs_inode_handle* dir,                 
                         rtems_rfs_ino           ino,                 
                         uint32_t                offset)              
{                                                                     
 801af08:	b8 60 a0 00 	mv r20,r3                                      
 801af0c:	b8 80 90 00 	mv r18,r4                                      
  rtems_rfs_block_no      block;                                      
  rtems_rfs_buffer_handle buffer;                                     
  bool                    search;                                     
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))                
 801af10:	fb ff d7 25 	calli 8010ba4 <rtems_rfs_trace>                
 801af14:	44 20 00 07 	be r1,r0,801af30 <rtems_rfs_dir_del_entry+0x80><== ALWAYS TAKEN
    printf ("rtems-rfs: dir-del-entry: dir=%" PRId32 ", entry=%" PRId32 " offset=%" PRIu32 "\n",
 801af18:	2a 22 00 08 	lw r2,(r17+8)                                  <== NOT EXECUTED
 801af1c:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801af20:	38 21 6c 24 	ori r1,r1,0x6c24                               <== NOT EXECUTED
 801af24:	ba 80 18 00 	mv r3,r20                                      <== NOT EXECUTED
 801af28:	ba 40 20 00 	mv r4,r18                                      <== NOT EXECUTED
 801af2c:	f8 00 19 15 	calli 8021380 <printf>                         <== NOT EXECUTED
            rtems_rfs_inode_ino (dir), ino, offset);                  
                                                                      
  rc = rtems_rfs_block_map_open (fs, dir, &map);                      
 801af30:	37 8d 00 54 	addi r13,sp,84                                 
 801af34:	b9 80 08 00 	mv r1,r12                                      
 801af38:	ba 20 10 00 	mv r2,r17                                      
 801af3c:	b9 a0 18 00 	mv r3,r13                                      
 801af40:	fb ff f6 e3 	calli 8018acc <rtems_rfs_block_map_open>       
 801af44:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 801af48:	48 20 00 d9 	bg r1,r0,801b2ac <rtems_rfs_dir_del_entry+0x3fc><== NEVER TAKEN
    return rc;                                                        
                                                                      
  rc = rtems_rfs_block_map_seek (fs, &map, offset, &block);           
 801af4c:	b9 80 08 00 	mv r1,r12                                      
 801af50:	b9 a0 10 00 	mv r2,r13                                      
 801af54:	34 03 00 00 	mvi r3,0                                       
 801af58:	ba 40 20 00 	mv r4,r18                                      
 801af5c:	37 85 00 b0 	addi r5,sp,176                                 
 801af60:	fb ff f8 6f 	calli 801911c <rtems_rfs_block_map_seek>       
 801af64:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 801af68:	4c 01 00 05 	bge r0,r1,801af7c <rtems_rfs_dir_del_entry+0xcc><== ALWAYS TAKEN
  {                                                                   
    if (rc == ENXIO)                                                  
 801af6c:	34 01 00 06 	mvi r1,6                                       <== NOT EXECUTED
 801af70:	5d 61 00 b0 	bne r11,r1,801b230 <rtems_rfs_dir_del_entry+0x380><== NOT EXECUTED
      rc = ENOENT;                                                    
 801af74:	34 0b 00 02 	mvi r11,2                                      <== NOT EXECUTED
 801af78:	e0 00 00 ae 	bi 801b230 <rtems_rfs_dir_del_entry+0x380>     <== NOT EXECUTED
        break;                                                        
                                                                      
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))          
          printf ("rtems-rfs: dir-del-entry: "                        
 801af7c:	78 15 08 03 	mvhi r21,0x803                                 
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
 801af80:	33 80 00 a4 	sb (sp+164),r0                                 
  handle->bnum  = 0;                                                  
 801af84:	5b 80 00 a8 	sw (sp+168),r0                                 
  handle->buffer = NULL;                                              
 801af88:	5b 80 00 ac 	sw (sp+172),r0                                 
  }                                                                   
                                                                      
  /*                                                                  
   * Only search if the offset is 0 else we are at that position.     
   */                                                                 
  search = offset ? false : true;                                     
 801af8c:	66 57 00 00 	cmpei r23,r18,0                                
      rc = ENOENT;                                                    
    rtems_rfs_block_map_close (fs, &map);                             
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_buffer_handle_open (fs, &buffer);                    
 801af90:	34 0b 00 00 	mvi r11,0                                      
    }                                                                 
                                                                      
    if (rc == 0)                                                      
    {                                                                 
      rc = rtems_rfs_block_map_next_block (fs, &map, &block);         
      if (rc == ENXIO)                                                
 801af94:	34 1b 00 06 	mvi fp,6                                       
        break;                                                        
                                                                      
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))          
          printf ("rtems-rfs: dir-del-entry: "                        
 801af98:	3a b5 6c a8 	ori r21,r21,0x6ca8                             
  /*                                                                  
   * Only search if the offset is 0 else we are at that position.     
   */                                                                 
  search = offset ? false : true;                                     
                                                                      
  while (rc == 0)                                                     
 801af9c:	e0 00 00 b8 	bi 801b27c <rtems_rfs_dir_del_entry+0x3cc>     
  {                                                                   
    uint8_t* entry;                                                   
    int      eoffset;                                                 
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);  
 801afa0:	2b 83 00 b0 	lw r3,(sp+176)                                 
 801afa4:	b9 80 08 00 	mv r1,r12                                      
 801afa8:	37 82 00 a4 	addi r2,sp,164                                 
 801afac:	34 04 00 01 	mvi r4,1                                       
 801afb0:	fb ff fb 93 	calli 8019dfc <rtems_rfs_buffer_handle_request>
 801afb4:	b8 20 80 00 	mv r16,r1                                      
    if (rc > 0)                                                       
 801afb8:	4d 61 00 0f 	bge r11,r1,801aff4 <rtems_rfs_dir_del_entry+0x144><== ALWAYS TAKEN
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))            
 801afbc:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801afc0:	78 02 40 00 	mvhi r2,0x4000                                 <== NOT EXECUTED
 801afc4:	fb ff d6 f8 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801afc8:	44 20 00 af 	be r1,r0,801b284 <rtems_rfs_dir_del_entry+0x3d4><== NOT EXECUTED
        printf ("rtems-rfs: dir-del-entry: "                          
 801afcc:	2a 2b 00 08 	lw r11,(r17+8)                                 <== NOT EXECUTED
 801afd0:	ba 00 08 00 	mv r1,r16                                      <== NOT EXECUTED
 801afd4:	f8 00 1d a6 	calli 802266c <strerror>                       <== NOT EXECUTED
 801afd8:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
 801afdc:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801afe0:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 801afe4:	ba 00 18 00 	mv r3,r16                                      <== NOT EXECUTED
 801afe8:	38 21 6c 60 	ori r1,r1,0x6c60                               <== NOT EXECUTED
 801afec:	f8 00 18 e5 	calli 8021380 <printf>                         <== NOT EXECUTED
 801aff0:	e0 00 00 a5 	bi 801b284 <rtems_rfs_dir_del_entry+0x3d4>     <== NOT EXECUTED
    /*                                                                
     * If we are searching start at the beginning of the block. If not searching
     * skip to the offset in the block.                               
     */                                                               
    if (search)                                                       
      eoffset = 0;                                                    
 801aff4:	34 0e 00 00 	mvi r14,0                                      
                                                                      
    /*                                                                
     * If we are searching start at the beginning of the block. If not searching
     * skip to the offset in the block.                               
     */                                                               
    if (search)                                                       
 801aff8:	5e e0 00 05 	bne r23,r0,801b00c <rtems_rfs_dir_del_entry+0x15c><== NEVER TAKEN
      eoffset = 0;                                                    
    else                                                              
      eoffset = offset % rtems_rfs_fs_block_size (fs);                
 801affc:	29 82 00 08 	lw r2,(r12+8)                                  
 801b000:	ba 40 08 00 	mv r1,r18                                      
 801b004:	f8 00 60 03 	calli 8033010 <__umodsi3>                      
 801b008:	b8 20 70 00 	mv r14,r1                                      
                                                                      
    entry = rtems_rfs_buffer_data (&buffer) + eoffset;                
 801b00c:	2b 81 00 ac 	lw r1,(sp+172)                                 
                                                                      
    while (eoffset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
 801b010:	29 96 00 08 	lw r22,(r12+8)                                 
    if (search)                                                       
      eoffset = 0;                                                    
    else                                                              
      eoffset = offset % rtems_rfs_fs_block_size (fs);                
                                                                      
    entry = rtems_rfs_buffer_data (&buffer) + eoffset;                
 801b014:	28 2d 00 1c 	lw r13,(r1+28)                                 
                                                                      
    while (eoffset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
 801b018:	36 c1 ff f6 	addi r1,r22,-10                                
 801b01c:	5b 81 00 50 	sw (sp+80),r1                                  
    if (search)                                                       
      eoffset = 0;                                                    
    else                                                              
      eoffset = offset % rtems_rfs_fs_block_size (fs);                
                                                                      
    entry = rtems_rfs_buffer_data (&buffer) + eoffset;                
 801b020:	b5 ae 68 00 	add r13,r13,r14                                
                                                                      
    while (eoffset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
 801b024:	e0 00 00 8a 	bi 801b24c <rtems_rfs_dir_del_entry+0x39c>     
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
 801b028:	41 a1 00 08 	lbu r1,(r13+8)                                 
 801b02c:	34 02 00 08 	mvi r2,8                                       
 801b030:	35 b9 00 08 	addi r25,r13,8                                 
 801b034:	fb ff 99 2b 	calli 80014e0 <__ashlsi3>                      
 801b038:	41 af 00 09 	lbu r15,(r13+9)                                
 801b03c:	35 b8 00 09 	addi r24,r13,9                                 
      eino    = rtems_rfs_dir_entry_ino (entry);                      
 801b040:	41 a3 00 00 	lbu r3,(r13+0)                                 
    while (eoffset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
 801b044:	b8 2f 78 00 	or r15,r1,r15                                  
      eino    = rtems_rfs_dir_entry_ino (entry);                      
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
 801b048:	38 01 ff ff 	mvu r1,0xffff                                  
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
      eino    = rtems_rfs_dir_entry_ino (entry);                      
 801b04c:	41 a5 00 01 	lbu r5,(r13+1)                                 
 801b050:	41 a4 00 02 	lbu r4,(r13+2)                                 
 801b054:	41 b3 00 03 	lbu r19,(r13+3)                                
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
 801b058:	45 e1 00 7f 	be r15,r1,801b254 <rtems_rfs_dir_del_entry+0x3a4><== NEVER TAKEN
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
      eino    = rtems_rfs_dir_entry_ino (entry);                      
 801b05c:	b8 60 08 00 	mv r1,r3                                       
 801b060:	34 02 00 18 	mvi r2,24                                      
 801b064:	5b 84 00 48 	sw (sp+72),r4                                  
 801b068:	5b 85 00 4c 	sw (sp+76),r5                                  
 801b06c:	fb ff 99 1d 	calli 80014e0 <__ashlsi3>                      
 801b070:	2b 85 00 4c 	lw r5,(sp+76)                                  
 801b074:	ba 61 98 00 	or r19,r19,r1                                  
 801b078:	34 02 00 10 	mvi r2,16                                      
 801b07c:	b8 a0 08 00 	mv r1,r5                                       
 801b080:	fb ff 99 18 	calli 80014e0 <__ashlsi3>                      
 801b084:	2b 84 00 48 	lw r4,(sp+72)                                  
 801b088:	ba 61 98 00 	or r19,r19,r1                                  
 801b08c:	34 02 00 08 	mvi r2,8                                       
 801b090:	b8 80 08 00 	mv r1,r4                                       
 801b094:	fb ff 99 13 	calli 80014e0 <__ashlsi3>                      
 801b098:	ba 61 98 00 	or r19,r19,r1                                  
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
        break;                                                        
                                                                      
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
 801b09c:	34 01 00 0a 	mvi r1,10                                      
 801b0a0:	4c 2f 00 08 	bge r1,r15,801b0c0 <rtems_rfs_dir_del_entry+0x210><== NEVER TAKEN
 801b0a4:	29 81 00 1c 	lw r1,(r12+28)                                 
 801b0a8:	66 62 00 00 	cmpei r2,r19,0                                 
 801b0ac:	f1 e1 08 00 	cmpgeu r1,r15,r1                               
 801b0b0:	b8 41 08 00 	or r1,r2,r1                                    
 801b0b4:	5c 20 00 03 	bne r1,r0,801b0c0 <rtems_rfs_dir_del_entry+0x210><== NEVER TAKEN
 801b0b8:	29 81 00 14 	lw r1,(r12+20)                                 
 801b0bc:	50 33 00 0d 	bgeu r1,r19,801b0f0 <rtems_rfs_dir_del_entry+0x240><== ALWAYS TAKEN
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))          
 801b0c0:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801b0c4:	78 02 40 00 	mvhi r2,0x4000                                 <== NOT EXECUTED
 801b0c8:	fb ff d6 b7 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801b0cc:	44 20 00 8c 	be r1,r0,801b2fc <rtems_rfs_dir_del_entry+0x44c><== NOT EXECUTED
          printf ("rtems-rfs: dir-del-entry: "                        
 801b0d0:	2a 22 00 08 	lw r2,(r17+8)                                  <== NOT EXECUTED
 801b0d4:	2b 85 00 b0 	lw r5,(sp+176)                                 <== NOT EXECUTED
 801b0d8:	ba a0 08 00 	mv r1,r21                                      <== NOT EXECUTED
 801b0dc:	b9 e0 18 00 	mv r3,r15                                      <== NOT EXECUTED
 801b0e0:	ba 60 20 00 	mv r4,r19                                      <== NOT EXECUTED
 801b0e4:	b9 c0 30 00 	mv r6,r14                                      <== NOT EXECUTED
 801b0e8:	f8 00 18 a6 	calli 8021380 <printf>                         <== NOT EXECUTED
 801b0ec:	e0 00 00 84 	bi 801b2fc <rtems_rfs_dir_del_entry+0x44c>     <== NOT EXECUTED
                  rtems_rfs_inode_ino (dir), elength, eino, block, eoffset);
        rc = EIO;                                                     
        break;                                                        
      }                                                               
                                                                      
      if (ino == rtems_rfs_dir_entry_ino (entry))                     
 801b0f0:	5e 93 00 54 	bne r20,r19,801b240 <rtems_rfs_dir_del_entry+0x390><== NEVER TAKEN
      {                                                               
        uint32_t remaining;                                           
        remaining = rtems_rfs_fs_block_size (fs) - (eoffset + elength);
 801b0f4:	b5 ee 80 00 	add r16,r15,r14                                
 801b0f8:	ca d0 80 00 	sub r16,r22,r16                                
        memmove (entry, entry + elength, remaining);                  
 801b0fc:	b5 af 10 00 	add r2,r13,r15                                 
 801b100:	b9 a0 08 00 	mv r1,r13                                      
 801b104:	ba 00 18 00 	mv r3,r16                                      
 801b108:	f8 00 17 b5 	calli 8020fdc <memmove>                        
        memset (entry + remaining, 0xff, elength);                    
 801b10c:	b5 b0 08 00 	add r1,r13,r16                                 
 801b110:	34 02 00 ff 	mvi r2,255                                     
 801b114:	b9 e0 18 00 	mv r3,r15                                      
 801b118:	f8 00 17 fe 	calli 8021110 <memset>                         
         * block and it is the last block in the map shrink the map.  
         *                                                            
         * @note We could check again to see if the new end block in the map is
         *       also empty. This way we could clean up an empty directory.
         */                                                           
        elength = rtems_rfs_dir_entry_length (entry);                 
 801b11c:	43 21 00 00 	lbu r1,(r25+0)                                 
 801b120:	34 02 00 08 	mvi r2,8                                       
 801b124:	fb ff 98 ef 	calli 80014e0 <__ashlsi3>                      
 801b128:	43 0d 00 00 	lbu r13,(r24+0)                                
                                                                      
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))          
 801b12c:	78 02 40 00 	mvhi r2,0x4000                                 
         * block and it is the last block in the map shrink the map.  
         *                                                            
         * @note We could check again to see if the new end block in the map is
         *       also empty. This way we could clean up an empty directory.
         */                                                           
        elength = rtems_rfs_dir_entry_length (entry);                 
 801b130:	b8 2d 68 00 	or r13,r1,r13                                  
                                                                      
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))          
 801b134:	34 01 00 00 	mvi r1,0                                       
 801b138:	fb ff d6 9b 	calli 8010ba4 <rtems_rfs_trace>                
 801b13c:	44 20 00 16 	be r1,r0,801b194 <rtems_rfs_dir_del_entry+0x2e4><== ALWAYS TAKEN
          printf ("rtems-rfs: dir-del-entry: "                        
                  "last block free for ino %" PRIu32 ": elength=%i block=%" PRIu32
                  " offset=%d last=%s\n",                             
                  ino, elength, block, eoffset,                       
                  rtems_rfs_block_map_last (&map) ? "yes" : "no");    
 801b140:	2b 82 00 64 	lw r2,(sp+100)                                 <== NOT EXECUTED
         *       also empty. This way we could clean up an empty directory.
         */                                                           
        elength = rtems_rfs_dir_entry_length (entry);                 
                                                                      
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))          
          printf ("rtems-rfs: dir-del-entry: "                        
 801b144:	2b 84 00 b0 	lw r4,(sp+176)                                 <== NOT EXECUTED
 801b148:	5c 40 00 05 	bne r2,r0,801b15c <rtems_rfs_dir_del_entry+0x2ac><== NOT EXECUTED
                  "last block free for ino %" PRIu32 ": elength=%i block=%" PRIu32
                  " offset=%d last=%s\n",                             
                  ino, elength, block, eoffset,                       
                  rtems_rfs_block_map_last (&map) ? "yes" : "no");    
 801b14c:	2b 81 00 5c 	lw r1,(sp+92)                                  <== NOT EXECUTED
         *       also empty. This way we could clean up an empty directory.
         */                                                           
        elength = rtems_rfs_dir_entry_length (entry);                 
                                                                      
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))          
          printf ("rtems-rfs: dir-del-entry: "                        
 801b150:	78 07 08 03 	mvhi r7,0x803                                  <== NOT EXECUTED
 801b154:	38 e7 55 24 	ori r7,r7,0x5524                               <== NOT EXECUTED
                  "last block free for ino %" PRIu32 ": elength=%i block=%" PRIu32
                  " offset=%d last=%s\n",                             
                  ino, elength, block, eoffset,                       
                  rtems_rfs_block_map_last (&map) ? "yes" : "no");    
 801b158:	44 22 00 08 	be r1,r2,801b178 <rtems_rfs_dir_del_entry+0x2c8><== NOT EXECUTED
 801b15c:	2b 81 00 5c 	lw r1,(sp+92)                                  <== NOT EXECUTED
         *       also empty. This way we could clean up an empty directory.
         */                                                           
        elength = rtems_rfs_dir_entry_length (entry);                 
                                                                      
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))          
          printf ("rtems-rfs: dir-del-entry: "                        
 801b160:	78 07 08 03 	mvhi r7,0x803                                  <== NOT EXECUTED
 801b164:	38 e7 59 c4 	ori r7,r7,0x59c4                               <== NOT EXECUTED
                  "last block free for ino %" PRIu32 ": elength=%i block=%" PRIu32
                  " offset=%d last=%s\n",                             
                  ino, elength, block, eoffset,                       
                  rtems_rfs_block_map_last (&map) ? "yes" : "no");    
 801b168:	34 21 ff ff 	addi r1,r1,-1                                  <== NOT EXECUTED
 801b16c:	5c 41 00 03 	bne r2,r1,801b178 <rtems_rfs_dir_del_entry+0x2c8><== NOT EXECUTED
         *       also empty. This way we could clean up an empty directory.
         */                                                           
        elength = rtems_rfs_dir_entry_length (entry);                 
                                                                      
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))          
          printf ("rtems-rfs: dir-del-entry: "                        
 801b170:	78 07 08 03 	mvhi r7,0x803                                  <== NOT EXECUTED
 801b174:	38 e7 55 24 	ori r7,r7,0x5524                               <== NOT EXECUTED
 801b178:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801b17c:	38 21 6c f4 	ori r1,r1,0x6cf4                               <== NOT EXECUTED
 801b180:	ba 80 10 00 	mv r2,r20                                      <== NOT EXECUTED
 801b184:	b9 a0 18 00 	mv r3,r13                                      <== NOT EXECUTED
 801b188:	b9 c0 28 00 	mv r5,r14                                      <== NOT EXECUTED
 801b18c:	b8 e0 30 00 	mv r6,r7                                       <== NOT EXECUTED
 801b190:	f8 00 18 7c 	calli 8021380 <printf>                         <== NOT EXECUTED
                  "last block free for ino %" PRIu32 ": elength=%i block=%" PRIu32
                  " offset=%d last=%s\n",                             
                  ino, elength, block, eoffset,                       
                  rtems_rfs_block_map_last (&map) ? "yes" : "no");    
                                                                      
        if ((elength == RTEMS_RFS_DIR_ENTRY_EMPTY) &&                 
 801b194:	38 01 ff ff 	mvu r1,0xffff                                  
 801b198:	e5 a1 68 00 	cmpe r13,r13,r1                                
            (eoffset == 0) && rtems_rfs_block_map_last (&map))        
 801b19c:	65 ce 00 00 	cmpei r14,r14,0                                
                  "last block free for ino %" PRIu32 ": elength=%i block=%" PRIu32
                  " offset=%d last=%s\n",                             
                  ino, elength, block, eoffset,                       
                  rtems_rfs_block_map_last (&map) ? "yes" : "no");    
                                                                      
        if ((elength == RTEMS_RFS_DIR_ENTRY_EMPTY) &&                 
 801b1a0:	a1 ae 68 00 	and r13,r13,r14                                
 801b1a4:	45 a0 00 1b 	be r13,r0,801b210 <rtems_rfs_dir_del_entry+0x360><== ALWAYS TAKEN
            (eoffset == 0) && rtems_rfs_block_map_last (&map))        
 801b1a8:	2b 81 00 64 	lw r1,(sp+100)                                 <== NOT EXECUTED
 801b1ac:	5c 20 00 03 	bne r1,r0,801b1b8 <rtems_rfs_dir_del_entry+0x308><== NOT EXECUTED
 801b1b0:	2b 82 00 5c 	lw r2,(sp+92)                                  <== NOT EXECUTED
 801b1b4:	44 41 00 04 	be r2,r1,801b1c4 <rtems_rfs_dir_del_entry+0x314><== NOT EXECUTED
 801b1b8:	2b 82 00 5c 	lw r2,(sp+92)                                  <== NOT EXECUTED
 801b1bc:	34 42 ff ff 	addi r2,r2,-1                                  <== NOT EXECUTED
 801b1c0:	5c 22 00 14 	bne r1,r2,801b210 <rtems_rfs_dir_del_entry+0x360><== NOT EXECUTED
        {                                                             
          rc = rtems_rfs_block_map_shrink (fs, &map, 1);              
 801b1c4:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801b1c8:	37 82 00 54 	addi r2,sp,84                                  <== NOT EXECUTED
 801b1cc:	34 03 00 01 	mvi r3,1                                       <== NOT EXECUTED
 801b1d0:	fb ff f9 31 	calli 8019694 <rtems_rfs_block_map_shrink>     <== NOT EXECUTED
 801b1d4:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
          if (rc > 0)                                                 
 801b1d8:	4c 01 00 0e 	bge r0,r1,801b210 <rtems_rfs_dir_del_entry+0x360><== NOT EXECUTED
          {                                                           
            if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))      
 801b1dc:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801b1e0:	78 02 40 00 	mvhi r2,0x4000                                 <== NOT EXECUTED
 801b1e4:	fb ff d6 70 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801b1e8:	44 20 00 0a 	be r1,r0,801b210 <rtems_rfs_dir_del_entry+0x360><== NOT EXECUTED
              printf ("rtems-rfs: dir-del-entry: "                    
 801b1ec:	2a 2e 00 08 	lw r14,(r17+8)                                 <== NOT EXECUTED
 801b1f0:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 801b1f4:	f8 00 1d 1e 	calli 802266c <strerror>                       <== NOT EXECUTED
 801b1f8:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
 801b1fc:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801b200:	38 21 6d 54 	ori r1,r1,0x6d54                               <== NOT EXECUTED
 801b204:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 801b208:	b9 a0 18 00 	mv r3,r13                                      <== NOT EXECUTED
 801b20c:	f8 00 18 5d 	calli 8021380 <printf>                         <== NOT EXECUTED
                      "block map shrink failed for ino %" PRIu32 ": %d: %s\n",
                      rtems_rfs_inode_ino (dir), rc, strerror (rc));  
          }                                                           
        }                                                             
                                                                      
        rtems_rfs_buffer_mark_dirty (&buffer);                        
 801b210:	34 01 00 01 	mvi r1,1                                       
 801b214:	33 81 00 a4 	sb (sp+164),r1                                 
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 801b218:	37 82 00 a4 	addi r2,sp,164                                 
 801b21c:	b9 80 08 00 	mv r1,r12                                      
 801b220:	fb ff fa 88 	calli 8019c40 <rtems_rfs_buffer_handle_release>
  handle->dirty = false;                                              
 801b224:	33 80 00 a4 	sb (sp+164),r0                                 
  handle->bnum  = 0;                                                  
 801b228:	5b 80 00 a8 	sw (sp+168),r0                                 
  handle->buffer = NULL;                                              
 801b22c:	5b 80 00 ac 	sw (sp+172),r0                                 
        rtems_rfs_buffer_handle_close (fs, &buffer);                  
        rtems_rfs_block_map_close (fs, &map);                         
 801b230:	b9 80 08 00 	mv r1,r12                                      
 801b234:	37 82 00 54 	addi r2,sp,84                                  
 801b238:	fb ff f6 ac 	calli 8018ce8 <rtems_rfs_block_map_close>      
        return 0;                                                     
 801b23c:	e0 00 00 1c 	bi 801b2ac <rtems_rfs_dir_del_entry+0x3fc>     
      }                                                               
                                                                      
      if (!search)                                                    
 801b240:	46 e0 00 2f 	be r23,r0,801b2fc <rtems_rfs_dir_del_entry+0x44c><== NOT EXECUTED
      {                                                               
        rc = EIO;                                                     
        break;                                                        
      }                                                               
                                                                      
      entry   += elength;                                             
 801b244:	b5 af 68 00 	add r13,r13,r15                                <== NOT EXECUTED
      eoffset += elength;                                             
 801b248:	b5 cf 70 00 	add r14,r14,r15                                <== NOT EXECUTED
    else                                                              
      eoffset = offset % rtems_rfs_fs_block_size (fs);                
                                                                      
    entry = rtems_rfs_buffer_data (&buffer) + eoffset;                
                                                                      
    while (eoffset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
 801b24c:	2b 81 00 50 	lw r1,(sp+80)                                  
 801b250:	54 2e ff 76 	bgu r1,r14,801b028 <rtems_rfs_dir_del_entry+0x178><== ALWAYS TAKEN
                                                                      
      entry   += elength;                                             
      eoffset += elength;                                             
    }                                                                 
                                                                      
    if (rc == 0)                                                      
 801b254:	5e 00 00 09 	bne r16,r0,801b278 <rtems_rfs_dir_del_entry+0x3c8><== NOT EXECUTED
    {                                                                 
      rc = rtems_rfs_block_map_next_block (fs, &map, &block);         
 801b258:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801b25c:	37 82 00 54 	addi r2,sp,84                                  <== NOT EXECUTED
 801b260:	37 83 00 b0 	addi r3,sp,176                                 <== NOT EXECUTED
 801b264:	fb ff f7 e3 	calli 80191f0 <rtems_rfs_block_map_next_block> <== NOT EXECUTED
 801b268:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
      if (rc == ENXIO)                                                
 801b26c:	5c 3b 00 04 	bne r1,fp,801b27c <rtems_rfs_dir_del_entry+0x3cc><== NOT EXECUTED
        rc = ENOENT;                                                  
 801b270:	34 0b 00 02 	mvi r11,2                                      <== NOT EXECUTED
 801b274:	e0 00 00 03 	bi 801b280 <rtems_rfs_dir_del_entry+0x3d0>     <== NOT EXECUTED
      rc = ENOENT;                                                    
    rtems_rfs_block_map_close (fs, &map);                             
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_buffer_handle_open (fs, &buffer);                    
 801b278:	ba 00 58 00 	mv r11,r16                                     <== NOT EXECUTED
  /*                                                                  
   * Only search if the offset is 0 else we are at that position.     
   */                                                                 
  search = offset ? false : true;                                     
                                                                      
  while (rc == 0)                                                     
 801b27c:	45 60 ff 49 	be r11,r0,801afa0 <rtems_rfs_dir_del_entry+0xf0><== ALWAYS TAKEN
 801b280:	b9 60 80 00 	mv r16,r11                                     <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 801b284:	37 82 00 a4 	addi r2,sp,164                                 <== NOT EXECUTED
 801b288:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801b28c:	fb ff fa 6d 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
        rc = ENOENT;                                                  
    }                                                                 
  }                                                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &buffer);                        
  rtems_rfs_block_map_close (fs, &map);                               
 801b290:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801b294:	37 82 00 54 	addi r2,sp,84                                  <== NOT EXECUTED
  handle->dirty = false;                                              
 801b298:	33 80 00 a4 	sb (sp+164),r0                                 <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 801b29c:	5b 80 00 a8 	sw (sp+168),r0                                 <== NOT EXECUTED
  handle->buffer = NULL;                                              
 801b2a0:	5b 80 00 ac 	sw (sp+172),r0                                 <== NOT EXECUTED
  return rc;                                                          
 801b2a4:	ba 00 58 00 	mv r11,r16                                     <== NOT EXECUTED
        rc = ENOENT;                                                  
    }                                                                 
  }                                                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &buffer);                        
  rtems_rfs_block_map_close (fs, &map);                               
 801b2a8:	fb ff f6 90 	calli 8018ce8 <rtems_rfs_block_map_close>      <== NOT EXECUTED
  return rc;                                                          
}                                                                     
 801b2ac:	b9 60 08 00 	mv r1,r11                                      
 801b2b0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801b2b4:	2b 8b 00 44 	lw r11,(sp+68)                                 
 801b2b8:	2b 8c 00 40 	lw r12,(sp+64)                                 
 801b2bc:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 801b2c0:	2b 8e 00 38 	lw r14,(sp+56)                                 
 801b2c4:	2b 8f 00 34 	lw r15,(sp+52)                                 
 801b2c8:	2b 90 00 30 	lw r16,(sp+48)                                 
 801b2cc:	2b 91 00 2c 	lw r17,(sp+44)                                 
 801b2d0:	2b 92 00 28 	lw r18,(sp+40)                                 
 801b2d4:	2b 93 00 24 	lw r19,(sp+36)                                 
 801b2d8:	2b 94 00 20 	lw r20,(sp+32)                                 
 801b2dc:	2b 95 00 1c 	lw r21,(sp+28)                                 
 801b2e0:	2b 96 00 18 	lw r22,(sp+24)                                 
 801b2e4:	2b 97 00 14 	lw r23,(sp+20)                                 
 801b2e8:	2b 98 00 10 	lw r24,(sp+16)                                 
 801b2ec:	2b 99 00 0c 	lw r25,(sp+12)                                 
 801b2f0:	2b 9b 00 08 	lw fp,(sp+8)                                   
 801b2f4:	37 9c 00 b0 	addi sp,sp,176                                 
 801b2f8:	c3 a0 00 00 	ret                                            
      rc = ENOENT;                                                    
    rtems_rfs_block_map_close (fs, &map);                             
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_buffer_handle_open (fs, &buffer);                    
 801b2fc:	34 10 00 05 	mvi r16,5                                      <== NOT EXECUTED
 801b300:	e3 ff ff de 	bi 801b278 <rtems_rfs_dir_del_entry+0x3c8>     <== NOT EXECUTED
                                                                      

0801b6f4 <rtems_rfs_dir_empty>: int rtems_rfs_dir_empty (rtems_rfs_file_system* fs, rtems_rfs_inode_handle* dir) {
 801b6f4:	37 9c ff 54 	addi sp,sp,-172                                
 801b6f8:	5b 8b 00 44 	sw (sp+68),r11                                 
 801b6fc:	5b 8c 00 40 	sw (sp+64),r12                                 
 801b700:	5b 8d 00 3c 	sw (sp+60),r13                                 
 801b704:	5b 8e 00 38 	sw (sp+56),r14                                 
 801b708:	5b 8f 00 34 	sw (sp+52),r15                                 
 801b70c:	5b 90 00 30 	sw (sp+48),r16                                 
 801b710:	5b 91 00 2c 	sw (sp+44),r17                                 
 801b714:	5b 92 00 28 	sw (sp+40),r18                                 
 801b718:	5b 93 00 24 	sw (sp+36),r19                                 
 801b71c:	5b 94 00 20 	sw (sp+32),r20                                 
 801b720:	5b 95 00 1c 	sw (sp+28),r21                                 
 801b724:	5b 96 00 18 	sw (sp+24),r22                                 
 801b728:	5b 97 00 14 	sw (sp+20),r23                                 
 801b72c:	5b 98 00 10 	sw (sp+16),r24                                 
 801b730:	5b 99 00 0c 	sw (sp+12),r25                                 
 801b734:	5b 9b 00 08 	sw (sp+8),fp                                   
 801b738:	5b 9d 00 04 	sw (sp+4),ra                                   
 801b73c:	b8 20 60 00 	mv r12,r1                                      
 801b740:	b8 40 90 00 	mv r18,r2                                      
  rtems_rfs_buffer_handle buffer;                                     
  rtems_rfs_block_no      block;                                      
  bool                    empty;                                      
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                     
 801b744:	34 01 00 00 	mvi r1,0                                       
 801b748:	78 02 80 00 	mvhi r2,0x8000                                 
 801b74c:	fb ff d5 16 	calli 8010ba4 <rtems_rfs_trace>                
 801b750:	44 20 00 05 	be r1,r0,801b764 <rtems_rfs_dir_empty+0x70>    <== ALWAYS TAKEN
    printf ("rtems-rfs: dir-empty: dir=%" PRId32 "\n", rtems_rfs_inode_ino (dir));
 801b754:	2a 42 00 08 	lw r2,(r18+8)                                  <== NOT EXECUTED
 801b758:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801b75c:	38 21 6e 78 	ori r1,r1,0x6e78                               <== NOT EXECUTED
 801b760:	f8 00 17 08 	calli 8021380 <printf>                         <== NOT EXECUTED
                                                                      
  empty = true;                                                       
                                                                      
  rc = rtems_rfs_block_map_open (fs, dir, &map);                      
 801b764:	37 8d 00 50 	addi r13,sp,80                                 
 801b768:	b9 80 08 00 	mv r1,r12                                      
 801b76c:	ba 40 10 00 	mv r2,r18                                      
 801b770:	b9 a0 18 00 	mv r3,r13                                      
 801b774:	fb ff f4 d6 	calli 8018acc <rtems_rfs_block_map_open>       
 801b778:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 801b77c:	48 20 00 72 	bg r1,r0,801b944 <rtems_rfs_dir_empty+0x250>   <== NEVER TAKEN
    return rc;                                                        
                                                                      
  rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);                
 801b780:	b9 80 08 00 	mv r1,r12                                      
 801b784:	b9 a0 10 00 	mv r2,r13                                      
 801b788:	34 03 00 00 	mvi r3,0                                       
 801b78c:	34 04 00 00 	mvi r4,0                                       
 801b790:	37 85 00 ac 	addi r5,sp,172                                 
 801b794:	fb ff f6 62 	calli 801911c <rtems_rfs_block_map_seek>       
 801b798:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 801b79c:	4c 01 00 04 	bge r0,r1,801b7ac <rtems_rfs_dir_empty+0xb8>   <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_block_map_close (fs, &map);                             
 801b7a0:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801b7a4:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 801b7a8:	e0 00 00 66 	bi 801b940 <rtems_rfs_dir_empty+0x24c>         <== NOT EXECUTED
        break;                                                        
                                                                      
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_EMPTY))              
          printf ("rtems-rfs: dir-empty: "                            
 801b7ac:	78 10 08 03 	mvhi r16,0x803                                 
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
 801b7b0:	33 80 00 a0 	sb (sp+160),r0                                 
  handle->bnum  = 0;                                                  
 801b7b4:	5b 80 00 a4 	sw (sp+164),r0                                 
  handle->buffer = NULL;                                              
 801b7b8:	5b 80 00 a8 	sw (sp+168),r0                                 
  while (empty)                                                       
  {                                                                   
    uint8_t* entry;                                                   
    int      offset;                                                  
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);  
 801b7bc:	37 99 00 a0 	addi r25,sp,160                                
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
      eino    = rtems_rfs_dir_entry_ino (entry);                      
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
 801b7c0:	38 18 ff ff 	mvu r24,0xffff                                 
        break;                                                        
                                                                      
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
 801b7c4:	34 17 00 0a 	mvi r23,10                                     
                                                                      
      /*                                                              
       * Ignore the current (.) and parent (..) entries. Anything else means
       * the directory is not empty.                                  
       */                                                             
      if (((elength != (RTEMS_RFS_DIR_ENTRY_SIZE + 1)) ||             
 801b7c8:	34 16 00 0b 	mvi r22,11                                     
           (entry[RTEMS_RFS_DIR_ENTRY_SIZE] != '.')) &&               
 801b7cc:	34 15 00 0c 	mvi r21,12                                     
          ((elength != (RTEMS_RFS_DIR_ENTRY_SIZE + 2)) ||             
 801b7d0:	34 11 00 2e 	mvi r17,46                                     
        break;                                                        
                                                                      
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_EMPTY))              
          printf ("rtems-rfs: dir-empty: "                            
 801b7d4:	3a 10 6e 98 	ori r16,r16,0x6e98                             
      offset += elength;                                              
    }                                                                 
                                                                      
    if (empty)                                                        
    {                                                                 
      rc = rtems_rfs_block_map_next_block (fs, &map, &block);         
 801b7d8:	b9 a0 a0 00 	mv r20,r13                                     
  while (empty)                                                       
  {                                                                   
    uint8_t* entry;                                                   
    int      offset;                                                  
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);  
 801b7dc:	2b 83 00 ac 	lw r3,(sp+172)                                 
 801b7e0:	b9 80 08 00 	mv r1,r12                                      
 801b7e4:	bb 20 10 00 	mv r2,r25                                      
 801b7e8:	34 04 00 01 	mvi r4,1                                       
 801b7ec:	fb ff f9 84 	calli 8019dfc <rtems_rfs_buffer_handle_request>
 801b7f0:	b8 20 58 00 	mv r11,r1                                      
    if (rc > 0)                                                       
 801b7f4:	48 20 00 4b 	bg r1,r0,801b920 <rtems_rfs_dir_empty+0x22c>   <== NEVER TAKEN
      break;                                                          
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
 801b7f8:	2b 81 00 a8 	lw r1,(sp+168)                                 
    offset = 0;                                                       
                                                                      
    while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
 801b7fc:	29 9b 00 08 	lw fp,(r12+8)                                  
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);  
    if (rc > 0)                                                       
      break;                                                          
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
    offset = 0;                                                       
 801b800:	34 0f 00 00 	mvi r15,0                                      
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);  
    if (rc > 0)                                                       
      break;                                                          
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
 801b804:	28 2d 00 1c 	lw r13,(r1+28)                                 
    offset = 0;                                                       
                                                                      
    while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
 801b808:	37 7b ff f6 	addi fp,fp,-10                                 
 801b80c:	e0 00 00 38 	bi 801b8ec <rtems_rfs_dir_empty+0x1f8>         
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
 801b810:	41 a1 00 08 	lbu r1,(r13+8)                                 
 801b814:	34 02 00 08 	mvi r2,8                                       
 801b818:	fb ff 97 32 	calli 80014e0 <__ashlsi3>                      
 801b81c:	41 ae 00 09 	lbu r14,(r13+9)                                
      eino    = rtems_rfs_dir_entry_ino (entry);                      
 801b820:	41 a3 00 00 	lbu r3,(r13+0)                                 
 801b824:	41 a5 00 01 	lbu r5,(r13+1)                                 
    while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
 801b828:	b8 2e 70 00 	or r14,r1,r14                                  
      eino    = rtems_rfs_dir_entry_ino (entry);                      
 801b82c:	41 a4 00 02 	lbu r4,(r13+2)                                 
 801b830:	41 b3 00 03 	lbu r19,(r13+3)                                
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
 801b834:	45 d8 00 2f 	be r14,r24,801b8f0 <rtems_rfs_dir_empty+0x1fc> 
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
      eino    = rtems_rfs_dir_entry_ino (entry);                      
 801b838:	b8 60 08 00 	mv r1,r3                                       
 801b83c:	34 02 00 18 	mvi r2,24                                      
 801b840:	5b 84 00 48 	sw (sp+72),r4                                  
 801b844:	5b 85 00 4c 	sw (sp+76),r5                                  
 801b848:	fb ff 97 26 	calli 80014e0 <__ashlsi3>                      
 801b84c:	2b 85 00 4c 	lw r5,(sp+76)                                  
 801b850:	ba 61 98 00 	or r19,r19,r1                                  
 801b854:	34 02 00 10 	mvi r2,16                                      
 801b858:	b8 a0 08 00 	mv r1,r5                                       
 801b85c:	fb ff 97 21 	calli 80014e0 <__ashlsi3>                      
 801b860:	2b 84 00 48 	lw r4,(sp+72)                                  
 801b864:	ba 61 98 00 	or r19,r19,r1                                  
 801b868:	34 02 00 08 	mvi r2,8                                       
 801b86c:	b8 80 08 00 	mv r1,r4                                       
 801b870:	fb ff 97 1c 	calli 80014e0 <__ashlsi3>                      
 801b874:	ba 61 98 00 	or r19,r19,r1                                  
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
        break;                                                        
                                                                      
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
 801b878:	4e ee 00 08 	bge r23,r14,801b898 <rtems_rfs_dir_empty+0x1a4><== NEVER TAKEN
 801b87c:	29 81 00 1c 	lw r1,(r12+28)                                 
 801b880:	66 62 00 00 	cmpei r2,r19,0                                 
 801b884:	f1 c1 08 00 	cmpgeu r1,r14,r1                               
 801b888:	b8 41 08 00 	or r1,r2,r1                                    
 801b88c:	5c 20 00 03 	bne r1,r0,801b898 <rtems_rfs_dir_empty+0x1a4>  <== NEVER TAKEN
 801b890:	29 81 00 14 	lw r1,(r12+20)                                 
 801b894:	50 33 00 0c 	bgeu r1,r19,801b8c4 <rtems_rfs_dir_empty+0x1d0><== ALWAYS TAKEN
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_EMPTY))              
 801b898:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
 801b89c:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 801b8a0:	fb ff d4 c1 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801b8a4:	44 20 00 13 	be r1,r0,801b8f0 <rtems_rfs_dir_empty+0x1fc>   <== NOT EXECUTED
          printf ("rtems-rfs: dir-empty: "                            
 801b8a8:	2a 42 00 08 	lw r2,(r18+8)                                  <== NOT EXECUTED
 801b8ac:	ba 00 08 00 	mv r1,r16                                      <== NOT EXECUTED
 801b8b0:	b9 c0 18 00 	mv r3,r14                                      <== NOT EXECUTED
 801b8b4:	ba 60 20 00 	mv r4,r19                                      <== NOT EXECUTED
 801b8b8:	b9 e0 28 00 	mv r5,r15                                      <== NOT EXECUTED
 801b8bc:	f8 00 16 b1 	calli 8021380 <printf>                         <== NOT EXECUTED
 801b8c0:	e0 00 00 0c 	bi 801b8f0 <rtems_rfs_dir_empty+0x1fc>         <== NOT EXECUTED
                                                                      
      /*                                                              
       * Ignore the current (.) and parent (..) entries. Anything else means
       * the directory is not empty.                                  
       */                                                             
      if (((elength != (RTEMS_RFS_DIR_ENTRY_SIZE + 1)) ||             
 801b8c4:	5d d6 00 03 	bne r14,r22,801b8d0 <rtems_rfs_dir_empty+0x1dc>
 801b8c8:	41 a1 00 0a 	lbu r1,(r13+10)                                
 801b8cc:	e0 00 00 05 	bi 801b8e0 <rtems_rfs_dir_empty+0x1ec>         
           (entry[RTEMS_RFS_DIR_ENTRY_SIZE] != '.')) &&               
 801b8d0:	5d d5 00 12 	bne r14,r21,801b918 <rtems_rfs_dir_empty+0x224>
          ((elength != (RTEMS_RFS_DIR_ENTRY_SIZE + 2)) ||             
 801b8d4:	41 a1 00 0a 	lbu r1,(r13+10)                                
 801b8d8:	5c 31 00 10 	bne r1,r17,801b918 <rtems_rfs_dir_empty+0x224> <== NEVER TAKEN
           (entry[RTEMS_RFS_DIR_ENTRY_SIZE] != '.') ||                
 801b8dc:	41 a1 00 0b 	lbu r1,(r13+11)                                
 801b8e0:	5c 31 00 0e 	bne r1,r17,801b918 <rtems_rfs_dir_empty+0x224> <== NEVER TAKEN
      {                                                               
        empty = false;                                                
        break;                                                        
      }                                                               
                                                                      
      entry  += elength;                                              
 801b8e4:	b5 ae 68 00 	add r13,r13,r14                                
      offset += elength;                                              
 801b8e8:	b5 ee 78 00 	add r15,r15,r14                                
      break;                                                          
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
    offset = 0;                                                       
                                                                      
    while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
 801b8ec:	57 6f ff c9 	bgu fp,r15,801b810 <rtems_rfs_dir_empty+0x11c> <== ALWAYS TAKEN
      offset += elength;                                              
    }                                                                 
                                                                      
    if (empty)                                                        
    {                                                                 
      rc = rtems_rfs_block_map_next_block (fs, &map, &block);         
 801b8f0:	b9 80 08 00 	mv r1,r12                                      
 801b8f4:	ba 80 10 00 	mv r2,r20                                      
 801b8f8:	37 83 00 ac 	addi r3,sp,172                                 
 801b8fc:	fb ff f6 3d 	calli 80191f0 <rtems_rfs_block_map_next_block> 
 801b900:	b8 20 58 00 	mv r11,r1                                      
      if (rc > 0)                                                     
 801b904:	4c 01 ff b6 	bge r0,r1,801b7dc <rtems_rfs_dir_empty+0xe8>   <== NEVER TAKEN
      {                                                               
        if (rc == ENXIO)                                              
 801b908:	7c 21 00 06 	cmpnei r1,r1,6                                 
 801b90c:	c8 01 08 00 	sub r1,r0,r1                                   
 801b910:	a1 61 58 00 	and r11,r11,r1                                 
 801b914:	e0 00 00 03 	bi 801b920 <rtems_rfs_dir_empty+0x22c>         
        break;                                                        
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ((rc == 0) && !empty)                                            
 801b918:	5d 60 00 02 	bne r11,r0,801b920 <rtems_rfs_dir_empty+0x22c> <== NEVER TAKEN
    rc = ENOTEMPTY;                                                   
 801b91c:	34 0b 00 5a 	mvi r11,90                                     
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 801b920:	37 82 00 a0 	addi r2,sp,160                                 
 801b924:	b9 80 08 00 	mv r1,r12                                      
 801b928:	fb ff f8 c6 	calli 8019c40 <rtems_rfs_buffer_handle_release>
                                                                      
  rtems_rfs_buffer_handle_close (fs, &buffer);                        
  rtems_rfs_block_map_close (fs, &map);                               
 801b92c:	b9 80 08 00 	mv r1,r12                                      
  handle->dirty = false;                                              
 801b930:	33 80 00 a0 	sb (sp+160),r0                                 
  handle->bnum  = 0;                                                  
 801b934:	5b 80 00 a4 	sw (sp+164),r0                                 
  handle->buffer = NULL;                                              
 801b938:	5b 80 00 a8 	sw (sp+168),r0                                 
 801b93c:	37 82 00 50 	addi r2,sp,80                                  
 801b940:	fb ff f4 ea 	calli 8018ce8 <rtems_rfs_block_map_close>      
  return rc;                                                          
}                                                                     
 801b944:	b9 60 08 00 	mv r1,r11                                      
 801b948:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801b94c:	2b 8b 00 44 	lw r11,(sp+68)                                 
 801b950:	2b 8c 00 40 	lw r12,(sp+64)                                 
 801b954:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 801b958:	2b 8e 00 38 	lw r14,(sp+56)                                 
 801b95c:	2b 8f 00 34 	lw r15,(sp+52)                                 
 801b960:	2b 90 00 30 	lw r16,(sp+48)                                 
 801b964:	2b 91 00 2c 	lw r17,(sp+44)                                 
 801b968:	2b 92 00 28 	lw r18,(sp+40)                                 
 801b96c:	2b 93 00 24 	lw r19,(sp+36)                                 
 801b970:	2b 94 00 20 	lw r20,(sp+32)                                 
 801b974:	2b 95 00 1c 	lw r21,(sp+28)                                 
 801b978:	2b 96 00 18 	lw r22,(sp+24)                                 
 801b97c:	2b 97 00 14 	lw r23,(sp+20)                                 
 801b980:	2b 98 00 10 	lw r24,(sp+16)                                 
 801b984:	2b 99 00 0c 	lw r25,(sp+12)                                 
 801b988:	2b 9b 00 08 	lw fp,(sp+8)                                   
 801b98c:	37 9c 00 ac 	addi sp,sp,172                                 
 801b990:	c3 a0 00 00 	ret                                            
                                                                      

0801f438 <rtems_rfs_dir_hash>: */ #define initval (20010928) uint32_t rtems_rfs_dir_hash (const void *key, size_t length) {
 801f438:	37 9c ff e0 	addi sp,sp,-32                                 
 801f43c:	5b 8b 00 20 	sw (sp+32),r11                                 
 801f440:	5b 8c 00 1c 	sw (sp+28),r12                                 
 801f444:	5b 8d 00 18 	sw (sp+24),r13                                 
 801f448:	5b 8e 00 14 	sw (sp+20),r14                                 
 801f44c:	5b 8f 00 10 	sw (sp+16),r15                                 
 801f450:	5b 90 00 0c 	sw (sp+12),r16                                 
 801f454:	5b 91 00 08 	sw (sp+8),r17                                  
 801f458:	5b 9d 00 04 	sw (sp+4),ra                                   
 801f45c:	b8 40 78 00 	mv r15,r2                                      
  uint32_t a,b,c;                             /* internal state */    
  union { const void *ptr; size_t i; } u;     /* needed for Mac Powerbook G4 */
                                                                      
  /* Set up the internal state */                                     
  a = b = c = 0xdeadbeef + ((uint32_t)length) + initval;              
 801f460:	78 02 08 03 	mvhi r2,0x803                                  
 801f464:	38 42 78 b4 	ori r2,r2,0x78b4                               
 801f468:	28 4c 00 00 	lw r12,(r2+0)                                  
        break;                                                        
      case 0 : return c;                     /* zero length requires no mixing */
    }                                                                 
                                                                      
  } else {                        /* need to read the key one byte at a time */
    const uint8_t *k = (const uint8_t *)key;                          
 801f46c:	b8 20 58 00 	mv r11,r1                                      
                                                                      
    /*--------------- all but the last block: affect some 32 bits of (a,b,c) */
    while (length > 12)                                               
 801f470:	34 10 00 0c 	mvi r16,12                                     
{                                                                     
  uint32_t a,b,c;                             /* internal state */    
  union { const void *ptr; size_t i; } u;     /* needed for Mac Powerbook G4 */
                                                                      
  /* Set up the internal state */                                     
  a = b = c = 0xdeadbeef + ((uint32_t)length) + initval;              
 801f474:	b5 ec 60 00 	add r12,r15,r12                                
 801f478:	b9 80 68 00 	mv r13,r12                                     
 801f47c:	b9 80 70 00 	mv r14,r12                                     
                                                                      
  } else {                        /* need to read the key one byte at a time */
    const uint8_t *k = (const uint8_t *)key;                          
                                                                      
    /*--------------- all but the last block: affect some 32 bits of (a,b,c) */
    while (length > 12)                                               
 801f480:	e0 00 00 72 	bi 801f648 <rtems_rfs_dir_hash+0x210>          
    {                                                                 
      a += k[0];                                                      
      a += ((uint32_t)k[1])<<8;                                       
 801f484:	41 61 00 01 	lbu r1,(r11+1)                                 
 801f488:	34 02 00 08 	mvi r2,8                                       
      c += k[8];                                                      
      c += ((uint32_t)k[9])<<8;                                       
      c += ((uint32_t)k[10])<<16;                                     
      c += ((uint32_t)k[11])<<24;                                     
      mix(a,b,c);                                                     
      length -= 12;                                                   
 801f48c:	35 ef ff f4 	addi r15,r15,-12                               
                                                                      
    /*--------------- all but the last block: affect some 32 bits of (a,b,c) */
    while (length > 12)                                               
    {                                                                 
      a += k[0];                                                      
      a += ((uint32_t)k[1])<<8;                                       
 801f490:	fb ff 88 14 	calli 80014e0 <__ashlsi3>                      
 801f494:	b8 20 88 00 	mv r17,r1                                      
      a += ((uint32_t)k[2])<<16;                                      
 801f498:	41 61 00 02 	lbu r1,(r11+2)                                 
 801f49c:	34 02 00 10 	mvi r2,16                                      
 801f4a0:	fb ff 88 10 	calli 80014e0 <__ashlsi3>                      
    const uint8_t *k = (const uint8_t *)key;                          
                                                                      
    /*--------------- all but the last block: affect some 32 bits of (a,b,c) */
    while (length > 12)                                               
    {                                                                 
      a += k[0];                                                      
 801f4a4:	b6 21 08 00 	add r1,r17,r1                                  
 801f4a8:	41 71 00 00 	lbu r17,(r11+0)                                
      a += ((uint32_t)k[1])<<8;                                       
      a += ((uint32_t)k[2])<<16;                                      
      a += ((uint32_t)k[3])<<24;                                      
 801f4ac:	34 02 00 18 	mvi r2,24                                      
                                                                      
    /*--------------- all but the last block: affect some 32 bits of (a,b,c) */
    while (length > 12)                                               
    {                                                                 
      a += k[0];                                                      
      a += ((uint32_t)k[1])<<8;                                       
 801f4b0:	b4 31 88 00 	add r17,r1,r17                                 
      a += ((uint32_t)k[2])<<16;                                      
      a += ((uint32_t)k[3])<<24;                                      
 801f4b4:	41 61 00 03 	lbu r1,(r11+3)                                 
 801f4b8:	fb ff 88 0a 	calli 80014e0 <__ashlsi3>                      
    /*--------------- all but the last block: affect some 32 bits of (a,b,c) */
    while (length > 12)                                               
    {                                                                 
      a += k[0];                                                      
      a += ((uint32_t)k[1])<<8;                                       
      a += ((uint32_t)k[2])<<16;                                      
 801f4bc:	b6 21 08 00 	add r1,r17,r1                                  
      a += ((uint32_t)k[3])<<24;                                      
 801f4c0:	b4 2e 70 00 	add r14,r1,r14                                 
      b += k[4];                                                      
      b += ((uint32_t)k[5])<<8;                                       
 801f4c4:	41 61 00 05 	lbu r1,(r11+5)                                 
 801f4c8:	34 02 00 08 	mvi r2,8                                       
 801f4cc:	fb ff 88 05 	calli 80014e0 <__ashlsi3>                      
 801f4d0:	b8 20 88 00 	mv r17,r1                                      
      b += ((uint32_t)k[6])<<16;                                      
 801f4d4:	41 61 00 06 	lbu r1,(r11+6)                                 
 801f4d8:	34 02 00 10 	mvi r2,16                                      
 801f4dc:	fb ff 88 01 	calli 80014e0 <__ashlsi3>                      
    {                                                                 
      a += k[0];                                                      
      a += ((uint32_t)k[1])<<8;                                       
      a += ((uint32_t)k[2])<<16;                                      
      a += ((uint32_t)k[3])<<24;                                      
      b += k[4];                                                      
 801f4e0:	b6 21 08 00 	add r1,r17,r1                                  
 801f4e4:	41 71 00 04 	lbu r17,(r11+4)                                
      b += ((uint32_t)k[5])<<8;                                       
      b += ((uint32_t)k[6])<<16;                                      
      b += ((uint32_t)k[7])<<24;                                      
 801f4e8:	34 02 00 18 	mvi r2,24                                      
      a += k[0];                                                      
      a += ((uint32_t)k[1])<<8;                                       
      a += ((uint32_t)k[2])<<16;                                      
      a += ((uint32_t)k[3])<<24;                                      
      b += k[4];                                                      
      b += ((uint32_t)k[5])<<8;                                       
 801f4ec:	b4 31 88 00 	add r17,r1,r17                                 
      b += ((uint32_t)k[6])<<16;                                      
      b += ((uint32_t)k[7])<<24;                                      
 801f4f0:	41 61 00 07 	lbu r1,(r11+7)                                 
 801f4f4:	fb ff 87 fb 	calli 80014e0 <__ashlsi3>                      
      a += ((uint32_t)k[1])<<8;                                       
      a += ((uint32_t)k[2])<<16;                                      
      a += ((uint32_t)k[3])<<24;                                      
      b += k[4];                                                      
      b += ((uint32_t)k[5])<<8;                                       
      b += ((uint32_t)k[6])<<16;                                      
 801f4f8:	b6 21 08 00 	add r1,r17,r1                                  
      b += ((uint32_t)k[7])<<24;                                      
 801f4fc:	b4 2d 68 00 	add r13,r1,r13                                 
      c += k[8];                                                      
      c += ((uint32_t)k[9])<<8;                                       
 801f500:	41 61 00 09 	lbu r1,(r11+9)                                 
 801f504:	34 02 00 08 	mvi r2,8                                       
 801f508:	fb ff 87 f6 	calli 80014e0 <__ashlsi3>                      
 801f50c:	b8 20 88 00 	mv r17,r1                                      
      c += ((uint32_t)k[10])<<16;                                     
 801f510:	41 61 00 0a 	lbu r1,(r11+10)                                
 801f514:	34 02 00 10 	mvi r2,16                                      
 801f518:	fb ff 87 f2 	calli 80014e0 <__ashlsi3>                      
      a += ((uint32_t)k[3])<<24;                                      
      b += k[4];                                                      
      b += ((uint32_t)k[5])<<8;                                       
      b += ((uint32_t)k[6])<<16;                                      
      b += ((uint32_t)k[7])<<24;                                      
      c += k[8];                                                      
 801f51c:	b6 21 08 00 	add r1,r17,r1                                  
 801f520:	41 71 00 08 	lbu r17,(r11+8)                                
      c += ((uint32_t)k[9])<<8;                                       
      c += ((uint32_t)k[10])<<16;                                     
      c += ((uint32_t)k[11])<<24;                                     
 801f524:	34 02 00 18 	mvi r2,24                                      
      b += k[4];                                                      
      b += ((uint32_t)k[5])<<8;                                       
      b += ((uint32_t)k[6])<<16;                                      
      b += ((uint32_t)k[7])<<24;                                      
      c += k[8];                                                      
      c += ((uint32_t)k[9])<<8;                                       
 801f528:	b4 31 88 00 	add r17,r1,r17                                 
      c += ((uint32_t)k[10])<<16;                                     
      c += ((uint32_t)k[11])<<24;                                     
 801f52c:	41 61 00 0b 	lbu r1,(r11+11)                                
      mix(a,b,c);                                                     
      length -= 12;                                                   
      k += 12;                                                        
 801f530:	35 6b 00 0c 	addi r11,r11,12                                
      b += ((uint32_t)k[6])<<16;                                      
      b += ((uint32_t)k[7])<<24;                                      
      c += k[8];                                                      
      c += ((uint32_t)k[9])<<8;                                       
      c += ((uint32_t)k[10])<<16;                                     
      c += ((uint32_t)k[11])<<24;                                     
 801f534:	fb ff 87 eb 	calli 80014e0 <__ashlsi3>                      
      b += ((uint32_t)k[5])<<8;                                       
      b += ((uint32_t)k[6])<<16;                                      
      b += ((uint32_t)k[7])<<24;                                      
      c += k[8];                                                      
      c += ((uint32_t)k[9])<<8;                                       
      c += ((uint32_t)k[10])<<16;                                     
 801f538:	b6 21 08 00 	add r1,r17,r1                                  
      c += ((uint32_t)k[11])<<24;                                     
 801f53c:	b4 2c 60 00 	add r12,r1,r12                                 
      mix(a,b,c);                                                     
 801f540:	b9 80 08 00 	mv r1,r12                                      
 801f544:	34 02 00 04 	mvi r2,4                                       
 801f548:	fb ff 87 e6 	calli 80014e0 <__ashlsi3>                      
 801f54c:	b8 20 88 00 	mv r17,r1                                      
 801f550:	34 02 00 1c 	mvi r2,28                                      
 801f554:	b9 80 08 00 	mv r1,r12                                      
 801f558:	fb ff 88 09 	calli 800157c <__lshrsi3>                      
 801f55c:	ba 21 08 00 	or r1,r17,r1                                   
 801f560:	c9 cc 70 00 	sub r14,r14,r12                                
 801f564:	99 c1 70 00 	xor r14,r14,r1                                 
 801f568:	b9 c0 08 00 	mv r1,r14                                      
 801f56c:	34 02 00 06 	mvi r2,6                                       
 801f570:	fb ff 87 dc 	calli 80014e0 <__ashlsi3>                      
 801f574:	b8 20 88 00 	mv r17,r1                                      
 801f578:	34 02 00 1a 	mvi r2,26                                      
 801f57c:	b9 c0 08 00 	mv r1,r14                                      
 801f580:	fb ff 87 ff 	calli 800157c <__lshrsi3>                      
 801f584:	b5 8d 60 00 	add r12,r12,r13                                
 801f588:	ba 21 08 00 	or r1,r17,r1                                   
 801f58c:	c9 ae 68 00 	sub r13,r13,r14                                
 801f590:	98 2d 68 00 	xor r13,r1,r13                                 
 801f594:	b9 a0 08 00 	mv r1,r13                                      
 801f598:	34 02 00 08 	mvi r2,8                                       
 801f59c:	fb ff 87 d1 	calli 80014e0 <__ashlsi3>                      
 801f5a0:	b8 20 88 00 	mv r17,r1                                      
 801f5a4:	34 02 00 18 	mvi r2,24                                      
 801f5a8:	b9 a0 08 00 	mv r1,r13                                      
 801f5ac:	fb ff 87 f4 	calli 800157c <__lshrsi3>                      
 801f5b0:	b5 cc 70 00 	add r14,r14,r12                                
 801f5b4:	ba 21 08 00 	or r1,r17,r1                                   
 801f5b8:	c9 8d 60 00 	sub r12,r12,r13                                
 801f5bc:	98 2c 60 00 	xor r12,r1,r12                                 
 801f5c0:	b9 80 08 00 	mv r1,r12                                      
 801f5c4:	34 02 00 10 	mvi r2,16                                      
 801f5c8:	fb ff 87 c6 	calli 80014e0 <__ashlsi3>                      
 801f5cc:	b8 20 88 00 	mv r17,r1                                      
 801f5d0:	34 02 00 10 	mvi r2,16                                      
 801f5d4:	b9 80 08 00 	mv r1,r12                                      
 801f5d8:	fb ff 87 e9 	calli 800157c <__lshrsi3>                      
 801f5dc:	b5 ae 68 00 	add r13,r13,r14                                
 801f5e0:	ba 21 08 00 	or r1,r17,r1                                   
 801f5e4:	c9 cc 70 00 	sub r14,r14,r12                                
 801f5e8:	98 2e 70 00 	xor r14,r1,r14                                 
 801f5ec:	b9 c0 08 00 	mv r1,r14                                      
 801f5f0:	34 02 00 13 	mvi r2,19                                      
 801f5f4:	fb ff 87 bb 	calli 80014e0 <__ashlsi3>                      
 801f5f8:	b8 20 88 00 	mv r17,r1                                      
 801f5fc:	34 02 00 0d 	mvi r2,13                                      
 801f600:	b9 c0 08 00 	mv r1,r14                                      
 801f604:	fb ff 87 de 	calli 800157c <__lshrsi3>                      
 801f608:	b5 8d 60 00 	add r12,r12,r13                                
 801f60c:	ba 21 08 00 	or r1,r17,r1                                   
 801f610:	c9 ae 68 00 	sub r13,r13,r14                                
 801f614:	98 2d 68 00 	xor r13,r1,r13                                 
 801f618:	b9 a0 08 00 	mv r1,r13                                      
 801f61c:	34 02 00 04 	mvi r2,4                                       
 801f620:	fb ff 87 b0 	calli 80014e0 <__ashlsi3>                      
 801f624:	b8 20 88 00 	mv r17,r1                                      
 801f628:	34 02 00 1c 	mvi r2,28                                      
 801f62c:	b9 a0 08 00 	mv r1,r13                                      
 801f630:	fb ff 87 d3 	calli 800157c <__lshrsi3>                      
 801f634:	b5 cc 70 00 	add r14,r14,r12                                
 801f638:	ba 21 08 00 	or r1,r17,r1                                   
 801f63c:	c9 8d 60 00 	sub r12,r12,r13                                
 801f640:	98 2c 60 00 	xor r12,r1,r12                                 
 801f644:	b5 ae 68 00 	add r13,r13,r14                                
                                                                      
  } else {                        /* need to read the key one byte at a time */
    const uint8_t *k = (const uint8_t *)key;                          
                                                                      
    /*--------------- all but the last block: affect some 32 bits of (a,b,c) */
    while (length > 12)                                               
 801f648:	55 f0 ff 8f 	bgu r15,r16,801f484 <rtems_rfs_dir_hash+0x4c>  
      length -= 12;                                                   
      k += 12;                                                        
    }                                                                 
                                                                      
    /*-------------------------------- last block: affect all 32 bits of (c) */
    switch(length)                   /* all the case statements fall through */
 801f64c:	35 e1 ff ff 	addi r1,r15,-1                                 
 801f650:	34 02 00 0b 	mvi r2,11                                      
 801f654:	54 22 00 78 	bgu r1,r2,801f834 <rtems_rfs_dir_hash+0x3fc>   <== NEVER TAKEN
 801f658:	78 10 08 03 	mvhi r16,0x803                                 
 801f65c:	34 02 00 02 	mvi r2,2                                       
 801f660:	fb ff 87 a0 	calli 80014e0 <__ashlsi3>                      
 801f664:	3a 10 78 b8 	ori r16,r16,0x78b8                             
 801f668:	b6 01 08 00 	add r1,r16,r1                                  
 801f66c:	28 21 00 00 	lw r1,(r1+0)                                   
 801f670:	c0 20 00 00 	b r1                                           
    {                                                                 
      case 12: c+=((uint32_t)k[11])<<24;                              
 801f674:	41 61 00 0b 	lbu r1,(r11+11)                                
 801f678:	34 02 00 18 	mvi r2,24                                      
 801f67c:	fb ff 87 99 	calli 80014e0 <__ashlsi3>                      
 801f680:	b4 2c 60 00 	add r12,r1,r12                                 
      case 11: c+=((uint32_t)k[10])<<16;                              
 801f684:	41 61 00 0a 	lbu r1,(r11+10)                                
 801f688:	34 02 00 10 	mvi r2,16                                      
 801f68c:	fb ff 87 95 	calli 80014e0 <__ashlsi3>                      
 801f690:	b5 81 60 00 	add r12,r12,r1                                 
      case 10: c+=((uint32_t)k[9])<<8;                                
 801f694:	41 61 00 09 	lbu r1,(r11+9)                                 
 801f698:	34 02 00 08 	mvi r2,8                                       
 801f69c:	fb ff 87 91 	calli 80014e0 <__ashlsi3>                      
 801f6a0:	b5 81 60 00 	add r12,r12,r1                                 
      case 9 : c+=k[8];                                               
 801f6a4:	41 61 00 08 	lbu r1,(r11+8)                                 
 801f6a8:	b5 81 60 00 	add r12,r12,r1                                 
      case 8 : b+=((uint32_t)k[7])<<24;                               
 801f6ac:	41 61 00 07 	lbu r1,(r11+7)                                 
 801f6b0:	34 02 00 18 	mvi r2,24                                      
 801f6b4:	fb ff 87 8b 	calli 80014e0 <__ashlsi3>                      
 801f6b8:	b4 2d 68 00 	add r13,r1,r13                                 
      case 7 : b+=((uint32_t)k[6])<<16;                               
 801f6bc:	41 61 00 06 	lbu r1,(r11+6)                                 
 801f6c0:	34 02 00 10 	mvi r2,16                                      
 801f6c4:	fb ff 87 87 	calli 80014e0 <__ashlsi3>                      
 801f6c8:	b5 a1 68 00 	add r13,r13,r1                                 
      case 6 : b+=((uint32_t)k[5])<<8;                                
 801f6cc:	41 61 00 05 	lbu r1,(r11+5)                                 
 801f6d0:	34 02 00 08 	mvi r2,8                                       
 801f6d4:	fb ff 87 83 	calli 80014e0 <__ashlsi3>                      
 801f6d8:	b5 a1 68 00 	add r13,r13,r1                                 
      case 5 : b+=k[4];                                               
 801f6dc:	41 61 00 04 	lbu r1,(r11+4)                                 
 801f6e0:	b5 a1 68 00 	add r13,r13,r1                                 
      case 4 : a+=((uint32_t)k[3])<<24;                               
 801f6e4:	41 61 00 03 	lbu r1,(r11+3)                                 
 801f6e8:	34 02 00 18 	mvi r2,24                                      
 801f6ec:	fb ff 87 7d 	calli 80014e0 <__ashlsi3>                      
 801f6f0:	b4 2e 70 00 	add r14,r1,r14                                 
      case 3 : a+=((uint32_t)k[2])<<16;                               
 801f6f4:	41 61 00 02 	lbu r1,(r11+2)                                 
 801f6f8:	34 02 00 10 	mvi r2,16                                      
 801f6fc:	fb ff 87 79 	calli 80014e0 <__ashlsi3>                      
 801f700:	b5 c1 70 00 	add r14,r14,r1                                 
      case 2 : a+=((uint32_t)k[1])<<8;                                
 801f704:	41 61 00 01 	lbu r1,(r11+1)                                 
 801f708:	34 02 00 08 	mvi r2,8                                       
 801f70c:	fb ff 87 75 	calli 80014e0 <__ashlsi3>                      
 801f710:	b5 c1 70 00 	add r14,r14,r1                                 
      case 1 : a+=k[0];                                               
 801f714:	41 61 00 00 	lbu r1,(r11+0)                                 
        break;                                                        
      case 0 : return c;                                              
    }                                                                 
  }                                                                   
                                                                      
  final(a,b,c);                                                       
 801f718:	34 02 00 12 	mvi r2,18                                      
 801f71c:	99 8d 60 00 	xor r12,r12,r13                                
      case 6 : b+=((uint32_t)k[5])<<8;                                
      case 5 : b+=k[4];                                               
      case 4 : a+=((uint32_t)k[3])<<24;                               
      case 3 : a+=((uint32_t)k[2])<<16;                               
      case 2 : a+=((uint32_t)k[1])<<8;                                
      case 1 : a+=k[0];                                               
 801f720:	b5 c1 70 00 	add r14,r14,r1                                 
        break;                                                        
      case 0 : return c;                                              
    }                                                                 
  }                                                                   
                                                                      
  final(a,b,c);                                                       
 801f724:	b9 a0 08 00 	mv r1,r13                                      
 801f728:	fb ff 87 95 	calli 800157c <__lshrsi3>                      
 801f72c:	b8 20 58 00 	mv r11,r1                                      
 801f730:	34 02 00 0e 	mvi r2,14                                      
 801f734:	b9 a0 08 00 	mv r1,r13                                      
 801f738:	fb ff 87 6a 	calli 80014e0 <__ashlsi3>                      
 801f73c:	b9 61 08 00 	or r1,r11,r1                                   
 801f740:	c9 81 60 00 	sub r12,r12,r1                                 
 801f744:	b9 80 08 00 	mv r1,r12                                      
 801f748:	34 02 00 0b 	mvi r2,11                                      
 801f74c:	fb ff 87 65 	calli 80014e0 <__ashlsi3>                      
 801f750:	b8 20 58 00 	mv r11,r1                                      
 801f754:	34 02 00 15 	mvi r2,21                                      
 801f758:	b9 80 08 00 	mv r1,r12                                      
 801f75c:	fb ff 87 88 	calli 800157c <__lshrsi3>                      
 801f760:	b9 61 08 00 	or r1,r11,r1                                   
 801f764:	99 8e 70 00 	xor r14,r12,r14                                
 801f768:	c9 c1 70 00 	sub r14,r14,r1                                 
 801f76c:	b9 c0 08 00 	mv r1,r14                                      
 801f770:	34 02 00 19 	mvi r2,25                                      
 801f774:	fb ff 87 5b 	calli 80014e0 <__ashlsi3>                      
 801f778:	b8 20 58 00 	mv r11,r1                                      
 801f77c:	34 02 00 07 	mvi r2,7                                       
 801f780:	b9 c0 08 00 	mv r1,r14                                      
 801f784:	fb ff 87 7e 	calli 800157c <__lshrsi3>                      
 801f788:	b9 61 08 00 	or r1,r11,r1                                   
 801f78c:	99 cd 68 00 	xor r13,r14,r13                                
 801f790:	c9 a1 68 00 	sub r13,r13,r1                                 
 801f794:	b9 a0 08 00 	mv r1,r13                                      
 801f798:	34 02 00 10 	mvi r2,16                                      
 801f79c:	fb ff 87 51 	calli 80014e0 <__ashlsi3>                      
 801f7a0:	b8 20 58 00 	mv r11,r1                                      
 801f7a4:	34 02 00 10 	mvi r2,16                                      
 801f7a8:	b9 a0 08 00 	mv r1,r13                                      
 801f7ac:	fb ff 87 74 	calli 800157c <__lshrsi3>                      
 801f7b0:	b9 61 08 00 	or r1,r11,r1                                   
 801f7b4:	99 ac 60 00 	xor r12,r13,r12                                
 801f7b8:	c9 81 60 00 	sub r12,r12,r1                                 
 801f7bc:	b9 80 08 00 	mv r1,r12                                      
 801f7c0:	34 02 00 04 	mvi r2,4                                       
 801f7c4:	fb ff 87 47 	calli 80014e0 <__ashlsi3>                      
 801f7c8:	b8 20 58 00 	mv r11,r1                                      
 801f7cc:	34 02 00 1c 	mvi r2,28                                      
 801f7d0:	b9 80 08 00 	mv r1,r12                                      
 801f7d4:	fb ff 87 6a 	calli 800157c <__lshrsi3>                      
 801f7d8:	b9 61 08 00 	or r1,r11,r1                                   
 801f7dc:	99 8e 70 00 	xor r14,r12,r14                                
 801f7e0:	c9 c1 70 00 	sub r14,r14,r1                                 
 801f7e4:	34 02 00 0e 	mvi r2,14                                      
 801f7e8:	b9 c0 08 00 	mv r1,r14                                      
 801f7ec:	fb ff 87 3d 	calli 80014e0 <__ashlsi3>                      
 801f7f0:	b8 20 58 00 	mv r11,r1                                      
 801f7f4:	34 02 00 12 	mvi r2,18                                      
 801f7f8:	b9 c0 08 00 	mv r1,r14                                      
 801f7fc:	fb ff 87 60 	calli 800157c <__lshrsi3>                      
 801f800:	b9 61 08 00 	or r1,r11,r1                                   
 801f804:	99 cd 68 00 	xor r13,r14,r13                                
 801f808:	c9 a1 68 00 	sub r13,r13,r1                                 
 801f80c:	34 02 00 18 	mvi r2,24                                      
 801f810:	b9 a0 08 00 	mv r1,r13                                      
 801f814:	fb ff 87 33 	calli 80014e0 <__ashlsi3>                      
 801f818:	b8 20 58 00 	mv r11,r1                                      
 801f81c:	34 02 00 08 	mvi r2,8                                       
 801f820:	b9 a0 08 00 	mv r1,r13                                      
 801f824:	fb ff 87 56 	calli 800157c <__lshrsi3>                      
 801f828:	99 ac 60 00 	xor r12,r13,r12                                
 801f82c:	b9 61 08 00 	or r1,r11,r1                                   
 801f830:	c9 81 60 00 	sub r12,r12,r1                                 
  return c;                                                           
}                                                                     
 801f834:	b9 80 08 00 	mv r1,r12                                      
 801f838:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801f83c:	2b 8b 00 20 	lw r11,(sp+32)                                 
 801f840:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 801f844:	2b 8d 00 18 	lw r13,(sp+24)                                 
 801f848:	2b 8e 00 14 	lw r14,(sp+20)                                 
 801f84c:	2b 8f 00 10 	lw r15,(sp+16)                                 
 801f850:	2b 90 00 0c 	lw r16,(sp+12)                                 
 801f854:	2b 91 00 08 	lw r17,(sp+8)                                  
 801f858:	37 9c 00 20 	addi sp,sp,32                                  
 801f85c:	c3 a0 00 00 	ret                                            
                                                                      

0801a4bc <rtems_rfs_dir_lookup_ino>: rtems_rfs_inode_handle* inode, const char* name, int length, rtems_rfs_ino* ino, uint32_t* offset) {
 801a4bc:	37 9c ff 40 	addi sp,sp,-192                                
 801a4c0:	5b 8b 00 44 	sw (sp+68),r11                                 
 801a4c4:	5b 8c 00 40 	sw (sp+64),r12                                 
 801a4c8:	5b 8d 00 3c 	sw (sp+60),r13                                 
 801a4cc:	5b 8e 00 38 	sw (sp+56),r14                                 
 801a4d0:	5b 8f 00 34 	sw (sp+52),r15                                 
 801a4d4:	5b 90 00 30 	sw (sp+48),r16                                 
 801a4d8:	5b 91 00 2c 	sw (sp+44),r17                                 
 801a4dc:	5b 92 00 28 	sw (sp+40),r18                                 
 801a4e0:	5b 93 00 24 	sw (sp+36),r19                                 
 801a4e4:	5b 94 00 20 	sw (sp+32),r20                                 
 801a4e8:	5b 95 00 1c 	sw (sp+28),r21                                 
 801a4ec:	5b 96 00 18 	sw (sp+24),r22                                 
 801a4f0:	5b 97 00 14 	sw (sp+20),r23                                 
 801a4f4:	5b 98 00 10 	sw (sp+16),r24                                 
 801a4f8:	5b 99 00 0c 	sw (sp+12),r25                                 
 801a4fc:	5b 9b 00 08 	sw (sp+8),fp                                   
 801a500:	5b 9d 00 04 	sw (sp+4),ra                                   
 801a504:	b8 20 b0 00 	mv r22,r1                                      
 801a508:	b8 40 b8 00 	mv r23,r2                                      
 801a50c:	b8 a0 d8 00 	mv fp,r5                                       
  rtems_rfs_block_map     map;                                        
  rtems_rfs_buffer_handle entries;                                    
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))               
 801a510:	34 01 00 00 	mvi r1,0                                       
 801a514:	78 02 04 00 	mvhi r2,0x400                                  
                          rtems_rfs_inode_handle* inode,              
                          const char*             name,               
                          int                     length,             
                          rtems_rfs_ino*          ino,                
                          uint32_t*               offset)             
{                                                                     
 801a518:	5b 83 00 48 	sw (sp+72),r3                                  
 801a51c:	b8 80 c8 00 	mv r25,r4                                      
 801a520:	5b 86 00 4c 	sw (sp+76),r6                                  
  rtems_rfs_block_map     map;                                        
  rtems_rfs_buffer_handle entries;                                    
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))               
 801a524:	fb ff d9 a0 	calli 8010ba4 <rtems_rfs_trace>                
 801a528:	44 20 00 13 	be r1,r0,801a574 <rtems_rfs_dir_lookup_ino+0xb8><== ALWAYS TAKEN
  {                                                                   
    int c;                                                            
    printf ("rtems-rfs: dir-lookup-ino: lookup ino: root=%" PRId32 ", path=",
 801a52c:	78 07 08 03 	mvhi r7,0x803                                  <== NOT EXECUTED
 801a530:	2a e2 00 08 	lw r2,(r23+8)                                  <== NOT EXECUTED
 801a534:	b8 e0 08 00 	mv r1,r7                                       <== NOT EXECUTED
 801a538:	38 21 68 14 	ori r1,r1,0x6814                               <== NOT EXECUTED
 801a53c:	f8 00 1b 91 	calli 8021380 <printf>                         <== NOT EXECUTED
            inode->ino);                                              
    for (c = 0; c < length; c++)                                      
 801a540:	34 0b 00 00 	mvi r11,0                                      <== NOT EXECUTED
 801a544:	e0 00 00 06 	bi 801a55c <rtems_rfs_dir_lookup_ino+0xa0>     <== NOT EXECUTED
#define rtems_rfs_dir_entry_valid(_f, _l, _i) \                       
  (((_l) <= RTEMS_RFS_DIR_ENTRY_SIZE) || ((_l) >= rtems_rfs_fs_max_name (_f)) \
   || (_i < RTEMS_RFS_ROOT_INO) || (_i > rtems_rfs_fs_inodes (_f)))   
                                                                      
int                                                                   
rtems_rfs_dir_lookup_ino (rtems_rfs_file_system*  fs,                 
 801a548:	2b 82 00 48 	lw r2,(sp+72)                                  <== NOT EXECUTED
 801a54c:	b4 4b 08 00 	add r1,r2,r11                                  <== NOT EXECUTED
  {                                                                   
    int c;                                                            
    printf ("rtems-rfs: dir-lookup-ino: lookup ino: root=%" PRId32 ", path=",
            inode->ino);                                              
    for (c = 0; c < length; c++)                                      
      printf ("%c", name[c]);                                         
 801a550:	40 21 00 00 	lbu r1,(r1+0)                                  <== NOT EXECUTED
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))               
  {                                                                   
    int c;                                                            
    printf ("rtems-rfs: dir-lookup-ino: lookup ino: root=%" PRId32 ", path=",
            inode->ino);                                              
    for (c = 0; c < length; c++)                                      
 801a554:	35 6b 00 01 	addi r11,r11,1                                 <== NOT EXECUTED
      printf ("%c", name[c]);                                         
 801a558:	f8 00 1c 10 	calli 8021598 <putchar>                        <== NOT EXECUTED
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))               
  {                                                                   
    int c;                                                            
    printf ("rtems-rfs: dir-lookup-ino: lookup ino: root=%" PRId32 ", path=",
            inode->ino);                                              
    for (c = 0; c < length; c++)                                      
 801a55c:	4b 2b ff fb 	bg r25,r11,801a548 <rtems_rfs_dir_lookup_ino+0x8c><== NOT EXECUTED
      printf ("%c", name[c]);                                         
    printf (", len=%d\n", length);                                    
 801a560:	78 07 08 03 	mvhi r7,0x803                                  <== NOT EXECUTED
 801a564:	b8 e0 08 00 	mv r1,r7                                       <== NOT EXECUTED
 801a568:	38 21 68 4c 	ori r1,r1,0x684c                               <== NOT EXECUTED
 801a56c:	bb 20 10 00 	mv r2,r25                                      <== NOT EXECUTED
 801a570:	f8 00 1b 84 	calli 8021380 <printf>                         <== NOT EXECUTED
  }                                                                   
                                                                      
  *ino = RTEMS_RFS_EMPTY_INO;                                         
  *offset = 0;                                                        
 801a574:	2b 85 00 4c 	lw r5,(sp+76)                                  
    for (c = 0; c < length; c++)                                      
      printf ("%c", name[c]);                                         
    printf (", len=%d\n", length);                                    
  }                                                                   
                                                                      
  *ino = RTEMS_RFS_EMPTY_INO;                                         
 801a578:	5b 60 00 00 	sw (fp+0),r0                                   
  *offset = 0;                                                        
                                                                      
  rc = rtems_rfs_block_map_open (fs, inode, &map);                    
 801a57c:	37 8b 00 64 	addi r11,sp,100                                
      printf ("%c", name[c]);                                         
    printf (", len=%d\n", length);                                    
  }                                                                   
                                                                      
  *ino = RTEMS_RFS_EMPTY_INO;                                         
  *offset = 0;                                                        
 801a580:	58 a0 00 00 	sw (r5+0),r0                                   
                                                                      
  rc = rtems_rfs_block_map_open (fs, inode, &map);                    
 801a584:	ba c0 08 00 	mv r1,r22                                      
 801a588:	ba e0 10 00 	mv r2,r23                                      
 801a58c:	b9 60 18 00 	mv r3,r11                                      
 801a590:	fb ff f9 4f 	calli 8018acc <rtems_rfs_block_map_open>       
 801a594:	b8 20 a8 00 	mv r21,r1                                      
  if (rc > 0)                                                         
 801a598:	4c 01 00 10 	bge r0,r1,801a5d8 <rtems_rfs_dir_lookup_ino+0x11c><== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))             
 801a59c:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801a5a0:	78 02 04 00 	mvhi r2,0x400                                  <== NOT EXECUTED
 801a5a4:	fb ff d9 80 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801a5a8:	44 20 01 09 	be r1,r0,801a9cc <rtems_rfs_dir_lookup_ino+0x510><== NOT EXECUTED
      printf ("rtems-rfs: dir-lookup-ino: map open failed for ino %" PRIu32 ": %d: %s",
 801a5ac:	ba a0 08 00 	mv r1,r21                                      <== NOT EXECUTED
 801a5b0:	2a eb 00 08 	lw r11,(r23+8)                                 <== NOT EXECUTED
 801a5b4:	f8 00 20 2e 	calli 802266c <strerror>                       <== NOT EXECUTED
 801a5b8:	78 05 08 03 	mvhi r5,0x803                                  <== NOT EXECUTED
 801a5bc:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
 801a5c0:	b8 a0 08 00 	mv r1,r5                                       <== NOT EXECUTED
 801a5c4:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 801a5c8:	ba a0 18 00 	mv r3,r21                                      <== NOT EXECUTED
 801a5cc:	38 21 68 58 	ori r1,r1,0x6858                               <== NOT EXECUTED
 801a5d0:	f8 00 1b 6c 	calli 8021380 <printf>                         <== NOT EXECUTED
 801a5d4:	e0 00 00 fe 	bi 801a9cc <rtems_rfs_dir_lookup_ino+0x510>    <== NOT EXECUTED
    uint32_t           hash;                                          
                                                                      
    /*                                                                
     * Calculate the hash of the look up string.                      
     */                                                               
    hash = rtems_rfs_dir_hash (name, length);                         
 801a5d8:	2b 81 00 48 	lw r1,(sp+72)                                  
 801a5dc:	bb 20 10 00 	mv r2,r25                                      
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
 801a5e0:	33 80 00 b4 	sb (sp+180),r0                                 
  handle->bnum  = 0;                                                  
 801a5e4:	5b 80 00 b8 	sw (sp+184),r0                                 
  handle->buffer = NULL;                                              
 801a5e8:	5b 80 00 bc 	sw (sp+188),r0                                 
 801a5ec:	f8 00 13 93 	calli 801f438 <rtems_rfs_dir_hash>             
 801a5f0:	5b 81 00 60 	sw (sp+96),r1                                  
                                                                      
    /*                                                                
     * Locate the first block. The map points to the start after open so just
     * seek 0. If an error the block will be 0.                       
     */                                                               
    rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);              
 801a5f4:	b9 60 10 00 	mv r2,r11                                      
 801a5f8:	ba c0 08 00 	mv r1,r22                                      
 801a5fc:	34 03 00 00 	mvi r3,0                                       
 801a600:	34 04 00 00 	mvi r4,0                                       
 801a604:	37 85 00 c0 	addi r5,sp,192                                 
 801a608:	fb ff fa c5 	calli 801911c <rtems_rfs_block_map_seek>       
 801a60c:	b8 20 a8 00 	mv r21,r1                                      
    if (rc > 0)                                                       
 801a610:	48 20 00 02 	bg r1,r0,801a618 <rtems_rfs_dir_lookup_ino+0x15c><== NEVER TAKEN
 801a614:	e0 00 00 c7 	bi 801a930 <rtems_rfs_dir_lookup_ino+0x474>    
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))           
 801a618:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801a61c:	78 02 04 00 	mvhi r2,0x400                                  <== NOT EXECUTED
 801a620:	fb ff d9 61 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801a624:	44 20 00 09 	be r1,r0,801a648 <rtems_rfs_dir_lookup_ino+0x18c><== NOT EXECUTED
        printf ("rtems-rfs: dir-lookup-ino: block map find failed: %d: %s\n",
 801a628:	ba a0 08 00 	mv r1,r21                                      <== NOT EXECUTED
 801a62c:	f8 00 20 10 	calli 802266c <strerror>                       <== NOT EXECUTED
 801a630:	78 04 08 03 	mvhi r4,0x803                                  <== NOT EXECUTED
 801a634:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 801a638:	b8 80 08 00 	mv r1,r4                                       <== NOT EXECUTED
 801a63c:	38 21 68 98 	ori r1,r1,0x6898                               <== NOT EXECUTED
 801a640:	ba a0 10 00 	mv r2,r21                                      <== NOT EXECUTED
 801a644:	f8 00 1b 4f 	calli 8021380 <printf>                         <== NOT EXECUTED
                rc, strerror (rc));                                   
      if (rc == ENXIO)                                                
 801a648:	34 04 00 06 	mvi r4,6                                       <== NOT EXECUTED
 801a64c:	5e a4 00 d7 	bne r21,r4,801a9a8 <rtems_rfs_dir_lookup_ino+0x4ec><== NOT EXECUTED
        rc = ENOENT;                                                  
 801a650:	34 15 00 02 	mvi r21,2                                      <== NOT EXECUTED
 801a654:	e0 00 00 d5 	bi 801a9a8 <rtems_rfs_dir_lookup_ino+0x4ec>    <== NOT EXECUTED
                                                                      
    while ((rc == 0) && block)                                        
    {                                                                 
      uint8_t* entry;                                                 
                                                                      
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))           
 801a658:	34 01 00 00 	mvi r1,0                                       
 801a65c:	78 02 04 00 	mvhi r2,0x400                                  
 801a660:	fb ff d9 51 	calli 8010ba4 <rtems_rfs_trace>                
 801a664:	44 20 00 05 	be r1,r0,801a678 <rtems_rfs_dir_lookup_ino+0x1bc><== ALWAYS TAKEN
        printf ("rtems-rfs: dir-lookup-ino: block read, ino=%" PRIu32 " bno=%" PRId32 "\n",
 801a668:	2b 81 00 50 	lw r1,(sp+80)                                  <== NOT EXECUTED
 801a66c:	2a e2 00 08 	lw r2,(r23+8)                                  <== NOT EXECUTED
 801a670:	2b 83 00 74 	lw r3,(sp+116)                                 <== NOT EXECUTED
 801a674:	f8 00 1b 43 	calli 8021380 <printf>                         <== NOT EXECUTED
                rtems_rfs_inode_ino (inode), map.bpos.bno);           
                                                                      
      rc = rtems_rfs_buffer_handle_request (fs, &entries, block, true);
 801a678:	2b 83 00 c0 	lw r3,(sp+192)                                 
 801a67c:	ba c0 08 00 	mv r1,r22                                      
 801a680:	37 82 00 b4 	addi r2,sp,180                                 
 801a684:	34 04 00 01 	mvi r4,1                                       
 801a688:	fb ff fd dd 	calli 8019dfc <rtems_rfs_buffer_handle_request>
 801a68c:	b8 20 c0 00 	mv r24,r1                                      
      if (rc > 0)                                                     
 801a690:	4c 01 00 12 	bge r0,r1,801a6d8 <rtems_rfs_dir_lookup_ino+0x21c><== ALWAYS TAKEN
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))         
 801a694:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801a698:	78 02 04 00 	mvhi r2,0x400                                  <== NOT EXECUTED
 801a69c:	fb ff d9 42 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801a6a0:	44 20 00 b5 	be r1,r0,801a974 <rtems_rfs_dir_lookup_ino+0x4b8><== NOT EXECUTED
          printf ("rtems-rfs: dir-lookup-ino: block read, ino=%" PRIu32 " block=%" PRId32 ": %d: %s\n",
 801a6a4:	bb 00 08 00 	mv r1,r24                                      <== NOT EXECUTED
 801a6a8:	2a ec 00 08 	lw r12,(r23+8)                                 <== NOT EXECUTED
 801a6ac:	2b 8b 00 c0 	lw r11,(sp+192)                                <== NOT EXECUTED
 801a6b0:	f8 00 1f ef 	calli 802266c <strerror>                       <== NOT EXECUTED
 801a6b4:	78 06 08 03 	mvhi r6,0x803                                  <== NOT EXECUTED
 801a6b8:	b8 20 28 00 	mv r5,r1                                       <== NOT EXECUTED
 801a6bc:	b8 c0 08 00 	mv r1,r6                                       <== NOT EXECUTED
 801a6c0:	b9 80 10 00 	mv r2,r12                                      <== NOT EXECUTED
 801a6c4:	b9 60 18 00 	mv r3,r11                                      <== NOT EXECUTED
 801a6c8:	bb 00 20 00 	mv r4,r24                                      <== NOT EXECUTED
 801a6cc:	38 21 69 0c 	ori r1,r1,0x690c                               <== NOT EXECUTED
 801a6d0:	f8 00 1b 2c 	calli 8021380 <printf>                         <== NOT EXECUTED
 801a6d4:	e0 00 00 a8 	bi 801a974 <rtems_rfs_dir_lookup_ino+0x4b8>    <== NOT EXECUTED
      /*                                                              
       * Search the block to see if the name matches. A hash of 0xffff or 0x0
       * means the entry is empty.                                    
       */                                                             
                                                                      
      entry = rtems_rfs_buffer_data (&entries);                       
 801a6d8:	2b 84 00 bc 	lw r4,(sp+188)                                 
                                                                      
      map.bpos.boff = 0;                                              
 801a6dc:	5b 80 00 78 	sw (sp+120),r0                                 
      /*                                                              
       * Search the block to see if the name matches. A hash of 0xffff or 0x0
       * means the entry is empty.                                    
       */                                                             
                                                                      
      entry = rtems_rfs_buffer_data (&entries);                       
 801a6e0:	28 93 00 1c 	lw r19,(r4+28)                                 
                                                                      
      map.bpos.boff = 0;                                              
                                                                      
      while (map.bpos.boff < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
 801a6e4:	e0 00 00 72 	bi 801a8ac <rtems_rfs_dir_lookup_ino+0x3f0>    
      {                                                               
        uint32_t ehash;                                               
        int      elength;                                             
                                                                      
        ehash  = rtems_rfs_dir_entry_hash (entry);                    
        elength = rtems_rfs_dir_entry_length (entry);                 
 801a6e8:	42 61 00 08 	lbu r1,(r19+8)                                 
 801a6ec:	34 02 00 08 	mvi r2,8                                       
      while (map.bpos.boff < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
      {                                                               
        uint32_t ehash;                                               
        int      elength;                                             
                                                                      
        ehash  = rtems_rfs_dir_entry_hash (entry);                    
 801a6f0:	42 6d 00 04 	lbu r13,(r19+4)                                
        elength = rtems_rfs_dir_entry_length (entry);                 
 801a6f4:	fb ff 9b 7b 	calli 80014e0 <__ashlsi3>                      
 801a6f8:	42 74 00 09 	lbu r20,(r19+9)                                
        *ino = rtems_rfs_dir_entry_ino (entry);                       
 801a6fc:	42 6c 00 03 	lbu r12,(r19+3)                                
 801a700:	34 02 00 18 	mvi r2,24                                      
      {                                                               
        uint32_t ehash;                                               
        int      elength;                                             
                                                                      
        ehash  = rtems_rfs_dir_entry_hash (entry);                    
        elength = rtems_rfs_dir_entry_length (entry);                 
 801a704:	b8 34 a0 00 	or r20,r1,r20                                  
        *ino = rtems_rfs_dir_entry_ino (entry);                       
 801a708:	42 61 00 00 	lbu r1,(r19+0)                                 
      while (map.bpos.boff < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
      {                                                               
        uint32_t ehash;                                               
        int      elength;                                             
                                                                      
        ehash  = rtems_rfs_dir_entry_hash (entry);                    
 801a70c:	42 6e 00 05 	lbu r14,(r19+5)                                
 801a710:	42 72 00 06 	lbu r18,(r19+6)                                
        elength = rtems_rfs_dir_entry_length (entry);                 
        *ino = rtems_rfs_dir_entry_ino (entry);                       
 801a714:	fb ff 9b 73 	calli 80014e0 <__ashlsi3>                      
 801a718:	b9 81 60 00 	or r12,r12,r1                                  
 801a71c:	42 61 00 01 	lbu r1,(r19+1)                                 
 801a720:	34 02 00 10 	mvi r2,16                                      
      while (map.bpos.boff < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
      {                                                               
        uint32_t ehash;                                               
        int      elength;                                             
                                                                      
        ehash  = rtems_rfs_dir_entry_hash (entry);                    
 801a724:	42 6b 00 07 	lbu r11,(r19+7)                                
        elength = rtems_rfs_dir_entry_length (entry);                 
        *ino = rtems_rfs_dir_entry_ino (entry);                       
 801a728:	fb ff 9b 6e 	calli 80014e0 <__ashlsi3>                      
 801a72c:	b9 81 60 00 	or r12,r12,r1                                  
 801a730:	42 61 00 02 	lbu r1,(r19+2)                                 
 801a734:	34 02 00 08 	mvi r2,8                                       
 801a738:	36 70 00 01 	addi r16,r19,1                                 
 801a73c:	fb ff 9b 69 	calli 80014e0 <__ashlsi3>                      
 801a740:	b9 81 38 00 	or r7,r12,r1                                   
 801a744:	5b 67 00 00 	sw (fp+0),r7                                   
                                                                      
        if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                     
 801a748:	38 01 ff ff 	mvu r1,0xffff                                  
        uint32_t ehash;                                               
        int      elength;                                             
                                                                      
        ehash  = rtems_rfs_dir_entry_hash (entry);                    
        elength = rtems_rfs_dir_entry_length (entry);                 
        *ino = rtems_rfs_dir_entry_ino (entry);                       
 801a74c:	36 6f 00 02 	addi r15,r19,2                                 
 801a750:	36 71 00 03 	addi r17,r19,3                                 
                                                                      
        if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                     
 801a754:	46 81 00 5a 	be r20,r1,801a8bc <rtems_rfs_dir_lookup_ino+0x400>
          break;                                                      
                                                                      
        if (rtems_rfs_dir_entry_valid (fs, elength, *ino))            
 801a758:	34 02 00 0a 	mvi r2,10                                      
 801a75c:	4c 54 00 06 	bge r2,r20,801a774 <rtems_rfs_dir_lookup_ino+0x2b8><== NEVER TAKEN
 801a760:	2a c6 00 1c 	lw r6,(r22+28)                                 
 801a764:	52 86 00 04 	bgeu r20,r6,801a774 <rtems_rfs_dir_lookup_ino+0x2b8><== NEVER TAKEN
 801a768:	44 e0 00 03 	be r7,r0,801a774 <rtems_rfs_dir_lookup_ino+0x2b8><== NEVER TAKEN
 801a76c:	2a c6 00 14 	lw r6,(r22+20)                                 
 801a770:	50 c7 00 0c 	bgeu r6,r7,801a7a0 <rtems_rfs_dir_lookup_ino+0x2e4><== ALWAYS TAKEN
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))       
 801a774:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801a778:	78 02 04 00 	mvhi r2,0x400                                  <== NOT EXECUTED
 801a77c:	fb ff d9 0a 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801a780:	44 20 00 a7 	be r1,r0,801aa1c <rtems_rfs_dir_lookup_ino+0x560><== NOT EXECUTED
            printf ("rtems-rfs: dir-lookup-ino: "                     
 801a784:	2b 81 00 5c 	lw r1,(sp+92)                                  <== NOT EXECUTED
 801a788:	2a e2 00 08 	lw r2,(r23+8)                                  <== NOT EXECUTED
 801a78c:	2b 64 00 00 	lw r4,(fp+0)                                   <== NOT EXECUTED
 801a790:	2b 85 00 78 	lw r5,(sp+120)                                 <== NOT EXECUTED
 801a794:	ba 80 18 00 	mv r3,r20                                      <== NOT EXECUTED
 801a798:	f8 00 1a fa 	calli 8021380 <printf>                         <== NOT EXECUTED
 801a79c:	e0 00 00 a0 	bi 801aa1c <rtems_rfs_dir_lookup_ino+0x560>    <== NOT EXECUTED
      while (map.bpos.boff < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
      {                                                               
        uint32_t ehash;                                               
        int      elength;                                             
                                                                      
        ehash  = rtems_rfs_dir_entry_hash (entry);                    
 801a7a0:	34 02 00 18 	mvi r2,24                                      
 801a7a4:	b9 a0 08 00 	mv r1,r13                                      
 801a7a8:	fb ff 9b 4e 	calli 80014e0 <__ashlsi3>                      
 801a7ac:	b8 20 60 00 	mv r12,r1                                      
 801a7b0:	34 02 00 10 	mvi r2,16                                      
 801a7b4:	b9 c0 08 00 	mv r1,r14                                      
 801a7b8:	fb ff 9b 4a 	calli 80014e0 <__ashlsi3>                      
 801a7bc:	b9 81 20 00 	or r4,r12,r1                                   
 801a7c0:	34 02 00 08 	mvi r2,8                                       
 801a7c4:	ba 40 08 00 	mv r1,r18                                      
 801a7c8:	b8 8b 58 00 	or r11,r4,r11                                  
 801a7cc:	fb ff 9b 45 	calli 80014e0 <__ashlsi3>                      
                    rtems_rfs_inode_ino (inode), elength, *ino, map.bpos.boff);
          rc = EIO;                                                   
          break;                                                      
        }                                                             
                                                                      
        if (ehash == hash)                                            
 801a7d0:	2b 85 00 60 	lw r5,(sp+96)                                  
      while (map.bpos.boff < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
      {                                                               
        uint32_t ehash;                                               
        int      elength;                                             
                                                                      
        ehash  = rtems_rfs_dir_entry_hash (entry);                    
 801a7d4:	b9 61 20 00 	or r4,r11,r1                                   
                    rtems_rfs_inode_ino (inode), elength, *ino, map.bpos.boff);
          rc = EIO;                                                   
          break;                                                      
        }                                                             
                                                                      
        if (ehash == hash)                                            
 801a7d8:	5c 85 00 31 	bne r4,r5,801a89c <rtems_rfs_dir_lookup_ino+0x3e0>
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_CHECK)) 
 801a7dc:	34 01 00 00 	mvi r1,0                                       
 801a7e0:	78 02 08 00 	mvhi r2,0x800                                  
 801a7e4:	fb ff d8 f0 	calli 8010ba4 <rtems_rfs_trace>                
 801a7e8:	44 20 00 15 	be r1,r0,801a83c <rtems_rfs_dir_lookup_ino+0x380><== ALWAYS TAKEN
            printf ("rtems-rfs: dir-lookup-ino: "                     
                    "checking entry for ino %" PRId32 ": bno=%04" PRIx32 "/off=%04" PRIx32
                    " length:%d ino:%" PRId32 "\n",                   
                    rtems_rfs_inode_ino (inode), map.bpos.bno, map.bpos.boff,
                    elength, rtems_rfs_dir_entry_ino (entry));        
 801a7ec:	42 61 00 00 	lbu r1,(r19+0)                                 <== NOT EXECUTED
 801a7f0:	42 2b 00 00 	lbu r11,(r17+0)                                <== NOT EXECUTED
 801a7f4:	34 02 00 18 	mvi r2,24                                      <== NOT EXECUTED
 801a7f8:	fb ff 9b 3a 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 801a7fc:	b9 61 58 00 	or r11,r11,r1                                  <== NOT EXECUTED
 801a800:	42 01 00 00 	lbu r1,(r16+0)                                 <== NOT EXECUTED
 801a804:	34 02 00 10 	mvi r2,16                                      <== NOT EXECUTED
        }                                                             
                                                                      
        if (ehash == hash)                                            
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_CHECK)) 
            printf ("rtems-rfs: dir-lookup-ino: "                     
 801a808:	2a ec 00 08 	lw r12,(r23+8)                                 <== NOT EXECUTED
                    "checking entry for ino %" PRId32 ": bno=%04" PRIx32 "/off=%04" PRIx32
                    " length:%d ino:%" PRId32 "\n",                   
                    rtems_rfs_inode_ino (inode), map.bpos.bno, map.bpos.boff,
                    elength, rtems_rfs_dir_entry_ino (entry));        
 801a80c:	fb ff 9b 35 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 801a810:	b9 61 58 00 	or r11,r11,r1                                  <== NOT EXECUTED
 801a814:	41 e1 00 00 	lbu r1,(r15+0)                                 <== NOT EXECUTED
 801a818:	34 02 00 08 	mvi r2,8                                       <== NOT EXECUTED
 801a81c:	fb ff 9b 31 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
        }                                                             
                                                                      
        if (ehash == hash)                                            
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_CHECK)) 
            printf ("rtems-rfs: dir-lookup-ino: "                     
 801a820:	b9 61 30 00 	or r6,r11,r1                                   <== NOT EXECUTED
 801a824:	2b 83 00 74 	lw r3,(sp+116)                                 <== NOT EXECUTED
 801a828:	2b 81 00 54 	lw r1,(sp+84)                                  <== NOT EXECUTED
 801a82c:	2b 84 00 78 	lw r4,(sp+120)                                 <== NOT EXECUTED
 801a830:	b9 80 10 00 	mv r2,r12                                      <== NOT EXECUTED
 801a834:	ba 80 28 00 	mv r5,r20                                      <== NOT EXECUTED
 801a838:	f8 00 1a d2 	calli 8021380 <printf>                         <== NOT EXECUTED
                    "checking entry for ino %" PRId32 ": bno=%04" PRIx32 "/off=%04" PRIx32
                    " length:%d ino:%" PRId32 "\n",                   
                    rtems_rfs_inode_ino (inode), map.bpos.bno, map.bpos.boff,
                    elength, rtems_rfs_dir_entry_ino (entry));        
                                                                      
          if (memcmp (entry + RTEMS_RFS_DIR_ENTRY_SIZE, name, length) == 0)
 801a83c:	2b 82 00 48 	lw r2,(sp+72)                                  
 801a840:	36 61 00 0a 	addi r1,r19,10                                 
 801a844:	bb 20 18 00 	mv r3,r25                                      
 801a848:	f8 00 19 83 	calli 8020e54 <memcmp>                         
 801a84c:	b8 20 68 00 	mv r13,r1                                      
 801a850:	5c 20 00 13 	bne r1,r0,801a89c <rtems_rfs_dir_lookup_ino+0x3e0><== NEVER TAKEN
          {                                                           
            *offset = rtems_rfs_block_map_pos (fs, &map);             
 801a854:	ba c0 08 00 	mv r1,r22                                      
 801a858:	37 82 00 74 	addi r2,sp,116                                 
 801a85c:	fb ff f8 53 	calli 80189a8 <rtems_rfs_block_get_pos>        
 801a860:	2b 81 00 4c 	lw r1,(sp+76)                                  
 801a864:	58 22 00 00 	sw (r1+0),r2                                   
                                                                      
            if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_FOUND))
 801a868:	34 01 00 00 	mvi r1,0                                       
 801a86c:	78 02 10 00 	mvhi r2,0x1000                                 
 801a870:	fb ff d8 cd 	calli 8010ba4 <rtems_rfs_trace>                
 801a874:	44 2d 00 4d 	be r1,r13,801a9a8 <rtems_rfs_dir_lookup_ino+0x4ec><== ALWAYS TAKEN
              printf ("rtems-rfs: dir-lookup-ino: "                   
 801a878:	2b 85 00 4c 	lw r5,(sp+76)                                  <== NOT EXECUTED
 801a87c:	78 04 08 03 	mvhi r4,0x803                                  <== NOT EXECUTED
 801a880:	b8 80 08 00 	mv r1,r4                                       <== NOT EXECUTED
 801a884:	2a e2 00 08 	lw r2,(r23+8)                                  <== NOT EXECUTED
 801a888:	2b 63 00 00 	lw r3,(fp+0)                                   <== NOT EXECUTED
 801a88c:	28 a4 00 00 	lw r4,(r5+0)                                   <== NOT EXECUTED
 801a890:	38 21 69 fc 	ori r1,r1,0x69fc                               <== NOT EXECUTED
 801a894:	f8 00 1a bb 	calli 8021380 <printf>                         <== NOT EXECUTED
 801a898:	e0 00 00 44 	bi 801a9a8 <rtems_rfs_dir_lookup_ino+0x4ec>    <== NOT EXECUTED
            rtems_rfs_block_map_close (fs, &map);                     
            return 0;                                                 
          }                                                           
        }                                                             
                                                                      
        map.bpos.boff += elength;                                     
 801a89c:	2b 84 00 78 	lw r4,(sp+120)                                 
        entry += elength;                                             
 801a8a0:	b6 74 98 00 	add r19,r19,r20                                
            rtems_rfs_block_map_close (fs, &map);                     
            return 0;                                                 
          }                                                           
        }                                                             
                                                                      
        map.bpos.boff += elength;                                     
 801a8a4:	b4 94 20 00 	add r4,r4,r20                                  
 801a8a8:	5b 84 00 78 	sw (sp+120),r4                                 
                                                                      
      entry = rtems_rfs_buffer_data (&entries);                       
                                                                      
      map.bpos.boff = 0;                                              
                                                                      
      while (map.bpos.boff < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
 801a8ac:	2a c4 00 08 	lw r4,(r22+8)                                  
 801a8b0:	2b 85 00 78 	lw r5,(sp+120)                                 
 801a8b4:	34 84 ff f6 	addi r4,r4,-10                                 
 801a8b8:	54 85 ff 8c 	bgu r4,r5,801a6e8 <rtems_rfs_dir_lookup_ino+0x22c><== ALWAYS TAKEN
                                                                      
        map.bpos.boff += elength;                                     
        entry += elength;                                             
      }                                                               
                                                                      
      if (rc == 0)                                                    
 801a8bc:	5f 00 00 1b 	bne r24,r0,801a928 <rtems_rfs_dir_lookup_ino+0x46c><== NEVER TAKEN
      {                                                               
        rc = rtems_rfs_block_map_next_block (fs, &map, &block);       
 801a8c0:	ba c0 08 00 	mv r1,r22                                      
 801a8c4:	37 82 00 64 	addi r2,sp,100                                 
 801a8c8:	37 83 00 c0 	addi r3,sp,192                                 
 801a8cc:	fb ff fa 49 	calli 80191f0 <rtems_rfs_block_map_next_block> 
        if ((rc > 0) && (rc != ENXIO))                                
 801a8d0:	7c 25 00 06 	cmpnei r5,r1,6                                 
 801a8d4:	68 24 00 00 	cmpgi r4,r1,0                                  
        entry += elength;                                             
      }                                                               
                                                                      
      if (rc == 0)                                                    
      {                                                               
        rc = rtems_rfs_block_map_next_block (fs, &map, &block);       
 801a8d8:	b8 20 a8 00 	mv r21,r1                                      
        if ((rc > 0) && (rc != ENXIO))                                
 801a8dc:	a0 a4 20 00 	and r4,r5,r4                                   
 801a8e0:	44 98 00 0e 	be r4,r24,801a918 <rtems_rfs_dir_lookup_ino+0x45c><== ALWAYS TAKEN
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))       
 801a8e4:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801a8e8:	78 02 04 00 	mvhi r2,0x400                                  <== NOT EXECUTED
 801a8ec:	fb ff d8 ae 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801a8f0:	44 20 00 1c 	be r1,r0,801a960 <rtems_rfs_dir_lookup_ino+0x4a4><== NOT EXECUTED
            printf ("rtems-rfs: dir-lookup-ino: "                     
 801a8f4:	ba a0 08 00 	mv r1,r21                                      <== NOT EXECUTED
 801a8f8:	2a eb 00 08 	lw r11,(r23+8)                                 <== NOT EXECUTED
 801a8fc:	f8 00 1f 5c 	calli 802266c <strerror>                       <== NOT EXECUTED
 801a900:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
 801a904:	2b 81 00 58 	lw r1,(sp+88)                                  <== NOT EXECUTED
 801a908:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 801a90c:	ba a0 18 00 	mv r3,r21                                      <== NOT EXECUTED
 801a910:	f8 00 1a 9c 	calli 8021380 <printf>                         <== NOT EXECUTED
 801a914:	e0 00 00 13 	bi 801a960 <rtems_rfs_dir_lookup_ino+0x4a4>    <== NOT EXECUTED
                    "block map next block failed in ino %" PRIu32 ": %d: %s\n",
                    rtems_rfs_inode_ino (inode), rc, strerror (rc));  
        }                                                             
        if (rc == ENXIO)                                              
 801a918:	34 01 00 06 	mvi r1,6                                       
 801a91c:	5e a1 00 11 	bne r21,r1,801a960 <rtems_rfs_dir_lookup_ino+0x4a4><== NEVER TAKEN
          rc = ENOENT;                                                
 801a920:	34 15 00 02 	mvi r21,2                                      
 801a924:	e0 00 00 13 	bi 801a970 <rtems_rfs_dir_lookup_ino+0x4b4>    
 801a928:	bb 00 a8 00 	mv r21,r24                                     <== NOT EXECUTED
 801a92c:	e0 00 00 0d 	bi 801a960 <rtems_rfs_dir_lookup_ino+0x4a4>    <== NOT EXECUTED
    while ((rc == 0) && block)                                        
    {                                                                 
      uint8_t* entry;                                                 
                                                                      
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))           
        printf ("rtems-rfs: dir-lookup-ino: block read, ino=%" PRIu32 " bno=%" PRId32 "\n",
 801a930:	78 02 08 03 	mvhi r2,0x803                                  
 801a934:	38 42 68 d4 	ori r2,r2,0x68d4                               
 801a938:	5b 82 00 50 	sw (sp+80),r2                                  
        }                                                             
                                                                      
        if (ehash == hash)                                            
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_CHECK)) 
            printf ("rtems-rfs: dir-lookup-ino: "                     
 801a93c:	78 05 08 03 	mvhi r5,0x803                                  
      {                                                               
        rc = rtems_rfs_block_map_next_block (fs, &map, &block);       
        if ((rc > 0) && (rc != ENXIO))                                
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))       
            printf ("rtems-rfs: dir-lookup-ino: "                     
 801a940:	78 01 08 03 	mvhi r1,0x803                                  
          break;                                                      
                                                                      
        if (rtems_rfs_dir_entry_valid (fs, elength, *ino))            
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))       
            printf ("rtems-rfs: dir-lookup-ino: "                     
 801a944:	78 02 08 03 	mvhi r2,0x803                                  
        }                                                             
                                                                      
        if (ehash == hash)                                            
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_CHECK)) 
            printf ("rtems-rfs: dir-lookup-ino: "                     
 801a948:	38 a5 69 9c 	ori r5,r5,0x699c                               
      {                                                               
        rc = rtems_rfs_block_map_next_block (fs, &map, &block);       
        if ((rc > 0) && (rc != ENXIO))                                
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))       
            printf ("rtems-rfs: dir-lookup-ino: "                     
 801a94c:	38 21 6a 44 	ori r1,r1,0x6a44                               
          break;                                                      
                                                                      
        if (rtems_rfs_dir_entry_valid (fs, elength, *ino))            
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))       
            printf ("rtems-rfs: dir-lookup-ino: "                     
 801a950:	38 42 69 50 	ori r2,r2,0x6950                               
        }                                                             
                                                                      
        if (ehash == hash)                                            
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_CHECK)) 
            printf ("rtems-rfs: dir-lookup-ino: "                     
 801a954:	5b 85 00 54 	sw (sp+84),r5                                  
      {                                                               
        rc = rtems_rfs_block_map_next_block (fs, &map, &block);       
        if ((rc > 0) && (rc != ENXIO))                                
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))       
            printf ("rtems-rfs: dir-lookup-ino: "                     
 801a958:	5b 81 00 58 	sw (sp+88),r1                                  
          break;                                                      
                                                                      
        if (rtems_rfs_dir_entry_valid (fs, elength, *ino))            
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))       
            printf ("rtems-rfs: dir-lookup-ino: "                     
 801a95c:	5b 82 00 5c 	sw (sp+92),r2                                  
      rtems_rfs_buffer_handle_close (fs, &entries);                   
      rtems_rfs_block_map_close (fs, &map);                           
      return rc;                                                      
    }                                                                 
                                                                      
    while ((rc == 0) && block)                                        
 801a960:	5e a0 00 04 	bne r21,r0,801a970 <rtems_rfs_dir_lookup_ino+0x4b4><== NEVER TAKEN
 801a964:	2b 84 00 c0 	lw r4,(sp+192)                                 
 801a968:	5c 95 ff 3c 	bne r4,r21,801a658 <rtems_rfs_dir_lookup_ino+0x19c><== ALWAYS TAKEN
 801a96c:	e0 00 00 2e 	bi 801aa24 <rtems_rfs_dir_lookup_ino+0x568>    <== NOT EXECUTED
 801a970:	ba a0 c0 00 	mv r24,r21                                     
 801a974:	bb 00 a8 00 	mv r21,r24                                     
 801a978:	e0 00 00 0c 	bi 801a9a8 <rtems_rfs_dir_lookup_ino+0x4ec>    
                                                                      
    if ((rc == 0) && (block == 0))                                    
    {                                                                 
      rc = EIO;                                                       
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))           
        printf ("rtems-rfs: dir-lookup-ino: block is 0 in ino %" PRIu32 ": %d: %s\n",
 801a97c:	34 01 00 05 	mvi r1,5                                       <== NOT EXECUTED
 801a980:	2a eb 00 08 	lw r11,(r23+8)                                 <== NOT EXECUTED
 801a984:	f8 00 1f 3a 	calli 802266c <strerror>                       <== NOT EXECUTED
 801a988:	78 03 08 03 	mvhi r3,0x803                                  <== NOT EXECUTED
 801a98c:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
 801a990:	b8 60 08 00 	mv r1,r3                                       <== NOT EXECUTED
 801a994:	38 21 6a 90 	ori r1,r1,0x6a90                               <== NOT EXECUTED
 801a998:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 801a99c:	34 03 00 05 	mvi r3,5                                       <== NOT EXECUTED
 801a9a0:	f8 00 1a 78 	calli 8021380 <printf>                         <== NOT EXECUTED
      }                                                               
    }                                                                 
                                                                      
    if ((rc == 0) && (block == 0))                                    
    {                                                                 
      rc = EIO;                                                       
 801a9a4:	34 15 00 05 	mvi r21,5                                      <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 801a9a8:	37 82 00 b4 	addi r2,sp,180                                 
 801a9ac:	ba c0 08 00 	mv r1,r22                                      
 801a9b0:	fb ff fc a4 	calli 8019c40 <rtems_rfs_buffer_handle_release>
                rtems_rfs_inode_ino (inode), rc, strerror (rc));      
    }                                                                 
  }                                                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &entries);                       
  rtems_rfs_block_map_close (fs, &map);                               
 801a9b4:	ba c0 08 00 	mv r1,r22                                      
 801a9b8:	37 82 00 64 	addi r2,sp,100                                 
  handle->dirty = false;                                              
 801a9bc:	33 80 00 b4 	sb (sp+180),r0                                 
  handle->bnum  = 0;                                                  
 801a9c0:	5b 80 00 b8 	sw (sp+184),r0                                 
  handle->buffer = NULL;                                              
 801a9c4:	5b 80 00 bc 	sw (sp+188),r0                                 
 801a9c8:	fb ff f8 c8 	calli 8018ce8 <rtems_rfs_block_map_close>      
  return rc;                                                          
}                                                                     
 801a9cc:	ba a0 08 00 	mv r1,r21                                      
 801a9d0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801a9d4:	2b 8b 00 44 	lw r11,(sp+68)                                 
 801a9d8:	2b 8c 00 40 	lw r12,(sp+64)                                 
 801a9dc:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 801a9e0:	2b 8e 00 38 	lw r14,(sp+56)                                 
 801a9e4:	2b 8f 00 34 	lw r15,(sp+52)                                 
 801a9e8:	2b 90 00 30 	lw r16,(sp+48)                                 
 801a9ec:	2b 91 00 2c 	lw r17,(sp+44)                                 
 801a9f0:	2b 92 00 28 	lw r18,(sp+40)                                 
 801a9f4:	2b 93 00 24 	lw r19,(sp+36)                                 
 801a9f8:	2b 94 00 20 	lw r20,(sp+32)                                 
 801a9fc:	2b 95 00 1c 	lw r21,(sp+28)                                 
 801aa00:	2b 96 00 18 	lw r22,(sp+24)                                 
 801aa04:	2b 97 00 14 	lw r23,(sp+20)                                 
 801aa08:	2b 98 00 10 	lw r24,(sp+16)                                 
 801aa0c:	2b 99 00 0c 	lw r25,(sp+12)                                 
 801aa10:	2b 9b 00 08 	lw fp,(sp+8)                                   
 801aa14:	37 9c 00 c0 	addi sp,sp,192                                 
 801aa18:	c3 a0 00 00 	ret                                            
            printf ("rtems-rfs: dir-lookup-ino: "                     
                    "block map next block failed in ino %" PRIu32 ": %d: %s\n",
                    rtems_rfs_inode_ino (inode), rc, strerror (rc));  
        }                                                             
        if (rc == ENXIO)                                              
          rc = ENOENT;                                                
 801aa1c:	34 18 00 05 	mvi r24,5                                      <== NOT EXECUTED
 801aa20:	e3 ff ff c2 	bi 801a928 <rtems_rfs_dir_lookup_ino+0x46c>    <== NOT EXECUTED
    }                                                                 
                                                                      
    if ((rc == 0) && (block == 0))                                    
    {                                                                 
      rc = EIO;                                                       
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))           
 801aa24:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801aa28:	78 02 04 00 	mvhi r2,0x400                                  <== NOT EXECUTED
 801aa2c:	fb ff d8 5e 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801aa30:	44 20 ff dd 	be r1,r0,801a9a4 <rtems_rfs_dir_lookup_ino+0x4e8><== NOT EXECUTED
 801aa34:	e3 ff ff d2 	bi 801a97c <rtems_rfs_dir_lookup_ino+0x4c0>    <== NOT EXECUTED
                                                                      

0801b304 <rtems_rfs_dir_read>: rtems_rfs_dir_read (rtems_rfs_file_system* fs, rtems_rfs_inode_handle* dir, rtems_rfs_pos_rel offset, struct dirent* dirent, size_t* length) {
 801b304:	37 9c ff 5c 	addi sp,sp,-164                                
 801b308:	5b 8b 00 44 	sw (sp+68),r11                                 
 801b30c:	5b 8c 00 40 	sw (sp+64),r12                                 
 801b310:	5b 8d 00 3c 	sw (sp+60),r13                                 
 801b314:	5b 8e 00 38 	sw (sp+56),r14                                 
 801b318:	5b 8f 00 34 	sw (sp+52),r15                                 
 801b31c:	5b 90 00 30 	sw (sp+48),r16                                 
 801b320:	5b 91 00 2c 	sw (sp+44),r17                                 
 801b324:	5b 92 00 28 	sw (sp+40),r18                                 
 801b328:	5b 93 00 24 	sw (sp+36),r19                                 
 801b32c:	5b 94 00 20 	sw (sp+32),r20                                 
 801b330:	5b 95 00 1c 	sw (sp+28),r21                                 
 801b334:	5b 96 00 18 	sw (sp+24),r22                                 
 801b338:	5b 97 00 14 	sw (sp+20),r23                                 
 801b33c:	5b 98 00 10 	sw (sp+16),r24                                 
 801b340:	5b 99 00 0c 	sw (sp+12),r25                                 
 801b344:	5b 9b 00 08 	sw (sp+8),fp                                   
 801b348:	5b 9d 00 04 	sw (sp+4),ra                                   
 801b34c:	b8 20 58 00 	mv r11,r1                                      
 801b350:	b8 40 a8 00 	mv r21,r2                                      
  rtems_rfs_block_map     map;                                        
  rtems_rfs_buffer_handle buffer;                                     
  rtems_rfs_block_no      block;                                      
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                     
 801b354:	34 01 00 00 	mvi r1,0                                       
 801b358:	78 02 80 00 	mvhi r2,0x8000                                 
rtems_rfs_dir_read (rtems_rfs_file_system*  fs,                       
                    rtems_rfs_inode_handle* dir,                      
                    rtems_rfs_pos_rel       offset,                   
                    struct dirent*          dirent,                   
                    size_t*                 length)                   
{                                                                     
 801b35c:	b8 60 90 00 	mv r18,r3                                      
 801b360:	b8 80 88 00 	mv r17,r4                                      
 801b364:	b8 a0 78 00 	mv r15,r5                                      
 801b368:	b8 c0 70 00 	mv r14,r6                                      
  rtems_rfs_block_map     map;                                        
  rtems_rfs_buffer_handle buffer;                                     
  rtems_rfs_block_no      block;                                      
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                     
 801b36c:	fb ff d6 0e 	calli 8010ba4 <rtems_rfs_trace>                
 801b370:	44 20 00 07 	be r1,r0,801b38c <rtems_rfs_dir_read+0x88>     <== ALWAYS TAKEN
    printf ("rtems-rfs: dir-read: dir=%" PRId32 " offset=%" PRId64 "\n",
 801b374:	2a a2 00 08 	lw r2,(r21+8)                                  <== NOT EXECUTED
 801b378:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801b37c:	38 21 6d 9c 	ori r1,r1,0x6d9c                               <== NOT EXECUTED
 801b380:	ba 40 18 00 	mv r3,r18                                      <== NOT EXECUTED
 801b384:	ba 20 20 00 	mv r4,r17                                      <== NOT EXECUTED
 801b388:	f8 00 17 fe 	calli 8021380 <printf>                         <== NOT EXECUTED
            rtems_rfs_inode_ino (dir), offset);                       
                                                                      
  *length = 0;                                                        
 801b38c:	59 c0 00 00 	sw (r14+0),r0                                  
                                                                      
  rc = rtems_rfs_block_map_open (fs, dir, &map);                      
 801b390:	b9 60 08 00 	mv r1,r11                                      
 801b394:	ba a0 10 00 	mv r2,r21                                      
 801b398:	37 83 00 48 	addi r3,sp,72                                  
 801b39c:	fb ff f5 cc 	calli 8018acc <rtems_rfs_block_map_open>       
 801b3a0:	b8 20 60 00 	mv r12,r1                                      
  if (rc > 0)                                                         
 801b3a4:	48 20 00 c0 	bg r1,r0,801b6a4 <rtems_rfs_dir_read+0x3a0>    <== NEVER TAKEN
    return rc;                                                        
                                                                      
  if (((rtems_rfs_fs_block_size (fs) -                                
        (offset % rtems_rfs_fs_block_size (fs))) <= RTEMS_RFS_DIR_ENTRY_SIZE))
 801b3a8:	29 6c 00 08 	lw r12,(r11+8)                                 
 801b3ac:	34 03 00 00 	mvi r3,0                                       
 801b3b0:	ba 40 08 00 	mv r1,r18                                      
 801b3b4:	ba 20 10 00 	mv r2,r17                                      
 801b3b8:	b9 80 20 00 	mv r4,r12                                      
 801b3bc:	f8 00 4b e4 	calli 802e34c <__moddi3>                       
                                                                      
  rc = rtems_rfs_block_map_open (fs, dir, &map);                      
  if (rc > 0)                                                         
    return rc;                                                        
                                                                      
  if (((rtems_rfs_fs_block_size (fs) -                                
 801b3c0:	c9 82 10 00 	sub r2,r12,r2                                  
 801b3c4:	f4 4c 18 00 	cmpgu r3,r2,r12                                
 801b3c8:	c8 01 08 00 	sub r1,r0,r1                                   
 801b3cc:	c8 23 08 00 	sub r1,r1,r3                                   
 801b3d0:	48 20 00 12 	bg r1,r0,801b418 <rtems_rfs_dir_read+0x114>    <== NEVER TAKEN
 801b3d4:	5c 20 00 03 	bne r1,r0,801b3e0 <rtems_rfs_dir_read+0xdc>    <== NEVER TAKEN
 801b3d8:	34 01 00 0a 	mvi r1,10                                      
 801b3dc:	54 41 00 0f 	bgu r2,r1,801b418 <rtems_rfs_dir_read+0x114>   <== ALWAYS TAKEN
        (offset % rtems_rfs_fs_block_size (fs))) <= RTEMS_RFS_DIR_ENTRY_SIZE))
    offset = (((offset / rtems_rfs_fs_block_size (fs)) + 1) *         
 801b3e0:	ba 40 08 00 	mv r1,r18                                      <== NOT EXECUTED
 801b3e4:	ba 20 10 00 	mv r2,r17                                      <== NOT EXECUTED
 801b3e8:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 801b3ec:	b9 80 20 00 	mv r4,r12                                      <== NOT EXECUTED
 801b3f0:	f8 00 49 d5 	calli 802db44 <__divdi3>                       <== NOT EXECUTED
 801b3f4:	34 43 00 01 	addi r3,r2,1                                   <== NOT EXECUTED
 801b3f8:	f4 43 10 00 	cmpgu r2,r2,r3                                 <== NOT EXECUTED
 801b3fc:	b9 80 20 00 	mv r4,r12                                      <== NOT EXECUTED
 801b400:	b4 41 08 00 	add r1,r2,r1                                   <== NOT EXECUTED
 801b404:	b8 60 10 00 	mv r2,r3                                       <== NOT EXECUTED
 801b408:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 801b40c:	f8 00 49 2a 	calli 802d8b4 <__muldi3>                       <== NOT EXECUTED
 801b410:	b8 20 90 00 	mv r18,r1                                      <== NOT EXECUTED
 801b414:	b8 40 88 00 	mv r17,r2                                      <== NOT EXECUTED
              rtems_rfs_fs_block_size (fs));                          
                                                                      
  rc = rtems_rfs_block_map_seek (fs, &map, offset, &block);           
 801b418:	37 8d 00 48 	addi r13,sp,72                                 
 801b41c:	b9 60 08 00 	mv r1,r11                                      
 801b420:	b9 a0 10 00 	mv r2,r13                                      
 801b424:	ba 40 18 00 	mv r3,r18                                      
 801b428:	ba 20 20 00 	mv r4,r17                                      
 801b42c:	37 85 00 a4 	addi r5,sp,164                                 
 801b430:	fb ff f7 3b 	calli 801911c <rtems_rfs_block_map_seek>       
 801b434:	b8 20 60 00 	mv r12,r1                                      
  if (rc > 0)                                                         
 801b438:	4c 01 00 05 	bge r0,r1,801b44c <rtems_rfs_dir_read+0x148>   <== ALWAYS TAKEN
  {                                                                   
    if (rc == ENXIO)                                                  
 801b43c:	34 01 00 06 	mvi r1,6                                       <== NOT EXECUTED
 801b440:	5d 81 00 96 	bne r12,r1,801b698 <rtems_rfs_dir_read+0x394>  <== NOT EXECUTED
      rc = ENOENT;                                                    
 801b444:	34 0c 00 02 	mvi r12,2                                      <== NOT EXECUTED
 801b448:	e0 00 00 94 	bi 801b698 <rtems_rfs_dir_read+0x394>          <== NOT EXECUTED
    }                                                                 
                                                                      
    *length += rtems_rfs_fs_block_size (fs) - map.bpos.boff;          
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                   
      printf ("rtems-rfs: dir-read: next block: off:%" PRId64 " length:%zd\n",
 801b44c:	78 16 08 03 	mvhi r22,0x803                                 
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
 801b450:	33 80 00 98 	sb (sp+152),r0                                 
  handle->bnum  = 0;                                                  
 801b454:	5b 80 00 9c 	sw (sp+156),r0                                 
  handle->buffer = NULL;                                              
 801b458:	5b 80 00 a0 	sw (sp+160),r0                                 
    uint8_t*      entry;                                              
    rtems_rfs_ino eino;                                               
    int           elength;                                            
    int           remaining;                                          
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);  
 801b45c:	37 97 00 98 	addi r23,sp,152                                
    }                                                                 
                                                                      
    *length += rtems_rfs_fs_block_size (fs) - map.bpos.boff;          
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                   
      printf ("rtems-rfs: dir-read: next block: off:%" PRId64 " length:%zd\n",
 801b460:	3a d6 6e 40 	ori r22,r22,0x6e40                             
    uint8_t*      entry;                                              
    rtems_rfs_ino eino;                                               
    int           elength;                                            
    int           remaining;                                          
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);  
 801b464:	2b 83 00 a4 	lw r3,(sp+164)                                 
 801b468:	b9 60 08 00 	mv r1,r11                                      
 801b46c:	ba e0 10 00 	mv r2,r23                                      
 801b470:	34 04 00 01 	mvi r4,1                                       
 801b474:	fb ff fa 62 	calli 8019dfc <rtems_rfs_buffer_handle_request>
 801b478:	b8 20 60 00 	mv r12,r1                                      
    if (rc > 0)                                                       
 801b47c:	4c 01 00 04 	bge r0,r1,801b48c <rtems_rfs_dir_read+0x188>   <== ALWAYS TAKEN
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 801b480:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801b484:	ba e0 10 00 	mv r2,r23                                      <== NOT EXECUTED
 801b488:	e0 00 00 80 	bi 801b688 <rtems_rfs_dir_read+0x384>          <== NOT EXECUTED
      rtems_rfs_buffer_handle_close (fs, &buffer);                    
      rtems_rfs_block_map_close (fs, &map);                           
      return rc;                                                      
    }                                                                 
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
 801b48c:	2b 81 00 a0 	lw r1,(sp+160)                                 
    entry += map.bpos.boff;                                           
 801b490:	2b 93 00 5c 	lw r19,(sp+92)                                 
                                                                      
    elength = rtems_rfs_dir_entry_length (entry);                     
 801b494:	34 02 00 08 	mvi r2,8                                       
      rtems_rfs_buffer_handle_close (fs, &buffer);                    
      rtems_rfs_block_map_close (fs, &map);                           
      return rc;                                                      
    }                                                                 
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
 801b498:	28 2d 00 1c 	lw r13,(r1+28)                                 
    entry += map.bpos.boff;                                           
 801b49c:	b5 b3 68 00 	add r13,r13,r19                                
                                                                      
    elength = rtems_rfs_dir_entry_length (entry);                     
 801b4a0:	41 a1 00 08 	lbu r1,(r13+8)                                 
    eino    = rtems_rfs_dir_entry_ino (entry);                        
 801b4a4:	35 b8 00 02 	addi r24,r13,2                                 
 801b4a8:	35 b9 00 03 	addi r25,r13,3                                 
    }                                                                 
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
    entry += map.bpos.boff;                                           
                                                                      
    elength = rtems_rfs_dir_entry_length (entry);                     
 801b4ac:	fb ff 98 0d 	calli 80014e0 <__ashlsi3>                      
 801b4b0:	41 b0 00 09 	lbu r16,(r13+9)                                
    eino    = rtems_rfs_dir_entry_ino (entry);                        
 801b4b4:	41 b4 00 03 	lbu r20,(r13+3)                                
 801b4b8:	35 bb 00 01 	addi fp,r13,1                                  
    }                                                                 
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
    entry += map.bpos.boff;                                           
                                                                      
    elength = rtems_rfs_dir_entry_length (entry);                     
 801b4bc:	b8 30 80 00 	or r16,r1,r16                                  
    eino    = rtems_rfs_dir_entry_ino (entry);                        
 801b4c0:	41 a1 00 00 	lbu r1,(r13+0)                                 
 801b4c4:	34 02 00 18 	mvi r2,24                                      
 801b4c8:	fb ff 98 06 	calli 80014e0 <__ashlsi3>                      
 801b4cc:	ba 81 a0 00 	or r20,r20,r1                                  
 801b4d0:	41 a1 00 01 	lbu r1,(r13+1)                                 
 801b4d4:	34 02 00 10 	mvi r2,16                                      
 801b4d8:	fb ff 98 02 	calli 80014e0 <__ashlsi3>                      
 801b4dc:	ba 81 a0 00 	or r20,r20,r1                                  
 801b4e0:	41 a1 00 02 	lbu r1,(r13+2)                                 
 801b4e4:	34 02 00 08 	mvi r2,8                                       
 801b4e8:	fb ff 97 fe 	calli 80014e0 <__ashlsi3>                      
 801b4ec:	ba 81 a0 00 	or r20,r20,r1                                  
                                                                      
    if (elength != RTEMS_RFS_DIR_ENTRY_EMPTY)                         
 801b4f0:	38 01 ff ff 	mvu r1,0xffff                                  
 801b4f4:	46 01 00 4b 	be r16,r1,801b620 <rtems_rfs_dir_read+0x31c>   
    {                                                                 
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
 801b4f8:	34 12 00 0a 	mvi r18,10                                     
 801b4fc:	4e 50 00 08 	bge r18,r16,801b51c <rtems_rfs_dir_read+0x218> <== NEVER TAKEN
 801b500:	29 61 00 1c 	lw r1,(r11+28)                                 
 801b504:	66 82 00 00 	cmpei r2,r20,0                                 
 801b508:	f2 01 08 00 	cmpgeu r1,r16,r1                               
 801b50c:	b8 22 08 00 	or r1,r1,r2                                    
 801b510:	5c 20 00 03 	bne r1,r0,801b51c <rtems_rfs_dir_read+0x218>   <== NEVER TAKEN
 801b514:	29 61 00 14 	lw r1,(r11+20)                                 
 801b518:	50 34 00 0e 	bgeu r1,r20,801b550 <rtems_rfs_dir_read+0x24c> <== ALWAYS TAKEN
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))               
 801b51c:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801b520:	78 02 80 00 	mvhi r2,0x8000                                 <== NOT EXECUTED
 801b524:	fb ff d5 a0 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
          printf ("rtems-rfs: dir-read: "                             
                  "bad length or ino for ino %" PRIu32 ": %u/%" PRId32 " @ %04" PRIx32 "\n",
                  rtems_rfs_inode_ino (dir), elength, eino, map.bpos.boff);
        rc = EIO;                                                     
 801b528:	34 0c 00 05 	mvi r12,5                                      <== NOT EXECUTED
                                                                      
    if (elength != RTEMS_RFS_DIR_ENTRY_EMPTY)                         
    {                                                                 
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))               
 801b52c:	44 20 00 55 	be r1,r0,801b680 <rtems_rfs_dir_read+0x37c>    <== NOT EXECUTED
          printf ("rtems-rfs: dir-read: "                             
 801b530:	2a a2 00 08 	lw r2,(r21+8)                                  <== NOT EXECUTED
 801b534:	2b 85 00 5c 	lw r5,(sp+92)                                  <== NOT EXECUTED
 801b538:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801b53c:	ba 00 18 00 	mv r3,r16                                      <== NOT EXECUTED
 801b540:	ba 80 20 00 	mv r4,r20                                      <== NOT EXECUTED
 801b544:	38 21 6d c8 	ori r1,r1,0x6dc8                               <== NOT EXECUTED
 801b548:	f8 00 17 8e 	calli 8021380 <printf>                         <== NOT EXECUTED
 801b54c:	e0 00 00 4d 	bi 801b680 <rtems_rfs_dir_read+0x37c>          <== NOT EXECUTED
                  rtems_rfs_inode_ino (dir), elength, eino, map.bpos.boff);
        rc = EIO;                                                     
        break;                                                        
      }                                                               
                                                                      
      memset (dirent, 0, sizeof (struct dirent));                     
 801b550:	34 02 00 00 	mvi r2,0                                       
 801b554:	b9 e0 08 00 	mv r1,r15                                      
 801b558:	34 03 01 0c 	mvi r3,268                                     
 801b55c:	f8 00 16 ed 	calli 8021110 <memset>                         
      dirent->d_off = offset;                                         
      dirent->d_reclen = sizeof (struct dirent);                      
 801b560:	34 01 01 0c 	mvi r1,268                                     
 801b564:	0d e1 00 08 	sh (r15+8),r1                                  
                                                                      
      *length += elength;                                             
 801b568:	29 c1 00 00 	lw r1,(r14+0)                                  
        rc = EIO;                                                     
        break;                                                        
      }                                                               
                                                                      
      memset (dirent, 0, sizeof (struct dirent));                     
      dirent->d_off = offset;                                         
 801b56c:	59 f1 00 04 	sw (r15+4),r17                                 
      dirent->d_reclen = sizeof (struct dirent);                      
                                                                      
      *length += elength;                                             
 801b570:	b6 01 08 00 	add r1,r16,r1                                  
 801b574:	59 c1 00 00 	sw (r14+0),r1                                  
                                                                      
      remaining = rtems_rfs_fs_block_size (fs) - (map.bpos.boff + elength);
 801b578:	29 62 00 08 	lw r2,(r11+8)                                  
 801b57c:	c8 53 98 00 	sub r19,r2,r19                                 
 801b580:	ca 70 98 00 	sub r19,r19,r16                                
                                                                      
      if (remaining <= RTEMS_RFS_DIR_ENTRY_SIZE)                      
 801b584:	4a 72 00 03 	bg r19,r18,801b590 <rtems_rfs_dir_read+0x28c>  <== ALWAYS TAKEN
        *length += remaining;                                         
 801b588:	b6 61 08 00 	add r1,r19,r1                                  <== NOT EXECUTED
 801b58c:	59 c1 00 00 	sw (r14+0),r1                                  <== NOT EXECUTED
                                                                      
      elength -= RTEMS_RFS_DIR_ENTRY_SIZE;                            
 801b590:	36 10 ff f6 	addi r16,r16,-10                               
 801b594:	34 01 00 ff 	mvi r1,255                                     
 801b598:	4c 30 00 02 	bge r1,r16,801b5a0 <rtems_rfs_dir_read+0x29c>  <== ALWAYS TAKEN
 801b59c:	34 10 00 ff 	mvi r16,255                                    <== NOT EXECUTED
      if (elength > NAME_MAX)                                         
        elength = NAME_MAX;                                           
                                                                      
      memcpy (dirent->d_name, entry + RTEMS_RFS_DIR_ENTRY_SIZE, elength);
 801b5a0:	35 ee 00 0c 	addi r14,r15,12                                
 801b5a4:	ba 00 18 00 	mv r3,r16                                      
 801b5a8:	35 a2 00 0a 	addi r2,r13,10                                 
 801b5ac:	b9 c0 08 00 	mv r1,r14                                      
 801b5b0:	f8 00 16 4a 	calli 8020ed8 <memcpy>                         
                                                                      
      dirent->d_ino = rtems_rfs_dir_entry_ino (entry);                
 801b5b4:	41 a1 00 00 	lbu r1,(r13+0)                                 
 801b5b8:	34 02 00 18 	mvi r2,24                                      
 801b5bc:	fb ff 97 c9 	calli 80014e0 <__ashlsi3>                      
 801b5c0:	b8 20 68 00 	mv r13,r1                                      
 801b5c4:	43 61 00 00 	lbu r1,(fp+0)                                  
 801b5c8:	34 02 00 10 	mvi r2,16                                      
 801b5cc:	fb ff 97 c5 	calli 80014e0 <__ashlsi3>                      
 801b5d0:	b9 a1 08 00 	or r1,r13,r1                                   
 801b5d4:	43 2d 00 00 	lbu r13,(r25+0)                                
 801b5d8:	34 02 00 08 	mvi r2,8                                       
 801b5dc:	b8 2d 68 00 	or r13,r1,r13                                  
 801b5e0:	43 01 00 00 	lbu r1,(r24+0)                                 
 801b5e4:	fb ff 97 bf 	calli 80014e0 <__ashlsi3>                      
 801b5e8:	b9 a1 08 00 	or r1,r13,r1                                   
 801b5ec:	59 e1 00 00 	sw (r15+0),r1                                  
      dirent->d_namlen = elength;                                     
 801b5f0:	0d f0 00 0a 	sh (r15+10),r16                                
                                                                      
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                 
 801b5f4:	34 01 00 00 	mvi r1,0                                       
 801b5f8:	78 02 80 00 	mvhi r2,0x8000                                 
 801b5fc:	fb ff d5 6a 	calli 8010ba4 <rtems_rfs_trace>                
 801b600:	44 20 00 20 	be r1,r0,801b680 <rtems_rfs_dir_read+0x37c>    <== ALWAYS TAKEN
        printf ("rtems-rfs: dir-read: found off:%" PRIooff_t " ino:%ld name=%s\n",
 801b604:	29 e2 00 04 	lw r2,(r15+4)                                  <== NOT EXECUTED
 801b608:	29 e3 00 00 	lw r3,(r15+0)                                  <== NOT EXECUTED
 801b60c:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801b610:	b9 c0 20 00 	mv r4,r14                                      <== NOT EXECUTED
 801b614:	38 21 6e 0c 	ori r1,r1,0x6e0c                               <== NOT EXECUTED
 801b618:	f8 00 17 5a 	calli 8021380 <printf>                         <== NOT EXECUTED
 801b61c:	e0 00 00 19 	bi 801b680 <rtems_rfs_dir_read+0x37c>          <== NOT EXECUTED
                dirent->d_off, dirent->d_ino, dirent->d_name);        
      break;                                                          
    }                                                                 
                                                                      
    *length += rtems_rfs_fs_block_size (fs) - map.bpos.boff;          
 801b620:	29 61 00 08 	lw r1,(r11+8)                                  
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                   
 801b624:	78 02 80 00 	mvhi r2,0x8000                                 
        printf ("rtems-rfs: dir-read: found off:%" PRIooff_t " ino:%ld name=%s\n",
                dirent->d_off, dirent->d_ino, dirent->d_name);        
      break;                                                          
    }                                                                 
                                                                      
    *length += rtems_rfs_fs_block_size (fs) - map.bpos.boff;          
 801b628:	c8 33 98 00 	sub r19,r1,r19                                 
 801b62c:	29 c1 00 00 	lw r1,(r14+0)                                  
 801b630:	b4 33 98 00 	add r19,r1,r19                                 
 801b634:	59 d3 00 00 	sw (r14+0),r19                                 
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                   
 801b638:	34 01 00 00 	mvi r1,0                                       
 801b63c:	fb ff d5 5a 	calli 8010ba4 <rtems_rfs_trace>                
 801b640:	44 20 00 06 	be r1,r0,801b658 <rtems_rfs_dir_read+0x354>    <== ALWAYS TAKEN
      printf ("rtems-rfs: dir-read: next block: off:%" PRId64 " length:%zd\n",
 801b644:	29 c4 00 00 	lw r4,(r14+0)                                  <== NOT EXECUTED
 801b648:	ba c0 08 00 	mv r1,r22                                      <== NOT EXECUTED
 801b64c:	ba 40 10 00 	mv r2,r18                                      <== NOT EXECUTED
 801b650:	ba 20 18 00 	mv r3,r17                                      <== NOT EXECUTED
 801b654:	f8 00 17 4b 	calli 8021380 <printf>                         <== NOT EXECUTED
              offset, *length);                                       
                                                                      
    rc = rtems_rfs_block_map_next_block (fs, &map, &block);           
 801b658:	b9 60 08 00 	mv r1,r11                                      
 801b65c:	37 82 00 48 	addi r2,sp,72                                  
 801b660:	37 83 00 a4 	addi r3,sp,164                                 
 801b664:	fb ff f6 e3 	calli 80191f0 <rtems_rfs_block_map_next_block> 
 801b668:	b8 20 60 00 	mv r12,r1                                      
    if (rc == ENXIO)                                                  
 801b66c:	34 01 00 06 	mvi r1,6                                       
 801b670:	45 81 00 03 	be r12,r1,801b67c <rtems_rfs_dir_read+0x378>   <== ALWAYS TAKEN
                                                                      
  /*                                                                  
   * Look for an empty entry and if this is the last block that is the end of
   * the directory.                                                   
   */                                                                 
  while (rc == 0)                                                     
 801b674:	45 80 ff 7c 	be r12,r0,801b464 <rtems_rfs_dir_read+0x160>   <== NOT EXECUTED
 801b678:	e0 00 00 02 	bi 801b680 <rtems_rfs_dir_read+0x37c>          <== NOT EXECUTED
      printf ("rtems-rfs: dir-read: next block: off:%" PRId64 " length:%zd\n",
              offset, *length);                                       
                                                                      
    rc = rtems_rfs_block_map_next_block (fs, &map, &block);           
    if (rc == ENXIO)                                                  
      rc = ENOENT;                                                    
 801b67c:	34 0c 00 02 	mvi r12,2                                      
 801b680:	b9 60 08 00 	mv r1,r11                                      
 801b684:	37 82 00 98 	addi r2,sp,152                                 
 801b688:	fb ff f9 6e 	calli 8019c40 <rtems_rfs_buffer_handle_release>
  handle->dirty = false;                                              
 801b68c:	33 80 00 98 	sb (sp+152),r0                                 
  handle->bnum  = 0;                                                  
 801b690:	5b 80 00 9c 	sw (sp+156),r0                                 
  handle->buffer = NULL;                                              
 801b694:	5b 80 00 a0 	sw (sp+160),r0                                 
  }                                                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &buffer);                        
  rtems_rfs_block_map_close (fs, &map);                               
 801b698:	b9 60 08 00 	mv r1,r11                                      
 801b69c:	37 82 00 48 	addi r2,sp,72                                  
 801b6a0:	fb ff f5 92 	calli 8018ce8 <rtems_rfs_block_map_close>      
  return rc;                                                          
}                                                                     
 801b6a4:	b9 80 08 00 	mv r1,r12                                      
 801b6a8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801b6ac:	2b 8b 00 44 	lw r11,(sp+68)                                 
 801b6b0:	2b 8c 00 40 	lw r12,(sp+64)                                 
 801b6b4:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 801b6b8:	2b 8e 00 38 	lw r14,(sp+56)                                 
 801b6bc:	2b 8f 00 34 	lw r15,(sp+52)                                 
 801b6c0:	2b 90 00 30 	lw r16,(sp+48)                                 
 801b6c4:	2b 91 00 2c 	lw r17,(sp+44)                                 
 801b6c8:	2b 92 00 28 	lw r18,(sp+40)                                 
 801b6cc:	2b 93 00 24 	lw r19,(sp+36)                                 
 801b6d0:	2b 94 00 20 	lw r20,(sp+32)                                 
 801b6d4:	2b 95 00 1c 	lw r21,(sp+28)                                 
 801b6d8:	2b 96 00 18 	lw r22,(sp+24)                                 
 801b6dc:	2b 97 00 14 	lw r23,(sp+20)                                 
 801b6e0:	2b 98 00 10 	lw r24,(sp+16)                                 
 801b6e4:	2b 99 00 0c 	lw r25,(sp+12)                                 
 801b6e8:	2b 9b 00 08 	lw fp,(sp+8)                                   
 801b6ec:	37 9c 00 a4 	addi sp,sp,164                                 
 801b6f0:	c3 a0 00 00 	ret                                            
                                                                      

0801b994 <rtems_rfs_file_close>: } int rtems_rfs_file_close (rtems_rfs_file_system* fs, rtems_rfs_file_handle* handle) {
 801b994:	37 9c ff e4 	addi sp,sp,-28                                 
 801b998:	5b 8b 00 1c 	sw (sp+28),r11                                 
 801b99c:	5b 8c 00 18 	sw (sp+24),r12                                 
 801b9a0:	5b 8d 00 14 	sw (sp+20),r13                                 
 801b9a4:	5b 8e 00 10 	sw (sp+16),r14                                 
 801b9a8:	5b 8f 00 0c 	sw (sp+12),r15                                 
 801b9ac:	5b 90 00 08 	sw (sp+8),r16                                  
 801b9b0:	5b 9d 00 04 	sw (sp+4),ra                                   
 801b9b4:	b8 20 68 00 	mv r13,r1                                      
 801b9b8:	b8 40 58 00 	mv r11,r2                                      
  int rrc;                                                            
  int rc;                                                             
                                                                      
  rrc = 0;                                                            
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))                   
 801b9bc:	34 01 00 10 	mvi r1,16                                      
 801b9c0:	34 02 00 00 	mvi r2,0                                       
 801b9c4:	fb ff d4 78 	calli 8010ba4 <rtems_rfs_trace>                
 801b9c8:	44 20 00 06 	be r1,r0,801b9e0 <rtems_rfs_file_close+0x4c>   <== ALWAYS TAKEN
    printf ("rtems-rfs: file-close: entry: ino=%" PRId32 "\n",        
            handle->shared->inode.ino);                               
 801b9cc:	29 62 00 1c 	lw r2,(r11+28)                                 <== NOT EXECUTED
  int rc;                                                             
                                                                      
  rrc = 0;                                                            
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))                   
    printf ("rtems-rfs: file-close: entry: ino=%" PRId32 "\n",        
 801b9d0:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801b9d4:	38 21 6e dc 	ori r1,r1,0x6edc                               <== NOT EXECUTED
 801b9d8:	28 42 00 14 	lw r2,(r2+20)                                  <== NOT EXECUTED
 801b9dc:	f8 00 16 69 	calli 8021380 <printf>                         <== NOT EXECUTED
            handle->shared->inode.ino);                               
                                                                      
  if (handle->shared->references > 0)                                 
 801b9e0:	29 62 00 1c 	lw r2,(r11+28)                                 
 801b9e4:	28 41 00 08 	lw r1,(r2+8)                                   
 801b9e8:	4c 01 00 03 	bge r0,r1,801b9f4 <rtems_rfs_file_close+0x60>  <== NEVER TAKEN
    handle->shared->references--;                                     
 801b9ec:	34 21 ff ff 	addi r1,r1,-1                                  
 801b9f0:	58 41 00 08 	sw (r2+8),r1                                   
                                                                      
  if (handle->shared->references == 0)                                
 801b9f4:	28 41 00 08 	lw r1,(r2+8)                                   
                      rtems_rfs_file_handle* handle)                  
{                                                                     
  int rrc;                                                            
  int rc;                                                             
                                                                      
  rrc = 0;                                                            
 801b9f8:	34 0c 00 00 	mvi r12,0                                      
            handle->shared->inode.ino);                               
                                                                      
  if (handle->shared->references > 0)                                 
    handle->shared->references--;                                     
                                                                      
  if (handle->shared->references == 0)                                
 801b9fc:	5c 20 00 83 	bne r1,r0,801bc08 <rtems_rfs_file_close+0x274> <== NEVER TAKEN
  {                                                                   
    if (!rtems_rfs_inode_is_loaded (&handle->shared->inode))          
 801ba00:	28 4e 00 18 	lw r14,(r2+24)                                 
 801ba04:	5d cc 00 06 	bne r14,r12,801ba1c <rtems_rfs_file_close+0x88><== NEVER TAKEN
      rrc = rtems_rfs_inode_load (fs, &handle->shared->inode);        
 801ba08:	b9 a0 08 00 	mv r1,r13                                      
 801ba0c:	34 42 00 0c 	addi r2,r2,12                                  
 801ba10:	fb ff cc 7c 	calli 800ec00 <rtems_rfs_inode_load>           
 801ba14:	b8 20 60 00 	mv r12,r1                                      
                                                                      
    if (rrc == 0)                                                     
 801ba18:	5c 2e 00 4c 	bne r1,r14,801bb48 <rtems_rfs_file_close+0x1b4><== NEVER TAKEN
    {                                                                 
      /*                                                              
       * @todo This could be clever and only update if different.     
       */                                                             
      rtems_rfs_inode_set_atime (&handle->shared->inode,              
 801ba1c:	29 6c 00 1c 	lw r12,(r11+28)                                
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_atime (rtems_rfs_inode_handle* handle,            
                           rtems_rfs_time          atime)             
{                                                                     
  rtems_rfs_write_u32 (&handle->node->atime, atime);                  
 801ba20:	34 02 00 18 	mvi r2,24                                      
 801ba24:	29 8e 00 8c 	lw r14,(r12+140)                               
 801ba28:	29 8f 00 18 	lw r15,(r12+24)                                
 801ba2c:	b9 c0 08 00 	mv r1,r14                                      
 801ba30:	fb ff 96 d3 	calli 800157c <__lshrsi3>                      
 801ba34:	31 e1 00 10 	sb (r15+16),r1                                 
 801ba38:	29 8f 00 18 	lw r15,(r12+24)                                
 801ba3c:	b9 c0 08 00 	mv r1,r14                                      
 801ba40:	34 02 00 10 	mvi r2,16                                      
 801ba44:	fb ff 96 ce 	calli 800157c <__lshrsi3>                      
 801ba48:	31 e1 00 11 	sb (r15+17),r1                                 
 801ba4c:	29 8f 00 18 	lw r15,(r12+24)                                
 801ba50:	b9 c0 08 00 	mv r1,r14                                      
 801ba54:	34 02 00 08 	mvi r2,8                                       
 801ba58:	fb ff 96 c9 	calli 800157c <__lshrsi3>                      
 801ba5c:	31 e1 00 12 	sb (r15+18),r1                                 
 801ba60:	29 81 00 18 	lw r1,(r12+24)                                 
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
 801ba64:	34 0f 00 01 	mvi r15,1                                      
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_mtime (rtems_rfs_inode_handle* handle,            
                           rtems_rfs_time          mtime)             
{                                                                     
  rtems_rfs_write_u32 (&handle->node->mtime, mtime);                  
 801ba68:	34 02 00 18 	mvi r2,24                                      
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_atime (rtems_rfs_inode_handle* handle,            
                           rtems_rfs_time          atime)             
{                                                                     
  rtems_rfs_write_u32 (&handle->node->atime, atime);                  
 801ba6c:	30 2e 00 13 	sb (r1+19),r14                                 
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
 801ba70:	31 8f 00 1c 	sb (r12+28),r15                                
                                 handle->shared->atime);              
      rtems_rfs_inode_set_mtime (&handle->shared->inode,              
 801ba74:	29 6c 00 1c 	lw r12,(r11+28)                                
 801ba78:	29 8e 00 90 	lw r14,(r12+144)                               
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_mtime (rtems_rfs_inode_handle* handle,            
                           rtems_rfs_time          mtime)             
{                                                                     
  rtems_rfs_write_u32 (&handle->node->mtime, mtime);                  
 801ba7c:	29 90 00 18 	lw r16,(r12+24)                                
 801ba80:	b9 c0 08 00 	mv r1,r14                                      
 801ba84:	fb ff 96 be 	calli 800157c <__lshrsi3>                      
 801ba88:	32 01 00 14 	sb (r16+20),r1                                 
 801ba8c:	29 90 00 18 	lw r16,(r12+24)                                
 801ba90:	b9 c0 08 00 	mv r1,r14                                      
 801ba94:	34 02 00 10 	mvi r2,16                                      
 801ba98:	fb ff 96 b9 	calli 800157c <__lshrsi3>                      
 801ba9c:	32 01 00 15 	sb (r16+21),r1                                 
 801baa0:	29 90 00 18 	lw r16,(r12+24)                                
 801baa4:	b9 c0 08 00 	mv r1,r14                                      
 801baa8:	34 02 00 08 	mvi r2,8                                       
 801baac:	fb ff 96 b4 	calli 800157c <__lshrsi3>                      
 801bab0:	32 01 00 16 	sb (r16+22),r1                                 
 801bab4:	29 81 00 18 	lw r1,(r12+24)                                 
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_ctime (rtems_rfs_inode_handle* handle,            
                           rtems_rfs_time          ctime)             
{                                                                     
  rtems_rfs_write_u32 (&handle->node->ctime, ctime);                  
 801bab8:	34 02 00 18 	mvi r2,24                                      
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_mtime (rtems_rfs_inode_handle* handle,            
                           rtems_rfs_time          mtime)             
{                                                                     
  rtems_rfs_write_u32 (&handle->node->mtime, mtime);                  
 801babc:	30 2e 00 17 	sb (r1+23),r14                                 
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
 801bac0:	31 8f 00 1c 	sb (r12+28),r15                                
                                 handle->shared->mtime);              
      rtems_rfs_inode_set_ctime (&handle->shared->inode,              
 801bac4:	29 6c 00 1c 	lw r12,(r11+28)                                
 801bac8:	29 8e 00 94 	lw r14,(r12+148)                               
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_ctime (rtems_rfs_inode_handle* handle,            
                           rtems_rfs_time          ctime)             
{                                                                     
  rtems_rfs_write_u32 (&handle->node->ctime, ctime);                  
 801bacc:	29 90 00 18 	lw r16,(r12+24)                                
 801bad0:	b9 c0 08 00 	mv r1,r14                                      
 801bad4:	fb ff 96 aa 	calli 800157c <__lshrsi3>                      
 801bad8:	32 01 00 18 	sb (r16+24),r1                                 
 801badc:	29 90 00 18 	lw r16,(r12+24)                                
 801bae0:	34 02 00 10 	mvi r2,16                                      
 801bae4:	b9 c0 08 00 	mv r1,r14                                      
 801bae8:	fb ff 96 a5 	calli 800157c <__lshrsi3>                      
 801baec:	32 01 00 19 	sb (r16+25),r1                                 
 801baf0:	29 90 00 18 	lw r16,(r12+24)                                
 801baf4:	34 02 00 08 	mvi r2,8                                       
 801baf8:	b9 c0 08 00 	mv r1,r14                                      
 801bafc:	fb ff 96 a0 	calli 800157c <__lshrsi3>                      
 801bb00:	32 01 00 1a 	sb (r16+26),r1                                 
 801bb04:	29 81 00 18 	lw r1,(r12+24)                                 
 801bb08:	30 2e 00 1b 	sb (r1+27),r14                                 
                                 handle->shared->ctime);              
      if (!rtems_rfs_block_size_equal (&handle->shared->size,         
 801bb0c:	29 62 00 1c 	lw r2,(r11+28)                                 
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
 801bb10:	31 8f 00 1c 	sb (r12+28),r15                                
 801bb14:	28 41 00 84 	lw r1,(r2+132)                                 
 801bb18:	28 43 00 3c 	lw r3,(r2+60)                                  
 801bb1c:	5c 23 00 05 	bne r1,r3,801bb30 <rtems_rfs_file_close+0x19c> <== NEVER TAKEN
 801bb20:	28 44 00 88 	lw r4,(r2+136)                                 
 801bb24:	28 43 00 40 	lw r3,(r2+64)                                  
 801bb28:	34 0c 00 00 	mvi r12,0                                      
 801bb2c:	44 83 00 07 	be r4,r3,801bb48 <rtems_rfs_file_close+0x1b4>  <== ALWAYS TAKEN
 */                                                                   
static inline void                                                    
rtems_rfs_block_map_set_size (rtems_rfs_block_map*  map,              
                              rtems_rfs_block_size* size)             
{                                                                     
  rtems_rfs_block_copy_size (&map->size, size);                       
 801bb30:	58 41 00 3c 	sw (r2+60),r1                                  <== NOT EXECUTED
 801bb34:	28 41 00 88 	lw r1,(r2+136)                                 <== NOT EXECUTED
  map->dirty = true;                                                  
 801bb38:	34 0c 00 00 	mvi r12,0                                      <== NOT EXECUTED
 */                                                                   
static inline void                                                    
rtems_rfs_block_map_set_size (rtems_rfs_block_map*  map,              
                              rtems_rfs_block_size* size)             
{                                                                     
  rtems_rfs_block_copy_size (&map->size, size);                       
 801bb3c:	58 41 00 40 	sw (r2+64),r1                                  <== NOT EXECUTED
  map->dirty = true;                                                  
 801bb40:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
 801bb44:	30 41 00 34 	sb (r2+52),r1                                  <== NOT EXECUTED
                                       &handle->shared->map.size))    
        rtems_rfs_block_map_set_size (&handle->shared->map,           
                                      &handle->shared->size);         
    }                                                                 
                                                                      
    rc = rtems_rfs_block_map_close (fs, &handle->shared->map);        
 801bb48:	29 62 00 1c 	lw r2,(r11+28)                                 
 801bb4c:	b9 a0 08 00 	mv r1,r13                                      
 801bb50:	34 42 00 34 	addi r2,r2,52                                  
 801bb54:	fb ff f4 65 	calli 8018ce8 <rtems_rfs_block_map_close>      
 801bb58:	b8 20 70 00 	mv r14,r1                                      
    if (rc > 0)                                                       
 801bb5c:	4c 01 00 11 	bge r0,r1,801bba0 <rtems_rfs_file_close+0x20c> <== ALWAYS TAKEN
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))               
 801bb60:	34 01 00 10 	mvi r1,16                                      <== NOT EXECUTED
 801bb64:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 801bb68:	fb ff d4 0f 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801bb6c:	44 20 00 0b 	be r1,r0,801bb98 <rtems_rfs_file_close+0x204>  <== NOT EXECUTED
        printf ("rtems-rfs: file-close: map close error: ino=%" PRId32 ": %d: %s\n",
                handle->shared->inode.ino, rc, strerror (rc));        
 801bb70:	29 61 00 1c 	lw r1,(r11+28)                                 <== NOT EXECUTED
                                                                      
    rc = rtems_rfs_block_map_close (fs, &handle->shared->map);        
    if (rc > 0)                                                       
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))               
        printf ("rtems-rfs: file-close: map close error: ino=%" PRId32 ": %d: %s\n",
 801bb74:	28 2f 00 14 	lw r15,(r1+20)                                 <== NOT EXECUTED
 801bb78:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 801bb7c:	f8 00 1a bc 	calli 802266c <strerror>                       <== NOT EXECUTED
 801bb80:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
 801bb84:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801bb88:	38 21 6f 04 	ori r1,r1,0x6f04                               <== NOT EXECUTED
 801bb8c:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
 801bb90:	b9 c0 18 00 	mv r3,r14                                      <== NOT EXECUTED
 801bb94:	f8 00 15 fb 	calli 8021380 <printf>                         <== NOT EXECUTED
                handle->shared->inode.ino, rc, strerror (rc));        
      if (rrc == 0)                                                   
 801bb98:	5d 80 00 02 	bne r12,r0,801bba0 <rtems_rfs_file_close+0x20c><== NOT EXECUTED
 801bb9c:	b9 c0 60 00 	mv r12,r14                                     <== NOT EXECUTED
        rrc = rc;                                                     
    }                                                                 
                                                                      
    rc = rtems_rfs_inode_close (fs, &handle->shared->inode);          
 801bba0:	29 62 00 1c 	lw r2,(r11+28)                                 
 801bba4:	b9 a0 08 00 	mv r1,r13                                      
 801bba8:	34 42 00 0c 	addi r2,r2,12                                  
 801bbac:	fb ff cc d1 	calli 800eef0 <rtems_rfs_inode_close>          
 801bbb0:	b8 20 70 00 	mv r14,r1                                      
    if (rc > 0)                                                       
 801bbb4:	4c 01 00 11 	bge r0,r1,801bbf8 <rtems_rfs_file_close+0x264> <== ALWAYS TAKEN
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))               
 801bbb8:	34 01 00 10 	mvi r1,16                                      <== NOT EXECUTED
 801bbbc:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 801bbc0:	fb ff d3 f9 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801bbc4:	44 20 00 0b 	be r1,r0,801bbf0 <rtems_rfs_file_close+0x25c>  <== NOT EXECUTED
        printf ("rtems-rfs: file-close: inode close error: ino=%" PRId32 ": %d: %s\n",
                handle->shared->inode.ino, rc, strerror (rc));        
 801bbc8:	29 61 00 1c 	lw r1,(r11+28)                                 <== NOT EXECUTED
                                                                      
    rc = rtems_rfs_inode_close (fs, &handle->shared->inode);          
    if (rc > 0)                                                       
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))               
        printf ("rtems-rfs: file-close: inode close error: ino=%" PRId32 ": %d: %s\n",
 801bbcc:	28 2f 00 14 	lw r15,(r1+20)                                 <== NOT EXECUTED
 801bbd0:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 801bbd4:	f8 00 1a a6 	calli 802266c <strerror>                       <== NOT EXECUTED
 801bbd8:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
 801bbdc:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801bbe0:	38 21 6f 40 	ori r1,r1,0x6f40                               <== NOT EXECUTED
 801bbe4:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
 801bbe8:	b9 c0 18 00 	mv r3,r14                                      <== NOT EXECUTED
 801bbec:	f8 00 15 e5 	calli 8021380 <printf>                         <== NOT EXECUTED
                handle->shared->inode.ino, rc, strerror (rc));        
      if (rrc == 0)                                                   
 801bbf0:	5d 80 00 02 	bne r12,r0,801bbf8 <rtems_rfs_file_close+0x264><== NOT EXECUTED
 801bbf4:	b9 c0 60 00 	mv r12,r14                                     <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
 801bbf8:	29 61 00 1c 	lw r1,(r11+28)                                 
 801bbfc:	fb ff e9 8d 	calli 8016230 <_Chain_Extract>                 
        rrc = rc;                                                     
    }                                                                 
                                                                      
    rtems_chain_extract (&handle->shared->link);                      
    free (handle->shared);                                            
 801bc00:	29 61 00 1c 	lw r1,(r11+28)                                 
 801bc04:	fb ff aa 22 	calli 800648c <free>                           
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 801bc08:	b9 a0 08 00 	mv r1,r13                                      
 801bc0c:	35 62 00 04 	addi r2,r11,4                                  
 801bc10:	fb ff f8 0c 	calli 8019c40 <rtems_rfs_buffer_handle_release>
  handle->dirty = false;                                              
 801bc14:	31 60 00 04 	sb (r11+4),r0                                  
  handle->bnum  = 0;                                                  
 801bc18:	59 60 00 08 	sw (r11+8),r0                                  
  handle->buffer = NULL;                                              
 801bc1c:	59 60 00 0c 	sw (r11+12),r0                                 
                                                                      
  rc = rtems_rfs_buffer_handle_close (fs, &handle->buffer);           
  if ((rrc == 0) && (rc > 0))                                         
    rrc = rc;                                                         
                                                                      
  if (rrc > 0)                                                        
 801bc20:	4c 0c 00 0c 	bge r0,r12,801bc50 <rtems_rfs_file_close+0x2bc><== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))                 
 801bc24:	34 01 00 10 	mvi r1,16                                      <== NOT EXECUTED
 801bc28:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 801bc2c:	fb ff d3 de 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801bc30:	44 20 00 08 	be r1,r0,801bc50 <rtems_rfs_file_close+0x2bc>  <== NOT EXECUTED
      printf ("rtems-rfs: file-close: result: %d: %s\n", rrc, strerror (rrc));
 801bc34:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801bc38:	f8 00 1a 8d 	calli 802266c <strerror>                       <== NOT EXECUTED
 801bc3c:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 801bc40:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801bc44:	38 21 6f 7c 	ori r1,r1,0x6f7c                               <== NOT EXECUTED
 801bc48:	b9 80 10 00 	mv r2,r12                                      <== NOT EXECUTED
 801bc4c:	f8 00 15 cd 	calli 8021380 <printf>                         <== NOT EXECUTED
  }                                                                   
                                                                      
  free (handle);                                                      
 801bc50:	b9 60 08 00 	mv r1,r11                                      
 801bc54:	fb ff aa 0e 	calli 800648c <free>                           
                                                                      
  return rrc;                                                         
}                                                                     
 801bc58:	b9 80 08 00 	mv r1,r12                                      
 801bc5c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801bc60:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 801bc64:	2b 8c 00 18 	lw r12,(sp+24)                                 
 801bc68:	2b 8d 00 14 	lw r13,(sp+20)                                 
 801bc6c:	2b 8e 00 10 	lw r14,(sp+16)                                 
 801bc70:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 801bc74:	2b 90 00 08 	lw r16,(sp+8)                                  
 801bc78:	37 9c 00 1c 	addi sp,sp,28                                  
 801bc7c:	c3 a0 00 00 	ret                                            
                                                                      

0801c524 <rtems_rfs_file_get_shared>: if (shared->inode.ino == ino) return shared; node = rtems_chain_next (node); } return NULL; }
 801c524:	28 23 00 74 	lw r3,(r1+116)                                 
RTEMS_INLINE_ROUTINE bool _Chain_Is_tail(                             
  const Chain_Control *the_chain,                                     
  const Chain_Node    *the_node                                       
)                                                                     
{                                                                     
  return (the_node == _Chain_Immutable_tail( the_chain ));            
 801c528:	34 24 00 78 	addi r4,r1,120                                 
rtems_rfs_file_get_shared (rtems_rfs_file_system* fs,                 
                           rtems_rfs_ino          ino)                
{                                                                     
  rtems_chain_node* node;                                             
  node = rtems_chain_first (&fs->file_shares);                        
  while (!rtems_chain_is_tail (&fs->file_shares, node))               
 801c52c:	e0 00 00 05 	bi 801c540 <rtems_rfs_file_get_shared+0x1c>    
  {                                                                   
    rtems_rfs_file_shared* shared;                                    
    shared = (rtems_rfs_file_shared*) node;                           
    if (shared->inode.ino == ino)                                     
 801c530:	28 65 00 14 	lw r5,(r3+20)                                  
  rtems_chain_node* node;                                             
  node = rtems_chain_first (&fs->file_shares);                        
  while (!rtems_chain_is_tail (&fs->file_shares, node))               
  {                                                                   
    rtems_rfs_file_shared* shared;                                    
    shared = (rtems_rfs_file_shared*) node;                           
 801c534:	b8 60 08 00 	mv r1,r3                                       
    if (shared->inode.ino == ino)                                     
 801c538:	44 a2 00 04 	be r5,r2,801c548 <rtems_rfs_file_get_shared+0x24><== ALWAYS TAKEN
      return shared;                                                  
    node = rtems_chain_next (node);                                   
  }                                                                   
  return NULL;                                                        
}                                                                     
 801c53c:	28 63 00 00 	lw r3,(r3+0)                                   <== NOT EXECUTED
rtems_rfs_file_get_shared (rtems_rfs_file_system* fs,                 
                           rtems_rfs_ino          ino)                
{                                                                     
  rtems_chain_node* node;                                             
  node = rtems_chain_first (&fs->file_shares);                        
  while (!rtems_chain_is_tail (&fs->file_shares, node))               
 801c540:	5c 64 ff fc 	bne r3,r4,801c530 <rtems_rfs_file_get_shared+0xc>
    shared = (rtems_rfs_file_shared*) node;                           
    if (shared->inode.ino == ino)                                     
      return shared;                                                  
    node = rtems_chain_next (node);                                   
  }                                                                   
  return NULL;                                                        
 801c544:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 801c548:	c3 a0 00 00 	ret                                            
                                                                      

0801be78 <rtems_rfs_file_io_end>: int rtems_rfs_file_io_end (rtems_rfs_file_handle* handle, size_t size, bool read) {
 801be78:	37 9c ff e4 	addi sp,sp,-28                                 
 801be7c:	5b 8b 00 1c 	sw (sp+28),r11                                 
 801be80:	5b 8c 00 18 	sw (sp+24),r12                                 
 801be84:	5b 8d 00 14 	sw (sp+20),r13                                 
 801be88:	5b 8e 00 10 	sw (sp+16),r14                                 
 801be8c:	5b 8f 00 0c 	sw (sp+12),r15                                 
 801be90:	5b 90 00 08 	sw (sp+8),r16                                  
 801be94:	5b 9d 00 04 	sw (sp+4),ra                                   
 801be98:	b8 20 58 00 	mv r11,r1                                      
 801be9c:	b8 40 70 00 	mv r14,r2                                      
  bool atime;                                                         
  bool mtime;                                                         
  bool length;                                                        
  int  rc = 0;                                                        
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
 801bea0:	34 01 00 20 	mvi r1,32                                      
 801bea4:	34 02 00 00 	mvi r2,0                                       
                                                                      
int                                                                   
rtems_rfs_file_io_end (rtems_rfs_file_handle* handle,                 
                       size_t                 size,                   
                       bool                   read)                   
{                                                                     
 801bea8:	20 6c 00 ff 	andi r12,r3,0xff                               
  bool atime;                                                         
  bool mtime;                                                         
  bool length;                                                        
  int  rc = 0;                                                        
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
 801beac:	fb ff d3 3e 	calli 8010ba4 <rtems_rfs_trace>                
 801beb0:	44 20 00 0b 	be r1,r0,801bedc <rtems_rfs_file_io_end+0x64>  <== ALWAYS TAKEN
    printf ("rtems-rfs: file-io:   end: %s size=%zu\n",               
 801beb4:	78 04 08 03 	mvhi r4,0x803                                  <== NOT EXECUTED
 801beb8:	38 84 6f a4 	ori r4,r4,0x6fa4                               <== NOT EXECUTED
 801bebc:	45 80 00 03 	be r12,r0,801bec8 <rtems_rfs_file_io_end+0x50> <== NOT EXECUTED
 801bec0:	78 04 08 03 	mvhi r4,0x803                                  <== NOT EXECUTED
 801bec4:	38 84 5a 40 	ori r4,r4,0x5a40                               <== NOT EXECUTED
 801bec8:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801becc:	38 21 70 60 	ori r1,r1,0x7060                               <== NOT EXECUTED
 801bed0:	b8 80 10 00 	mv r2,r4                                       <== NOT EXECUTED
 801bed4:	b9 c0 18 00 	mv r3,r14                                      <== NOT EXECUTED
 801bed8:	f8 00 15 2a 	calli 8021380 <printf>                         <== NOT EXECUTED
            read ? "read" : "write", size);                           
                                                                      
  if (rtems_rfs_buffer_handle_has_block (&handle->buffer))            
 801bedc:	29 61 00 0c 	lw r1,(r11+12)                                 
 801bee0:	44 20 00 19 	be r1,r0,801bf44 <rtems_rfs_file_io_end+0xcc>  <== NEVER TAKEN
  {                                                                   
    if (!read)                                                        
 801bee4:	5d 80 00 03 	bne r12,r0,801bef0 <rtems_rfs_file_io_end+0x78>
      rtems_rfs_buffer_mark_dirty (rtems_rfs_file_buffer (handle));   
 801bee8:	34 01 00 01 	mvi r1,1                                       
 801beec:	31 61 00 04 	sb (r11+4),r1                                  
    rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle), 
 801bef0:	29 61 00 1c 	lw r1,(r11+28)                                 
 801bef4:	35 62 00 04 	addi r2,r11,4                                  
 801bef8:	28 21 00 98 	lw r1,(r1+152)                                 
 801befc:	fb ff f7 51 	calli 8019c40 <rtems_rfs_buffer_handle_release>
 801bf00:	b8 20 68 00 	mv r13,r1                                      
                                          rtems_rfs_file_buffer (handle));
    if (rc > 0)                                                       
 801bf04:	4c 01 00 11 	bge r0,r1,801bf48 <rtems_rfs_file_io_end+0xd0> <== ALWAYS TAKEN
    {                                                                 
      printf (                                                        
 801bf08:	78 0b 08 03 	mvhi r11,0x803                                 <== NOT EXECUTED
 801bf0c:	39 6b 6f a4 	ori r11,r11,0x6fa4                             <== NOT EXECUTED
 801bf10:	45 80 00 03 	be r12,r0,801bf1c <rtems_rfs_file_io_end+0xa4> <== NOT EXECUTED
 801bf14:	78 0b 08 03 	mvhi r11,0x803                                 <== NOT EXECUTED
 801bf18:	39 6b 5a 40 	ori r11,r11,0x5a40                             <== NOT EXECUTED
 801bf1c:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 801bf20:	f8 00 19 d3 	calli 802266c <strerror>                       <== NOT EXECUTED
 801bf24:	b8 20 28 00 	mv r5,r1                                       <== NOT EXECUTED
 801bf28:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801bf2c:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 801bf30:	b9 c0 18 00 	mv r3,r14                                      <== NOT EXECUTED
 801bf34:	b9 a0 20 00 	mv r4,r13                                      <== NOT EXECUTED
 801bf38:	38 21 70 88 	ori r1,r1,0x7088                               <== NOT EXECUTED
 801bf3c:	f8 00 15 11 	calli 8021380 <printf>                         <== NOT EXECUTED
        "rtems-rfs: file-io:   end: error on release: %s size=%zu: %d: %s\n",
        read ? "read" : "write", size, rc, strerror (rc));            
                                                                      
      return rc;                                                      
 801bf40:	e0 00 00 58 	bi 801c0a0 <rtems_rfs_file_io_end+0x228>       <== NOT EXECUTED
                       bool                   read)                   
{                                                                     
  bool atime;                                                         
  bool mtime;                                                         
  bool length;                                                        
  int  rc = 0;                                                        
 801bf44:	34 0d 00 00 	mvi r13,0                                      <== NOT EXECUTED
   * the size with the new length. The map holds the block count.     
   */                                                                 
  handle->bpos.boff += size;                                          
                                                                      
  if (handle->bpos.boff >=                                            
      rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))           
 801bf48:	29 65 00 1c 	lw r5,(r11+28)                                 
   * increase the block number and adjust the offset.                 
   *                                                                  
   * If we are the last block and the position is past the current size update
   * the size with the new length. The map holds the block count.     
   */                                                                 
  handle->bpos.boff += size;                                          
 801bf4c:	29 63 00 14 	lw r3,(r11+20)                                 
                                                                      
  if (handle->bpos.boff >=                                            
      rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))           
 801bf50:	28 a1 00 98 	lw r1,(r5+152)                                 
   * increase the block number and adjust the offset.                 
   *                                                                  
   * If we are the last block and the position is past the current size update
   * the size with the new length. The map holds the block count.     
   */                                                                 
  handle->bpos.boff += size;                                          
 801bf54:	b5 c3 18 00 	add r3,r14,r3                                  
 801bf58:	59 63 00 14 	sw (r11+20),r3                                 
                                                                      
  if (handle->bpos.boff >=                                            
      rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))           
 801bf5c:	28 21 00 08 	lw r1,(r1+8)                                   
   * If we are the last block and the position is past the current size update
   * the size with the new length. The map holds the block count.     
   */                                                                 
  handle->bpos.boff += size;                                          
                                                                      
  if (handle->bpos.boff >=                                            
 801bf60:	54 23 00 06 	bgu r1,r3,801bf78 <rtems_rfs_file_io_end+0x100>
      rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))           
  {                                                                   
    handle->bpos.bno++;                                               
 801bf64:	29 62 00 10 	lw r2,(r11+16)                                 
    handle->bpos.boff -= rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
 801bf68:	c8 61 18 00 	sub r3,r3,r1                                   
 801bf6c:	59 63 00 14 	sw (r11+20),r3                                 
  handle->bpos.boff += size;                                          
                                                                      
  if (handle->bpos.boff >=                                            
      rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))           
  {                                                                   
    handle->bpos.bno++;                                               
 801bf70:	34 42 00 01 	addi r2,r2,1                                   
 801bf74:	59 62 00 10 	sw (r11+16),r2                                 
    handle->bpos.boff -= rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
  }                                                                   
                                                                      
  length = false;                                                     
  mtime = false;                                                      
 801bf78:	34 01 00 00 	mvi r1,0                                       
                                                                      
  if (!read &&                                                        
 801bf7c:	5d 80 00 12 	bne r12,r0,801bfc4 <rtems_rfs_file_io_end+0x14c>
      rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),      
 801bf80:	29 62 00 10 	lw r2,(r11+16)                                 
  }                                                                   
                                                                      
  length = false;                                                     
  mtime = false;                                                      
                                                                      
  if (!read &&                                                        
 801bf84:	44 4c 00 03 	be r2,r12,801bf90 <rtems_rfs_file_io_end+0x118>
      rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),      
 801bf88:	28 a1 00 3c 	lw r1,(r5+60)                                  
 801bf8c:	44 20 00 09 	be r1,r0,801bfb0 <rtems_rfs_file_io_end+0x138> <== NEVER TAKEN
 801bf90:	28 a1 00 3c 	lw r1,(r5+60)                                  
 801bf94:	50 41 00 07 	bgeu r2,r1,801bfb0 <rtems_rfs_file_io_end+0x138>
 801bf98:	34 23 ff ff 	addi r3,r1,-1                                  
    handle->bpos.bno++;                                               
    handle->bpos.boff -= rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
  }                                                                   
                                                                      
  length = false;                                                     
  mtime = false;                                                      
 801bf9c:	34 01 00 00 	mvi r1,0                                       
                                                                      
  if (!read &&                                                        
      rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),      
 801bfa0:	5c 43 00 09 	bne r2,r3,801bfc4 <rtems_rfs_file_io_end+0x14c>
 801bfa4:	29 62 00 14 	lw r2,(r11+20)                                 
 801bfa8:	28 a3 00 40 	lw r3,(r5+64)                                  
 801bfac:	50 62 00 06 	bgeu r3,r2,801bfc4 <rtems_rfs_file_io_end+0x14c>
 */                                                                   
static inline void                                                    
rtems_rfs_block_map_set_size_offset (rtems_rfs_block_map* map,        
                                     rtems_rfs_block_off  offset)     
{                                                                     
  map->size.offset = offset;                                          
 801bfb0:	29 61 00 14 	lw r1,(r11+20)                                 
 801bfb4:	58 a1 00 40 	sw (r5+64),r1                                  
  map->dirty = true;                                                  
 801bfb8:	34 01 00 01 	mvi r1,1                                       
 801bfbc:	30 a1 00 34 	sb (r5+52),r1                                  
                                    rtems_rfs_file_bpos (handle)))    
  {                                                                   
    rtems_rfs_block_map_set_size_offset (rtems_rfs_file_map (handle), 
                                         handle->bpos.boff);          
    length = true;                                                    
    mtime = true;                                                     
 801bfc0:	34 01 00 01 	mvi r1,1                                       
  }                                                                   
                                                                      
  atime  = rtems_rfs_file_update_atime (handle);                      
 801bfc4:	29 62 00 00 	lw r2,(r11+0)                                  
  mtime  = rtems_rfs_file_update_mtime (handle) && mtime;             
 801bfc8:	34 0f 00 00 	mvi r15,0                                      
                                         handle->bpos.boff);          
    length = true;                                                    
    mtime = true;                                                     
  }                                                                   
                                                                      
  atime  = rtems_rfs_file_update_atime (handle);                      
 801bfcc:	20 4e 00 01 	andi r14,r2,0x1                                
  mtime  = rtems_rfs_file_update_mtime (handle) && mtime;             
 801bfd0:	20 43 00 02 	andi r3,r2,0x2                                 
                                         handle->bpos.boff);          
    length = true;                                                    
    mtime = true;                                                     
  }                                                                   
                                                                      
  atime  = rtems_rfs_file_update_atime (handle);                      
 801bfd4:	19 ce 00 01 	xori r14,r14,0x1                               
  mtime  = rtems_rfs_file_update_mtime (handle) && mtime;             
 801bfd8:	5c 60 00 02 	bne r3,r0,801bfe0 <rtems_rfs_file_io_end+0x168><== NEVER TAKEN
 801bfdc:	b8 20 78 00 	mv r15,r1                                      
  length = rtems_rfs_file_update_length (handle) && length;           
 801bfe0:	20 42 00 04 	andi r2,r2,0x4                                 
    length = true;                                                    
    mtime = true;                                                     
  }                                                                   
                                                                      
  atime  = rtems_rfs_file_update_atime (handle);                      
  mtime  = rtems_rfs_file_update_mtime (handle) && mtime;             
 801bfe4:	21 ef 00 ff 	andi r15,r15,0xff                              
  length = rtems_rfs_file_update_length (handle) && length;           
 801bfe8:	34 10 00 00 	mvi r16,0                                      
 801bfec:	5c 40 00 02 	bne r2,r0,801bff4 <rtems_rfs_file_io_end+0x17c><== NEVER TAKEN
 801bff0:	b8 20 80 00 	mv r16,r1                                      
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
 801bff4:	34 01 00 20 	mvi r1,32                                      
 801bff8:	34 02 00 00 	mvi r2,0                                       
    mtime = true;                                                     
  }                                                                   
                                                                      
  atime  = rtems_rfs_file_update_atime (handle);                      
  mtime  = rtems_rfs_file_update_mtime (handle) && mtime;             
  length = rtems_rfs_file_update_length (handle) && length;           
 801bffc:	22 10 00 ff 	andi r16,r16,0xff                              
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
 801c000:	fb ff d2 e9 	calli 8010ba4 <rtems_rfs_trace>                
 801c004:	44 20 00 15 	be r1,r0,801c058 <rtems_rfs_file_io_end+0x1e0> <== ALWAYS TAKEN
    printf ("rtems-rfs: file-io:   end: pos=%" PRIu32 ":%" PRIu32 " %c %c %c\n",
 801c008:	65 c4 00 00 	cmpei r4,r14,0                                 <== NOT EXECUTED
 801c00c:	65 e5 00 00 	cmpei r5,r15,0                                 <== NOT EXECUTED
 801c010:	34 01 ff ec 	mvi r1,-20                                     <== NOT EXECUTED
 801c014:	c8 04 20 00 	sub r4,r0,r4                                   <== NOT EXECUTED
 801c018:	66 06 00 00 	cmpei r6,r16,0                                 <== NOT EXECUTED
 801c01c:	a0 81 20 00 	and r4,r4,r1                                   <== NOT EXECUTED
 801c020:	c8 05 28 00 	sub r5,r0,r5                                   <== NOT EXECUTED
 801c024:	34 01 ff e0 	mvi r1,-32                                     <== NOT EXECUTED
 801c028:	a0 a1 28 00 	and r5,r5,r1                                   <== NOT EXECUTED
 801c02c:	c8 06 30 00 	sub r6,r0,r6                                   <== NOT EXECUTED
 801c030:	34 01 ff e1 	mvi r1,-31                                     <== NOT EXECUTED
 801c034:	29 62 00 10 	lw r2,(r11+16)                                 <== NOT EXECUTED
 801c038:	29 63 00 14 	lw r3,(r11+20)                                 <== NOT EXECUTED
 801c03c:	a0 c1 30 00 	and r6,r6,r1                                   <== NOT EXECUTED
 801c040:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801c044:	38 21 70 cc 	ori r1,r1,0x70cc                               <== NOT EXECUTED
 801c048:	34 84 00 41 	addi r4,r4,65                                  <== NOT EXECUTED
 801c04c:	34 a5 00 4d 	addi r5,r5,77                                  <== NOT EXECUTED
 801c050:	34 c6 00 4c 	addi r6,r6,76                                  <== NOT EXECUTED
 801c054:	f8 00 14 cb 	calli 8021380 <printf>                         <== NOT EXECUTED
            handle->bpos.bno, handle->bpos.boff,                      
            atime ? 'A' : '-', mtime ? 'M' : '-', length ? 'L' : '-');
                                                                      
  if (atime || mtime)                                                 
 801c058:	5d c0 00 02 	bne r14,r0,801c060 <rtems_rfs_file_io_end+0x1e8><== ALWAYS TAKEN
 801c05c:	45 ee 00 0b 	be r15,r14,801c088 <rtems_rfs_file_io_end+0x210><== NOT EXECUTED
  {                                                                   
    time_t now = time (NULL);                                         
 801c060:	34 01 00 00 	mvi r1,0                                       
 801c064:	f8 00 24 83 	calli 8025270 <time>                           
    if (read && atime)                                                
 801c068:	45 80 00 05 	be r12,r0,801c07c <rtems_rfs_file_io_end+0x204>
 801c06c:	45 c0 00 07 	be r14,r0,801c088 <rtems_rfs_file_io_end+0x210><== NEVER TAKEN
      handle->shared->atime = now;                                    
 801c070:	29 62 00 1c 	lw r2,(r11+28)                                 
 801c074:	58 41 00 8c 	sw (r2+140),r1                                 
 801c078:	e0 00 00 04 	bi 801c088 <rtems_rfs_file_io_end+0x210>       
    if (!read && mtime)                                               
 801c07c:	45 ec 00 03 	be r15,r12,801c088 <rtems_rfs_file_io_end+0x210>
      handle->shared->mtime = now;                                    
 801c080:	29 62 00 1c 	lw r2,(r11+28)                                 
 801c084:	58 41 00 90 	sw (r2+144),r1                                 
  }                                                                   
  if (length)                                                         
 801c088:	46 00 00 06 	be r16,r0,801c0a0 <rtems_rfs_file_io_end+0x228>
  {                                                                   
    handle->shared->size.count =                                      
      rtems_rfs_block_map_count (rtems_rfs_file_map (handle));        
 801c08c:	29 62 00 1c 	lw r2,(r11+28)                                 
    if (!read && mtime)                                               
      handle->shared->mtime = now;                                    
  }                                                                   
  if (length)                                                         
  {                                                                   
    handle->shared->size.count =                                      
 801c090:	28 41 00 3c 	lw r1,(r2+60)                                  
 801c094:	58 41 00 84 	sw (r2+132),r1                                 
      rtems_rfs_block_map_count (rtems_rfs_file_map (handle));        
    handle->shared->size.offset =                                     
 801c098:	28 41 00 40 	lw r1,(r2+64)                                  
 801c09c:	58 41 00 88 	sw (r2+136),r1                                 
      rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle));  
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
 801c0a0:	b9 a0 08 00 	mv r1,r13                                      
 801c0a4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801c0a8:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 801c0ac:	2b 8c 00 18 	lw r12,(sp+24)                                 
 801c0b0:	2b 8d 00 14 	lw r13,(sp+20)                                 
 801c0b4:	2b 8e 00 10 	lw r14,(sp+16)                                 
 801c0b8:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 801c0bc:	2b 90 00 08 	lw r16,(sp+8)                                  
 801c0c0:	37 9c 00 1c 	addi sp,sp,28                                  
 801c0c4:	c3 a0 00 00 	ret                                            
                                                                      

0801c0c8 <rtems_rfs_file_io_release>: int rtems_rfs_file_io_release (rtems_rfs_file_handle* handle) {
 801c0c8:	37 9c ff fc 	addi sp,sp,-4                                  
 801c0cc:	5b 9d 00 04 	sw (sp+4),ra                                   
  int rc = 0;                                                         
  if (rtems_rfs_buffer_handle_has_block (&handle->buffer))            
 801c0d0:	28 23 00 0c 	lw r3,(r1+12)                                  
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_file_io_release (rtems_rfs_file_handle* handle)             
{                                                                     
 801c0d4:	b8 20 10 00 	mv r2,r1                                       
  int rc = 0;                                                         
 801c0d8:	34 01 00 00 	mvi r1,0                                       
  if (rtems_rfs_buffer_handle_has_block (&handle->buffer))            
 801c0dc:	44 60 00 05 	be r3,r0,801c0f0 <rtems_rfs_file_io_release+0x28><== ALWAYS TAKEN
    rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle), 
 801c0e0:	28 41 00 1c 	lw r1,(r2+28)                                  <== NOT EXECUTED
 801c0e4:	34 42 00 04 	addi r2,r2,4                                   <== NOT EXECUTED
 801c0e8:	28 21 00 98 	lw r1,(r1+152)                                 <== NOT EXECUTED
 801c0ec:	fb ff f6 d5 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
                                          rtems_rfs_file_buffer (handle));
  return rc;                                                          
}                                                                     
 801c0f0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801c0f4:	37 9c 00 04 	addi sp,sp,4                                   
 801c0f8:	c3 a0 00 00 	ret                                            
                                                                      

0801bc80 <rtems_rfs_file_io_start>: int rtems_rfs_file_io_start (rtems_rfs_file_handle* handle, size_t* available, bool read) {
 801bc80:	37 9c ff e4 	addi sp,sp,-28                                 
 801bc84:	5b 8b 00 18 	sw (sp+24),r11                                 
 801bc88:	5b 8c 00 14 	sw (sp+20),r12                                 
 801bc8c:	5b 8d 00 10 	sw (sp+16),r13                                 
 801bc90:	5b 8e 00 0c 	sw (sp+12),r14                                 
 801bc94:	5b 8f 00 08 	sw (sp+8),r15                                  
 801bc98:	5b 9d 00 04 	sw (sp+4),ra                                   
 801bc9c:	b8 20 58 00 	mv r11,r1                                      
 801bca0:	b8 40 70 00 	mv r14,r2                                      
  size_t size;                                                        
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
 801bca4:	34 01 00 20 	mvi r1,32                                      
 801bca8:	34 02 00 00 	mvi r2,0                                       
                                                                      
int                                                                   
rtems_rfs_file_io_start (rtems_rfs_file_handle* handle,               
                         size_t*                available,            
                         bool                   read)                 
{                                                                     
 801bcac:	20 6d 00 ff 	andi r13,r3,0xff                               
  size_t size;                                                        
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
 801bcb0:	fb ff d3 bd 	calli 8010ba4 <rtems_rfs_trace>                
 801bcb4:	44 20 00 0b 	be r1,r0,801bce0 <rtems_rfs_file_io_start+0x60><== ALWAYS TAKEN
    printf ("rtems-rfs: file-io: start: %s pos=%" PRIu32 ":%" PRIu32 "\n",
 801bcb8:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
 801bcbc:	38 42 6f a4 	ori r2,r2,0x6fa4                               <== NOT EXECUTED
 801bcc0:	45 a0 00 03 	be r13,r0,801bccc <rtems_rfs_file_io_start+0x4c><== NOT EXECUTED
 801bcc4:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
 801bcc8:	38 42 5a 40 	ori r2,r2,0x5a40                               <== NOT EXECUTED
 801bccc:	29 63 00 10 	lw r3,(r11+16)                                 <== NOT EXECUTED
 801bcd0:	29 64 00 14 	lw r4,(r11+20)                                 <== NOT EXECUTED
 801bcd4:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801bcd8:	38 21 6f ac 	ori r1,r1,0x6fac                               <== NOT EXECUTED
 801bcdc:	f8 00 15 a9 	calli 8021380 <printf>                         <== NOT EXECUTED
            read ? "read" : "write",  handle->bpos.bno, handle->bpos.boff);
                                                                      
  if (!rtems_rfs_buffer_handle_has_block (&handle->buffer))           
 801bce0:	29 6f 00 0c 	lw r15,(r11+12)                                
 801bce4:	5d e0 00 41 	bne r15,r0,801bde8 <rtems_rfs_file_io_start+0x168>
    bool                   request_read;                              
    int                    rc;                                        
                                                                      
    request_read = read;                                              
                                                                      
    rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),        
 801bce8:	29 62 00 1c 	lw r2,(r11+28)                                 
 801bcec:	35 63 00 10 	addi r3,r11,16                                 
 801bcf0:	37 84 00 1c 	addi r4,sp,28                                  
 801bcf4:	28 41 00 98 	lw r1,(r2+152)                                 
 801bcf8:	34 42 00 34 	addi r2,r2,52                                  
 801bcfc:	fb ff f4 99 	calli 8018f60 <rtems_rfs_block_map_find>       
 801bd00:	b8 20 60 00 	mv r12,r1                                      
                                   rtems_rfs_file_map (handle),       
                                   rtems_rfs_file_bpos (handle),      
                                   &block);                           
    if (rc > 0)                                                       
 801bd04:	4d e1 00 1a 	bge r15,r1,801bd6c <rtems_rfs_file_io_start+0xec>
    {                                                                 
      /*                                                              
       * Has the read reached the EOF ?                               
       */                                                             
      if (read && (rc == ENXIO))                                      
 801bd08:	45 a0 00 06 	be r13,r0,801bd20 <rtems_rfs_file_io_start+0xa0><== ALWAYS TAKEN
 801bd0c:	34 01 00 06 	mvi r1,6                                       <== NOT EXECUTED
 801bd10:	5d 81 00 51 	bne r12,r1,801be54 <rtems_rfs_file_io_start+0x1d4><== NOT EXECUTED
      {                                                               
        *available = 0;                                               
 801bd14:	59 c0 00 00 	sw (r14+0),r0                                  <== NOT EXECUTED
        return 0;                                                     
 801bd18:	34 0c 00 00 	mvi r12,0                                      <== NOT EXECUTED
 801bd1c:	e0 00 00 4e 	bi 801be54 <rtems_rfs_file_io_start+0x1d4>     <== NOT EXECUTED
      }                                                               
                                                                      
      if (rc != ENXIO)                                                
 801bd20:	34 01 00 06 	mvi r1,6                                       
 801bd24:	5d 81 00 4c 	bne r12,r1,801be54 <rtems_rfs_file_io_start+0x1d4><== NEVER TAKEN
        return rc;                                                    
                                                                      
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                  
 801bd28:	34 01 00 20 	mvi r1,32                                      
 801bd2c:	34 02 00 00 	mvi r2,0                                       
 801bd30:	fb ff d3 9d 	calli 8010ba4 <rtems_rfs_trace>                
 801bd34:	44 20 00 04 	be r1,r0,801bd44 <rtems_rfs_file_io_start+0xc4><== ALWAYS TAKEN
        printf ("rtems-rfs: file-io: start: grow\n");                 
 801bd38:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801bd3c:	38 21 6f d8 	ori r1,r1,0x6fd8                               <== NOT EXECUTED
 801bd40:	f8 00 16 58 	calli 80216a0 <puts>                           <== NOT EXECUTED
                                                                      
      rc = rtems_rfs_block_map_grow (rtems_rfs_file_fs (handle),      
 801bd44:	29 62 00 1c 	lw r2,(r11+28)                                 
 801bd48:	34 03 00 01 	mvi r3,1                                       
 801bd4c:	37 84 00 1c 	addi r4,sp,28                                  
 801bd50:	28 41 00 98 	lw r1,(r2+152)                                 
 801bd54:	34 42 00 34 	addi r2,r2,52                                  
 801bd58:	fb ff f5 33 	calli 8019224 <rtems_rfs_block_map_grow>       
 801bd5c:	b8 20 60 00 	mv r12,r1                                      
                                     rtems_rfs_file_map (handle),     
                                     1, &block);                      
      if (rc > 0)                                                     
 801bd60:	48 20 00 3d 	bg r1,r0,801be54 <rtems_rfs_file_io_start+0x1d4>
        return rc;                                                    
                                                                      
      request_read = false;                                           
 801bd64:	34 0c 00 00 	mvi r12,0                                      
 801bd68:	e0 00 00 0b 	bi 801bd94 <rtems_rfs_file_io_start+0x114>     
      /*                                                              
       * If this is a write check if the write starts within a block or the
       * amount of data is less than a block size. If it is read the block
       * rather than getting a block to fill.                         
       */                                                             
      if (!read &&                                                    
 801bd6c:	b9 a0 60 00 	mv r12,r13                                     
 801bd70:	5d a0 00 09 	bne r13,r0,801bd94 <rtems_rfs_file_io_start+0x114>
 801bd74:	29 61 00 14 	lw r1,(r11+20)                                 
          (rtems_rfs_file_block_offset (handle) ||                    
           (*available < rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))))
        request_read = true;                                          
 801bd78:	34 0c 00 01 	mvi r12,1                                      
      /*                                                              
       * If this is a write check if the write starts within a block or the
       * amount of data is less than a block size. If it is read the block
       * rather than getting a block to fill.                         
       */                                                             
      if (!read &&                                                    
 801bd7c:	5c 2d 00 06 	bne r1,r13,801bd94 <rtems_rfs_file_io_start+0x114>
          (rtems_rfs_file_block_offset (handle) ||                    
           (*available < rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))))
 801bd80:	29 61 00 1c 	lw r1,(r11+28)                                 
       * If this is a write check if the write starts within a block or the
       * amount of data is less than a block size. If it is read the block
       * rather than getting a block to fill.                         
       */                                                             
      if (!read &&                                                    
          (rtems_rfs_file_block_offset (handle) ||                    
 801bd84:	29 cc 00 00 	lw r12,(r14+0)                                 
           (*available < rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))))
 801bd88:	28 21 00 98 	lw r1,(r1+152)                                 
       * If this is a write check if the write starts within a block or the
       * amount of data is less than a block size. If it is read the block
       * rather than getting a block to fill.                         
       */                                                             
      if (!read &&                                                    
          (rtems_rfs_file_block_offset (handle) ||                    
 801bd8c:	28 21 00 08 	lw r1,(r1+8)                                   
 801bd90:	f4 2c 60 00 	cmpgu r12,r1,r12                               
           (*available < rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))))
        request_read = true;                                          
    }                                                                 
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                    
 801bd94:	34 01 00 20 	mvi r1,32                                      
 801bd98:	34 02 00 00 	mvi r2,0                                       
 801bd9c:	fb ff d3 82 	calli 8010ba4 <rtems_rfs_trace>                
 801bda0:	44 20 00 0a 	be r1,r0,801bdc8 <rtems_rfs_file_io_start+0x148><== ALWAYS TAKEN
      printf ("rtems-rfs: file-io: start: block=%" PRIu32 " request-read=%s\n",
 801bda4:	78 03 08 03 	mvhi r3,0x803                                  <== NOT EXECUTED
 801bda8:	2b 82 00 1c 	lw r2,(sp+28)                                  <== NOT EXECUTED
 801bdac:	38 63 59 c4 	ori r3,r3,0x59c4                               <== NOT EXECUTED
 801bdb0:	45 80 00 03 	be r12,r0,801bdbc <rtems_rfs_file_io_start+0x13c><== NOT EXECUTED
 801bdb4:	78 03 08 03 	mvhi r3,0x803                                  <== NOT EXECUTED
 801bdb8:	38 63 55 24 	ori r3,r3,0x5524                               <== NOT EXECUTED
 801bdbc:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801bdc0:	38 21 6f f8 	ori r1,r1,0x6ff8                               <== NOT EXECUTED
 801bdc4:	f8 00 15 6f 	calli 8021380 <printf>                         <== NOT EXECUTED
              block, request_read ? "yes" : "no");                    
                                                                      
    rc = rtems_rfs_buffer_handle_request (rtems_rfs_file_fs (handle), 
 801bdc8:	29 61 00 1c 	lw r1,(r11+28)                                 
 801bdcc:	2b 83 00 1c 	lw r3,(sp+28)                                  
 801bdd0:	b9 80 20 00 	mv r4,r12                                      
 801bdd4:	28 21 00 98 	lw r1,(r1+152)                                 
 801bdd8:	35 62 00 04 	addi r2,r11,4                                  
 801bddc:	fb ff f8 08 	calli 8019dfc <rtems_rfs_buffer_handle_request>
 801bde0:	b8 20 60 00 	mv r12,r1                                      
                                          rtems_rfs_file_buffer (handle),
                                          block, request_read);       
    if (rc > 0)                                                       
 801bde4:	48 20 00 1c 	bg r1,r0,801be54 <rtems_rfs_file_io_start+0x1d4><== NEVER TAKEN
      return rc;                                                      
  }                                                                   
                                                                      
  if (read                                                            
 801bde8:	45 a0 00 0b 	be r13,r0,801be14 <rtems_rfs_file_io_start+0x194>
      && rtems_rfs_block_map_last (rtems_rfs_file_map (handle))       
 801bdec:	29 61 00 1c 	lw r1,(r11+28)                                 
 801bdf0:	28 22 00 44 	lw r2,(r1+68)                                  
 801bdf4:	5c 40 00 03 	bne r2,r0,801be00 <rtems_rfs_file_io_start+0x180>
 801bdf8:	28 23 00 3c 	lw r3,(r1+60)                                  
 801bdfc:	44 62 00 04 	be r3,r2,801be0c <rtems_rfs_file_io_start+0x18c><== NEVER TAKEN
 801be00:	28 23 00 3c 	lw r3,(r1+60)                                  
 801be04:	34 63 ff ff 	addi r3,r3,-1                                  
 801be08:	5c 43 00 03 	bne r2,r3,801be14 <rtems_rfs_file_io_start+0x194>
      && rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle)))
 801be0c:	28 2d 00 40 	lw r13,(r1+64)                                 
 801be10:	5d a0 00 04 	bne r13,r0,801be20 <rtems_rfs_file_io_start+0x1a0>
    size = rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle));
  else                                                                
    size = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));      
 801be14:	29 61 00 1c 	lw r1,(r11+28)                                 
 801be18:	28 21 00 98 	lw r1,(r1+152)                                 
 801be1c:	28 2d 00 08 	lw r13,(r1+8)                                  
                                                                      
  *available = size - rtems_rfs_file_block_offset (handle);           
 801be20:	29 61 00 14 	lw r1,(r11+20)                                 
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
 801be24:	34 02 00 00 	mvi r2,0                                       
    printf ("rtems-rfs: file-io: start: available=%zu (%zu)\n",       
            *available, size);                                        
                                                                      
  return 0;                                                           
 801be28:	34 0c 00 00 	mvi r12,0                                      
      && rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle)))
    size = rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle));
  else                                                                
    size = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));      
                                                                      
  *available = size - rtems_rfs_file_block_offset (handle);           
 801be2c:	c9 a1 08 00 	sub r1,r13,r1                                  
 801be30:	59 c1 00 00 	sw (r14+0),r1                                  
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
 801be34:	34 01 00 20 	mvi r1,32                                      
 801be38:	fb ff d3 5b 	calli 8010ba4 <rtems_rfs_trace>                
 801be3c:	44 20 00 06 	be r1,r0,801be54 <rtems_rfs_file_io_start+0x1d4><== ALWAYS TAKEN
    printf ("rtems-rfs: file-io: start: available=%zu (%zu)\n",       
 801be40:	29 c2 00 00 	lw r2,(r14+0)                                  <== NOT EXECUTED
 801be44:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801be48:	38 21 70 30 	ori r1,r1,0x7030                               <== NOT EXECUTED
 801be4c:	b9 a0 18 00 	mv r3,r13                                      <== NOT EXECUTED
 801be50:	f8 00 15 4c 	calli 8021380 <printf>                         <== NOT EXECUTED
            *available, size);                                        
                                                                      
  return 0;                                                           
}                                                                     
 801be54:	b9 80 08 00 	mv r1,r12                                      
 801be58:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801be5c:	2b 8b 00 18 	lw r11,(sp+24)                                 
 801be60:	2b 8c 00 14 	lw r12,(sp+20)                                 
 801be64:	2b 8d 00 10 	lw r13,(sp+16)                                 
 801be68:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 801be6c:	2b 8f 00 08 	lw r15,(sp+8)                                  
 801be70:	37 9c 00 1c 	addi sp,sp,28                                  
 801be74:	c3 a0 00 00 	ret                                            
                                                                      

0801c54c <rtems_rfs_file_open>: int rtems_rfs_file_open (rtems_rfs_file_system* fs, rtems_rfs_ino ino, int oflag, rtems_rfs_file_handle** file) {
 801c54c:	37 9c ff d4 	addi sp,sp,-44                                 
 801c550:	5b 8b 00 2c 	sw (sp+44),r11                                 
 801c554:	5b 8c 00 28 	sw (sp+40),r12                                 
 801c558:	5b 8d 00 24 	sw (sp+36),r13                                 
 801c55c:	5b 8e 00 20 	sw (sp+32),r14                                 
 801c560:	5b 8f 00 1c 	sw (sp+28),r15                                 
 801c564:	5b 90 00 18 	sw (sp+24),r16                                 
 801c568:	5b 91 00 14 	sw (sp+20),r17                                 
 801c56c:	5b 92 00 10 	sw (sp+16),r18                                 
 801c570:	5b 93 00 0c 	sw (sp+12),r19                                 
 801c574:	5b 94 00 08 	sw (sp+8),r20                                  
 801c578:	5b 9d 00 04 	sw (sp+4),ra                                   
 801c57c:	b8 20 70 00 	mv r14,r1                                      
 801c580:	b8 40 80 00 	mv r16,r2                                      
  rtems_rfs_file_handle* handle;                                      
  rtems_rfs_file_shared* shared;                                      
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                    
 801c584:	34 01 00 08 	mvi r1,8                                       
 801c588:	34 02 00 00 	mvi r2,0                                       
int                                                                   
rtems_rfs_file_open (rtems_rfs_file_system*  fs,                      
                     rtems_rfs_ino           ino,                     
                     int                     oflag,                   
                     rtems_rfs_file_handle** file)                    
{                                                                     
 801c58c:	b8 60 98 00 	mv r19,r3                                      
 801c590:	b8 80 90 00 	mv r18,r4                                      
  rtems_rfs_file_handle* handle;                                      
  rtems_rfs_file_shared* shared;                                      
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                    
 801c594:	fb ff d1 84 	calli 8010ba4 <rtems_rfs_trace>                
 801c598:	44 20 00 05 	be r1,r0,801c5ac <rtems_rfs_file_open+0x60>    <== ALWAYS TAKEN
    printf ("rtems-rfs: file-open: ino=%" PRId32 "\n", ino);          
 801c59c:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801c5a0:	38 21 71 48 	ori r1,r1,0x7148                               <== NOT EXECUTED
 801c5a4:	ba 00 10 00 	mv r2,r16                                      <== NOT EXECUTED
 801c5a8:	f8 00 13 76 	calli 8021380 <printf>                         <== NOT EXECUTED
                                                                      
  *file = NULL;                                                       
 801c5ac:	5a 40 00 00 	sw (r18+0),r0                                  
  /*                                                                  
   * Allocate a new handle and initialise it. Do this before we deal with the
   * shared node data so we do not have to be concerned with reference
   * counting.                                                        
   */                                                                 
  handle = malloc (sizeof (rtems_rfs_file_handle));                   
 801c5b0:	34 01 00 20 	mvi r1,32                                      
 801c5b4:	fb ff a9 a1 	calli 8006c38 <malloc>                         
 801c5b8:	b8 20 58 00 	mv r11,r1                                      
  if (!handle)                                                        
    return ENOMEM;                                                    
 801c5bc:	34 0d 00 0c 	mvi r13,12                                     
   * Allocate a new handle and initialise it. Do this before we deal with the
   * shared node data so we do not have to be concerned with reference
   * counting.                                                        
   */                                                                 
  handle = malloc (sizeof (rtems_rfs_file_handle));                   
  if (!handle)                                                        
 801c5c0:	44 20 00 ac 	be r1,r0,801c870 <rtems_rfs_file_open+0x324>   <== NEVER TAKEN
    return ENOMEM;                                                    
                                                                      
  memset (handle, 0, sizeof (rtems_rfs_file_handle));                 
 801c5c4:	34 02 00 00 	mvi r2,0                                       
 801c5c8:	34 03 00 20 	mvi r3,32                                      
 801c5cc:	f8 00 12 d1 	calli 8021110 <memset>                         
                                                                      
  /*                                                                  
   * Scan the file system data list of open files for this ino. If found up
   * the reference count and return the pointer to the data.          
   */                                                                 
  shared = rtems_rfs_file_get_shared (fs, ino);                       
 801c5d0:	b9 c0 08 00 	mv r1,r14                                      
 801c5d4:	ba 00 10 00 	mv r2,r16                                      
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
 801c5d8:	31 60 00 04 	sb (r11+4),r0                                  
  handle->bnum  = 0;                                                  
 801c5dc:	59 60 00 08 	sw (r11+8),r0                                  
  handle->buffer = NULL;                                              
 801c5e0:	59 60 00 0c 	sw (r11+12),r0                                 
 801c5e4:	fb ff ff d0 	calli 801c524 <rtems_rfs_file_get_shared>      
 801c5e8:	b8 20 60 00 	mv r12,r1                                      
  if (shared)                                                         
 801c5ec:	44 20 00 0b 	be r1,r0,801c618 <rtems_rfs_file_open+0xcc>    <== ALWAYS TAKEN
  {                                                                   
    shared->references++;                                             
 801c5f0:	28 21 00 08 	lw r1,(r1+8)                                   <== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                  
 801c5f4:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
   * the reference count and return the pointer to the data.          
   */                                                                 
  shared = rtems_rfs_file_get_shared (fs, ino);                       
  if (shared)                                                         
  {                                                                   
    shared->references++;                                             
 801c5f8:	34 21 00 01 	addi r1,r1,1                                   <== NOT EXECUTED
 801c5fc:	59 81 00 08 	sw (r12+8),r1                                  <== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                  
 801c600:	34 01 00 08 	mvi r1,8                                       <== NOT EXECUTED
 801c604:	fb ff d1 68 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801c608:	44 20 00 96 	be r1,r0,801c860 <rtems_rfs_file_open+0x314>   <== NOT EXECUTED
      printf ("rtems-rfs: file-open: ino=%" PRId32 " shared\n", ino); 
 801c60c:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801c610:	38 21 71 68 	ori r1,r1,0x7168                               <== NOT EXECUTED
 801c614:	e0 00 00 91 	bi 801c858 <rtems_rfs_file_open+0x30c>         <== NOT EXECUTED
  {                                                                   
    /*                                                                
     * None exists so create. Copy in the shared parts of the inode we hold in
     * memory.                                                        
     */                                                               
    shared = malloc (sizeof (rtems_rfs_file_shared));                 
 801c618:	34 01 00 9c 	mvi r1,156                                     
 801c61c:	fb ff a9 87 	calli 8006c38 <malloc>                         
 801c620:	b8 20 78 00 	mv r15,r1                                      
 801c624:	b8 20 60 00 	mv r12,r1                                      
    if (!shared)                                                      
 801c628:	44 20 00 2e 	be r1,r0,801c6e0 <rtems_rfs_file_open+0x194>   <== NEVER TAKEN
      rtems_rfs_buffer_handle_close (fs, &handle->buffer);            
      free (handle);                                                  
      return ENOMEM;                                                  
    }                                                                 
                                                                      
    memset (shared, 0, sizeof (rtems_rfs_file_shared));               
 801c62c:	34 02 00 00 	mvi r2,0                                       
 801c630:	34 03 00 9c 	mvi r3,156                                     
 801c634:	f8 00 12 b7 	calli 8021110 <memset>                         
                                                                      
    rc = rtems_rfs_inode_open (fs, ino, &shared->inode, true);        
 801c638:	35 f1 00 0c 	addi r17,r15,12                                
 801c63c:	b9 c0 08 00 	mv r1,r14                                      
 801c640:	ba 00 10 00 	mv r2,r16                                      
 801c644:	ba 20 18 00 	mv r3,r17                                      
 801c648:	34 04 00 01 	mvi r4,1                                       
 801c64c:	fb ff c9 9d 	calli 800ecc0 <rtems_rfs_inode_open>           
 801c650:	b8 20 68 00 	mv r13,r1                                      
    if (rc > 0)                                                       
 801c654:	4c 01 00 0d 	bge r0,r1,801c688 <rtems_rfs_file_open+0x13c>  <== ALWAYS TAKEN
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                
 801c658:	34 01 00 08 	mvi r1,8                                       <== NOT EXECUTED
 801c65c:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 801c660:	fb ff d1 51 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801c664:	44 20 00 1d 	be r1,r0,801c6d8 <rtems_rfs_file_open+0x18c>   <== NOT EXECUTED
        printf ("rtems-rfs: file-open: inode open failed: %d: %s\n",  
 801c668:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 801c66c:	f8 00 18 00 	calli 802266c <strerror>                       <== NOT EXECUTED
 801c670:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 801c674:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801c678:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 801c67c:	38 21 71 90 	ori r1,r1,0x7190                               <== NOT EXECUTED
 801c680:	f8 00 13 40 	calli 8021380 <printf>                         <== NOT EXECUTED
 801c684:	e0 00 00 15 	bi 801c6d8 <rtems_rfs_file_open+0x18c>         <== NOT EXECUTED
      rtems_rfs_buffer_handle_close (fs, &handle->buffer);            
      free (handle);                                                  
      return rc;                                                      
    }                                                                 
                                                                      
    rc = rtems_rfs_block_map_open (fs, &shared->inode, &shared->map); 
 801c688:	b9 c0 08 00 	mv r1,r14                                      
 801c68c:	ba 20 10 00 	mv r2,r17                                      
 801c690:	35 e3 00 34 	addi r3,r15,52                                 
 801c694:	fb ff f1 0e 	calli 8018acc <rtems_rfs_block_map_open>       
 801c698:	b8 20 68 00 	mv r13,r1                                      
    if (rc > 0)                                                       
 801c69c:	4c 01 00 1a 	bge r0,r1,801c704 <rtems_rfs_file_open+0x1b8>  <== ALWAYS TAKEN
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                
 801c6a0:	34 01 00 08 	mvi r1,8                                       <== NOT EXECUTED
 801c6a4:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 801c6a8:	fb ff d1 3f 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801c6ac:	44 20 00 08 	be r1,r0,801c6cc <rtems_rfs_file_open+0x180>   <== NOT EXECUTED
        printf ("rtems-rfs: file-open: block map open failed: %d: %s\n",
 801c6b0:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 801c6b4:	f8 00 17 ee 	calli 802266c <strerror>                       <== NOT EXECUTED
 801c6b8:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 801c6bc:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801c6c0:	38 21 71 c4 	ori r1,r1,0x71c4                               <== NOT EXECUTED
 801c6c4:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 801c6c8:	f8 00 13 2e 	calli 8021380 <printf>                         <== NOT EXECUTED
                rc, strerror (rc));                                   
      rtems_rfs_inode_close (fs, &shared->inode);                     
 801c6cc:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 801c6d0:	ba 20 10 00 	mv r2,r17                                      <== NOT EXECUTED
 801c6d4:	fb ff ca 07 	calli 800eef0 <rtems_rfs_inode_close>          <== NOT EXECUTED
      free (shared);                                                  
 801c6d8:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
 801c6dc:	fb ff a7 6c 	calli 800648c <free>                           <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 801c6e0:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 801c6e4:	35 62 00 04 	addi r2,r11,4                                  <== NOT EXECUTED
 801c6e8:	fb ff f5 56 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
      rtems_rfs_buffer_handle_close (fs, &handle->buffer);            
      free (handle);                                                  
 801c6ec:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
  handle->dirty = false;                                              
 801c6f0:	31 60 00 04 	sb (r11+4),r0                                  <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 801c6f4:	59 60 00 08 	sw (r11+8),r0                                  <== NOT EXECUTED
  handle->buffer = NULL;                                              
 801c6f8:	59 60 00 0c 	sw (r11+12),r0                                 <== NOT EXECUTED
 801c6fc:	fb ff a7 64 	calli 800648c <free>                           <== NOT EXECUTED
      return rc;                                                      
 801c700:	e0 00 00 5c 	bi 801c870 <rtems_rfs_file_open+0x324>         <== NOT EXECUTED
    if (shared->inode.ino == ino)                                     
      return shared;                                                  
    node = rtems_chain_next (node);                                   
  }                                                                   
  return NULL;                                                        
}                                                                     
 801c704:	29 ed 00 18 	lw r13,(r15+24)                                
      rtems_rfs_buffer_handle_close (fs, &handle->buffer);            
      free (handle);                                                  
      return rc;                                                      
    }                                                                 
                                                                      
    shared->references = 1;                                           
 801c708:	34 01 00 01 	mvi r1,1                                       
 801c70c:	59 e1 00 08 	sw (r15+8),r1                                  
 * @return uint32_t The block count.                                  
 */                                                                   
static inline uint32_t                                                
rtems_rfs_inode_get_block_count (rtems_rfs_inode_handle* handle)      
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->block_count);             
 801c710:	41 a1 00 0c 	lbu r1,(r13+12)                                
 801c714:	35 af 00 0c 	addi r15,r13,12                                
 801c718:	41 f4 00 03 	lbu r20,(r15+3)                                
 801c71c:	34 02 00 18 	mvi r2,24                                      
 801c720:	fb ff 93 70 	calli 80014e0 <__ashlsi3>                      
 801c724:	ba 81 a0 00 	or r20,r20,r1                                  
 801c728:	41 e1 00 01 	lbu r1,(r15+1)                                 
 801c72c:	34 02 00 10 	mvi r2,16                                      
 801c730:	fb ff 93 6c 	calli 80014e0 <__ashlsi3>                      
 801c734:	ba 81 a0 00 	or r20,r20,r1                                  
 801c738:	41 e1 00 02 	lbu r1,(r15+2)                                 
 801c73c:	34 02 00 08 	mvi r2,8                                       
 * @return uint32_t The block offset.                                 
 */                                                                   
static inline uint16_t                                                
rtems_rfs_inode_get_block_offset (rtems_rfs_inode_handle* handle)     
{                                                                     
  return rtems_rfs_read_u16 (&handle->node->block_offset);            
 801c740:	35 af 00 0a 	addi r15,r13,10                                
 * @return uint32_t The block count.                                  
 */                                                                   
static inline uint32_t                                                
rtems_rfs_inode_get_block_count (rtems_rfs_inode_handle* handle)      
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->block_count);             
 801c744:	fb ff 93 67 	calli 80014e0 <__ashlsi3>                      
 801c748:	ba 81 08 00 	or r1,r20,r1                                   
    shared->size.count = rtems_rfs_inode_get_block_count (&shared->inode);
 801c74c:	59 81 00 84 	sw (r12+132),r1                                
 * @return uint32_t The block offset.                                 
 */                                                                   
static inline uint16_t                                                
rtems_rfs_inode_get_block_offset (rtems_rfs_inode_handle* handle)     
{                                                                     
  return rtems_rfs_read_u16 (&handle->node->block_offset);            
 801c750:	41 a1 00 0a 	lbu r1,(r13+10)                                
 801c754:	34 02 00 08 	mvi r2,8                                       
 801c758:	fb ff 93 62 	calli 80014e0 <__ashlsi3>                      
 801c75c:	41 e2 00 01 	lbu r2,(r15+1)                                 
 * @return rtems_rfs_time The atime.                                  
 */                                                                   
static inline rtems_rfs_time                                          
rtems_rfs_inode_get_atime (rtems_rfs_inode_handle* handle)            
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->atime);                   
 801c760:	35 af 00 10 	addi r15,r13,16                                
 * @return uint32_t The block offset.                                 
 */                                                                   
static inline uint16_t                                                
rtems_rfs_inode_get_block_offset (rtems_rfs_inode_handle* handle)     
{                                                                     
  return rtems_rfs_read_u16 (&handle->node->block_offset);            
 801c764:	b8 22 08 00 	or r1,r1,r2                                    
    shared->size.offset = rtems_rfs_inode_get_block_offset (&shared->inode);
 801c768:	20 21 ff ff 	andi r1,r1,0xffff                              
 801c76c:	59 81 00 88 	sw (r12+136),r1                                
 * @return rtems_rfs_time The atime.                                  
 */                                                                   
static inline rtems_rfs_time                                          
rtems_rfs_inode_get_atime (rtems_rfs_inode_handle* handle)            
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->atime);                   
 801c770:	41 a1 00 10 	lbu r1,(r13+16)                                
 801c774:	41 f4 00 03 	lbu r20,(r15+3)                                
 801c778:	34 02 00 18 	mvi r2,24                                      
 801c77c:	fb ff 93 59 	calli 80014e0 <__ashlsi3>                      
 801c780:	ba 81 a0 00 	or r20,r20,r1                                  
 801c784:	41 e1 00 01 	lbu r1,(r15+1)                                 
 801c788:	34 02 00 10 	mvi r2,16                                      
 801c78c:	fb ff 93 55 	calli 80014e0 <__ashlsi3>                      
 801c790:	ba 81 a0 00 	or r20,r20,r1                                  
 801c794:	41 e1 00 02 	lbu r1,(r15+2)                                 
 801c798:	34 02 00 08 	mvi r2,8                                       
 * @return rtems_rfs_time The mtime.                                  
 */                                                                   
static inline rtems_rfs_time                                          
rtems_rfs_inode_get_mtime (rtems_rfs_inode_handle* handle)            
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->mtime);                   
 801c79c:	35 af 00 14 	addi r15,r13,20                                
 * @return rtems_rfs_time The atime.                                  
 */                                                                   
static inline rtems_rfs_time                                          
rtems_rfs_inode_get_atime (rtems_rfs_inode_handle* handle)            
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->atime);                   
 801c7a0:	fb ff 93 50 	calli 80014e0 <__ashlsi3>                      
 801c7a4:	ba 81 08 00 	or r1,r20,r1                                   
    shared->atime = rtems_rfs_inode_get_atime (&shared->inode);       
 801c7a8:	59 81 00 8c 	sw (r12+140),r1                                
 * @return rtems_rfs_time The mtime.                                  
 */                                                                   
static inline rtems_rfs_time                                          
rtems_rfs_inode_get_mtime (rtems_rfs_inode_handle* handle)            
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->mtime);                   
 801c7ac:	41 a1 00 14 	lbu r1,(r13+20)                                
 801c7b0:	41 f4 00 03 	lbu r20,(r15+3)                                
 801c7b4:	34 02 00 18 	mvi r2,24                                      
 801c7b8:	fb ff 93 4a 	calli 80014e0 <__ashlsi3>                      
 801c7bc:	ba 81 a0 00 	or r20,r20,r1                                  
 801c7c0:	41 e1 00 01 	lbu r1,(r15+1)                                 
 801c7c4:	34 02 00 10 	mvi r2,16                                      
 801c7c8:	fb ff 93 46 	calli 80014e0 <__ashlsi3>                      
 801c7cc:	ba 81 a0 00 	or r20,r20,r1                                  
 801c7d0:	41 e1 00 02 	lbu r1,(r15+2)                                 
 801c7d4:	34 02 00 08 	mvi r2,8                                       
 * @return rtems_rfs_time The ctime.                                  
 */                                                                   
static inline rtems_rfs_time                                          
rtems_rfs_inode_get_ctime (rtems_rfs_inode_handle* handle)            
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->ctime);                   
 801c7d8:	35 af 00 18 	addi r15,r13,24                                
 * @return rtems_rfs_time The mtime.                                  
 */                                                                   
static inline rtems_rfs_time                                          
rtems_rfs_inode_get_mtime (rtems_rfs_inode_handle* handle)            
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->mtime);                   
 801c7dc:	fb ff 93 41 	calli 80014e0 <__ashlsi3>                      
 801c7e0:	ba 81 08 00 	or r1,r20,r1                                   
    shared->mtime = rtems_rfs_inode_get_mtime (&shared->inode);       
 801c7e4:	59 81 00 90 	sw (r12+144),r1                                
 * @return rtems_rfs_time The ctime.                                  
 */                                                                   
static inline rtems_rfs_time                                          
rtems_rfs_inode_get_ctime (rtems_rfs_inode_handle* handle)            
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->ctime);                   
 801c7e8:	41 a1 00 18 	lbu r1,(r13+24)                                
 801c7ec:	41 f4 00 03 	lbu r20,(r15+3)                                
 801c7f0:	34 02 00 18 	mvi r2,24                                      
 801c7f4:	fb ff 93 3b 	calli 80014e0 <__ashlsi3>                      
 801c7f8:	ba 81 68 00 	or r13,r20,r1                                  
 801c7fc:	41 e1 00 01 	lbu r1,(r15+1)                                 
 801c800:	34 02 00 10 	mvi r2,16                                      
 801c804:	fb ff 93 37 	calli 80014e0 <__ashlsi3>                      
 801c808:	b9 a1 68 00 	or r13,r13,r1                                  
 801c80c:	41 e1 00 02 	lbu r1,(r15+2)                                 
 801c810:	34 02 00 08 	mvi r2,8                                       
 801c814:	fb ff 93 33 	calli 80014e0 <__ashlsi3>                      
 801c818:	b9 a1 08 00 	or r1,r13,r1                                   
    shared->ctime = rtems_rfs_inode_get_ctime (&shared->inode);       
 801c81c:	59 81 00 94 	sw (r12+148),r1                                
RTEMS_INLINE_ROUTINE void rtems_chain_append(                         
  rtems_chain_control *the_chain,                                     
  rtems_chain_node    *the_node                                       
)                                                                     
{                                                                     
  _Chain_Append( the_chain, the_node );                               
 801c820:	b9 80 10 00 	mv r2,r12                                      
 801c824:	35 c1 00 74 	addi r1,r14,116                                
    shared->fs = fs;                                                  
 801c828:	59 8e 00 98 	sw (r12+152),r14                               
 801c82c:	fb ff b5 38 	calli 8009d0c <_Chain_Append>                  
                                                                      
    rtems_chain_append (&fs->file_shares, &shared->link);             
                                                                      
    rtems_rfs_inode_unload (fs, &shared->inode, false);               
 801c830:	ba 20 10 00 	mv r2,r17                                      
 801c834:	b9 c0 08 00 	mv r1,r14                                      
 801c838:	34 03 00 00 	mvi r3,0                                       
 801c83c:	fb ff c9 67 	calli 800edd8 <rtems_rfs_inode_unload>         
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                  
 801c840:	34 01 00 08 	mvi r1,8                                       
 801c844:	34 02 00 00 	mvi r2,0                                       
 801c848:	fb ff d0 d7 	calli 8010ba4 <rtems_rfs_trace>                
 801c84c:	44 20 00 05 	be r1,r0,801c860 <rtems_rfs_file_open+0x314>   <== ALWAYS TAKEN
      printf ("rtems-rfs: file-open: ino=%" PRId32 " share created\n", ino);
 801c850:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801c854:	38 21 71 fc 	ori r1,r1,0x71fc                               <== NOT EXECUTED
 801c858:	ba 00 10 00 	mv r2,r16                                      <== NOT EXECUTED
 801c85c:	f8 00 12 c9 	calli 8021380 <printf>                         <== NOT EXECUTED
  }                                                                   
                                                                      
  handle->flags  = oflag;                                             
 801c860:	59 73 00 00 	sw (r11+0),r19                                 
  handle->shared = shared;                                            
 801c864:	59 6c 00 1c 	sw (r11+28),r12                                
                                                                      
  *file = handle;                                                     
 801c868:	5a 4b 00 00 	sw (r18+0),r11                                 
                                                                      
  return 0;                                                           
 801c86c:	34 0d 00 00 	mvi r13,0                                      
}                                                                     
 801c870:	b9 a0 08 00 	mv r1,r13                                      
 801c874:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801c878:	2b 8b 00 2c 	lw r11,(sp+44)                                 
 801c87c:	2b 8c 00 28 	lw r12,(sp+40)                                 
 801c880:	2b 8d 00 24 	lw r13,(sp+36)                                 
 801c884:	2b 8e 00 20 	lw r14,(sp+32)                                 
 801c888:	2b 8f 00 1c 	lw r15,(sp+28)                                 
 801c88c:	2b 90 00 18 	lw r16,(sp+24)                                 
 801c890:	2b 91 00 14 	lw r17,(sp+20)                                 
 801c894:	2b 92 00 10 	lw r18,(sp+16)                                 
 801c898:	2b 93 00 0c 	lw r19,(sp+12)                                 
 801c89c:	2b 94 00 08 	lw r20,(sp+8)                                  
 801c8a0:	37 9c 00 2c 	addi sp,sp,44                                  
 801c8a4:	c3 a0 00 00 	ret                                            
                                                                      

0801c0fc <rtems_rfs_file_seek>: int rtems_rfs_file_seek (rtems_rfs_file_handle* handle, rtems_rfs_pos pos, rtems_rfs_pos* new_pos) {
 801c0fc:	37 9c ff e4 	addi sp,sp,-28                                 
 801c100:	5b 8b 00 18 	sw (sp+24),r11                                 
 801c104:	5b 8c 00 14 	sw (sp+20),r12                                 
 801c108:	5b 8d 00 10 	sw (sp+16),r13                                 
 801c10c:	5b 8e 00 0c 	sw (sp+12),r14                                 
 801c110:	5b 8f 00 08 	sw (sp+8),r15                                  
 801c114:	5b 9d 00 04 	sw (sp+4),ra                                   
 801c118:	b8 20 58 00 	mv r11,r1                                      
 801c11c:	b8 40 60 00 	mv r12,r2                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
 801c120:	34 01 00 20 	mvi r1,32                                      
 801c124:	34 02 00 00 	mvi r2,0                                       
                                                                      
int                                                                   
rtems_rfs_file_seek (rtems_rfs_file_handle* handle,                   
                     rtems_rfs_pos          pos,                      
                     rtems_rfs_pos*         new_pos)                  
{                                                                     
 801c128:	b8 60 68 00 	mv r13,r3                                      
 801c12c:	b8 80 70 00 	mv r14,r4                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
 801c130:	fb ff d2 9d 	calli 8010ba4 <rtems_rfs_trace>                
 801c134:	44 20 00 06 	be r1,r0,801c14c <rtems_rfs_file_seek+0x50>    <== ALWAYS TAKEN
    printf ("rtems-rfs: file-seek: new=%" PRIu64 "\n", pos);          
 801c138:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801c13c:	38 21 71 00 	ori r1,r1,0x7100                               <== NOT EXECUTED
 801c140:	b9 80 10 00 	mv r2,r12                                      <== NOT EXECUTED
 801c144:	b9 a0 18 00 	mv r3,r13                                      <== NOT EXECUTED
 801c148:	f8 00 14 8e 	calli 8021380 <printf>                         <== NOT EXECUTED
   *     file, this function does not itself extend the size of the file."
   *                                                                  
   * This means the file needs to set the file size to the pos only when a
   * write occurs.                                                    
   */                                                                 
  if (pos <= rtems_rfs_file_shared_get_size (rtems_rfs_file_fs (handle),
 801c14c:	29 62 00 1c 	lw r2,(r11+28)                                 
 801c150:	28 41 00 98 	lw r1,(r2+152)                                 
 801c154:	34 42 00 84 	addi r2,r2,132                                 
 801c158:	fb ff f2 45 	calli 8018a6c <rtems_rfs_block_get_size>       
 801c15c:	55 81 00 1b 	bgu r12,r1,801c1c8 <rtems_rfs_file_seek+0xcc>  <== NEVER TAKEN
 801c160:	5d 81 00 02 	bne r12,r1,801c168 <rtems_rfs_file_seek+0x6c>  <== NEVER TAKEN
 801c164:	55 a2 00 19 	bgu r13,r2,801c1c8 <rtems_rfs_file_seek+0xcc>  
                                            handle->shared))          
  {                                                                   
    rtems_rfs_file_set_bpos (handle, pos);                            
 801c168:	29 61 00 1c 	lw r1,(r11+28)                                 
 801c16c:	35 6f 00 10 	addi r15,r11,16                                
 801c170:	b9 80 10 00 	mv r2,r12                                      
 801c174:	28 21 00 98 	lw r1,(r1+152)                                 
 801c178:	b9 a0 18 00 	mv r3,r13                                      
 801c17c:	b9 e0 20 00 	mv r4,r15                                      
 801c180:	fb ff f1 ed 	calli 8018934 <rtems_rfs_block_get_bpos>       
    /*                                                                
     * If the file has a block check if it maps to the current position and it
     * does not release it. That will force us to get the block at the new
     * position when the I/O starts.                                  
     */                                                               
    if (rtems_rfs_buffer_handle_has_block (&handle->buffer))          
 801c184:	29 61 00 0c 	lw r1,(r11+12)                                 
 801c188:	44 20 00 13 	be r1,r0,801c1d4 <rtems_rfs_file_seek+0xd8>    
    {                                                                 
      rtems_rfs_buffer_block block;                                   
      int                    rc;                                      
                                                                      
      rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),      
 801c18c:	29 62 00 1c 	lw r2,(r11+28)                                 
 801c190:	b9 e0 18 00 	mv r3,r15                                      
 801c194:	37 84 00 1c 	addi r4,sp,28                                  
 801c198:	28 41 00 98 	lw r1,(r2+152)                                 
 801c19c:	34 42 00 34 	addi r2,r2,52                                  
 801c1a0:	fb ff f3 70 	calli 8018f60 <rtems_rfs_block_map_find>       
                                     rtems_rfs_file_map (handle),     
                                     rtems_rfs_file_bpos (handle),    
                                     &block);                         
      if (rc > 0)                                                     
 801c1a4:	48 20 00 0f 	bg r1,r0,801c1e0 <rtems_rfs_file_seek+0xe4>    <== NEVER TAKEN
        return rc;                                                    
      if (rtems_rfs_buffer_bnum (&handle->buffer) != block)           
 801c1a8:	29 62 00 08 	lw r2,(r11+8)                                  
 801c1ac:	2b 81 00 1c 	lw r1,(sp+28)                                  
 801c1b0:	44 41 00 09 	be r2,r1,801c1d4 <rtems_rfs_file_seek+0xd8>    <== ALWAYS TAKEN
      {                                                               
        rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
 801c1b4:	29 61 00 1c 	lw r1,(r11+28)                                 <== NOT EXECUTED
 801c1b8:	35 62 00 04 	addi r2,r11,4                                  <== NOT EXECUTED
 801c1bc:	28 21 00 98 	lw r1,(r1+152)                                 <== NOT EXECUTED
 801c1c0:	fb ff f6 a0 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
 801c1c4:	e0 00 00 03 	bi 801c1d0 <rtems_rfs_file_seek+0xd4>          <== NOT EXECUTED
  {                                                                   
    /*                                                                
     * The seek is outside the current file so release any buffer. A write will
     * extend the file.                                               
     */                                                               
    int rc = rtems_rfs_file_io_release (handle);                      
 801c1c8:	b9 60 08 00 	mv r1,r11                                      
 801c1cc:	fb ff ff bf 	calli 801c0c8 <rtems_rfs_file_io_release>      
    if (rc > 0)                                                       
 801c1d0:	48 20 00 04 	bg r1,r0,801c1e0 <rtems_rfs_file_seek+0xe4>    <== NEVER TAKEN
      return rc;                                                      
  }                                                                   
                                                                      
  *new_pos = pos;                                                     
 801c1d4:	59 cc 00 00 	sw (r14+0),r12                                 
 801c1d8:	59 cd 00 04 	sw (r14+4),r13                                 
  return 0;                                                           
 801c1dc:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 801c1e0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801c1e4:	2b 8b 00 18 	lw r11,(sp+24)                                 
 801c1e8:	2b 8c 00 14 	lw r12,(sp+20)                                 
 801c1ec:	2b 8d 00 10 	lw r13,(sp+16)                                 
 801c1f0:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 801c1f4:	2b 8f 00 08 	lw r15,(sp+8)                                  
 801c1f8:	37 9c 00 1c 	addi sp,sp,28                                  
 801c1fc:	c3 a0 00 00 	ret                                            
                                                                      

0801c200 <rtems_rfs_file_set_size>: int rtems_rfs_file_set_size (rtems_rfs_file_handle* handle, rtems_rfs_pos new_size) {
 801c200:	37 9c ff bc 	addi sp,sp,-68                                 
 801c204:	5b 8b 00 34 	sw (sp+52),r11                                 
 801c208:	5b 8c 00 30 	sw (sp+48),r12                                 
 801c20c:	5b 8d 00 2c 	sw (sp+44),r13                                 
 801c210:	5b 8e 00 28 	sw (sp+40),r14                                 
 801c214:	5b 8f 00 24 	sw (sp+36),r15                                 
 801c218:	5b 90 00 20 	sw (sp+32),r16                                 
 801c21c:	5b 91 00 1c 	sw (sp+28),r17                                 
 801c220:	5b 92 00 18 	sw (sp+24),r18                                 
 801c224:	5b 93 00 14 	sw (sp+20),r19                                 
 801c228:	5b 94 00 10 	sw (sp+16),r20                                 
 801c22c:	5b 95 00 0c 	sw (sp+12),r21                                 
 801c230:	5b 96 00 08 	sw (sp+8),r22                                  
 801c234:	5b 9d 00 04 	sw (sp+4),ra                                   
 801c238:	b8 20 58 00 	mv r11,r1                                      
 801c23c:	b8 40 78 00 	mv r15,r2                                      
  rtems_rfs_block_map* map  = rtems_rfs_file_map (handle);            
 801c240:	28 2d 00 1c 	lw r13,(r1+28)                                 
  rtems_rfs_pos        size;                                          
  int                  rc;                                            
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
 801c244:	34 02 00 00 	mvi r2,0                                       
 801c248:	34 01 00 20 	mvi r1,32                                      
}                                                                     
                                                                      
int                                                                   
rtems_rfs_file_set_size (rtems_rfs_file_handle* handle,               
                         rtems_rfs_pos          new_size)             
{                                                                     
 801c24c:	b8 60 70 00 	mv r14,r3                                      
  rtems_rfs_block_map* map  = rtems_rfs_file_map (handle);            
  rtems_rfs_pos        size;                                          
  int                  rc;                                            
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
 801c250:	fb ff d2 55 	calli 8010ba4 <rtems_rfs_trace>                
 801c254:	44 20 00 06 	be r1,r0,801c26c <rtems_rfs_file_set_size+0x6c><== ALWAYS TAKEN
    printf ("rtems-rfs: file-set-size: size=%" PRIu64 "\n", new_size);
 801c258:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801c25c:	38 21 71 20 	ori r1,r1,0x7120                               <== NOT EXECUTED
 801c260:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
 801c264:	b9 c0 18 00 	mv r3,r14                                      <== NOT EXECUTED
 801c268:	f8 00 14 46 	calli 8021380 <printf>                         <== NOT EXECUTED
                                                                      
  size = rtems_rfs_file_size (handle);                                
 801c26c:	29 62 00 1c 	lw r2,(r11+28)                                 
 801c270:	28 41 00 98 	lw r1,(r2+152)                                 
 801c274:	34 42 00 84 	addi r2,r2,132                                 
 801c278:	fb ff f1 fd 	calli 8018a6c <rtems_rfs_block_get_size>       
 801c27c:	b8 40 80 00 	mv r16,r2                                      
  /*                                                                  
   * If the file is same size do nothing else grow or shrink it ?     
   *                                                                  
   * If the file does not change size do not update the times.        
   */                                                                 
  if (size != new_size)                                               
 801c280:	5c 2f 00 03 	bne r1,r15,801c28c <rtems_rfs_file_set_size+0x8c><== NEVER TAKEN
                                                                      
    if (rtems_rfs_file_update_mtime (handle))                         
      handle->shared->mtime = time (NULL);                            
  }                                                                   
                                                                      
  return 0;                                                           
 801c284:	34 0c 00 00 	mvi r12,0                                      
  /*                                                                  
   * If the file is same size do nothing else grow or shrink it ?     
   *                                                                  
   * If the file does not change size do not update the times.        
   */                                                                 
  if (size != new_size)                                               
 801c288:	44 4e 00 97 	be r2,r14,801c4e4 <rtems_rfs_file_set_size+0x2e4>
  {                                                                   
    /*                                                                
     * Short cut for the common truncate on open call.                
     */                                                               
    if (new_size == 0)                                                
 801c28c:	b9 ee 88 00 	or r17,r15,r14                                 
                                                                      
int                                                                   
rtems_rfs_file_set_size (rtems_rfs_file_handle* handle,               
                         rtems_rfs_pos          new_size)             
{                                                                     
  rtems_rfs_block_map* map  = rtems_rfs_file_map (handle);            
 801c290:	35 b2 00 34 	addi r18,r13,52                                
  if (size != new_size)                                               
  {                                                                   
    /*                                                                
     * Short cut for the common truncate on open call.                
     */                                                               
    if (new_size == 0)                                                
 801c294:	5e 20 00 08 	bne r17,r0,801c2b4 <rtems_rfs_file_set_size+0xb4>
    {                                                                 
      rc = rtems_rfs_block_map_free_all (rtems_rfs_file_fs (handle), map);
 801c298:	29 61 00 1c 	lw r1,(r11+28)                                 
 801c29c:	ba 40 10 00 	mv r2,r18                                      
 801c2a0:	28 21 00 98 	lw r1,(r1+152)                                 
 801c2a4:	fb ff f5 ec 	calli 8019a54 <rtems_rfs_block_map_free_all>   
 801c2a8:	b8 20 60 00 	mv r12,r1                                      
      if (rc > 0)                                                     
 801c2ac:	48 31 00 8e 	bg r1,r17,801c4e4 <rtems_rfs_file_set_size+0x2e4><== NEVER TAKEN
 801c2b0:	e0 00 00 82 	bi 801c4b8 <rtems_rfs_file_set_size+0x2b8>     
        return rc;                                                    
    }                                                                 
    else                                                              
    {                                                                 
      if (size < new_size)                                            
 801c2b4:	55 e1 00 04 	bgu r15,r1,801c2c4 <rtems_rfs_file_set_size+0xc4><== NEVER TAKEN
 801c2b8:	5d e1 00 54 	bne r15,r1,801c408 <rtems_rfs_file_set_size+0x208><== NEVER TAKEN
 801c2bc:	55 d0 00 02 	bgu r14,r16,801c2c4 <rtems_rfs_file_set_size+0xc4>
 801c2c0:	e0 00 00 52 	bi 801c408 <rtems_rfs_file_set_size+0x208>     
         */                                                           
        rtems_rfs_pos count;                                          
        uint32_t      length;                                         
        bool          read_block;                                     
                                                                      
        count = new_size - size;                                      
 801c2c4:	c9 e1 78 00 	sub r15,r15,r1                                 
        length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
 801c2c8:	29 61 00 1c 	lw r1,(r11+28)                                 
         */                                                           
        rtems_rfs_pos count;                                          
        uint32_t      length;                                         
        bool          read_block;                                     
                                                                      
        count = new_size - size;                                      
 801c2cc:	c9 d0 80 00 	sub r16,r14,r16                                
 801c2d0:	f6 0e 70 00 	cmpgu r14,r16,r14                              
        length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
 801c2d4:	28 21 00 98 	lw r1,(r1+152)                                 
         */                                                           
        rtems_rfs_pos count;                                          
        uint32_t      length;                                         
        bool          read_block;                                     
                                                                      
        count = new_size - size;                                      
 801c2d8:	c9 ee 70 00 	sub r14,r15,r14                                
        length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
        read_block = false;                                           
 801c2dc:	34 14 00 00 	mvi r20,0                                      
        rtems_rfs_pos count;                                          
        uint32_t      length;                                         
        bool          read_block;                                     
                                                                      
        count = new_size - size;                                      
        length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
 801c2e0:	28 31 00 08 	lw r17,(r1+8)                                  
           * Get the block position for the current end of the file as seen by
           * the map. If not found and the EOF grow the map then fill the block
           * with 0.                                                  
           */                                                         
          rtems_rfs_block_size_get_bpos (rtems_rfs_block_map_size (map), &bpos);
          rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),  
 801c2e4:	37 96 00 38 	addi r22,sp,56                                 
          if (rc > 0)                                                 
          {                                                           
            /*                                                        
             * Have we reached the EOF ?                              
             */                                                       
            if (rc != ENXIO)                                          
 801c2e8:	34 15 00 06 	mvi r21,6                                      
 801c2ec:	34 0f 00 01 	mvi r15,1                                      
          }                                                           
                                                                      
          /*                                                          
           * Only read the block if the length is not the block size. 
           */                                                         
          rc = rtems_rfs_buffer_handle_request (rtems_rfs_file_fs (handle),
 801c2f0:	35 73 00 04 	addi r19,r11,4                                 
                                                                      
        count = new_size - size;                                      
        length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
        read_block = false;                                           
                                                                      
        while (count)                                                 
 801c2f4:	e0 00 00 42 	bi 801c3fc <rtems_rfs_file_set_size+0x1fc>     
          /*                                                          
           * Get the block position for the current end of the file as seen by
           * the map. If not found and the EOF grow the map then fill the block
           * with 0.                                                  
           */                                                         
          rtems_rfs_block_size_get_bpos (rtems_rfs_block_map_size (map), &bpos);
 801c2f8:	29 a1 00 3c 	lw r1,(r13+60)                                 
 801c2fc:	29 a2 00 40 	lw r2,(r13+64)                                 
 801c300:	5b 80 00 40 	sw (sp+64),r0                                  
 801c304:	5b 81 00 38 	sw (sp+56),r1                                  
 801c308:	5b 82 00 3c 	sw (sp+60),r2                                  
 801c30c:	44 40 00 03 	be r2,r0,801c318 <rtems_rfs_file_set_size+0x118>
 801c310:	34 21 ff ff 	addi r1,r1,-1                                  
 801c314:	5b 81 00 38 	sw (sp+56),r1                                  
          rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),  
 801c318:	29 61 00 1c 	lw r1,(r11+28)                                 
 801c31c:	ba 40 10 00 	mv r2,r18                                      
 801c320:	ba c0 18 00 	mv r3,r22                                      
 801c324:	28 21 00 98 	lw r1,(r1+152)                                 
 801c328:	37 84 00 44 	addi r4,sp,68                                  
 801c32c:	fb ff f3 0d 	calli 8018f60 <rtems_rfs_block_map_find>       
 801c330:	b8 20 60 00 	mv r12,r1                                      
                                         map, &bpos, &block);         
          if (rc > 0)                                                 
 801c334:	4c 01 00 0a 	bge r0,r1,801c35c <rtems_rfs_file_set_size+0x15c>
          {                                                           
            /*                                                        
             * Have we reached the EOF ?                              
             */                                                       
            if (rc != ENXIO)                                          
 801c338:	5c 35 00 6b 	bne r1,r21,801c4e4 <rtems_rfs_file_set_size+0x2e4><== NEVER TAKEN
              return rc;                                              
                                                                      
            rc = rtems_rfs_block_map_grow (rtems_rfs_file_fs (handle),
 801c33c:	29 61 00 1c 	lw r1,(r11+28)                                 
 801c340:	ba 40 10 00 	mv r2,r18                                      
 801c344:	34 03 00 01 	mvi r3,1                                       
 801c348:	28 21 00 98 	lw r1,(r1+152)                                 
 801c34c:	37 84 00 44 	addi r4,sp,68                                  
 801c350:	fb ff f3 b5 	calli 8019224 <rtems_rfs_block_map_grow>       
 801c354:	b8 20 60 00 	mv r12,r1                                      
                                           map, 1, &block);           
            if (rc > 0)                                               
 801c358:	48 20 00 63 	bg r1,r0,801c4e4 <rtems_rfs_file_set_size+0x2e4><== NEVER TAKEN
              return rc;                                              
          }                                                           
                                                                      
          if (count < (length - bpos.boff))                           
 801c35c:	2b 81 00 3c 	lw r1,(sp+60)                                  
 801c360:	ca 21 10 00 	sub r2,r17,r1                                  
 801c364:	5c 0e 00 08 	bne r0,r14,801c384 <rtems_rfs_file_set_size+0x184><== NEVER TAKEN
 801c368:	54 50 00 02 	bgu r2,r16,801c370 <rtems_rfs_file_set_size+0x170>
 801c36c:	e0 00 00 06 	bi 801c384 <rtems_rfs_file_set_size+0x184>     
          {                                                           
            length = count + bpos.boff;                               
 801c370:	b4 30 88 00 	add r17,r1,r16                                 
 */                                                                   
static inline void                                                    
rtems_rfs_block_map_set_size_offset (rtems_rfs_block_map* map,        
                                     rtems_rfs_block_off  offset)     
{                                                                     
  map->size.offset = offset;                                          
 801c374:	59 b1 00 40 	sw (r13+64),r17                                
  map->dirty = true;                                                  
 801c378:	31 af 00 34 	sb (r13+52),r15                                
            read_block = true;                                        
 801c37c:	34 14 00 01 	mvi r20,1                                      
 801c380:	e0 00 00 03 	bi 801c38c <rtems_rfs_file_set_size+0x18c>     
 */                                                                   
static inline void                                                    
rtems_rfs_block_map_set_size_offset (rtems_rfs_block_map* map,        
                                     rtems_rfs_block_off  offset)     
{                                                                     
  map->size.offset = offset;                                          
 801c384:	59 a0 00 40 	sw (r13+64),r0                                 
  map->dirty = true;                                                  
 801c388:	31 af 00 34 	sb (r13+52),r15                                
          }                                                           
                                                                      
          /*                                                          
           * Only read the block if the length is not the block size. 
           */                                                         
          rc = rtems_rfs_buffer_handle_request (rtems_rfs_file_fs (handle),
 801c38c:	29 61 00 1c 	lw r1,(r11+28)                                 
 801c390:	2b 83 00 44 	lw r3,(sp+68)                                  
 801c394:	ba 60 10 00 	mv r2,r19                                      
 801c398:	28 21 00 98 	lw r1,(r1+152)                                 
 801c39c:	ba 80 20 00 	mv r4,r20                                      
 801c3a0:	fb ff f6 97 	calli 8019dfc <rtems_rfs_buffer_handle_request>
 801c3a4:	b8 20 60 00 	mv r12,r1                                      
                                                rtems_rfs_file_buffer (handle),
                                                block, read_block);   
          if (rc > 0)                                                 
 801c3a8:	48 20 00 4f 	bg r1,r0,801c4e4 <rtems_rfs_file_set_size+0x2e4><== NEVER TAKEN
            return rc;                                                
                                                                      
          dst = rtems_rfs_buffer_data (&handle->buffer);              
 801c3ac:	29 61 00 0c 	lw r1,(r11+12)                                 
          memset (dst + bpos.boff, 0, length - bpos.boff);            
 801c3b0:	2b 84 00 3c 	lw r4,(sp+60)                                  
 801c3b4:	34 02 00 00 	mvi r2,0                                       
 801c3b8:	28 21 00 1c 	lw r1,(r1+28)                                  
 801c3bc:	ca 24 18 00 	sub r3,r17,r4                                  
 801c3c0:	b4 24 08 00 	add r1,r1,r4                                   
 801c3c4:	f8 00 13 53 	calli 8021110 <memset>                         
                                                                      
          rtems_rfs_buffer_mark_dirty (rtems_rfs_file_buffer (handle));
                                                                      
          rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
 801c3c8:	29 61 00 1c 	lw r1,(r11+28)                                 
            return rc;                                                
                                                                      
          dst = rtems_rfs_buffer_data (&handle->buffer);              
          memset (dst + bpos.boff, 0, length - bpos.boff);            
                                                                      
          rtems_rfs_buffer_mark_dirty (rtems_rfs_file_buffer (handle));
 801c3cc:	31 6f 00 04 	sb (r11+4),r15                                 
                                                                      
          rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
 801c3d0:	ba 60 10 00 	mv r2,r19                                      
 801c3d4:	28 21 00 98 	lw r1,(r1+152)                                 
 801c3d8:	fb ff f6 1a 	calli 8019c40 <rtems_rfs_buffer_handle_release>
 801c3dc:	b8 20 60 00 	mv r12,r1                                      
                                                rtems_rfs_file_buffer (handle));
          if (rc > 0)                                                 
 801c3e0:	48 20 00 41 	bg r1,r0,801c4e4 <rtems_rfs_file_set_size+0x2e4><== NEVER TAKEN
            return rc;                                                
                                                                      
          count -= length - bpos.boff;                                
 801c3e4:	2b 81 00 3c 	lw r1,(sp+60)                                  
 801c3e8:	ca 21 08 00 	sub r1,r17,r1                                  
 801c3ec:	ca 01 08 00 	sub r1,r16,r1                                  
 801c3f0:	f4 30 80 00 	cmpgu r16,r1,r16                               
 801c3f4:	c9 d0 70 00 	sub r14,r14,r16                                
 801c3f8:	b8 20 80 00 	mv r16,r1                                      
                                                                      
        count = new_size - size;                                      
        length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
        read_block = false;                                           
                                                                      
        while (count)                                                 
 801c3fc:	b9 d0 08 00 	or r1,r14,r16                                  
 801c400:	5c 20 ff be 	bne r1,r0,801c2f8 <rtems_rfs_file_set_size+0xf8>
 801c404:	e0 00 00 2d 	bi 801c4b8 <rtems_rfs_file_set_size+0x2b8>     
        uint32_t           offset;                                    
                                                                      
        blocks =                                                      
          rtems_rfs_block_map_count (map) -                           
          (((new_size - 1) /                                          
            rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle))) + 1);
 801c408:	29 6c 00 1c 	lw r12,(r11+28)                                
        rtems_rfs_block_no blocks;                                    
        uint32_t           offset;                                    
                                                                      
        blocks =                                                      
          rtems_rfs_block_map_count (map) -                           
          (((new_size - 1) /                                          
 801c40c:	35 c2 ff ff 	addi r2,r14,-1                                 
 801c410:	f5 c2 18 00 	cmpgu r3,r14,r2                                
            rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle))) + 1);
 801c414:	29 91 00 98 	lw r17,(r12+152)                               
        rtems_rfs_block_no blocks;                                    
        uint32_t           offset;                                    
                                                                      
        blocks =                                                      
          rtems_rfs_block_map_count (map) -                           
          (((new_size - 1) /                                          
 801c418:	35 e1 ff ff 	addi r1,r15,-1                                 
 801c41c:	b4 61 08 00 	add r1,r3,r1                                   
 801c420:	2a 30 00 08 	lw r16,(r17+8)                                 
 801c424:	34 03 00 00 	mvi r3,0                                       
 801c428:	ba 00 20 00 	mv r4,r16                                      
 801c42c:	f8 00 49 c3 	calli 802eb38 <__udivdi3>                      
         * Shrink                                                     
         */                                                           
        rtems_rfs_block_no blocks;                                    
        uint32_t           offset;                                    
                                                                      
        blocks =                                                      
 801c430:	29 a3 00 3c 	lw r3,(r13+60)                                 
 801c434:	a4 40 10 00 	not r2,r2                                      
 801c438:	b4 43 18 00 	add r3,r2,r3                                   
            rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle))) + 1);
                                                                      
        offset =                                                      
          new_size % rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
                                                                      
        if (blocks)                                                   
 801c43c:	44 60 00 06 	be r3,r0,801c454 <rtems_rfs_file_set_size+0x254>
        {                                                             
          int rc;                                                     
          rc = rtems_rfs_block_map_shrink (rtems_rfs_file_fs (handle),
 801c440:	35 82 00 34 	addi r2,r12,52                                 
 801c444:	ba 20 08 00 	mv r1,r17                                      
 801c448:	fb ff f4 93 	calli 8019694 <rtems_rfs_block_map_shrink>     
 801c44c:	b8 20 60 00 	mv r12,r1                                      
                                           rtems_rfs_file_map (handle),
                                           blocks);                   
          if (rc > 0)                                                 
 801c450:	48 20 00 25 	bg r1,r0,801c4e4 <rtems_rfs_file_set_size+0x2e4><== NEVER TAKEN
          rtems_rfs_block_map_count (map) -                           
          (((new_size - 1) /                                          
            rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle))) + 1);
                                                                      
        offset =                                                      
          new_size % rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
 801c454:	b9 e0 08 00 	mv r1,r15                                      
 801c458:	b9 c0 10 00 	mv r2,r14                                      
 801c45c:	34 03 00 00 	mvi r3,0                                       
 801c460:	ba 00 20 00 	mv r4,r16                                      
 801c464:	f8 00 4b a3 	calli 802f2f0 <__umoddi3>                      
 801c468:	34 01 00 01 	mvi r1,1                                       
 801c46c:	31 a1 00 34 	sb (r13+52),r1                                 
            return rc;                                                
        }                                                             
                                                                      
        rtems_rfs_block_map_set_size_offset (map, offset);            
                                                                      
        if (rtems_rfs_block_pos_past_end (rtems_rfs_file_bpos (handle),
 801c470:	29 61 00 10 	lw r1,(r11+16)                                 
 */                                                                   
static inline void                                                    
rtems_rfs_block_map_set_size_offset (rtems_rfs_block_map* map,        
                                     rtems_rfs_block_off  offset)     
{                                                                     
  map->size.offset = offset;                                          
 801c474:	59 a2 00 40 	sw (r13+64),r2                                 
 801c478:	44 20 00 03 	be r1,r0,801c484 <rtems_rfs_file_set_size+0x284>
 801c47c:	29 a3 00 3c 	lw r3,(r13+60)                                 
 801c480:	44 60 00 07 	be r3,r0,801c49c <rtems_rfs_file_set_size+0x29c><== NEVER TAKEN
 801c484:	29 a3 00 3c 	lw r3,(r13+60)                                 
 801c488:	50 23 00 05 	bgeu r1,r3,801c49c <rtems_rfs_file_set_size+0x29c><== NEVER TAKEN
 801c48c:	34 63 ff ff 	addi r3,r3,-1                                  
 801c490:	5c 23 00 0a 	bne r1,r3,801c4b8 <rtems_rfs_file_set_size+0x2b8><== NEVER TAKEN
 801c494:	29 61 00 14 	lw r1,(r11+20)                                 
 801c498:	50 41 00 08 	bgeu r2,r1,801c4b8 <rtems_rfs_file_set_size+0x2b8>
                                          rtems_rfs_block_map_size (map)))
          rtems_rfs_block_size_get_bpos (rtems_rfs_block_map_size (map),
 801c49c:	29 a1 00 3c 	lw r1,(r13+60)                                 
 801c4a0:	59 62 00 14 	sw (r11+20),r2                                 
 801c4a4:	59 60 00 18 	sw (r11+24),r0                                 
 801c4a8:	59 61 00 10 	sw (r11+16),r1                                 
 801c4ac:	44 40 00 03 	be r2,r0,801c4b8 <rtems_rfs_file_set_size+0x2b8><== NEVER TAKEN
 801c4b0:	34 21 ff ff 	addi r1,r1,-1                                  
 801c4b4:	59 61 00 10 	sw (r11+16),r1                                 
                                         rtems_rfs_file_bpos (handle));
      }                                                               
    }                                                                 
                                                                      
    handle->shared->size.count  = rtems_rfs_block_map_count (map);    
 801c4b8:	29 6e 00 1c 	lw r14,(r11+28)                                
 801c4bc:	29 a1 00 3c 	lw r1,(r13+60)                                 
                                                                      
    if (rtems_rfs_file_update_mtime (handle))                         
      handle->shared->mtime = time (NULL);                            
  }                                                                   
                                                                      
  return 0;                                                           
 801c4c0:	34 0c 00 00 	mvi r12,0                                      
          rtems_rfs_block_size_get_bpos (rtems_rfs_block_map_size (map),
                                         rtems_rfs_file_bpos (handle));
      }                                                               
    }                                                                 
                                                                      
    handle->shared->size.count  = rtems_rfs_block_map_count (map);    
 801c4c4:	59 c1 00 84 	sw (r14+132),r1                                
    handle->shared->size.offset = rtems_rfs_block_map_size_offset (map);
 801c4c8:	29 a1 00 40 	lw r1,(r13+64)                                 
 801c4cc:	59 c1 00 88 	sw (r14+136),r1                                
                                                                      
    if (rtems_rfs_file_update_mtime (handle))                         
 801c4d0:	29 61 00 00 	lw r1,(r11+0)                                  
 801c4d4:	20 21 00 02 	andi r1,r1,0x2                                 
 801c4d8:	5c 20 00 03 	bne r1,r0,801c4e4 <rtems_rfs_file_set_size+0x2e4><== NEVER TAKEN
      handle->shared->mtime = time (NULL);                            
 801c4dc:	f8 00 23 65 	calli 8025270 <time>                           
 801c4e0:	59 c1 00 90 	sw (r14+144),r1                                
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 801c4e4:	b9 80 08 00 	mv r1,r12                                      
 801c4e8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801c4ec:	2b 8b 00 34 	lw r11,(sp+52)                                 
 801c4f0:	2b 8c 00 30 	lw r12,(sp+48)                                 
 801c4f4:	2b 8d 00 2c 	lw r13,(sp+44)                                 
 801c4f8:	2b 8e 00 28 	lw r14,(sp+40)                                 
 801c4fc:	2b 8f 00 24 	lw r15,(sp+36)                                 
 801c500:	2b 90 00 20 	lw r16,(sp+32)                                 
 801c504:	2b 91 00 1c 	lw r17,(sp+28)                                 
 801c508:	2b 92 00 18 	lw r18,(sp+24)                                 
 801c50c:	2b 93 00 14 	lw r19,(sp+20)                                 
 801c510:	2b 94 00 10 	lw r20,(sp+16)                                 
 801c514:	2b 95 00 0c 	lw r21,(sp+12)                                 
 801c518:	2b 96 00 08 	lw r22,(sp+8)                                  
 801c51c:	37 9c 00 44 	addi sp,sp,68                                  
 801c520:	c3 a0 00 00 	ret                                            
                                                                      

0800d698 <rtems_rfs_format>: return rc; } int rtems_rfs_format (const char* name, const rtems_rfs_format_config* config) {
 800d698:	37 9c fe e0 	addi sp,sp,-288                                
 800d69c:	5b 8b 00 44 	sw (sp+68),r11                                 
 800d6a0:	5b 8c 00 40 	sw (sp+64),r12                                 
 800d6a4:	5b 8d 00 3c 	sw (sp+60),r13                                 
 800d6a8:	5b 8e 00 38 	sw (sp+56),r14                                 
 800d6ac:	5b 8f 00 34 	sw (sp+52),r15                                 
 800d6b0:	5b 90 00 30 	sw (sp+48),r16                                 
 800d6b4:	5b 91 00 2c 	sw (sp+44),r17                                 
 800d6b8:	5b 92 00 28 	sw (sp+40),r18                                 
 800d6bc:	5b 93 00 24 	sw (sp+36),r19                                 
 800d6c0:	5b 94 00 20 	sw (sp+32),r20                                 
 800d6c4:	5b 95 00 1c 	sw (sp+28),r21                                 
 800d6c8:	5b 96 00 18 	sw (sp+24),r22                                 
 800d6cc:	5b 97 00 14 	sw (sp+20),r23                                 
 800d6d0:	5b 98 00 10 	sw (sp+16),r24                                 
 800d6d4:	5b 99 00 0c 	sw (sp+12),r25                                 
 800d6d8:	5b 9b 00 08 	sw (sp+8),fp                                   
 800d6dc:	5b 9d 00 04 	sw (sp+4),ra                                   
 800d6e0:	b8 20 a0 00 	mv r20,r1                                      
  rtems_rfs_file_system fs;                                           
  int                   group;                                        
  int                   rc;                                           
                                                                      
  if (config->verbose)                                                
 800d6e4:	40 41 00 15 	lbu r1,(r2+21)                                 
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_format (const char* name, const rtems_rfs_format_config* config)
{                                                                     
 800d6e8:	b8 40 60 00 	mv r12,r2                                      
  rtems_rfs_file_system fs;                                           
  int                   group;                                        
  int                   rc;                                           
                                                                      
  if (config->verbose)                                                
 800d6ec:	44 20 00 05 	be r1,r0,800d700 <rtems_rfs_format+0x68>       <== ALWAYS TAKEN
    printf ("rtems-rfs: format: %s\n", name);                         
 800d6f0:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800d6f4:	38 21 4b 20 	ori r1,r1,0x4b20                               <== NOT EXECUTED
 800d6f8:	ba 80 10 00 	mv r2,r20                                      <== NOT EXECUTED
 800d6fc:	f8 00 4f 21 	calli 8021380 <printf>                         <== NOT EXECUTED
                                                                      
  memset (&fs, 0, sizeof (rtems_rfs_file_system));                    
 800d700:	37 8d 00 4c 	addi r13,sp,76                                 
 800d704:	34 02 00 00 	mvi r2,0                                       
 800d708:	34 03 00 84 	mvi r3,132                                     
 800d70c:	b9 a0 08 00 	mv r1,r13                                      
 800d710:	f8 00 4e 80 	calli 8021110 <memset>                         
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 800d714:	37 81 00 94 	addi r1,sp,148                                 
 800d718:	5b 81 00 90 	sw (sp+144),r1                                 
  head->previous = NULL;                                              
  tail->previous = head;                                              
 800d71c:	37 81 00 90 	addi r1,sp,144                                 
 800d720:	5b 81 00 98 	sw (sp+152),r1                                 
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 800d724:	37 81 00 a4 	addi r1,sp,164                                 
 800d728:	5b 81 00 a0 	sw (sp+160),r1                                 
  head->previous = NULL;                                              
  tail->previous = head;                                              
 800d72c:	37 81 00 a0 	addi r1,sp,160                                 
 800d730:	5b 81 00 a8 	sw (sp+168),r1                                 
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 800d734:	37 81 00 b4 	addi r1,sp,180                                 
 800d738:	5b 81 00 b0 	sw (sp+176),r1                                 
  head->previous = NULL;                                              
  tail->previous = head;                                              
 800d73c:	37 81 00 b0 	addi r1,sp,176                                 
 800d740:	5b 81 00 b8 	sw (sp+184),r1                                 
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
 800d744:	37 81 00 c4 	addi r1,sp,196                                 
 800d748:	5b 81 00 c0 	sw (sp+192),r1                                 
  head->previous = NULL;                                              
  tail->previous = head;                                              
 800d74c:	37 81 00 c0 	addi r1,sp,192                                 
 800d750:	5b 81 00 c8 	sw (sp+200),r1                                 
  rtems_chain_initialize_empty (&fs.buffers);                         
  rtems_chain_initialize_empty (&fs.release);                         
  rtems_chain_initialize_empty (&fs.release_modified);                
  rtems_chain_initialize_empty (&fs.file_shares);                     
                                                                      
  fs.max_held_buffers = RTEMS_RFS_FS_MAX_HELD_BUFFERS;                
 800d754:	34 01 00 05 	mvi r1,5                                       
 800d758:	5b 81 00 8c 	sw (sp+140),r1                                 
                                                                      
  fs.release_count = 0;                                               
  fs.release_modified_count = 0;                                      
                                                                      
  fs.flags = RTEMS_RFS_FS_NO_LOCAL_CACHE;                             
 800d75c:	34 01 00 02 	mvi r1,2                                       
 800d760:	5b 81 00 4c 	sw (sp+76),r1                                  
                                                                      
  /*                                                                  
   * Open the buffer interface.                                       
   */                                                                 
  rc = rtems_rfs_buffer_open (name, &fs);                             
 800d764:	b9 a0 10 00 	mv r2,r13                                      
 800d768:	ba 80 08 00 	mv r1,r20                                      
 800d76c:	f8 00 32 3e 	calli 801a064 <rtems_rfs_buffer_open>          
 800d770:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 800d774:	4c 01 00 06 	bge r0,r1,800d78c <rtems_rfs_format+0xf4>      <== ALWAYS TAKEN
  {                                                                   
    printf ("rtems-rfs: format: buffer open failed: %d: %s\n",        
 800d778:	f8 00 53 bd 	calli 802266c <strerror>                       <== NOT EXECUTED
 800d77c:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 800d780:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800d784:	38 21 4b 38 	ori r1,r1,0x4b38                               <== NOT EXECUTED
 800d788:	e0 00 02 f5 	bi 800e35c <rtems_rfs_format+0xcc4>            <== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   * Check the media.                                                 
   */                                                                 
  if (rtems_rfs_fs_media_block_size (&fs) == 0)                       
 800d78c:	2b 81 00 5c 	lw r1,(sp+92)                                  
 800d790:	28 21 00 20 	lw r1,(r1+32)                                  
 800d794:	5c 20 00 05 	bne r1,r0,800d7a8 <rtems_rfs_format+0x110>     <== ALWAYS TAKEN
  {                                                                   
    printf ("rtems-rfs: media block is invalid: %" PRIu32 "\n",       
 800d798:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800d79c:	38 21 4b 68 	ori r1,r1,0x4b68                               <== NOT EXECUTED
 800d7a0:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 800d7a4:	e0 00 01 9a 	bi 800de0c <rtems_rfs_format+0x774>            <== NOT EXECUTED
                                                                      
static bool                                                           
rtems_rfs_check_config (rtems_rfs_file_system*         fs,            
                        const rtems_rfs_format_config* config)        
{                                                                     
  fs->block_size = config->block_size;                                
 800d7a8:	29 8b 00 00 	lw r11,(r12+0)                                 
 800d7ac:	5b 8b 00 54 	sw (sp+84),r11                                 
  if (!fs->block_size)                                                
 800d7b0:	5d 60 00 26 	bne r11,r0,800d848 <rtems_rfs_format+0x1b0>    
  {                                                                   
    uint64_t total_size = rtems_rfs_fs_media_size (fs);               
 800d7b4:	b9 a0 08 00 	mv r1,r13                                      
 800d7b8:	f8 00 3c 47 	calli 801c8d4 <rtems_rfs_fs_media_size>        
 800d7bc:	b8 40 18 00 	mv r3,r2                                       
                                                                      
    if (total_size >= GIGS (1))                                       
 800d7c0:	5c 2b 00 06 	bne r1,r11,800d7d8 <rtems_rfs_format+0x140>    <== NEVER TAKEN
 800d7c4:	78 04 08 03 	mvhi r4,0x803                                  
 800d7c8:	38 84 53 3c 	ori r4,r4,0x533c                               
 800d7cc:	28 82 00 00 	lw r2,(r4+0)                                   
 800d7d0:	54 62 00 02 	bgu r3,r2,800d7d8 <rtems_rfs_format+0x140>     <== NEVER TAKEN
 800d7d4:	e0 00 00 14 	bi 800d824 <rtems_rfs_format+0x18c>            
    {                                                                 
      uint32_t gigs = (total_size + GIGS (1)) / GIGS (1);             
 800d7d8:	78 02 00 10 	mvhi r2,0x10                                   <== NOT EXECUTED
 800d7dc:	b4 62 10 00 	add r2,r3,r2                                   <== NOT EXECUTED
 800d7e0:	f4 62 18 00 	cmpgu r3,r3,r2                                 <== NOT EXECUTED
      int      b;                                                     
      for (b = 31; b > 0; b--)                                        
 800d7e4:	34 0b 00 1f 	mvi r11,31                                     <== NOT EXECUTED
  {                                                                   
    uint64_t total_size = rtems_rfs_fs_media_size (fs);               
                                                                      
    if (total_size >= GIGS (1))                                       
    {                                                                 
      uint32_t gigs = (total_size + GIGS (1)) / GIGS (1);             
 800d7e8:	b4 61 08 00 	add r1,r3,r1                                   <== NOT EXECUTED
 800d7ec:	34 03 00 14 	mvi r3,20                                      <== NOT EXECUTED
 800d7f0:	f8 00 80 81 	calli 802d9f4 <__lshrdi3>                      <== NOT EXECUTED
 800d7f4:	b8 40 68 00 	mv r13,r2                                      <== NOT EXECUTED
      int      b;                                                     
      for (b = 31; b > 0; b--)                                        
        if ((gigs & (1 << b)) != 0)                                   
 800d7f8:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
 800d7fc:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 800d800:	fb ff cf 38 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 800d804:	a0 2d 08 00 	and r1,r1,r13                                  <== NOT EXECUTED
 800d808:	5c 20 00 03 	bne r1,r0,800d814 <rtems_rfs_format+0x17c>     <== NOT EXECUTED
                                                                      
    if (total_size >= GIGS (1))                                       
    {                                                                 
      uint32_t gigs = (total_size + GIGS (1)) / GIGS (1);             
      int      b;                                                     
      for (b = 31; b > 0; b--)                                        
 800d80c:	35 6b ff ff 	addi r11,r11,-1                                <== NOT EXECUTED
 800d810:	5d 61 ff fa 	bne r11,r1,800d7f8 <rtems_rfs_format+0x160>    <== NOT EXECUTED
        if ((gigs & (1 << b)) != 0)                                   
          break;                                                      
      fs->block_size = 1 << b;                                        
 800d814:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
 800d818:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 800d81c:	fb ff cf 31 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 800d820:	5b 81 00 54 	sw (sp+84),r1                                  <== NOT EXECUTED
    }                                                                 
                                                                      
    if (fs->block_size < 512)                                         
 800d824:	2b 82 00 54 	lw r2,(sp+84)                                  
 800d828:	34 01 01 ff 	mvi r1,511                                     
 800d82c:	54 41 00 03 	bgu r2,r1,800d838 <rtems_rfs_format+0x1a0>     <== NEVER TAKEN
      fs->block_size = 512;                                           
 800d830:	34 01 02 00 	mvi r1,512                                     
 800d834:	5b 81 00 54 	sw (sp+84),r1                                  
                                                                      
    if (fs->block_size > (4 * 1024))                                  
 800d838:	2b 82 00 54 	lw r2,(sp+84)                                  
 800d83c:	34 01 10 00 	mvi r1,4096                                    
 800d840:	50 22 00 02 	bgeu r1,r2,800d848 <rtems_rfs_format+0x1b0>    <== ALWAYS TAKEN
      fs->block_size = (4 * 1024);                                    
 800d844:	5b 81 00 54 	sw (sp+84),r1                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  if ((fs->block_size % rtems_rfs_fs_media_block_size (fs)) != 0)     
 800d848:	2b 81 00 5c 	lw r1,(sp+92)                                  
 800d84c:	2b 8b 00 54 	lw r11,(sp+84)                                 
 800d850:	28 2d 00 20 	lw r13,(r1+32)                                 
 800d854:	b9 60 08 00 	mv r1,r11                                      
 800d858:	b9 a0 10 00 	mv r2,r13                                      
 800d85c:	f8 00 95 ed 	calli 8033010 <__umodsi3>                      
 800d860:	44 20 00 06 	be r1,r0,800d878 <rtems_rfs_format+0x1e0>      <== ALWAYS TAKEN
  {                                                                   
    printf ("block size (%zd) is not a multiple of media block size (%" PRId32 ")\n",
 800d864:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800d868:	38 21 4b 90 	ori r1,r1,0x4b90                               <== NOT EXECUTED
 800d86c:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 800d870:	b9 a0 18 00 	mv r3,r13                                      <== NOT EXECUTED
 800d874:	e0 00 02 bb 	bi 800e360 <rtems_rfs_format+0xcc8>            <== NOT EXECUTED
            fs->block_size, rtems_rfs_fs_media_block_size (fs));      
    return false;                                                     
  }                                                                   
                                                                      
  fs->group_blocks = config->group_blocks;                            
 800d878:	29 82 00 04 	lw r2,(r12+4)                                  
 800d87c:	5b 82 00 74 	sw (sp+116),r2                                 
  if (!fs->group_blocks)                                              
 800d880:	5c 41 00 05 	bne r2,r1,800d894 <rtems_rfs_format+0x1fc>     <== NEVER TAKEN
  {                                                                   
    /*                                                                
     * The number of blocks per group is defined by the number of bits in a
     * block.                                                         
     */                                                               
    fs->group_blocks = rtems_rfs_bitmap_numof_bits (fs->block_size);  
 800d884:	b9 60 08 00 	mv r1,r11                                      
 800d888:	34 02 00 03 	mvi r2,3                                       
 800d88c:	fb ff cf 15 	calli 80014e0 <__ashlsi3>                      
 800d890:	5b 81 00 74 	sw (sp+116),r1                                 
  }                                                                   
                                                                      
  if (fs->group_blocks > rtems_rfs_bitmap_numof_bits (fs->block_size))
 800d894:	34 02 00 03 	mvi r2,3                                       
 800d898:	b9 60 08 00 	mv r1,r11                                      
 800d89c:	fb ff cf 11 	calli 80014e0 <__ashlsi3>                      
 800d8a0:	2b 82 00 74 	lw r2,(sp+116)                                 
 800d8a4:	50 22 00 04 	bgeu r1,r2,800d8b4 <rtems_rfs_format+0x21c>    <== ALWAYS TAKEN
  {                                                                   
    printf ("group block count is higher than bits in block\n");      
 800d8a8:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800d8ac:	38 21 4b d0 	ori r1,r1,0x4bd0                               <== NOT EXECUTED
 800d8b0:	e0 00 01 48 	bi 800ddd0 <rtems_rfs_format+0x738>            <== NOT EXECUTED
    return false;                                                     
  }                                                                   
                                                                      
  fs->blocks = rtems_rfs_fs_media_size (fs) / fs->block_size;         
 800d8b4:	37 81 00 4c 	addi r1,sp,76                                  
 800d8b8:	f8 00 3c 07 	calli 801c8d4 <rtems_rfs_fs_media_size>        
 800d8bc:	2b 8b 00 54 	lw r11,(sp+84)                                 
 800d8c0:	34 03 00 00 	mvi r3,0                                       
 800d8c4:	b9 60 20 00 	mv r4,r11                                      
 800d8c8:	f8 00 84 9c 	calli 802eb38 <__udivdi3>                      
 800d8cc:	b8 40 70 00 	mv r14,r2                                      
 800d8d0:	5b 82 00 50 	sw (sp+80),r2                                  
 * Return the number of bits that fit in the block size.              
 */                                                                   
static int                                                            
rtems_rfs_bits_per_block (rtems_rfs_file_system* fs)                  
{                                                                     
  return rtems_rfs_bitmap_numof_bits (rtems_rfs_fs_block_size (fs));  
 800d8d4:	b9 60 08 00 	mv r1,r11                                      
 800d8d8:	34 02 00 03 	mvi r2,3                                       
 800d8dc:	fb ff cf 01 	calli 80014e0 <__ashlsi3>                      
 800d8e0:	b8 20 68 00 	mv r13,r1                                      
  /*                                                                  
   * The bits per block sets the upper limit for the number of blocks in a
   * group. The disk will be divided into groups which are the number of bits
   * per block.                                                       
   */                                                                 
  fs->group_count = rtems_rfs_rup_quotient (rtems_rfs_fs_blocks (fs), 
 800d8e4:	b9 a0 10 00 	mv r2,r13                                      
 800d8e8:	b9 c0 08 00 	mv r1,r14                                      
 800d8ec:	fb ff ff 41 	calli 800d5f0 <rtems_rfs_rup_quotient>         
                                            rtems_rfs_bits_per_block (fs));
                                                                      
  fs->group_inodes = config->group_inodes;                            
 800d8f0:	29 84 00 08 	lw r4,(r12+8)                                  
  /*                                                                  
   * The bits per block sets the upper limit for the number of blocks in a
   * group. The disk will be divided into groups which are the number of bits
   * per block.                                                       
   */                                                                 
  fs->group_count = rtems_rfs_rup_quotient (rtems_rfs_fs_blocks (fs), 
 800d8f4:	5b 81 00 70 	sw (sp+112),r1                                 
 800d8f8:	b8 20 78 00 	mv r15,r1                                      
                                            rtems_rfs_bits_per_block (fs));
                                                                      
  fs->group_inodes = config->group_inodes;                            
 800d8fc:	5b 84 00 78 	sw (sp+120),r4                                 
  if (!fs->group_inodes)                                              
 800d900:	5c 80 00 13 	bne r4,r0,800d94c <rtems_rfs_format+0x2b4>     <== NEVER TAKEN
    int inode_overhead = RTEMS_RFS_INODE_OVERHEAD_PERCENTAGE;         
                                                                      
    /*                                                                
     * The number of inodes per group is set as a percentage.         
     */                                                               
    if (config->inode_overhead)                                       
 800d904:	29 83 00 0c 	lw r3,(r12+12)                                 
 800d908:	5c 64 00 02 	bne r3,r4,800d910 <rtems_rfs_format+0x278>     <== NEVER TAKEN
                                            rtems_rfs_bits_per_block (fs));
                                                                      
  fs->group_inodes = config->group_inodes;                            
  if (!fs->group_inodes)                                              
  {                                                                   
    int inode_overhead = RTEMS_RFS_INODE_OVERHEAD_PERCENTAGE;         
 800d90c:	34 03 00 01 	mvi r3,1                                       
rtems_rfs_inodes_from_percent (rtems_rfs_file_system* fs,             
                               int                    percentage)     
{                                                                     
  int blocks;                                                         
  blocks = ((rtems_rfs_fs_blocks (fs) -                               
             RTEMS_RFS_SUPERBLOCK_SIZE) * percentage) / 100;          
 800d910:	b8 60 08 00 	mv r1,r3                                       
 800d914:	35 c2 ff ff 	addi r2,r14,-1                                 
 800d918:	fb ff cf 40 	calli 8001618 <__mulsi3>                       
 800d91c:	34 02 00 64 	mvi r2,100                                     
 800d920:	fb ff cf 4a 	calli 8001648 <__udivsi3>                      
  blocks = rtems_rfs_rup_quotient (blocks, fs->group_count);          
 800d924:	b9 e0 10 00 	mv r2,r15                                      
 800d928:	fb ff ff 32 	calli 800d5f0 <rtems_rfs_rup_quotient>         
 800d92c:	b8 20 70 00 	mv r14,r1                                      
  return blocks * (rtems_rfs_fs_block_size (fs) / RTEMS_RFS_INODE_SIZE);
 800d930:	34 02 00 38 	mvi r2,56                                      
 800d934:	b9 60 08 00 	mv r1,r11                                      
 800d938:	fb ff cf 44 	calli 8001648 <__udivsi3>                      
 800d93c:	b8 20 10 00 	mv r2,r1                                       
 800d940:	b9 c0 08 00 	mv r1,r14                                      
 800d944:	fb ff cf 35 	calli 8001618 <__mulsi3>                       
     * The number of inodes per group is set as a percentage.         
     */                                                               
    if (config->inode_overhead)                                       
      inode_overhead = config->inode_overhead;                        
                                                                      
    fs->group_inodes = rtems_rfs_inodes_from_percent (fs, inode_overhead);
 800d948:	5b 81 00 78 	sw (sp+120),r1                                 
  }                                                                   
                                                                      
  /*                                                                  
   * Round up to fill a block because the minimum allocation unit is a block.
   */                                                                 
  fs->inodes_per_block = rtems_rfs_fs_block_size (fs) / RTEMS_RFS_INODE_SIZE;
 800d94c:	b9 60 08 00 	mv r1,r11                                      
 800d950:	34 02 00 38 	mvi r2,56                                      
 800d954:	fb ff cf 3d 	calli 8001648 <__udivsi3>                      
 800d958:	b8 20 58 00 	mv r11,r1                                      
 800d95c:	5b 81 00 7c 	sw (sp+124),r1                                 
  fs->group_inodes =                                                  
    rtems_rfs_rup_quotient (fs->group_inodes,                         
 800d960:	2b 81 00 78 	lw r1,(sp+120)                                 
 800d964:	b9 60 10 00 	mv r2,r11                                      
 800d968:	fb ff ff 22 	calli 800d5f0 <rtems_rfs_rup_quotient>         
                            fs->inodes_per_block) * fs->inodes_per_block;
 800d96c:	b9 60 10 00 	mv r2,r11                                      
 800d970:	fb ff cf 2a 	calli 8001618 <__mulsi3>                       
                                                                      
  /*                                                                  
   * Round up to fill a block because the minimum allocation unit is a block.
   */                                                                 
  fs->inodes_per_block = rtems_rfs_fs_block_size (fs) / RTEMS_RFS_INODE_SIZE;
  fs->group_inodes =                                                  
 800d974:	5b 81 00 78 	sw (sp+120),r1                                 
    rtems_rfs_rup_quotient (fs->group_inodes,                         
                            fs->inodes_per_block) * fs->inodes_per_block;
                                                                      
  if (fs->group_inodes > rtems_rfs_bitmap_numof_bits (fs->block_size))
 800d978:	51 a1 00 02 	bgeu r13,r1,800d980 <rtems_rfs_format+0x2e8>   <== ALWAYS TAKEN
    fs->group_inodes = rtems_rfs_bitmap_numof_bits (fs->block_size);  
 800d97c:	5b 8d 00 78 	sw (sp+120),r13                                <== NOT EXECUTED
                                                                      
  fs->max_name_length = config->max_name_length;                      
 800d980:	29 81 00 10 	lw r1,(r12+16)                                 
 800d984:	5b 81 00 68 	sw (sp+104),r1                                 
  if (!fs->max_name_length)                                           
 800d988:	5c 20 02 8c 	bne r1,r0,800e3b8 <rtems_rfs_format+0xd20>     <== NEVER TAKEN
  {                                                                   
    fs->max_name_length = 512;                                        
 800d98c:	34 01 02 00 	mvi r1,512                                     
 800d990:	5b 81 00 68 	sw (sp+104),r1                                 
 800d994:	e0 00 02 89 	bi 800e3b8 <rtems_rfs_format+0xd20>            
  if (!rtems_rfs_check_config (&fs, config))                          
    return -1;                                                        
                                                                      
  if (config->verbose)                                                
  {                                                                   
    printf ("rtems-rfs: format: media size = %" PRIu64 "\n",          
 800d998:	37 8b 00 4c 	addi r11,sp,76                                 <== NOT EXECUTED
 800d99c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800d9a0:	f8 00 3b cd 	calli 801c8d4 <rtems_rfs_fs_media_size>        <== NOT EXECUTED
 800d9a4:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
 800d9a8:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800d9ac:	b8 40 18 00 	mv r3,r2                                       <== NOT EXECUTED
 800d9b0:	38 21 4c 00 	ori r1,r1,0x4c00                               <== NOT EXECUTED
 800d9b4:	b8 80 10 00 	mv r2,r4                                       <== NOT EXECUTED
 800d9b8:	f8 00 4e 72 	calli 8021380 <printf>                         <== NOT EXECUTED
            rtems_rfs_fs_media_size (&fs));                           
    printf ("rtems-rfs: format: media blocks = %" PRIu32 "\n",        
 800d9bc:	2b 82 00 5c 	lw r2,(sp+92)                                  <== NOT EXECUTED
 800d9c0:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800d9c4:	38 21 4c 28 	ori r1,r1,0x4c28                               <== NOT EXECUTED
 800d9c8:	28 42 00 1c 	lw r2,(r2+28)                                  <== NOT EXECUTED
            rtems_rfs_fs_size (&fs));                                 
    printf ("rtems-rfs: format: blocks = %zu\n",                      
            rtems_rfs_fs_blocks (&fs));                               
    printf ("rtems-rfs: format: block size = %zu\n",                  
            rtems_rfs_fs_block_size (&fs));                           
    printf ("rtems-rfs: format: bits per block = %u\n",               
 800d9cc:	78 0d 08 03 	mvhi r13,0x803                                 <== NOT EXECUTED
 800d9d0:	39 ad 4c e8 	ori r13,r13,0x4ce8                             <== NOT EXECUTED
                                                                      
  if (config->verbose)                                                
  {                                                                   
    printf ("rtems-rfs: format: media size = %" PRIu64 "\n",          
            rtems_rfs_fs_media_size (&fs));                           
    printf ("rtems-rfs: format: media blocks = %" PRIu32 "\n",        
 800d9d4:	f8 00 4e 6b 	calli 8021380 <printf>                         <== NOT EXECUTED
            rtems_rfs_fs_media_blocks (&fs));                         
    printf ("rtems-rfs: format: media block size = %" PRIu32 "\n",    
 800d9d8:	2b 82 00 5c 	lw r2,(sp+92)                                  <== NOT EXECUTED
 800d9dc:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800d9e0:	38 21 4c 50 	ori r1,r1,0x4c50                               <== NOT EXECUTED
 800d9e4:	28 42 00 20 	lw r2,(r2+32)                                  <== NOT EXECUTED
 800d9e8:	f8 00 4e 66 	calli 8021380 <printf>                         <== NOT EXECUTED
            rtems_rfs_fs_media_block_size (&fs));                     
    printf ("rtems-rfs: format: size = %" PRIu64 "\n",                
 800d9ec:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800d9f0:	f8 00 3b ae 	calli 801c8a8 <rtems_rfs_fs_size>              <== NOT EXECUTED
 800d9f4:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
 800d9f8:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800d9fc:	b8 40 18 00 	mv r3,r2                                       <== NOT EXECUTED
 800da00:	38 21 4c 7c 	ori r1,r1,0x4c7c                               <== NOT EXECUTED
 800da04:	b8 80 10 00 	mv r2,r4                                       <== NOT EXECUTED
 800da08:	f8 00 4e 5e 	calli 8021380 <printf>                         <== NOT EXECUTED
            rtems_rfs_fs_size (&fs));                                 
    printf ("rtems-rfs: format: blocks = %zu\n",                      
 800da0c:	2b 82 00 50 	lw r2,(sp+80)                                  <== NOT EXECUTED
 800da10:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800da14:	38 21 4c 9c 	ori r1,r1,0x4c9c                               <== NOT EXECUTED
 800da18:	f8 00 4e 5a 	calli 8021380 <printf>                         <== NOT EXECUTED
            rtems_rfs_fs_blocks (&fs));                               
    printf ("rtems-rfs: format: block size = %zu\n",                  
 800da1c:	2b 82 00 54 	lw r2,(sp+84)                                  <== NOT EXECUTED
 800da20:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800da24:	38 21 4c c0 	ori r1,r1,0x4cc0                               <== NOT EXECUTED
 800da28:	f8 00 4e 56 	calli 8021380 <printf>                         <== NOT EXECUTED
 * Return the number of bits that fit in the block size.              
 */                                                                   
static int                                                            
rtems_rfs_bits_per_block (rtems_rfs_file_system* fs)                  
{                                                                     
  return rtems_rfs_bitmap_numof_bits (rtems_rfs_fs_block_size (fs));  
 800da2c:	2b 81 00 54 	lw r1,(sp+84)                                  <== NOT EXECUTED
 800da30:	34 02 00 03 	mvi r2,3                                       <== NOT EXECUTED
 800da34:	fb ff ce ab 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 800da38:	b8 20 10 00 	mv r2,r1                                       <== NOT EXECUTED
            rtems_rfs_fs_size (&fs));                                 
    printf ("rtems-rfs: format: blocks = %zu\n",                      
            rtems_rfs_fs_blocks (&fs));                               
    printf ("rtems-rfs: format: block size = %zu\n",                  
            rtems_rfs_fs_block_size (&fs));                           
    printf ("rtems-rfs: format: bits per block = %u\n",               
 800da3c:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 800da40:	f8 00 4e 50 	calli 8021380 <printf>                         <== NOT EXECUTED
            rtems_rfs_bits_per_block (&fs));                          
    printf ("rtems-rfs: format: inode size = %zu\n", RTEMS_RFS_INODE_SIZE);
 800da44:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800da48:	34 02 00 38 	mvi r2,56                                      <== NOT EXECUTED
 800da4c:	38 21 4d 10 	ori r1,r1,0x4d10                               <== NOT EXECUTED
 800da50:	f8 00 4e 4c 	calli 8021380 <printf>                         <== NOT EXECUTED
    printf ("rtems-rfs: format: inodes = %zu (%d.%d%%)\n",            
            fs.group_inodes * fs.group_count,                         
            rtems_rfs_inode_overhead (&fs) / 10,                      
 800da54:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800da58:	fb ff fe f1 	calli 800d61c <rtems_rfs_inode_overhead>       <== NOT EXECUTED
 800da5c:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
    printf ("rtems-rfs: format: block size = %zu\n",                  
            rtems_rfs_fs_block_size (&fs));                           
    printf ("rtems-rfs: format: bits per block = %u\n",               
            rtems_rfs_bits_per_block (&fs));                          
    printf ("rtems-rfs: format: inode size = %zu\n", RTEMS_RFS_INODE_SIZE);
    printf ("rtems-rfs: format: inodes = %zu (%d.%d%%)\n",            
 800da60:	2b 82 00 78 	lw r2,(sp+120)                                 <== NOT EXECUTED
 800da64:	2b 81 00 70 	lw r1,(sp+112)                                 <== NOT EXECUTED
 800da68:	78 0b 08 03 	mvhi r11,0x803                                 <== NOT EXECUTED
 800da6c:	39 6b 4d 38 	ori r11,r11,0x4d38                             <== NOT EXECUTED
 800da70:	fb ff ce ea 	calli 8001618 <__mulsi3>                       <== NOT EXECUTED
 800da74:	b8 20 78 00 	mv r15,r1                                      <== NOT EXECUTED
 800da78:	34 02 00 0a 	mvi r2,10                                      <== NOT EXECUTED
 800da7c:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 800da80:	f8 00 95 0b 	calli 8032eac <__divsi3>                       <== NOT EXECUTED
 800da84:	b8 20 70 00 	mv r14,r1                                      <== NOT EXECUTED
 800da88:	34 02 00 0a 	mvi r2,10                                      <== NOT EXECUTED
 800da8c:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 800da90:	f8 00 95 37 	calli 8032f6c <__modsi3>                       <== NOT EXECUTED
 800da94:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
 800da98:	b9 c0 18 00 	mv r3,r14                                      <== NOT EXECUTED
 800da9c:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
 800daa0:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800daa4:	f8 00 4e 37 	calli 8021380 <printf>                         <== NOT EXECUTED
            fs.group_inodes * fs.group_count,                         
            rtems_rfs_inode_overhead (&fs) / 10,                      
            rtems_rfs_inode_overhead (&fs) % 10);                     
    printf ("rtems-rfs: format: groups = %u\n", fs.group_count);      
 800daa8:	2b 82 00 70 	lw r2,(sp+112)                                 <== NOT EXECUTED
 800daac:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800dab0:	38 21 4d 64 	ori r1,r1,0x4d64                               <== NOT EXECUTED
 800dab4:	f8 00 4e 33 	calli 8021380 <printf>                         <== NOT EXECUTED
    printf ("rtems-rfs: format: group blocks = %zu\n", fs.group_blocks);
 800dab8:	2b 82 00 74 	lw r2,(sp+116)                                 <== NOT EXECUTED
 800dabc:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800dac0:	38 21 4d 84 	ori r1,r1,0x4d84                               <== NOT EXECUTED
 800dac4:	f8 00 4e 2f 	calli 8021380 <printf>                         <== NOT EXECUTED
    printf ("rtems-rfs: format: group inodes = %zu\n", fs.group_inodes);
 800dac8:	2b 82 00 78 	lw r2,(sp+120)                                 <== NOT EXECUTED
 800dacc:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800dad0:	38 21 4d ac 	ori r1,r1,0x4dac                               <== NOT EXECUTED
 800dad4:	f8 00 4e 2b 	calli 8021380 <printf>                         <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_buffer_setblksize (&fs, rtems_rfs_fs_block_size (&fs));
 800dad8:	2b 82 00 54 	lw r2,(sp+84)                                  
 800dadc:	37 8f 00 4c 	addi r15,sp,76                                 
 800dae0:	b9 e0 08 00 	mv r1,r15                                      
 800dae4:	f8 00 32 08 	calli 801a304 <rtems_rfs_buffer_setblksize>    
 800dae8:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 800daec:	4c 01 00 06 	bge r0,r1,800db04 <rtems_rfs_format+0x46c>     <== ALWAYS TAKEN
  {                                                                   
    printf ("rtems-rfs: format: setting block size failed: %d: %s\n", 
 800daf0:	f8 00 52 df 	calli 802266c <strerror>                       <== NOT EXECUTED
 800daf4:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 800daf8:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800dafc:	38 21 4d d4 	ori r1,r1,0x4dd4                               <== NOT EXECUTED
 800db00:	e0 00 02 17 	bi 800e35c <rtems_rfs_format+0xcc4>            <== NOT EXECUTED
    printf ("rtems-rfs: write-superblock: handle open failed: %d: %s\n",
            rc, strerror (rc));                                       
    return false;                                                     
  }                                                                   
                                                                      
  rc = rtems_rfs_buffer_handle_request (fs, &handle, 0, false);       
 800db04:	37 8e 01 10 	addi r14,sp,272                                
 800db08:	b9 e0 08 00 	mv r1,r15                                      
 800db0c:	b9 c0 10 00 	mv r2,r14                                      
 800db10:	34 03 00 00 	mvi r3,0                                       
 800db14:	34 04 00 00 	mvi r4,0                                       
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
 800db18:	33 80 01 10 	sb (sp+272),r0                                 
  handle->bnum  = 0;                                                  
 800db1c:	5b 80 01 14 	sw (sp+276),r0                                 
  handle->buffer = NULL;                                              
 800db20:	5b 80 01 18 	sw (sp+280),r0                                 
 800db24:	f8 00 30 b6 	calli 8019dfc <rtems_rfs_buffer_handle_request>
 800db28:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 800db2c:	4c 01 00 0d 	bge r0,r1,800db60 <rtems_rfs_format+0x4c8>     <== ALWAYS TAKEN
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 800db30:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 800db34:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
 800db38:	f8 00 30 42 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    printf ("rtems-rfs: write-superblock: request failed: %d: %s\n",  
 800db3c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
  handle->dirty = false;                                              
 800db40:	33 80 01 10 	sb (sp+272),r0                                 <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 800db44:	5b 80 01 14 	sw (sp+276),r0                                 <== NOT EXECUTED
  handle->buffer = NULL;                                              
 800db48:	5b 80 01 18 	sw (sp+280),r0                                 <== NOT EXECUTED
 800db4c:	f8 00 52 c8 	calli 802266c <strerror>                       <== NOT EXECUTED
 800db50:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 800db54:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800db58:	38 21 4e 0c 	ori r1,r1,0x4e0c                               <== NOT EXECUTED
 800db5c:	e0 00 00 8b 	bi 800dd88 <rtems_rfs_format+0x6f0>            <== NOT EXECUTED
            rc, strerror (rc));                                       
    return false;                                                     
  }                                                                   
                                                                      
  sb = rtems_rfs_buffer_data (&handle);                               
 800db60:	2b 81 01 18 	lw r1,(sp+280)                                 
                                                                      
#define write_sb(_o, _d) rtems_rfs_write_u32(sb + (_o), _d)           
                                                                      
  memset (sb, 0xff, rtems_rfs_fs_block_size (fs));                    
 800db64:	2b 83 00 54 	lw r3,(sp+84)                                  
 800db68:	34 02 00 ff 	mvi r2,255                                     
    printf ("rtems-rfs: write-superblock: request failed: %d: %s\n",  
            rc, strerror (rc));                                       
    return false;                                                     
  }                                                                   
                                                                      
  sb = rtems_rfs_buffer_data (&handle);                               
 800db6c:	28 2b 00 1c 	lw r11,(r1+28)                                 
                                                                      
#define write_sb(_o, _d) rtems_rfs_write_u32(sb + (_o), _d)           
                                                                      
  memset (sb, 0xff, rtems_rfs_fs_block_size (fs));                    
                                                                      
  write_sb (RTEMS_RFS_SB_OFFSET_MAGIC, RTEMS_RFS_SB_MAGIC);           
 800db70:	34 0d 00 01 	mvi r13,1                                      
                                                                      
  sb = rtems_rfs_buffer_data (&handle);                               
                                                                      
#define write_sb(_o, _d) rtems_rfs_write_u32(sb + (_o), _d)           
                                                                      
  memset (sb, 0xff, rtems_rfs_fs_block_size (fs));                    
 800db74:	b9 60 08 00 	mv r1,r11                                      
 800db78:	f8 00 4d 66 	calli 8021110 <memset>                         
                                                                      
  write_sb (RTEMS_RFS_SB_OFFSET_MAGIC, RTEMS_RFS_SB_MAGIC);           
 800db7c:	34 01 00 28 	mvi r1,40                                      
 800db80:	31 61 00 00 	sb (r11+0),r1                                  
 800db84:	34 01 00 09 	mvi r1,9                                       
 800db88:	31 61 00 01 	sb (r11+1),r1                                  
 800db8c:	34 01 00 20 	mvi r1,32                                      
 800db90:	31 61 00 02 	sb (r11+2),r1                                  
 800db94:	31 6d 00 03 	sb (r11+3),r13                                 
  write_sb (RTEMS_RFS_SB_OFFSET_VERSION, RTEMS_RFS_VERSION);          
 800db98:	31 60 00 04 	sb (r11+4),r0                                  
 800db9c:	31 60 00 05 	sb (r11+5),r0                                  
 800dba0:	31 60 00 06 	sb (r11+6),r0                                  
 800dba4:	31 60 00 07 	sb (r11+7),r0                                  
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCKS, rtems_rfs_fs_blocks (fs));    
 800dba8:	2b 81 00 50 	lw r1,(sp+80)                                  
 800dbac:	34 02 00 18 	mvi r2,24                                      
 800dbb0:	fb ff ce 73 	calli 800157c <__lshrsi3>                      
 800dbb4:	31 61 00 0c 	sb (r11+12),r1                                 
 800dbb8:	2b 81 00 50 	lw r1,(sp+80)                                  
 800dbbc:	34 02 00 10 	mvi r2,16                                      
 800dbc0:	fb ff ce 6f 	calli 800157c <__lshrsi3>                      
 800dbc4:	31 61 00 0d 	sb (r11+13),r1                                 
 800dbc8:	2b 81 00 50 	lw r1,(sp+80)                                  
 800dbcc:	34 02 00 08 	mvi r2,8                                       
 800dbd0:	fb ff ce 6b 	calli 800157c <__lshrsi3>                      
 800dbd4:	31 61 00 0e 	sb (r11+14),r1                                 
 800dbd8:	2b 81 00 50 	lw r1,(sp+80)                                  
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE, rtems_rfs_fs_block_size (fs));
 800dbdc:	34 02 00 18 	mvi r2,24                                      
                                                                      
  memset (sb, 0xff, rtems_rfs_fs_block_size (fs));                    
                                                                      
  write_sb (RTEMS_RFS_SB_OFFSET_MAGIC, RTEMS_RFS_SB_MAGIC);           
  write_sb (RTEMS_RFS_SB_OFFSET_VERSION, RTEMS_RFS_VERSION);          
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCKS, rtems_rfs_fs_blocks (fs));    
 800dbe0:	31 61 00 0f 	sb (r11+15),r1                                 
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE, rtems_rfs_fs_block_size (fs));
 800dbe4:	2b 81 00 54 	lw r1,(sp+84)                                  
 800dbe8:	fb ff ce 65 	calli 800157c <__lshrsi3>                      
 800dbec:	31 61 00 08 	sb (r11+8),r1                                  
 800dbf0:	2b 81 00 54 	lw r1,(sp+84)                                  
 800dbf4:	34 02 00 10 	mvi r2,16                                      
 800dbf8:	fb ff ce 61 	calli 800157c <__lshrsi3>                      
 800dbfc:	31 61 00 09 	sb (r11+9),r1                                  
 800dc00:	2b 81 00 54 	lw r1,(sp+84)                                  
 800dc04:	34 02 00 08 	mvi r2,8                                       
 800dc08:	fb ff ce 5d 	calli 800157c <__lshrsi3>                      
 800dc0c:	31 61 00 0a 	sb (r11+10),r1                                 
 800dc10:	2b 81 00 54 	lw r1,(sp+84)                                  
  write_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS, fs->bad_blocks);          
 800dc14:	34 02 00 18 	mvi r2,24                                      
  memset (sb, 0xff, rtems_rfs_fs_block_size (fs));                    
                                                                      
  write_sb (RTEMS_RFS_SB_OFFSET_MAGIC, RTEMS_RFS_SB_MAGIC);           
  write_sb (RTEMS_RFS_SB_OFFSET_VERSION, RTEMS_RFS_VERSION);          
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCKS, rtems_rfs_fs_blocks (fs));    
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE, rtems_rfs_fs_block_size (fs));
 800dc18:	31 61 00 0b 	sb (r11+11),r1                                 
  write_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS, fs->bad_blocks);          
 800dc1c:	2b 81 00 64 	lw r1,(sp+100)                                 
 800dc20:	fb ff ce 57 	calli 800157c <__lshrsi3>                      
 800dc24:	31 61 00 10 	sb (r11+16),r1                                 
 800dc28:	2b 81 00 64 	lw r1,(sp+100)                                 
 800dc2c:	34 02 00 10 	mvi r2,16                                      
 800dc30:	fb ff ce 53 	calli 800157c <__lshrsi3>                      
 800dc34:	31 61 00 11 	sb (r11+17),r1                                 
 800dc38:	2b 81 00 64 	lw r1,(sp+100)                                 
 800dc3c:	34 02 00 08 	mvi r2,8                                       
 800dc40:	fb ff ce 4f 	calli 800157c <__lshrsi3>                      
 800dc44:	31 61 00 12 	sb (r11+18),r1                                 
 800dc48:	2b 81 00 64 	lw r1,(sp+100)                                 
  write_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH, fs->max_name_length);
 800dc4c:	34 02 00 18 	mvi r2,24                                      
                                                                      
  write_sb (RTEMS_RFS_SB_OFFSET_MAGIC, RTEMS_RFS_SB_MAGIC);           
  write_sb (RTEMS_RFS_SB_OFFSET_VERSION, RTEMS_RFS_VERSION);          
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCKS, rtems_rfs_fs_blocks (fs));    
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE, rtems_rfs_fs_block_size (fs));
  write_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS, fs->bad_blocks);          
 800dc50:	31 61 00 13 	sb (r11+19),r1                                 
  write_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH, fs->max_name_length);
 800dc54:	2b 81 00 68 	lw r1,(sp+104)                                 
 800dc58:	fb ff ce 49 	calli 800157c <__lshrsi3>                      
 800dc5c:	31 61 00 14 	sb (r11+20),r1                                 
 800dc60:	2b 81 00 68 	lw r1,(sp+104)                                 
 800dc64:	34 02 00 10 	mvi r2,16                                      
 800dc68:	fb ff ce 45 	calli 800157c <__lshrsi3>                      
 800dc6c:	31 61 00 15 	sb (r11+21),r1                                 
 800dc70:	2b 81 00 68 	lw r1,(sp+104)                                 
 800dc74:	34 02 00 08 	mvi r2,8                                       
 800dc78:	fb ff ce 41 	calli 800157c <__lshrsi3>                      
 800dc7c:	31 61 00 16 	sb (r11+22),r1                                 
 800dc80:	2b 81 00 68 	lw r1,(sp+104)                                 
  write_sb (RTEMS_RFS_SB_OFFSET_GROUPS, fs->group_count);             
 800dc84:	34 02 00 18 	mvi r2,24                                      
  write_sb (RTEMS_RFS_SB_OFFSET_MAGIC, RTEMS_RFS_SB_MAGIC);           
  write_sb (RTEMS_RFS_SB_OFFSET_VERSION, RTEMS_RFS_VERSION);          
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCKS, rtems_rfs_fs_blocks (fs));    
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE, rtems_rfs_fs_block_size (fs));
  write_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS, fs->bad_blocks);          
  write_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH, fs->max_name_length);
 800dc88:	31 61 00 17 	sb (r11+23),r1                                 
  write_sb (RTEMS_RFS_SB_OFFSET_GROUPS, fs->group_count);             
 800dc8c:	2b 81 00 70 	lw r1,(sp+112)                                 
 800dc90:	fb ff ce 3b 	calli 800157c <__lshrsi3>                      
 800dc94:	31 61 00 18 	sb (r11+24),r1                                 
 800dc98:	2b 81 00 70 	lw r1,(sp+112)                                 
 800dc9c:	34 02 00 10 	mvi r2,16                                      
 800dca0:	fb ff ce 37 	calli 800157c <__lshrsi3>                      
 800dca4:	31 61 00 19 	sb (r11+25),r1                                 
 800dca8:	2b 81 00 70 	lw r1,(sp+112)                                 
 800dcac:	34 02 00 08 	mvi r2,8                                       
 800dcb0:	fb ff ce 33 	calli 800157c <__lshrsi3>                      
 800dcb4:	31 61 00 1a 	sb (r11+26),r1                                 
 800dcb8:	2b 81 00 70 	lw r1,(sp+112)                                 
  write_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS, fs->group_blocks);      
 800dcbc:	34 02 00 18 	mvi r2,24                                      
  write_sb (RTEMS_RFS_SB_OFFSET_VERSION, RTEMS_RFS_VERSION);          
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCKS, rtems_rfs_fs_blocks (fs));    
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE, rtems_rfs_fs_block_size (fs));
  write_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS, fs->bad_blocks);          
  write_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH, fs->max_name_length);
  write_sb (RTEMS_RFS_SB_OFFSET_GROUPS, fs->group_count);             
 800dcc0:	31 61 00 1b 	sb (r11+27),r1                                 
  write_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS, fs->group_blocks);      
 800dcc4:	2b 81 00 74 	lw r1,(sp+116)                                 
 800dcc8:	fb ff ce 2d 	calli 800157c <__lshrsi3>                      
 800dccc:	31 61 00 1c 	sb (r11+28),r1                                 
 800dcd0:	2b 81 00 74 	lw r1,(sp+116)                                 
 800dcd4:	34 02 00 10 	mvi r2,16                                      
 800dcd8:	fb ff ce 29 	calli 800157c <__lshrsi3>                      
 800dcdc:	31 61 00 1d 	sb (r11+29),r1                                 
 800dce0:	2b 81 00 74 	lw r1,(sp+116)                                 
 800dce4:	34 02 00 08 	mvi r2,8                                       
 800dce8:	fb ff ce 25 	calli 800157c <__lshrsi3>                      
 800dcec:	31 61 00 1e 	sb (r11+30),r1                                 
 800dcf0:	2b 81 00 74 	lw r1,(sp+116)                                 
  write_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES, fs->group_inodes);      
 800dcf4:	34 02 00 18 	mvi r2,24                                      
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCKS, rtems_rfs_fs_blocks (fs));    
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE, rtems_rfs_fs_block_size (fs));
  write_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS, fs->bad_blocks);          
  write_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH, fs->max_name_length);
  write_sb (RTEMS_RFS_SB_OFFSET_GROUPS, fs->group_count);             
  write_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS, fs->group_blocks);      
 800dcf8:	31 61 00 1f 	sb (r11+31),r1                                 
  write_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES, fs->group_inodes);      
 800dcfc:	2b 81 00 78 	lw r1,(sp+120)                                 
 800dd00:	fb ff ce 1f 	calli 800157c <__lshrsi3>                      
 800dd04:	31 61 00 20 	sb (r11+32),r1                                 
 800dd08:	2b 81 00 78 	lw r1,(sp+120)                                 
 800dd0c:	34 02 00 10 	mvi r2,16                                      
 800dd10:	fb ff ce 1b 	calli 800157c <__lshrsi3>                      
 800dd14:	31 61 00 21 	sb (r11+33),r1                                 
 800dd18:	2b 81 00 78 	lw r1,(sp+120)                                 
 800dd1c:	34 02 00 08 	mvi r2,8                                       
 800dd20:	fb ff ce 17 	calli 800157c <__lshrsi3>                      
 800dd24:	31 61 00 22 	sb (r11+34),r1                                 
 800dd28:	2b 81 00 78 	lw r1,(sp+120)                                 
  write_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE, RTEMS_RFS_INODE_SIZE);    
                                                                      
  rtems_rfs_buffer_mark_dirty (&handle);                              
                                                                      
  rc = rtems_rfs_buffer_handle_release (fs, &handle);                 
 800dd2c:	b9 c0 10 00 	mv r2,r14                                      
  write_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS, fs->bad_blocks);          
  write_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH, fs->max_name_length);
  write_sb (RTEMS_RFS_SB_OFFSET_GROUPS, fs->group_count);             
  write_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS, fs->group_blocks);      
  write_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES, fs->group_inodes);      
  write_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE, RTEMS_RFS_INODE_SIZE);    
 800dd30:	31 60 00 24 	sb (r11+36),r0                                 
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE, rtems_rfs_fs_block_size (fs));
  write_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS, fs->bad_blocks);          
  write_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH, fs->max_name_length);
  write_sb (RTEMS_RFS_SB_OFFSET_GROUPS, fs->group_count);             
  write_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS, fs->group_blocks);      
  write_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES, fs->group_inodes);      
 800dd34:	31 61 00 23 	sb (r11+35),r1                                 
  write_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE, RTEMS_RFS_INODE_SIZE);    
 800dd38:	34 01 00 38 	mvi r1,56                                      
 800dd3c:	31 61 00 27 	sb (r11+39),r1                                 
 800dd40:	31 60 00 25 	sb (r11+37),r0                                 
 800dd44:	31 60 00 26 	sb (r11+38),r0                                 
                                                                      
  rtems_rfs_buffer_mark_dirty (&handle);                              
                                                                      
  rc = rtems_rfs_buffer_handle_release (fs, &handle);                 
 800dd48:	b9 e0 08 00 	mv r1,r15                                      
  write_sb (RTEMS_RFS_SB_OFFSET_GROUPS, fs->group_count);             
  write_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS, fs->group_blocks);      
  write_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES, fs->group_inodes);      
  write_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE, RTEMS_RFS_INODE_SIZE);    
                                                                      
  rtems_rfs_buffer_mark_dirty (&handle);                              
 800dd4c:	33 8d 01 10 	sb (sp+272),r13                                
                                                                      
  rc = rtems_rfs_buffer_handle_release (fs, &handle);                 
 800dd50:	f8 00 2f bc 	calli 8019c40 <rtems_rfs_buffer_handle_release>
 800dd54:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 800dd58:	4c 01 00 11 	bge r0,r1,800dd9c <rtems_rfs_format+0x704>     <== ALWAYS TAKEN
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 800dd5c:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 800dd60:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
 800dd64:	f8 00 2f b7 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    printf ("rtems-rfs: write-superblock: buffer release failed: %d: %s\n",
 800dd68:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
  handle->dirty = false;                                              
 800dd6c:	33 80 01 10 	sb (sp+272),r0                                 <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 800dd70:	5b 80 01 14 	sw (sp+276),r0                                 <== NOT EXECUTED
  handle->buffer = NULL;                                              
 800dd74:	5b 80 01 18 	sw (sp+280),r0                                 <== NOT EXECUTED
 800dd78:	f8 00 52 3d 	calli 802266c <strerror>                       <== NOT EXECUTED
 800dd7c:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 800dd80:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800dd84:	38 21 4e 44 	ori r1,r1,0x4e44                               <== NOT EXECUTED
 800dd88:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 800dd8c:	f8 00 4d 7d 	calli 8021380 <printf>                         <== NOT EXECUTED
    return -1;                                                        
  }                                                                   
                                                                      
  if (!rtems_rfs_write_superblock (&fs))                              
  {                                                                   
    printf ("rtems-rfs: format: superblock write failed\n");          
 800dd90:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800dd94:	38 21 4e 80 	ori r1,r1,0x4e80                               <== NOT EXECUTED
 800dd98:	e0 00 00 0e 	bi 800ddd0 <rtems_rfs_format+0x738>            <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 800dd9c:	b9 e0 08 00 	mv r1,r15                                      
 800dda0:	b9 c0 10 00 	mv r2,r14                                      
   */                                                                 
  if ((group_base + group_size) > rtems_rfs_fs_blocks (fs))           
    group_size = rtems_rfs_fs_blocks (fs) - group_base;               
                                                                      
  if (verbose)                                                        
    printf ("\rrtems-rfs: format: group %3d: base = %" PRId32 ", size = %zd",
 800dda4:	78 18 08 03 	mvhi r24,0x803                                 
            rc, strerror (rc));                                       
    return false;                                                     
  }                                                                   
                                                                      
  if (verbose)                                                        
    printf (", blocks");                                              
 800dda8:	78 17 08 03 	mvhi r23,0x803                                 
  }                                                                   
                                                                      
  rtems_rfs_buffer_mark_dirty (&handle);                              
                                                                      
  if (verbose)                                                        
    printf (", inodes");                                              
 800ddac:	78 15 08 03 	mvhi r21,0x803                                 
 800ddb0:	f8 00 2f a4 	calli 8019c40 <rtems_rfs_buffer_handle_release>
 800ddb4:	34 0b 00 00 	mvi r11,0                                      
   */                                                                 
  if ((group_base + group_size) > rtems_rfs_fs_blocks (fs))           
    group_size = rtems_rfs_fs_blocks (fs) - group_base;               
                                                                      
  if (verbose)                                                        
    printf ("\rrtems-rfs: format: group %3d: base = %" PRId32 ", size = %zd",
 800ddb8:	3b 18 4e e8 	ori r24,r24,0x4ee8                             
            rc, strerror (rc));                                       
    return false;                                                     
  }                                                                   
                                                                      
  if (verbose)                                                        
    printf (", blocks");                                              
 800ddbc:	3a f7 4f 20 	ori r23,r23,0x4f20                             
                                                                      
  /*                                                                  
   * Open the block bitmap using the new buffer.                      
   */                                                                 
  rc = rtems_rfs_bitmap_open (&bitmap, fs, &handle, group_size,       
 800ddc0:	37 8d 00 f8 	addi r13,sp,248                                
    printf ("\nrtems-rfs: write-group: group %3d: close block bitmap failed: %d: %s\n",
            group, rc, strerror (rc));                                
    return false;                                                     
  }                                                                   
                                                                      
  rtems_rfs_buffer_mark_dirty (&handle);                              
 800ddc4:	34 16 00 01 	mvi r22,1                                      
                                                                      
  if (verbose)                                                        
    printf (", inodes");                                              
 800ddc8:	3a b5 50 08 	ori r21,r21,0x5008                             
 800ddcc:	e0 00 00 db 	bi 800e138 <rtems_rfs_format+0xaa0>            
    return -1;                                                        
  }                                                                   
                                                                      
  if (!rtems_rfs_write_superblock (&fs))                              
  {                                                                   
    printf ("rtems-rfs: format: superblock write failed\n");          
 800ddd0:	f8 00 4e 34 	calli 80216a0 <puts>                           <== NOT EXECUTED
 800ddd4:	e0 00 01 64 	bi 800e364 <rtems_rfs_format+0xccc>            <== NOT EXECUTED
    return -1;                                                        
  }                                                                   
                                                                      
  for (group = 0; group < fs.group_count; group++)                    
    if (!rtems_rfs_write_group (&fs, group,                           
                                config->initialise_inodes, config->verbose))
 800ddd8:	41 81 00 14 	lbu r1,(r12+20)                                
  size_t                   group_size;                                
  int                      blocks;                                    
  int                      b;                                         
  int                      rc;                                        
                                                                      
  group_base = rtems_rfs_fs_block (fs, group, 0);                     
 800dddc:	2b 91 00 74 	lw r17,(sp+116)                                
    return -1;                                                        
  }                                                                   
                                                                      
  for (group = 0; group < fs.group_count; group++)                    
    if (!rtems_rfs_write_group (&fs, group,                           
                                config->initialise_inodes, config->verbose))
 800dde0:	5b 81 00 48 	sw (sp+72),r1                                  
  size_t                   group_size;                                
  int                      blocks;                                    
  int                      b;                                         
  int                      rc;                                        
                                                                      
  group_base = rtems_rfs_fs_block (fs, group, 0);                     
 800dde4:	ba 20 10 00 	mv r2,r17                                      
 800dde8:	b9 60 08 00 	mv r1,r11                                      
 800ddec:	fb ff ce 0b 	calli 8001618 <__mulsi3>                       
                                                                      
  if (group_base > rtems_rfs_fs_blocks (fs))                          
 800ddf0:	2b 82 00 50 	lw r2,(sp+80)                                  
  size_t                   group_size;                                
  int                      blocks;                                    
  int                      b;                                         
  int                      rc;                                        
                                                                      
  group_base = rtems_rfs_fs_block (fs, group, 0);                     
 800ddf4:	34 30 00 01 	addi r16,r1,1                                  
 800ddf8:	b8 20 c8 00 	mv r25,r1                                      
                                                                      
  if (group_base > rtems_rfs_fs_blocks (fs))                          
 800ddfc:	50 50 00 06 	bgeu r2,r16,800de14 <rtems_rfs_format+0x77c>   <== ALWAYS TAKEN
  {                                                                   
    printf ("rtems-rfs: write-group: group %d base beyond disk limit\n",
 800de00:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800de04:	38 21 4e ac 	ori r1,r1,0x4eac                               <== NOT EXECUTED
 800de08:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 800de0c:	f8 00 4d 5d 	calli 8021380 <printf>                         <== NOT EXECUTED
 800de10:	e0 00 01 55 	bi 800e364 <rtems_rfs_format+0xccc>            <== NOT EXECUTED
  /*                                                                  
   * Be nice to strange sizes of disks. These are embedded systems after all
   * and nice numbers do not always work out. Let the last block pick up the
   * remainder of the blocks.                                         
   */                                                                 
  if ((group_base + group_size) > rtems_rfs_fs_blocks (fs))           
 800de14:	b6 11 08 00 	add r1,r16,r17                                 
 800de18:	50 41 00 02 	bgeu r2,r1,800de20 <rtems_rfs_format+0x788>    <== NEVER TAKEN
    group_size = rtems_rfs_fs_blocks (fs) - group_base;               
 800de1c:	c8 50 88 00 	sub r17,r2,r16                                 
                                                                      
  if (verbose)                                                        
 800de20:	46 40 00 06 	be r18,r0,800de38 <rtems_rfs_format+0x7a0>     <== ALWAYS TAKEN
    printf ("\rrtems-rfs: format: group %3d: base = %" PRId32 ", size = %zd",
 800de24:	bb 00 08 00 	mv r1,r24                                      <== NOT EXECUTED
 800de28:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 800de2c:	ba 00 18 00 	mv r3,r16                                      <== NOT EXECUTED
 800de30:	ba 20 20 00 	mv r4,r17                                      <== NOT EXECUTED
 800de34:	f8 00 4d 53 	calli 8021380 <printf>                         <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
 800de38:	33 80 01 10 	sb (sp+272),r0                                 
  handle->bnum  = 0;                                                  
 800de3c:	5b 80 01 14 	sw (sp+276),r0                                 
  handle->buffer = NULL;                                              
 800de40:	5b 80 01 18 	sw (sp+280),r0                                 
    printf ("\nrtems-rfs: write-group: handle open failed: %d: %s\n", 
            rc, strerror (rc));                                       
    return false;                                                     
  }                                                                   
                                                                      
  if (verbose)                                                        
 800de44:	46 40 00 03 	be r18,r0,800de50 <rtems_rfs_format+0x7b8>     <== ALWAYS TAKEN
    printf (", blocks");                                              
 800de48:	ba e0 08 00 	mv r1,r23                                      <== NOT EXECUTED
 800de4c:	f8 00 4d 4d 	calli 8021380 <printf>                         <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Open the block bitmap using the new buffer.                      
   */                                                                 
  rc = rtems_rfs_bitmap_open (&bitmap, fs, &handle, group_size,       
 800de50:	b9 a0 08 00 	mv r1,r13                                      
 800de54:	b9 e0 10 00 	mv r2,r15                                      
 800de58:	b9 c0 18 00 	mv r3,r14                                      
 800de5c:	ba 20 20 00 	mv r4,r17                                      
 800de60:	ba 00 28 00 	mv r5,r16                                      
 800de64:	f8 00 29 a2 	calli 80184ec <rtems_rfs_bitmap_open>          
 800de68:	b8 20 98 00 	mv r19,r1                                      
                              group_base + RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
  if (rc > 0)                                                         
 800de6c:	4c 01 00 0d 	bge r0,r1,800dea0 <rtems_rfs_format+0x808>     <== ALWAYS TAKEN
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 800de70:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 800de74:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
 800de78:	f8 00 2f 72 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    printf ("\nrtems-rfs: write-group: group %3d: open block bitmap failed: %d: %s\n",
 800de7c:	ba 60 08 00 	mv r1,r19                                      <== NOT EXECUTED
  handle->dirty = false;                                              
 800de80:	33 80 01 10 	sb (sp+272),r0                                 <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 800de84:	5b 80 01 14 	sw (sp+276),r0                                 <== NOT EXECUTED
  handle->buffer = NULL;                                              
 800de88:	5b 80 01 18 	sw (sp+280),r0                                 <== NOT EXECUTED
 800de8c:	f8 00 51 f8 	calli 802266c <strerror>                       <== NOT EXECUTED
 800de90:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
 800de94:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800de98:	38 21 4f 2c 	ori r1,r1,0x4f2c                               <== NOT EXECUTED
 800de9c:	e0 00 00 17 	bi 800def8 <rtems_rfs_format+0x860>            <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Force the whole buffer to a known state. The bit map may not occupy the
   * whole block.                                                     
   */                                                                 
  memset (rtems_rfs_buffer_data (&handle), 0xff, rtems_rfs_fs_block_size (fs));
 800dea0:	2b 81 01 18 	lw r1,(sp+280)                                 
 800dea4:	2b 83 00 54 	lw r3,(sp+84)                                  
 800dea8:	34 02 00 ff 	mvi r2,255                                     
 800deac:	28 21 00 1c 	lw r1,(r1+28)                                  
 800deb0:	f8 00 4c 98 	calli 8021110 <memset>                         
                                                                      
  /*                                                                  
   * Clear the bitmap.                                                
   */                                                                 
  rc = rtems_rfs_bitmap_map_clear_all (&bitmap);                      
 800deb4:	b9 a0 08 00 	mv r1,r13                                      
 800deb8:	f8 00 28 d5 	calli 801820c <rtems_rfs_bitmap_map_clear_all> 
 800debc:	b8 20 98 00 	mv r19,r1                                      
  if (rc > 0)                                                         
 800dec0:	4c 01 00 12 	bge r0,r1,800df08 <rtems_rfs_format+0x870>     <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_bitmap_close (&bitmap);                                 
 800dec4:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 800dec8:	f8 00 29 a4 	calli 8018558 <rtems_rfs_bitmap_close>         <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 800decc:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 800ded0:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
 800ded4:	f8 00 2f 5b 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    printf ("\nrtems-rfs: write-group: group %3d: block bitmap clear all failed: %d: %s\n",
 800ded8:	ba 60 08 00 	mv r1,r19                                      <== NOT EXECUTED
  handle->dirty = false;                                              
 800dedc:	33 80 01 10 	sb (sp+272),r0                                 <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 800dee0:	5b 80 01 14 	sw (sp+276),r0                                 <== NOT EXECUTED
  handle->buffer = NULL;                                              
 800dee4:	5b 80 01 18 	sw (sp+280),r0                                 <== NOT EXECUTED
 800dee8:	f8 00 51 e1 	calli 802266c <strerror>                       <== NOT EXECUTED
 800deec:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
 800def0:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800def4:	38 21 4f 74 	ori r1,r1,0x4f74                               <== NOT EXECUTED
 800def8:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 800defc:	ba 60 18 00 	mv r3,r19                                      <== NOT EXECUTED
 800df00:	f8 00 4d 20 	calli 8021380 <printf>                         <== NOT EXECUTED
 800df04:	e0 00 01 18 	bi 800e364 <rtems_rfs_format+0xccc>            <== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   * Forced allocation of the block bitmap.                           
   */                                                                 
  rtems_rfs_bitmap_map_set (&bitmap, RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
 800df08:	34 02 00 00 	mvi r2,0                                       
 800df0c:	b9 a0 08 00 	mv r1,r13                                      
 800df10:	f8 00 27 fd 	calli 8017f04 <rtems_rfs_bitmap_map_set>       
                                                                      
  /*                                                                  
   * Forced allocation of the inode bitmap.                           
   */                                                                 
  rtems_rfs_bitmap_map_set (&bitmap, RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
 800df14:	34 02 00 01 	mvi r2,1                                       
 800df18:	b9 a0 08 00 	mv r1,r13                                      
 800df1c:	f8 00 27 fa 	calli 8017f04 <rtems_rfs_bitmap_map_set>       
                                                                      
  /*                                                                  
   * Determine the number of inodes blocks in the group.              
   */                                                                 
  blocks = rtems_rfs_rup_quotient (fs->group_inodes, fs->inodes_per_block);
 800df20:	2b 81 00 78 	lw r1,(sp+120)                                 
 800df24:	2b 82 00 7c 	lw r2,(sp+124)                                 
                                                                      
  /*                                                                  
   * Forced allocation of the inode blocks which follow the block bitmap.
   */                                                                 
  for (b = 0; b < blocks; b++)                                        
 800df28:	34 13 00 00 	mvi r19,0                                      
  rtems_rfs_bitmap_map_set (&bitmap, RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
                                                                      
  /*                                                                  
   * Determine the number of inodes blocks in the group.              
   */                                                                 
  blocks = rtems_rfs_rup_quotient (fs->group_inodes, fs->inodes_per_block);
 800df2c:	fb ff fd b1 	calli 800d5f0 <rtems_rfs_rup_quotient>         
 800df30:	b8 20 d8 00 	mv fp,r1                                       
 800df34:	e0 00 00 05 	bi 800df48 <rtems_rfs_format+0x8b0>            
                                                                      
  /*                                                                  
   * Forced allocation of the inode blocks which follow the block bitmap.
   */                                                                 
  for (b = 0; b < blocks; b++)                                        
    rtems_rfs_bitmap_map_set (&bitmap, b + RTEMS_RFS_GROUP_INODE_BLOCK);
 800df38:	36 62 00 02 	addi r2,r19,2                                  
 800df3c:	b9 a0 08 00 	mv r1,r13                                      
 800df40:	f8 00 27 f1 	calli 8017f04 <rtems_rfs_bitmap_map_set>       
  blocks = rtems_rfs_rup_quotient (fs->group_inodes, fs->inodes_per_block);
                                                                      
  /*                                                                  
   * Forced allocation of the inode blocks which follow the block bitmap.
   */                                                                 
  for (b = 0; b < blocks; b++)                                        
 800df44:	36 73 00 01 	addi r19,r19,1                                 
 800df48:	4b 73 ff fc 	bg fp,r19,800df38 <rtems_rfs_format+0x8a0>     
    rtems_rfs_bitmap_map_set (&bitmap, b + RTEMS_RFS_GROUP_INODE_BLOCK);
                                                                      
  /*                                                                  
   * Close the block bitmap.                                          
   */                                                                 
  rc = rtems_rfs_bitmap_close (&bitmap);                              
 800df4c:	b9 a0 08 00 	mv r1,r13                                      
 800df50:	f8 00 29 82 	calli 8018558 <rtems_rfs_bitmap_close>         
 800df54:	b8 20 98 00 	mv r19,r1                                      
  if (rc > 0)                                                         
 800df58:	4c 01 00 0d 	bge r0,r1,800df8c <rtems_rfs_format+0x8f4>     <== ALWAYS TAKEN
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 800df5c:	37 82 01 10 	addi r2,sp,272                                 <== NOT EXECUTED
 800df60:	37 81 00 4c 	addi r1,sp,76                                  <== NOT EXECUTED
 800df64:	f8 00 2f 37 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    printf ("\nrtems-rfs: write-group: group %3d: close block bitmap failed: %d: %s\n",
 800df68:	ba 60 08 00 	mv r1,r19                                      <== NOT EXECUTED
  handle->dirty = false;                                              
 800df6c:	33 80 01 10 	sb (sp+272),r0                                 <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 800df70:	5b 80 01 14 	sw (sp+276),r0                                 <== NOT EXECUTED
  handle->buffer = NULL;                                              
 800df74:	5b 80 01 18 	sw (sp+280),r0                                 <== NOT EXECUTED
 800df78:	f8 00 51 bd 	calli 802266c <strerror>                       <== NOT EXECUTED
 800df7c:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
 800df80:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800df84:	38 21 4f c0 	ori r1,r1,0x4fc0                               <== NOT EXECUTED
 800df88:	e3 ff ff dc 	bi 800def8 <rtems_rfs_format+0x860>            <== NOT EXECUTED
            group, rc, strerror (rc));                                
    return false;                                                     
  }                                                                   
                                                                      
  rtems_rfs_buffer_mark_dirty (&handle);                              
 800df8c:	33 96 01 10 	sb (sp+272),r22                                
                                                                      
  if (verbose)                                                        
 800df90:	46 40 00 03 	be r18,r0,800df9c <rtems_rfs_format+0x904>     <== ALWAYS TAKEN
    printf (", inodes");                                              
 800df94:	ba a0 08 00 	mv r1,r21                                      <== NOT EXECUTED
 800df98:	f8 00 4c fa 	calli 8021380 <printf>                         <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Open the inode bitmap using the old buffer. Should release any changes.
   */                                                                 
  rc = rtems_rfs_bitmap_open (&bitmap, fs, &handle, group_size,       
 800df9c:	36 05 00 01 	addi r5,r16,1                                  
 800dfa0:	b9 a0 08 00 	mv r1,r13                                      
 800dfa4:	b9 e0 10 00 	mv r2,r15                                      
 800dfa8:	b9 c0 18 00 	mv r3,r14                                      
 800dfac:	ba 20 20 00 	mv r4,r17                                      
 800dfb0:	f8 00 29 4f 	calli 80184ec <rtems_rfs_bitmap_open>          
 800dfb4:	b8 20 80 00 	mv r16,r1                                      
                              group_base + RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
  if (rc > 0)                                                         
 800dfb8:	4c 01 00 0d 	bge r0,r1,800dfec <rtems_rfs_format+0x954>     <== ALWAYS TAKEN
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 800dfbc:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 800dfc0:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
 800dfc4:	f8 00 2f 1f 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    printf ("\nrtems-rfs: write-group: group %3d: open inode bitmap failed: %d: %s\n",
 800dfc8:	ba 00 08 00 	mv r1,r16                                      <== NOT EXECUTED
  handle->dirty = false;                                              
 800dfcc:	33 80 01 10 	sb (sp+272),r0                                 <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 800dfd0:	5b 80 01 14 	sw (sp+276),r0                                 <== NOT EXECUTED
  handle->buffer = NULL;                                              
 800dfd4:	5b 80 01 18 	sw (sp+280),r0                                 <== NOT EXECUTED
 800dfd8:	f8 00 51 a5 	calli 802266c <strerror>                       <== NOT EXECUTED
 800dfdc:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
 800dfe0:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800dfe4:	38 21 50 14 	ori r1,r1,0x5014                               <== NOT EXECUTED
 800dfe8:	e0 00 00 17 	bi 800e044 <rtems_rfs_format+0x9ac>            <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Force the whole buffer to a known state. The bit map may not occupy the
   * whole block.                                                     
   */                                                                 
  memset (rtems_rfs_buffer_data (&handle), 0x00, rtems_rfs_fs_block_size (fs));
 800dfec:	2b 81 01 18 	lw r1,(sp+280)                                 
 800dff0:	2b 83 00 54 	lw r3,(sp+84)                                  
 800dff4:	34 02 00 00 	mvi r2,0                                       
 800dff8:	28 21 00 1c 	lw r1,(r1+28)                                  
 800dffc:	f8 00 4c 45 	calli 8021110 <memset>                         
                                                                      
  /*                                                                  
   * Clear the inode bitmap.                                          
   */                                                                 
  rc = rtems_rfs_bitmap_map_clear_all (&bitmap);                      
 800e000:	b9 a0 08 00 	mv r1,r13                                      
 800e004:	f8 00 28 82 	calli 801820c <rtems_rfs_bitmap_map_clear_all> 
 800e008:	b8 20 80 00 	mv r16,r1                                      
  if (rc > 0)                                                         
 800e00c:	4c 01 00 11 	bge r0,r1,800e050 <rtems_rfs_format+0x9b8>     <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_bitmap_close (&bitmap);                                 
 800e010:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 800e014:	f8 00 29 51 	calli 8018558 <rtems_rfs_bitmap_close>         <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 800e018:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 800e01c:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
 800e020:	f8 00 2f 08 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    printf ("\nrtems-rfs: write-group: group %3d: inode bitmap" \     
 800e024:	ba 00 08 00 	mv r1,r16                                      <== NOT EXECUTED
  handle->dirty = false;                                              
 800e028:	33 80 01 10 	sb (sp+272),r0                                 <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 800e02c:	5b 80 01 14 	sw (sp+276),r0                                 <== NOT EXECUTED
  handle->buffer = NULL;                                              
 800e030:	5b 80 01 18 	sw (sp+280),r0                                 <== NOT EXECUTED
 800e034:	f8 00 51 8e 	calli 802266c <strerror>                       <== NOT EXECUTED
 800e038:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
 800e03c:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800e040:	38 21 50 5c 	ori r1,r1,0x505c                               <== NOT EXECUTED
 800e044:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 800e048:	ba 00 18 00 	mv r3,r16                                      <== NOT EXECUTED
 800e04c:	e3 ff ff ad 	bi 800df00 <rtems_rfs_format+0x868>            <== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   * Close the inode bitmap.                                          
   */                                                                 
  rc = rtems_rfs_bitmap_close (&bitmap);                              
 800e050:	b9 a0 08 00 	mv r1,r13                                      
 800e054:	f8 00 29 41 	calli 8018558 <rtems_rfs_bitmap_close>         
 800e058:	b8 20 80 00 	mv r16,r1                                      
  if (rc > 0)                                                         
 800e05c:	4c 01 00 0d 	bge r0,r1,800e090 <rtems_rfs_format+0x9f8>     <== ALWAYS TAKEN
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 800e060:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 800e064:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
 800e068:	f8 00 2e f6 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    printf ("\nrtems-rfs: write-group: group %3d: close inode" \      
 800e06c:	ba 00 08 00 	mv r1,r16                                      <== NOT EXECUTED
  handle->dirty = false;                                              
 800e070:	33 80 01 10 	sb (sp+272),r0                                 <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 800e074:	5b 80 01 14 	sw (sp+276),r0                                 <== NOT EXECUTED
  handle->buffer = NULL;                                              
 800e078:	5b 80 01 18 	sw (sp+280),r0                                 <== NOT EXECUTED
 800e07c:	f8 00 51 7c 	calli 802266c <strerror>                       <== NOT EXECUTED
 800e080:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
 800e084:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800e088:	38 21 50 a8 	ori r1,r1,0x50a8                               <== NOT EXECUTED
 800e08c:	e3 ff ff ee 	bi 800e044 <rtems_rfs_format+0x9ac>            <== NOT EXECUTED
  rtems_rfs_buffer_mark_dirty (&handle);                              
                                                                      
  /*                                                                  
   * Initialise the inode tables if required to do so.                
   */                                                                 
  if (initialise_inodes)                                              
 800e090:	2b 84 00 48 	lw r4,(sp+72)                                  
    printf ("\nrtems-rfs: write-group: group %3d: close inode" \      
            " bitmap failed: %d: %s\n", group, rc, strerror (rc));    
    return false;                                                     
  }                                                                   
                                                                      
  rtems_rfs_buffer_mark_dirty (&handle);                              
 800e094:	33 96 01 10 	sb (sp+272),r22                                
                                                                      
  /*                                                                  
   * Initialise the inode tables if required to do so.                
   */                                                                 
  if (initialise_inodes)                                              
 800e098:	34 10 00 00 	mvi r16,0                                      
                                                                      
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_format (const char* name, const rtems_rfs_format_config* config)
 800e09c:	37 39 00 03 	addi r25,r25,3                                 
  rtems_rfs_buffer_mark_dirty (&handle);                              
                                                                      
  /*                                                                  
   * Initialise the inode tables if required to do so.                
   */                                                                 
  if (initialise_inodes)                                              
 800e0a0:	5c 80 00 21 	bne r4,r0,800e124 <rtems_rfs_format+0xa8c>     <== NEVER TAKEN
 800e0a4:	e0 00 00 21 	bi 800e128 <rtems_rfs_format+0xa90>            
 800e0a8:	b7 30 90 00 	add r18,r25,r16                                <== NOT EXECUTED
  {                                                                   
    for (b = 0; b < blocks; b++)                                      
    {                                                                 
      rc = rtems_rfs_buffer_handle_request (fs, &handle,              
 800e0ac:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
 800e0b0:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 800e0b4:	ba 40 18 00 	mv r3,r18                                      <== NOT EXECUTED
 800e0b8:	34 04 00 00 	mvi r4,0                                       <== NOT EXECUTED
 800e0bc:	f8 00 2f 50 	calli 8019dfc <rtems_rfs_buffer_handle_request><== NOT EXECUTED
 800e0c0:	b8 20 88 00 	mv r17,r1                                      <== NOT EXECUTED
                                            group_base + b + RTEMS_RFS_GROUP_INODE_BLOCK,
                                            false);                   
      if (rc > 0)                                                     
 800e0c4:	4c 01 00 11 	bge r0,r1,800e108 <rtems_rfs_format+0xa70>     <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 800e0c8:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 800e0cc:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
 800e0d0:	f8 00 2e dc 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
      {                                                               
        rtems_rfs_buffer_handle_close (fs, &handle);                  
        printf ("\nrtems-rfs: write-group: group %3d: block %" PRId32 " request failed: %d: %s\n",
 800e0d4:	ba 20 08 00 	mv r1,r17                                      <== NOT EXECUTED
  handle->dirty = false;                                              
 800e0d8:	33 80 01 10 	sb (sp+272),r0                                 <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 800e0dc:	5b 80 01 14 	sw (sp+276),r0                                 <== NOT EXECUTED
  handle->buffer = NULL;                                              
 800e0e0:	5b 80 01 18 	sw (sp+280),r0                                 <== NOT EXECUTED
 800e0e4:	f8 00 51 62 	calli 802266c <strerror>                       <== NOT EXECUTED
 800e0e8:	b8 20 28 00 	mv r5,r1                                       <== NOT EXECUTED
 800e0ec:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800e0f0:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 800e0f4:	ba 40 18 00 	mv r3,r18                                      <== NOT EXECUTED
 800e0f8:	ba 20 20 00 	mv r4,r17                                      <== NOT EXECUTED
 800e0fc:	38 21 50 f0 	ori r1,r1,0x50f0                               <== NOT EXECUTED
 800e100:	f8 00 4c a0 	calli 8021380 <printf>                         <== NOT EXECUTED
 800e104:	e0 00 00 98 	bi 800e364 <rtems_rfs_format+0xccc>            <== NOT EXECUTED
                                                                      
      /*                                                              
       * Force the whole buffer to a known state. The bit map may not occupy the
       * whole block.                                                 
       */                                                             
      memset (rtems_rfs_buffer_data (&handle), 0xff, rtems_rfs_fs_block_size (fs));
 800e108:	2b 81 01 18 	lw r1,(sp+280)                                 <== NOT EXECUTED
 800e10c:	2b 83 00 54 	lw r3,(sp+84)                                  <== NOT EXECUTED
 800e110:	34 02 00 ff 	mvi r2,255                                     <== NOT EXECUTED
 800e114:	28 21 00 1c 	lw r1,(r1+28)                                  <== NOT EXECUTED
  /*                                                                  
   * Initialise the inode tables if required to do so.                
   */                                                                 
  if (initialise_inodes)                                              
  {                                                                   
    for (b = 0; b < blocks; b++)                                      
 800e118:	36 10 00 01 	addi r16,r16,1                                 <== NOT EXECUTED
                                                                      
      /*                                                              
       * Force the whole buffer to a known state. The bit map may not occupy the
       * whole block.                                                 
       */                                                             
      memset (rtems_rfs_buffer_data (&handle), 0xff, rtems_rfs_fs_block_size (fs));
 800e11c:	f8 00 4b fd 	calli 8021110 <memset>                         <== NOT EXECUTED
                                                                      
      rtems_rfs_buffer_mark_dirty (&handle);                          
 800e120:	33 96 01 10 	sb (sp+272),r22                                <== NOT EXECUTED
  /*                                                                  
   * Initialise the inode tables if required to do so.                
   */                                                                 
  if (initialise_inodes)                                              
  {                                                                   
    for (b = 0; b < blocks; b++)                                      
 800e124:	4b 70 ff e1 	bg fp,r16,800e0a8 <rtems_rfs_format+0xa10>     <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 800e128:	b9 e0 08 00 	mv r1,r15                                      
 800e12c:	b9 c0 10 00 	mv r2,r14                                      
 800e130:	f8 00 2e c4 	calli 8019c40 <rtems_rfs_buffer_handle_release>
  {                                                                   
    printf ("rtems-rfs: format: superblock write failed\n");          
    return -1;                                                        
  }                                                                   
                                                                      
  for (group = 0; group < fs.group_count; group++)                    
 800e134:	35 6b 00 01 	addi r11,r11,1                                 
 800e138:	2b 81 00 70 	lw r1,(sp+112)                                 
 800e13c:	41 92 00 15 	lbu r18,(r12+21)                               
 800e140:	48 2b ff 26 	bg r1,r11,800ddd8 <rtems_rfs_format+0x740>     
    if (!rtems_rfs_write_group (&fs, group,                           
                                config->initialise_inodes, config->verbose))
      return -1;                                                      
                                                                      
  if (config->verbose)                                                
 800e144:	46 40 00 03 	be r18,r0,800e150 <rtems_rfs_format+0xab8>     <== ALWAYS TAKEN
    printf ("\n");                                                    
 800e148:	34 01 00 0a 	mvi r1,10                                      <== NOT EXECUTED
 800e14c:	f8 00 4d 13 	calli 8021598 <putchar>                        <== NOT EXECUTED
                                                                      
  rc = rtems_rfs_buffer_close (&fs);                                  
 800e150:	37 81 00 4c 	addi r1,sp,76                                  
 800e154:	f8 00 30 a7 	calli 801a3f0 <rtems_rfs_buffer_close>         
 800e158:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 800e15c:	4c 01 00 06 	bge r0,r1,800e174 <rtems_rfs_format+0xadc>     <== ALWAYS TAKEN
  {                                                                   
    printf ("rtems-rfs: format: buffer close failed: %d: %s\n",       
 800e160:	f8 00 51 43 	calli 802266c <strerror>                       <== NOT EXECUTED
 800e164:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 800e168:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800e16c:	38 21 51 38 	ori r1,r1,0x5138                               <== NOT EXECUTED
 800e170:	e0 00 00 7b 	bi 800e35c <rtems_rfs_format+0xcc4>            <== NOT EXECUTED
  int                    rc;                                          
                                                                      
  /*                                                                  
   * External API so returns -1.                                      
   */                                                                 
  rc = rtems_rfs_fs_open (name, NULL,                                 
 800e174:	ba 80 08 00 	mv r1,r20                                      
 800e178:	34 02 00 00 	mvi r2,0                                       
 800e17c:	34 03 00 06 	mvi r3,6                                       
 800e180:	34 04 00 00 	mvi r4,0                                       
 800e184:	37 85 01 20 	addi r5,sp,288                                 
 800e188:	f8 00 39 de 	calli 801c900 <rtems_rfs_fs_open>              
                          RTEMS_RFS_FS_FORCE_OPEN | RTEMS_RFS_FS_NO_LOCAL_CACHE,
                          0, &fs);                                    
  if (rc < 0)                                                         
 800e18c:	4c 20 00 0a 	bge r1,r0,800e1b4 <rtems_rfs_format+0xb1c>     <== ALWAYS TAKEN
  {                                                                   
    printf ("rtems-rfs: format: file system open failed: %d: %s\n",   
            errno, strerror (errno));                                 
 800e190:	f8 00 46 21 	calli 801fa14 <__errno>                        <== NOT EXECUTED
  rc = rtems_rfs_fs_open (name, NULL,                                 
                          RTEMS_RFS_FS_FORCE_OPEN | RTEMS_RFS_FS_NO_LOCAL_CACHE,
                          0, &fs);                                    
  if (rc < 0)                                                         
  {                                                                   
    printf ("rtems-rfs: format: file system open failed: %d: %s\n",   
 800e194:	28 2b 00 00 	lw r11,(r1+0)                                  <== NOT EXECUTED
            errno, strerror (errno));                                 
 800e198:	f8 00 46 1f 	calli 801fa14 <__errno>                        <== NOT EXECUTED
  rc = rtems_rfs_fs_open (name, NULL,                                 
                          RTEMS_RFS_FS_FORCE_OPEN | RTEMS_RFS_FS_NO_LOCAL_CACHE,
                          0, &fs);                                    
  if (rc < 0)                                                         
  {                                                                   
    printf ("rtems-rfs: format: file system open failed: %d: %s\n",   
 800e19c:	28 21 00 00 	lw r1,(r1+0)                                   <== NOT EXECUTED
 800e1a0:	f8 00 51 33 	calli 802266c <strerror>                       <== NOT EXECUTED
 800e1a4:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 800e1a8:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800e1ac:	38 21 51 68 	ori r1,r1,0x5168                               <== NOT EXECUTED
 800e1b0:	e0 00 00 60 	bi 800e330 <rtems_rfs_format+0xc98>            <== NOT EXECUTED
            errno, strerror (errno));                                 
    return -1;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_alloc (fs, RTEMS_RFS_ROOT_INO, &ino);          
 800e1b4:	2b 81 01 20 	lw r1,(sp+288)                                 
 800e1b8:	34 02 00 01 	mvi r2,1                                       
 800e1bc:	37 83 01 1c 	addi r3,sp,284                                 
 800e1c0:	f8 00 02 7b 	calli 800ebac <rtems_rfs_inode_alloc>          
 800e1c4:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 800e1c8:	4c 01 00 08 	bge r0,r1,800e1e8 <rtems_rfs_format+0xb50>     <== ALWAYS TAKEN
  {                                                                   
    printf ("rtems-rfs: format: inode allocation failed: %d: %s\n",   
 800e1cc:	f8 00 51 28 	calli 802266c <strerror>                       <== NOT EXECUTED
 800e1d0:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 800e1d4:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800e1d8:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 800e1dc:	38 21 51 9c 	ori r1,r1,0x519c                               <== NOT EXECUTED
 800e1e0:	f8 00 4c 68 	calli 8021380 <printf>                         <== NOT EXECUTED
 800e1e4:	e0 00 00 1c 	bi 800e254 <rtems_rfs_format+0xbbc>            <== NOT EXECUTED
            rc, strerror (rc));                                       
    rtems_rfs_fs_close (fs);                                          
    return rc;                                                        
  }                                                                   
                                                                      
  if (ino != RTEMS_RFS_ROOT_INO)                                      
 800e1e8:	2b 82 01 1c 	lw r2,(sp+284)                                 
 800e1ec:	34 01 00 01 	mvi r1,1                                       
 800e1f0:	44 41 00 07 	be r2,r1,800e20c <rtems_rfs_format+0xb74>      <== ALWAYS TAKEN
  {                                                                   
    printf ("rtems-rfs: format: allocated inode not root ino: %" PRId32 "\n", ino);
 800e1f4:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800e1f8:	38 21 51 d0 	ori r1,r1,0x51d0                               <== NOT EXECUTED
 800e1fc:	f8 00 4c 61 	calli 8021380 <printf>                         <== NOT EXECUTED
    rtems_rfs_fs_close (fs);                                          
 800e200:	2b 81 01 20 	lw r1,(sp+288)                                 <== NOT EXECUTED
 800e204:	f8 00 3b e8 	calli 801d1a4 <rtems_rfs_fs_close>             <== NOT EXECUTED
 800e208:	e0 00 00 4c 	bi 800e338 <rtems_rfs_format+0xca0>            <== NOT EXECUTED
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
 800e20c:	2b 81 01 20 	lw r1,(sp+288)                                 
 800e210:	37 8c 00 d0 	addi r12,sp,208                                
 800e214:	34 02 00 01 	mvi r2,1                                       
 800e218:	b9 80 18 00 	mv r3,r12                                      
 800e21c:	34 04 00 01 	mvi r4,1                                       
 800e220:	f8 00 02 a8 	calli 800ecc0 <rtems_rfs_inode_open>           
 800e224:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 800e228:	4c 01 00 0e 	bge r0,r1,800e260 <rtems_rfs_format+0xbc8>     <== ALWAYS TAKEN
  {                                                                   
    printf ("rtems-rfs: format: inode open failed: %d: %s\n",         
 800e22c:	f8 00 51 10 	calli 802266c <strerror>                       <== NOT EXECUTED
 800e230:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 800e234:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800e238:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 800e23c:	38 21 52 08 	ori r1,r1,0x5208                               <== NOT EXECUTED
 800e240:	f8 00 4c 50 	calli 8021380 <printf>                         <== NOT EXECUTED
            rc, strerror (rc));                                       
    rtems_rfs_group_bitmap_free (fs, true, ino);                      
 800e244:	2b 81 01 20 	lw r1,(sp+288)                                 <== NOT EXECUTED
 800e248:	2b 83 01 1c 	lw r3,(sp+284)                                 <== NOT EXECUTED
 800e24c:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 800e250:	f8 00 01 aa 	calli 800e8f8 <rtems_rfs_group_bitmap_free>    <== NOT EXECUTED
    rtems_rfs_fs_close (fs);                                          
 800e254:	2b 81 01 20 	lw r1,(sp+288)                                 <== NOT EXECUTED
 800e258:	f8 00 3b d3 	calli 801d1a4 <rtems_rfs_fs_close>             <== NOT EXECUTED
 800e25c:	e0 00 00 3b 	bi 800e348 <rtems_rfs_format+0xcb0>            <== NOT EXECUTED
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_initialise (&inode, 0,                         
 800e260:	b9 80 08 00 	mv r1,r12                                      
 800e264:	34 02 00 00 	mvi r2,0                                       
 800e268:	34 03 41 c9 	mvi r3,16841                                   
 800e26c:	34 04 00 00 	mvi r4,0                                       
 800e270:	34 05 00 00 	mvi r5,0                                       
 800e274:	f8 00 03 bf 	calli 800f170 <rtems_rfs_inode_initialise>     
 800e278:	b8 20 58 00 	mv r11,r1                                      
                                   (RTEMS_RFS_S_IFDIR | RTEMS_RFS_S_IRWXU |
                                    RTEMS_RFS_S_IXGRP | RTEMS_RFS_S_IXOTH),
                                   0, 0);                             
  if (rc > 0)                                                         
 800e27c:	4c 01 00 07 	bge r0,r1,800e298 <rtems_rfs_format+0xc00>     <== ALWAYS TAKEN
    printf ("rtems-rfs: format: inode initialise failed: %d: %s\n",   
 800e280:	f8 00 50 fb 	calli 802266c <strerror>                       <== NOT EXECUTED
 800e284:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 800e288:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800e28c:	38 21 52 38 	ori r1,r1,0x5238                               <== NOT EXECUTED
 800e290:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 800e294:	f8 00 4c 3b 	calli 8021380 <printf>                         <== NOT EXECUTED
            rc, strerror (rc));                                       
                                                                      
  rc = rtems_rfs_dir_add_entry (fs, &inode, ".", 1, ino);             
 800e298:	2b 81 01 20 	lw r1,(sp+288)                                 
 800e29c:	2b 85 01 1c 	lw r5,(sp+284)                                 
 800e2a0:	78 03 08 03 	mvhi r3,0x803                                  
 800e2a4:	37 82 00 d0 	addi r2,sp,208                                 
 800e2a8:	38 63 37 bc 	ori r3,r3,0x37bc                               
 800e2ac:	34 04 00 01 	mvi r4,1                                       
 800e2b0:	f8 00 31 e2 	calli 801aa38 <rtems_rfs_dir_add_entry>        
 800e2b4:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 800e2b8:	4c 01 00 07 	bge r0,r1,800e2d4 <rtems_rfs_format+0xc3c>     <== ALWAYS TAKEN
    printf ("rtems-rfs: format: directory add failed: %d: %s\n",      
 800e2bc:	f8 00 50 ec 	calli 802266c <strerror>                       <== NOT EXECUTED
 800e2c0:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 800e2c4:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800e2c8:	38 21 52 6c 	ori r1,r1,0x526c                               <== NOT EXECUTED
 800e2cc:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 800e2d0:	f8 00 4c 2c 	calli 8021380 <printf>                         <== NOT EXECUTED
            rc, strerror (rc));                                       
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
 800e2d4:	2b 81 01 20 	lw r1,(sp+288)                                 
 800e2d8:	37 82 00 d0 	addi r2,sp,208                                 
 800e2dc:	f8 00 03 05 	calli 800eef0 <rtems_rfs_inode_close>          
 800e2e0:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 800e2e4:	4c 01 00 07 	bge r0,r1,800e300 <rtems_rfs_format+0xc68>     <== ALWAYS TAKEN
    printf ("rtems-rfs: format: inode close failed: %d: %s\n",        
 800e2e8:	f8 00 50 e1 	calli 802266c <strerror>                       <== NOT EXECUTED
 800e2ec:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 800e2f0:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800e2f4:	38 21 52 a0 	ori r1,r1,0x52a0                               <== NOT EXECUTED
 800e2f8:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 800e2fc:	f8 00 4c 21 	calli 8021380 <printf>                         <== NOT EXECUTED
            rc, strerror (rc));                                       
                                                                      
  rc = rtems_rfs_fs_close (fs);                                       
 800e300:	2b 81 01 20 	lw r1,(sp+288)                                 
 800e304:	f8 00 3b a8 	calli 801d1a4 <rtems_rfs_fs_close>             
 800e308:	b8 20 58 00 	mv r11,r1                                      
  if (rc < 0)                                                         
 800e30c:	4c 20 00 0d 	bge r1,r0,800e340 <rtems_rfs_format+0xca8>     <== ALWAYS TAKEN
    printf ("rtems-rfs: format: file system close failed: %d: %s\n",  
            errno, strerror (errno));                                 
 800e310:	f8 00 45 c1 	calli 801fa14 <__errno>                        <== NOT EXECUTED
    printf ("rtems-rfs: format: inode close failed: %d: %s\n",        
            rc, strerror (rc));                                       
                                                                      
  rc = rtems_rfs_fs_close (fs);                                       
  if (rc < 0)                                                         
    printf ("rtems-rfs: format: file system close failed: %d: %s\n",  
 800e314:	28 2b 00 00 	lw r11,(r1+0)                                  <== NOT EXECUTED
            errno, strerror (errno));                                 
 800e318:	f8 00 45 bf 	calli 801fa14 <__errno>                        <== NOT EXECUTED
    printf ("rtems-rfs: format: inode close failed: %d: %s\n",        
            rc, strerror (rc));                                       
                                                                      
  rc = rtems_rfs_fs_close (fs);                                       
  if (rc < 0)                                                         
    printf ("rtems-rfs: format: file system close failed: %d: %s\n",  
 800e31c:	28 21 00 00 	lw r1,(r1+0)                                   <== NOT EXECUTED
 800e320:	f8 00 50 d3 	calli 802266c <strerror>                       <== NOT EXECUTED
 800e324:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 800e328:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800e32c:	38 21 52 d0 	ori r1,r1,0x52d0                               <== NOT EXECUTED
 800e330:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 800e334:	f8 00 4c 13 	calli 8021380 <printf>                         <== NOT EXECUTED
    printf ("rtems-rfs: format: writing root dir failed: %d: %s\n",   
            rc, strerror (rc));                                       
    return -1;                                                        
  }                                                                   
                                                                      
  return 0;                                                           
 800e338:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 800e33c:	e0 00 00 0b 	bi 800e368 <rtems_rfs_format+0xcd0>            <== NOT EXECUTED
 800e340:	34 03 00 00 	mvi r3,0                                       
            rc, strerror (rc));                                       
    return -1;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_write_root_dir (name);                               
  if (rc > 0)                                                         
 800e344:	4c 01 00 09 	bge r0,r1,800e368 <rtems_rfs_format+0xcd0>     <== ALWAYS TAKEN
  {                                                                   
    printf ("rtems-rfs: format: writing root dir failed: %d: %s\n",   
 800e348:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800e34c:	f8 00 50 c8 	calli 802266c <strerror>                       <== NOT EXECUTED
 800e350:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 800e354:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800e358:	38 21 53 08 	ori r1,r1,0x5308                               <== NOT EXECUTED
 800e35c:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 800e360:	f8 00 4c 08 	calli 8021380 <printf>                         <== NOT EXECUTED
            rc, strerror (rc));                                       
    return -1;                                                        
 800e364:	34 03 ff ff 	mvi r3,-1                                      <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 800e368:	b8 60 08 00 	mv r1,r3                                       
 800e36c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800e370:	2b 8b 00 44 	lw r11,(sp+68)                                 
 800e374:	2b 8c 00 40 	lw r12,(sp+64)                                 
 800e378:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 800e37c:	2b 8e 00 38 	lw r14,(sp+56)                                 
 800e380:	2b 8f 00 34 	lw r15,(sp+52)                                 
 800e384:	2b 90 00 30 	lw r16,(sp+48)                                 
 800e388:	2b 91 00 2c 	lw r17,(sp+44)                                 
 800e38c:	2b 92 00 28 	lw r18,(sp+40)                                 
 800e390:	2b 93 00 24 	lw r19,(sp+36)                                 
 800e394:	2b 94 00 20 	lw r20,(sp+32)                                 
 800e398:	2b 95 00 1c 	lw r21,(sp+28)                                 
 800e39c:	2b 96 00 18 	lw r22,(sp+24)                                 
 800e3a0:	2b 97 00 14 	lw r23,(sp+20)                                 
 800e3a4:	2b 98 00 10 	lw r24,(sp+16)                                 
 800e3a8:	2b 99 00 0c 	lw r25,(sp+12)                                 
 800e3ac:	2b 9b 00 08 	lw fp,(sp+8)                                   
 800e3b0:	37 9c 01 20 	addi sp,sp,288                                 
 800e3b4:	c3 a0 00 00 	ret                                            
   * Check the configuration data.                                    
   */                                                                 
  if (!rtems_rfs_check_config (&fs, config))                          
    return -1;                                                        
                                                                      
  if (config->verbose)                                                
 800e3b8:	41 81 00 15 	lbu r1,(r12+21)                                
 800e3bc:	44 20 fd c7 	be r1,r0,800dad8 <rtems_rfs_format+0x440>      <== ALWAYS TAKEN
 800e3c0:	e3 ff fd 76 	bi 800d998 <rtems_rfs_format+0x300>            <== NOT EXECUTED
                                                                      

0801d1a4 <rtems_rfs_fs_close>: return 0; } int rtems_rfs_fs_close (rtems_rfs_file_system* fs) {
 801d1a4:	37 9c ff f0 	addi sp,sp,-16                                 
 801d1a8:	5b 8b 00 10 	sw (sp+16),r11                                 
 801d1ac:	5b 8c 00 0c 	sw (sp+12),r12                                 
 801d1b0:	5b 8d 00 08 	sw (sp+8),r13                                  
 801d1b4:	5b 9d 00 04 	sw (sp+4),ra                                   
  int group;                                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_CLOSE))                        
 801d1b8:	34 02 00 02 	mvi r2,2                                       
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_fs_close (rtems_rfs_file_system* fs)                        
{                                                                     
 801d1bc:	b8 20 58 00 	mv r11,r1                                      
  int group;                                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_CLOSE))                        
 801d1c0:	34 01 00 00 	mvi r1,0                                       
 801d1c4:	fb ff ce 78 	calli 8010ba4 <rtems_rfs_trace>                
 801d1c8:	44 20 00 04 	be r1,r0,801d1d8 <rtems_rfs_fs_close+0x34>     <== ALWAYS TAKEN
    printf ("rtems-rfs: close\n");                                    
 801d1cc:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801d1d0:	38 21 75 54 	ori r1,r1,0x7554                               <== NOT EXECUTED
 801d1d4:	f8 00 11 33 	calli 80216a0 <puts>                           <== NOT EXECUTED
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_fs_close (rtems_rfs_file_system* fs)                        
{                                                                     
 801d1d8:	34 0d 00 00 	mvi r13,0                                      
 801d1dc:	34 0c 00 00 	mvi r12,0                                      
 801d1e0:	e0 00 00 07 	bi 801d1fc <rtems_rfs_fs_close+0x58>           
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_CLOSE))                        
    printf ("rtems-rfs: close\n");                                    
                                                                      
  for (group = 0; group < fs->group_count; group++)                   
    rtems_rfs_group_close (fs, &fs->groups[group]);                   
 801d1e4:	29 62 00 20 	lw r2,(r11+32)                                 
 801d1e8:	b9 60 08 00 	mv r1,r11                                      
  int group;                                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_CLOSE))                        
    printf ("rtems-rfs: close\n");                                    
                                                                      
  for (group = 0; group < fs->group_count; group++)                   
 801d1ec:	35 8c 00 01 	addi r12,r12,1                                 
    rtems_rfs_group_close (fs, &fs->groups[group]);                   
 801d1f0:	b4 4d 10 00 	add r2,r2,r13                                  
 801d1f4:	fb ff c4 fa 	calli 800e5dc <rtems_rfs_group_close>          
  int group;                                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_CLOSE))                        
    printf ("rtems-rfs: close\n");                                    
                                                                      
  for (group = 0; group < fs->group_count; group++)                   
 801d1f8:	35 ad 00 50 	addi r13,r13,80                                
 801d1fc:	29 61 00 24 	lw r1,(r11+36)                                 
 801d200:	48 2c ff f9 	bg r1,r12,801d1e4 <rtems_rfs_fs_close+0x40>    
    rtems_rfs_group_close (fs, &fs->groups[group]);                   
                                                                      
  rtems_rfs_buffer_close (fs);                                        
 801d204:	b9 60 08 00 	mv r1,r11                                      
 801d208:	fb ff f4 7a 	calli 801a3f0 <rtems_rfs_buffer_close>         
                                                                      
  free (fs);                                                          
 801d20c:	b9 60 08 00 	mv r1,r11                                      
 801d210:	fb ff a4 9f 	calli 800648c <free>                           
  return 0;                                                           
}                                                                     
 801d214:	34 01 00 00 	mvi r1,0                                       
 801d218:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801d21c:	2b 8b 00 10 	lw r11,(sp+16)                                 
 801d220:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 801d224:	2b 8d 00 08 	lw r13,(sp+8)                                  
 801d228:	37 9c 00 10 	addi sp,sp,16                                  
 801d22c:	c3 a0 00 00 	ret                                            
                                                                      

0801c900 <rtems_rfs_fs_open>: rtems_rfs_fs_open (const char* name, void* user, uint32_t flags, uint32_t max_held_buffers, rtems_rfs_file_system** fs) {
 801c900:	37 9c ff ac 	addi sp,sp,-84                                 
 801c904:	5b 8b 00 20 	sw (sp+32),r11                                 
 801c908:	5b 8c 00 1c 	sw (sp+28),r12                                 
 801c90c:	5b 8d 00 18 	sw (sp+24),r13                                 
 801c910:	5b 8e 00 14 	sw (sp+20),r14                                 
 801c914:	5b 8f 00 10 	sw (sp+16),r15                                 
 801c918:	5b 90 00 0c 	sw (sp+12),r16                                 
 801c91c:	5b 91 00 08 	sw (sp+8),r17                                  
 801c920:	5b 9d 00 04 	sw (sp+4),ra                                   
 801c924:	b8 20 60 00 	mv r12,r1                                      
 801c928:	b8 40 80 00 	mv r16,r2                                      
#endif                                                                
  rtems_rfs_inode_handle inode;                                       
  uint16_t               mode;                                        
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                         
 801c92c:	34 01 00 00 	mvi r1,0                                       
 801c930:	34 02 00 01 	mvi r2,1                                       
rtems_rfs_fs_open (const char*             name,                      
                   void*                   user,                      
                   uint32_t                flags,                     
                   uint32_t                max_held_buffers,          
                   rtems_rfs_file_system** fs)                        
{                                                                     
 801c934:	b8 60 70 00 	mv r14,r3                                      
 801c938:	b8 80 78 00 	mv r15,r4                                      
 801c93c:	b8 a0 68 00 	mv r13,r5                                      
#endif                                                                
  rtems_rfs_inode_handle inode;                                       
  uint16_t               mode;                                        
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                         
 801c940:	fb ff d0 99 	calli 8010ba4 <rtems_rfs_trace>                
 801c944:	44 20 00 05 	be r1,r0,801c958 <rtems_rfs_fs_open+0x58>      <== ALWAYS TAKEN
    printf ("rtems-rfs: open: %s\n", name);                           
 801c948:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801c94c:	38 21 72 2c 	ori r1,r1,0x722c                               <== NOT EXECUTED
 801c950:	b9 80 10 00 	mv r2,r12                                      <== NOT EXECUTED
 801c954:	f8 00 12 8b 	calli 8021380 <printf>                         <== NOT EXECUTED
                                                                      
  *fs = malloc (sizeof (rtems_rfs_file_system));                      
 801c958:	34 01 00 84 	mvi r1,132                                     
 801c95c:	fb ff a8 b7 	calli 8006c38 <malloc>                         
 801c960:	59 a1 00 00 	sw (r13+0),r1                                  
 801c964:	b8 20 58 00 	mv r11,r1                                      
  if (!*fs)                                                           
 801c968:	5c 20 00 0a 	bne r1,r0,801c990 <rtems_rfs_fs_open+0x90>     <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
 801c96c:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 801c970:	fb ff d0 8d 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801c974:	45 61 00 04 	be r11,r1,801c984 <rtems_rfs_fs_open+0x84>     <== NOT EXECUTED
      printf ("rtems-rfs: open: no memory for file system data\n");   
 801c978:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801c97c:	38 21 72 44 	ori r1,r1,0x7244                               <== NOT EXECUTED
 801c980:	f8 00 13 48 	calli 80216a0 <puts>                           <== NOT EXECUTED
    errno = ENOMEM;                                                   
 801c984:	f8 00 0c 24 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 801c988:	34 02 00 0c 	mvi r2,12                                      <== NOT EXECUTED
 801c98c:	e0 00 01 dc 	bi 801d0fc <rtems_rfs_fs_open+0x7fc>           <== NOT EXECUTED
    return -1;                                                        
  }                                                                   
                                                                      
  memset (*fs, 0, sizeof (rtems_rfs_file_system));                    
 801c990:	34 02 00 00 	mvi r2,0                                       
 801c994:	34 03 00 84 	mvi r3,132                                     
 801c998:	f8 00 11 de 	calli 8021110 <memset>                         
                                                                      
  (*fs)->user = user;                                                 
 801c99c:	29 a6 00 00 	lw r6,(r13+0)                                  
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 );                        
 801c9a0:	34 c1 00 48 	addi r1,r6,72                                  
                                                                      
  head->next = tail;                                                  
 801c9a4:	58 c1 00 44 	sw (r6+68),r1                                  
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
 801c9a8:	34 c1 00 44 	addi r1,r6,68                                  
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
 801c9ac:	58 c1 00 4c 	sw (r6+76),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 );                        
 801c9b0:	34 c1 00 58 	addi r1,r6,88                                  
                                                                      
  head->next = tail;                                                  
 801c9b4:	58 c1 00 54 	sw (r6+84),r1                                  
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
 801c9b8:	34 c1 00 54 	addi r1,r6,84                                  
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
 801c9bc:	58 c1 00 5c 	sw (r6+92),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 );                        
 801c9c0:	34 c1 00 68 	addi r1,r6,104                                 
                                                                      
  head->next = tail;                                                  
 801c9c4:	58 c1 00 64 	sw (r6+100),r1                                 
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
 801c9c8:	34 c1 00 64 	addi r1,r6,100                                 
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
 801c9cc:	58 c1 00 6c 	sw (r6+108),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 );                        
 801c9d0:	34 c1 00 78 	addi r1,r6,120                                 
                                                                      
  head->next = tail;                                                  
 801c9d4:	58 c1 00 74 	sw (r6+116),r1                                 
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
 801c9d8:	34 c1 00 74 	addi r1,r6,116                                 
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
 801c9dc:	58 c1 00 7c 	sw (r6+124),r1                                 
 801c9e0:	58 d0 00 80 	sw (r6+128),r16                                
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
 801c9e4:	58 c0 00 48 	sw (r6+72),r0                                  
 801c9e8:	58 c0 00 58 	sw (r6+88),r0                                  
 801c9ec:	58 c0 00 68 	sw (r6+104),r0                                 
 801c9f0:	58 c0 00 78 	sw (r6+120),r0                                 
  rtems_chain_initialize_empty (&(*fs)->buffers);                     
  rtems_chain_initialize_empty (&(*fs)->release);                     
  rtems_chain_initialize_empty (&(*fs)->release_modified);            
  rtems_chain_initialize_empty (&(*fs)->file_shares);                 
                                                                      
  (*fs)->max_held_buffers = max_held_buffers;                         
 801c9f4:	58 cf 00 40 	sw (r6+64),r15                                 
  (*fs)->buffers_count = 0;                                           
 801c9f8:	58 c0 00 50 	sw (r6+80),r0                                  
  (*fs)->release_count = 0;                                           
 801c9fc:	58 c0 00 60 	sw (r6+96),r0                                  
  (*fs)->release_modified_count = 0;                                  
 801ca00:	58 c0 00 70 	sw (r6+112),r0                                 
  (*fs)->flags = flags;                                               
 801ca04:	58 ce 00 00 	sw (r6+0),r14                                  
#endif                                                                
                                                                      
  /*                                                                  
   * Open the buffer interface.                                       
   */                                                                 
  rc = rtems_rfs_buffer_open (name, *fs);                             
 801ca08:	b9 80 08 00 	mv r1,r12                                      
 801ca0c:	b8 c0 10 00 	mv r2,r6                                       
 801ca10:	fb ff f5 95 	calli 801a064 <rtems_rfs_buffer_open>          
 801ca14:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 801ca18:	4c 01 00 12 	bge r0,r1,801ca60 <rtems_rfs_fs_open+0x160>    <== ALWAYS TAKEN
  {                                                                   
    free (*fs);                                                       
 801ca1c:	29 a1 00 00 	lw r1,(r13+0)                                  <== NOT EXECUTED
 801ca20:	fb ff a6 9b 	calli 800648c <free>                           <== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
 801ca24:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801ca28:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 801ca2c:	fb ff d0 5e 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801ca30:	44 20 00 08 	be r1,r0,801ca50 <rtems_rfs_fs_open+0x150>     <== NOT EXECUTED
      printf ("rtems-rfs: open: buffer open failed: %d: %s\n",        
 801ca34:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801ca38:	f8 00 17 0d 	calli 802266c <strerror>                       <== NOT EXECUTED
 801ca3c:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 801ca40:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801ca44:	38 21 72 74 	ori r1,r1,0x7274                               <== NOT EXECUTED
 801ca48:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 801ca4c:	f8 00 12 4d 	calli 8021380 <printf>                         <== NOT EXECUTED
              rc, strerror (rc));                                     
    errno = rc;                                                       
 801ca50:	f8 00 0b f1 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 801ca54:	58 2b 00 00 	sw (r1+0),r11                                  <== NOT EXECUTED
    return -1;                                                        
 801ca58:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 801ca5c:	e0 00 01 c0 	bi 801d15c <rtems_rfs_fs_open+0x85c>           <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_fs_read_superblock (*fs);                            
 801ca60:	29 ac 00 00 	lw r12,(r13+0)                                 
      printf ("rtems-rfs: read-superblock: handle open failed: %d: %s\n",
              rc, strerror (rc));                                     
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_buffer_handle_request (fs, &handle, 0, true);        
 801ca64:	37 82 00 4c 	addi r2,sp,76                                  
 801ca68:	34 03 00 00 	mvi r3,0                                       
 801ca6c:	b9 80 08 00 	mv r1,r12                                      
 801ca70:	34 04 00 01 	mvi r4,1                                       
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
 801ca74:	33 80 00 4c 	sb (sp+76),r0                                  
  handle->bnum  = 0;                                                  
 801ca78:	5b 80 00 50 	sw (sp+80),r0                                  
  handle->buffer = NULL;                                              
 801ca7c:	5b 80 00 54 	sw (sp+84),r0                                  
 801ca80:	fb ff f4 df 	calli 8019dfc <rtems_rfs_buffer_handle_request>
 801ca84:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 801ca88:	4c 01 00 0b 	bge r0,r1,801cab4 <rtems_rfs_fs_open+0x1b4>    <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
 801ca8c:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801ca90:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 801ca94:	fb ff d0 44 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801ca98:	44 20 01 5c 	be r1,r0,801d008 <rtems_rfs_fs_open+0x708>     <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: request failed%d: %s\n",   
 801ca9c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801caa0:	f8 00 16 f3 	calli 802266c <strerror>                       <== NOT EXECUTED
 801caa4:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 801caa8:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801caac:	38 21 72 a4 	ori r1,r1,0x72a4                               <== NOT EXECUTED
 801cab0:	e0 00 01 0f 	bi 801ceec <rtems_rfs_fs_open+0x5ec>           <== NOT EXECUTED
              rc, strerror (rc));                                     
    return rc;                                                        
  }                                                                   
                                                                      
  sb = rtems_rfs_buffer_data (&handle);                               
 801cab4:	2b 81 00 54 	lw r1,(sp+84)                                  
                                                                      
#define read_sb(_o) rtems_rfs_read_u32 (sb + (_o))                    
                                                                      
  if (read_sb (RTEMS_RFS_SB_OFFSET_MAGIC) != RTEMS_RFS_SB_MAGIC)      
 801cab8:	34 02 00 18 	mvi r2,24                                      
      printf ("rtems-rfs: read-superblock: request failed%d: %s\n",   
              rc, strerror (rc));                                     
    return rc;                                                        
  }                                                                   
                                                                      
  sb = rtems_rfs_buffer_data (&handle);                               
 801cabc:	28 2b 00 1c 	lw r11,(r1+28)                                 
                                                                      
#define read_sb(_o) rtems_rfs_read_u32 (sb + (_o))                    
                                                                      
  if (read_sb (RTEMS_RFS_SB_OFFSET_MAGIC) != RTEMS_RFS_SB_MAGIC)      
 801cac0:	41 61 00 00 	lbu r1,(r11+0)                                 
 801cac4:	41 6e 00 03 	lbu r14,(r11+3)                                
 801cac8:	fb ff 92 86 	calli 80014e0 <__ashlsi3>                      
 801cacc:	b9 c1 70 00 	or r14,r14,r1                                  
 801cad0:	41 61 00 01 	lbu r1,(r11+1)                                 
 801cad4:	34 02 00 10 	mvi r2,16                                      
 801cad8:	fb ff 92 82 	calli 80014e0 <__ashlsi3>                      
 801cadc:	b9 c1 70 00 	or r14,r14,r1                                  
 801cae0:	41 61 00 02 	lbu r1,(r11+2)                                 
 801cae4:	34 02 00 08 	mvi r2,8                                       
 801cae8:	fb ff 92 7e 	calli 80014e0 <__ashlsi3>                      
 801caec:	78 03 08 03 	mvhi r3,0x803                                  
 801caf0:	38 63 56 9c 	ori r3,r3,0x569c                               
 801caf4:	28 62 00 00 	lw r2,(r3+0)                                   
 801caf8:	b9 c1 08 00 	or r1,r14,r1                                   
 801cafc:	44 22 00 08 	be r1,r2,801cb1c <rtems_rfs_fs_open+0x21c>     <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
 801cb00:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801cb04:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 801cb08:	fb ff d0 27 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801cb0c:	44 20 00 62 	be r1,r0,801cc94 <rtems_rfs_fs_open+0x394>     <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: invalid superblock, bad magic\n");
 801cb10:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801cb14:	38 21 72 d8 	ori r1,r1,0x72d8                               <== NOT EXECUTED
 801cb18:	e0 00 00 36 	bi 801cbf0 <rtems_rfs_fs_open+0x2f0>           <== NOT EXECUTED
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    return EIO;                                                       
  }                                                                   
                                                                      
  fs->blocks     = read_sb (RTEMS_RFS_SB_OFFSET_BLOCKS);              
 801cb1c:	41 61 00 0c 	lbu r1,(r11+12)                                
 801cb20:	34 02 00 18 	mvi r2,24                                      
 801cb24:	fb ff 92 6f 	calli 80014e0 <__ashlsi3>                      
 801cb28:	b8 20 78 00 	mv r15,r1                                      
 801cb2c:	41 61 00 0d 	lbu r1,(r11+13)                                
 801cb30:	34 02 00 10 	mvi r2,16                                      
 801cb34:	fb ff 92 6b 	calli 80014e0 <__ashlsi3>                      
 801cb38:	b9 e1 08 00 	or r1,r15,r1                                   
 801cb3c:	41 6f 00 0f 	lbu r15,(r11+15)                               
 801cb40:	34 02 00 08 	mvi r2,8                                       
 801cb44:	b8 2f 78 00 	or r15,r1,r15                                  
 801cb48:	41 61 00 0e 	lbu r1,(r11+14)                                
 801cb4c:	fb ff 92 65 	calli 80014e0 <__ashlsi3>                      
 801cb50:	b9 e1 78 00 	or r15,r15,r1                                  
 801cb54:	59 8f 00 04 	sw (r12+4),r15                                 
  fs->block_size = read_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE);          
 801cb58:	41 61 00 08 	lbu r1,(r11+8)                                 
 801cb5c:	34 02 00 18 	mvi r2,24                                      
 801cb60:	fb ff 92 60 	calli 80014e0 <__ashlsi3>                      
 801cb64:	b8 20 70 00 	mv r14,r1                                      
 801cb68:	41 61 00 09 	lbu r1,(r11+9)                                 
 801cb6c:	34 02 00 10 	mvi r2,16                                      
 801cb70:	fb ff 92 5c 	calli 80014e0 <__ashlsi3>                      
 801cb74:	b9 c1 08 00 	or r1,r14,r1                                   
 801cb78:	41 6e 00 0b 	lbu r14,(r11+11)                               
 801cb7c:	34 02 00 08 	mvi r2,8                                       
 801cb80:	b8 2e 70 00 	or r14,r1,r14                                  
 801cb84:	41 61 00 0a 	lbu r1,(r11+10)                                
 801cb88:	fb ff 92 56 	calli 80014e0 <__ashlsi3>                      
 801cb8c:	b9 c1 70 00 	or r14,r14,r1                                  
}                                                                     
                                                                      
uint64_t                                                              
rtems_rfs_fs_media_size (rtems_rfs_file_system* fs)                   
{                                                                     
  uint64_t media_blocks = (uint64_t) rtems_rfs_fs_media_blocks (fs);  
 801cb90:	29 91 00 10 	lw r17,(r12+16)                                
uint64_t                                                              
rtems_rfs_fs_size (rtems_rfs_file_system* fs)                         
{                                                                     
  uint64_t blocks = rtems_rfs_fs_blocks (fs);                         
  uint64_t block_size = rtems_rfs_fs_block_size (fs);                 
  return blocks * block_size;                                         
 801cb94:	b9 e0 20 00 	mv r4,r15                                      
 801cb98:	34 03 00 00 	mvi r3,0                                       
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    return EIO;                                                       
  }                                                                   
                                                                      
  fs->blocks     = read_sb (RTEMS_RFS_SB_OFFSET_BLOCKS);              
  fs->block_size = read_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE);          
 801cb9c:	59 8e 00 08 	sw (r12+8),r14                                 
uint64_t                                                              
rtems_rfs_fs_size (rtems_rfs_file_system* fs)                         
{                                                                     
  uint64_t blocks = rtems_rfs_fs_blocks (fs);                         
  uint64_t block_size = rtems_rfs_fs_block_size (fs);                 
  return blocks * block_size;                                         
 801cba0:	34 01 00 00 	mvi r1,0                                       
 801cba4:	b9 c0 10 00 	mv r2,r14                                      
 801cba8:	f8 00 43 43 	calli 802d8b4 <__muldi3>                       
 801cbac:	b8 40 80 00 	mv r16,r2                                      
uint64_t                                                              
rtems_rfs_fs_media_size (rtems_rfs_file_system* fs)                   
{                                                                     
  uint64_t media_blocks = (uint64_t) rtems_rfs_fs_media_blocks (fs);  
  uint64_t media_block_size = (uint64_t) rtems_rfs_fs_media_block_size (fs);
  return media_blocks * media_block_size;                             
 801cbb0:	2a 24 00 1c 	lw r4,(r17+28)                                 
 801cbb4:	2a 22 00 20 	lw r2,(r17+32)                                 
uint64_t                                                              
rtems_rfs_fs_size (rtems_rfs_file_system* fs)                         
{                                                                     
  uint64_t blocks = rtems_rfs_fs_blocks (fs);                         
  uint64_t block_size = rtems_rfs_fs_block_size (fs);                 
  return blocks * block_size;                                         
 801cbb8:	b8 20 78 00 	mv r15,r1                                      
uint64_t                                                              
rtems_rfs_fs_media_size (rtems_rfs_file_system* fs)                   
{                                                                     
  uint64_t media_blocks = (uint64_t) rtems_rfs_fs_media_blocks (fs);  
  uint64_t media_block_size = (uint64_t) rtems_rfs_fs_media_block_size (fs);
  return media_blocks * media_block_size;                             
 801cbbc:	34 03 00 00 	mvi r3,0                                       
 801cbc0:	34 01 00 00 	mvi r1,0                                       
 801cbc4:	f8 00 43 3c 	calli 802d8b4 <__muldi3>                       
  }                                                                   
                                                                      
  fs->blocks     = read_sb (RTEMS_RFS_SB_OFFSET_BLOCKS);              
  fs->block_size = read_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE);          
                                                                      
  if (rtems_rfs_fs_size(fs) > rtems_rfs_fs_media_size (fs))           
 801cbc8:	55 e1 00 04 	bgu r15,r1,801cbd8 <rtems_rfs_fs_open+0x2d8>   <== NEVER TAKEN
 801cbcc:	5d e1 00 0b 	bne r15,r1,801cbf8 <rtems_rfs_fs_open+0x2f8>   <== NEVER TAKEN
 801cbd0:	56 02 00 02 	bgu r16,r2,801cbd8 <rtems_rfs_fs_open+0x2d8>   <== NEVER TAKEN
 801cbd4:	e0 00 00 09 	bi 801cbf8 <rtems_rfs_fs_open+0x2f8>           
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
 801cbd8:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801cbdc:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 801cbe0:	fb ff cf f1 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801cbe4:	44 20 00 2c 	be r1,r0,801cc94 <rtems_rfs_fs_open+0x394>     <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: invalid superblock block/size count\n");
 801cbe8:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801cbec:	38 21 73 14 	ori r1,r1,0x7314                               <== NOT EXECUTED
 801cbf0:	f8 00 12 ac 	calli 80216a0 <puts>                           <== NOT EXECUTED
 801cbf4:	e0 00 00 28 	bi 801cc94 <rtems_rfs_fs_open+0x394>           <== NOT EXECUTED
              read_sb (RTEMS_RFS_SB_OFFSET_VERSION), RTEMS_RFS_VERSION_MASK);
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    return EIO;                                                       
  }                                                                   
                                                                      
  if (read_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE) != RTEMS_RFS_INODE_SIZE)
 801cbf8:	41 61 00 24 	lbu r1,(r11+36)                                
 801cbfc:	34 02 00 18 	mvi r2,24                                      
 801cc00:	fb ff 92 38 	calli 80014e0 <__ashlsi3>                      
 801cc04:	b8 20 78 00 	mv r15,r1                                      
 801cc08:	41 61 00 25 	lbu r1,(r11+37)                                
 801cc0c:	34 02 00 10 	mvi r2,16                                      
 801cc10:	fb ff 92 34 	calli 80014e0 <__ashlsi3>                      
 801cc14:	b9 e1 08 00 	or r1,r15,r1                                   
 801cc18:	41 6f 00 27 	lbu r15,(r11+39)                               
 801cc1c:	34 02 00 08 	mvi r2,8                                       
 801cc20:	b8 2f 78 00 	or r15,r1,r15                                  
 801cc24:	41 61 00 26 	lbu r1,(r11+38)                                
 801cc28:	fb ff 92 2e 	calli 80014e0 <__ashlsi3>                      
 801cc2c:	b9 e1 08 00 	or r1,r15,r1                                   
 801cc30:	34 02 00 38 	mvi r2,56                                      
 801cc34:	44 22 00 1d 	be r1,r2,801cca8 <rtems_rfs_fs_open+0x3a8>     <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
 801cc38:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801cc3c:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 801cc40:	fb ff cf d9 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801cc44:	44 20 00 14 	be r1,r0,801cc94 <rtems_rfs_fs_open+0x394>     <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: inode size mismatch: fs:%" PRId32 " target:%" PRId32 "\n",
              read_sb (RTEMS_RFS_SB_OFFSET_VERSION), RTEMS_RFS_VERSION_MASK);
 801cc48:	41 61 00 04 	lbu r1,(r11+4)                                 <== NOT EXECUTED
 801cc4c:	34 02 00 18 	mvi r2,24                                      <== NOT EXECUTED
  }                                                                   
                                                                      
  if (read_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE) != RTEMS_RFS_INODE_SIZE)
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
      printf ("rtems-rfs: read-superblock: inode size mismatch: fs:%" PRId32 " target:%" PRId32 "\n",
 801cc50:	78 0e 08 03 	mvhi r14,0x803                                 <== NOT EXECUTED
              read_sb (RTEMS_RFS_SB_OFFSET_VERSION), RTEMS_RFS_VERSION_MASK);
 801cc54:	fb ff 92 23 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 801cc58:	b8 20 78 00 	mv r15,r1                                      <== NOT EXECUTED
 801cc5c:	41 61 00 05 	lbu r1,(r11+5)                                 <== NOT EXECUTED
 801cc60:	34 02 00 10 	mvi r2,16                                      <== NOT EXECUTED
  }                                                                   
                                                                      
  if (read_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE) != RTEMS_RFS_INODE_SIZE)
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
      printf ("rtems-rfs: read-superblock: inode size mismatch: fs:%" PRId32 " target:%" PRId32 "\n",
 801cc64:	39 ce 73 54 	ori r14,r14,0x7354                             <== NOT EXECUTED
              read_sb (RTEMS_RFS_SB_OFFSET_VERSION), RTEMS_RFS_VERSION_MASK);
 801cc68:	fb ff 92 1e 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 801cc6c:	b9 e1 08 00 	or r1,r15,r1                                   <== NOT EXECUTED
 801cc70:	41 6f 00 07 	lbu r15,(r11+7)                                <== NOT EXECUTED
 801cc74:	34 02 00 08 	mvi r2,8                                       <== NOT EXECUTED
 801cc78:	b8 2f 78 00 	or r15,r1,r15                                  <== NOT EXECUTED
 801cc7c:	41 61 00 06 	lbu r1,(r11+6)                                 <== NOT EXECUTED
 801cc80:	fb ff 92 18 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
  }                                                                   
                                                                      
  if (read_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE) != RTEMS_RFS_INODE_SIZE)
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
      printf ("rtems-rfs: read-superblock: inode size mismatch: fs:%" PRId32 " target:%" PRId32 "\n",
 801cc84:	b9 e1 10 00 	or r2,r15,r1                                   <== NOT EXECUTED
 801cc88:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 801cc8c:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 801cc90:	f8 00 11 bc 	calli 8021380 <printf>                         <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 801cc94:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801cc98:	37 82 00 4c 	addi r2,sp,76                                  <== NOT EXECUTED
 801cc9c:	fb ff f3 e9 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
              read_sb (RTEMS_RFS_SB_OFFSET_VERSION), RTEMS_RFS_VERSION_MASK);
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    return EIO;                                                       
 801cca0:	34 0b 00 05 	mvi r11,5                                      <== NOT EXECUTED
 801cca4:	e0 00 00 d9 	bi 801d008 <rtems_rfs_fs_open+0x708>           <== NOT EXECUTED
  }                                                                   
                                                                      
  fs->bad_blocks      = read_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS);     
 801cca8:	41 61 00 10 	lbu r1,(r11+16)                                
 801ccac:	34 02 00 18 	mvi r2,24                                      
 801ccb0:	fb ff 92 0c 	calli 80014e0 <__ashlsi3>                      
 801ccb4:	b8 20 78 00 	mv r15,r1                                      
 801ccb8:	41 61 00 11 	lbu r1,(r11+17)                                
 801ccbc:	34 02 00 10 	mvi r2,16                                      
 801ccc0:	fb ff 92 08 	calli 80014e0 <__ashlsi3>                      
 801ccc4:	b9 e1 08 00 	or r1,r15,r1                                   
 801ccc8:	41 6f 00 13 	lbu r15,(r11+19)                               
 801cccc:	34 02 00 08 	mvi r2,8                                       
 801ccd0:	b8 2f 78 00 	or r15,r1,r15                                  
 801ccd4:	41 61 00 12 	lbu r1,(r11+18)                                
 801ccd8:	fb ff 92 02 	calli 80014e0 <__ashlsi3>                      
 801ccdc:	b9 e1 08 00 	or r1,r15,r1                                   
 801cce0:	59 81 00 18 	sw (r12+24),r1                                 
  fs->max_name_length = read_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH);
 801cce4:	41 61 00 14 	lbu r1,(r11+20)                                
 801cce8:	34 02 00 18 	mvi r2,24                                      
 801ccec:	fb ff 91 fd 	calli 80014e0 <__ashlsi3>                      
 801ccf0:	b8 20 78 00 	mv r15,r1                                      
 801ccf4:	41 61 00 15 	lbu r1,(r11+21)                                
 801ccf8:	34 02 00 10 	mvi r2,16                                      
 801ccfc:	fb ff 91 f9 	calli 80014e0 <__ashlsi3>                      
 801cd00:	b9 e1 08 00 	or r1,r15,r1                                   
 801cd04:	41 6f 00 17 	lbu r15,(r11+23)                               
 801cd08:	34 02 00 08 	mvi r2,8                                       
 801cd0c:	b8 2f 78 00 	or r15,r1,r15                                  
 801cd10:	41 61 00 16 	lbu r1,(r11+22)                                
 801cd14:	fb ff 91 f3 	calli 80014e0 <__ashlsi3>                      
 801cd18:	b9 e1 08 00 	or r1,r15,r1                                   
 801cd1c:	59 81 00 1c 	sw (r12+28),r1                                 
  fs->group_count     = read_sb (RTEMS_RFS_SB_OFFSET_GROUPS);         
 801cd20:	41 61 00 18 	lbu r1,(r11+24)                                
 801cd24:	34 02 00 18 	mvi r2,24                                      
 801cd28:	fb ff 91 ee 	calli 80014e0 <__ashlsi3>                      
 801cd2c:	b8 20 80 00 	mv r16,r1                                      
 801cd30:	41 61 00 19 	lbu r1,(r11+25)                                
 801cd34:	34 02 00 10 	mvi r2,16                                      
 801cd38:	fb ff 91 ea 	calli 80014e0 <__ashlsi3>                      
 801cd3c:	ba 01 08 00 	or r1,r16,r1                                   
 801cd40:	41 70 00 1b 	lbu r16,(r11+27)                               
 801cd44:	34 02 00 08 	mvi r2,8                                       
 801cd48:	b8 30 80 00 	or r16,r1,r16                                  
 801cd4c:	41 61 00 1a 	lbu r1,(r11+26)                                
 801cd50:	fb ff 91 e4 	calli 80014e0 <__ashlsi3>                      
 801cd54:	ba 01 80 00 	or r16,r16,r1                                  
 801cd58:	59 90 00 24 	sw (r12+36),r16                                
  fs->group_blocks    = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS);   
 801cd5c:	41 61 00 1c 	lbu r1,(r11+28)                                
 801cd60:	34 02 00 18 	mvi r2,24                                      
 801cd64:	fb ff 91 df 	calli 80014e0 <__ashlsi3>                      
 801cd68:	b8 20 78 00 	mv r15,r1                                      
 801cd6c:	41 61 00 1d 	lbu r1,(r11+29)                                
 801cd70:	34 02 00 10 	mvi r2,16                                      
 801cd74:	fb ff 91 db 	calli 80014e0 <__ashlsi3>                      
 801cd78:	b9 e1 08 00 	or r1,r15,r1                                   
 801cd7c:	41 6f 00 1f 	lbu r15,(r11+31)                               
 801cd80:	34 02 00 08 	mvi r2,8                                       
 801cd84:	b8 2f 78 00 	or r15,r1,r15                                  
 801cd88:	41 61 00 1e 	lbu r1,(r11+30)                                
 801cd8c:	fb ff 91 d5 	calli 80014e0 <__ashlsi3>                      
 801cd90:	b9 e1 78 00 	or r15,r15,r1                                  
 801cd94:	59 8f 00 28 	sw (r12+40),r15                                
  fs->group_inodes    = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES);   
 801cd98:	41 61 00 20 	lbu r1,(r11+32)                                
 801cd9c:	34 02 00 18 	mvi r2,24                                      
 801cda0:	fb ff 91 d0 	calli 80014e0 <__ashlsi3>                      
 801cda4:	b8 20 88 00 	mv r17,r1                                      
 801cda8:	41 61 00 21 	lbu r1,(r11+33)                                
 801cdac:	34 02 00 10 	mvi r2,16                                      
 801cdb0:	fb ff 91 cc 	calli 80014e0 <__ashlsi3>                      
 801cdb4:	ba 21 08 00 	or r1,r17,r1                                   
 801cdb8:	41 71 00 23 	lbu r17,(r11+35)                               
 801cdbc:	34 02 00 08 	mvi r2,8                                       
 801cdc0:	b8 31 88 00 	or r17,r1,r17                                  
 801cdc4:	41 61 00 22 	lbu r1,(r11+34)                                
 801cdc8:	fb ff 91 c6 	calli 80014e0 <__ashlsi3>                      
 801cdcc:	ba 21 88 00 	or r17,r17,r1                                  
                                                                      
  fs->blocks_per_block =                                              
    rtems_rfs_fs_block_size (fs) / sizeof (rtems_rfs_inode_block);    
 801cdd0:	34 02 00 02 	mvi r2,2                                       
 801cdd4:	b9 c0 08 00 	mv r1,r14                                      
                                                                      
  fs->bad_blocks      = read_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS);     
  fs->max_name_length = read_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH);
  fs->group_count     = read_sb (RTEMS_RFS_SB_OFFSET_GROUPS);         
  fs->group_blocks    = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS);   
  fs->group_inodes    = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES);   
 801cdd8:	59 91 00 2c 	sw (r12+44),r17                                
                                                                      
  fs->blocks_per_block =                                              
    rtems_rfs_fs_block_size (fs) / sizeof (rtems_rfs_inode_block);    
 801cddc:	fb ff 91 e8 	calli 800157c <__lshrsi3>                      
                                                                      
  fs->block_map_singly_blocks =                                       
    fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;                    
 801cde0:	34 02 00 02 	mvi r2,2                                       
  fs->max_name_length = read_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH);
  fs->group_count     = read_sb (RTEMS_RFS_SB_OFFSET_GROUPS);         
  fs->group_blocks    = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS);   
  fs->group_inodes    = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES);   
                                                                      
  fs->blocks_per_block =                                              
 801cde4:	59 81 00 34 	sw (r12+52),r1                                 
    rtems_rfs_fs_block_size (fs) / sizeof (rtems_rfs_inode_block);    
 801cde8:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  fs->block_map_singly_blocks =                                       
    fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;                    
 801cdec:	fb ff 91 bd 	calli 80014e0 <__ashlsi3>                      
 801cdf0:	b4 2b 08 00 	add r1,r1,r11                                  
  fs->block_map_doubly_blocks =                                       
    fs->blocks_per_block * fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
 801cdf4:	b9 60 10 00 	mv r2,r11                                      
  fs->group_inodes    = read_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES);   
                                                                      
  fs->blocks_per_block =                                              
    rtems_rfs_fs_block_size (fs) / sizeof (rtems_rfs_inode_block);    
                                                                      
  fs->block_map_singly_blocks =                                       
 801cdf8:	59 81 00 38 	sw (r12+56),r1                                 
    fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;                    
  fs->block_map_doubly_blocks =                                       
    fs->blocks_per_block * fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
 801cdfc:	b9 60 08 00 	mv r1,r11                                      
 801ce00:	fb ff 92 06 	calli 8001618 <__mulsi3>                       
 801ce04:	34 02 00 02 	mvi r2,2                                       
 801ce08:	b8 20 58 00 	mv r11,r1                                      
 801ce0c:	fb ff 91 b5 	calli 80014e0 <__ashlsi3>                      
 801ce10:	b4 2b 08 00 	add r1,r1,r11                                  
  fs->blocks_per_block =                                              
    rtems_rfs_fs_block_size (fs) / sizeof (rtems_rfs_inode_block);    
                                                                      
  fs->block_map_singly_blocks =                                       
    fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;                    
  fs->block_map_doubly_blocks =                                       
 801ce14:	59 81 00 3c 	sw (r12+60),r1                                 
    fs->blocks_per_block * fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;
                                                                      
  fs->inodes = fs->group_count * fs->group_inodes;                    
 801ce18:	ba 00 10 00 	mv r2,r16                                      
 801ce1c:	ba 20 08 00 	mv r1,r17                                      
 801ce20:	fb ff 91 fe 	calli 8001618 <__mulsi3>                       
 801ce24:	59 81 00 14 	sw (r12+20),r1                                 
                                                                      
  fs->inodes_per_block = fs->block_size / RTEMS_RFS_INODE_SIZE;       
 801ce28:	34 02 00 38 	mvi r2,56                                      
 801ce2c:	b9 c0 08 00 	mv r1,r14                                      
 801ce30:	fb ff 92 06 	calli 8001648 <__udivsi3>                      
 801ce34:	59 81 00 30 	sw (r12+48),r1                                 
                                                                      
  if (fs->group_blocks >                                              
      rtems_rfs_bitmap_numof_bits (rtems_rfs_fs_block_size (fs)))     
 801ce38:	34 02 00 03 	mvi r2,3                                       
 801ce3c:	b9 c0 08 00 	mv r1,r14                                      
 801ce40:	fb ff 91 a8 	calli 80014e0 <__ashlsi3>                      
 801ce44:	37 8e 00 4c 	addi r14,sp,76                                 
                                                                      
  fs->inodes = fs->group_count * fs->group_inodes;                    
                                                                      
  fs->inodes_per_block = fs->block_size / RTEMS_RFS_INODE_SIZE;       
                                                                      
  if (fs->group_blocks >                                              
 801ce48:	50 2f 00 0f 	bgeu r1,r15,801ce84 <rtems_rfs_fs_open+0x584>  <== ALWAYS TAKEN
 801ce4c:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 801ce50:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801ce54:	fb ff f3 7b 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
      rtems_rfs_bitmap_numof_bits (rtems_rfs_fs_block_size (fs)))     
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
 801ce58:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801ce5c:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
  handle->dirty = false;                                              
 801ce60:	33 80 00 4c 	sb (sp+76),r0                                  <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 801ce64:	5b 80 00 50 	sw (sp+80),r0                                  <== NOT EXECUTED
  handle->buffer = NULL;                                              
 801ce68:	5b 80 00 54 	sw (sp+84),r0                                  <== NOT EXECUTED
 801ce6c:	fb ff cf 4e 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: groups blocks larger than block bits\n");
    return EIO;                                                       
 801ce70:	34 0b 00 05 	mvi r11,5                                      <== NOT EXECUTED
                                                                      
  if (fs->group_blocks >                                              
      rtems_rfs_bitmap_numof_bits (rtems_rfs_fs_block_size (fs)))     
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
 801ce74:	44 20 00 65 	be r1,r0,801d008 <rtems_rfs_fs_open+0x708>     <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: groups blocks larger than block bits\n");
 801ce78:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801ce7c:	38 21 73 98 	ori r1,r1,0x7398                               <== NOT EXECUTED
 801ce80:	e0 00 00 34 	bi 801cf50 <rtems_rfs_fs_open+0x650>           <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 801ce84:	b9 c0 10 00 	mv r2,r14                                      
 801ce88:	b9 80 08 00 	mv r1,r12                                      
 801ce8c:	fb ff f3 6d 	calli 8019c40 <rtems_rfs_buffer_handle_release>
  rtems_rfs_buffer_handle_close (fs, &handle);                        
                                                                      
  /*                                                                  
   * Change the block size to the value in the superblock.            
   */                                                                 
  rc = rtems_rfs_buffer_setblksize (fs, rtems_rfs_fs_block_size (fs));
 801ce90:	29 82 00 08 	lw r2,(r12+8)                                  
 801ce94:	b9 80 08 00 	mv r1,r12                                      
  handle->dirty = false;                                              
 801ce98:	33 80 00 4c 	sb (sp+76),r0                                  
  handle->bnum  = 0;                                                  
 801ce9c:	5b 80 00 50 	sw (sp+80),r0                                  
  handle->buffer = NULL;                                              
 801cea0:	5b 80 00 54 	sw (sp+84),r0                                  
 801cea4:	fb ff f5 18 	calli 801a304 <rtems_rfs_buffer_setblksize>    
 801cea8:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 801ceac:	4c 01 00 13 	bge r0,r1,801cef8 <rtems_rfs_fs_open+0x5f8>    <== ALWAYS TAKEN
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 801ceb0:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 801ceb4:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801ceb8:	fb ff f3 62 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
 801cebc:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801cec0:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
  handle->dirty = false;                                              
 801cec4:	33 80 00 4c 	sb (sp+76),r0                                  <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 801cec8:	5b 80 00 50 	sw (sp+80),r0                                  <== NOT EXECUTED
  handle->buffer = NULL;                                              
 801cecc:	5b 80 00 54 	sw (sp+84),r0                                  <== NOT EXECUTED
 801ced0:	fb ff cf 35 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801ced4:	44 20 00 4d 	be r1,r0,801d008 <rtems_rfs_fs_open+0x708>     <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: invalid superblock block size%d: %s\n",
 801ced8:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801cedc:	f8 00 15 e4 	calli 802266c <strerror>                       <== NOT EXECUTED
 801cee0:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 801cee4:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801cee8:	38 21 73 dc 	ori r1,r1,0x73dc                               <== NOT EXECUTED
 801ceec:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 801cef0:	f8 00 11 24 	calli 8021380 <printf>                         <== NOT EXECUTED
 801cef4:	e0 00 00 45 	bi 801d008 <rtems_rfs_fs_open+0x708>           <== NOT EXECUTED
              rc, strerror (rc));                                     
    return rc;                                                        
  }                                                                   
                                                                      
  fs->groups = calloc (fs->group_count, sizeof (rtems_rfs_group));    
 801cef8:	29 81 00 24 	lw r1,(r12+36)                                 
 801cefc:	34 02 00 50 	mvi r2,80                                      
 801cf00:	fb ff a4 e5 	calli 8006294 <calloc>                         
 801cf04:	59 81 00 20 	sw (r12+32),r1                                 
 801cf08:	b8 20 78 00 	mv r15,r1                                      
                                                                      
  if (!fs->groups)                                                    
 801cf0c:	44 20 00 04 	be r1,r0,801cf1c <rtems_rfs_fs_open+0x61c>     <== NEVER TAKEN
 801cf10:	34 0f 00 00 	mvi r15,0                                      
 801cf14:	34 0e 00 00 	mvi r14,0                                      
 801cf18:	e0 00 00 39 	bi 801cffc <rtems_rfs_fs_open+0x6fc>           
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 801cf1c:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 801cf20:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801cf24:	fb ff f3 47 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
 801cf28:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801cf2c:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
  handle->dirty = false;                                              
 801cf30:	33 80 00 4c 	sb (sp+76),r0                                  <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 801cf34:	5b 80 00 50 	sw (sp+80),r0                                  <== NOT EXECUTED
  handle->buffer = NULL;                                              
 801cf38:	5b 80 00 54 	sw (sp+84),r0                                  <== NOT EXECUTED
 801cf3c:	fb ff cf 1a 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: no memory for group table\n");
    return ENOMEM;                                                    
 801cf40:	34 0b 00 0c 	mvi r11,12                                     <== NOT EXECUTED
  fs->groups = calloc (fs->group_count, sizeof (rtems_rfs_group));    
                                                                      
  if (!fs->groups)                                                    
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
 801cf44:	45 e1 00 31 	be r15,r1,801d008 <rtems_rfs_fs_open+0x708>    <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: no memory for group table\n");
 801cf48:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801cf4c:	38 21 74 20 	ori r1,r1,0x7420                               <== NOT EXECUTED
 801cf50:	f8 00 11 d4 	calli 80216a0 <puts>                           <== NOT EXECUTED
 801cf54:	e0 00 00 2d 	bi 801d008 <rtems_rfs_fs_open+0x708>           <== NOT EXECUTED
   * close everything.                                                
   */                                                                 
  for (group = 0; group < fs->group_count; group++)                   
  {                                                                   
    rc = rtems_rfs_group_open (fs,                                    
                               rtems_rfs_fs_block (fs, group, 0),     
 801cf58:	29 8b 00 28 	lw r11,(r12+40)                                
 801cf5c:	b9 c0 08 00 	mv r1,r14                                      
 801cf60:	b9 60 10 00 	mv r2,r11                                      
 801cf64:	fb ff 91 ad 	calli 8001618 <__mulsi3>                       
   * know how far the initialisation has gone if an error occurs and we need to
   * close everything.                                                
   */                                                                 
  for (group = 0; group < fs->group_count; group++)                   
  {                                                                   
    rc = rtems_rfs_group_open (fs,                                    
 801cf68:	29 85 00 20 	lw r5,(r12+32)                                 
 801cf6c:	29 84 00 2c 	lw r4,(r12+44)                                 
                               rtems_rfs_fs_block (fs, group, 0),     
 801cf70:	34 22 00 01 	addi r2,r1,1                                   
   * know how far the initialisation has gone if an error occurs and we need to
   * close everything.                                                
   */                                                                 
  for (group = 0; group < fs->group_count; group++)                   
  {                                                                   
    rc = rtems_rfs_group_open (fs,                                    
 801cf74:	b9 60 18 00 	mv r3,r11                                      
 801cf78:	b4 af 28 00 	add r5,r5,r15                                  
 801cf7c:	b9 80 08 00 	mv r1,r12                                      
 801cf80:	fb ff c5 11 	calli 800e3c4 <rtems_rfs_group_open>           
 801cf84:	b8 20 58 00 	mv r11,r1                                      
 801cf88:	35 ef 00 50 	addi r15,r15,80                                
                               rtems_rfs_fs_block (fs, group, 0),     
                               fs->group_blocks,                      
                               fs->group_inodes,                      
                               &fs->groups[group]);                   
    if (rc > 0)                                                       
 801cf8c:	4c 01 00 1b 	bge r0,r1,801cff8 <rtems_rfs_fs_open+0x6f8>    <== ALWAYS TAKEN
 801cf90:	34 10 00 00 	mvi r16,0                                      <== NOT EXECUTED
 801cf94:	34 0f 00 00 	mvi r15,0                                      <== NOT EXECUTED
 801cf98:	e0 00 00 07 	bi 801cfb4 <rtems_rfs_fs_open+0x6b4>           <== NOT EXECUTED
    {                                                                 
      int g;                                                          
      for (g = 0; g < group; g++)                                     
        rtems_rfs_group_close (fs, &fs->groups[g]);                   
 801cf9c:	29 82 00 20 	lw r2,(r12+32)                                 <== NOT EXECUTED
 801cfa0:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
                               fs->group_inodes,                      
                               &fs->groups[group]);                   
    if (rc > 0)                                                       
    {                                                                 
      int g;                                                          
      for (g = 0; g < group; g++)                                     
 801cfa4:	35 ef 00 01 	addi r15,r15,1                                 <== NOT EXECUTED
        rtems_rfs_group_close (fs, &fs->groups[g]);                   
 801cfa8:	b4 50 10 00 	add r2,r2,r16                                  <== NOT EXECUTED
 801cfac:	fb ff c5 8c 	calli 800e5dc <rtems_rfs_group_close>          <== NOT EXECUTED
                               fs->group_inodes,                      
                               &fs->groups[group]);                   
    if (rc > 0)                                                       
    {                                                                 
      int g;                                                          
      for (g = 0; g < group; g++)                                     
 801cfb0:	36 10 00 50 	addi r16,r16,80                                <== NOT EXECUTED
 801cfb4:	49 cf ff fa 	bg r14,r15,801cf9c <rtems_rfs_fs_open+0x69c>   <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 801cfb8:	37 82 00 4c 	addi r2,sp,76                                  <== NOT EXECUTED
 801cfbc:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801cfc0:	fb ff f3 20 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
        rtems_rfs_group_close (fs, &fs->groups[g]);                   
      rtems_rfs_buffer_handle_close (fs, &handle);                    
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                     
 801cfc4:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801cfc8:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
  handle->dirty = false;                                              
 801cfcc:	33 80 00 4c 	sb (sp+76),r0                                  <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 801cfd0:	5b 80 00 50 	sw (sp+80),r0                                  <== NOT EXECUTED
  handle->buffer = NULL;                                              
 801cfd4:	5b 80 00 54 	sw (sp+84),r0                                  <== NOT EXECUTED
 801cfd8:	fb ff ce f3 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801cfdc:	44 20 00 0b 	be r1,r0,801d008 <rtems_rfs_fs_open+0x708>     <== NOT EXECUTED
        printf ("rtems-rfs: read-superblock: no memory for group table%d: %s\n",
 801cfe0:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801cfe4:	f8 00 15 a2 	calli 802266c <strerror>                       <== NOT EXECUTED
 801cfe8:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 801cfec:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801cff0:	38 21 74 58 	ori r1,r1,0x7458                               <== NOT EXECUTED
 801cff4:	e3 ff ff be 	bi 801ceec <rtems_rfs_fs_open+0x5ec>           <== NOT EXECUTED
  /*                                                                  
   * Perform each phase of group initialisation at the same time. This way we
   * know how far the initialisation has gone if an error occurs and we need to
   * close everything.                                                
   */                                                                 
  for (group = 0; group < fs->group_count; group++)                   
 801cff8:	35 ce 00 01 	addi r14,r14,1                                 
 801cffc:	29 81 00 24 	lw r1,(r12+36)                                 
 801d000:	48 2e ff d6 	bg r1,r14,801cf58 <rtems_rfs_fs_open+0x658>    
 801d004:	e0 00 00 60 	bi 801d184 <rtems_rfs_fs_open+0x884>           
  }                                                                   
                                                                      
  rc = rtems_rfs_fs_read_superblock (*fs);                            
  if (rc > 0)                                                         
  {                                                                   
    rtems_rfs_buffer_close (*fs);                                     
 801d008:	29 a1 00 00 	lw r1,(r13+0)                                  <== NOT EXECUTED
 801d00c:	fb ff f4 f9 	calli 801a3f0 <rtems_rfs_buffer_close>         <== NOT EXECUTED
    free (*fs);                                                       
 801d010:	29 a1 00 00 	lw r1,(r13+0)                                  <== NOT EXECUTED
 801d014:	fb ff a5 1e 	calli 800648c <free>                           <== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
 801d018:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801d01c:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 801d020:	fb ff ce e1 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801d024:	44 20 fe 8b 	be r1,r0,801ca50 <rtems_rfs_fs_open+0x150>     <== NOT EXECUTED
      printf ("rtems-rfs: open: reading superblock: %d: %s\n",        
 801d028:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801d02c:	f8 00 15 90 	calli 802266c <strerror>                       <== NOT EXECUTED
 801d030:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 801d034:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801d038:	38 21 74 98 	ori r1,r1,0x7498                               <== NOT EXECUTED
 801d03c:	e3 ff fe 83 	bi 801ca48 <rtems_rfs_fs_open+0x148>           <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (*fs, RTEMS_RFS_ROOT_INO, &inode, true);  
  if (rc > 0)                                                         
  {                                                                   
    rtems_rfs_buffer_close (*fs);                                     
 801d040:	29 a1 00 00 	lw r1,(r13+0)                                  <== NOT EXECUTED
 801d044:	fb ff f4 eb 	calli 801a3f0 <rtems_rfs_buffer_close>         <== NOT EXECUTED
    free (*fs);                                                       
 801d048:	29 a1 00 00 	lw r1,(r13+0)                                  <== NOT EXECUTED
 801d04c:	fb ff a5 10 	calli 800648c <free>                           <== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
 801d050:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801d054:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 801d058:	fb ff ce d3 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801d05c:	44 20 fe 7d 	be r1,r0,801ca50 <rtems_rfs_fs_open+0x150>     <== NOT EXECUTED
      printf ("rtems-rfs: open: reading root inode: %d: %s\n",        
 801d060:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801d064:	f8 00 15 82 	calli 802266c <strerror>                       <== NOT EXECUTED
 801d068:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 801d06c:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801d070:	38 21 74 c8 	ori r1,r1,0x74c8                               <== NOT EXECUTED
 801d074:	e3 ff fe 75 	bi 801ca48 <rtems_rfs_fs_open+0x148>           <== NOT EXECUTED
              rc, strerror (rc));                                     
    errno = rc;                                                       
    return -1;                                                        
  }                                                                   
                                                                      
  if (((*fs)->flags & RTEMS_RFS_FS_FORCE_OPEN) == 0)                  
 801d078:	29 ab 00 00 	lw r11,(r13+0)                                 
 801d07c:	29 61 00 00 	lw r1,(r11+0)                                  
 801d080:	20 21 00 04 	andi r1,r1,0x4                                 
 801d084:	5c 20 00 20 	bne r1,r0,801d104 <rtems_rfs_fs_open+0x804>    
 * @return uint16_t The mode.                                         
 */                                                                   
static inline uint16_t                                                
rtems_rfs_inode_get_mode (rtems_rfs_inode_handle* handle)             
{                                                                     
  return rtems_rfs_read_u16 (&handle->node->mode);                    
 801d088:	2b 81 00 30 	lw r1,(sp+48)                                  
 801d08c:	34 02 00 08 	mvi r2,8                                       
 801d090:	34 2c 00 02 	addi r12,r1,2                                  
 801d094:	40 21 00 02 	lbu r1,(r1+2)                                  
 801d098:	fb ff 91 12 	calli 80014e0 <__ashlsi3>                      
 801d09c:	41 82 00 01 	lbu r2,(r12+1)                                 
 801d0a0:	b8 22 08 00 	or r1,r1,r2                                    
 801d0a4:	20 21 ff ff 	andi r1,r1,0xffff                              
  {                                                                   
    mode = rtems_rfs_inode_get_mode (&inode);                         
                                                                      
    if ((mode == 0xffff) || !RTEMS_RFS_S_ISDIR (mode))                
 801d0a8:	38 02 ff ff 	mvu r2,0xffff                                  
 801d0ac:	44 22 00 04 	be r1,r2,801d0bc <rtems_rfs_fs_open+0x7bc>     <== NEVER TAKEN
 801d0b0:	20 21 f0 00 	andi r1,r1,0xf000                              
 801d0b4:	34 02 40 00 	mvi r2,16384                                   
 801d0b8:	44 22 00 13 	be r1,r2,801d104 <rtems_rfs_fs_open+0x804>     <== ALWAYS TAKEN
    {                                                                 
      rtems_rfs_inode_close (*fs, &inode);                            
 801d0bc:	37 82 00 24 	addi r2,sp,36                                  <== NOT EXECUTED
 801d0c0:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801d0c4:	fb ff c7 8b 	calli 800eef0 <rtems_rfs_inode_close>          <== NOT EXECUTED
      rtems_rfs_buffer_close (*fs);                                   
 801d0c8:	29 a1 00 00 	lw r1,(r13+0)                                  <== NOT EXECUTED
 801d0cc:	fb ff f4 c9 	calli 801a3f0 <rtems_rfs_buffer_close>         <== NOT EXECUTED
      free (*fs);                                                     
 801d0d0:	29 a1 00 00 	lw r1,(r13+0)                                  <== NOT EXECUTED
 801d0d4:	fb ff a4 ee 	calli 800648c <free>                           <== NOT EXECUTED
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                     
 801d0d8:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801d0dc:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 801d0e0:	fb ff ce b1 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801d0e4:	44 20 00 04 	be r1,r0,801d0f4 <rtems_rfs_fs_open+0x7f4>     <== NOT EXECUTED
        printf ("rtems-rfs: open: invalid root inode mode\n");        
 801d0e8:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801d0ec:	38 21 74 f8 	ori r1,r1,0x74f8                               <== NOT EXECUTED
 801d0f0:	f8 00 11 6c 	calli 80216a0 <puts>                           <== NOT EXECUTED
      errno = EIO;                                                    
 801d0f4:	f8 00 0a 48 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 801d0f8:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 801d0fc:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 801d100:	e3 ff fe 56 	bi 801ca58 <rtems_rfs_fs_open+0x158>           <== NOT EXECUTED
      return -1;                                                      
    }                                                                 
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (*fs, &inode);                           
 801d104:	b9 60 08 00 	mv r1,r11                                      
 801d108:	37 82 00 24 	addi r2,sp,36                                  
 801d10c:	fb ff c7 79 	calli 800eef0 <rtems_rfs_inode_close>          
 801d110:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 801d114:	4c 01 00 0f 	bge r0,r1,801d150 <rtems_rfs_fs_open+0x850>    <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_buffer_close (*fs);                                     
 801d118:	29 a1 00 00 	lw r1,(r13+0)                                  <== NOT EXECUTED
 801d11c:	fb ff f4 b5 	calli 801a3f0 <rtems_rfs_buffer_close>         <== NOT EXECUTED
    free (*fs);                                                       
 801d120:	29 a1 00 00 	lw r1,(r13+0)                                  <== NOT EXECUTED
 801d124:	fb ff a4 da 	calli 800648c <free>                           <== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
 801d128:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801d12c:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 801d130:	fb ff ce 9d 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801d134:	44 20 fe 47 	be r1,r0,801ca50 <rtems_rfs_fs_open+0x150>     <== NOT EXECUTED
      printf ("rtems-rfs: open: closing root inode: %d: %s\n", rc, strerror (rc));
 801d138:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801d13c:	f8 00 15 4c 	calli 802266c <strerror>                       <== NOT EXECUTED
 801d140:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 801d144:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801d148:	38 21 75 24 	ori r1,r1,0x7524                               <== NOT EXECUTED
 801d14c:	e3 ff fe 3f 	bi 801ca48 <rtems_rfs_fs_open+0x148>           <== NOT EXECUTED
    errno = rc;                                                       
    return -1;                                                        
  }                                                                   
                                                                      
  errno = 0;                                                          
 801d150:	f8 00 0a 31 	calli 801fa14 <__errno>                        
 801d154:	58 20 00 00 	sw (r1+0),r0                                   
  return 0;                                                           
 801d158:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 801d15c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801d160:	2b 8b 00 20 	lw r11,(sp+32)                                 
 801d164:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 801d168:	2b 8d 00 18 	lw r13,(sp+24)                                 
 801d16c:	2b 8e 00 14 	lw r14,(sp+20)                                 
 801d170:	2b 8f 00 10 	lw r15,(sp+16)                                 
 801d174:	2b 90 00 0c 	lw r16,(sp+12)                                 
 801d178:	2b 91 00 08 	lw r17,(sp+8)                                  
 801d17c:	37 9c 00 54 	addi sp,sp,84                                  
 801d180:	c3 a0 00 00 	ret                                            
              rc, strerror (rc));                                     
    errno = rc;                                                       
    return -1;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (*fs, RTEMS_RFS_ROOT_INO, &inode, true);  
 801d184:	29 a1 00 00 	lw r1,(r13+0)                                  
 801d188:	34 02 00 01 	mvi r2,1                                       
 801d18c:	37 83 00 24 	addi r3,sp,36                                  
 801d190:	34 04 00 01 	mvi r4,1                                       
 801d194:	fb ff c6 cb 	calli 800ecc0 <rtems_rfs_inode_open>           
 801d198:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 801d19c:	48 20 ff a9 	bg r1,r0,801d040 <rtems_rfs_fs_open+0x740>     <== NEVER TAKEN
 801d1a0:	e3 ff ff b6 	bi 801d078 <rtems_rfs_fs_open+0x778>           
                                                                      

0801c8a8 <rtems_rfs_fs_size>: #include <rtems/rfs/rtems-rfs-inode.h> #include <rtems/rfs/rtems-rfs-trace.h> uint64_t rtems_rfs_fs_size (rtems_rfs_file_system* fs) {
 801c8a8:	37 9c ff fc 	addi sp,sp,-4                                  <== NOT EXECUTED
 801c8ac:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
 801c8b0:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
  uint64_t blocks = rtems_rfs_fs_blocks (fs);                         
  uint64_t block_size = rtems_rfs_fs_block_size (fs);                 
  return blocks * block_size;                                         
 801c8b4:	28 82 00 08 	lw r2,(r4+8)                                   <== NOT EXECUTED
 801c8b8:	28 84 00 04 	lw r4,(r4+4)                                   <== NOT EXECUTED
 801c8bc:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 801c8c0:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801c8c4:	f8 00 43 fc 	calli 802d8b4 <__muldi3>                       <== NOT EXECUTED
}                                                                     
 801c8c8:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 801c8cc:	37 9c 00 04 	addi sp,sp,4                                   <== NOT EXECUTED
 801c8d0:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0800e698 <rtems_rfs_group_bitmap_alloc>: int rtems_rfs_group_bitmap_alloc (rtems_rfs_file_system* fs, rtems_rfs_bitmap_bit goal, bool inode, rtems_rfs_bitmap_bit* result) {
 800e698:	37 9c ff bc 	addi sp,sp,-68                                 
 800e69c:	5b 8b 00 3c 	sw (sp+60),r11                                 
 800e6a0:	5b 8c 00 38 	sw (sp+56),r12                                 
 800e6a4:	5b 8d 00 34 	sw (sp+52),r13                                 
 800e6a8:	5b 8e 00 30 	sw (sp+48),r14                                 
 800e6ac:	5b 8f 00 2c 	sw (sp+44),r15                                 
 800e6b0:	5b 90 00 28 	sw (sp+40),r16                                 
 800e6b4:	5b 91 00 24 	sw (sp+36),r17                                 
 800e6b8:	5b 92 00 20 	sw (sp+32),r18                                 
 800e6bc:	5b 93 00 1c 	sw (sp+28),r19                                 
 800e6c0:	5b 94 00 18 	sw (sp+24),r20                                 
 800e6c4:	5b 95 00 14 	sw (sp+20),r21                                 
 800e6c8:	5b 96 00 10 	sw (sp+16),r22                                 
 800e6cc:	5b 97 00 0c 	sw (sp+12),r23                                 
 800e6d0:	5b 98 00 08 	sw (sp+8),r24                                  
 800e6d4:	5b 9d 00 04 	sw (sp+4),ra                                   
 800e6d8:	20 70 00 ff 	andi r16,r3,0xff                               
 800e6dc:	b8 20 58 00 	mv r11,r1                                      
 800e6e0:	b8 40 60 00 	mv r12,r2                                      
 800e6e4:	b8 80 98 00 	mv r19,r4                                      
  rtems_rfs_bitmap_bit bit;                                           
  int                  offset;                                        
  bool                 updown;                                        
  int                  direction;                                     
                                                                      
  if (inode)                                                          
 800e6e8:	46 00 00 04 	be r16,r0,800e6f8 <rtems_rfs_group_bitmap_alloc+0x60>
  {                                                                   
    size = fs->group_inodes;                                          
 800e6ec:	28 32 00 2c 	lw r18,(r1+44)                                 
    goal -= RTEMS_RFS_ROOT_INO;                                       
 800e6f0:	34 4c ff ff 	addi r12,r2,-1                                 
 800e6f4:	e0 00 00 02 	bi 800e6fc <rtems_rfs_group_bitmap_alloc+0x64> 
  }                                                                   
  else                                                                
    size = fs->group_blocks;                                          
 800e6f8:	28 32 00 28 	lw r18,(r1+40)                                 
                                                                      
  group_start = goal / size;                                          
 800e6fc:	b9 80 08 00 	mv r1,r12                                      
 800e700:	ba 40 10 00 	mv r2,r18                                      
 800e704:	fb ff cb d1 	calli 8001648 <__udivsi3>                      
 800e708:	b8 20 c0 00 	mv r24,r1                                      
  bit = (rtems_rfs_bitmap_bit) (goal % size);                         
 800e70c:	ba 40 10 00 	mv r2,r18                                      
 800e710:	b9 80 08 00 	mv r1,r12                                      
 800e714:	f8 00 92 3f 	calli 8033010 <__umodsi3>                      
 800e718:	5b 81 00 40 	sw (sp+64),r1                                  
  offset = 0;                                                         
  updown = true;                                                      
  direction = 1;                                                      
 800e71c:	34 0c 00 01 	mvi r12,1                                      
    size = fs->group_blocks;                                          
                                                                      
  group_start = goal / size;                                          
  bit = (rtems_rfs_bitmap_bit) (goal % size);                         
  offset = 0;                                                         
  updown = true;                                                      
 800e720:	34 0f 00 01 	mvi r15,1                                      
  else                                                                
    size = fs->group_blocks;                                          
                                                                      
  group_start = goal / size;                                          
  bit = (rtems_rfs_bitmap_bit) (goal % size);                         
  offset = 0;                                                         
 800e724:	34 11 00 00 	mvi r17,0                                      
     * We can start at any location and we move out from that point in each
     * direction. The offset grows until we find a free bit or we hit an end.
     */                                                               
    group = group_start + (direction * offset);                       
    if (offset)                                                       
      bit = direction > 0 ? 0 : size - 1;                             
 800e728:	34 15 00 01 	mvi r21,1                                      
   if (inode)                                                         
      bitmap = &fs->groups[group].inode_bitmap;                       
    else                                                              
      bitmap = &fs->groups[group].block_bitmap;                       
                                                                      
    rc = rtems_rfs_bitmap_map_alloc (bitmap, bit, &allocated, &bit);  
 800e72c:	37 97 00 47 	addi r23,sp,71                                 
 800e730:	37 96 00 40 	addi r22,sp,64                                 
 800e734:	e0 00 00 03 	bi 800e740 <rtems_rfs_group_bitmap_alloc+0xa8> 
     */                                                               
    if ((group < 0) || (group >= fs->group_count))                    
    {                                                                 
      if (!updown)                                                    
        break;                                                        
      direction = direction > 0 ? -1 : 1;                             
 800e738:	34 0c ff ff 	mvi r12,-1                                     <== NOT EXECUTED
      updown = false;                                                 
 800e73c:	34 0f 00 00 	mvi r15,0                                      
                                                                      
    /*                                                                
     * We can start at any location and we move out from that point in each
     * direction. The offset grows until we find a free bit or we hit an end.
     */                                                               
    group = group_start + (direction * offset);                       
 800e740:	b9 80 08 00 	mv r1,r12                                      
 800e744:	ba 20 10 00 	mv r2,r17                                      
   */                                                                 
  while (true)                                                        
  {                                                                   
    rtems_rfs_bitmap_control* bitmap;                                 
    int                       group;                                  
    bool                      allocated = false;                      
 800e748:	33 80 00 47 	sb (sp+71),r0                                  
                                                                      
    /*                                                                
     * We can start at any location and we move out from that point in each
     * direction. The offset grows until we find a free bit or we hit an end.
     */                                                               
    group = group_start + (direction * offset);                       
 800e74c:	fb ff cb b3 	calli 8001618 <__mulsi3>                       
 800e750:	b4 38 68 00 	add r13,r1,r24                                 
    if (offset)                                                       
 800e754:	46 20 00 05 	be r17,r0,800e768 <rtems_rfs_group_bitmap_alloc+0xd0>
      bit = direction > 0 ? 0 : size - 1;                             
 800e758:	34 02 00 00 	mvi r2,0                                       
 800e75c:	45 95 00 02 	be r12,r21,800e764 <rtems_rfs_group_bitmap_alloc+0xcc>
 800e760:	36 42 ff ff 	addi r2,r18,-1                                 
 800e764:	5b 82 00 40 	sw (sp+64),r2                                  
    /*                                                                
     * If we are still looking up and down and if the group is out of range we
     * have reached one end. Stopping looking up and down and just move in the
     * one direction one group at a time.                             
     */                                                               
    if ((group < 0) || (group >= fs->group_count))                    
 800e768:	48 0d 00 03 	bg r0,r13,800e774 <rtems_rfs_group_bitmap_alloc+0xdc>
 800e76c:	29 61 00 24 	lw r1,(r11+36)                                 
 800e770:	48 2d 00 05 	bg r1,r13,800e784 <rtems_rfs_group_bitmap_alloc+0xec>
    {                                                                 
      if (!updown)                                                    
 800e774:	45 e0 00 47 	be r15,r0,800e890 <rtems_rfs_group_bitmap_alloc+0x1f8>
        break;                                                        
      direction = direction > 0 ? -1 : 1;                             
 800e778:	45 95 ff f0 	be r12,r21,800e738 <rtems_rfs_group_bitmap_alloc+0xa0><== NEVER TAKEN
 800e77c:	34 0c 00 01 	mvi r12,1                                      
 800e780:	e3 ff ff ef 	bi 800e73c <rtems_rfs_group_bitmap_alloc+0xa4> 
 800e784:	29 74 00 20 	lw r20,(r11+32)                                
      updown = false;                                                 
      continue;                                                       
    }                                                                 
                                                                      
   if (inode)                                                         
 800e788:	46 00 00 07 	be r16,r0,800e7a4 <rtems_rfs_group_bitmap_alloc+0x10c>
      bitmap = &fs->groups[group].inode_bitmap;                       
 800e78c:	b9 a0 08 00 	mv r1,r13                                      
 800e790:	34 02 00 50 	mvi r2,80                                      
 800e794:	fb ff cb a1 	calli 8001618 <__mulsi3>                       
 800e798:	b6 81 a0 00 	add r20,r20,r1                                 
 800e79c:	36 94 00 2c 	addi r20,r20,44                                
 800e7a0:	e0 00 00 06 	bi 800e7b8 <rtems_rfs_group_bitmap_alloc+0x120>
    else                                                              
      bitmap = &fs->groups[group].block_bitmap;                       
 800e7a4:	b9 a0 08 00 	mv r1,r13                                      
 800e7a8:	34 02 00 50 	mvi r2,80                                      
 800e7ac:	fb ff cb 9b 	calli 8001618 <__mulsi3>                       
 800e7b0:	b6 81 a0 00 	add r20,r20,r1                                 
 800e7b4:	36 94 00 08 	addi r20,r20,8                                 
                                                                      
    rc = rtems_rfs_bitmap_map_alloc (bitmap, bit, &allocated, &bit);  
 800e7b8:	2b 82 00 40 	lw r2,(sp+64)                                  
 800e7bc:	ba 80 08 00 	mv r1,r20                                      
 800e7c0:	ba e0 18 00 	mv r3,r23                                      
 800e7c4:	ba c0 20 00 	mv r4,r22                                      
 800e7c8:	f8 00 26 ca 	calli 80182f0 <rtems_rfs_bitmap_map_alloc>     
 800e7cc:	b8 20 70 00 	mv r14,r1                                      
    if (rc > 0)                                                       
 800e7d0:	48 20 00 38 	bg r1,r0,800e8b0 <rtems_rfs_group_bitmap_alloc+0x218><== NEVER TAKEN
      return rc;                                                      
                                                                      
    if (rtems_rfs_fs_release_bitmaps (fs))                            
 800e7d4:	29 61 00 00 	lw r1,(r11+0)                                  
 800e7d8:	20 21 00 01 	andi r1,r1,0x1                                 
 800e7dc:	5c 20 00 04 	bne r1,r0,800e7ec <rtems_rfs_group_bitmap_alloc+0x154><== NEVER TAKEN
      rtems_rfs_bitmap_release_buffer (fs, bitmap);                   
 800e7e0:	2a 82 00 00 	lw r2,(r20+0)                                  
 800e7e4:	b9 60 08 00 	mv r1,r11                                      
 800e7e8:	f8 00 2d 16 	calli 8019c40 <rtems_rfs_buffer_handle_release>
                                                                      
    if (allocated)                                                    
 800e7ec:	43 82 00 47 	lbu r2,(sp+71)                                 
 800e7f0:	44 40 00 22 	be r2,r0,800e878 <rtems_rfs_group_bitmap_alloc+0x1e0>
 800e7f4:	2b 8c 00 40 	lw r12,(sp+64)                                 
    {                                                                 
      if (inode)                                                      
 800e7f8:	46 00 00 08 	be r16,r0,800e818 <rtems_rfs_group_bitmap_alloc+0x180>
        *result = rtems_rfs_group_inode (fs, group, bit);             
 800e7fc:	29 62 00 2c 	lw r2,(r11+44)                                 
 800e800:	b9 a0 08 00 	mv r1,r13                                      
 800e804:	35 8c 00 01 	addi r12,r12,1                                 
 800e808:	fb ff cb 84 	calli 8001618 <__mulsi3>                       
 800e80c:	b5 81 08 00 	add r1,r12,r1                                  
 800e810:	5a 61 00 00 	sw (r19+0),r1                                  
 800e814:	e0 00 00 09 	bi 800e838 <rtems_rfs_group_bitmap_alloc+0x1a0>
      else                                                            
        *result = rtems_rfs_group_block (&fs->groups[group], bit);    
 800e818:	29 6b 00 20 	lw r11,(r11+32)                                
 800e81c:	b9 a0 08 00 	mv r1,r13                                      
 800e820:	34 02 00 50 	mvi r2,80                                      
 800e824:	fb ff cb 7d 	calli 8001618 <__mulsi3>                       
 800e828:	b5 61 08 00 	add r1,r11,r1                                  
 800e82c:	28 21 00 00 	lw r1,(r1+0)                                   
 800e830:	b5 81 60 00 	add r12,r12,r1                                 
 800e834:	5a 6c 00 00 	sw (r19+0),r12                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))            
 800e838:	34 01 00 00 	mvi r1,0                                       
 800e83c:	78 02 00 02 	mvhi r2,0x2                                    
 800e840:	f8 00 08 d9 	calli 8010ba4 <rtems_rfs_trace>                
        printf ("rtems-rfs: group-bitmap-alloc: %s allocated: %" PRId32 "\n",
                inode ? "inode" : "block", *result);                  
      return 0;                                                       
 800e844:	34 0e 00 00 	mvi r14,0                                      
    {                                                                 
      if (inode)                                                      
        *result = rtems_rfs_group_inode (fs, group, bit);             
      else                                                            
        *result = rtems_rfs_group_block (&fs->groups[group], bit);    
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))            
 800e848:	44 20 00 1a 	be r1,r0,800e8b0 <rtems_rfs_group_bitmap_alloc+0x218><== ALWAYS TAKEN
        printf ("rtems-rfs: group-bitmap-alloc: %s allocated: %" PRId32 "\n",
 800e84c:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
 800e850:	38 42 54 5c 	ori r2,r2,0x545c                               <== NOT EXECUTED
 800e854:	46 00 00 03 	be r16,r0,800e860 <rtems_rfs_group_bitmap_alloc+0x1c8><== NOT EXECUTED
 800e858:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
 800e85c:	38 42 54 54 	ori r2,r2,0x5454                               <== NOT EXECUTED
 800e860:	2a 63 00 00 	lw r3,(r19+0)                                  <== NOT EXECUTED
 800e864:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800e868:	38 21 54 64 	ori r1,r1,0x5464                               <== NOT EXECUTED
 800e86c:	f8 00 4a c5 	calli 8021380 <printf>                         <== NOT EXECUTED
                inode ? "inode" : "block", *result);                  
      return 0;                                                       
 800e870:	34 0e 00 00 	mvi r14,0                                      <== NOT EXECUTED
 800e874:	e0 00 00 0f 	bi 800e8b0 <rtems_rfs_group_bitmap_alloc+0x218><== NOT EXECUTED
    }                                                                 
                                                                      
    if (updown)                                                       
 800e878:	45 e2 00 04 	be r15,r2,800e888 <rtems_rfs_group_bitmap_alloc+0x1f0><== NEVER TAKEN
      direction = direction > 0 ? -1 : 1;                             
 800e87c:	65 8c 00 01 	cmpei r12,r12,1                                
 800e880:	c8 0c 60 00 	sub r12,r0,r12                                 
 800e884:	39 8c 00 01 	ori r12,r12,0x1                                
                                                                      
    offset++;                                                         
 800e888:	36 31 00 01 	addi r17,r17,1                                 
 800e88c:	e3 ff ff ad 	bi 800e740 <rtems_rfs_group_bitmap_alloc+0xa8> 
  }                                                                   
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))                
 800e890:	34 01 00 00 	mvi r1,0                                       
 800e894:	78 02 00 02 	mvhi r2,0x2                                    
 800e898:	f8 00 08 c3 	calli 8010ba4 <rtems_rfs_trace>                
    printf ("rtems-rfs: group-bitmap-alloc: no blocks available\n");  
                                                                      
  return ENOSPC;                                                      
 800e89c:	34 0e 00 1c 	mvi r14,28                                     
      direction = direction > 0 ? -1 : 1;                             
                                                                      
    offset++;                                                         
  }                                                                   
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))                
 800e8a0:	44 2f 00 04 	be r1,r15,800e8b0 <rtems_rfs_group_bitmap_alloc+0x218><== ALWAYS TAKEN
    printf ("rtems-rfs: group-bitmap-alloc: no blocks available\n");  
 800e8a4:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800e8a8:	38 21 54 98 	ori r1,r1,0x5498                               <== NOT EXECUTED
 800e8ac:	f8 00 4b 7d 	calli 80216a0 <puts>                           <== NOT EXECUTED
                                                                      
  return ENOSPC;                                                      
}                                                                     
 800e8b0:	b9 c0 08 00 	mv r1,r14                                      
 800e8b4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800e8b8:	2b 8b 00 3c 	lw r11,(sp+60)                                 
 800e8bc:	2b 8c 00 38 	lw r12,(sp+56)                                 
 800e8c0:	2b 8d 00 34 	lw r13,(sp+52)                                 
 800e8c4:	2b 8e 00 30 	lw r14,(sp+48)                                 
 800e8c8:	2b 8f 00 2c 	lw r15,(sp+44)                                 
 800e8cc:	2b 90 00 28 	lw r16,(sp+40)                                 
 800e8d0:	2b 91 00 24 	lw r17,(sp+36)                                 
 800e8d4:	2b 92 00 20 	lw r18,(sp+32)                                 
 800e8d8:	2b 93 00 1c 	lw r19,(sp+28)                                 
 800e8dc:	2b 94 00 18 	lw r20,(sp+24)                                 
 800e8e0:	2b 95 00 14 	lw r21,(sp+20)                                 
 800e8e4:	2b 96 00 10 	lw r22,(sp+16)                                 
 800e8e8:	2b 97 00 0c 	lw r23,(sp+12)                                 
 800e8ec:	2b 98 00 08 	lw r24,(sp+8)                                  
 800e8f0:	37 9c 00 44 	addi sp,sp,68                                  
 800e8f4:	c3 a0 00 00 	ret                                            
                                                                      

0800e8f8 <rtems_rfs_group_bitmap_free>: int rtems_rfs_group_bitmap_free (rtems_rfs_file_system* fs, bool inode, rtems_rfs_bitmap_bit no) {
 800e8f8:	37 9c ff e8 	addi sp,sp,-24                                 
 800e8fc:	5b 8b 00 18 	sw (sp+24),r11                                 
 800e900:	5b 8c 00 14 	sw (sp+20),r12                                 
 800e904:	5b 8d 00 10 	sw (sp+16),r13                                 
 800e908:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800e90c:	5b 8f 00 08 	sw (sp+8),r15                                  
 800e910:	5b 9d 00 04 	sw (sp+4),ra                                   
 800e914:	b8 20 58 00 	mv r11,r1                                      
 800e918:	20 4d 00 ff 	andi r13,r2,0xff                               
  unsigned int              group;                                    
  rtems_rfs_bitmap_bit      bit;                                      
  size_t                    size;                                     
  int                       rc;                                       
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))                
 800e91c:	34 01 00 00 	mvi r1,0                                       
 800e920:	78 02 00 02 	mvhi r2,0x2                                    
                                                                      
int                                                                   
rtems_rfs_group_bitmap_free (rtems_rfs_file_system* fs,               
                             bool                   inode,            
                             rtems_rfs_bitmap_bit   no)               
{                                                                     
 800e924:	b8 60 78 00 	mv r15,r3                                      
  unsigned int              group;                                    
  rtems_rfs_bitmap_bit      bit;                                      
  size_t                    size;                                     
  int                       rc;                                       
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))                
 800e928:	f8 00 08 9f 	calli 8010ba4 <rtems_rfs_trace>                
 800e92c:	44 20 00 0a 	be r1,r0,800e954 <rtems_rfs_group_bitmap_free+0x5c><== ALWAYS TAKEN
    printf ("rtems-rfs: group-bitmap-free: %s free: %" PRId32 "\n",   
 800e930:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
 800e934:	38 42 54 5c 	ori r2,r2,0x545c                               <== NOT EXECUTED
 800e938:	45 a0 00 03 	be r13,r0,800e944 <rtems_rfs_group_bitmap_free+0x4c><== NOT EXECUTED
 800e93c:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
 800e940:	38 42 54 54 	ori r2,r2,0x5454                               <== NOT EXECUTED
 800e944:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800e948:	38 21 54 cc 	ori r1,r1,0x54cc                               <== NOT EXECUTED
 800e94c:	b9 e0 18 00 	mv r3,r15                                      <== NOT EXECUTED
 800e950:	f8 00 4a 8c 	calli 8021380 <printf>                         <== NOT EXECUTED
 800e954:	35 ef ff ff 	addi r15,r15,-1                                
            inode ? "inode" : "block", no);                           
                                                                      
  if (inode)                                                          
 800e958:	45 a0 00 03 	be r13,r0,800e964 <rtems_rfs_group_bitmap_free+0x6c>
  {                                                                   
    no -= RTEMS_RFS_ROOT_INO;                                         
    size = fs->group_inodes;                                          
 800e95c:	29 6c 00 2c 	lw r12,(r11+44)                                
 800e960:	e0 00 00 02 	bi 800e968 <rtems_rfs_group_bitmap_free+0x70>  
  }                                                                   
  else                                                                
  {                                                                   
    no -= RTEMS_RFS_SUPERBLOCK_SIZE;                                  
    size = fs->group_blocks;                                          
 800e964:	29 6c 00 28 	lw r12,(r11+40)                                
  }                                                                   
                                                                      
  group = no / size;                                                  
 800e968:	b9 80 10 00 	mv r2,r12                                      
 800e96c:	b9 e0 08 00 	mv r1,r15                                      
 800e970:	fb ff cb 36 	calli 8001648 <__udivsi3>                      
  bit = (rtems_rfs_bitmap_bit) (no % size);                           
 800e974:	b9 80 10 00 	mv r2,r12                                      
  {                                                                   
    no -= RTEMS_RFS_SUPERBLOCK_SIZE;                                  
    size = fs->group_blocks;                                          
  }                                                                   
                                                                      
  group = no / size;                                                  
 800e978:	b8 20 70 00 	mv r14,r1                                      
  bit = (rtems_rfs_bitmap_bit) (no % size);                           
 800e97c:	b9 e0 08 00 	mv r1,r15                                      
 800e980:	f8 00 91 a4 	calli 8033010 <__umodsi3>                      
 800e984:	b8 20 78 00 	mv r15,r1                                      
 800e988:	29 6c 00 20 	lw r12,(r11+32)                                
                                                                      
  if (inode)                                                          
 800e98c:	45 a0 00 07 	be r13,r0,800e9a8 <rtems_rfs_group_bitmap_free+0xb0>
    bitmap = &fs->groups[group].inode_bitmap;                         
 800e990:	b9 c0 08 00 	mv r1,r14                                      
 800e994:	34 02 00 50 	mvi r2,80                                      
 800e998:	fb ff cb 20 	calli 8001618 <__mulsi3>                       
 800e99c:	b5 81 60 00 	add r12,r12,r1                                 
 800e9a0:	35 8c 00 2c 	addi r12,r12,44                                
 800e9a4:	e0 00 00 06 	bi 800e9bc <rtems_rfs_group_bitmap_free+0xc4>  
  else                                                                
    bitmap = &fs->groups[group].block_bitmap;                         
 800e9a8:	b9 c0 08 00 	mv r1,r14                                      
 800e9ac:	34 02 00 50 	mvi r2,80                                      
 800e9b0:	fb ff cb 1a 	calli 8001618 <__mulsi3>                       
 800e9b4:	b5 81 60 00 	add r12,r12,r1                                 
 800e9b8:	35 8c 00 08 	addi r12,r12,8                                 
                                                                      
  rc = rtems_rfs_bitmap_map_clear (bitmap, bit);                      
 800e9bc:	b9 e0 10 00 	mv r2,r15                                      
 800e9c0:	b9 80 08 00 	mv r1,r12                                      
 800e9c4:	f8 00 25 8e 	calli 8017ffc <rtems_rfs_bitmap_map_clear>     
                                                                      
  rtems_rfs_bitmap_release_buffer (fs, bitmap);                       
 800e9c8:	29 82 00 00 	lw r2,(r12+0)                                  
  if (inode)                                                          
    bitmap = &fs->groups[group].inode_bitmap;                         
  else                                                                
    bitmap = &fs->groups[group].block_bitmap;                         
                                                                      
  rc = rtems_rfs_bitmap_map_clear (bitmap, bit);                      
 800e9cc:	b8 20 68 00 	mv r13,r1                                      
                                                                      
  rtems_rfs_bitmap_release_buffer (fs, bitmap);                       
 800e9d0:	b9 60 08 00 	mv r1,r11                                      
 800e9d4:	f8 00 2c 9b 	calli 8019c40 <rtems_rfs_buffer_handle_release>
                                                                      
  return rc;                                                          
}                                                                     
 800e9d8:	b9 a0 08 00 	mv r1,r13                                      
 800e9dc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800e9e0:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800e9e4:	2b 8c 00 14 	lw r12,(sp+20)                                 
 800e9e8:	2b 8d 00 10 	lw r13,(sp+16)                                 
 800e9ec:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800e9f0:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800e9f4:	37 9c 00 18 	addi sp,sp,24                                  
 800e9f8:	c3 a0 00 00 	ret                                            
                                                                      

0800e9fc <rtems_rfs_group_bitmap_test>: int rtems_rfs_group_bitmap_test (rtems_rfs_file_system* fs, bool inode, rtems_rfs_bitmap_bit no, bool* state) {
 800e9fc:	37 9c ff e4 	addi sp,sp,-28                                 <== NOT EXECUTED
 800ea00:	5b 8b 00 1c 	sw (sp+28),r11                                 <== NOT EXECUTED
 800ea04:	5b 8c 00 18 	sw (sp+24),r12                                 <== NOT EXECUTED
 800ea08:	5b 8d 00 14 	sw (sp+20),r13                                 <== NOT EXECUTED
 800ea0c:	5b 8e 00 10 	sw (sp+16),r14                                 <== NOT EXECUTED
 800ea10:	5b 8f 00 0c 	sw (sp+12),r15                                 <== NOT EXECUTED
 800ea14:	5b 90 00 08 	sw (sp+8),r16                                  <== NOT EXECUTED
 800ea18:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
 800ea1c:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
 800ea20:	20 4e 00 ff 	andi r14,r2,0xff                               <== NOT EXECUTED
  unsigned int              group;                                    
  rtems_rfs_bitmap_bit      bit;                                      
  size_t                    size;                                     
  int                       rc;                                       
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))                
 800ea24:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 800ea28:	78 02 00 02 	mvhi r2,0x2                                    <== NOT EXECUTED
int                                                                   
rtems_rfs_group_bitmap_test (rtems_rfs_file_system* fs,               
                             bool                   inode,            
                             rtems_rfs_bitmap_bit   no,               
                             bool*                  state)            
{                                                                     
 800ea2c:	b8 60 58 00 	mv r11,r3                                      <== NOT EXECUTED
 800ea30:	b8 80 80 00 	mv r16,r4                                      <== NOT EXECUTED
  unsigned int              group;                                    
  rtems_rfs_bitmap_bit      bit;                                      
  size_t                    size;                                     
  int                       rc;                                       
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))                
 800ea34:	f8 00 08 5c 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 800ea38:	44 20 00 0a 	be r1,r0,800ea60 <rtems_rfs_group_bitmap_test+0x64><== NOT EXECUTED
    printf ("rtems-rfs: group-bitmap-test: %s test: %" PRId32 "\n",   
 800ea3c:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
 800ea40:	38 42 54 5c 	ori r2,r2,0x545c                               <== NOT EXECUTED
 800ea44:	45 c0 00 03 	be r14,r0,800ea50 <rtems_rfs_group_bitmap_test+0x54><== NOT EXECUTED
 800ea48:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
 800ea4c:	38 42 54 54 	ori r2,r2,0x5454                               <== NOT EXECUTED
 800ea50:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800ea54:	38 21 54 f8 	ori r1,r1,0x54f8                               <== NOT EXECUTED
 800ea58:	b9 60 18 00 	mv r3,r11                                      <== NOT EXECUTED
 800ea5c:	f8 00 4a 49 	calli 8021380 <printf>                         <== NOT EXECUTED
            inode ? "inode" : "block", no);                           
                                                                      
  if (inode)                                                          
 800ea60:	45 c0 00 08 	be r14,r0,800ea80 <rtems_rfs_group_bitmap_test+0x84><== NOT EXECUTED
  {                                                                   
    if ((no < RTEMS_RFS_ROOT_INO) || (no > rtems_rfs_fs_inodes (fs))) 
        return EINVAL;                                                
 800ea64:	34 0d 00 16 	mvi r13,22                                     <== NOT EXECUTED
    printf ("rtems-rfs: group-bitmap-test: %s test: %" PRId32 "\n",   
            inode ? "inode" : "block", no);                           
                                                                      
  if (inode)                                                          
  {                                                                   
    if ((no < RTEMS_RFS_ROOT_INO) || (no > rtems_rfs_fs_inodes (fs))) 
 800ea68:	4c 0b 00 27 	bge r0,r11,800eb04 <rtems_rfs_group_bitmap_test+0x108><== NOT EXECUTED
 800ea6c:	29 81 00 14 	lw r1,(r12+20)                                 <== NOT EXECUTED
 800ea70:	55 61 00 25 	bgu r11,r1,800eb04 <rtems_rfs_group_bitmap_test+0x108><== NOT EXECUTED
        return EINVAL;                                                
    no -= RTEMS_RFS_ROOT_INO;                                         
 800ea74:	35 6b ff ff 	addi r11,r11,-1                                <== NOT EXECUTED
    size = fs->group_inodes;                                          
 800ea78:	29 8d 00 2c 	lw r13,(r12+44)                                <== NOT EXECUTED
 800ea7c:	e0 00 00 05 	bi 800ea90 <rtems_rfs_group_bitmap_test+0x94>  <== NOT EXECUTED
  }                                                                   
  else                                                                
  {                                                                   
    if (no >= rtems_rfs_fs_blocks (fs))                               
 800ea80:	29 81 00 04 	lw r1,(r12+4)                                  <== NOT EXECUTED
        return EINVAL;                                                
 800ea84:	34 0d 00 16 	mvi r13,22                                     <== NOT EXECUTED
    no -= RTEMS_RFS_ROOT_INO;                                         
    size = fs->group_inodes;                                          
  }                                                                   
  else                                                                
  {                                                                   
    if (no >= rtems_rfs_fs_blocks (fs))                               
 800ea88:	51 61 00 1f 	bgeu r11,r1,800eb04 <rtems_rfs_group_bitmap_test+0x108><== NOT EXECUTED
        return EINVAL;                                                
    size = fs->group_blocks;                                          
 800ea8c:	29 8d 00 28 	lw r13,(r12+40)                                <== NOT EXECUTED
  }                                                                   
                                                                      
  group = no / size;                                                  
 800ea90:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 800ea94:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800ea98:	fb ff ca ec 	calli 8001648 <__udivsi3>                      <== NOT EXECUTED
  bit = (rtems_rfs_bitmap_bit) (no % size);                           
 800ea9c:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
    if (no >= rtems_rfs_fs_blocks (fs))                               
        return EINVAL;                                                
    size = fs->group_blocks;                                          
  }                                                                   
                                                                      
  group = no / size;                                                  
 800eaa0:	b8 20 78 00 	mv r15,r1                                      <== NOT EXECUTED
  bit = (rtems_rfs_bitmap_bit) (no % size);                           
 800eaa4:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800eaa8:	f8 00 91 5a 	calli 8033010 <__umodsi3>                      <== NOT EXECUTED
 800eaac:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
 800eab0:	29 8b 00 20 	lw r11,(r12+32)                                <== NOT EXECUTED
                                                                      
  if (inode)                                                          
 800eab4:	45 c0 00 07 	be r14,r0,800ead0 <rtems_rfs_group_bitmap_test+0xd4><== NOT EXECUTED
    bitmap = &fs->groups[group].inode_bitmap;                         
 800eab8:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
 800eabc:	34 02 00 50 	mvi r2,80                                      <== NOT EXECUTED
 800eac0:	fb ff ca d6 	calli 8001618 <__mulsi3>                       <== NOT EXECUTED
 800eac4:	b5 61 58 00 	add r11,r11,r1                                 <== NOT EXECUTED
 800eac8:	35 6b 00 2c 	addi r11,r11,44                                <== NOT EXECUTED
 800eacc:	e0 00 00 06 	bi 800eae4 <rtems_rfs_group_bitmap_test+0xe8>  <== NOT EXECUTED
  else                                                                
    bitmap = &fs->groups[group].block_bitmap;                         
 800ead0:	b9 e0 08 00 	mv r1,r15                                      <== NOT EXECUTED
 800ead4:	34 02 00 50 	mvi r2,80                                      <== NOT EXECUTED
 800ead8:	fb ff ca d0 	calli 8001618 <__mulsi3>                       <== NOT EXECUTED
 800eadc:	b5 61 58 00 	add r11,r11,r1                                 <== NOT EXECUTED
 800eae0:	35 6b 00 08 	addi r11,r11,8                                 <== NOT EXECUTED
                                                                      
  rc = rtems_rfs_bitmap_map_test (bitmap, bit, state);                
 800eae4:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 800eae8:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800eaec:	ba 00 18 00 	mv r3,r16                                      <== NOT EXECUTED
 800eaf0:	f8 00 25 7c 	calli 80180e0 <rtems_rfs_bitmap_map_test>      <== NOT EXECUTED
                                                                      
  rtems_rfs_bitmap_release_buffer (fs, bitmap);                       
 800eaf4:	29 62 00 00 	lw r2,(r11+0)                                  <== NOT EXECUTED
  if (inode)                                                          
    bitmap = &fs->groups[group].inode_bitmap;                         
  else                                                                
    bitmap = &fs->groups[group].block_bitmap;                         
                                                                      
  rc = rtems_rfs_bitmap_map_test (bitmap, bit, state);                
 800eaf8:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
                                                                      
  rtems_rfs_bitmap_release_buffer (fs, bitmap);                       
 800eafc:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 800eb00:	f8 00 2c 50 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
                                                                      
  return rc;                                                          
}                                                                     
 800eb04:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 800eb08:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 800eb0c:	2b 8b 00 1c 	lw r11,(sp+28)                                 <== NOT EXECUTED
 800eb10:	2b 8c 00 18 	lw r12,(sp+24)                                 <== NOT EXECUTED
 800eb14:	2b 8d 00 14 	lw r13,(sp+20)                                 <== NOT EXECUTED
 800eb18:	2b 8e 00 10 	lw r14,(sp+16)                                 <== NOT EXECUTED
 800eb1c:	2b 8f 00 0c 	lw r15,(sp+12)                                 <== NOT EXECUTED
 800eb20:	2b 90 00 08 	lw r16,(sp+8)                                  <== NOT EXECUTED
 800eb24:	37 9c 00 1c 	addi sp,sp,28                                  <== NOT EXECUTED
 800eb28:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0800e5dc <rtems_rfs_group_close>: int rtems_rfs_group_close (rtems_rfs_file_system* fs, rtems_rfs_group* group) {
 800e5dc:	37 9c ff ec 	addi sp,sp,-20                                 
 800e5e0:	5b 8b 00 14 	sw (sp+20),r11                                 
 800e5e4:	5b 8c 00 10 	sw (sp+16),r12                                 
 800e5e8:	5b 8d 00 0c 	sw (sp+12),r13                                 
 800e5ec:	5b 8e 00 08 	sw (sp+8),r14                                  
 800e5f0:	5b 9d 00 04 	sw (sp+4),ra                                   
 800e5f4:	b8 20 68 00 	mv r13,r1                                      
 800e5f8:	b8 40 58 00 	mv r11,r2                                      
  int result = 0;                                                     
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_CLOSE))                  
 800e5fc:	34 01 00 00 	mvi r1,0                                       
 800e600:	78 02 00 01 	mvhi r2,0x1                                    
 800e604:	f8 00 09 68 	calli 8010ba4 <rtems_rfs_trace>                
 800e608:	44 20 00 05 	be r1,r0,800e61c <rtems_rfs_group_close+0x40>  <== ALWAYS TAKEN
    printf ("rtems-rfs: group-close: base=%" PRId32 "\n", group->base);
 800e60c:	29 62 00 00 	lw r2,(r11+0)                                  <== NOT EXECUTED
 800e610:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800e614:	38 21 54 30 	ori r1,r1,0x5430                               <== NOT EXECUTED
 800e618:	f8 00 4b 5a 	calli 8021380 <printf>                         <== NOT EXECUTED
  /*                                                                  
   * We need to close as much as possible and also return any error if one
   * occurs but this may result in one even more important error being lost but
   * we cannot OR the errors together so this is a reasonable compromise.
   */                                                                 
  rc = rtems_rfs_bitmap_close (&group->inode_bitmap);                 
 800e61c:	35 61 00 2c 	addi r1,r11,44                                 
 800e620:	f8 00 27 ce 	calli 8018558 <rtems_rfs_bitmap_close>         
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 800e624:	35 62 00 44 	addi r2,r11,68                                 
 800e628:	b8 20 70 00 	mv r14,r1                                      
 800e62c:	b9 a0 08 00 	mv r1,r13                                      
 800e630:	f8 00 2d 84 	calli 8019c40 <rtems_rfs_buffer_handle_release>
  if (rc > 0)                                                         
    result = rc;                                                      
  rc = rtems_rfs_buffer_handle_close (fs, &group->inode_bitmap_buffer);
  if (rc > 0)                                                         
    result = rc;                                                      
  rc = rtems_rfs_bitmap_close (&group->block_bitmap);                 
 800e634:	35 61 00 08 	addi r1,r11,8                                  
  handle->dirty = false;                                              
 800e638:	31 60 00 44 	sb (r11+68),r0                                 
  handle->bnum  = 0;                                                  
 800e63c:	59 60 00 48 	sw (r11+72),r0                                 
  handle->buffer = NULL;                                              
 800e640:	59 60 00 4c 	sw (r11+76),r0                                 
 800e644:	f8 00 27 c5 	calli 8018558 <rtems_rfs_bitmap_close>         
 800e648:	b8 20 60 00 	mv r12,r1                                      
  if (rc > 0)                                                         
 800e64c:	48 20 00 05 	bg r1,r0,800e660 <rtems_rfs_group_close+0x84>  <== NEVER TAKEN
 800e650:	a5 c0 08 00 	not r1,r14                                     
 800e654:	34 02 00 1f 	mvi r2,31                                      
 800e658:	f8 00 91 ee 	calli 8032e10 <__ashrsi3>                      
 800e65c:	a1 c1 60 00 	and r12,r14,r1                                 
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 800e660:	b9 a0 08 00 	mv r1,r13                                      
 800e664:	35 62 00 20 	addi r2,r11,32                                 
 800e668:	f8 00 2d 76 	calli 8019c40 <rtems_rfs_buffer_handle_release>
  rc = rtems_rfs_buffer_handle_close (fs, &group->block_bitmap_buffer);
  if (rc > 0)                                                         
    result = rc;                                                      
                                                                      
  return result;                                                      
}                                                                     
 800e66c:	b9 80 08 00 	mv r1,r12                                      
  handle->dirty = false;                                              
 800e670:	31 60 00 20 	sb (r11+32),r0                                 
  handle->bnum  = 0;                                                  
 800e674:	59 60 00 24 	sw (r11+36),r0                                 
  handle->buffer = NULL;                                              
 800e678:	59 60 00 28 	sw (r11+40),r0                                 
 800e67c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800e680:	2b 8b 00 14 	lw r11,(sp+20)                                 
 800e684:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800e688:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800e68c:	2b 8e 00 08 	lw r14,(sp+8)                                  
 800e690:	37 9c 00 14 	addi sp,sp,20                                  
 800e694:	c3 a0 00 00 	ret                                            
                                                                      

0800e3c4 <rtems_rfs_group_open>: rtems_rfs_group_open (rtems_rfs_file_system* fs, rtems_rfs_buffer_block base, size_t size, size_t inodes, rtems_rfs_group* group) {
 800e3c4:	37 9c ff e0 	addi sp,sp,-32                                 
 800e3c8:	5b 8b 00 20 	sw (sp+32),r11                                 
 800e3cc:	5b 8c 00 1c 	sw (sp+28),r12                                 
 800e3d0:	5b 8d 00 18 	sw (sp+24),r13                                 
 800e3d4:	5b 8e 00 14 	sw (sp+20),r14                                 
 800e3d8:	5b 8f 00 10 	sw (sp+16),r15                                 
 800e3dc:	5b 90 00 0c 	sw (sp+12),r16                                 
 800e3e0:	5b 91 00 08 	sw (sp+8),r17                                  
 800e3e4:	5b 9d 00 04 	sw (sp+4),ra                                   
 800e3e8:	b8 20 68 00 	mv r13,r1                                      
  int rc;                                                             
                                                                      
  if (base >= rtems_rfs_fs_blocks (fs))                               
 800e3ec:	28 21 00 04 	lw r1,(r1+4)                                   
rtems_rfs_group_open (rtems_rfs_file_system* fs,                      
                      rtems_rfs_buffer_block base,                    
                      size_t                 size,                    
                      size_t                 inodes,                  
                      rtems_rfs_group*       group)                   
{                                                                     
 800e3f0:	b8 40 70 00 	mv r14,r2                                      
 800e3f4:	b8 60 60 00 	mv r12,r3                                      
 800e3f8:	b8 a0 58 00 	mv r11,r5                                      
  int rc;                                                             
                                                                      
  if (base >= rtems_rfs_fs_blocks (fs))                               
 800e3fc:	54 22 00 0d 	bgu r1,r2,800e430 <rtems_rfs_group_open+0x6c>  <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_OPEN))                 
 800e400:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 800e404:	38 02 80 00 	mvu r2,0x8000                                  <== NOT EXECUTED
 800e408:	f8 00 09 e7 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
      printf ("rtems-rfs: group-open: base outside file system range: %d: %s\n",
              EIO, strerror (EIO));                                   
    return EIO;                                                       
 800e40c:	34 0c 00 05 	mvi r12,5                                      <== NOT EXECUTED
{                                                                     
  int rc;                                                             
                                                                      
  if (base >= rtems_rfs_fs_blocks (fs))                               
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_OPEN))                 
 800e410:	44 20 00 68 	be r1,r0,800e5b0 <rtems_rfs_group_open+0x1ec>  <== NOT EXECUTED
      printf ("rtems-rfs: group-open: base outside file system range: %d: %s\n",
 800e414:	34 01 00 05 	mvi r1,5                                       <== NOT EXECUTED
 800e418:	f8 00 50 95 	calli 802266c <strerror>                       <== NOT EXECUTED
 800e41c:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 800e420:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800e424:	38 21 53 40 	ori r1,r1,0x5340                               <== NOT EXECUTED
 800e428:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 800e42c:	e0 00 00 30 	bi 800e4ec <rtems_rfs_group_open+0x128>        <== NOT EXECUTED
              EIO, strerror (EIO));                                   
    return EIO;                                                       
  }                                                                   
                                                                      
  if ((base + size) >= rtems_rfs_fs_blocks (fs))                      
 800e430:	b4 62 10 00 	add r2,r3,r2                                   
 800e434:	54 22 00 02 	bgu r1,r2,800e43c <rtems_rfs_group_open+0x78>  <== NEVER TAKEN
    size = rtems_rfs_fs_blocks (fs) - base;                           
 800e438:	c8 2e 60 00 	sub r12,r1,r14                                 
 800e43c:	b9 80 80 00 	mv r16,r12                                     
 800e440:	50 8c 00 02 	bgeu r4,r12,800e448 <rtems_rfs_group_open+0x84><== NEVER TAKEN
 800e444:	b8 80 80 00 	mv r16,r4                                      
   * the format configuration needs reviewing.                        
   */                                                                 
  if (inodes > size)                                                  
    inodes = size;                                                    
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_OPEN))                   
 800e448:	34 01 00 00 	mvi r1,0                                       
 800e44c:	38 02 80 00 	mvu r2,0x8000                                  
 800e450:	f8 00 09 d5 	calli 8010ba4 <rtems_rfs_trace>                
 800e454:	44 20 00 07 	be r1,r0,800e470 <rtems_rfs_group_open+0xac>   <== ALWAYS TAKEN
    printf ("rtems-rfs: group-open: base=%" PRId32 ", blocks=%zd inodes=%zd\n",
 800e458:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800e45c:	38 21 53 80 	ori r1,r1,0x5380                               <== NOT EXECUTED
 800e460:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 800e464:	b9 80 18 00 	mv r3,r12                                      <== NOT EXECUTED
 800e468:	ba 00 20 00 	mv r4,r16                                      <== NOT EXECUTED
 800e46c:	f8 00 4b c5 	calli 8021380 <printf>                         <== NOT EXECUTED
      printf ("rtems-rfs: group-open: could not open block bitmap handle: %d: %s\n",
              rc, strerror (rc));                                     
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_bitmap_open (&group->block_bitmap, fs,               
 800e470:	35 71 00 08 	addi r17,r11,8                                 
 800e474:	35 6f 00 20 	addi r15,r11,32                                
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_OPEN))                   
    printf ("rtems-rfs: group-open: base=%" PRId32 ", blocks=%zd inodes=%zd\n",
            base, size, inodes);                                      
                                                                      
  group->base = base;                                                 
  group->size = size;                                                 
 800e478:	59 6c 00 04 	sw (r11+4),r12                                 
      printf ("rtems-rfs: group-open: could not open block bitmap handle: %d: %s\n",
              rc, strerror (rc));                                     
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_bitmap_open (&group->block_bitmap, fs,               
 800e47c:	b9 80 20 00 	mv r4,r12                                      
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_OPEN))                   
    printf ("rtems-rfs: group-open: base=%" PRId32 ", blocks=%zd inodes=%zd\n",
            base, size, inodes);                                      
                                                                      
  group->base = base;                                                 
 800e480:	59 6e 00 00 	sw (r11+0),r14                                 
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
 800e484:	31 60 00 20 	sb (r11+32),r0                                 
  handle->bnum  = 0;                                                  
 800e488:	59 60 00 24 	sw (r11+36),r0                                 
  handle->buffer = NULL;                                              
 800e48c:	59 60 00 28 	sw (r11+40),r0                                 
      printf ("rtems-rfs: group-open: could not open block bitmap handle: %d: %s\n",
              rc, strerror (rc));                                     
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_bitmap_open (&group->block_bitmap, fs,               
 800e490:	ba 20 08 00 	mv r1,r17                                      
 800e494:	b9 a0 10 00 	mv r2,r13                                      
 800e498:	b9 e0 18 00 	mv r3,r15                                      
 800e49c:	b9 c0 28 00 	mv r5,r14                                      
 800e4a0:	f8 00 28 13 	calli 80184ec <rtems_rfs_bitmap_open>          
 800e4a4:	b8 20 60 00 	mv r12,r1                                      
                              &group->block_bitmap_buffer, size,      
                              group->base + RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
  if (rc > 0)                                                         
 800e4a8:	4c 01 00 13 	bge r0,r1,800e4f4 <rtems_rfs_group_open+0x130> <== ALWAYS TAKEN
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 800e4ac:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
 800e4b0:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 800e4b4:	f8 00 2d e3 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &group->block_bitmap_buffer);  
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_OPEN))                 
 800e4b8:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
  handle->dirty = false;                                              
 800e4bc:	31 60 00 20 	sb (r11+32),r0                                 <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 800e4c0:	59 60 00 24 	sw (r11+36),r0                                 <== NOT EXECUTED
  handle->buffer = NULL;                                              
 800e4c4:	59 60 00 28 	sw (r11+40),r0                                 <== NOT EXECUTED
 800e4c8:	38 02 80 00 	mvu r2,0x8000                                  <== NOT EXECUTED
 800e4cc:	f8 00 09 b6 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 800e4d0:	44 20 00 38 	be r1,r0,800e5b0 <rtems_rfs_group_open+0x1ec>  <== NOT EXECUTED
      printf ("rtems-rfs: group-open: could not open block bitmap: %d: %s\n",
 800e4d4:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 800e4d8:	f8 00 50 65 	calli 802266c <strerror>                       <== NOT EXECUTED
 800e4dc:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 800e4e0:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800e4e4:	38 21 53 b8 	ori r1,r1,0x53b8                               <== NOT EXECUTED
 800e4e8:	b9 80 10 00 	mv r2,r12                                      <== NOT EXECUTED
 800e4ec:	f8 00 4b a5 	calli 8021380 <printf>                         <== NOT EXECUTED
 800e4f0:	e0 00 00 30 	bi 800e5b0 <rtems_rfs_group_open+0x1ec>        <== NOT EXECUTED
      printf ("rtems-rfs: group-open: could not open inode bitmap handle: %d: %s\n",
              rc, strerror (rc));                                     
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_bitmap_open (&group->inode_bitmap, fs,               
 800e4f4:	29 65 00 00 	lw r5,(r11+0)                                  
 800e4f8:	35 6e 00 44 	addi r14,r11,68                                
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
 800e4fc:	31 60 00 44 	sb (r11+68),r0                                 
  handle->bnum  = 0;                                                  
 800e500:	59 60 00 48 	sw (r11+72),r0                                 
  handle->buffer = NULL;                                              
 800e504:	59 60 00 4c 	sw (r11+76),r0                                 
 800e508:	35 61 00 2c 	addi r1,r11,44                                 
 800e50c:	b9 a0 10 00 	mv r2,r13                                      
 800e510:	b9 c0 18 00 	mv r3,r14                                      
 800e514:	ba 00 20 00 	mv r4,r16                                      
 800e518:	34 a5 00 01 	addi r5,r5,1                                   
 800e51c:	f8 00 27 f4 	calli 80184ec <rtems_rfs_bitmap_open>          
 800e520:	b8 20 60 00 	mv r12,r1                                      
                              &group->inode_bitmap_buffer, inodes,    
                              group->base + RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
  if (rc > 0)                                                         
 800e524:	4c 01 00 19 	bge r0,r1,800e588 <rtems_rfs_group_open+0x1c4> <== ALWAYS TAKEN
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 800e528:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 800e52c:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 800e530:	f8 00 2d c4 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &group->inode_bitmap_buffer);  
    rtems_rfs_bitmap_close (&group->block_bitmap);                    
 800e534:	ba 20 08 00 	mv r1,r17                                      <== NOT EXECUTED
  handle->dirty = false;                                              
 800e538:	31 60 00 44 	sb (r11+68),r0                                 <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 800e53c:	59 60 00 48 	sw (r11+72),r0                                 <== NOT EXECUTED
  handle->buffer = NULL;                                              
 800e540:	59 60 00 4c 	sw (r11+76),r0                                 <== NOT EXECUTED
 800e544:	f8 00 28 05 	calli 8018558 <rtems_rfs_bitmap_close>         <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 800e548:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
 800e54c:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 800e550:	f8 00 2d bc 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
    rtems_rfs_buffer_handle_close (fs, &group->block_bitmap_buffer);  
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_OPEN))                 
 800e554:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
  handle->dirty = false;                                              
 800e558:	31 60 00 20 	sb (r11+32),r0                                 <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 800e55c:	59 60 00 24 	sw (r11+36),r0                                 <== NOT EXECUTED
  handle->buffer = NULL;                                              
 800e560:	59 60 00 28 	sw (r11+40),r0                                 <== NOT EXECUTED
 800e564:	38 02 80 00 	mvu r2,0x8000                                  <== NOT EXECUTED
 800e568:	f8 00 09 8f 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 800e56c:	44 20 00 11 	be r1,r0,800e5b0 <rtems_rfs_group_open+0x1ec>  <== NOT EXECUTED
      printf ("rtems-rfs: group-open: could not open inode bitmap: %d: %s\n",
 800e570:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 800e574:	f8 00 50 3e 	calli 802266c <strerror>                       <== NOT EXECUTED
 800e578:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 800e57c:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800e580:	38 21 53 f4 	ori r1,r1,0x53f4                               <== NOT EXECUTED
 800e584:	e3 ff ff d9 	bi 800e4e8 <rtems_rfs_group_open+0x124>        <== NOT EXECUTED
              rc, strerror (rc));                                     
    return rc;                                                        
  }                                                                   
                                                                      
  if (rtems_rfs_fs_release_bitmaps (fs))                              
 800e588:	29 a1 00 00 	lw r1,(r13+0)                                  
  {                                                                   
    rtems_rfs_bitmap_release_buffer (fs, &group->block_bitmap);       
    rtems_rfs_bitmap_release_buffer (fs, &group->inode_bitmap);       
  }                                                                   
                                                                      
  return 0;                                                           
 800e58c:	34 0c 00 00 	mvi r12,0                                      
      printf ("rtems-rfs: group-open: could not open inode bitmap: %d: %s\n",
              rc, strerror (rc));                                     
    return rc;                                                        
  }                                                                   
                                                                      
  if (rtems_rfs_fs_release_bitmaps (fs))                              
 800e590:	20 21 00 01 	andi r1,r1,0x1                                 
 800e594:	5c 20 00 07 	bne r1,r0,800e5b0 <rtems_rfs_group_open+0x1ec> <== NEVER TAKEN
  {                                                                   
    rtems_rfs_bitmap_release_buffer (fs, &group->block_bitmap);       
 800e598:	29 62 00 08 	lw r2,(r11+8)                                  
 800e59c:	b9 a0 08 00 	mv r1,r13                                      
 800e5a0:	f8 00 2d a8 	calli 8019c40 <rtems_rfs_buffer_handle_release>
    rtems_rfs_bitmap_release_buffer (fs, &group->inode_bitmap);       
 800e5a4:	29 62 00 2c 	lw r2,(r11+44)                                 
 800e5a8:	b9 a0 08 00 	mv r1,r13                                      
 800e5ac:	f8 00 2d a5 	calli 8019c40 <rtems_rfs_buffer_handle_release>
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 800e5b0:	b9 80 08 00 	mv r1,r12                                      
 800e5b4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800e5b8:	2b 8b 00 20 	lw r11,(sp+32)                                 
 800e5bc:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 800e5c0:	2b 8d 00 18 	lw r13,(sp+24)                                 
 800e5c4:	2b 8e 00 14 	lw r14,(sp+20)                                 
 800e5c8:	2b 8f 00 10 	lw r15,(sp+16)                                 
 800e5cc:	2b 90 00 0c 	lw r16,(sp+12)                                 
 800e5d0:	2b 91 00 08 	lw r17,(sp+8)                                  
 800e5d4:	37 9c 00 20 	addi sp,sp,32                                  
 800e5d8:	c3 a0 00 00 	ret                                            
                                                                      

0800eb2c <rtems_rfs_group_usage>: size_t* blocks, size_t* inodes) { int g; *blocks = 0;
 800eb2c:	58 40 00 00 	sw (r2+0),r0                                   <== NOT EXECUTED
  *inodes = 0;                                                        
 800eb30:	58 60 00 00 	sw (r3+0),r0                                   <== NOT EXECUTED
                                                                      
  for (g = 0; g < fs->group_count; g++)                               
 800eb34:	34 06 00 00 	mvi r6,0                                       <== NOT EXECUTED
 800eb38:	34 05 00 00 	mvi r5,0                                       <== NOT EXECUTED
 800eb3c:	e0 00 00 10 	bi 800eb7c <rtems_rfs_group_usage+0x50>        <== NOT EXECUTED
  {                                                                   
    rtems_rfs_group* group = &fs->groups[g];                          
 800eb40:	28 24 00 20 	lw r4,(r1+32)                                  <== NOT EXECUTED
  int g;                                                              
                                                                      
  *blocks = 0;                                                        
  *inodes = 0;                                                        
                                                                      
  for (g = 0; g < fs->group_count; g++)                               
 800eb44:	34 a5 00 01 	addi r5,r5,1                                   <== NOT EXECUTED
  {                                                                   
    rtems_rfs_group* group = &fs->groups[g];                          
 800eb48:	b4 86 20 00 	add r4,r4,r6                                   <== NOT EXECUTED
    *blocks +=                                                        
      rtems_rfs_bitmap_map_size(&group->block_bitmap) -               
 800eb4c:	28 89 00 14 	lw r9,(r4+20)                                  <== NOT EXECUTED
 800eb50:	28 88 00 18 	lw r8,(r4+24)                                  <== NOT EXECUTED
  int g;                                                              
                                                                      
  *blocks = 0;                                                        
  *inodes = 0;                                                        
                                                                      
  for (g = 0; g < fs->group_count; g++)                               
 800eb54:	34 c6 00 50 	addi r6,r6,80                                  <== NOT EXECUTED
  {                                                                   
    rtems_rfs_group* group = &fs->groups[g];                          
    *blocks +=                                                        
      rtems_rfs_bitmap_map_size(&group->block_bitmap) -               
 800eb58:	c9 28 40 00 	sub r8,r9,r8                                   <== NOT EXECUTED
  *inodes = 0;                                                        
                                                                      
  for (g = 0; g < fs->group_count; g++)                               
  {                                                                   
    rtems_rfs_group* group = &fs->groups[g];                          
    *blocks +=                                                        
 800eb5c:	b4 e8 38 00 	add r7,r7,r8                                   <== NOT EXECUTED
 800eb60:	58 47 00 00 	sw (r2+0),r7                                   <== NOT EXECUTED
      rtems_rfs_bitmap_map_size(&group->block_bitmap) -               
      rtems_rfs_bitmap_map_free (&group->block_bitmap);               
    *inodes +=                                                        
      rtems_rfs_bitmap_map_size (&group->inode_bitmap) -              
 800eb64:	28 87 00 38 	lw r7,(r4+56)                                  <== NOT EXECUTED
 800eb68:	28 84 00 3c 	lw r4,(r4+60)                                  <== NOT EXECUTED
 800eb6c:	c8 e4 20 00 	sub r4,r7,r4                                   <== NOT EXECUTED
  {                                                                   
    rtems_rfs_group* group = &fs->groups[g];                          
    *blocks +=                                                        
      rtems_rfs_bitmap_map_size(&group->block_bitmap) -               
      rtems_rfs_bitmap_map_free (&group->block_bitmap);               
    *inodes +=                                                        
 800eb70:	28 67 00 00 	lw r7,(r3+0)                                   <== NOT EXECUTED
 800eb74:	b4 e4 20 00 	add r4,r7,r4                                   <== NOT EXECUTED
 800eb78:	58 64 00 00 	sw (r3+0),r4                                   <== NOT EXECUTED
  int g;                                                              
                                                                      
  *blocks = 0;                                                        
  *inodes = 0;                                                        
                                                                      
  for (g = 0; g < fs->group_count; g++)                               
 800eb7c:	28 24 00 24 	lw r4,(r1+36)                                  <== NOT EXECUTED
 800eb80:	28 47 00 00 	lw r7,(r2+0)                                   <== NOT EXECUTED
 800eb84:	48 85 ff ef 	bg r4,r5,800eb40 <rtems_rfs_group_usage+0x14>  <== NOT EXECUTED
    *inodes +=                                                        
      rtems_rfs_bitmap_map_size (&group->inode_bitmap) -              
      rtems_rfs_bitmap_map_free (&group->inode_bitmap);               
  }                                                                   
                                                                      
  if (*blocks > rtems_rfs_fs_blocks (fs))                             
 800eb88:	28 24 00 04 	lw r4,(r1+4)                                   <== NOT EXECUTED
 800eb8c:	50 87 00 02 	bgeu r4,r7,800eb94 <rtems_rfs_group_usage+0x68><== NOT EXECUTED
    *blocks = rtems_rfs_fs_blocks (fs);                               
 800eb90:	58 44 00 00 	sw (r2+0),r4                                   <== NOT EXECUTED
  if (*inodes > rtems_rfs_fs_inodes (fs))                             
 800eb94:	28 21 00 14 	lw r1,(r1+20)                                  <== NOT EXECUTED
 800eb98:	28 62 00 00 	lw r2,(r3+0)                                   <== NOT EXECUTED
 800eb9c:	50 22 00 02 	bgeu r1,r2,800eba4 <rtems_rfs_group_usage+0x78><== NOT EXECUTED
    *inodes = rtems_rfs_fs_inodes (fs);                               
 800eba0:	58 61 00 00 	sw (r3+0),r1                                   <== NOT EXECUTED
                                                                      
  return 0;                                                           
}                                                                     
 800eba4:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 800eba8:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0800eef0 <rtems_rfs_inode_close>: } int rtems_rfs_inode_close (rtems_rfs_file_system* fs, rtems_rfs_inode_handle* handle) {
 800eef0:	37 9c ff f4 	addi sp,sp,-12                                 
 800eef4:	5b 8b 00 0c 	sw (sp+12),r11                                 
 800eef8:	5b 8c 00 08 	sw (sp+8),r12                                  
 800eefc:	5b 9d 00 04 	sw (sp+4),ra                                   
 800ef00:	b8 20 60 00 	mv r12,r1                                      
 800ef04:	b8 40 58 00 	mv r11,r2                                      
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CLOSE))                  
 800ef08:	34 01 00 00 	mvi r1,0                                       
 800ef0c:	78 02 00 08 	mvhi r2,0x8                                    
 800ef10:	f8 00 07 25 	calli 8010ba4 <rtems_rfs_trace>                
 800ef14:	44 20 00 06 	be r1,r0,800ef2c <rtems_rfs_inode_close+0x3c>  <== ALWAYS TAKEN
    printf ("rtems-rfs: inode-close: ino: %" PRIu32 "\n", handle->ino);
 800ef18:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
 800ef1c:	b8 40 08 00 	mv r1,r2                                       <== NOT EXECUTED
 800ef20:	29 62 00 08 	lw r2,(r11+8)                                  <== NOT EXECUTED
 800ef24:	38 21 55 b8 	ori r1,r1,0x55b8                               <== NOT EXECUTED
 800ef28:	f8 00 49 16 	calli 8021380 <printf>                         <== NOT EXECUTED
                                                                      
  rc = rtems_rfs_inode_unload (fs, handle, true);                     
 800ef2c:	b9 80 08 00 	mv r1,r12                                      
 800ef30:	b9 60 10 00 	mv r2,r11                                      
 800ef34:	34 03 00 01 	mvi r3,1                                       
 800ef38:	fb ff ff a8 	calli 800edd8 <rtems_rfs_inode_unload>         
 800ef3c:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  if ((rc == 0) && (handle->loads > 0))                               
 800ef40:	5c 20 00 0b 	bne r1,r0,800ef6c <rtems_rfs_inode_close+0x7c> <== NEVER TAKEN
 800ef44:	29 62 00 24 	lw r2,(r11+36)                                 
 800ef48:	4c 22 00 09 	bge r1,r2,800ef6c <rtems_rfs_inode_close+0x7c> <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CLOSE))                
 800ef4c:	78 02 00 08 	mvhi r2,0x8                                    <== NOT EXECUTED
 800ef50:	f8 00 07 15 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
      printf ("rtems-rfs: inode-close: bad loads number: %d\n",       
              handle->loads);                                         
    rc = EIO;                                                         
 800ef54:	34 0c 00 05 	mvi r12,5                                      <== NOT EXECUTED
                                                                      
  rc = rtems_rfs_inode_unload (fs, handle, true);                     
                                                                      
  if ((rc == 0) && (handle->loads > 0))                               
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CLOSE))                
 800ef58:	44 20 00 05 	be r1,r0,800ef6c <rtems_rfs_inode_close+0x7c>  <== NOT EXECUTED
      printf ("rtems-rfs: inode-close: bad loads number: %d\n",       
 800ef5c:	29 62 00 24 	lw r2,(r11+36)                                 <== NOT EXECUTED
 800ef60:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800ef64:	38 21 55 dc 	ori r1,r1,0x55dc                               <== NOT EXECUTED
 800ef68:	f8 00 49 06 	calli 8021380 <printf>                         <== NOT EXECUTED
    rc = EIO;                                                         
  }                                                                   
                                                                      
  handle->ino = 0;                                                    
  return rc;                                                          
}                                                                     
 800ef6c:	b9 80 08 00 	mv r1,r12                                      
      printf ("rtems-rfs: inode-close: bad loads number: %d\n",       
              handle->loads);                                         
    rc = EIO;                                                         
  }                                                                   
                                                                      
  handle->ino = 0;                                                    
 800ef70:	59 60 00 08 	sw (r11+8),r0                                  
  return rc;                                                          
}                                                                     
 800ef74:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800ef78:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 800ef7c:	2b 8c 00 08 	lw r12,(sp+8)                                  
 800ef80:	37 9c 00 0c 	addi sp,sp,12                                  
 800ef84:	c3 a0 00 00 	ret                                            
                                                                      

0800f340 <rtems_rfs_inode_create>: uint16_t mode, uint16_t links, uid_t uid, gid_t gid, rtems_rfs_ino* ino) {
 800f340:	37 9c ff 7c 	addi sp,sp,-132                                
 800f344:	5b 8b 00 34 	sw (sp+52),r11                                 
 800f348:	5b 8c 00 30 	sw (sp+48),r12                                 
 800f34c:	5b 8d 00 2c 	sw (sp+44),r13                                 
 800f350:	5b 8e 00 28 	sw (sp+40),r14                                 
 800f354:	5b 8f 00 24 	sw (sp+36),r15                                 
 800f358:	5b 90 00 20 	sw (sp+32),r16                                 
 800f35c:	5b 91 00 1c 	sw (sp+28),r17                                 
 800f360:	5b 92 00 18 	sw (sp+24),r18                                 
 800f364:	5b 93 00 14 	sw (sp+20),r19                                 
 800f368:	5b 94 00 10 	sw (sp+16),r20                                 
 800f36c:	5b 95 00 0c 	sw (sp+12),r21                                 
 800f370:	5b 96 00 08 	sw (sp+8),r22                                  
 800f374:	5b 9d 00 04 	sw (sp+4),ra                                   
 800f378:	b8 20 58 00 	mv r11,r1                                      
 800f37c:	b8 40 88 00 	mv r17,r2                                      
  rtems_rfs_inode_handle parent_inode;                                
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CREATE))                 
 800f380:	34 01 00 00 	mvi r1,0                                       
 800f384:	78 02 00 40 	mvhi r2,0x40                                   
                        uint16_t                mode,                 
                        uint16_t                links,                
                        uid_t                   uid,                  
                        gid_t                   gid,                  
                        rtems_rfs_ino*          ino)                  
{                                                                     
 800f388:	b8 60 98 00 	mv r19,r3                                      
 800f38c:	b8 80 90 00 	mv r18,r4                                      
 800f390:	2b 8e 00 88 	lw r14,(sp+136)                                
 800f394:	20 b0 ff ff 	andi r16,r5,0xffff                             
 800f398:	20 d6 ff ff 	andi r22,r6,0xffff                             
 800f39c:	20 f5 ff ff 	andi r21,r7,0xffff                             
 800f3a0:	21 14 ff ff 	andi r20,r8,0xffff                             
  rtems_rfs_inode_handle parent_inode;                                
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CREATE))                 
 800f3a4:	f8 00 06 00 	calli 8010ba4 <rtems_rfs_trace>                
 800f3a8:	44 20 00 29 	be r1,r0,800f44c <rtems_rfs_inode_create+0x10c><== ALWAYS TAKEN
  {                                                                   
    const char* type = "unknown";                                     
    int         c;                                                    
    if (RTEMS_RFS_S_ISDIR (mode))                                     
      type = "dir";                                                   
 800f3ac:	78 0c 08 03 	mvhi r12,0x803                                 <== NOT EXECUTED
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CREATE))                 
  {                                                                   
    const char* type = "unknown";                                     
    int         c;                                                    
    if (RTEMS_RFS_S_ISDIR (mode))                                     
 800f3b0:	22 01 f0 00 	andi r1,r16,0xf000                             <== NOT EXECUTED
 800f3b4:	34 02 40 00 	mvi r2,16384                                   <== NOT EXECUTED
      type = "dir";                                                   
 800f3b8:	39 8c 56 38 	ori r12,r12,0x5638                             <== NOT EXECUTED
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CREATE))                 
  {                                                                   
    const char* type = "unknown";                                     
    int         c;                                                    
    if (RTEMS_RFS_S_ISDIR (mode))                                     
 800f3bc:	44 22 00 13 	be r1,r2,800f408 <rtems_rfs_inode_create+0xc8> <== NOT EXECUTED
      type = "dir";                                                   
    else if (RTEMS_RFS_S_ISCHR (mode))                                
      type = "char";                                                  
 800f3c0:	78 0c 08 03 	mvhi r12,0x803                                 <== NOT EXECUTED
  {                                                                   
    const char* type = "unknown";                                     
    int         c;                                                    
    if (RTEMS_RFS_S_ISDIR (mode))                                     
      type = "dir";                                                   
    else if (RTEMS_RFS_S_ISCHR (mode))                                
 800f3c4:	34 02 20 00 	mvi r2,8192                                    <== NOT EXECUTED
      type = "char";                                                  
 800f3c8:	39 8c 56 3c 	ori r12,r12,0x563c                             <== NOT EXECUTED
  {                                                                   
    const char* type = "unknown";                                     
    int         c;                                                    
    if (RTEMS_RFS_S_ISDIR (mode))                                     
      type = "dir";                                                   
    else if (RTEMS_RFS_S_ISCHR (mode))                                
 800f3cc:	44 22 00 0f 	be r1,r2,800f408 <rtems_rfs_inode_create+0xc8> <== NOT EXECUTED
      type = "char";                                                  
    else if (RTEMS_RFS_S_ISBLK (mode))                                
      type = "block";                                                 
 800f3d0:	78 0c 08 03 	mvhi r12,0x803                                 <== NOT EXECUTED
    int         c;                                                    
    if (RTEMS_RFS_S_ISDIR (mode))                                     
      type = "dir";                                                   
    else if (RTEMS_RFS_S_ISCHR (mode))                                
      type = "char";                                                  
    else if (RTEMS_RFS_S_ISBLK (mode))                                
 800f3d4:	34 02 60 00 	mvi r2,24576                                   <== NOT EXECUTED
      type = "block";                                                 
 800f3d8:	39 8c 54 5c 	ori r12,r12,0x545c                             <== NOT EXECUTED
    int         c;                                                    
    if (RTEMS_RFS_S_ISDIR (mode))                                     
      type = "dir";                                                   
    else if (RTEMS_RFS_S_ISCHR (mode))                                
      type = "char";                                                  
    else if (RTEMS_RFS_S_ISBLK (mode))                                
 800f3dc:	44 22 00 0b 	be r1,r2,800f408 <rtems_rfs_inode_create+0xc8> <== NOT EXECUTED
      type = "block";                                                 
    else if (RTEMS_RFS_S_ISREG (mode))                                
      type = "file";                                                  
 800f3e0:	78 0c 08 03 	mvhi r12,0x803                                 <== NOT EXECUTED
      type = "dir";                                                   
    else if (RTEMS_RFS_S_ISCHR (mode))                                
      type = "char";                                                  
    else if (RTEMS_RFS_S_ISBLK (mode))                                
      type = "block";                                                 
    else if (RTEMS_RFS_S_ISREG (mode))                                
 800f3e4:	34 42 20 00 	addi r2,r2,8192                                <== NOT EXECUTED
      type = "file";                                                  
 800f3e8:	39 8c 65 68 	ori r12,r12,0x6568                             <== NOT EXECUTED
      type = "dir";                                                   
    else if (RTEMS_RFS_S_ISCHR (mode))                                
      type = "char";                                                  
    else if (RTEMS_RFS_S_ISBLK (mode))                                
      type = "block";                                                 
    else if (RTEMS_RFS_S_ISREG (mode))                                
 800f3ec:	44 22 00 07 	be r1,r2,800f408 <rtems_rfs_inode_create+0xc8> <== NOT EXECUTED
      type = "file";                                                  
    else if (RTEMS_RFS_S_ISLNK (mode))                                
      type = "link";                                                  
 800f3f0:	78 0c 08 03 	mvhi r12,0x803                                 <== NOT EXECUTED
      type = "char";                                                  
    else if (RTEMS_RFS_S_ISBLK (mode))                                
      type = "block";                                                 
    else if (RTEMS_RFS_S_ISREG (mode))                                
      type = "file";                                                  
    else if (RTEMS_RFS_S_ISLNK (mode))                                
 800f3f4:	34 42 20 00 	addi r2,r2,8192                                <== NOT EXECUTED
      type = "link";                                                  
 800f3f8:	39 8c 56 4c 	ori r12,r12,0x564c                             <== NOT EXECUTED
      type = "char";                                                  
    else if (RTEMS_RFS_S_ISBLK (mode))                                
      type = "block";                                                 
    else if (RTEMS_RFS_S_ISREG (mode))                                
      type = "file";                                                  
    else if (RTEMS_RFS_S_ISLNK (mode))                                
 800f3fc:	44 22 00 03 	be r1,r2,800f408 <rtems_rfs_inode_create+0xc8> <== NOT EXECUTED
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CREATE))                 
  {                                                                   
    const char* type = "unknown";                                     
 800f400:	78 0c 08 03 	mvhi r12,0x803                                 <== NOT EXECUTED
 800f404:	39 8c 56 44 	ori r12,r12,0x5644                             <== NOT EXECUTED
      type = "block";                                                 
    else if (RTEMS_RFS_S_ISREG (mode))                                
      type = "file";                                                  
    else if (RTEMS_RFS_S_ISLNK (mode))                                
      type = "link";                                                  
    printf("rtems-rfs: inode-create: parent:%" PRIu32 " name:", parent);
 800f408:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800f40c:	38 21 56 54 	ori r1,r1,0x5654                               <== NOT EXECUTED
 800f410:	ba 20 10 00 	mv r2,r17                                      <== NOT EXECUTED
 800f414:	f8 00 47 db 	calli 8021380 <printf>                         <== NOT EXECUTED
    for (c = 0; c < length; c++)                                      
 800f418:	34 0d 00 00 	mvi r13,0                                      <== NOT EXECUTED
 800f41c:	e0 00 00 05 	bi 800f430 <rtems_rfs_inode_create+0xf0>       <== NOT EXECUTED
                                                                      
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_inode_create (rtems_rfs_file_system*  fs,                   
 800f420:	b6 6d 08 00 	add r1,r19,r13                                 <== NOT EXECUTED
      type = "file";                                                  
    else if (RTEMS_RFS_S_ISLNK (mode))                                
      type = "link";                                                  
    printf("rtems-rfs: inode-create: parent:%" PRIu32 " name:", parent);
    for (c = 0; c < length; c++)                                      
      printf ("%c", name[c]);                                         
 800f424:	40 21 00 00 	lbu r1,(r1+0)                                  <== NOT EXECUTED
    else if (RTEMS_RFS_S_ISREG (mode))                                
      type = "file";                                                  
    else if (RTEMS_RFS_S_ISLNK (mode))                                
      type = "link";                                                  
    printf("rtems-rfs: inode-create: parent:%" PRIu32 " name:", parent);
    for (c = 0; c < length; c++)                                      
 800f428:	35 ad 00 01 	addi r13,r13,1                                 <== NOT EXECUTED
      printf ("%c", name[c]);                                         
 800f42c:	f8 00 48 5b 	calli 8021598 <putchar>                        <== NOT EXECUTED
    else if (RTEMS_RFS_S_ISREG (mode))                                
      type = "file";                                                  
    else if (RTEMS_RFS_S_ISLNK (mode))                                
      type = "link";                                                  
    printf("rtems-rfs: inode-create: parent:%" PRIu32 " name:", parent);
    for (c = 0; c < length; c++)                                      
 800f430:	56 4d ff fc 	bgu r18,r13,800f420 <rtems_rfs_inode_create+0xe0><== NOT EXECUTED
      printf ("%c", name[c]);                                         
    printf (" type:%s mode:%04x (%03o)\n", type, mode, mode & ((1 << 10) - 1));
 800f434:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800f438:	38 21 56 80 	ori r1,r1,0x5680                               <== NOT EXECUTED
 800f43c:	b9 80 10 00 	mv r2,r12                                      <== NOT EXECUTED
 800f440:	ba 00 18 00 	mv r3,r16                                      <== NOT EXECUTED
 800f444:	22 04 03 ff 	andi r4,r16,0x3ff                              <== NOT EXECUTED
 800f448:	f8 00 47 ce 	calli 8021380 <printf>                         <== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   * The file type is field within the mode. Check we have a sane mode set.
   */                                                                 
  switch (mode & RTEMS_RFS_S_IFMT)                                    
 800f44c:	22 0d f0 00 	andi r13,r16,0xf000                            
 800f450:	34 01 60 00 	mvi r1,24576                                   
 800f454:	45 a1 00 0b 	be r13,r1,800f480 <rtems_rfs_inode_create+0x140><== NEVER TAKEN
 800f458:	49 a1 00 05 	bg r13,r1,800f46c <rtems_rfs_inode_create+0x12c>
 800f45c:	34 01 20 00 	mvi r1,8192                                    
 800f460:	45 a1 00 08 	be r13,r1,800f480 <rtems_rfs_inode_create+0x140><== NEVER TAKEN
 800f464:	34 01 40 00 	mvi r1,16384                                   
 800f468:	e0 00 00 04 	bi 800f478 <rtems_rfs_inode_create+0x138>      
 800f46c:	38 01 80 00 	mvu r1,0x8000                                  
 800f470:	45 a1 00 04 	be r13,r1,800f480 <rtems_rfs_inode_create+0x140>
 800f474:	34 21 20 00 	addi r1,r1,8192                                
    case RTEMS_RFS_S_IFBLK:                                           
    case RTEMS_RFS_S_IFREG:                                           
    case RTEMS_RFS_S_IFLNK:                                           
      break;                                                          
    default:                                                          
      return EINVAL;                                                  
 800f478:	34 0c 00 16 	mvi r12,22                                     
  }                                                                   
                                                                      
  /*                                                                  
   * The file type is field within the mode. Check we have a sane mode set.
   */                                                                 
  switch (mode & RTEMS_RFS_S_IFMT)                                    
 800f47c:	5d a1 00 7b 	bne r13,r1,800f668 <rtems_rfs_inode_create+0x328><== NEVER TAKEN
      break;                                                          
    default:                                                          
      return EINVAL;                                                  
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_alloc (fs, parent, ino);                       
 800f480:	b9 60 08 00 	mv r1,r11                                      
 800f484:	ba 20 10 00 	mv r2,r17                                      
 800f488:	b9 c0 18 00 	mv r3,r14                                      
 800f48c:	fb ff fd c8 	calli 800ebac <rtems_rfs_inode_alloc>          
 800f490:	b8 20 60 00 	mv r12,r1                                      
  if (rc > 0)                                                         
 800f494:	48 20 00 75 	bg r1,r0,800f668 <rtems_rfs_inode_create+0x328>
    return rc;                                                        
                                                                      
  rc = rtems_rfs_inode_open (fs, *ino, &inode, true);                 
 800f498:	29 c2 00 00 	lw r2,(r14+0)                                  
 800f49c:	37 8f 00 38 	addi r15,sp,56                                 
 800f4a0:	b9 60 08 00 	mv r1,r11                                      
 800f4a4:	b9 e0 18 00 	mv r3,r15                                      
 800f4a8:	34 04 00 01 	mvi r4,1                                       
 800f4ac:	fb ff fe 05 	calli 800ecc0 <rtems_rfs_inode_open>           
 800f4b0:	b8 20 60 00 	mv r12,r1                                      
  if (rc > 0)                                                         
 800f4b4:	4c 01 00 02 	bge r0,r1,800f4bc <rtems_rfs_inode_create+0x17c><== ALWAYS TAKEN
 800f4b8:	e0 00 00 67 	bi 800f654 <rtems_rfs_inode_create+0x314>      <== NOT EXECUTED
  {                                                                   
    rtems_rfs_inode_free (fs, *ino);                                  
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_initialise (&inode, links, mode, uid, gid);    
 800f4bc:	b9 e0 08 00 	mv r1,r15                                      
 800f4c0:	ba c0 10 00 	mv r2,r22                                      
 800f4c4:	ba 00 18 00 	mv r3,r16                                      
 800f4c8:	ba a0 20 00 	mv r4,r21                                      
 800f4cc:	ba 80 28 00 	mv r5,r20                                      
 800f4d0:	fb ff ff 28 	calli 800f170 <rtems_rfs_inode_initialise>     
 800f4d4:	b8 20 60 00 	mv r12,r1                                      
  if (rc > 0)                                                         
 800f4d8:	4c 01 00 05 	bge r0,r1,800f4ec <rtems_rfs_inode_create+0x1ac><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_inode_close (fs, &inode);                               
 800f4dc:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800f4e0:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
 800f4e4:	fb ff fe 83 	calli 800eef0 <rtems_rfs_inode_close>          <== NOT EXECUTED
 800f4e8:	e0 00 00 5b 	bi 800f654 <rtems_rfs_inode_create+0x314>      <== NOT EXECUTED
  /*                                                                  
   * Only handle the specifics of a directory. Let caller handle the others.
   *                                                                  
   * The inode delete will free the inode.                            
   */                                                                 
  if (RTEMS_RFS_S_ISDIR (mode))                                       
 800f4ec:	34 01 40 00 	mvi r1,16384                                   
 800f4f0:	5d a1 00 14 	bne r13,r1,800f540 <rtems_rfs_inode_create+0x200>
  {                                                                   
    rc = rtems_rfs_dir_add_entry (fs, &inode, ".", 1, *ino);          
 800f4f4:	29 c5 00 00 	lw r5,(r14+0)                                  
 800f4f8:	78 03 08 03 	mvhi r3,0x803                                  
 800f4fc:	b9 60 08 00 	mv r1,r11                                      
 800f500:	b9 e0 10 00 	mv r2,r15                                      
 800f504:	38 63 37 bc 	ori r3,r3,0x37bc                               
 800f508:	34 04 00 01 	mvi r4,1                                       
 800f50c:	f8 00 2d 4b 	calli 801aa38 <rtems_rfs_dir_add_entry>        
 800f510:	b8 20 60 00 	mv r12,r1                                      
    if (rc == 0)                                                      
 800f514:	5c 20 00 09 	bne r1,r0,800f538 <rtems_rfs_inode_create+0x1f8><== NEVER TAKEN
      rc = rtems_rfs_dir_add_entry (fs, &inode, "..", 2, parent);     
 800f518:	78 03 08 03 	mvhi r3,0x803                                  
 800f51c:	b9 60 08 00 	mv r1,r11                                      
 800f520:	b9 e0 10 00 	mv r2,r15                                      
 800f524:	38 63 37 c0 	ori r3,r3,0x37c0                               
 800f528:	34 04 00 02 	mvi r4,2                                       
 800f52c:	ba 20 28 00 	mv r5,r17                                      
 800f530:	f8 00 2d 42 	calli 801aa38 <rtems_rfs_dir_add_entry>        
 800f534:	b8 20 60 00 	mv r12,r1                                      
    if (rc > 0)                                                       
 800f538:	4c 0c 00 02 	bge r0,r12,800f540 <rtems_rfs_inode_create+0x200><== ALWAYS TAKEN
 800f53c:	e0 00 00 09 	bi 800f560 <rtems_rfs_inode_create+0x220>      <== NOT EXECUTED
      rtems_rfs_inode_close (fs, &inode);                             
      return rc;                                                      
    }                                                                 
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);        
 800f540:	37 8f 00 60 	addi r15,sp,96                                 
 800f544:	b9 60 08 00 	mv r1,r11                                      
 800f548:	ba 20 10 00 	mv r2,r17                                      
 800f54c:	b9 e0 18 00 	mv r3,r15                                      
 800f550:	34 04 00 01 	mvi r4,1                                       
 800f554:	fb ff fd db 	calli 800ecc0 <rtems_rfs_inode_open>           
 800f558:	b8 20 60 00 	mv r12,r1                                      
  if (rc > 0)                                                         
 800f55c:	4c 01 00 03 	bge r0,r1,800f568 <rtems_rfs_inode_create+0x228><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_inode_delete (fs, &inode);                              
 800f560:	37 8d 00 38 	addi r13,sp,56                                 <== NOT EXECUTED
 800f564:	e0 00 00 30 	bi 800f624 <rtems_rfs_inode_create+0x2e4>      <== NOT EXECUTED
    rtems_rfs_inode_close (fs, &inode);                               
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_dir_add_entry (fs, &parent_inode, name, length, *ino);
 800f568:	29 c5 00 00 	lw r5,(r14+0)                                  
 800f56c:	b9 60 08 00 	mv r1,r11                                      
 800f570:	b9 e0 10 00 	mv r2,r15                                      
 800f574:	ba 60 18 00 	mv r3,r19                                      
 800f578:	ba 40 20 00 	mv r4,r18                                      
 800f57c:	f8 00 2d 2f 	calli 801aa38 <rtems_rfs_dir_add_entry>        
 800f580:	b8 20 60 00 	mv r12,r1                                      
  if (rc > 0)                                                         
 800f584:	4c 01 00 0b 	bge r0,r1,800f5b0 <rtems_rfs_inode_create+0x270><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_inode_delete (fs, &inode);                              
 800f588:	37 8d 00 38 	addi r13,sp,56                                 <== NOT EXECUTED
 800f58c:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 800f590:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800f594:	fb ff fe 7d 	calli 800ef88 <rtems_rfs_inode_delete>         <== NOT EXECUTED
    rtems_rfs_inode_close (fs, &inode);                               
 800f598:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 800f59c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800f5a0:	fb ff fe 54 	calli 800eef0 <rtems_rfs_inode_close>          <== NOT EXECUTED
    rtems_rfs_inode_close (fs, &parent_inode);                        
 800f5a4:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800f5a8:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
 800f5ac:	e0 00 00 23 	bi 800f638 <rtems_rfs_inode_create+0x2f8>      <== NOT EXECUTED
                                                                      
  /*                                                                  
   * If the node is a directory update the parent link count as the   
   * new directory has the '..' link that points to the parent.       
   */                                                                 
  if (RTEMS_RFS_S_ISDIR (mode))                                       
 800f5b0:	34 01 40 00 	mvi r1,16384                                   
 800f5b4:	5d a1 00 16 	bne r13,r1,800f60c <rtems_rfs_inode_create+0x2cc>
 */                                                                   
static inline uint16_t                                                
rtems_rfs_inode_get_links (rtems_rfs_inode_handle* handle)            
{                                                                     
  uint16_t links;                                                     
  links = rtems_rfs_read_u16 (&handle->node->links);                  
 800f5b8:	2b 8c 00 6c 	lw r12,(sp+108)                                
 800f5bc:	34 02 00 08 	mvi r2,8                                       
 800f5c0:	41 81 00 00 	lbu r1,(r12+0)                                 
 800f5c4:	fb ff c7 c7 	calli 80014e0 <__ashlsi3>                      
 800f5c8:	41 82 00 01 	lbu r2,(r12+1)                                 
 800f5cc:	b8 22 08 00 	or r1,r1,r2                                    
 800f5d0:	20 21 ff ff 	andi r1,r1,0xffff                              
  if (links == 0xffff)                                                
 800f5d4:	38 02 ff ff 	mvu r2,0xffff                                  
    links = 0;                                                        
 800f5d8:	fc 22 10 00 	cmpne r2,r1,r2                                 
 800f5dc:	c8 02 10 00 	sub r2,r0,r2                                   
 800f5e0:	a0 22 08 00 	and r1,r1,r2                                   
    rtems_rfs_inode_set_links (&parent_inode,                         
 800f5e4:	34 21 00 01 	addi r1,r1,1                                   
 800f5e8:	20 2d ff ff 	andi r13,r1,0xffff                             
 * @prarm links The links.                                            
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_links (rtems_rfs_inode_handle* handle, uint16_t links)
{                                                                     
  rtems_rfs_write_u16 (&handle->node->links, links);                  
 800f5ec:	b9 a0 08 00 	mv r1,r13                                      
 800f5f0:	34 02 00 08 	mvi r2,8                                       
 800f5f4:	fb ff c7 e2 	calli 800157c <__lshrsi3>                      
 800f5f8:	31 81 00 00 	sb (r12+0),r1                                  
 800f5fc:	2b 81 00 6c 	lw r1,(sp+108)                                 
 800f600:	30 2d 00 01 	sb (r1+1),r13                                  
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
 800f604:	34 01 00 01 	mvi r1,1                                       
 800f608:	33 81 00 70 	sb (sp+112),r1                                 
                               rtems_rfs_inode_get_links (&parent_inode) + 1);
                                                                      
  rc = rtems_rfs_inode_close (fs, &parent_inode);                     
 800f60c:	b9 60 08 00 	mv r1,r11                                      
 800f610:	37 82 00 60 	addi r2,sp,96                                  
 800f614:	fb ff fe 37 	calli 800eef0 <rtems_rfs_inode_close>          
 800f618:	b8 20 60 00 	mv r12,r1                                      
 800f61c:	37 8d 00 38 	addi r13,sp,56                                 
  if (rc > 0)                                                         
 800f620:	4c 01 00 08 	bge r0,r1,800f640 <rtems_rfs_inode_create+0x300><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_inode_delete (fs, &inode);                              
 800f624:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 800f628:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800f62c:	fb ff fe 57 	calli 800ef88 <rtems_rfs_inode_delete>         <== NOT EXECUTED
    rtems_rfs_inode_close (fs, &inode);                               
 800f630:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800f634:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 800f638:	fb ff fe 2e 	calli 800eef0 <rtems_rfs_inode_close>          <== NOT EXECUTED
    return rc;                                                        
 800f63c:	e0 00 00 0b 	bi 800f668 <rtems_rfs_inode_create+0x328>      <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
 800f640:	b9 60 08 00 	mv r1,r11                                      
 800f644:	b9 a0 10 00 	mv r2,r13                                      
 800f648:	fb ff fe 2a 	calli 800eef0 <rtems_rfs_inode_close>          
 800f64c:	b8 20 60 00 	mv r12,r1                                      
  if (rc > 0)                                                         
 800f650:	4c 01 00 05 	bge r0,r1,800f664 <rtems_rfs_inode_create+0x324><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_inode_free (fs, *ino);                                  
 800f654:	29 c2 00 00 	lw r2,(r14+0)                                  <== NOT EXECUTED
 800f658:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800f65c:	fb ff fd 61 	calli 800ebe0 <rtems_rfs_inode_free>           <== NOT EXECUTED
    return rc;                                                        
 800f660:	e0 00 00 02 	bi 800f668 <rtems_rfs_inode_create+0x328>      <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
 800f664:	34 0c 00 00 	mvi r12,0                                      
}                                                                     
 800f668:	b9 80 08 00 	mv r1,r12                                      
 800f66c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800f670:	2b 8b 00 34 	lw r11,(sp+52)                                 
 800f674:	2b 8c 00 30 	lw r12,(sp+48)                                 
 800f678:	2b 8d 00 2c 	lw r13,(sp+44)                                 
 800f67c:	2b 8e 00 28 	lw r14,(sp+40)                                 
 800f680:	2b 8f 00 24 	lw r15,(sp+36)                                 
 800f684:	2b 90 00 20 	lw r16,(sp+32)                                 
 800f688:	2b 91 00 1c 	lw r17,(sp+28)                                 
 800f68c:	2b 92 00 18 	lw r18,(sp+24)                                 
 800f690:	2b 93 00 14 	lw r19,(sp+20)                                 
 800f694:	2b 94 00 10 	lw r20,(sp+16)                                 
 800f698:	2b 95 00 0c 	lw r21,(sp+12)                                 
 800f69c:	2b 96 00 08 	lw r22,(sp+8)                                  
 800f6a0:	37 9c 00 84 	addi sp,sp,132                                 
 800f6a4:	c3 a0 00 00 	ret                                            
                                                                      

0800ef88 <rtems_rfs_inode_delete>: } int rtems_rfs_inode_delete (rtems_rfs_file_system* fs, rtems_rfs_inode_handle* handle) {
 800ef88:	37 9c ff a0 	addi sp,sp,-96                                 
 800ef8c:	5b 8b 00 10 	sw (sp+16),r11                                 
 800ef90:	5b 8c 00 0c 	sw (sp+12),r12                                 
 800ef94:	5b 8d 00 08 	sw (sp+8),r13                                  
 800ef98:	5b 9d 00 04 	sw (sp+4),ra                                   
 800ef9c:	b8 20 60 00 	mv r12,r1                                      
 800efa0:	b8 40 58 00 	mv r11,r2                                      
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_DELETE))                 
 800efa4:	34 01 00 00 	mvi r1,0                                       
 800efa8:	78 02 00 80 	mvhi r2,0x80                                   
 800efac:	f8 00 06 fe 	calli 8010ba4 <rtems_rfs_trace>                
 800efb0:	44 20 00 0b 	be r1,r0,800efdc <rtems_rfs_inode_delete+0x54> <== ALWAYS TAKEN
    printf("rtems-rfs: inode-delete: ino:%" PRIu32 " loaded:%s\n",    
 800efb4:	29 61 00 0c 	lw r1,(r11+12)                                 <== NOT EXECUTED
 800efb8:	78 03 08 03 	mvhi r3,0x803                                  <== NOT EXECUTED
 800efbc:	29 62 00 08 	lw r2,(r11+8)                                  <== NOT EXECUTED
 800efc0:	38 63 59 c4 	ori r3,r3,0x59c4                               <== NOT EXECUTED
 800efc4:	44 20 00 03 	be r1,r0,800efd0 <rtems_rfs_inode_delete+0x48> <== NOT EXECUTED
 800efc8:	78 03 08 03 	mvhi r3,0x803                                  <== NOT EXECUTED
 800efcc:	38 63 55 24 	ori r3,r3,0x5524                               <== NOT EXECUTED
 800efd0:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800efd4:	38 21 56 0c 	ori r1,r1,0x560c                               <== NOT EXECUTED
 800efd8:	f8 00 48 ea 	calli 8021380 <printf>                         <== NOT EXECUTED
           rtems_rfs_inode_ino (handle),                              
           rtems_rfs_inode_is_loaded (handle) ? "yes" : "no");        
                                                                      
  if (rtems_rfs_inode_is_loaded (handle))                             
 800efdc:	29 62 00 0c 	lw r2,(r11+12)                                 
                                                                      
int                                                                   
rtems_rfs_inode_delete (rtems_rfs_file_system*  fs,                   
                        rtems_rfs_inode_handle* handle)               
{                                                                     
  int rc = 0;                                                         
 800efe0:	34 01 00 00 	mvi r1,0                                       
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_DELETE))                 
    printf("rtems-rfs: inode-delete: ino:%" PRIu32 " loaded:%s\n",    
           rtems_rfs_inode_ino (handle),                              
           rtems_rfs_inode_is_loaded (handle) ? "yes" : "no");        
                                                                      
  if (rtems_rfs_inode_is_loaded (handle))                             
 800efe4:	44 40 00 1c 	be r2,r0,800f054 <rtems_rfs_inode_delete+0xcc> <== NEVER TAKEN
    rtems_rfs_block_map map;                                          
                                                                      
    /*                                                                
     * Free the ino number.                                           
     */                                                               
    rc = rtems_rfs_inode_free (fs, handle->ino);                      
 800efe8:	29 62 00 08 	lw r2,(r11+8)                                  
 800efec:	b9 80 08 00 	mv r1,r12                                      
 800eff0:	fb ff fe fc 	calli 800ebe0 <rtems_rfs_inode_free>           
    if (rc > 0)                                                       
 800eff4:	48 20 00 18 	bg r1,r0,800f054 <rtems_rfs_inode_delete+0xcc> <== NEVER TAKEN
      return rc;                                                      
                                                                      
    /*                                                                
     * Free the blocks the inode may have attached.                   
     */                                                               
    rc = rtems_rfs_block_map_open (fs, handle, &map);                 
 800eff8:	37 8d 00 14 	addi r13,sp,20                                 
 800effc:	b9 80 08 00 	mv r1,r12                                      
 800f000:	b9 60 10 00 	mv r2,r11                                      
 800f004:	b9 a0 18 00 	mv r3,r13                                      
 800f008:	f8 00 26 b1 	calli 8018acc <rtems_rfs_block_map_open>       
    if (rc == 0)                                                      
 800f00c:	5c 20 00 12 	bne r1,r0,800f054 <rtems_rfs_inode_delete+0xcc><== NEVER TAKEN
    {                                                                 
      int rrc;                                                        
      rrc = rtems_rfs_block_map_free_all (fs, &map);                  
 800f010:	b9 a0 10 00 	mv r2,r13                                      
 800f014:	b9 80 08 00 	mv r1,r12                                      
 800f018:	f8 00 2a 8f 	calli 8019a54 <rtems_rfs_block_map_free_all>   
      rc = rtems_rfs_block_map_close (fs, &map);                      
 800f01c:	b9 a0 10 00 	mv r2,r13                                      
 800f020:	b9 80 08 00 	mv r1,r12                                      
 800f024:	f8 00 27 31 	calli 8018ce8 <rtems_rfs_block_map_close>      
      if (rc > 0)                                                     
        rrc = rc;                                                     
      memset (handle->node, 0xff, RTEMS_RFS_INODE_SIZE);              
 800f028:	29 61 00 0c 	lw r1,(r11+12)                                 
 800f02c:	34 02 00 ff 	mvi r2,255                                     
 800f030:	34 03 00 38 	mvi r3,56                                      
 800f034:	f8 00 48 37 	calli 8021110 <memset>                         
      rtems_rfs_buffer_mark_dirty (&handle->buffer);                  
 800f038:	34 01 00 01 	mvi r1,1                                       
 800f03c:	31 61 00 10 	sb (r11+16),r1                                 
      /*                                                              
       * Do the release here to avoid the ctime field being set on a  
       * close. Also if there loads is greater then one then other loads
       * active. Forcing the loads count to 0.                        
       */                                                             
      rc = rtems_rfs_buffer_handle_release (fs, &handle->buffer);     
 800f040:	35 62 00 10 	addi r2,r11,16                                 
 800f044:	b9 80 08 00 	mv r1,r12                                      
 800f048:	f8 00 2a fe 	calli 8019c40 <rtems_rfs_buffer_handle_release>
      handle->loads = 0;                                              
 800f04c:	59 60 00 24 	sw (r11+36),r0                                 
      handle->node = NULL;                                            
 800f050:	59 60 00 0c 	sw (r11+12),r0                                 
    }                                                                 
  }                                                                   
  return rc;                                                          
}                                                                     
 800f054:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800f058:	2b 8b 00 10 	lw r11,(sp+16)                                 
 800f05c:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 800f060:	2b 8d 00 08 	lw r13,(sp+8)                                  
 800f064:	37 9c 00 60 	addi sp,sp,96                                  
 800f068:	c3 a0 00 00 	ret                                            
                                                                      

0801ded4 <rtems_rfs_inode_get_block.clone.0>: * @param handle The inode handle. * @param block The block number to return. * @return uint32_t The block number. */ static inline uint32_t rtems_rfs_inode_get_block (rtems_rfs_inode_handle* handle, int block)
 801ded4:	37 9c ff f4 	addi sp,sp,-12                                 <== NOT EXECUTED
 801ded8:	5b 8b 00 0c 	sw (sp+12),r11                                 <== NOT EXECUTED
 801dedc:	5b 8c 00 08 	sw (sp+8),r12                                  <== NOT EXECUTED
 801dee0:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->data.blocks[block]);      
 801dee4:	34 2b 00 1c 	addi r11,r1,28                                 <== NOT EXECUTED
 801dee8:	b8 40 08 00 	mv r1,r2                                       <== NOT EXECUTED
 801deec:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
 801def0:	fb ff 8d 7c 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 801def4:	b5 61 58 00 	add r11,r11,r1                                 <== NOT EXECUTED
 801def8:	41 61 00 00 	lbu r1,(r11+0)                                 <== NOT EXECUTED
 801defc:	41 6c 00 03 	lbu r12,(r11+3)                                <== NOT EXECUTED
 801df00:	34 02 00 18 	mvi r2,24                                      <== NOT EXECUTED
 801df04:	fb ff 8d 77 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 801df08:	b9 81 60 00 	or r12,r12,r1                                  <== NOT EXECUTED
 801df0c:	41 61 00 01 	lbu r1,(r11+1)                                 <== NOT EXECUTED
 801df10:	34 02 00 10 	mvi r2,16                                      <== NOT EXECUTED
 801df14:	fb ff 8d 73 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 801df18:	b9 81 60 00 	or r12,r12,r1                                  <== NOT EXECUTED
 801df1c:	41 61 00 02 	lbu r1,(r11+2)                                 <== NOT EXECUTED
 801df20:	34 02 00 08 	mvi r2,8                                       <== NOT EXECUTED
 801df24:	fb ff 8d 6f 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
}                                                                     
 801df28:	b9 81 08 00 	or r1,r12,r1                                   <== NOT EXECUTED
 801df2c:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 801df30:	2b 8b 00 0c 	lw r11,(sp+12)                                 <== NOT EXECUTED
 801df34:	2b 8c 00 08 	lw r12,(sp+8)                                  <== NOT EXECUTED
 801df38:	37 9c 00 0c 	addi sp,sp,12                                  <== NOT EXECUTED
 801df3c:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

080101a0 <rtems_rfs_inode_get_block.clone.12>: * @param handle The inode handle. * @param block The block number to return. * @return uint32_t The block number. */ static inline uint32_t rtems_rfs_inode_get_block (rtems_rfs_inode_handle* handle, int block)
 80101a0:	37 9c ff f4 	addi sp,sp,-12                                 <== NOT EXECUTED
 80101a4:	5b 8b 00 0c 	sw (sp+12),r11                                 <== NOT EXECUTED
 80101a8:	5b 8c 00 08 	sw (sp+8),r12                                  <== NOT EXECUTED
 80101ac:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->data.blocks[block]);      
 80101b0:	34 2b 00 1c 	addi r11,r1,28                                 <== NOT EXECUTED
 80101b4:	b8 40 08 00 	mv r1,r2                                       <== NOT EXECUTED
 80101b8:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
 80101bc:	fb ff c4 c9 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 80101c0:	b5 61 58 00 	add r11,r11,r1                                 <== NOT EXECUTED
 80101c4:	41 61 00 00 	lbu r1,(r11+0)                                 <== NOT EXECUTED
 80101c8:	41 6c 00 03 	lbu r12,(r11+3)                                <== NOT EXECUTED
 80101cc:	34 02 00 18 	mvi r2,24                                      <== NOT EXECUTED
 80101d0:	fb ff c4 c4 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 80101d4:	b9 81 60 00 	or r12,r12,r1                                  <== NOT EXECUTED
 80101d8:	41 61 00 01 	lbu r1,(r11+1)                                 <== NOT EXECUTED
 80101dc:	34 02 00 10 	mvi r2,16                                      <== NOT EXECUTED
 80101e0:	fb ff c4 c0 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 80101e4:	b9 81 60 00 	or r12,r12,r1                                  <== NOT EXECUTED
 80101e8:	41 61 00 02 	lbu r1,(r11+2)                                 <== NOT EXECUTED
 80101ec:	34 02 00 08 	mvi r2,8                                       <== NOT EXECUTED
 80101f0:	fb ff c4 bc 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
}                                                                     
 80101f4:	b9 81 08 00 	or r1,r12,r1                                   <== NOT EXECUTED
 80101f8:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 80101fc:	2b 8b 00 0c 	lw r11,(sp+12)                                 <== NOT EXECUTED
 8010200:	2b 8c 00 08 	lw r12,(sp+8)                                  <== NOT EXECUTED
 8010204:	37 9c 00 0c 	addi sp,sp,12                                  <== NOT EXECUTED
 8010208:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0801d6c4 <rtems_rfs_inode_get_block.clone.5>: * @param handle The inode handle. * @param block The block number to return. * @return uint32_t The block number. */ static inline uint32_t rtems_rfs_inode_get_block (rtems_rfs_inode_handle* handle, int block)
 801d6c4:	37 9c ff f4 	addi sp,sp,-12                                 <== NOT EXECUTED
 801d6c8:	5b 8b 00 0c 	sw (sp+12),r11                                 <== NOT EXECUTED
 801d6cc:	5b 8c 00 08 	sw (sp+8),r12                                  <== NOT EXECUTED
 801d6d0:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->data.blocks[block]);      
 801d6d4:	34 2b 00 1c 	addi r11,r1,28                                 <== NOT EXECUTED
 801d6d8:	b8 40 08 00 	mv r1,r2                                       <== NOT EXECUTED
 801d6dc:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
 801d6e0:	fb ff 8a c6 	calli 80001f8 <__ashlsi3>                      <== NOT EXECUTED
 801d6e4:	b5 61 58 00 	add r11,r11,r1                                 <== NOT EXECUTED
 801d6e8:	41 61 00 00 	lbu r1,(r11+0)                                 <== NOT EXECUTED
 801d6ec:	41 6c 00 03 	lbu r12,(r11+3)                                <== NOT EXECUTED
 801d6f0:	34 02 00 18 	mvi r2,24                                      <== NOT EXECUTED
 801d6f4:	fb ff 8a c1 	calli 80001f8 <__ashlsi3>                      <== NOT EXECUTED
 801d6f8:	b9 81 60 00 	or r12,r12,r1                                  <== NOT EXECUTED
 801d6fc:	41 61 00 01 	lbu r1,(r11+1)                                 <== NOT EXECUTED
 801d700:	34 02 00 10 	mvi r2,16                                      <== NOT EXECUTED
 801d704:	fb ff 8a bd 	calli 80001f8 <__ashlsi3>                      <== NOT EXECUTED
 801d708:	b9 81 60 00 	or r12,r12,r1                                  <== NOT EXECUTED
 801d70c:	41 61 00 02 	lbu r1,(r11+2)                                 <== NOT EXECUTED
 801d710:	34 02 00 08 	mvi r2,8                                       <== NOT EXECUTED
 801d714:	fb ff 8a b9 	calli 80001f8 <__ashlsi3>                      <== NOT EXECUTED
}                                                                     
 801d718:	b9 81 08 00 	or r1,r12,r1                                   <== NOT EXECUTED
 801d71c:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 801d720:	2b 8b 00 0c 	lw r11,(sp+12)                                 <== NOT EXECUTED
 801d724:	2b 8c 00 08 	lw r12,(sp+8)                                  <== NOT EXECUTED
 801d728:	37 9c 00 0c 	addi sp,sp,12                                  <== NOT EXECUTED
 801d72c:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0800ec00 <rtems_rfs_inode_load>: } int rtems_rfs_inode_load (rtems_rfs_file_system* fs, rtems_rfs_inode_handle* handle) {
 800ec00:	37 9c ff f0 	addi sp,sp,-16                                 
 800ec04:	5b 8b 00 10 	sw (sp+16),r11                                 
 800ec08:	5b 8c 00 0c 	sw (sp+12),r12                                 
 800ec0c:	5b 8d 00 08 	sw (sp+8),r13                                  
 800ec10:	5b 9d 00 04 	sw (sp+4),ra                                   
 800ec14:	b8 20 68 00 	mv r13,r1                                      
 800ec18:	b8 40 58 00 	mv r11,r2                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_LOAD))                   
 800ec1c:	34 01 00 00 	mvi r1,0                                       
 800ec20:	78 02 00 10 	mvhi r2,0x10                                   
 800ec24:	f8 00 07 e0 	calli 8010ba4 <rtems_rfs_trace>                
 800ec28:	44 20 00 0d 	be r1,r0,800ec5c <rtems_rfs_inode_load+0x5c>   <== ALWAYS TAKEN
    printf ("rtems-rfs: inode-load: ino=%" PRIu32 " loads=%i loaded=%s\n",
 800ec2c:	29 61 00 0c 	lw r1,(r11+12)                                 <== NOT EXECUTED
 800ec30:	78 04 08 03 	mvhi r4,0x803                                  <== NOT EXECUTED
 800ec34:	29 62 00 08 	lw r2,(r11+8)                                  <== NOT EXECUTED
 800ec38:	29 63 00 24 	lw r3,(r11+36)                                 <== NOT EXECUTED
 800ec3c:	38 84 59 c4 	ori r4,r4,0x59c4                               <== NOT EXECUTED
 800ec40:	44 20 00 03 	be r1,r0,800ec4c <rtems_rfs_inode_load+0x4c>   <== NOT EXECUTED
 800ec44:	78 04 08 03 	mvhi r4,0x803                                  <== NOT EXECUTED
 800ec48:	38 84 55 24 	ori r4,r4,0x5524                               <== NOT EXECUTED
 800ec4c:	78 05 08 03 	mvhi r5,0x803                                  <== NOT EXECUTED
 800ec50:	b8 a0 08 00 	mv r1,r5                                       <== NOT EXECUTED
 800ec54:	38 21 55 28 	ori r1,r1,0x5528                               <== NOT EXECUTED
 800ec58:	f8 00 49 ca 	calli 8021380 <printf>                         <== NOT EXECUTED
                                                                      
  /*                                                                  
   * An inode does not move so once loaded no need to do again.       
   */                                                                 
                                                                      
  if (!rtems_rfs_inode_is_loaded (handle))                            
 800ec5c:	29 6c 00 0c 	lw r12,(r11+12)                                
 800ec60:	5d 80 00 0e 	bne r12,r0,800ec98 <rtems_rfs_inode_load+0x98> 
  {                                                                   
    int rc;                                                           
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs,&handle->buffer,         
 800ec64:	29 63 00 1c 	lw r3,(r11+28)                                 
 800ec68:	b9 a0 08 00 	mv r1,r13                                      
 800ec6c:	35 62 00 10 	addi r2,r11,16                                 
 800ec70:	34 04 00 01 	mvi r4,1                                       
 800ec74:	f8 00 2c 62 	calli 8019dfc <rtems_rfs_buffer_handle_request>
                                          handle->block, true);       
    if (rc > 0)                                                       
 800ec78:	48 2c 00 0c 	bg r1,r12,800eca8 <rtems_rfs_inode_load+0xa8>  <== NEVER TAKEN
      return rc;                                                      
                                                                      
    handle->node = rtems_rfs_buffer_data (&handle->buffer);           
    handle->node += handle->offset;                                   
 800ec7c:	29 61 00 20 	lw r1,(r11+32)                                 
    rc = rtems_rfs_buffer_handle_request (fs,&handle->buffer,         
                                          handle->block, true);       
    if (rc > 0)                                                       
      return rc;                                                      
                                                                      
    handle->node = rtems_rfs_buffer_data (&handle->buffer);           
 800ec80:	29 6c 00 18 	lw r12,(r11+24)                                
    handle->node += handle->offset;                                   
 800ec84:	34 02 00 38 	mvi r2,56                                      
 800ec88:	fb ff ca 64 	calli 8001618 <__mulsi3>                       
 800ec8c:	29 82 00 1c 	lw r2,(r12+28)                                 
 800ec90:	b4 41 08 00 	add r1,r2,r1                                   
 800ec94:	59 61 00 0c 	sw (r11+12),r1                                 
  }                                                                   
                                                                      
  handle->loads++;                                                    
 800ec98:	29 61 00 24 	lw r1,(r11+36)                                 
 800ec9c:	34 21 00 01 	addi r1,r1,1                                   
 800eca0:	59 61 00 24 	sw (r11+36),r1                                 
                                                                      
  return 0;                                                           
 800eca4:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 800eca8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800ecac:	2b 8b 00 10 	lw r11,(sp+16)                                 
 800ecb0:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 800ecb4:	2b 8d 00 08 	lw r13,(sp+8)                                  
 800ecb8:	37 9c 00 10 	addi sp,sp,16                                  
 800ecbc:	c3 a0 00 00 	ret                                            
                                                                      

0800ecc0 <rtems_rfs_inode_open>: int rtems_rfs_inode_open (rtems_rfs_file_system* fs, rtems_rfs_ino ino, rtems_rfs_inode_handle* handle, bool load) {
 800ecc0:	37 9c ff e0 	addi sp,sp,-32                                 
 800ecc4:	5b 8b 00 20 	sw (sp+32),r11                                 
 800ecc8:	5b 8c 00 1c 	sw (sp+28),r12                                 
 800eccc:	5b 8d 00 18 	sw (sp+24),r13                                 
 800ecd0:	5b 8e 00 14 	sw (sp+20),r14                                 
 800ecd4:	5b 8f 00 10 	sw (sp+16),r15                                 
 800ecd8:	5b 90 00 0c 	sw (sp+12),r16                                 
 800ecdc:	5b 91 00 08 	sw (sp+8),r17                                  
 800ece0:	5b 9d 00 04 	sw (sp+4),ra                                   
 800ece4:	b8 20 60 00 	mv r12,r1                                      
 800ece8:	b8 40 68 00 	mv r13,r2                                      
  int group;                                                          
  int gino;                                                           
  int index;                                                          
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_OPEN))                   
 800ecec:	34 01 00 00 	mvi r1,0                                       
 800ecf0:	78 02 00 04 	mvhi r2,0x4                                    
int                                                                   
rtems_rfs_inode_open (rtems_rfs_file_system*  fs,                     
                      rtems_rfs_ino           ino,                    
                      rtems_rfs_inode_handle* handle,                 
                      bool                    load)                   
{                                                                     
 800ecf4:	b8 60 58 00 	mv r11,r3                                      
 800ecf8:	20 8f 00 ff 	andi r15,r4,0xff                               
  int group;                                                          
  int gino;                                                           
  int index;                                                          
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_OPEN))                   
 800ecfc:	f8 00 07 aa 	calli 8010ba4 <rtems_rfs_trace>                
 800ed00:	44 20 00 05 	be r1,r0,800ed14 <rtems_rfs_inode_open+0x54>   <== ALWAYS TAKEN
    printf ("rtems-rfs: inode-open: ino: %" PRIu32 "\n", ino);        
 800ed04:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800ed08:	38 21 55 5c 	ori r1,r1,0x555c                               <== NOT EXECUTED
 800ed0c:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 800ed10:	f8 00 49 9c 	calli 8021380 <printf>                         <== NOT EXECUTED
                                                                      
  if (ino == RTEMS_RFS_EMPTY_INO)                                     
    return EINVAL;                                                    
 800ed14:	34 01 00 16 	mvi r1,22                                      
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_OPEN))                   
    printf ("rtems-rfs: inode-open: ino: %" PRIu32 "\n", ino);        
                                                                      
  if (ino == RTEMS_RFS_EMPTY_INO)                                     
 800ed18:	45 a0 00 26 	be r13,r0,800edb0 <rtems_rfs_inode_open+0xf0>  <== NEVER TAKEN
    return EINVAL;                                                    
                                                                      
  if ((ino - RTEMS_RFS_ROOT_INO) > rtems_rfs_fs_inodes (fs))          
 800ed1c:	29 82 00 14 	lw r2,(r12+20)                                 
 800ed20:	35 ae ff ff 	addi r14,r13,-1                                
 800ed24:	55 c2 00 23 	bgu r14,r2,800edb0 <rtems_rfs_inode_open+0xf0> <== NEVER TAKEN
    return EINVAL;                                                    
                                                                      
  handle->ino = ino;                                                  
 800ed28:	59 6d 00 08 	sw (r11+8),r13                                 
  handle->node = NULL;                                                
  handle->loads = 0;                                                  
                                                                      
  gino  = ino - RTEMS_RFS_ROOT_INO;                                   
  group = gino / fs->group_inodes;                                    
 800ed2c:	29 8d 00 2c 	lw r13,(r12+44)                                
                                                                      
  if ((ino - RTEMS_RFS_ROOT_INO) > rtems_rfs_fs_inodes (fs))          
    return EINVAL;                                                    
                                                                      
  handle->ino = ino;                                                  
  handle->node = NULL;                                                
 800ed30:	59 60 00 0c 	sw (r11+12),r0                                 
  handle->loads = 0;                                                  
 800ed34:	59 60 00 24 	sw (r11+36),r0                                 
                                                                      
  gino  = ino - RTEMS_RFS_ROOT_INO;                                   
  group = gino / fs->group_inodes;                                    
  gino  = gino % fs->group_inodes;                                    
 800ed38:	b9 a0 10 00 	mv r2,r13                                      
 800ed3c:	b9 c0 08 00 	mv r1,r14                                      
 800ed40:	f8 00 90 b4 	calli 8033010 <__umodsi3>                      
  index = (gino / fs->inodes_per_block) + RTEMS_RFS_GROUP_INODE_BLOCK;
 800ed44:	29 90 00 30 	lw r16,(r12+48)                                
  handle->node = NULL;                                                
  handle->loads = 0;                                                  
                                                                      
  gino  = ino - RTEMS_RFS_ROOT_INO;                                   
  group = gino / fs->group_inodes;                                    
  gino  = gino % fs->group_inodes;                                    
 800ed48:	b8 20 88 00 	mv r17,r1                                      
  index = (gino / fs->inodes_per_block) + RTEMS_RFS_GROUP_INODE_BLOCK;
                                                                      
  handle->offset = gino % fs->inodes_per_block;                       
 800ed4c:	ba 00 10 00 	mv r2,r16                                      
 800ed50:	f8 00 90 b0 	calli 8033010 <__umodsi3>                      
  handle->ino = ino;                                                  
  handle->node = NULL;                                                
  handle->loads = 0;                                                  
                                                                      
  gino  = ino - RTEMS_RFS_ROOT_INO;                                   
  group = gino / fs->group_inodes;                                    
 800ed54:	b9 a0 10 00 	mv r2,r13                                      
  gino  = gino % fs->group_inodes;                                    
  index = (gino / fs->inodes_per_block) + RTEMS_RFS_GROUP_INODE_BLOCK;
                                                                      
  handle->offset = gino % fs->inodes_per_block;                       
 800ed58:	59 61 00 20 	sw (r11+32),r1                                 
  handle->ino = ino;                                                  
  handle->node = NULL;                                                
  handle->loads = 0;                                                  
                                                                      
  gino  = ino - RTEMS_RFS_ROOT_INO;                                   
  group = gino / fs->group_inodes;                                    
 800ed5c:	b9 c0 08 00 	mv r1,r14                                      
 800ed60:	fb ff ca 3a 	calli 8001648 <__udivsi3>                      
  gino  = gino % fs->group_inodes;                                    
  index = (gino / fs->inodes_per_block) + RTEMS_RFS_GROUP_INODE_BLOCK;
                                                                      
  handle->offset = gino % fs->inodes_per_block;                       
  handle->block  = rtems_rfs_group_block (&fs->groups[group], index); 
 800ed64:	29 8d 00 20 	lw r13,(r12+32)                                
 800ed68:	34 02 00 50 	mvi r2,80                                      
 800ed6c:	fb ff ca 2b 	calli 8001618 <__mulsi3>                       
 800ed70:	b5 a1 18 00 	add r3,r13,r1                                  
  handle->loads = 0;                                                  
                                                                      
  gino  = ino - RTEMS_RFS_ROOT_INO;                                   
  group = gino / fs->group_inodes;                                    
  gino  = gino % fs->group_inodes;                                    
  index = (gino / fs->inodes_per_block) + RTEMS_RFS_GROUP_INODE_BLOCK;
 800ed74:	28 6d 00 00 	lw r13,(r3+0)                                  
 800ed78:	ba 20 08 00 	mv r1,r17                                      
 800ed7c:	ba 00 10 00 	mv r2,r16                                      
 800ed80:	fb ff ca 32 	calli 8001648 <__udivsi3>                      
 800ed84:	35 ad 00 02 	addi r13,r13,2                                 
                                                                      
  handle->offset = gino % fs->inodes_per_block;                       
  handle->block  = rtems_rfs_group_block (&fs->groups[group], index); 
 800ed88:	b5 a1 08 00 	add r1,r13,r1                                  
 800ed8c:	59 61 00 1c 	sw (r11+28),r1                                 
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
 800ed90:	31 60 00 10 	sb (r11+16),r0                                 
  handle->bnum  = 0;                                                  
 800ed94:	59 60 00 14 	sw (r11+20),r0                                 
  handle->buffer = NULL;                                              
 800ed98:	59 60 00 18 	sw (r11+24),r0                                 
                                                                      
  rc = rtems_rfs_buffer_handle_open (fs, &handle->buffer);            
 800ed9c:	34 01 00 00 	mvi r1,0                                       
  if ((rc == 0) && load)                                              
 800eda0:	45 e0 00 04 	be r15,r0,800edb0 <rtems_rfs_inode_open+0xf0>  <== NEVER TAKEN
    rc = rtems_rfs_inode_load (fs, handle);                           
 800eda4:	b9 80 08 00 	mv r1,r12                                      
 800eda8:	b9 60 10 00 	mv r2,r11                                      
 800edac:	fb ff ff 95 	calli 800ec00 <rtems_rfs_inode_load>           
  return rc;                                                          
}                                                                     
 800edb0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800edb4:	2b 8b 00 20 	lw r11,(sp+32)                                 
 800edb8:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 800edbc:	2b 8d 00 18 	lw r13,(sp+24)                                 
 800edc0:	2b 8e 00 14 	lw r14,(sp+20)                                 
 800edc4:	2b 8f 00 10 	lw r15,(sp+16)                                 
 800edc8:	2b 90 00 0c 	lw r16,(sp+12)                                 
 800edcc:	2b 91 00 08 	lw r17,(sp+8)                                  
 800edd0:	37 9c 00 20 	addi sp,sp,32                                  
 800edd4:	c3 a0 00 00 	ret                                            
                                                                      

0800d61c <rtems_rfs_inode_overhead>: /** * Return the inode overhead given a number of inodes. */ static int rtems_rfs_inode_overhead (rtems_rfs_file_system* fs) {
 800d61c:	37 9c ff f0 	addi sp,sp,-16                                 <== NOT EXECUTED
 800d620:	5b 8b 00 10 	sw (sp+16),r11                                 <== NOT EXECUTED
 800d624:	5b 8c 00 0c 	sw (sp+12),r12                                 <== NOT EXECUTED
 800d628:	5b 8d 00 08 	sw (sp+8),r13                                  <== NOT EXECUTED
 800d62c:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
  int blocks;                                                         
  int bits_per_block;                                                 
  blocks = rtems_rfs_rup_quotient(fs->group_inodes * RTEMS_RFS_INODE_SIZE,
                                  rtems_rfs_fs_block_size (fs));      
 800d630:	28 2d 00 08 	lw r13,(r1+8)                                  <== NOT EXECUTED
/**                                                                   
 * Return the inode overhead given a number of inodes.                
 */                                                                   
static int                                                            
rtems_rfs_inode_overhead (rtems_rfs_file_system* fs)                  
{                                                                     
 800d634:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
  int blocks;                                                         
  int bits_per_block;                                                 
  blocks = rtems_rfs_rup_quotient(fs->group_inodes * RTEMS_RFS_INODE_SIZE,
 800d638:	28 21 00 2c 	lw r1,(r1+44)                                  <== NOT EXECUTED
 800d63c:	34 02 00 38 	mvi r2,56                                      <== NOT EXECUTED
 800d640:	fb ff cf f6 	calli 8001618 <__mulsi3>                       <== NOT EXECUTED
 800d644:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 800d648:	fb ff ff ea 	calli 800d5f0 <rtems_rfs_rup_quotient>         <== NOT EXECUTED
 800d64c:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
 * Return the number of bits that fit in the block size.              
 */                                                                   
static int                                                            
rtems_rfs_bits_per_block (rtems_rfs_file_system* fs)                  
{                                                                     
  return rtems_rfs_bitmap_numof_bits (rtems_rfs_fs_block_size (fs));  
 800d650:	34 02 00 03 	mvi r2,3                                       <== NOT EXECUTED
 800d654:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 800d658:	fb ff cf a2 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
                                  rtems_rfs_fs_block_size (fs));      
  bits_per_block = rtems_rfs_bits_per_block (fs);                     
  /*                                                                  
   * There could be more bits than blocks, eg 512K disk with 512 blocks.
   */                                                                 
  if (bits_per_block > (rtems_rfs_fs_blocks (fs) - RTEMS_RFS_SUPERBLOCK_SIZE))
 800d65c:	29 6b 00 04 	lw r11,(r11+4)                                 <== NOT EXECUTED
 800d660:	35 6b ff ff 	addi r11,r11,-1                                <== NOT EXECUTED
 800d664:	54 2b 00 02 	bgu r1,r11,800d66c <rtems_rfs_inode_overhead+0x50><== NOT EXECUTED
 * Return the number of bits that fit in the block size.              
 */                                                                   
static int                                                            
rtems_rfs_bits_per_block (rtems_rfs_file_system* fs)                  
{                                                                     
  return rtems_rfs_bitmap_numof_bits (rtems_rfs_fs_block_size (fs));  
 800d668:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
  /*                                                                  
   * There could be more bits than blocks, eg 512K disk with 512 blocks.
   */                                                                 
  if (bits_per_block > (rtems_rfs_fs_blocks (fs) - RTEMS_RFS_SUPERBLOCK_SIZE))
    bits_per_block = rtems_rfs_fs_blocks (fs) - RTEMS_RFS_SUPERBLOCK_SIZE;
  return ((blocks + 1) * 100 * 10) / bits_per_block;                  
 800d66c:	35 81 00 01 	addi r1,r12,1                                  <== NOT EXECUTED
 800d670:	34 02 03 e8 	mvi r2,1000                                    <== NOT EXECUTED
 800d674:	fb ff cf e9 	calli 8001618 <__mulsi3>                       <== NOT EXECUTED
 800d678:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 800d67c:	f8 00 96 0c 	calli 8032eac <__divsi3>                       <== NOT EXECUTED
}                                                                     
 800d680:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 800d684:	2b 8b 00 10 	lw r11,(sp+16)                                 <== NOT EXECUTED
 800d688:	2b 8c 00 0c 	lw r12,(sp+12)                                 <== NOT EXECUTED
 800d68c:	2b 8d 00 08 	lw r13,(sp+8)                                  <== NOT EXECUTED
 800d690:	37 9c 00 10 	addi sp,sp,16                                  <== NOT EXECUTED
 800d694:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0800f74c <rtems_rfs_inode_set_block>: * @param block The block index. * @param bno The block number. */ static inline void rtems_rfs_inode_set_block (rtems_rfs_inode_handle* handle, int block, uint32_t bno) {
 800f74c:	37 9c ff ec 	addi sp,sp,-20                                 <== NOT EXECUTED
 800f750:	5b 8b 00 14 	sw (sp+20),r11                                 <== NOT EXECUTED
 800f754:	5b 8c 00 10 	sw (sp+16),r12                                 <== NOT EXECUTED
 800f758:	5b 8d 00 0c 	sw (sp+12),r13                                 <== NOT EXECUTED
 800f75c:	5b 8e 00 08 	sw (sp+8),r14                                  <== NOT EXECUTED
 800f760:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
 800f764:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
  rtems_rfs_write_u32 (&handle->node->data.blocks[block], bno);       
 800f768:	b8 40 08 00 	mv r1,r2                                       <== NOT EXECUTED
 800f76c:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
 * @param block The block index.                                      
 * @param bno The block number.                                       
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_block (rtems_rfs_inode_handle* handle, int block, uint32_t bno)
{                                                                     
 800f770:	b8 60 60 00 	mv r12,r3                                      <== NOT EXECUTED
  rtems_rfs_write_u32 (&handle->node->data.blocks[block], bno);       
 800f774:	fb ff c7 5b 	calli 80014e0 <__ashlsi3>                      <== NOT EXECUTED
 800f778:	29 6e 00 0c 	lw r14,(r11+12)                                <== NOT EXECUTED
 800f77c:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
 800f780:	34 02 00 18 	mvi r2,24                                      <== NOT EXECUTED
 800f784:	b5 c1 70 00 	add r14,r14,r1                                 <== NOT EXECUTED
 800f788:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 800f78c:	fb ff c7 7c 	calli 800157c <__lshrsi3>                      <== NOT EXECUTED
 800f790:	31 c1 00 1c 	sb (r14+28),r1                                 <== NOT EXECUTED
 800f794:	29 6e 00 0c 	lw r14,(r11+12)                                <== NOT EXECUTED
 800f798:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 800f79c:	34 02 00 10 	mvi r2,16                                      <== NOT EXECUTED
 800f7a0:	fb ff c7 77 	calli 800157c <__lshrsi3>                      <== NOT EXECUTED
 800f7a4:	b5 cd 70 00 	add r14,r14,r13                                <== NOT EXECUTED
 800f7a8:	31 c1 00 1d 	sb (r14+29),r1                                 <== NOT EXECUTED
 800f7ac:	29 6e 00 0c 	lw r14,(r11+12)                                <== NOT EXECUTED
 800f7b0:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 800f7b4:	34 02 00 08 	mvi r2,8                                       <== NOT EXECUTED
 800f7b8:	fb ff c7 71 	calli 800157c <__lshrsi3>                      <== NOT EXECUTED
 800f7bc:	b5 cd 70 00 	add r14,r14,r13                                <== NOT EXECUTED
 800f7c0:	31 c1 00 1e 	sb (r14+30),r1                                 <== NOT EXECUTED
 800f7c4:	29 61 00 0c 	lw r1,(r11+12)                                 <== NOT EXECUTED
 800f7c8:	b4 2d 68 00 	add r13,r1,r13                                 <== NOT EXECUTED
 800f7cc:	31 ac 00 1f 	sb (r13+31),r12                                <== NOT EXECUTED
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
 800f7d0:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
 800f7d4:	31 61 00 10 	sb (r11+16),r1                                 <== NOT EXECUTED
}                                                                     
 800f7d8:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 800f7dc:	2b 8b 00 14 	lw r11,(sp+20)                                 <== NOT EXECUTED
 800f7e0:	2b 8c 00 10 	lw r12,(sp+16)                                 <== NOT EXECUTED
 800f7e4:	2b 8d 00 0c 	lw r13,(sp+12)                                 <== NOT EXECUTED
 800f7e8:	2b 8e 00 08 	lw r14,(sp+8)                                  <== NOT EXECUTED
 800f7ec:	37 9c 00 14 	addi sp,sp,20                                  <== NOT EXECUTED
 800f7f0:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0800f06c <rtems_rfs_inode_time_stamp_now>: int rtems_rfs_inode_time_stamp_now (rtems_rfs_inode_handle* handle, bool atime, bool mtime) {
 800f06c:	37 9c ff e8 	addi sp,sp,-24                                 
 800f070:	5b 8b 00 18 	sw (sp+24),r11                                 
 800f074:	5b 8c 00 14 	sw (sp+20),r12                                 
 800f078:	5b 8d 00 10 	sw (sp+16),r13                                 
 800f07c:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800f080:	5b 8f 00 08 	sw (sp+8),r15                                  
 800f084:	5b 9d 00 04 	sw (sp+4),ra                                   
 800f088:	b8 20 58 00 	mv r11,r1                                      
  time_t now;                                                         
  if (!rtems_rfs_inode_is_loaded (handle))                            
 800f08c:	28 21 00 0c 	lw r1,(r1+12)                                  
                                                                      
int                                                                   
rtems_rfs_inode_time_stamp_now (rtems_rfs_inode_handle* handle,       
                                bool                    atime,        
                                bool                    mtime)        
{                                                                     
 800f090:	20 4f 00 ff 	andi r15,r2,0xff                               
 800f094:	20 6e 00 ff 	andi r14,r3,0xff                               
  time_t now;                                                         
  if (!rtems_rfs_inode_is_loaded (handle))                            
    return ENXIO;                                                     
 800f098:	34 0d 00 06 	mvi r13,6                                      
rtems_rfs_inode_time_stamp_now (rtems_rfs_inode_handle* handle,       
                                bool                    atime,        
                                bool                    mtime)        
{                                                                     
  time_t now;                                                         
  if (!rtems_rfs_inode_is_loaded (handle))                            
 800f09c:	44 20 00 2c 	be r1,r0,800f14c <rtems_rfs_inode_time_stamp_now+0xe0><== NEVER TAKEN
    return ENXIO;                                                     
  now = time (NULL);                                                  
 800f0a0:	34 01 00 00 	mvi r1,0                                       
 800f0a4:	f8 00 58 73 	calli 8025270 <time>                           
 800f0a8:	b8 20 60 00 	mv r12,r1                                      
  if (atime)                                                          
 800f0ac:	45 e0 00 13 	be r15,r0,800f0f8 <rtems_rfs_inode_time_stamp_now+0x8c><== NEVER TAKEN
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_atime (rtems_rfs_inode_handle* handle,            
                           rtems_rfs_time          atime)             
{                                                                     
  rtems_rfs_write_u32 (&handle->node->atime, atime);                  
 800f0b0:	29 6d 00 0c 	lw r13,(r11+12)                                
 800f0b4:	34 02 00 18 	mvi r2,24                                      
 800f0b8:	fb ff c9 31 	calli 800157c <__lshrsi3>                      
 800f0bc:	31 a1 00 10 	sb (r13+16),r1                                 
 800f0c0:	29 6d 00 0c 	lw r13,(r11+12)                                
 800f0c4:	34 02 00 10 	mvi r2,16                                      
 800f0c8:	b9 80 08 00 	mv r1,r12                                      
 800f0cc:	fb ff c9 2c 	calli 800157c <__lshrsi3>                      
 800f0d0:	31 a1 00 11 	sb (r13+17),r1                                 
 800f0d4:	29 6d 00 0c 	lw r13,(r11+12)                                
 800f0d8:	b9 80 08 00 	mv r1,r12                                      
 800f0dc:	34 02 00 08 	mvi r2,8                                       
 800f0e0:	fb ff c9 27 	calli 800157c <__lshrsi3>                      
 800f0e4:	31 a1 00 12 	sb (r13+18),r1                                 
 800f0e8:	29 61 00 0c 	lw r1,(r11+12)                                 
 800f0ec:	30 2c 00 13 	sb (r1+19),r12                                 
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
 800f0f0:	34 01 00 01 	mvi r1,1                                       
 800f0f4:	31 61 00 10 	sb (r11+16),r1                                 
    rtems_rfs_inode_set_atime (handle, now);                          
  if (mtime)                                                          
    rtems_rfs_inode_set_mtime (handle, now);                          
  return 0;                                                           
 800f0f8:	34 0d 00 00 	mvi r13,0                                      
  if (!rtems_rfs_inode_is_loaded (handle))                            
    return ENXIO;                                                     
  now = time (NULL);                                                  
  if (atime)                                                          
    rtems_rfs_inode_set_atime (handle, now);                          
  if (mtime)                                                          
 800f0fc:	45 c0 00 14 	be r14,r0,800f14c <rtems_rfs_inode_time_stamp_now+0xe0><== NEVER TAKEN
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_mtime (rtems_rfs_inode_handle* handle,            
                           rtems_rfs_time          mtime)             
{                                                                     
  rtems_rfs_write_u32 (&handle->node->mtime, mtime);                  
 800f100:	29 6e 00 0c 	lw r14,(r11+12)                                
 800f104:	34 02 00 18 	mvi r2,24                                      
 800f108:	b9 80 08 00 	mv r1,r12                                      
 800f10c:	fb ff c9 1c 	calli 800157c <__lshrsi3>                      
 800f110:	31 c1 00 14 	sb (r14+20),r1                                 
 800f114:	29 6e 00 0c 	lw r14,(r11+12)                                
 800f118:	34 02 00 10 	mvi r2,16                                      
 800f11c:	b9 80 08 00 	mv r1,r12                                      
 800f120:	fb ff c9 17 	calli 800157c <__lshrsi3>                      
 800f124:	31 c1 00 15 	sb (r14+21),r1                                 
 800f128:	29 6e 00 0c 	lw r14,(r11+12)                                
 800f12c:	b9 80 08 00 	mv r1,r12                                      
 800f130:	34 02 00 08 	mvi r2,8                                       
 800f134:	fb ff c9 12 	calli 800157c <__lshrsi3>                      
 800f138:	31 c1 00 16 	sb (r14+22),r1                                 
 800f13c:	29 61 00 0c 	lw r1,(r11+12)                                 
 800f140:	30 2c 00 17 	sb (r1+23),r12                                 
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
 800f144:	34 01 00 01 	mvi r1,1                                       
 800f148:	31 61 00 10 	sb (r11+16),r1                                 
    rtems_rfs_inode_set_mtime (handle, now);                          
  return 0;                                                           
}                                                                     
 800f14c:	b9 a0 08 00 	mv r1,r13                                      
 800f150:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800f154:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800f158:	2b 8c 00 14 	lw r12,(sp+20)                                 
 800f15c:	2b 8d 00 10 	lw r13,(sp+16)                                 
 800f160:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800f164:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800f168:	37 9c 00 18 	addi sp,sp,24                                  
 800f16c:	c3 a0 00 00 	ret                                            
                                                                      

0800edd8 <rtems_rfs_inode_unload>: int rtems_rfs_inode_unload (rtems_rfs_file_system* fs, rtems_rfs_inode_handle* handle, bool update_ctime) {
 800edd8:	37 9c ff ec 	addi sp,sp,-20                                 
 800eddc:	5b 8b 00 14 	sw (sp+20),r11                                 
 800ede0:	5b 8c 00 10 	sw (sp+16),r12                                 
 800ede4:	5b 8d 00 0c 	sw (sp+12),r13                                 
 800ede8:	5b 8e 00 08 	sw (sp+8),r14                                  
 800edec:	5b 9d 00 04 	sw (sp+4),ra                                   
 800edf0:	b8 20 68 00 	mv r13,r1                                      
 800edf4:	b8 40 58 00 	mv r11,r2                                      
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_UNLOAD))                 
 800edf8:	34 01 00 00 	mvi r1,0                                       
 800edfc:	78 02 00 20 	mvhi r2,0x20                                   
                                                                      
int                                                                   
rtems_rfs_inode_unload (rtems_rfs_file_system*  fs,                   
                        rtems_rfs_inode_handle* handle,               
                        bool                    update_ctime)         
{                                                                     
 800ee00:	20 6c 00 ff 	andi r12,r3,0xff                               
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_UNLOAD))                 
 800ee04:	f8 00 07 68 	calli 8010ba4 <rtems_rfs_trace>                
 800ee08:	44 20 00 0d 	be r1,r0,800ee3c <rtems_rfs_inode_unload+0x64> <== ALWAYS TAKEN
    printf ("rtems-rfs: inode-unload: ino=%" PRIu32 " loads=%i loaded=%s\n",
 800ee0c:	29 61 00 0c 	lw r1,(r11+12)                                 <== NOT EXECUTED
 800ee10:	78 04 08 03 	mvhi r4,0x803                                  <== NOT EXECUTED
 800ee14:	29 62 00 08 	lw r2,(r11+8)                                  <== NOT EXECUTED
 800ee18:	29 63 00 24 	lw r3,(r11+36)                                 <== NOT EXECUTED
 800ee1c:	38 84 59 c4 	ori r4,r4,0x59c4                               <== NOT EXECUTED
 800ee20:	44 20 00 03 	be r1,r0,800ee2c <rtems_rfs_inode_unload+0x54> <== NOT EXECUTED
 800ee24:	78 04 08 03 	mvhi r4,0x803                                  <== NOT EXECUTED
 800ee28:	38 84 55 24 	ori r4,r4,0x5524                               <== NOT EXECUTED
 800ee2c:	78 05 08 03 	mvhi r5,0x803                                  <== NOT EXECUTED
 800ee30:	b8 a0 08 00 	mv r1,r5                                       <== NOT EXECUTED
 800ee34:	38 21 55 80 	ori r1,r1,0x5580                               <== NOT EXECUTED
 800ee38:	f8 00 49 52 	calli 8021380 <printf>                         <== NOT EXECUTED
            handle->ino, handle->loads,                               
            rtems_rfs_inode_is_loaded (handle) ? "yes" : "no");       
                                                                      
  if (rtems_rfs_inode_is_loaded (handle))                             
 800ee3c:	29 62 00 0c 	lw r2,(r11+12)                                 
int                                                                   
rtems_rfs_inode_unload (rtems_rfs_file_system*  fs,                   
                        rtems_rfs_inode_handle* handle,               
                        bool                    update_ctime)         
{                                                                     
  int rc = 0;                                                         
 800ee40:	34 01 00 00 	mvi r1,0                                       
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_UNLOAD))                 
    printf ("rtems-rfs: inode-unload: ino=%" PRIu32 " loads=%i loaded=%s\n",
            handle->ino, handle->loads,                               
            rtems_rfs_inode_is_loaded (handle) ? "yes" : "no");       
                                                                      
  if (rtems_rfs_inode_is_loaded (handle))                             
 800ee44:	44 40 00 24 	be r2,r0,800eed4 <rtems_rfs_inode_unload+0xfc> 
  {                                                                   
    if (handle->loads == 0)                                           
 800ee48:	29 62 00 24 	lw r2,(r11+36)                                 
      return EIO;                                                     
 800ee4c:	34 01 00 05 	mvi r1,5                                       
            handle->ino, handle->loads,                               
            rtems_rfs_inode_is_loaded (handle) ? "yes" : "no");       
                                                                      
  if (rtems_rfs_inode_is_loaded (handle))                             
  {                                                                   
    if (handle->loads == 0)                                           
 800ee50:	44 40 00 21 	be r2,r0,800eed4 <rtems_rfs_inode_unload+0xfc> <== NEVER TAKEN
      return EIO;                                                     
                                                                      
    handle->loads--;                                                  
 800ee54:	34 42 ff ff 	addi r2,r2,-1                                  
 800ee58:	59 62 00 24 	sw (r11+36),r2                                 
int                                                                   
rtems_rfs_inode_unload (rtems_rfs_file_system*  fs,                   
                        rtems_rfs_inode_handle* handle,               
                        bool                    update_ctime)         
{                                                                     
  int rc = 0;                                                         
 800ee5c:	34 01 00 00 	mvi r1,0                                       
    if (handle->loads == 0)                                           
      return EIO;                                                     
                                                                      
    handle->loads--;                                                  
                                                                      
    if (handle->loads == 0)                                           
 800ee60:	5c 40 00 1d 	bne r2,r0,800eed4 <rtems_rfs_inode_unload+0xfc>
    {                                                                 
      /*                                                              
       * If the buffer is dirty it will be release. Also set the ctime.
       */                                                             
      if (rtems_rfs_buffer_dirty (&handle->buffer) && update_ctime)   
 800ee64:	41 61 00 10 	lbu r1,(r11+16)                                
 800ee68:	44 22 00 17 	be r1,r2,800eec4 <rtems_rfs_inode_unload+0xec> 
 800ee6c:	45 80 00 16 	be r12,r0,800eec4 <rtems_rfs_inode_unload+0xec><== NEVER TAKEN
        rtems_rfs_inode_set_ctime (handle, time (NULL));              
 800ee70:	34 01 00 00 	mvi r1,0                                       
 800ee74:	f8 00 58 ff 	calli 8025270 <time>                           
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_ctime (rtems_rfs_inode_handle* handle,            
                           rtems_rfs_time          ctime)             
{                                                                     
  rtems_rfs_write_u32 (&handle->node->ctime, ctime);                  
 800ee78:	29 6e 00 0c 	lw r14,(r11+12)                                
 800ee7c:	34 02 00 18 	mvi r2,24                                      
 800ee80:	b8 20 60 00 	mv r12,r1                                      
 800ee84:	fb ff c9 be 	calli 800157c <__lshrsi3>                      
 800ee88:	31 c1 00 18 	sb (r14+24),r1                                 
 800ee8c:	29 6e 00 0c 	lw r14,(r11+12)                                
 800ee90:	34 02 00 10 	mvi r2,16                                      
 800ee94:	b9 80 08 00 	mv r1,r12                                      
 800ee98:	fb ff c9 b9 	calli 800157c <__lshrsi3>                      
 800ee9c:	31 c1 00 19 	sb (r14+25),r1                                 
 800eea0:	29 6e 00 0c 	lw r14,(r11+12)                                
 800eea4:	b9 80 08 00 	mv r1,r12                                      
 800eea8:	34 02 00 08 	mvi r2,8                                       
 800eeac:	fb ff c9 b4 	calli 800157c <__lshrsi3>                      
 800eeb0:	31 c1 00 1a 	sb (r14+26),r1                                 
 800eeb4:	29 61 00 0c 	lw r1,(r11+12)                                 
 800eeb8:	30 2c 00 1b 	sb (r1+27),r12                                 
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
 800eebc:	34 01 00 01 	mvi r1,1                                       
 800eec0:	31 61 00 10 	sb (r11+16),r1                                 
      rc = rtems_rfs_buffer_handle_release (fs, &handle->buffer);     
 800eec4:	b9 a0 08 00 	mv r1,r13                                      
 800eec8:	35 62 00 10 	addi r2,r11,16                                 
 800eecc:	f8 00 2b 5d 	calli 8019c40 <rtems_rfs_buffer_handle_release>
      handle->node = NULL;                                            
 800eed0:	59 60 00 0c 	sw (r11+12),r0                                 
    }                                                                 
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
 800eed4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800eed8:	2b 8b 00 14 	lw r11,(sp+20)                                 
 800eedc:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800eee0:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800eee4:	2b 8e 00 08 	lw r14,(sp+8)                                  
 800eee8:	37 9c 00 14 	addi sp,sp,20                                  
 800eeec:	c3 a0 00 00 	ret                                            
                                                                      

0801d2b0 <rtems_rfs_link>: const char* name, int length, rtems_rfs_ino parent, rtems_rfs_ino target, bool link_dir) {
 801d2b0:	37 9c ff 8c 	addi sp,sp,-116                                
 801d2b4:	5b 8b 00 24 	sw (sp+36),r11                                 
 801d2b8:	5b 8c 00 20 	sw (sp+32),r12                                 
 801d2bc:	5b 8d 00 1c 	sw (sp+28),r13                                 
 801d2c0:	5b 8e 00 18 	sw (sp+24),r14                                 
 801d2c4:	5b 8f 00 14 	sw (sp+20),r15                                 
 801d2c8:	5b 90 00 10 	sw (sp+16),r16                                 
 801d2cc:	5b 91 00 0c 	sw (sp+12),r17                                 
 801d2d0:	5b 92 00 08 	sw (sp+8),r18                                  
 801d2d4:	5b 9d 00 04 	sw (sp+4),ra                                   
 801d2d8:	b8 20 60 00 	mv r12,r1                                      
 801d2dc:	b8 40 80 00 	mv r16,r2                                      
  rtems_rfs_inode_handle parent_inode;                                
  rtems_rfs_inode_handle target_inode;                                
  uint16_t               links;                                       
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_LINK))                         
 801d2e0:	34 01 00 00 	mvi r1,0                                       
 801d2e4:	78 02 01 00 	mvhi r2,0x100                                  
                const char*            name,                          
                int                    length,                        
                rtems_rfs_ino          parent,                        
                rtems_rfs_ino          target,                        
                bool                   link_dir)                      
{                                                                     
 801d2e8:	b8 60 78 00 	mv r15,r3                                      
 801d2ec:	b8 80 88 00 	mv r17,r4                                      
 801d2f0:	b8 a0 70 00 	mv r14,r5                                      
 801d2f4:	20 d2 00 ff 	andi r18,r6,0xff                               
  rtems_rfs_inode_handle parent_inode;                                
  rtems_rfs_inode_handle target_inode;                                
  uint16_t               links;                                       
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_LINK))                         
 801d2f8:	fb ff ce 2b 	calli 8010ba4 <rtems_rfs_trace>                
 801d2fc:	44 20 00 10 	be r1,r0,801d33c <rtems_rfs_link+0x8c>         <== ALWAYS TAKEN
  {                                                                   
    int c;                                                            
    printf ("rtems-rfs: link: parent(%" PRIu32 ") -> ", parent);      
 801d300:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801d304:	38 21 75 68 	ori r1,r1,0x7568                               <== NOT EXECUTED
 801d308:	ba 20 10 00 	mv r2,r17                                      <== NOT EXECUTED
 801d30c:	f8 00 10 1d 	calli 8021380 <printf>                         <== NOT EXECUTED
    for (c = 0; c < length; c++)                                      
 801d310:	34 0b 00 00 	mvi r11,0                                      <== NOT EXECUTED
 801d314:	e0 00 00 05 	bi 801d328 <rtems_rfs_link+0x78>               <== NOT EXECUTED
#include <rtems/rfs/rtems-rfs-dir.h>                                  
#include <rtems/rfs/rtems-rfs-dir-hash.h>                             
#include <rtems/rfs/rtems-rfs-link.h>                                 
                                                                      
int                                                                   
rtems_rfs_link (rtems_rfs_file_system* fs,                            
 801d318:	b6 0b 08 00 	add r1,r16,r11                                 <== NOT EXECUTED
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_LINK))                         
  {                                                                   
    int c;                                                            
    printf ("rtems-rfs: link: parent(%" PRIu32 ") -> ", parent);      
    for (c = 0; c < length; c++)                                      
      printf ("%c", name[c]);                                         
 801d31c:	40 21 00 00 	lbu r1,(r1+0)                                  <== NOT EXECUTED
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_LINK))                         
  {                                                                   
    int c;                                                            
    printf ("rtems-rfs: link: parent(%" PRIu32 ") -> ", parent);      
    for (c = 0; c < length; c++)                                      
 801d320:	35 6b 00 01 	addi r11,r11,1                                 <== NOT EXECUTED
      printf ("%c", name[c]);                                         
 801d324:	f8 00 10 9d 	calli 8021598 <putchar>                        <== NOT EXECUTED
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_LINK))                         
  {                                                                   
    int c;                                                            
    printf ("rtems-rfs: link: parent(%" PRIu32 ") -> ", parent);      
    for (c = 0; c < length; c++)                                      
 801d328:	49 eb ff fc 	bg r15,r11,801d318 <rtems_rfs_link+0x68>       <== NOT EXECUTED
      printf ("%c", name[c]);                                         
    printf ("(%" PRIu32 ")\n", target);                               
 801d32c:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801d330:	38 21 75 b0 	ori r1,r1,0x75b0                               <== NOT EXECUTED
 801d334:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 801d338:	f8 00 10 12 	calli 8021380 <printf>                         <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, target, &target_inode, true);        
 801d33c:	37 8d 00 28 	addi r13,sp,40                                 
 801d340:	b9 80 08 00 	mv r1,r12                                      
 801d344:	b9 c0 10 00 	mv r2,r14                                      
 801d348:	b9 a0 18 00 	mv r3,r13                                      
 801d34c:	34 04 00 01 	mvi r4,1                                       
 801d350:	fb ff c6 5c 	calli 800ecc0 <rtems_rfs_inode_open>           
 801d354:	b8 20 58 00 	mv r11,r1                                      
  if (rc)                                                             
 801d358:	5c 20 00 42 	bne r1,r0,801d460 <rtems_rfs_link+0x1b0>       <== NEVER TAKEN
                                                                      
  /*                                                                  
   * If the target inode is a directory and we cannot link directories
   * return a not supported error code.                               
   */                                                                 
  if (!link_dir && S_ISDIR (rtems_rfs_inode_get_mode (&target_inode)))
 801d35c:	5e 41 00 0b 	bne r18,r1,801d388 <rtems_rfs_link+0xd8>       <== NEVER TAKEN
 801d360:	2b 81 00 34 	lw r1,(sp+52)                                  
 801d364:	fb ff ff c5 	calli 801d278 <rtems_rfs_inode_get_mode.clone.2>
 801d368:	20 21 f0 00 	andi r1,r1,0xf000                              
 801d36c:	34 02 40 00 	mvi r2,16384                                   
 801d370:	5c 22 00 06 	bne r1,r2,801d388 <rtems_rfs_link+0xd8>        <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_inode_close (fs, &target_inode);                        
 801d374:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801d378:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 801d37c:	fb ff c6 dd 	calli 800eef0 <rtems_rfs_inode_close>          <== NOT EXECUTED
    return ENOTSUP;                                                   
 801d380:	34 0b 00 86 	mvi r11,134                                    <== NOT EXECUTED
 801d384:	e0 00 00 37 	bi 801d460 <rtems_rfs_link+0x1b0>              <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);        
 801d388:	37 8d 00 50 	addi r13,sp,80                                 
 801d38c:	b9 80 08 00 	mv r1,r12                                      
 801d390:	ba 20 10 00 	mv r2,r17                                      
 801d394:	b9 a0 18 00 	mv r3,r13                                      
 801d398:	34 04 00 01 	mvi r4,1                                       
 801d39c:	fb ff c6 49 	calli 800ecc0 <rtems_rfs_inode_open>           
 801d3a0:	b8 20 58 00 	mv r11,r1                                      
  if (rc)                                                             
 801d3a4:	5c 20 00 0c 	bne r1,r0,801d3d4 <rtems_rfs_link+0x124>       <== NEVER TAKEN
  {                                                                   
    rtems_rfs_inode_close (fs, &target_inode);                        
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_dir_add_entry (fs, &parent_inode, name, length, target);
 801d3a8:	b9 80 08 00 	mv r1,r12                                      
 801d3ac:	b9 a0 10 00 	mv r2,r13                                      
 801d3b0:	ba 00 18 00 	mv r3,r16                                      
 801d3b4:	b9 e0 20 00 	mv r4,r15                                      
 801d3b8:	b9 c0 28 00 	mv r5,r14                                      
 801d3bc:	fb ff f5 9f 	calli 801aa38 <rtems_rfs_dir_add_entry>        
 801d3c0:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 801d3c4:	4c 01 00 08 	bge r0,r1,801d3e4 <rtems_rfs_link+0x134>       <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_inode_close (fs, &parent_inode);                        
 801d3c8:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801d3cc:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 801d3d0:	fb ff c6 c8 	calli 800eef0 <rtems_rfs_inode_close>          <== NOT EXECUTED
    rtems_rfs_inode_close (fs, &target_inode);                        
 801d3d4:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801d3d8:	37 82 00 28 	addi r2,sp,40                                  <== NOT EXECUTED
 801d3dc:	fb ff c6 c5 	calli 800eef0 <rtems_rfs_inode_close>          <== NOT EXECUTED
    return rc;                                                        
 801d3e0:	e0 00 00 20 	bi 801d460 <rtems_rfs_link+0x1b0>              <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
                                                                      
  return rc;                                                          
}                                                                     
 801d3e4:	2b 8e 00 34 	lw r14,(sp+52)                                 
    rtems_rfs_inode_close (fs, &parent_inode);                        
    rtems_rfs_inode_close (fs, &target_inode);                        
    return rc;                                                        
  }                                                                   
                                                                      
  links = rtems_rfs_inode_get_links (&target_inode) + 1;              
 801d3e8:	b9 c0 08 00 	mv r1,r14                                      
 801d3ec:	fb ff ff 91 	calli 801d230 <rtems_rfs_inode_get_links.clone.1>
 801d3f0:	34 2b 00 01 	addi r11,r1,1                                  
 801d3f4:	21 6b ff ff 	andi r11,r11,0xffff                            
 * @prarm links The links.                                            
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_links (rtems_rfs_inode_handle* handle, uint16_t links)
{                                                                     
  rtems_rfs_write_u16 (&handle->node->links, links);                  
 801d3f8:	b9 60 08 00 	mv r1,r11                                      
 801d3fc:	34 02 00 08 	mvi r2,8                                       
 801d400:	fb ff 90 5f 	calli 800157c <__lshrsi3>                      
 801d404:	31 c1 00 00 	sb (r14+0),r1                                  
 801d408:	2b 81 00 34 	lw r1,(sp+52)                                  
  rtems_rfs_inode_set_links (&target_inode, links);                   
                                                                      
  rc = rtems_rfs_inode_time_stamp_now (&parent_inode, true, true);    
 801d40c:	34 02 00 01 	mvi r2,1                                       
 801d410:	34 03 00 01 	mvi r3,1                                       
 801d414:	30 2b 00 01 	sb (r1+1),r11                                  
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
 801d418:	34 01 00 01 	mvi r1,1                                       
 801d41c:	33 81 00 38 	sb (sp+56),r1                                  
 801d420:	b9 a0 08 00 	mv r1,r13                                      
 801d424:	fb ff c7 12 	calli 800f06c <rtems_rfs_inode_time_stamp_now> 
 801d428:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 801d42c:	4c 01 00 02 	bge r0,r1,801d434 <rtems_rfs_link+0x184>       <== ALWAYS TAKEN
 801d430:	e3 ff ff e6 	bi 801d3c8 <rtems_rfs_link+0x118>              <== NOT EXECUTED
    rtems_rfs_inode_close (fs, &parent_inode);                        
    rtems_rfs_inode_close (fs, &target_inode);                        
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &parent_inode);                     
 801d434:	b9 a0 10 00 	mv r2,r13                                      
 801d438:	b9 80 08 00 	mv r1,r12                                      
 801d43c:	fb ff c6 ad 	calli 800eef0 <rtems_rfs_inode_close>          
 801d440:	b8 20 58 00 	mv r11,r1                                      
 801d444:	37 82 00 28 	addi r2,sp,40                                  
  if (rc > 0)                                                         
 801d448:	4c 01 00 03 	bge r0,r1,801d454 <rtems_rfs_link+0x1a4>       <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_inode_close (fs, &target_inode);                        
 801d44c:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801d450:	e3 ff ff e3 	bi 801d3dc <rtems_rfs_link+0x12c>              <== NOT EXECUTED
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &target_inode);                     
 801d454:	b9 80 08 00 	mv r1,r12                                      
 801d458:	fb ff c6 a6 	calli 800eef0 <rtems_rfs_inode_close>          
 801d45c:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  return rc;                                                          
}                                                                     
 801d460:	b9 60 08 00 	mv r1,r11                                      
 801d464:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801d468:	2b 8b 00 24 	lw r11,(sp+36)                                 
 801d46c:	2b 8c 00 20 	lw r12,(sp+32)                                 
 801d470:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 801d474:	2b 8e 00 18 	lw r14,(sp+24)                                 
 801d478:	2b 8f 00 14 	lw r15,(sp+20)                                 
 801d47c:	2b 90 00 10 	lw r16,(sp+16)                                 
 801d480:	2b 91 00 0c 	lw r17,(sp+12)                                 
 801d484:	2b 92 00 08 	lw r18,(sp+8)                                  
 801d488:	37 9c 00 74 	addi sp,sp,116                                 
 801d48c:	c3 a0 00 00 	ret                                            
                                                                      

0801dd08 <rtems_rfs_mutex_create>: RTEMS_INHERIT_PRIORITY | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL) #endif int rtems_rfs_mutex_create (rtems_rfs_mutex* mutex) {
 801dd08:	37 9c ff f4 	addi sp,sp,-12                                 
 801dd0c:	5b 8b 00 0c 	sw (sp+12),r11                                 
 801dd10:	5b 8c 00 08 	sw (sp+8),r12                                  
 801dd14:	5b 9d 00 04 	sw (sp+4),ra                                   
#if __rtems__                                                         
  rtems_status_code sc;                                               
  sc = rtems_semaphore_create (rtems_build_name ('R', 'F', 'S', 'm'), 
 801dd18:	78 02 08 03 	mvhi r2,0x803                                  
 801dd1c:	38 42 77 e0 	ori r2,r2,0x77e0                               
   RTEMS_INHERIT_PRIORITY | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL)  
#endif                                                                
                                                                      
int                                                                   
rtems_rfs_mutex_create (rtems_rfs_mutex* mutex)                       
{                                                                     
 801dd20:	b8 20 28 00 	mv r5,r1                                       
#if __rtems__                                                         
  rtems_status_code sc;                                               
  sc = rtems_semaphore_create (rtems_build_name ('R', 'F', 'S', 'm'), 
 801dd24:	28 41 00 00 	lw r1,(r2+0)                                   
 801dd28:	34 03 00 54 	mvi r3,84                                      
 801dd2c:	34 02 00 01 	mvi r2,1                                       
 801dd30:	34 04 00 00 	mvi r4,0                                       
 801dd34:	fb ff ac d2 	calli 800907c <rtems_semaphore_create>         
 801dd38:	b8 20 60 00 	mv r12,r1                                      
      printf ("rtems-rfs: mutex: open failed: %s\n",                  
              rtems_status_text (sc));                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
 801dd3c:	34 0b 00 00 	mvi r11,0                                      
#if __rtems__                                                         
  rtems_status_code sc;                                               
  sc = rtems_semaphore_create (rtems_build_name ('R', 'F', 'S', 'm'), 
                               1, RTEMS_RFS_MUTEX_ATTRIBS, 0,         
                               mutex);                                
  if (sc != RTEMS_SUCCESSFUL)                                         
 801dd40:	44 20 00 0c 	be r1,r0,801dd70 <rtems_rfs_mutex_create+0x68> <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
 801dd44:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801dd48:	34 02 00 04 	mvi r2,4                                       <== NOT EXECUTED
 801dd4c:	fb ff cb 96 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
      printf ("rtems-rfs: mutex: open failed: %s\n",                  
              rtems_status_text (sc));                                
    return EIO;                                                       
 801dd50:	34 0b 00 05 	mvi r11,5                                      <== NOT EXECUTED
  sc = rtems_semaphore_create (rtems_build_name ('R', 'F', 'S', 'm'), 
                               1, RTEMS_RFS_MUTEX_ATTRIBS, 0,         
                               mutex);                                
  if (sc != RTEMS_SUCCESSFUL)                                         
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
 801dd54:	44 20 00 07 	be r1,r0,801dd70 <rtems_rfs_mutex_create+0x68> <== NOT EXECUTED
      printf ("rtems-rfs: mutex: open failed: %s\n",                  
 801dd58:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801dd5c:	fb ff da ba 	calli 8014844 <rtems_status_text>              <== NOT EXECUTED
 801dd60:	b8 20 10 00 	mv r2,r1                                       <== NOT EXECUTED
 801dd64:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801dd68:	38 21 77 98 	ori r1,r1,0x7798                               <== NOT EXECUTED
 801dd6c:	f8 00 0d 85 	calli 8021380 <printf>                         <== NOT EXECUTED
              rtems_status_text (sc));                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
}                                                                     
 801dd70:	b9 60 08 00 	mv r1,r11                                      
 801dd74:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801dd78:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 801dd7c:	2b 8c 00 08 	lw r12,(sp+8)                                  
 801dd80:	37 9c 00 0c 	addi sp,sp,12                                  
 801dd84:	c3 a0 00 00 	ret                                            
                                                                      

0801dd88 <rtems_rfs_mutex_destroy>: int rtems_rfs_mutex_destroy (rtems_rfs_mutex* mutex) {
 801dd88:	37 9c ff f4 	addi sp,sp,-12                                 
 801dd8c:	5b 8b 00 0c 	sw (sp+12),r11                                 
 801dd90:	5b 8c 00 08 	sw (sp+8),r12                                  
 801dd94:	5b 9d 00 04 	sw (sp+4),ra                                   
#if __rtems__                                                         
  rtems_status_code sc;                                               
  sc = rtems_semaphore_delete (*mutex);                               
 801dd98:	28 21 00 00 	lw r1,(r1+0)                                   
      printf ("rtems-rfs: mutex: close failed: %s\n",                 
              rtems_status_text (sc));                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
 801dd9c:	34 0b 00 00 	mvi r11,0                                      
int                                                                   
rtems_rfs_mutex_destroy (rtems_rfs_mutex* mutex)                      
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc;                                               
  sc = rtems_semaphore_delete (*mutex);                               
 801dda0:	fb ff ad 34 	calli 8009270 <rtems_semaphore_delete>         
 801dda4:	b8 20 60 00 	mv r12,r1                                      
  if (sc != RTEMS_SUCCESSFUL)                                         
 801dda8:	44 20 00 0c 	be r1,r0,801ddd8 <rtems_rfs_mutex_destroy+0x50><== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
 801ddac:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801ddb0:	34 02 00 04 	mvi r2,4                                       <== NOT EXECUTED
 801ddb4:	fb ff cb 7c 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
      printf ("rtems-rfs: mutex: close failed: %s\n",                 
              rtems_status_text (sc));                                
    return EIO;                                                       
 801ddb8:	34 0b 00 05 	mvi r11,5                                      <== NOT EXECUTED
#if __rtems__                                                         
  rtems_status_code sc;                                               
  sc = rtems_semaphore_delete (*mutex);                               
  if (sc != RTEMS_SUCCESSFUL)                                         
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
 801ddbc:	44 20 00 07 	be r1,r0,801ddd8 <rtems_rfs_mutex_destroy+0x50><== NOT EXECUTED
      printf ("rtems-rfs: mutex: close failed: %s\n",                 
 801ddc0:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801ddc4:	fb ff da a0 	calli 8014844 <rtems_status_text>              <== NOT EXECUTED
 801ddc8:	b8 20 10 00 	mv r2,r1                                       <== NOT EXECUTED
 801ddcc:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801ddd0:	38 21 77 bc 	ori r1,r1,0x77bc                               <== NOT EXECUTED
 801ddd4:	f8 00 0d 6b 	calli 8021380 <printf>                         <== NOT EXECUTED
              rtems_status_text (sc));                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
}                                                                     
 801ddd8:	b9 60 08 00 	mv r1,r11                                      
 801dddc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801dde0:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 801dde4:	2b 8c 00 08 	lw r12,(sp+8)                                  
 801dde8:	37 9c 00 0c 	addi sp,sp,12                                  
 801ddec:	c3 a0 00 00 	ret                                            
                                                                      

0801081c <rtems_rfs_mutex_lock.clone.21>: * @param mutex The mutex to lock. * @retval true The mutex is locked. * @retval false The mutex could not be locked. */ static inline int rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)
 801081c:	37 9c ff f4 	addi sp,sp,-12                                 
 8010820:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8010824:	5b 8c 00 08 	sw (sp+8),r12                                  
 8010828:	5b 9d 00 04 	sw (sp+4),ra                                   
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
 801082c:	34 02 00 00 	mvi r2,0                                       
 8010830:	34 03 00 00 	mvi r3,0                                       
 8010834:	fb ff e2 be 	calli 800932c <rtems_semaphore_obtain>         
 8010838:	b8 20 60 00 	mv r12,r1                                      
              rtems_status_text (sc));                                
#endif                                                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
 801083c:	34 0b 00 00 	mvi r11,0                                      
static inline int                                                     
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)                         
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
  if (sc != RTEMS_SUCCESSFUL)                                         
 8010840:	44 20 00 0c 	be r1,r0,8010870 <rtems_rfs_mutex_lock.clone.21+0x54><== ALWAYS TAKEN
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
 8010844:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 8010848:	34 02 00 04 	mvi r2,4                                       <== NOT EXECUTED
 801084c:	f8 00 00 d6 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
              rtems_status_text (sc));                                
#endif                                                                
    return EIO;                                                       
 8010850:	34 0b 00 05 	mvi r11,5                                      <== NOT EXECUTED
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
  if (sc != RTEMS_SUCCESSFUL)                                         
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
 8010854:	44 20 00 07 	be r1,r0,8010870 <rtems_rfs_mutex_lock.clone.21+0x54><== NOT EXECUTED
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
 8010858:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801085c:	f8 00 0f fa 	calli 8014844 <rtems_status_text>              <== NOT EXECUTED
 8010860:	b8 20 10 00 	mv r2,r1                                       <== NOT EXECUTED
 8010864:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8010868:	38 21 56 c8 	ori r1,r1,0x56c8                               <== NOT EXECUTED
 801086c:	f8 00 42 c5 	calli 8021380 <printf>                         <== NOT EXECUTED
#endif                                                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
}                                                                     
 8010870:	b9 60 08 00 	mv r1,r11                                      
 8010874:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8010878:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 801087c:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8010880:	37 9c 00 0c 	addi sp,sp,12                                  
 8010884:	c3 a0 00 00 	ret                                            
                                                                      

08019a70 <rtems_rfs_release_chain>: static int rtems_rfs_release_chain (rtems_chain_control* chain, uint32_t* count, bool modified) {
 8019a70:	37 9c ff e8 	addi sp,sp,-24                                 
 8019a74:	5b 8b 00 18 	sw (sp+24),r11                                 
 8019a78:	5b 8c 00 14 	sw (sp+20),r12                                 
 8019a7c:	5b 8d 00 10 	sw (sp+16),r13                                 
 8019a80:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8019a84:	5b 8f 00 08 	sw (sp+8),r15                                  
 8019a88:	5b 9d 00 04 	sw (sp+4),ra                                   
 8019a8c:	b8 20 58 00 	mv r11,r1                                      
 8019a90:	b8 40 60 00 	mv r12,r2                                      
  rtems_rfs_buffer* buffer;                                           
  int               rrc = 0;                                          
  int               rc;                                               
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
 8019a94:	34 01 00 00 	mvi r1,0                                       
 8019a98:	34 02 00 80 	mvi r2,128                                     
                                                                      
static int                                                            
rtems_rfs_release_chain (rtems_chain_control* chain,                  
                         uint32_t*            count,                  
                         bool                 modified)               
{                                                                     
 8019a9c:	b8 60 78 00 	mv r15,r3                                      
  rtems_rfs_buffer* buffer;                                           
  int               rrc = 0;                                          
  int               rc;                                               
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
 8019aa0:	fb ff dc 41 	calli 8010ba4 <rtems_rfs_trace>                
 8019aa4:	44 20 00 05 	be r1,r0,8019ab8 <rtems_rfs_release_chain+0x48><== ALWAYS TAKEN
    printf ("rtems-rfs: release-chain: count=%" PRIu32 "\n", *count); 
 8019aa8:	29 82 00 00 	lw r2,(r12+0)                                  <== NOT EXECUTED
 8019aac:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8019ab0:	38 21 63 14 	ori r1,r1,0x6314                               <== NOT EXECUTED
 8019ab4:	f8 00 1e 33 	calli 8021380 <printf>                         <== NOT EXECUTED
    (*count)--;                                                       
                                                                      
    buffer->user = (void*) 0;                                         
                                                                      
    rc = rtems_rfs_buffer_io_release (buffer, modified);              
    if ((rc > 0) && (rrc == 0))                                       
 8019ab8:	34 0d 00 00 	mvi r13,0                                      
 8019abc:	35 6e 00 04 	addi r14,r11,4                                 
 8019ac0:	e0 00 00 0e 	bi 8019af8 <rtems_rfs_release_chain+0x88>      
 */                                                                   
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(               
  rtems_chain_control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Get( the_chain );                                     
 8019ac4:	b9 60 08 00 	mv r1,r11                                      
 8019ac8:	fb ff c0 9d 	calli 8009d3c <_Chain_Get>                     
    printf ("rtems-rfs: release-chain: count=%" PRIu32 "\n", *count); 
                                                                      
  while (!rtems_chain_is_empty (chain))                               
  {                                                                   
    buffer = (rtems_rfs_buffer*) rtems_chain_get (chain);             
    (*count)--;                                                       
 8019acc:	29 82 00 00 	lw r2,(r12+0)                                  
 8019ad0:	34 42 ff ff 	addi r2,r2,-1                                  
 8019ad4:	59 82 00 00 	sw (r12+0),r2                                  
                                                                      
    buffer->user = (void*) 0;                                         
 8019ad8:	58 20 00 34 	sw (r1+52),r0                                  
                                                                      
    rc = rtems_rfs_buffer_io_release (buffer, modified);              
 8019adc:	b9 e0 10 00 	mv r2,r15                                      
 8019ae0:	f8 00 16 34 	calli 801f3b0 <rtems_rfs_buffer_bdbuf_release> 
    if ((rc > 0) && (rrc == 0))                                       
 8019ae4:	68 23 00 00 	cmpgi r3,r1,0                                  
 8019ae8:	65 a2 00 00 	cmpei r2,r13,0                                 
 8019aec:	a0 62 10 00 	and r2,r3,r2                                   
 8019af0:	44 40 00 02 	be r2,r0,8019af8 <rtems_rfs_release_chain+0x88><== ALWAYS TAKEN
 8019af4:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
  int               rc;                                               
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
    printf ("rtems-rfs: release-chain: count=%" PRIu32 "\n", *count); 
                                                                      
  while (!rtems_chain_is_empty (chain))                               
 8019af8:	29 61 00 00 	lw r1,(r11+0)                                  
 8019afc:	5c 2e ff f2 	bne r1,r14,8019ac4 <rtems_rfs_release_chain+0x54>
    rc = rtems_rfs_buffer_io_release (buffer, modified);              
    if ((rc > 0) && (rrc == 0))                                       
      rrc = rc;                                                       
  }                                                                   
  return rrc;                                                         
}                                                                     
 8019b00:	b9 a0 08 00 	mv r1,r13                                      
 8019b04:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8019b08:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8019b0c:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8019b10:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8019b14:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8019b18:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8019b1c:	37 9c 00 18 	addi sp,sp,24                                  
 8019b20:	c3 a0 00 00 	ret                                            
                                                                      

0800fc40 <rtems_rfs_rtems_chown>: static int rtems_rfs_rtems_chown (const rtems_filesystem_location_info_t *pathloc, uid_t owner, gid_t group) {
 800fc40:	37 9c ff c0 	addi sp,sp,-64                                 
 800fc44:	5b 8b 00 18 	sw (sp+24),r11                                 
 800fc48:	5b 8c 00 14 	sw (sp+20),r12                                 
 800fc4c:	5b 8d 00 10 	sw (sp+16),r13                                 
 800fc50:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800fc54:	5b 8f 00 08 	sw (sp+8),r15                                  
 800fc58:	5b 9d 00 04 	sw (sp+4),ra                                   
 800fc5c:	b8 20 20 00 	mv r4,r1                                       
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);  
 800fc60:	28 21 00 14 	lw r1,(r1+20)                                  
                                                                      
static int                                                            
rtems_rfs_rtems_chown (const rtems_filesystem_location_info_t *pathloc,
                       uid_t                                   owner, 
                       gid_t                                   group) 
{                                                                     
 800fc64:	20 4e ff ff 	andi r14,r2,0xffff                             
                                                                      
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_CHOWN))            
    printf ("rtems-rfs-rtems: chown: in: ino:%" PRId32 " uid:%d gid:%d\n",
            ino, owner, group);                                       
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
 800fc68:	28 82 00 08 	lw r2,(r4+8)                                   
static int                                                            
rtems_rfs_rtems_chown (const rtems_filesystem_location_info_t *pathloc,
                       uid_t                                   owner, 
                       gid_t                                   group) 
{                                                                     
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);  
 800fc6c:	28 2d 00 08 	lw r13,(r1+8)                                  
                                                                      
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_CHOWN))            
    printf ("rtems-rfs-rtems: chown: in: ino:%" PRId32 " uid:%d gid:%d\n",
            ino, owner, group);                                       
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
 800fc70:	37 8c 00 1c 	addi r12,sp,28                                 
                                                                      
static int                                                            
rtems_rfs_rtems_chown (const rtems_filesystem_location_info_t *pathloc,
                       uid_t                                   owner, 
                       gid_t                                   group) 
{                                                                     
 800fc74:	20 6f ff ff 	andi r15,r3,0xffff                             
                                                                      
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_CHOWN))            
    printf ("rtems-rfs-rtems: chown: in: ino:%" PRId32 " uid:%d gid:%d\n",
            ino, owner, group);                                       
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
 800fc78:	b9 a0 08 00 	mv r1,r13                                      
 800fc7c:	b9 80 18 00 	mv r3,r12                                      
 800fc80:	34 04 00 01 	mvi r4,1                                       
 800fc84:	fb ff fc 0f 	calli 800ecc0 <rtems_rfs_inode_open>           
 800fc88:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 800fc8c:	4c 01 00 02 	bge r0,r1,800fc94 <rtems_rfs_rtems_chown+0x54> <== ALWAYS TAKEN
 800fc90:	e0 00 00 1e 	bi 800fd08 <rtems_rfs_rtems_chown+0xc8>        <== NOT EXECUTED
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_uid_gid (rtems_rfs_inode_handle* handle,          
                             uint16_t uid, uint16_t gid)              
{                                                                     
  rtems_rfs_write_u32 (&handle->node->owner, (((uint32_t) gid) << 16) | uid);
 800fc94:	34 02 00 10 	mvi r2,16                                      
 800fc98:	b9 e0 08 00 	mv r1,r15                                      
 800fc9c:	fb ff c6 11 	calli 80014e0 <__ashlsi3>                      
 800fca0:	b8 2e 58 00 	or r11,r1,r14                                  
 800fca4:	b9 60 08 00 	mv r1,r11                                      
 800fca8:	34 02 00 18 	mvi r2,24                                      
 800fcac:	fb ff c6 34 	calli 800157c <__lshrsi3>                      
 800fcb0:	2b 82 00 28 	lw r2,(sp+40)                                  
 800fcb4:	30 41 00 04 	sb (r2+4),r1                                   
 800fcb8:	b9 60 08 00 	mv r1,r11                                      
 800fcbc:	34 02 00 10 	mvi r2,16                                      
 800fcc0:	fb ff c6 2f 	calli 800157c <__lshrsi3>                      
 800fcc4:	2b 82 00 28 	lw r2,(sp+40)                                  
 800fcc8:	30 41 00 05 	sb (r2+5),r1                                   
 800fccc:	b9 60 08 00 	mv r1,r11                                      
 800fcd0:	34 02 00 08 	mvi r2,8                                       
 800fcd4:	fb ff c6 2a 	calli 800157c <__lshrsi3>                      
 800fcd8:	2b 82 00 28 	lw r2,(sp+40)                                  
 800fcdc:	30 41 00 06 	sb (r2+6),r1                                   
 800fce0:	2b 81 00 28 	lw r1,(sp+40)                                  
  }                                                                   
#endif                                                                
                                                                      
  rtems_rfs_inode_set_uid_gid (&inode, owner, group);                 
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
 800fce4:	b9 80 10 00 	mv r2,r12                                      
 800fce8:	30 2e 00 07 	sb (r1+7),r14                                  
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
 800fcec:	34 01 00 01 	mvi r1,1                                       
 800fcf0:	33 81 00 2c 	sb (sp+44),r1                                  
 800fcf4:	b9 a0 08 00 	mv r1,r13                                      
 800fcf8:	fb ff fc 7e 	calli 800eef0 <rtems_rfs_inode_close>          
 800fcfc:	b8 20 58 00 	mv r11,r1                                      
  if (rc)                                                             
  {                                                                   
    return rtems_rfs_rtems_error ("chown: closing inode", rc);        
  }                                                                   
                                                                      
  return 0;                                                           
 800fd00:	34 01 00 00 	mvi r1,0                                       
#endif                                                                
                                                                      
  rtems_rfs_inode_set_uid_gid (&inode, owner, group);                 
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
  if (rc)                                                             
 800fd04:	45 60 00 04 	be r11,r0,800fd14 <rtems_rfs_rtems_chown+0xd4> <== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("chown: closing inode", rc);        
 800fd08:	f8 00 3f 43 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 800fd0c:	58 2b 00 00 	sw (r1+0),r11                                  <== NOT EXECUTED
 800fd10:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 800fd14:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800fd18:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800fd1c:	2b 8c 00 14 	lw r12,(sp+20)                                 
 800fd20:	2b 8d 00 10 	lw r13,(sp+16)                                 
 800fd24:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800fd28:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800fd2c:	37 9c 00 40 	addi sp,sp,64                                  
 800fd30:	c3 a0 00 00 	ret                                            
                                                                      

0801de58 <rtems_rfs_rtems_device_close>: * @return int */ static int rtems_rfs_rtems_device_close (rtems_libio_t* iop) {
 801de58:	37 9c ff fc 	addi sp,sp,-4                                  <== NOT EXECUTED
 801de5c:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
  rtems_device_major_number     major;                                
  rtems_device_minor_number     minor;                                
                                                                      
  rtems_rfs_rtems_device_get_major_and_minor (iop, &major, &minor);   
                                                                      
  return rtems_deviceio_close (iop, major, minor);                    
 801de60:	28 22 00 24 	lw r2,(r1+36)                                  <== NOT EXECUTED
 801de64:	28 23 00 28 	lw r3,(r1+40)                                  <== NOT EXECUTED
 801de68:	f8 00 03 f4 	calli 801ee38 <rtems_deviceio_close>           <== NOT EXECUTED
}                                                                     
 801de6c:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 801de70:	37 9c 00 04 	addi sp,sp,4                                   <== NOT EXECUTED
 801de74:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0801ddf0 <rtems_rfs_rtems_device_ftruncate>: static int rtems_rfs_rtems_device_ftruncate (rtems_libio_t* iop, off_t length) { return 0; }
 801ddf0:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801ddf4:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0801ddf8 <rtems_rfs_rtems_device_ioctl>: static int rtems_rfs_rtems_device_ioctl (rtems_libio_t* iop, ioctl_command_t command, void* buffer) {
 801ddf8:	37 9c ff fc 	addi sp,sp,-4                                  <== NOT EXECUTED
 801ddfc:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
  rtems_device_major_number major;                                    
  rtems_device_minor_number minor;                                    
                                                                      
  rtems_rfs_rtems_device_get_major_and_minor (iop, &major, &minor);   
                                                                      
  return rtems_deviceio_control (iop, command, buffer, major, minor); 
 801de00:	28 24 00 24 	lw r4,(r1+36)                                  <== NOT EXECUTED
 801de04:	28 25 00 28 	lw r5,(r1+40)                                  <== NOT EXECUTED
 801de08:	f8 00 04 4f 	calli 801ef44 <rtems_deviceio_control>         <== NOT EXECUTED
}                                                                     
 801de0c:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 801de10:	37 9c 00 04 	addi sp,sp,4                                   <== NOT EXECUTED
 801de14:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0801df40 <rtems_rfs_rtems_device_open>: static int rtems_rfs_rtems_device_open ( rtems_libio_t *iop, const char *pathname, int oflag, mode_t mode) {
 801df40:	37 9c ff b4 	addi sp,sp,-76                                 <== NOT EXECUTED
 801df44:	5b 8b 00 24 	sw (sp+36),r11                                 <== NOT EXECUTED
 801df48:	5b 8c 00 20 	sw (sp+32),r12                                 <== NOT EXECUTED
 801df4c:	5b 8d 00 1c 	sw (sp+28),r13                                 <== NOT EXECUTED
 801df50:	5b 8e 00 18 	sw (sp+24),r14                                 <== NOT EXECUTED
 801df54:	5b 8f 00 14 	sw (sp+20),r15                                 <== NOT EXECUTED
 801df58:	5b 90 00 10 	sw (sp+16),r16                                 <== NOT EXECUTED
 801df5c:	5b 91 00 0c 	sw (sp+12),r17                                 <== NOT EXECUTED
 801df60:	5b 92 00 08 	sw (sp+8),r18                                  <== NOT EXECUTED
 801df64:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
 801df68:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
  rtems_rfs_file_system*        fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
 801df6c:	28 21 00 20 	lw r1,(r1+32)                                  <== NOT EXECUTED
static int                                                            
rtems_rfs_rtems_device_open ( rtems_libio_t *iop,                     
                              const char    *pathname,                
                              int            oflag,                   
                              mode_t         mode)                    
{                                                                     
 801df70:	b8 40 90 00 	mv r18,r2                                      <== NOT EXECUTED
 801df74:	b8 60 88 00 	mv r17,r3                                      <== NOT EXECUTED
  rtems_rfs_file_system*        fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
 801df78:	28 2b 00 08 	lw r11,(r1+8)                                  <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)                         
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
 801df7c:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 801df80:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
  .fstat_h     = rtems_rfs_rtems_fstat,                               
  .ftruncate_h = rtems_rfs_rtems_device_ftruncate,                    
  .fsync_h     = rtems_filesystem_default_fsync_or_fdatasync,         
  .fdatasync_h = rtems_filesystem_default_fsync_or_fdatasync,         
  .fcntl_h     = rtems_filesystem_default_fcntl                       
};                                                                    
 801df84:	29 61 00 80 	lw r1,(r11+128)                                <== NOT EXECUTED
static int                                                            
rtems_rfs_rtems_device_open ( rtems_libio_t *iop,                     
                              const char    *pathname,                
                              int            oflag,                   
                              mode_t         mode)                    
{                                                                     
 801df88:	b8 80 80 00 	mv r16,r4                                      <== NOT EXECUTED
  rtems_rfs_file_system*        fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
  rtems_rfs_ino                 ino = rtems_rfs_rtems_get_iop_ino (iop);
 801df8c:	29 8e 00 14 	lw r14,(r12+20)                                <== NOT EXECUTED
 801df90:	28 21 00 00 	lw r1,(r1+0)                                   <== NOT EXECUTED
 801df94:	fb ff ac e6 	calli 800932c <rtems_semaphore_obtain>         <== NOT EXECUTED
 801df98:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
  if (sc != RTEMS_SUCCESSFUL)                                         
 801df9c:	44 20 00 0c 	be r1,r0,801dfcc <rtems_rfs_rtems_device_open+0x8c><== NOT EXECUTED
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
 801dfa0:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801dfa4:	34 02 00 04 	mvi r2,4                                       <== NOT EXECUTED
 801dfa8:	fb ff ca ff 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801dfac:	44 20 00 08 	be r1,r0,801dfcc <rtems_rfs_rtems_device_open+0x8c><== NOT EXECUTED
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
 801dfb0:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 801dfb4:	fb ff da 24 	calli 8014844 <rtems_status_text>              <== NOT EXECUTED
 801dfb8:	b8 20 28 00 	mv r5,r1                                       <== NOT EXECUTED
 801dfbc:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801dfc0:	38 21 56 c8 	ori r1,r1,0x56c8                               <== NOT EXECUTED
 801dfc4:	b8 a0 10 00 	mv r2,r5                                       <== NOT EXECUTED
 801dfc8:	f8 00 0c ee 	calli 8021380 <printf>                         <== NOT EXECUTED
  rtems_device_minor_number     minor;                                
  int                           rc;                                   
                                                                      
  rtems_rfs_rtems_lock (fs);                                          
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
 801dfcc:	37 8f 00 28 	addi r15,sp,40                                 <== NOT EXECUTED
 801dfd0:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801dfd4:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 801dfd8:	b9 e0 18 00 	mv r3,r15                                      <== NOT EXECUTED
 801dfdc:	34 04 00 01 	mvi r4,1                                       <== NOT EXECUTED
 801dfe0:	fb ff c3 38 	calli 800ecc0 <rtems_rfs_inode_open>           <== NOT EXECUTED
 801dfe4:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
  if (rc > 0)                                                         
 801dfe8:	4c 01 00 06 	bge r0,r1,801e000 <rtems_rfs_rtems_device_open+0xc0><== NOT EXECUTED
  {                                                                   
    rtems_rfs_rtems_unlock (fs);                                      
 801dfec:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801dff0:	fb ff ff a2 	calli 801de78 <rtems_rfs_rtems_unlock>         <== NOT EXECUTED
    return rtems_rfs_rtems_error ("device_open: opening inode", rc);  
 801dff4:	f8 00 06 88 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 801dff8:	58 2d 00 00 	sw (r1+0),r13                                  <== NOT EXECUTED
 801dffc:	e0 00 00 13 	bi 801e048 <rtems_rfs_rtems_device_open+0x108> <== NOT EXECUTED
  .fstat_h     = rtems_rfs_rtems_fstat,                               
  .ftruncate_h = rtems_rfs_rtems_device_ftruncate,                    
  .fsync_h     = rtems_filesystem_default_fsync_or_fdatasync,         
  .fdatasync_h = rtems_filesystem_default_fsync_or_fdatasync,         
  .fcntl_h     = rtems_filesystem_default_fcntl                       
};                                                                    
 801e000:	2b 8e 00 34 	lw r14,(sp+52)                                 <== NOT EXECUTED
  {                                                                   
    rtems_rfs_rtems_unlock (fs);                                      
    return rtems_rfs_rtems_error ("device_open: opening inode", rc);  
  }                                                                   
                                                                      
  major = rtems_rfs_inode_get_block (&inode, 0);                      
 801e004:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 801e008:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 801e00c:	fb ff ff b2 	calli 801ded4 <rtems_rfs_inode_get_block.clone.0><== NOT EXECUTED
  minor = rtems_rfs_inode_get_block (&inode, 1);                      
 801e010:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
  {                                                                   
    rtems_rfs_rtems_unlock (fs);                                      
    return rtems_rfs_rtems_error ("device_open: opening inode", rc);  
  }                                                                   
                                                                      
  major = rtems_rfs_inode_get_block (&inode, 0);                      
 801e014:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
  minor = rtems_rfs_inode_get_block (&inode, 1);                      
 801e018:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 801e01c:	fb ff ff ae 	calli 801ded4 <rtems_rfs_inode_get_block.clone.0><== NOT EXECUTED
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
 801e020:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
    rtems_rfs_rtems_unlock (fs);                                      
    return rtems_rfs_rtems_error ("device_open: opening inode", rc);  
  }                                                                   
                                                                      
  major = rtems_rfs_inode_get_block (&inode, 0);                      
  minor = rtems_rfs_inode_get_block (&inode, 1);                      
 801e024:	b8 20 70 00 	mv r14,r1                                      <== NOT EXECUTED
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
 801e028:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801e02c:	fb ff c3 b1 	calli 800eef0 <rtems_rfs_inode_close>          <== NOT EXECUTED
 801e030:	b8 20 78 00 	mv r15,r1                                      <== NOT EXECUTED
  if (rc > 0)                                                         
 801e034:	4c 01 00 07 	bge r0,r1,801e050 <rtems_rfs_rtems_device_open+0x110><== NOT EXECUTED
  {                                                                   
    rtems_rfs_rtems_unlock (fs);                                      
 801e038:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801e03c:	fb ff ff 8f 	calli 801de78 <rtems_rfs_rtems_unlock>         <== NOT EXECUTED
    return rtems_rfs_rtems_error ("device_open: closing inode", rc);  
 801e040:	f8 00 06 75 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 801e044:	58 2f 00 00 	sw (r1+0),r15                                  <== NOT EXECUTED
 801e048:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 801e04c:	e0 00 00 0c 	bi 801e07c <rtems_rfs_rtems_device_open+0x13c> <== NOT EXECUTED
  }                                                                   
                                                                      
  rtems_rfs_rtems_unlock (fs);                                        
 801e050:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801e054:	fb ff ff 89 	calli 801de78 <rtems_rfs_rtems_unlock>         <== NOT EXECUTED
                                                                      
  iop->data0 = major;                                                 
  iop->data1 = (void *) minor;                                        
                                                                      
  return rtems_deviceio_open (iop, pathname, oflag, mode, minor, major);
 801e058:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
    return rtems_rfs_rtems_error ("device_open: closing inode", rc);  
  }                                                                   
                                                                      
  rtems_rfs_rtems_unlock (fs);                                        
                                                                      
  iop->data0 = major;                                                 
 801e05c:	59 8d 00 24 	sw (r12+36),r13                                <== NOT EXECUTED
  iop->data1 = (void *) minor;                                        
 801e060:	59 8e 00 28 	sw (r12+40),r14                                <== NOT EXECUTED
                                                                      
  return rtems_deviceio_open (iop, pathname, oflag, mode, minor, major);
 801e064:	ba 40 10 00 	mv r2,r18                                      <== NOT EXECUTED
 801e068:	ba 20 18 00 	mv r3,r17                                      <== NOT EXECUTED
 801e06c:	ba 00 20 00 	mv r4,r16                                      <== NOT EXECUTED
 801e070:	b9 c0 28 00 	mv r5,r14                                      <== NOT EXECUTED
 801e074:	b9 a0 30 00 	mv r6,r13                                      <== NOT EXECUTED
 801e078:	f8 00 03 62 	calli 801ee00 <rtems_deviceio_open>            <== NOT EXECUTED
}                                                                     
 801e07c:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 801e080:	2b 8b 00 24 	lw r11,(sp+36)                                 <== NOT EXECUTED
 801e084:	2b 8c 00 20 	lw r12,(sp+32)                                 <== NOT EXECUTED
 801e088:	2b 8d 00 1c 	lw r13,(sp+28)                                 <== NOT EXECUTED
 801e08c:	2b 8e 00 18 	lw r14,(sp+24)                                 <== NOT EXECUTED
 801e090:	2b 8f 00 14 	lw r15,(sp+20)                                 <== NOT EXECUTED
 801e094:	2b 90 00 10 	lw r16,(sp+16)                                 <== NOT EXECUTED
 801e098:	2b 91 00 0c 	lw r17,(sp+12)                                 <== NOT EXECUTED
 801e09c:	2b 92 00 08 	lw r18,(sp+8)                                  <== NOT EXECUTED
 801e0a0:	37 9c 00 4c 	addi sp,sp,76                                  <== NOT EXECUTED
 801e0a4:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0801de38 <rtems_rfs_rtems_device_read>: * @return ssize_t */ static ssize_t rtems_rfs_rtems_device_read (rtems_libio_t* iop, void* buffer, size_t count) {
 801de38:	37 9c ff fc 	addi sp,sp,-4                                  <== NOT EXECUTED
 801de3c:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
  rtems_device_major_number major;                                    
  rtems_device_minor_number minor;                                    
                                                                      
  rtems_rfs_rtems_device_get_major_and_minor (iop, &major, &minor);   
                                                                      
  return rtems_deviceio_read (iop, buffer, count, major, minor);      
 801de40:	28 24 00 24 	lw r4,(r1+36)                                  <== NOT EXECUTED
 801de44:	28 25 00 28 	lw r5,(r1+40)                                  <== NOT EXECUTED
 801de48:	f8 00 04 09 	calli 801ee6c <rtems_deviceio_read>            <== NOT EXECUTED
}                                                                     
 801de4c:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 801de50:	37 9c 00 04 	addi sp,sp,4                                   <== NOT EXECUTED
 801de54:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0801de18 <rtems_rfs_rtems_device_write>: static ssize_t rtems_rfs_rtems_device_write (rtems_libio_t* iop, const void* buffer, size_t count) {
 801de18:	37 9c ff fc 	addi sp,sp,-4                                  <== NOT EXECUTED
 801de1c:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
  rtems_device_major_number major;                                    
  rtems_device_minor_number minor;                                    
                                                                      
  rtems_rfs_rtems_device_get_major_and_minor (iop, &major, &minor);   
                                                                      
  return rtems_deviceio_write (iop, buffer, count, major, minor);     
 801de20:	28 24 00 24 	lw r4,(r1+36)                                  <== NOT EXECUTED
 801de24:	28 25 00 28 	lw r5,(r1+40)                                  <== NOT EXECUTED
 801de28:	f8 00 04 2c 	calli 801eed8 <rtems_deviceio_write>           <== NOT EXECUTED
}                                                                     
 801de2c:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 801de30:	37 9c 00 04 	addi sp,sp,4                                   <== NOT EXECUTED
 801de34:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0801e2bc <rtems_rfs_rtems_dir_open>: static int rtems_rfs_rtems_dir_open (rtems_libio_t* iop, const char* pathname, int oflag, mode_t mode) {
 801e2bc:	37 9c ff c4 	addi sp,sp,-60                                 
 801e2c0:	5b 8b 00 14 	sw (sp+20),r11                                 
 801e2c4:	5b 8c 00 10 	sw (sp+16),r12                                 
 801e2c8:	5b 8d 00 0c 	sw (sp+12),r13                                 
 801e2cc:	5b 8e 00 08 	sw (sp+8),r14                                  
 801e2d0:	5b 9d 00 04 	sw (sp+4),ra                                   
 801e2d4:	b8 20 60 00 	mv r12,r1                                      
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
 801e2d8:	28 21 00 20 	lw r1,(r1+32)                                  
  rtems_rfs_ino          ino = rtems_rfs_rtems_get_iop_ino (iop);     
 801e2dc:	29 8e 00 14 	lw r14,(r12+20)                                
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  rtems_rfs_rtems_lock (fs);                                          
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
 801e2e0:	37 8d 00 18 	addi r13,sp,24                                 
rtems_rfs_rtems_dir_open (rtems_libio_t* iop,                         
                          const char*    pathname,                    
                          int            oflag,                       
                          mode_t         mode)                        
{                                                                     
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
 801e2e4:	28 2b 00 08 	lw r11,(r1+8)                                  
  rtems_rfs_ino          ino = rtems_rfs_rtems_get_iop_ino (iop);     
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  rtems_rfs_rtems_lock (fs);                                          
 801e2e8:	29 61 00 80 	lw r1,(r11+128)                                
 801e2ec:	fb ff ff 88 	calli 801e10c <rtems_rfs_rtems_lock.clone.2>   
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
 801e2f0:	b9 c0 10 00 	mv r2,r14                                      
 801e2f4:	b9 60 08 00 	mv r1,r11                                      
 801e2f8:	b9 a0 18 00 	mv r3,r13                                      
 801e2fc:	34 04 00 01 	mvi r4,1                                       
 801e300:	fb ff c2 70 	calli 800ecc0 <rtems_rfs_inode_open>           
 801e304:	b8 20 70 00 	mv r14,r1                                      
  if (rc)                                                             
 801e308:	44 20 00 06 	be r1,r0,801e320 <rtems_rfs_rtems_dir_open+0x64><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_rtems_unlock (fs);                                      
 801e30c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801e310:	fb ff ff 68 	calli 801e0b0 <rtems_rfs_rtems_unlock>         <== NOT EXECUTED
    return rtems_rfs_rtems_error ("dir_open: opening inode", rc);     
 801e314:	f8 00 05 c0 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 801e318:	58 2e 00 00 	sw (r1+0),r14                                  <== NOT EXECUTED
 801e31c:	e0 00 00 10 	bi 801e35c <rtems_rfs_rtems_dir_open+0xa0>     <== NOT EXECUTED
 * @return uint16_t The mode.                                         
 */                                                                   
static inline uint16_t                                                
rtems_rfs_inode_get_mode (rtems_rfs_inode_handle* handle)             
{                                                                     
  return rtems_rfs_read_u16 (&handle->node->mode);                    
 801e320:	2b 81 00 24 	lw r1,(sp+36)                                  
 801e324:	34 02 00 08 	mvi r2,8                                       
 801e328:	40 21 00 02 	lbu r1,(r1+2)                                  
 801e32c:	fb ff 8c 6d 	calli 80014e0 <__ashlsi3>                      
  }                                                                   
                                                                      
  if (!RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)))         
 801e330:	20 21 f0 00 	andi r1,r1,0xf000                              
 801e334:	34 02 40 00 	mvi r2,16384                                   
 801e338:	44 22 00 0b 	be r1,r2,801e364 <rtems_rfs_rtems_dir_open+0xa8><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_inode_close (fs, &inode);                               
 801e33c:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 801e340:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801e344:	fb ff c2 eb 	calli 800eef0 <rtems_rfs_inode_close>          <== NOT EXECUTED
    rtems_rfs_rtems_unlock (fs);                                      
 801e348:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801e34c:	fb ff ff 59 	calli 801e0b0 <rtems_rfs_rtems_unlock>         <== NOT EXECUTED
    return rtems_rfs_rtems_error ("dir_open: not dir", ENOTDIR);      
 801e350:	f8 00 05 b1 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 801e354:	34 02 00 14 	mvi r2,20                                      <== NOT EXECUTED
 801e358:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 801e35c:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 801e360:	e0 00 00 08 	bi 801e380 <rtems_rfs_rtems_dir_open+0xc4>     <== NOT EXECUTED
  }                                                                   
                                                                      
  iop->offset = 0;                                                    
                                                                      
  rtems_rfs_inode_close (fs, &inode);                                 
 801e364:	b9 a0 10 00 	mv r2,r13                                      
    rtems_rfs_inode_close (fs, &inode);                               
    rtems_rfs_rtems_unlock (fs);                                      
    return rtems_rfs_rtems_error ("dir_open: not dir", ENOTDIR);      
  }                                                                   
                                                                      
  iop->offset = 0;                                                    
 801e368:	59 80 00 04 	sw (r12+4),r0                                  
                                                                      
  rtems_rfs_inode_close (fs, &inode);                                 
 801e36c:	b9 60 08 00 	mv r1,r11                                      
 801e370:	fb ff c2 e0 	calli 800eef0 <rtems_rfs_inode_close>          
  rtems_rfs_rtems_unlock (fs);                                        
 801e374:	b9 60 08 00 	mv r1,r11                                      
 801e378:	fb ff ff 4e 	calli 801e0b0 <rtems_rfs_rtems_unlock>         
  return 0;                                                           
 801e37c:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 801e380:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801e384:	2b 8b 00 14 	lw r11,(sp+20)                                 
 801e388:	2b 8c 00 10 	lw r12,(sp+16)                                 
 801e38c:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 801e390:	2b 8e 00 08 	lw r14,(sp+8)                                  
 801e394:	37 9c 00 3c 	addi sp,sp,60                                  
 801e398:	c3 a0 00 00 	ret                                            
                                                                      

0801e168 <rtems_rfs_rtems_dir_read>: */ static ssize_t rtems_rfs_rtems_dir_read (rtems_libio_t* iop, void* buffer, size_t count) {
 801e168:	37 9c ff a8 	addi sp,sp,-88                                 
 801e16c:	5b 8b 00 2c 	sw (sp+44),r11                                 
 801e170:	5b 8c 00 28 	sw (sp+40),r12                                 
 801e174:	5b 8d 00 24 	sw (sp+36),r13                                 
 801e178:	5b 8e 00 20 	sw (sp+32),r14                                 
 801e17c:	5b 8f 00 1c 	sw (sp+28),r15                                 
 801e180:	5b 90 00 18 	sw (sp+24),r16                                 
 801e184:	5b 91 00 14 	sw (sp+20),r17                                 
 801e188:	5b 92 00 10 	sw (sp+16),r18                                 
 801e18c:	5b 93 00 0c 	sw (sp+12),r19                                 
 801e190:	5b 94 00 08 	sw (sp+8),r20                                  
 801e194:	5b 9d 00 04 	sw (sp+4),ra                                   
 801e198:	b8 20 58 00 	mv r11,r1                                      
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
 801e19c:	28 21 00 20 	lw r1,(r1+32)                                  
 */                                                                   
static ssize_t                                                        
rtems_rfs_rtems_dir_read (rtems_libio_t* iop,                         
                          void*          buffer,                      
                          size_t         count)                       
{                                                                     
 801e1a0:	b8 40 98 00 	mv r19,r2                                      
  struct dirent*         dirent;                                      
  ssize_t                bytes_transferred;                           
  int                    d;                                           
  int                    rc;                                          
                                                                      
  count  = count / sizeof (struct dirent);                            
 801e1a4:	34 02 01 0c 	mvi r2,268                                     
static ssize_t                                                        
rtems_rfs_rtems_dir_read (rtems_libio_t* iop,                         
                          void*          buffer,                      
                          size_t         count)                       
{                                                                     
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
 801e1a8:	28 2d 00 08 	lw r13,(r1+8)                                  
  struct dirent*         dirent;                                      
  ssize_t                bytes_transferred;                           
  int                    d;                                           
  int                    rc;                                          
                                                                      
  count  = count / sizeof (struct dirent);                            
 801e1ac:	b8 60 08 00 	mv r1,r3                                       
 801e1b0:	fb ff 8d 26 	calli 8001648 <__udivsi3>                      
 801e1b4:	b8 20 90 00 	mv r18,r1                                      
  dirent = buffer;                                                    
                                                                      
  rtems_rfs_rtems_lock (fs);                                          
 801e1b8:	29 a1 00 80 	lw r1,(r13+128)                                
rtems_rfs_rtems_dir_read (rtems_libio_t* iop,                         
                          void*          buffer,                      
                          size_t         count)                       
{                                                                     
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
  rtems_rfs_ino          ino = rtems_rfs_rtems_get_iop_ino (iop);     
 801e1bc:	29 6c 00 14 	lw r12,(r11+20)                                
  count  = count / sizeof (struct dirent);                            
  dirent = buffer;                                                    
                                                                      
  rtems_rfs_rtems_lock (fs);                                          
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
 801e1c0:	37 90 00 30 	addi r16,sp,48                                 
  int                    rc;                                          
                                                                      
  count  = count / sizeof (struct dirent);                            
  dirent = buffer;                                                    
                                                                      
  rtems_rfs_rtems_lock (fs);                                          
 801e1c4:	fb ff ff d2 	calli 801e10c <rtems_rfs_rtems_lock.clone.2>   
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
 801e1c8:	b9 80 10 00 	mv r2,r12                                      
 801e1cc:	b9 a0 08 00 	mv r1,r13                                      
 801e1d0:	ba 00 18 00 	mv r3,r16                                      
 801e1d4:	34 04 00 01 	mvi r4,1                                       
 801e1d8:	fb ff c2 ba 	calli 800ecc0 <rtems_rfs_inode_open>           
 801e1dc:	b8 20 70 00 	mv r14,r1                                      
  if (rc)                                                             
 801e1e0:	34 0f 00 00 	mvi r15,0                                      
 801e1e4:	34 0c 00 00 	mvi r12,0                                      
                                                                      
  for (d = 0; d < count; d++, dirent++)                               
  {                                                                   
    size_t size;                                                      
    rc = rtems_rfs_dir_read (fs, &inode, iop->offset, dirent, &size); 
    if (rc == ENOENT)                                                 
 801e1e8:	34 11 00 02 	mvi r17,2                                      
  dirent = buffer;                                                    
                                                                      
  rtems_rfs_rtems_lock (fs);                                          
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
  if (rc)                                                             
 801e1ec:	44 20 00 1f 	be r1,r0,801e268 <rtems_rfs_rtems_dir_read+0x100><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_rtems_unlock (fs);                                      
 801e1f0:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 801e1f4:	fb ff ff af 	calli 801e0b0 <rtems_rfs_rtems_unlock>         <== NOT EXECUTED
    return rtems_rfs_rtems_error ("dir_read: read inode", rc);        
 801e1f8:	f8 00 06 07 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 801e1fc:	58 2e 00 00 	sw (r1+0),r14                                  <== NOT EXECUTED
 801e200:	34 0c ff ff 	mvi r12,-1                                     <== NOT EXECUTED
 801e204:	e0 00 00 20 	bi 801e284 <rtems_rfs_rtems_dir_read+0x11c>    <== NOT EXECUTED
  bytes_transferred = 0;                                              
                                                                      
  for (d = 0; d < count; d++, dirent++)                               
  {                                                                   
    size_t size;                                                      
    rc = rtems_rfs_dir_read (fs, &inode, iop->offset, dirent, &size); 
 801e208:	29 74 00 04 	lw r20,(r11+4)                                 
 801e20c:	34 02 00 1f 	mvi r2,31                                      
 801e210:	ba 80 08 00 	mv r1,r20                                      
 801e214:	f8 00 52 ff 	calli 8032e10 <__ashrsi3>                      
 801e218:	b8 20 18 00 	mv r3,r1                                       
 801e21c:	b9 c0 28 00 	mv r5,r14                                      
 801e220:	b9 a0 08 00 	mv r1,r13                                      
 801e224:	ba 00 10 00 	mv r2,r16                                      
 801e228:	ba 80 20 00 	mv r4,r20                                      
 801e22c:	37 86 00 58 	addi r6,sp,88                                  
 801e230:	fb ff f4 35 	calli 801b304 <rtems_rfs_dir_read>             
 801e234:	b8 20 70 00 	mv r14,r1                                      
    if (rc == ENOENT)                                                 
 801e238:	44 31 00 0e 	be r1,r17,801e270 <rtems_rfs_rtems_dir_read+0x108>
    {                                                                 
      rc = 0;                                                         
      break;                                                          
    }                                                                 
    if (rc > 0)                                                       
 801e23c:	4c 01 00 05 	bge r0,r1,801e250 <rtems_rfs_rtems_dir_read+0xe8><== ALWAYS TAKEN
    {                                                                 
      bytes_transferred = rtems_rfs_rtems_error ("dir_read: dir read", rc);
 801e240:	f8 00 05 f5 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 801e244:	58 2e 00 00 	sw (r1+0),r14                                  <== NOT EXECUTED
 801e248:	34 0c ff ff 	mvi r12,-1                                     <== NOT EXECUTED
 801e24c:	e0 00 00 09 	bi 801e270 <rtems_rfs_rtems_dir_read+0x108>    <== NOT EXECUTED
      break;                                                          
    }                                                                 
    iop->offset += size;                                              
 801e250:	29 62 00 04 	lw r2,(r11+4)                                  
 801e254:	2b 81 00 58 	lw r1,(sp+88)                                  
 * exisiting file, the remaining entries will be placed in the buffer and the
 * returned value will be equal to -m actual- times the size of a directory
 * entry.                                                             
 */                                                                   
static ssize_t                                                        
rtems_rfs_rtems_dir_read (rtems_libio_t* iop,                         
 801e258:	35 8c 01 0c 	addi r12,r12,268                               
    return rtems_rfs_rtems_error ("dir_read: read inode", rc);        
  }                                                                   
                                                                      
  bytes_transferred = 0;                                              
                                                                      
  for (d = 0; d < count; d++, dirent++)                               
 801e25c:	35 ef 00 01 	addi r15,r15,1                                 
    if (rc > 0)                                                       
    {                                                                 
      bytes_transferred = rtems_rfs_rtems_error ("dir_read: dir read", rc);
      break;                                                          
    }                                                                 
    iop->offset += size;                                              
 801e260:	b4 41 08 00 	add r1,r2,r1                                   
 801e264:	59 61 00 04 	sw (r11+4),r1                                  
 * exisiting file, the remaining entries will be placed in the buffer and the
 * returned value will be equal to -m actual- times the size of a directory
 * entry.                                                             
 */                                                                   
static ssize_t                                                        
rtems_rfs_rtems_dir_read (rtems_libio_t* iop,                         
 801e268:	b6 6c 70 00 	add r14,r19,r12                                
    return rtems_rfs_rtems_error ("dir_read: read inode", rc);        
  }                                                                   
                                                                      
  bytes_transferred = 0;                                              
                                                                      
  for (d = 0; d < count; d++, dirent++)                               
 801e26c:	56 4f ff e7 	bgu r18,r15,801e208 <rtems_rfs_rtems_dir_read+0xa0>
    }                                                                 
    iop->offset += size;                                              
    bytes_transferred += sizeof (struct dirent);                      
  }                                                                   
                                                                      
  rtems_rfs_inode_close (fs, &inode);                                 
 801e270:	b9 a0 08 00 	mv r1,r13                                      
 801e274:	37 82 00 30 	addi r2,sp,48                                  
 801e278:	fb ff c3 1e 	calli 800eef0 <rtems_rfs_inode_close>          
  rtems_rfs_rtems_unlock (fs);                                        
 801e27c:	b9 a0 08 00 	mv r1,r13                                      
 801e280:	fb ff ff 8c 	calli 801e0b0 <rtems_rfs_rtems_unlock>         
                                                                      
  return bytes_transferred;                                           
}                                                                     
 801e284:	b9 80 08 00 	mv r1,r12                                      
 801e288:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801e28c:	2b 8b 00 2c 	lw r11,(sp+44)                                 
 801e290:	2b 8c 00 28 	lw r12,(sp+40)                                 
 801e294:	2b 8d 00 24 	lw r13,(sp+36)                                 
 801e298:	2b 8e 00 20 	lw r14,(sp+32)                                 
 801e29c:	2b 8f 00 1c 	lw r15,(sp+28)                                 
 801e2a0:	2b 90 00 18 	lw r16,(sp+24)                                 
 801e2a4:	2b 91 00 14 	lw r17,(sp+20)                                 
 801e2a8:	2b 92 00 10 	lw r18,(sp+16)                                 
 801e2ac:	2b 93 00 0c 	lw r19,(sp+12)                                 
 801e2b0:	2b 94 00 08 	lw r20,(sp+8)                                  
 801e2b4:	37 9c 00 58 	addi sp,sp,88                                  
 801e2b8:	c3 a0 00 00 	ret                                            
                                                                      

0800fea0 <rtems_rfs_rtems_eval_path>: .eval_token = rtems_rfs_rtems_eval_token }; static void rtems_rfs_rtems_eval_path (rtems_filesystem_eval_path_context_t *ctx) {
 800fea0:	37 9c ff c4 	addi sp,sp,-60                                 
 800fea4:	5b 8b 00 14 	sw (sp+20),r11                                 
 800fea8:	5b 8c 00 10 	sw (sp+16),r12                                 
 800feac:	5b 8d 00 0c 	sw (sp+12),r13                                 
 800feb0:	5b 8e 00 08 	sw (sp+8),r14                                  
 800feb4:	5b 9d 00 04 	sw (sp+4),ra                                   
 800feb8:	b8 20 58 00 	mv r11,r1                                      
  rtems_filesystem_location_info_t *currentloc =                      
    rtems_filesystem_eval_path_get_currentloc (ctx);                  
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (currentloc);
 800febc:	28 21 00 2c 	lw r1,(r1+44)                                  
  rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (currentloc);   
  rtems_rfs_inode_handle inode;                                       
  int rc;                                                             
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
 800fec0:	29 62 00 20 	lw r2,(r11+32)                                 
 800fec4:	37 8d 00 18 	addi r13,sp,24                                 
static void                                                           
rtems_rfs_rtems_eval_path (rtems_filesystem_eval_path_context_t *ctx) 
{                                                                     
  rtems_filesystem_location_info_t *currentloc =                      
    rtems_filesystem_eval_path_get_currentloc (ctx);                  
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (currentloc);
 800fec8:	28 2e 00 08 	lw r14,(r1+8)                                  
  rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (currentloc);   
  rtems_rfs_inode_handle inode;                                       
  int rc;                                                             
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
 800fecc:	b9 a0 18 00 	mv r3,r13                                      
 800fed0:	34 04 00 01 	mvi r4,1                                       
 800fed4:	b9 c0 08 00 	mv r1,r14                                      
 800fed8:	fb ff fb 7a 	calli 800ecc0 <rtems_rfs_inode_open>           
 800fedc:	b8 20 60 00 	mv r12,r1                                      
  if (rc == 0) {                                                      
 800fee0:	5c 20 00 0e 	bne r1,r0,800ff18 <rtems_rfs_rtems_eval_path+0x78><== NEVER TAKEN
    rtems_filesystem_eval_path_generic (                              
 800fee4:	78 03 08 03 	mvhi r3,0x803                                  
 800fee8:	b9 a0 10 00 	mv r2,r13                                      
 800feec:	b9 60 08 00 	mv r1,r11                                      
 800fef0:	38 63 57 ac 	ori r3,r3,0x57ac                               
 800fef4:	f8 00 14 aa 	calli 801519c <rtems_filesystem_eval_path_generic>
      ctx,                                                            
      &inode,                                                         
      &rtems_rfs_rtems_eval_config                                    
    );                                                                
    rc = rtems_rfs_inode_close (fs, &inode);                          
 800fef8:	b9 a0 10 00 	mv r2,r13                                      
 800fefc:	b9 c0 08 00 	mv r1,r14                                      
 800ff00:	fb ff fb fc 	calli 800eef0 <rtems_rfs_inode_close>          
 800ff04:	b8 20 68 00 	mv r13,r1                                      
    if (rc != 0) {                                                    
 800ff08:	44 2c 00 09 	be r1,r12,800ff2c <rtems_rfs_rtems_eval_path+0x8c><== ALWAYS TAKEN
      rtems_filesystem_eval_path_error (                              
        ctx,                                                          
        rtems_rfs_rtems_error ("eval_path: closing inode", rc)        
 800ff0c:	f8 00 3e c2 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 800ff10:	58 2d 00 00 	sw (r1+0),r13                                  <== NOT EXECUTED
 800ff14:	e0 00 00 03 	bi 800ff20 <rtems_rfs_rtems_eval_path+0x80>    <== NOT EXECUTED
      );                                                              
    }                                                                 
  } else {                                                            
    rtems_filesystem_eval_path_error (                                
      ctx,                                                            
      rtems_rfs_rtems_error ("eval_path: opening inode", rc)          
 800ff18:	f8 00 3e bf 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 800ff1c:	58 2c 00 00 	sw (r1+0),r12                                  <== NOT EXECUTED
        ctx,                                                          
        rtems_rfs_rtems_error ("eval_path: closing inode", rc)        
      );                                                              
    }                                                                 
  } else {                                                            
    rtems_filesystem_eval_path_error (                                
 800ff20:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800ff24:	34 02 ff ff 	mvi r2,-1                                      <== NOT EXECUTED
 800ff28:	fb ff df b7 	calli 8007e04 <rtems_filesystem_eval_path_error><== NOT EXECUTED
      ctx,                                                            
      rtems_rfs_rtems_error ("eval_path: opening inode", rc)          
    );                                                                
  }                                                                   
}                                                                     
 800ff2c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800ff30:	2b 8b 00 14 	lw r11,(sp+20)                                 
 800ff34:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800ff38:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800ff3c:	2b 8e 00 08 	lw r14,(sp+8)                                  
 800ff40:	37 9c 00 3c 	addi sp,sp,60                                  
 800ff44:	c3 a0 00 00 	ret                                            
                                                                      

08010604 <rtems_rfs_rtems_eval_token>: rtems_filesystem_eval_path_context_t *ctx, void *arg, const char *token, size_t tokenlen ) {
 8010604:	37 9c ff d4 	addi sp,sp,-44                                 
 8010608:	5b 8b 00 20 	sw (sp+32),r11                                 
 801060c:	5b 8c 00 1c 	sw (sp+28),r12                                 
 8010610:	5b 8d 00 18 	sw (sp+24),r13                                 
 8010614:	5b 8e 00 14 	sw (sp+20),r14                                 
 8010618:	5b 8f 00 10 	sw (sp+16),r15                                 
 801061c:	5b 90 00 0c 	sw (sp+12),r16                                 
 8010620:	5b 91 00 08 	sw (sp+8),r17                                  
 8010624:	5b 9d 00 04 	sw (sp+4),ra                                   
  /* FIXME: Return value? */                                          
  rtems_rfs_fs_close(fs);                                             
                                                                      
  rtems_rfs_mutex_destroy (&rtems->access);                           
  free (rtems);                                                       
}                                                                     
 8010628:	28 4d 00 0c 	lw r13,(r2+12)                                 
  rtems_filesystem_eval_path_context_t *ctx,                          
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
 801062c:	b8 20 58 00 	mv r11,r1                                      
 8010630:	b8 40 60 00 	mv r12,r2                                      
                            rtems_rfs_inode_handle* inode)            
{                                                                     
  return rtems_filesystem_eval_path_check_access(                     
    ctx,                                                              
    eval_flags,                                                       
    rtems_rfs_inode_get_mode (inode),                                 
 8010634:	b9 a0 08 00 	mv r1,r13                                      
  rtems_filesystem_eval_path_context_t *ctx,                          
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
 8010638:	b8 60 78 00 	mv r15,r3                                      
 801063c:	b8 80 70 00 	mv r14,r4                                      
                            rtems_rfs_inode_handle* inode)            
{                                                                     
  return rtems_filesystem_eval_path_check_access(                     
    ctx,                                                              
    eval_flags,                                                       
    rtems_rfs_inode_get_mode (inode),                                 
 8010640:	fb ff fe 6f 	calli 800fffc <rtems_rfs_inode_get_mode.clone.4>
 8010644:	b8 20 88 00 	mv r17,r1                                      
    rtems_rfs_inode_get_uid (inode),                                  
 8010648:	b9 a0 08 00 	mv r1,r13                                      
 801064c:	fb ff fe ad 	calli 8010100 <rtems_rfs_inode_get_uid.clone.5>
 8010650:	b8 20 80 00 	mv r16,r1                                      
    rtems_rfs_inode_get_gid (inode)                                   
 8010654:	b9 a0 08 00 	mv r1,r13                                      
 8010658:	fb ff fe b8 	calli 8010138 <rtems_rfs_inode_get_gid.clone.6>
 801065c:	b8 20 28 00 	mv r5,r1                                       
static bool                                                           
rtems_rfs_rtems_eval_perms (rtems_filesystem_eval_path_context_t *ctx,
                            int eval_flags,                           
                            rtems_rfs_inode_handle* inode)            
{                                                                     
  return rtems_filesystem_eval_path_check_access(                     
 8010660:	34 02 00 01 	mvi r2,1                                       
 8010664:	b9 60 08 00 	mv r1,r11                                      
 8010668:	ba 20 18 00 	mv r3,r17                                      
 801066c:	ba 00 20 00 	mv r4,r16                                      
 8010670:	f8 00 12 b6 	calli 8015148 <rtems_filesystem_eval_path_check_access>
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_generic_status status =                  
 8010674:	34 05 00 01 	mvi r5,1                                       
    RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;                          
  rtems_rfs_inode_handle* inode = arg;                                
  bool access_ok = rtems_rfs_rtems_eval_perms (ctx, RTEMS_FS_PERMS_EXEC, inode);
                                                                      
  if (access_ok) {                                                    
 8010678:	44 20 00 40 	be r1,r0,8010778 <rtems_rfs_rtems_eval_token+0x174><== NEVER TAKEN
static inline bool rtems_filesystem_is_current_directory(             
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 1 && token [0] == '.';                           
 801067c:	5d c5 00 4a 	bne r14,r5,80107a4 <rtems_rfs_rtems_eval_token+0x1a0>
 8010680:	41 e2 00 00 	lbu r2,(r15+0)                                 
 8010684:	34 01 00 2e 	mvi r1,46                                      
 8010688:	5c 41 00 47 	bne r2,r1,80107a4 <rtems_rfs_rtems_eval_token+0x1a0>
                                                                      
static inline void rtems_filesystem_eval_path_clear_token(            
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  ctx->tokenlen = 0;                                                  
 801068c:	59 60 00 0c 	sw (r11+12),r0                                 
 8010690:	e0 00 00 3a 	bi 8010778 <rtems_rfs_rtems_eval_token+0x174>  
        &entry_ino,                                                   
        &entry_doff                                                   
      );                                                              
                                                                      
      if (rc == 0) {                                                  
        rc = rtems_rfs_inode_close (fs, inode);                       
 8010694:	b9 a0 08 00 	mv r1,r13                                      
 8010698:	b9 80 10 00 	mv r2,r12                                      
 801069c:	fb ff fa 15 	calli 800eef0 <rtems_rfs_inode_close>          
 80106a0:	b8 20 78 00 	mv r15,r1                                      
        if (rc == 0) {                                                
 80106a4:	5c 2e 00 08 	bne r1,r14,80106c4 <rtems_rfs_rtems_eval_token+0xc0><== NEVER TAKEN
          rc = rtems_rfs_inode_open (fs, entry_ino, inode, true);     
 80106a8:	2b 82 00 2c 	lw r2,(sp+44)                                  
 80106ac:	b9 a0 08 00 	mv r1,r13                                      
 80106b0:	b9 80 18 00 	mv r3,r12                                      
 80106b4:	34 04 00 01 	mvi r4,1                                       
 80106b8:	fb ff f9 82 	calli 800ecc0 <rtems_rfs_inode_open>           
 80106bc:	b8 20 70 00 	mv r14,r1                                      
        }                                                             
                                                                      
        if (rc != 0) {                                                
 80106c0:	44 2f 00 46 	be r1,r15,80107d8 <rtems_rfs_rtems_eval_token+0x1d4><== ALWAYS TAKEN
          /*                                                          
           * This prevents the rtems_rfs_inode_close() from doing something in
           * rtems_rfs_rtems_eval_path().                             
           */                                                         
          memset (inode, 0, sizeof(*inode));                          
 80106c4:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 80106c8:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 80106cc:	34 03 00 28 	mvi r3,40                                      <== NOT EXECUTED
 80106d0:	f8 00 42 90 	calli 8021110 <memset>                         <== NOT EXECUTED
 80106d4:	e0 00 00 50 	bi 8010814 <rtems_rfs_rtems_eval_token+0x210>  <== NOT EXECUTED
                                                                      
      if (rc == 0) {                                                  
        bool is_sym_link = rtems_rfs_rtems_node_type_by_inode (inode) 
          == RTEMS_FILESYSTEM_SYM_LINK;                               
        int eval_flags = rtems_filesystem_eval_path_get_flags (ctx);  
        bool follow_sym_link = (eval_flags & RTEMS_FS_FOLLOW_SYM_LINK) != 0;
 80106d8:	20 41 00 10 	andi r1,r2,0x10                                
        bool terminal = !rtems_filesystem_eval_path_has_path (ctx);   
                                                                      
        rtems_filesystem_eval_path_clear_token (ctx);                 
                                                                      
        if (is_sym_link && (follow_sym_link || !terminal)) {          
 80106dc:	5c 2e 00 02 	bne r1,r14,80106e4 <rtems_rfs_rtems_eval_token+0xe0>
 80106e0:	5d e1 00 1d 	bne r15,r1,8010754 <rtems_rfs_rtems_eval_token+0x150>
  rtems_filesystem_eval_path_context_t* ctx,                          
  rtems_rfs_file_system* fs,                                          
  rtems_rfs_ino ino                                                   
)                                                                     
{                                                                     
  size_t len = MAXPATHLEN;                                            
 80106e4:	34 01 04 00 	mvi r1,1024                                    
 80106e8:	5b 81 00 24 	sw (sp+36),r1                                  
  char *link = malloc(len + 1);                                       
 80106ec:	34 01 04 01 	mvi r1,1025                                    
        bool terminal = !rtems_filesystem_eval_path_has_path (ctx);   
                                                                      
        rtems_filesystem_eval_path_clear_token (ctx);                 
                                                                      
        if (is_sym_link && (follow_sym_link || !terminal)) {          
          rtems_rfs_rtems_follow_link (ctx, fs, entry_ino);           
 80106f0:	2b 8e 00 2c 	lw r14,(sp+44)                                 
  rtems_rfs_file_system* fs,                                          
  rtems_rfs_ino ino                                                   
)                                                                     
{                                                                     
  size_t len = MAXPATHLEN;                                            
  char *link = malloc(len + 1);                                       
 80106f4:	fb ff d9 51 	calli 8006c38 <malloc>                         
 80106f8:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  if (link != NULL) {                                                 
 80106fc:	44 20 00 13 	be r1,r0,8010748 <rtems_rfs_rtems_eval_token+0x144><== NEVER TAKEN
    int rc = rtems_rfs_symlink_read (fs, ino, link, len, &len);       
 8010700:	b9 a0 08 00 	mv r1,r13                                      
 8010704:	b9 c0 10 00 	mv r2,r14                                      
 8010708:	b9 80 18 00 	mv r3,r12                                      
 801070c:	34 04 04 00 	mvi r4,1024                                    
 8010710:	37 85 00 24 	addi r5,sp,36                                  
 8010714:	f8 00 34 f2 	calli 801dadc <rtems_rfs_symlink_read>         
                                                                      
    if (rc == 0) {                                                    
 8010718:	5c 20 00 06 	bne r1,r0,8010730 <rtems_rfs_rtems_eval_token+0x12c><== NEVER TAKEN
      rtems_filesystem_eval_path_recursive (ctx, link, len);          
 801071c:	2b 83 00 24 	lw r3,(sp+36)                                  
 8010720:	b9 60 08 00 	mv r1,r11                                      
 8010724:	b9 80 10 00 	mv r2,r12                                      
 8010728:	fb ff df 0f 	calli 8008364 <rtems_filesystem_eval_path_recursive>
 801072c:	e0 00 00 04 	bi 801073c <rtems_rfs_rtems_eval_token+0x138>  
    } else {                                                          
      rtems_filesystem_eval_path_error (ctx, 0);                      
 8010730:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8010734:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 8010738:	fb ff dd b3 	calli 8007e04 <rtems_filesystem_eval_path_error><== NOT EXECUTED
    }                                                                 
                                                                      
    free(link);                                                       
 801073c:	b9 80 08 00 	mv r1,r12                                      
 8010740:	fb ff d7 53 	calli 800648c <free>                           
 8010744:	e0 00 00 34 	bi 8010814 <rtems_rfs_rtems_eval_token+0x210>  
  } else {                                                            
    rtems_filesystem_eval_path_error (ctx, ENOMEM);                   
 8010748:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801074c:	34 02 00 0c 	mvi r2,12                                      <== NOT EXECUTED
 8010750:	e0 00 00 30 	bi 8010810 <rtems_rfs_rtems_eval_token+0x20c>  <== NOT EXECUTED
        rtems_filesystem_eval_path_clear_token (ctx);                 
                                                                      
        if (is_sym_link && (follow_sym_link || !terminal)) {          
          rtems_rfs_rtems_follow_link (ctx, fs, entry_ino);           
        } else {                                                      
          rc = rtems_rfs_rtems_set_handlers (currentloc, inode) ? 0 : EIO;
 8010754:	35 61 00 18 	addi r1,r11,24                                 
 8010758:	b9 80 10 00 	mv r2,r12                                      
 801075c:	f8 00 00 df 	calli 8010ad8 <rtems_rfs_rtems_set_handlers>   
 8010760:	44 20 00 27 	be r1,r0,80107fc <rtems_rfs_rtems_eval_token+0x1f8><== NEVER TAKEN
          if (rc == 0) {                                              
            rtems_rfs_rtems_set_pathloc_ino (currentloc, entry_ino);  
 8010764:	2b 81 00 2c 	lw r1,(sp+44)                                  
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_generic_status status =                  
 8010768:	b9 e0 28 00 	mv r5,r15                                      
        if (is_sym_link && (follow_sym_link || !terminal)) {          
          rtems_rfs_rtems_follow_link (ctx, fs, entry_ino);           
        } else {                                                      
          rc = rtems_rfs_rtems_set_handlers (currentloc, inode) ? 0 : EIO;
          if (rc == 0) {                                              
            rtems_rfs_rtems_set_pathloc_ino (currentloc, entry_ino);  
 801076c:	59 61 00 20 	sw (r11+32),r1                                 
            rtems_rfs_rtems_set_pathloc_doff (currentloc, entry_doff);
 8010770:	2b 81 00 28 	lw r1,(sp+40)                                  
 8010774:	59 61 00 24 	sw (r11+36),r1                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
 8010778:	b8 a0 08 00 	mv r1,r5                                       
 801077c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8010780:	2b 8b 00 20 	lw r11,(sp+32)                                 
 8010784:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 8010788:	2b 8d 00 18 	lw r13,(sp+24)                                 
 801078c:	2b 8e 00 14 	lw r14,(sp+20)                                 
 8010790:	2b 8f 00 10 	lw r15,(sp+16)                                 
 8010794:	2b 90 00 0c 	lw r16,(sp+12)                                 
 8010798:	2b 91 00 08 	lw r17,(sp+8)                                  
 801079c:	37 9c 00 2c 	addi sp,sp,44                                  
 80107a0:	c3 a0 00 00 	ret                                            
    if (rtems_filesystem_is_current_directory (token, tokenlen)) {    
      rtems_filesystem_eval_path_clear_token (ctx);                   
    } else {                                                          
      rtems_filesystem_location_info_t *currentloc =                  
        rtems_filesystem_eval_path_get_currentloc( ctx );             
      rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (currentloc);
 80107a4:	29 61 00 2c 	lw r1,(r11+44)                                 
      rtems_rfs_ino entry_ino;                                        
      uint32_t entry_doff;                                            
      int rc = rtems_rfs_dir_lookup_ino (                             
 80107a8:	b9 c0 20 00 	mv r4,r14                                      
 80107ac:	37 85 00 2c 	addi r5,sp,44                                  
    if (rtems_filesystem_is_current_directory (token, tokenlen)) {    
      rtems_filesystem_eval_path_clear_token (ctx);                   
    } else {                                                          
      rtems_filesystem_location_info_t *currentloc =                  
        rtems_filesystem_eval_path_get_currentloc( ctx );             
      rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (currentloc);
 80107b0:	28 2d 00 08 	lw r13,(r1+8)                                  
      rtems_rfs_ino entry_ino;                                        
      uint32_t entry_doff;                                            
      int rc = rtems_rfs_dir_lookup_ino (                             
 80107b4:	b9 80 10 00 	mv r2,r12                                      
 80107b8:	b9 e0 18 00 	mv r3,r15                                      
 80107bc:	b9 a0 08 00 	mv r1,r13                                      
 80107c0:	37 86 00 28 	addi r6,sp,40                                  
 80107c4:	f8 00 27 3e 	calli 801a4bc <rtems_rfs_dir_lookup_ino>       
 80107c8:	b8 20 70 00 	mv r14,r1                                      
           * rtems_rfs_rtems_eval_path().                             
           */                                                         
          memset (inode, 0, sizeof(*inode));                          
        }                                                             
      } else {                                                        
        status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY;         
 80107cc:	34 05 00 02 	mvi r5,2                                       
        tokenlen,                                                     
        &entry_ino,                                                   
        &entry_doff                                                   
      );                                                              
                                                                      
      if (rc == 0) {                                                  
 80107d0:	5c 20 ff ea 	bne r1,r0,8010778 <rtems_rfs_rtems_eval_token+0x174>
 80107d4:	e3 ff ff b0 	bi 8010694 <rtems_rfs_rtems_eval_token+0x90>   
        status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY;         
        rc = -1;                                                      
      }                                                               
                                                                      
      if (rc == 0) {                                                  
        bool is_sym_link = rtems_rfs_rtems_node_type_by_inode (inode) 
 80107d8:	29 81 00 0c 	lw r1,(r12+12)                                 
 80107dc:	fb ff ff 49 	calli 8010500 <rtems_rfs_rtems_node_type_by_inode.clone.18>
          == RTEMS_FILESYSTEM_SYM_LINK;                               
        int eval_flags = rtems_filesystem_eval_path_get_flags (ctx);  
        bool follow_sym_link = (eval_flags & RTEMS_FS_FOLLOW_SYM_LINK) != 0;
        bool terminal = !rtems_filesystem_eval_path_has_path (ctx);   
 80107e0:	29 6f 00 04 	lw r15,(r11+4)                                 
 80107e4:	59 60 00 0c 	sw (r11+12),r0                                 
                                                                      
        rtems_filesystem_eval_path_clear_token (ctx);                 
                                                                      
        if (is_sym_link && (follow_sym_link || !terminal)) {          
 80107e8:	34 03 00 03 	mvi r3,3                                       
  /* FIXME: Return value? */                                          
  rtems_rfs_fs_close(fs);                                             
                                                                      
  rtems_rfs_mutex_destroy (&rtems->access);                           
  free (rtems);                                                       
}                                                                     
 80107ec:	29 62 00 10 	lw r2,(r11+16)                                 
      if (rc == 0) {                                                  
        bool is_sym_link = rtems_rfs_rtems_node_type_by_inode (inode) 
          == RTEMS_FILESYSTEM_SYM_LINK;                               
        int eval_flags = rtems_filesystem_eval_path_get_flags (ctx);  
        bool follow_sym_link = (eval_flags & RTEMS_FS_FOLLOW_SYM_LINK) != 0;
        bool terminal = !rtems_filesystem_eval_path_has_path (ctx);   
 80107f0:	65 ef 00 00 	cmpei r15,r15,0                                
                                                                      
        rtems_filesystem_eval_path_clear_token (ctx);                 
                                                                      
        if (is_sym_link && (follow_sym_link || !terminal)) {          
 80107f4:	5c 23 ff d8 	bne r1,r3,8010754 <rtems_rfs_rtems_eval_token+0x150>
 80107f8:	e3 ff ff b8 	bi 80106d8 <rtems_rfs_rtems_eval_token+0xd4>   
              status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE;   
            }                                                         
          } else {                                                    
            rtems_filesystem_eval_path_error (                        
              ctx,                                                    
              rtems_rfs_rtems_error ("eval_path: set handlers", rc)   
 80107fc:	f8 00 3c 86 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 8010800:	34 02 00 05 	mvi r2,5                                       <== NOT EXECUTED
 8010804:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
                                                                      
            if (!terminal) {                                          
              status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE;   
            }                                                         
          } else {                                                    
            rtems_filesystem_eval_path_error (                        
 8010808:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801080c:	34 02 ff ff 	mvi r2,-1                                      <== NOT EXECUTED
 8010810:	fb ff dd 7d 	calli 8007e04 <rtems_filesystem_eval_path_error><== NOT EXECUTED
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_generic_status status =                  
 8010814:	34 05 00 01 	mvi r5,1                                       
 8010818:	e3 ff ff d8 	bi 8010778 <rtems_rfs_rtems_eval_token+0x174>  
                                                                      

08010034 <rtems_rfs_rtems_fchmod>: } static int rtems_rfs_rtems_fchmod (const rtems_filesystem_location_info_t* pathloc, mode_t mode) {
 8010034:	37 9c ff c4 	addi sp,sp,-60                                 <== NOT EXECUTED
 8010038:	5b 8b 00 14 	sw (sp+20),r11                                 <== NOT EXECUTED
 801003c:	5b 8c 00 10 	sw (sp+16),r12                                 <== NOT EXECUTED
 8010040:	5b 8d 00 0c 	sw (sp+12),r13                                 <== NOT EXECUTED
 8010044:	5b 8e 00 08 	sw (sp+8),r14                                  <== NOT EXECUTED
 8010048:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
 801004c:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
  rtems_rfs_file_system*  fs = rtems_rfs_rtems_pathloc_dev (pathloc); 
 8010050:	28 21 00 14 	lw r1,(r1+20)                                  <== NOT EXECUTED
}                                                                     
                                                                      
static int                                                            
rtems_rfs_rtems_fchmod (const rtems_filesystem_location_info_t* pathloc,
                        mode_t                                  mode) 
{                                                                     
 8010054:	b8 40 68 00 	mv r13,r2                                      <== NOT EXECUTED
                                                                      
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FCHMOD))           
    printf ("rtems-rfs-rtems: fchmod: in: ino:%" PRId32 " mode:%06" PRIomode_t "\n",
            ino, mode);                                               
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
 8010058:	28 82 00 08 	lw r2,(r4+8)                                   <== NOT EXECUTED
                                                                      
static int                                                            
rtems_rfs_rtems_fchmod (const rtems_filesystem_location_info_t* pathloc,
                        mode_t                                  mode) 
{                                                                     
  rtems_rfs_file_system*  fs = rtems_rfs_rtems_pathloc_dev (pathloc); 
 801005c:	28 2c 00 08 	lw r12,(r1+8)                                  <== NOT EXECUTED
                                                                      
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FCHMOD))           
    printf ("rtems-rfs-rtems: fchmod: in: ino:%" PRId32 " mode:%06" PRIomode_t "\n",
            ino, mode);                                               
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
 8010060:	37 8b 00 18 	addi r11,sp,24                                 <== NOT EXECUTED
 8010064:	b9 60 18 00 	mv r3,r11                                      <== NOT EXECUTED
 8010068:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801006c:	34 04 00 01 	mvi r4,1                                       <== NOT EXECUTED
 8010070:	fb ff fb 14 	calli 800ecc0 <rtems_rfs_inode_open>           <== NOT EXECUTED
 8010074:	b8 20 70 00 	mv r14,r1                                      <== NOT EXECUTED
  if (rc)                                                             
 8010078:	44 20 00 04 	be r1,r0,8010088 <rtems_rfs_rtems_fchmod+0x54> <== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("fchmod: opening inode", rc);       
 801007c:	f8 00 3e 66 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 8010080:	58 2e 00 00 	sw (r1+0),r14                                  <== NOT EXECUTED
 8010084:	e0 00 00 17 	bi 80100e0 <rtems_rfs_rtems_fchmod+0xac>       <== NOT EXECUTED
  /* FIXME: Return value? */                                          
  rtems_rfs_fs_close(fs);                                             
                                                                      
  rtems_rfs_mutex_destroy (&rtems->access);                           
  free (rtems);                                                       
}                                                                     
 8010088:	2b 8e 00 24 	lw r14,(sp+36)                                 <== NOT EXECUTED
    return rtems_rfs_rtems_error ("fchmod: checking uid", EPERM);     
  }                                                                   
#endif                                                                
                                                                      
  imode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
  imode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
 801008c:	21 ad 0f ff 	andi r13,r13,0xfff                             <== NOT EXECUTED
  if (rc)                                                             
  {                                                                   
    return rtems_rfs_rtems_error ("fchmod: opening inode", rc);       
  }                                                                   
                                                                      
  imode = rtems_rfs_inode_get_mode (&inode);                          
 8010090:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 8010094:	fb ff ff da 	calli 800fffc <rtems_rfs_inode_get_mode.clone.4><== NOT EXECUTED
    rtems_rfs_inode_close (fs, &inode);                               
    return rtems_rfs_rtems_error ("fchmod: checking uid", EPERM);     
  }                                                                   
#endif                                                                
                                                                      
  imode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
 8010098:	20 23 f0 00 	andi r3,r1,0xf000                              <== NOT EXECUTED
  imode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
 801009c:	b8 6d 68 00 	or r13,r3,r13                                  <== NOT EXECUTED
 * @prarm mode The mode.                                              
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_mode (rtems_rfs_inode_handle* handle, uint16_t mode)
{                                                                     
  rtems_rfs_write_u16 (&handle->node->mode, mode);                    
 80100a0:	34 02 00 08 	mvi r2,8                                       <== NOT EXECUTED
 80100a4:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 80100a8:	fb ff c5 35 	calli 800157c <__lshrsi3>                      <== NOT EXECUTED
 80100ac:	31 c1 00 02 	sb (r14+2),r1                                  <== NOT EXECUTED
 80100b0:	2b 81 00 24 	lw r1,(sp+36)                                  <== NOT EXECUTED
                                                                      
  rtems_rfs_inode_set_mode (&inode, imode);                           
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
 80100b4:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 80100b8:	30 2d 00 03 	sb (r1+3),r13                                  <== NOT EXECUTED
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
 80100bc:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
 80100c0:	33 81 00 28 	sb (sp+40),r1                                  <== NOT EXECUTED
 80100c4:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 80100c8:	fb ff fb 8a 	calli 800eef0 <rtems_rfs_inode_close>          <== NOT EXECUTED
 80100cc:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
  if (rc > 0)                                                         
  {                                                                   
    return rtems_rfs_rtems_error ("fchmod: closing inode", rc);       
  }                                                                   
                                                                      
  return 0;                                                           
 80100d0:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
  imode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
                                                                      
  rtems_rfs_inode_set_mode (&inode, imode);                           
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
  if (rc > 0)                                                         
 80100d4:	4c 2b 00 04 	bge r1,r11,80100e4 <rtems_rfs_rtems_fchmod+0xb0><== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("fchmod: closing inode", rc);       
 80100d8:	f8 00 3e 4f 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 80100dc:	58 2b 00 00 	sw (r1+0),r11                                  <== NOT EXECUTED
 80100e0:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 80100e4:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 80100e8:	2b 8b 00 14 	lw r11,(sp+20)                                 <== NOT EXECUTED
 80100ec:	2b 8c 00 10 	lw r12,(sp+16)                                 <== NOT EXECUTED
 80100f0:	2b 8d 00 0c 	lw r13,(sp+12)                                 <== NOT EXECUTED
 80100f4:	2b 8e 00 08 	lw r14,(sp+8)                                  <== NOT EXECUTED
 80100f8:	37 9c 00 3c 	addi sp,sp,60                                  <== NOT EXECUTED
 80100fc:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08010a98 <rtems_rfs_rtems_fdatasync>: * @param iop * @return int */ int rtems_rfs_rtems_fdatasync (rtems_libio_t* iop) {
 8010a98:	37 9c ff f8 	addi sp,sp,-8                                  <== NOT EXECUTED
 8010a9c:	5b 8b 00 08 	sw (sp+8),r11                                  <== NOT EXECUTED
 8010aa0:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
  int rc;                                                             
                                                                      
  rc = rtems_rfs_buffer_sync (rtems_rfs_rtems_pathloc_dev (&iop->pathinfo));
 8010aa4:	28 21 00 20 	lw r1,(r1+32)                                  <== NOT EXECUTED
 8010aa8:	28 21 00 08 	lw r1,(r1+8)                                   <== NOT EXECUTED
 8010aac:	f8 00 25 c9 	calli 801a1d0 <rtems_rfs_buffer_sync>          <== NOT EXECUTED
 8010ab0:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
  if (rc)                                                             
    return rtems_rfs_rtems_error ("fdatasync: sync", rc);             
                                                                      
  return 0;                                                           
 8010ab4:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
rtems_rfs_rtems_fdatasync (rtems_libio_t* iop)                        
{                                                                     
  int rc;                                                             
                                                                      
  rc = rtems_rfs_buffer_sync (rtems_rfs_rtems_pathloc_dev (&iop->pathinfo));
  if (rc)                                                             
 8010ab8:	45 60 00 04 	be r11,r0,8010ac8 <rtems_rfs_rtems_fdatasync+0x30><== NOT EXECUTED
    return rtems_rfs_rtems_error ("fdatasync: sync", rc);             
 8010abc:	f8 00 3b d6 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 8010ac0:	58 2b 00 00 	sw (r1+0),r11                                  <== NOT EXECUTED
 8010ac4:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
                                                                      
  return 0;                                                           
}                                                                     
 8010ac8:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 8010acc:	2b 8b 00 08 	lw r11,(sp+8)                                  <== NOT EXECUTED
 8010ad0:	37 9c 00 08 	addi sp,sp,8                                   <== NOT EXECUTED
 8010ad4:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0801e8fc <rtems_rfs_rtems_file_close>: * @param iop * @return int */ static int rtems_rfs_rtems_file_close (rtems_libio_t* iop) {
 801e8fc:	37 9c ff f4 	addi sp,sp,-12                                 
 801e900:	5b 8b 00 0c 	sw (sp+12),r11                                 
 801e904:	5b 8c 00 08 	sw (sp+8),r12                                  
 801e908:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_rfs_file_handle* file = rtems_rfs_rtems_get_iop_file_handle (iop);
 801e90c:	28 2b 00 18 	lw r11,(r1+24)                                 
  rtems_rfs_file_system* fs = rtems_rfs_file_fs (file);               
 801e910:	29 61 00 1c 	lw r1,(r11+28)                                 
 801e914:	28 2c 00 98 	lw r12,(r1+152)                                
  int                    rc;                                          
                                                                      
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_CLOSE))       
    printf("rtems-rfs: file-close: handle:%p\n", file);               
                                                                      
  rtems_rfs_rtems_lock (fs);                                          
 801e918:	29 81 00 80 	lw r1,(r12+128)                                
 801e91c:	fb ff fe b7 	calli 801e3f8 <rtems_rfs_rtems_lock.clone.1>   
                                                                      
  rc = rtems_rfs_file_close (fs, file);                               
 801e920:	b9 60 10 00 	mv r2,r11                                      
 801e924:	b9 80 08 00 	mv r1,r12                                      
 801e928:	fb ff f4 1b 	calli 801b994 <rtems_rfs_file_close>           
 801e92c:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 801e930:	4c 01 00 04 	bge r0,r1,801e940 <rtems_rfs_rtems_file_close+0x44><== ALWAYS TAKEN
    rc = rtems_rfs_rtems_error ("file-close: file close", rc);        
 801e934:	f8 00 04 38 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 801e938:	58 2b 00 00 	sw (r1+0),r11                                  <== NOT EXECUTED
 801e93c:	34 0b ff ff 	mvi r11,-1                                     <== NOT EXECUTED
                                                                      
  rtems_rfs_rtems_unlock (fs);                                        
 801e940:	b9 80 08 00 	mv r1,r12                                      
 801e944:	fb ff fe 96 	calli 801e39c <rtems_rfs_rtems_unlock>         
  return rc;                                                          
}                                                                     
 801e948:	b9 60 08 00 	mv r1,r11                                      
 801e94c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801e950:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 801e954:	2b 8c 00 08 	lw r12,(sp+8)                                  
 801e958:	37 9c 00 0c 	addi sp,sp,12                                  
 801e95c:	c3 a0 00 00 	ret                                            
                                                                      

0801e454 <rtems_rfs_rtems_file_ftruncate>: * @return int */ static int rtems_rfs_rtems_file_ftruncate (rtems_libio_t* iop, off_t length) {
 801e454:	37 9c ff f4 	addi sp,sp,-12                                 
 801e458:	5b 8b 00 0c 	sw (sp+12),r11                                 
 801e45c:	5b 8c 00 08 	sw (sp+8),r12                                  
 801e460:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_rfs_file_handle* file = rtems_rfs_rtems_get_iop_file_handle (iop);
 801e464:	28 2c 00 18 	lw r12,(r1+24)                                 
 * @return int                                                        
 */                                                                   
static int                                                            
rtems_rfs_rtems_file_ftruncate (rtems_libio_t* iop,                   
                                off_t          length)                
{                                                                     
 801e468:	b8 40 58 00 	mv r11,r2                                      
  int                    rc;                                          
                                                                      
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_FTRUNC))      
    printf("rtems-rfs: file-ftrunc: handle:%p length:%" PRIdoff_t "\n", file, length);
                                                                      
  rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));                    
 801e46c:	29 81 00 1c 	lw r1,(r12+28)                                 
  .fstat_h     = rtems_rfs_rtems_fstat,                               
  .ftruncate_h = rtems_rfs_rtems_file_ftruncate,                      
  .fsync_h     = rtems_rfs_rtems_fdatasync,                           
  .fdatasync_h = rtems_rfs_rtems_fdatasync,                           
  .fcntl_h     = rtems_filesystem_default_fcntl                       
};                                                                    
 801e470:	28 21 00 98 	lw r1,(r1+152)                                 
  int                    rc;                                          
                                                                      
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_FTRUNC))      
    printf("rtems-rfs: file-ftrunc: handle:%p length:%" PRIdoff_t "\n", file, length);
                                                                      
  rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));                    
 801e474:	28 21 00 80 	lw r1,(r1+128)                                 
 801e478:	fb ff ff e0 	calli 801e3f8 <rtems_rfs_rtems_lock.clone.1>   
                                                                      
  rc = rtems_rfs_file_set_size (file, length);                        
 801e47c:	b9 60 08 00 	mv r1,r11                                      
 801e480:	34 02 00 1f 	mvi r2,31                                      
 801e484:	f8 00 52 63 	calli 8032e10 <__ashrsi3>                      
 801e488:	b8 20 10 00 	mv r2,r1                                       
 801e48c:	b9 60 18 00 	mv r3,r11                                      
 801e490:	b9 80 08 00 	mv r1,r12                                      
 801e494:	fb ff f7 5b 	calli 801c200 <rtems_rfs_file_set_size>        
 801e498:	b8 20 58 00 	mv r11,r1                                      
  if (rc)                                                             
 801e49c:	44 20 00 04 	be r1,r0,801e4ac <rtems_rfs_rtems_file_ftruncate+0x58><== ALWAYS TAKEN
    rc = rtems_rfs_rtems_error ("file_ftruncate: set size", rc);      
 801e4a0:	f8 00 05 5d 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 801e4a4:	58 2b 00 00 	sw (r1+0),r11                                  <== NOT EXECUTED
 801e4a8:	34 0b ff ff 	mvi r11,-1                                     <== NOT EXECUTED
                                                                      
  rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));                  
 801e4ac:	29 81 00 1c 	lw r1,(r12+28)                                 
 801e4b0:	28 21 00 98 	lw r1,(r1+152)                                 
 801e4b4:	fb ff ff ba 	calli 801e39c <rtems_rfs_rtems_unlock>         
                                                                      
  return rc;                                                          
}                                                                     
 801e4b8:	b9 60 08 00 	mv r1,r11                                      
 801e4bc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801e4c0:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 801e4c4:	2b 8c 00 08 	lw r12,(sp+8)                                  
 801e4c8:	37 9c 00 0c 	addi sp,sp,12                                  
 801e4cc:	c3 a0 00 00 	ret                                            
                                                                      

0801e4d0 <rtems_rfs_rtems_file_lseek>: */ static off_t rtems_rfs_rtems_file_lseek (rtems_libio_t* iop, off_t offset, int whence) {
 801e4d0:	37 9c ff d8 	addi sp,sp,-40                                 
 801e4d4:	5b 8b 00 18 	sw (sp+24),r11                                 
 801e4d8:	5b 8c 00 14 	sw (sp+20),r12                                 
 801e4dc:	5b 8d 00 10 	sw (sp+16),r13                                 
 801e4e0:	5b 8e 00 0c 	sw (sp+12),r14                                 
 801e4e4:	5b 8f 00 08 	sw (sp+8),r15                                  
 801e4e8:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_rfs_file_handle* file = rtems_rfs_rtems_get_iop_file_handle (iop);
 801e4ec:	28 2c 00 18 	lw r12,(r1+24)                                 
 */                                                                   
static off_t                                                          
rtems_rfs_rtems_file_lseek (rtems_libio_t* iop,                       
                            off_t          offset,                    
                            int            whence)                    
{                                                                     
 801e4f0:	b8 20 58 00 	mv r11,r1                                      
  off_t                  new_offset;                                  
                                                                      
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_LSEEK))       
    printf("rtems-rfs: file-lseek: handle:%p offset:%" PRIdoff_t "\n", file, offset);
                                                                      
  rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));                    
 801e4f4:	29 81 00 1c 	lw r1,(r12+28)                                 
  .fstat_h     = rtems_rfs_rtems_fstat,                               
  .ftruncate_h = rtems_rfs_rtems_file_ftruncate,                      
  .fsync_h     = rtems_rfs_rtems_fdatasync,                           
  .fdatasync_h = rtems_rfs_rtems_fdatasync,                           
  .fcntl_h     = rtems_filesystem_default_fcntl                       
};                                                                    
 801e4f8:	28 21 00 98 	lw r1,(r1+152)                                 
  off_t                  new_offset;                                  
                                                                      
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_LSEEK))       
    printf("rtems-rfs: file-lseek: handle:%p offset:%" PRIdoff_t "\n", file, offset);
                                                                      
  rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));                    
 801e4fc:	28 21 00 80 	lw r1,(r1+128)                                 
 801e500:	5b 82 00 20 	sw (sp+32),r2                                  
 801e504:	5b 83 00 1c 	sw (sp+28),r3                                  
 801e508:	fb ff ff bc 	calli 801e3f8 <rtems_rfs_rtems_lock.clone.1>   
                                                                      
  old_offset = iop->offset;                                           
  new_offset = rtems_filesystem_default_lseek_file (iop, offset, whence);
 801e50c:	2b 82 00 20 	lw r2,(sp+32)                                  
 801e510:	2b 83 00 1c 	lw r3,(sp+28)                                  
 801e514:	b9 60 08 00 	mv r1,r11                                      
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_LSEEK))       
    printf("rtems-rfs: file-lseek: handle:%p offset:%" PRIdoff_t "\n", file, offset);
                                                                      
  rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));                    
                                                                      
  old_offset = iop->offset;                                           
 801e518:	29 6f 00 04 	lw r15,(r11+4)                                 
  new_offset = rtems_filesystem_default_lseek_file (iop, offset, whence);
 801e51c:	f8 00 01 52 	calli 801ea64 <rtems_filesystem_default_lseek_file>
 801e520:	b8 20 68 00 	mv r13,r1                                      
  if (new_offset != -1)                                               
 801e524:	34 01 ff ff 	mvi r1,-1                                      
 801e528:	45 a1 00 12 	be r13,r1,801e570 <rtems_rfs_rtems_file_lseek+0xa0>
  {                                                                   
    rtems_rfs_pos pos = iop->offset;                                  
 801e52c:	29 6e 00 04 	lw r14,(r11+4)                                 
 801e530:	34 02 00 1f 	mvi r2,31                                      
 801e534:	b9 c0 08 00 	mv r1,r14                                      
 801e538:	f8 00 52 36 	calli 8032e10 <__ashrsi3>                      
 801e53c:	b8 20 10 00 	mv r2,r1                                       
 801e540:	5b 81 00 24 	sw (sp+36),r1                                  
    int           rc = rtems_rfs_file_seek (file, pos, &pos);         
 801e544:	b9 c0 18 00 	mv r3,r14                                      
 801e548:	b9 80 08 00 	mv r1,r12                                      
 801e54c:	37 84 00 24 	addi r4,sp,36                                  
                                                                      
  old_offset = iop->offset;                                           
  new_offset = rtems_filesystem_default_lseek_file (iop, offset, whence);
  if (new_offset != -1)                                               
  {                                                                   
    rtems_rfs_pos pos = iop->offset;                                  
 801e550:	5b 8e 00 28 	sw (sp+40),r14                                 
    int           rc = rtems_rfs_file_seek (file, pos, &pos);         
 801e554:	fb ff f6 ea 	calli 801c0fc <rtems_rfs_file_seek>            
 801e558:	b8 20 70 00 	mv r14,r1                                      
                                                                      
    if (rc)                                                           
 801e55c:	44 20 00 05 	be r1,r0,801e570 <rtems_rfs_rtems_file_lseek+0xa0><== ALWAYS TAKEN
    {                                                                 
      rtems_rfs_rtems_error ("file_lseek: lseek", rc);                
 801e560:	f8 00 05 2d 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 801e564:	58 2e 00 00 	sw (r1+0),r14                                  <== NOT EXECUTED
      iop->offset = old_offset;                                       
 801e568:	59 6f 00 04 	sw (r11+4),r15                                 <== NOT EXECUTED
      new_offset = -1;                                                
 801e56c:	34 0d ff ff 	mvi r13,-1                                     <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
  rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));                  
 801e570:	29 81 00 1c 	lw r1,(r12+28)                                 
 801e574:	28 21 00 98 	lw r1,(r1+152)                                 
 801e578:	fb ff ff 89 	calli 801e39c <rtems_rfs_rtems_unlock>         
                                                                      
  return new_offset;                                                  
}                                                                     
 801e57c:	b9 a0 08 00 	mv r1,r13                                      
 801e580:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801e584:	2b 8b 00 18 	lw r11,(sp+24)                                 
 801e588:	2b 8c 00 14 	lw r12,(sp+20)                                 
 801e58c:	2b 8d 00 10 	lw r13,(sp+16)                                 
 801e590:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 801e594:	2b 8f 00 08 	lw r15,(sp+8)                                  
 801e598:	37 9c 00 28 	addi sp,sp,40                                  
 801e59c:	c3 a0 00 00 	ret                                            
                                                                      

0801e960 <rtems_rfs_rtems_file_open>: static int rtems_rfs_rtems_file_open (rtems_libio_t* iop, const char* pathname, int oflag, mode_t mode) {
 801e960:	37 9c ff ec 	addi sp,sp,-20                                 
 801e964:	5b 8b 00 10 	sw (sp+16),r11                                 
 801e968:	5b 8c 00 0c 	sw (sp+12),r12                                 
 801e96c:	5b 8d 00 08 	sw (sp+8),r13                                  
 801e970:	5b 9d 00 04 	sw (sp+4),ra                                   
 801e974:	b8 20 60 00 	mv r12,r1                                      
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
 801e978:	28 21 00 20 	lw r1,(r1+32)                                  
 801e97c:	28 2b 00 08 	lw r11,(r1+8)                                  
                                                                      
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_OPEN))        
    printf("rtems-rfs: file-open: path:%s ino:%" PRId32 " flags:%04i mode:%04" PRIu32 "\n",
           pathname, ino, flags, mode);                               
                                                                      
  rtems_rfs_rtems_lock (fs);                                          
 801e980:	29 61 00 80 	lw r1,(r11+128)                                
 801e984:	fb ff fe 9d 	calli 801e3f8 <rtems_rfs_rtems_lock.clone.1>   
                                                                      
  ino = rtems_rfs_rtems_get_iop_ino (iop);                            
                                                                      
  rc = rtems_rfs_file_open (fs, ino, flags, &file);                   
 801e988:	29 82 00 14 	lw r2,(r12+20)                                 
 801e98c:	b9 60 08 00 	mv r1,r11                                      
 801e990:	34 03 00 00 	mvi r3,0                                       
 801e994:	37 84 00 14 	addi r4,sp,20                                  
 801e998:	fb ff f6 ed 	calli 801c54c <rtems_rfs_file_open>            
 801e99c:	b8 20 68 00 	mv r13,r1                                      
  if (rc > 0)                                                         
 801e9a0:	4c 01 00 07 	bge r0,r1,801e9bc <rtems_rfs_rtems_file_open+0x5c><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_rtems_unlock (fs);                                      
 801e9a4:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801e9a8:	fb ff fe 7d 	calli 801e39c <rtems_rfs_rtems_unlock>         <== NOT EXECUTED
    return rtems_rfs_rtems_error ("file-open: open", rc);             
 801e9ac:	f8 00 04 1a 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 801e9b0:	58 2d 00 00 	sw (r1+0),r13                                  <== NOT EXECUTED
 801e9b4:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 801e9b8:	e0 00 00 06 	bi 801e9d0 <rtems_rfs_rtems_file_open+0x70>    <== NOT EXECUTED
  }                                                                   
                                                                      
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_OPEN))        
    printf("rtems-rfs: file-open: handle:%p\n", file);                
                                                                      
  rtems_rfs_rtems_set_iop_file_handle (iop, file);                    
 801e9bc:	2b 81 00 14 	lw r1,(sp+20)                                  
 801e9c0:	59 81 00 18 	sw (r12+24),r1                                 
                                                                      
  rtems_rfs_rtems_unlock (fs);                                        
 801e9c4:	b9 60 08 00 	mv r1,r11                                      
 801e9c8:	fb ff fe 75 	calli 801e39c <rtems_rfs_rtems_unlock>         
  return 0;                                                           
 801e9cc:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 801e9d0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801e9d4:	2b 8b 00 10 	lw r11,(sp+16)                                 
 801e9d8:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 801e9dc:	2b 8d 00 08 	lw r13,(sp+8)                                  
 801e9e0:	37 9c 00 14 	addi sp,sp,20                                  
 801e9e4:	c3 a0 00 00 	ret                                            
                                                                      

0801e79c <rtems_rfs_rtems_file_read>: */ static ssize_t rtems_rfs_rtems_file_read (rtems_libio_t* iop, void* buffer, size_t count) {
 801e79c:	37 9c ff d8 	addi sp,sp,-40                                 
 801e7a0:	5b 8b 00 24 	sw (sp+36),r11                                 
 801e7a4:	5b 8c 00 20 	sw (sp+32),r12                                 
 801e7a8:	5b 8d 00 1c 	sw (sp+28),r13                                 
 801e7ac:	5b 8e 00 18 	sw (sp+24),r14                                 
 801e7b0:	5b 8f 00 14 	sw (sp+20),r15                                 
 801e7b4:	5b 90 00 10 	sw (sp+16),r16                                 
 801e7b8:	5b 91 00 0c 	sw (sp+12),r17                                 
 801e7bc:	5b 92 00 08 	sw (sp+8),r18                                  
 801e7c0:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_rfs_file_handle* file = rtems_rfs_rtems_get_iop_file_handle (iop);
 801e7c4:	28 2b 00 18 	lw r11,(r1+24)                                 
 */                                                                   
static ssize_t                                                        
rtems_rfs_rtems_file_read (rtems_libio_t* iop,                        
                           void*          buffer,                     
                           size_t         count)                      
{                                                                     
 801e7c8:	b8 20 78 00 	mv r15,r1                                      
 801e7cc:	b8 60 68 00 	mv r13,r3                                      
  int                    rc;                                          
                                                                      
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_READ))        
    printf("rtems-rfs: file-read: handle:%p count:%zd\n", file, count);
                                                                      
  rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));                    
 801e7d0:	29 61 00 1c 	lw r1,(r11+28)                                 
 */                                                                   
static ssize_t                                                        
rtems_rfs_rtems_file_read (rtems_libio_t* iop,                        
                           void*          buffer,                     
                           size_t         count)                      
{                                                                     
 801e7d4:	b8 40 88 00 	mv r17,r2                                      
  .fstat_h     = rtems_rfs_rtems_fstat,                               
  .ftruncate_h = rtems_rfs_rtems_file_ftruncate,                      
  .fsync_h     = rtems_rfs_rtems_fdatasync,                           
  .fdatasync_h = rtems_rfs_rtems_fdatasync,                           
  .fcntl_h     = rtems_filesystem_default_fcntl                       
};                                                                    
 801e7d8:	28 21 00 98 	lw r1,(r1+152)                                 
  int                    rc;                                          
                                                                      
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_READ))        
    printf("rtems-rfs: file-read: handle:%p count:%zd\n", file, count);
                                                                      
  rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));                    
 801e7dc:	28 21 00 80 	lw r1,(r1+128)                                 
 801e7e0:	fb ff ff 06 	calli 801e3f8 <rtems_rfs_rtems_lock.clone.1>   
                                                                      
  pos = iop->offset;                                                  
 801e7e4:	29 f0 00 04 	lw r16,(r15+4)                                 
 801e7e8:	34 02 00 1f 	mvi r2,31                                      
 801e7ec:	ba 00 08 00 	mv r1,r16                                      
 801e7f0:	f8 00 51 88 	calli 8032e10 <__ashrsi3>                      
                                                                      
  if (pos < rtems_rfs_file_size (file))                               
 801e7f4:	29 63 00 1c 	lw r3,(r11+28)                                 
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_READ))        
    printf("rtems-rfs: file-read: handle:%p count:%zd\n", file, count);
                                                                      
  rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));                    
                                                                      
  pos = iop->offset;                                                  
 801e7f8:	b8 20 60 00 	mv r12,r1                                      
 801e7fc:	28 61 00 98 	lw r1,(r3+152)                                 
 801e800:	34 62 00 84 	addi r2,r3,132                                 
 801e804:	fb ff e8 9a 	calli 8018a6c <rtems_rfs_block_get_size>       
                                                                      
  if (pos < rtems_rfs_file_size (file))                               
 801e808:	54 2c 00 27 	bgu r1,r12,801e8a4 <rtems_rfs_rtems_file_read+0x108><== NEVER TAKEN
 801e80c:	5c 2c 00 02 	bne r1,r12,801e814 <rtems_rfs_rtems_file_read+0x78><== NEVER TAKEN
 801e810:	54 50 00 25 	bgu r2,r16,801e8a4 <rtems_rfs_rtems_file_read+0x108>
                           size_t         count)                      
{                                                                     
  rtems_rfs_file_handle* file = rtems_rfs_rtems_get_iop_file_handle (iop);
  rtems_rfs_pos          pos;                                         
  uint8_t*               data = buffer;                               
  ssize_t                read = 0;                                    
 801e814:	34 0c 00 00 	mvi r12,0                                      
 801e818:	e0 00 00 26 	bi 801e8b0 <rtems_rfs_rtems_file_read+0x114>   
  {                                                                   
    while (count)                                                     
    {                                                                 
      size_t size;                                                    
                                                                      
      rc = rtems_rfs_file_io_start (file, &size, true);               
 801e81c:	b9 60 08 00 	mv r1,r11                                      
 801e820:	37 82 00 28 	addi r2,sp,40                                  
 801e824:	34 03 00 01 	mvi r3,1                                       
 801e828:	fb ff f5 16 	calli 801bc80 <rtems_rfs_file_io_start>        
 801e82c:	b8 20 70 00 	mv r14,r1                                      
      if (rc > 0)                                                     
 801e830:	4c 01 00 04 	bge r0,r1,801e840 <rtems_rfs_rtems_file_read+0xa4><== ALWAYS TAKEN
      {                                                               
        read = rtems_rfs_rtems_error ("file-read: read: io-start", rc);
 801e834:	f8 00 04 78 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 801e838:	58 2e 00 00 	sw (r1+0),r14                                  <== NOT EXECUTED
 801e83c:	e0 00 00 2e 	bi 801e8f4 <rtems_rfs_rtems_file_read+0x158>   <== NOT EXECUTED
        break;                                                        
      }                                                               
                                                                      
      if (size == 0)                                                  
 801e840:	2b 81 00 28 	lw r1,(sp+40)                                  
 801e844:	44 20 00 1a 	be r1,r0,801e8ac <rtems_rfs_rtems_file_read+0x110>
        break;                                                        
                                                                      
      if (size > count)                                               
 801e848:	51 a1 00 02 	bgeu r13,r1,801e850 <rtems_rfs_rtems_file_read+0xb4>
        size = count;                                                 
 801e84c:	5b 8d 00 28 	sw (sp+40),r13                                 
                                                                      
      memcpy (data, rtems_rfs_file_data (file), size);                
 801e850:	29 61 00 0c 	lw r1,(r11+12)                                 
 801e854:	2b 8e 00 28 	lw r14,(sp+40)                                 
 801e858:	29 63 00 14 	lw r3,(r11+20)                                 
 801e85c:	28 22 00 1c 	lw r2,(r1+28)                                  
 801e860:	ba 20 08 00 	mv r1,r17                                      
 801e864:	b4 43 10 00 	add r2,r2,r3                                   
 801e868:	b9 c0 18 00 	mv r3,r14                                      
 801e86c:	f8 00 09 9b 	calli 8020ed8 <memcpy>                         
                                                                      
      data  += size;                                                  
      count -= size;                                                  
      read  += size;                                                  
                                                                      
      rc = rtems_rfs_file_io_end (file, size, true);                  
 801e870:	b9 60 08 00 	mv r1,r11                                      
 801e874:	b9 c0 10 00 	mv r2,r14                                      
 801e878:	34 03 00 01 	mvi r3,1                                       
 801e87c:	fb ff f5 7f 	calli 801be78 <rtems_rfs_file_io_end>          
 801e880:	b8 20 90 00 	mv r18,r1                                      
      if (rc > 0)                                                     
 801e884:	48 20 00 05 	bg r1,r0,801e898 <rtems_rfs_rtems_file_read+0xfc><== NEVER TAKEN
      if (size > count)                                               
        size = count;                                                 
                                                                      
      memcpy (data, rtems_rfs_file_data (file), size);                
                                                                      
      data  += size;                                                  
 801e888:	b6 2e 88 00 	add r17,r17,r14                                
      count -= size;                                                  
 801e88c:	c9 ae 68 00 	sub r13,r13,r14                                
      read  += size;                                                  
 801e890:	b5 8e 60 00 	add r12,r12,r14                                
 801e894:	e0 00 00 05 	bi 801e8a8 <rtems_rfs_rtems_file_read+0x10c>   
                                                                      
      rc = rtems_rfs_file_io_end (file, size, true);                  
      if (rc > 0)                                                     
      {                                                               
        read = rtems_rfs_rtems_error ("file-read: read: io-end", rc); 
 801e898:	f8 00 04 5f 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 801e89c:	58 32 00 00 	sw (r1+0),r18                                  <== NOT EXECUTED
 801e8a0:	e0 00 00 15 	bi 801e8f4 <rtems_rfs_rtems_file_read+0x158>   <== NOT EXECUTED
                           void*          buffer,                     
                           size_t         count)                      
{                                                                     
  rtems_rfs_file_handle* file = rtems_rfs_rtems_get_iop_file_handle (iop);
  rtems_rfs_pos          pos;                                         
  uint8_t*               data = buffer;                               
 801e8a4:	34 0c 00 00 	mvi r12,0                                      
                                                                      
  pos = iop->offset;                                                  
                                                                      
  if (pos < rtems_rfs_file_size (file))                               
  {                                                                   
    while (count)                                                     
 801e8a8:	5d a0 ff dd 	bne r13,r0,801e81c <rtems_rfs_rtems_file_read+0x80>
        break;                                                        
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if (read >= 0)                                                      
 801e8ac:	48 0c 00 03 	bg r0,r12,801e8b8 <rtems_rfs_rtems_file_read+0x11c><== NEVER TAKEN
    iop->offset = pos + read;                                         
 801e8b0:	b5 90 80 00 	add r16,r12,r16                                
 801e8b4:	59 f0 00 04 	sw (r15+4),r16                                 
                                                                      
  rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));                  
 801e8b8:	29 61 00 1c 	lw r1,(r11+28)                                 
 801e8bc:	28 21 00 98 	lw r1,(r1+152)                                 
 801e8c0:	fb ff fe b7 	calli 801e39c <rtems_rfs_rtems_unlock>         
                                                                      
  return read;                                                        
}                                                                     
 801e8c4:	b9 80 08 00 	mv r1,r12                                      
 801e8c8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801e8cc:	2b 8b 00 24 	lw r11,(sp+36)                                 
 801e8d0:	2b 8c 00 20 	lw r12,(sp+32)                                 
 801e8d4:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 801e8d8:	2b 8e 00 18 	lw r14,(sp+24)                                 
 801e8dc:	2b 8f 00 14 	lw r15,(sp+20)                                 
 801e8e0:	2b 90 00 10 	lw r16,(sp+16)                                 
 801e8e4:	2b 91 00 0c 	lw r17,(sp+12)                                 
 801e8e8:	2b 92 00 08 	lw r18,(sp+8)                                  
 801e8ec:	37 9c 00 28 	addi sp,sp,40                                  
 801e8f0:	c3 a0 00 00 	ret                                            
                           size_t         count)                      
{                                                                     
  rtems_rfs_file_handle* file = rtems_rfs_rtems_get_iop_file_handle (iop);
  rtems_rfs_pos          pos;                                         
  uint8_t*               data = buffer;                               
  ssize_t                read = 0;                                    
 801e8f4:	34 0c ff ff 	mvi r12,-1                                     <== NOT EXECUTED
 801e8f8:	e3 ff ff f0 	bi 801e8b8 <rtems_rfs_rtems_file_read+0x11c>   <== NOT EXECUTED
                                                                      

0801e5a0 <rtems_rfs_rtems_file_write>: */ static ssize_t rtems_rfs_rtems_file_write (rtems_libio_t* iop, const void* buffer, size_t count) {
 801e5a0:	37 9c ff d4 	addi sp,sp,-44                                 
 801e5a4:	5b 8b 00 20 	sw (sp+32),r11                                 
 801e5a8:	5b 8c 00 1c 	sw (sp+28),r12                                 
 801e5ac:	5b 8d 00 18 	sw (sp+24),r13                                 
 801e5b0:	5b 8e 00 14 	sw (sp+20),r14                                 
 801e5b4:	5b 8f 00 10 	sw (sp+16),r15                                 
 801e5b8:	5b 90 00 0c 	sw (sp+12),r16                                 
 801e5bc:	5b 91 00 08 	sw (sp+8),r17                                  
 801e5c0:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_rfs_file_handle* file = rtems_rfs_rtems_get_iop_file_handle (iop);
 801e5c4:	28 2b 00 18 	lw r11,(r1+24)                                 
 */                                                                   
static ssize_t                                                        
rtems_rfs_rtems_file_write (rtems_libio_t* iop,                       
                            const void*    buffer,                    
                            size_t         count)                     
{                                                                     
 801e5c8:	b8 20 70 00 	mv r14,r1                                      
 801e5cc:	b8 60 68 00 	mv r13,r3                                      
  int                    rc;                                          
                                                                      
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_WRITE))       
    printf("rtems-rfs: file-write: handle:%p count:%zd\n", file, count);
                                                                      
  rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));                    
 801e5d0:	29 61 00 1c 	lw r1,(r11+28)                                 
 */                                                                   
static ssize_t                                                        
rtems_rfs_rtems_file_write (rtems_libio_t* iop,                       
                            const void*    buffer,                    
                            size_t         count)                     
{                                                                     
 801e5d4:	b8 40 80 00 	mv r16,r2                                      
  .fstat_h     = rtems_rfs_rtems_fstat,                               
  .ftruncate_h = rtems_rfs_rtems_file_ftruncate,                      
  .fsync_h     = rtems_rfs_rtems_fdatasync,                           
  .fdatasync_h = rtems_rfs_rtems_fdatasync,                           
  .fcntl_h     = rtems_filesystem_default_fcntl                       
};                                                                    
 801e5d8:	28 21 00 98 	lw r1,(r1+152)                                 
  int                    rc;                                          
                                                                      
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_WRITE))       
    printf("rtems-rfs: file-write: handle:%p count:%zd\n", file, count);
                                                                      
  rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));                    
 801e5dc:	28 21 00 80 	lw r1,(r1+128)                                 
 801e5e0:	fb ff ff 86 	calli 801e3f8 <rtems_rfs_rtems_lock.clone.1>   
                                                                      
  pos = iop->offset;                                                  
 801e5e4:	29 c1 00 04 	lw r1,(r14+4)                                  
 801e5e8:	34 02 00 1f 	mvi r2,31                                      
 801e5ec:	5b 81 00 28 	sw (sp+40),r1                                  
 801e5f0:	f8 00 52 08 	calli 8032e10 <__ashrsi3>                      
  file_size = rtems_rfs_file_size (file);                             
 801e5f4:	29 63 00 1c 	lw r3,(r11+28)                                 
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_WRITE))       
    printf("rtems-rfs: file-write: handle:%p count:%zd\n", file, count);
                                                                      
  rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));                    
                                                                      
  pos = iop->offset;                                                  
 801e5f8:	5b 81 00 24 	sw (sp+36),r1                                  
 801e5fc:	28 61 00 98 	lw r1,(r3+152)                                 
 801e600:	34 62 00 84 	addi r2,r3,132                                 
 801e604:	fb ff e9 1a 	calli 8018a6c <rtems_rfs_block_get_size>       
  file_size = rtems_rfs_file_size (file);                             
  if (pos > file_size)                                                
 801e608:	2b 85 00 24 	lw r5,(sp+36)                                  
 801e60c:	b8 20 20 00 	mv r4,r1                                       
 801e610:	b8 40 18 00 	mv r3,r2                                       
 801e614:	2b 86 00 28 	lw r6,(sp+40)                                  
 801e618:	54 a4 00 04 	bgu r5,r4,801e628 <rtems_rfs_rtems_file_write+0x88><== NEVER TAKEN
 801e61c:	5c a4 00 12 	bne r5,r4,801e664 <rtems_rfs_rtems_file_write+0xc4><== NEVER TAKEN
 801e620:	54 c2 00 02 	bgu r6,r2,801e628 <rtems_rfs_rtems_file_write+0x88>
 801e624:	e0 00 00 10 	bi 801e664 <rtems_rfs_rtems_file_write+0xc4>   
    /*                                                                
     * If the iop position is past the physical end of the file we need to set
     * the file size to the new length before writing.  The           
     * rtems_rfs_file_io_end() will grow the file subsequently.       
     */                                                               
    rc = rtems_rfs_file_set_size (file, pos);                         
 801e628:	b8 c0 18 00 	mv r3,r6                                       
 801e62c:	b9 60 08 00 	mv r1,r11                                      
 801e630:	b8 a0 10 00 	mv r2,r5                                       
 801e634:	fb ff f6 f3 	calli 801c200 <rtems_rfs_file_set_size>        
 801e638:	b8 20 60 00 	mv r12,r1                                      
 801e63c:	29 63 00 1c 	lw r3,(r11+28)                                 
    if (rc)                                                           
 801e640:	44 20 00 03 	be r1,r0,801e64c <rtems_rfs_rtems_file_write+0xac><== ALWAYS TAKEN
    {                                                                 
      rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));              
 801e644:	28 61 00 98 	lw r1,(r3+152)                                 <== NOT EXECUTED
 801e648:	e0 00 00 18 	bi 801e6a8 <rtems_rfs_rtems_file_write+0x108>  <== NOT EXECUTED
      return rtems_rfs_rtems_error ("file-write: write extend", rc);  
    }                                                                 
                                                                      
    rtems_rfs_file_set_bpos (file, pos);                              
 801e64c:	28 61 00 98 	lw r1,(r3+152)                                 
 801e650:	2b 82 00 24 	lw r2,(sp+36)                                  
 801e654:	2b 83 00 28 	lw r3,(sp+40)                                  
 801e658:	35 64 00 10 	addi r4,r11,16                                 
 801e65c:	fb ff e8 b6 	calli 8018934 <rtems_rfs_block_get_bpos>       
 801e660:	e0 00 00 39 	bi 801e744 <rtems_rfs_rtems_file_write+0x1a4>  
  }                                                                   
  else if (pos < file_size && (iop->flags & LIBIO_FLAGS_APPEND) != 0) 
 801e664:	54 85 00 04 	bgu r4,r5,801e674 <rtems_rfs_rtems_file_write+0xd4><== NEVER TAKEN
 801e668:	5c 85 00 37 	bne r4,r5,801e744 <rtems_rfs_rtems_file_write+0x1a4><== NEVER TAKEN
 801e66c:	54 66 00 02 	bgu r3,r6,801e674 <rtems_rfs_rtems_file_write+0xd4>
 801e670:	e0 00 00 35 	bi 801e744 <rtems_rfs_rtems_file_write+0x1a4>  
 801e674:	29 c1 00 08 	lw r1,(r14+8)                                  
 801e678:	20 21 02 00 	andi r1,r1,0x200                               
 801e67c:	44 20 00 32 	be r1,r0,801e744 <rtems_rfs_rtems_file_write+0x1a4><== NEVER TAKEN
  {                                                                   
    pos = file_size;                                                  
 801e680:	5b 84 00 24 	sw (sp+36),r4                                  
    rc = rtems_rfs_file_seek (file, pos, &pos);                       
 801e684:	b8 80 10 00 	mv r2,r4                                       
 801e688:	b9 60 08 00 	mv r1,r11                                      
 801e68c:	37 84 00 24 	addi r4,sp,36                                  
                                                                      
    rtems_rfs_file_set_bpos (file, pos);                              
  }                                                                   
  else if (pos < file_size && (iop->flags & LIBIO_FLAGS_APPEND) != 0) 
  {                                                                   
    pos = file_size;                                                  
 801e690:	5b 83 00 28 	sw (sp+40),r3                                  
    rc = rtems_rfs_file_seek (file, pos, &pos);                       
 801e694:	fb ff f6 9a 	calli 801c0fc <rtems_rfs_file_seek>            
 801e698:	b8 20 60 00 	mv r12,r1                                      
    if (rc)                                                           
 801e69c:	44 20 00 2a 	be r1,r0,801e744 <rtems_rfs_rtems_file_write+0x1a4>
    {                                                                 
      rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));              
 801e6a0:	29 61 00 1c 	lw r1,(r11+28)                                 <== NOT EXECUTED
 801e6a4:	28 21 00 98 	lw r1,(r1+152)                                 <== NOT EXECUTED
 801e6a8:	fb ff ff 3d 	calli 801e39c <rtems_rfs_rtems_unlock>         <== NOT EXECUTED
      return rtems_rfs_rtems_error ("file-write: write append seek", rc);
 801e6ac:	f8 00 04 da 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 801e6b0:	58 2c 00 00 	sw (r1+0),r12                                  <== NOT EXECUTED
 801e6b4:	34 0c ff ff 	mvi r12,-1                                     <== NOT EXECUTED
 801e6b8:	e0 00 00 2c 	bi 801e768 <rtems_rfs_rtems_file_write+0x1c8>  <== NOT EXECUTED
                                                                      
  while (count)                                                       
  {                                                                   
    size_t size = count;                                              
                                                                      
    rc = rtems_rfs_file_io_start (file, &size, false);                
 801e6bc:	b9 60 08 00 	mv r1,r11                                      
 801e6c0:	37 82 00 2c 	addi r2,sp,44                                  
 801e6c4:	34 03 00 00 	mvi r3,0                                       
    }                                                                 
  }                                                                   
                                                                      
  while (count)                                                       
  {                                                                   
    size_t size = count;                                              
 801e6c8:	5b 8d 00 2c 	sw (sp+44),r13                                 
                                                                      
    rc = rtems_rfs_file_io_start (file, &size, false);                
 801e6cc:	fb ff f5 6d 	calli 801bc80 <rtems_rfs_file_io_start>        
 801e6d0:	b8 20 78 00 	mv r15,r1                                      
    if (rc)                                                           
 801e6d4:	44 20 00 04 	be r1,r0,801e6e4 <rtems_rfs_rtems_file_write+0x144>
    {                                                                 
      write = rtems_rfs_rtems_error ("file-write: write open", rc);   
 801e6d8:	f8 00 04 cf 	calli 801fa14 <__errno>                        
 801e6dc:	58 2f 00 00 	sw (r1+0),r15                                  
 801e6e0:	e0 00 00 2d 	bi 801e794 <rtems_rfs_rtems_file_write+0x1f4>  
      break;                                                          
    }                                                                 
                                                                      
    if (size > count)                                                 
 801e6e4:	2b 81 00 2c 	lw r1,(sp+44)                                  
 801e6e8:	51 a1 00 02 	bgeu r13,r1,801e6f0 <rtems_rfs_rtems_file_write+0x150>
      size = count;                                                   
 801e6ec:	5b 8d 00 2c 	sw (sp+44),r13                                 
                                                                      
    memcpy (rtems_rfs_file_data (file), data, size);                  
 801e6f0:	29 61 00 0c 	lw r1,(r11+12)                                 
 801e6f4:	29 62 00 14 	lw r2,(r11+20)                                 
 801e6f8:	2b 83 00 2c 	lw r3,(sp+44)                                  
 801e6fc:	28 21 00 1c 	lw r1,(r1+28)                                  
 801e700:	b4 22 08 00 	add r1,r1,r2                                   
 801e704:	ba 00 10 00 	mv r2,r16                                      
 801e708:	f8 00 09 f4 	calli 8020ed8 <memcpy>                         
                                                                      
    data  += size;                                                    
 801e70c:	2b 8f 00 2c 	lw r15,(sp+44)                                 
    count -= size;                                                    
    write  += size;                                                   
                                                                      
    rc = rtems_rfs_file_io_end (file, size, false);                   
 801e710:	b9 60 08 00 	mv r1,r11                                      
 801e714:	34 03 00 00 	mvi r3,0                                       
 801e718:	b9 e0 10 00 	mv r2,r15                                      
 801e71c:	fb ff f5 d7 	calli 801be78 <rtems_rfs_file_io_end>          
 801e720:	b8 20 88 00 	mv r17,r1                                      
    if (rc)                                                           
 801e724:	5c 20 00 05 	bne r1,r0,801e738 <rtems_rfs_rtems_file_write+0x198><== NEVER TAKEN
    if (size > count)                                                 
      size = count;                                                   
                                                                      
    memcpy (rtems_rfs_file_data (file), data, size);                  
                                                                      
    data  += size;                                                    
 801e728:	b6 0f 80 00 	add r16,r16,r15                                
    count -= size;                                                    
 801e72c:	c9 af 68 00 	sub r13,r13,r15                                
    write  += size;                                                   
 801e730:	b5 8f 60 00 	add r12,r12,r15                                
 801e734:	e0 00 00 05 	bi 801e748 <rtems_rfs_rtems_file_write+0x1a8>  
                                                                      
    rc = rtems_rfs_file_io_end (file, size, false);                   
    if (rc)                                                           
    {                                                                 
      write = rtems_rfs_rtems_error ("file-write: write close", rc);  
 801e738:	f8 00 04 b7 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 801e73c:	58 31 00 00 	sw (r1+0),r17                                  <== NOT EXECUTED
 801e740:	e0 00 00 15 	bi 801e794 <rtems_rfs_rtems_file_write+0x1f4>  <== NOT EXECUTED
                            size_t         count)                     
{                                                                     
  rtems_rfs_file_handle* file = rtems_rfs_rtems_get_iop_file_handle (iop);
  rtems_rfs_pos          pos;                                         
  rtems_rfs_pos          file_size;                                   
  const uint8_t*         data = buffer;                               
 801e744:	34 0c 00 00 	mvi r12,0                                      
      rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));              
      return rtems_rfs_rtems_error ("file-write: write append seek", rc);
    }                                                                 
  }                                                                   
                                                                      
  while (count)                                                       
 801e748:	5d a0 ff dd 	bne r13,r0,801e6bc <rtems_rfs_rtems_file_write+0x11c>
      write = rtems_rfs_rtems_error ("file-write: write close", rc);  
      break;                                                          
    }                                                                 
  }                                                                   
                                                                      
  if (write >= 0)                                                     
 801e74c:	49 ac 00 04 	bg r13,r12,801e75c <rtems_rfs_rtems_file_write+0x1bc><== NEVER TAKEN
    iop->offset = pos + write;                                        
 801e750:	2b 81 00 28 	lw r1,(sp+40)                                  
 801e754:	b5 81 08 00 	add r1,r12,r1                                  
 801e758:	59 c1 00 04 	sw (r14+4),r1                                  
                                                                      
  rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));                  
 801e75c:	29 61 00 1c 	lw r1,(r11+28)                                 
 801e760:	28 21 00 98 	lw r1,(r1+152)                                 
 801e764:	fb ff ff 0e 	calli 801e39c <rtems_rfs_rtems_unlock>         
                                                                      
  return write;                                                       
}                                                                     
 801e768:	b9 80 08 00 	mv r1,r12                                      
 801e76c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801e770:	2b 8b 00 20 	lw r11,(sp+32)                                 
 801e774:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 801e778:	2b 8d 00 18 	lw r13,(sp+24)                                 
 801e77c:	2b 8e 00 14 	lw r14,(sp+20)                                 
 801e780:	2b 8f 00 10 	lw r15,(sp+16)                                 
 801e784:	2b 90 00 0c 	lw r16,(sp+12)                                 
 801e788:	2b 91 00 08 	lw r17,(sp+8)                                  
 801e78c:	37 9c 00 2c 	addi sp,sp,44                                  
 801e790:	c3 a0 00 00 	ret                                            
      rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));              
      return rtems_rfs_rtems_error ("file-write: write append seek", rc);
    }                                                                 
  }                                                                   
                                                                      
  while (count)                                                       
 801e794:	34 0c ff ff 	mvi r12,-1                                     
 801e798:	e3 ff ff f1 	bi 801e75c <rtems_rfs_rtems_file_write+0x1bc>  
                                                                      

0801020c <rtems_rfs_rtems_fstat>: int rtems_rfs_rtems_fstat (const rtems_filesystem_location_info_t* pathloc, struct stat* buf) {
 801020c:	37 9c ff bc 	addi sp,sp,-68                                 
 8010210:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8010214:	5b 8c 00 18 	sw (sp+24),r12                                 
 8010218:	5b 8d 00 14 	sw (sp+20),r13                                 
 801021c:	5b 8e 00 10 	sw (sp+16),r14                                 
 8010220:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8010224:	5b 90 00 08 	sw (sp+8),r16                                  
 8010228:	5b 9d 00 04 	sw (sp+4),ra                                   
 801022c:	b8 20 18 00 	mv r3,r1                                       
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);  
 8010230:	28 21 00 14 	lw r1,(r1+20)                                  
}                                                                     
                                                                      
int                                                                   
rtems_rfs_rtems_fstat (const rtems_filesystem_location_info_t* pathloc,
                       struct stat*                            buf)   
{                                                                     
 8010234:	b8 40 58 00 	mv r11,r2                                      
  int                    rc;                                          
                                                                      
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_STAT))             
    printf ("rtems-rfs-rtems: stat: in: ino:%" PRId32 "\n", ino);     
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
 8010238:	28 62 00 08 	lw r2,(r3+8)                                   
                                                                      
int                                                                   
rtems_rfs_rtems_fstat (const rtems_filesystem_location_info_t* pathloc,
                       struct stat*                            buf)   
{                                                                     
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);  
 801023c:	28 2d 00 08 	lw r13,(r1+8)                                  
  int                    rc;                                          
                                                                      
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_STAT))             
    printf ("rtems-rfs-rtems: stat: in: ino:%" PRId32 "\n", ino);     
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
 8010240:	37 83 00 20 	addi r3,sp,32                                  
 8010244:	34 04 00 01 	mvi r4,1                                       
 8010248:	b9 a0 08 00 	mv r1,r13                                      
 801024c:	fb ff fa 9d 	calli 800ecc0 <rtems_rfs_inode_open>           
 8010250:	b8 20 70 00 	mv r14,r1                                      
  if (rc)                                                             
 8010254:	44 20 00 04 	be r1,r0,8010264 <rtems_rfs_rtems_fstat+0x58>  <== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("stat: opening inode", rc);         
 8010258:	f8 00 3d ef 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 801025c:	58 2e 00 00 	sw (r1+0),r14                                  <== NOT EXECUTED
 8010260:	e0 00 00 9e 	bi 80104d8 <rtems_rfs_rtems_fstat+0x2cc>       <== NOT EXECUTED
  /* FIXME: Return value? */                                          
  rtems_rfs_fs_close(fs);                                             
                                                                      
  rtems_rfs_mutex_destroy (&rtems->access);                           
  free (rtems);                                                       
}                                                                     
 8010264:	2b 8c 00 2c 	lw r12,(sp+44)                                 
  if (rc)                                                             
  {                                                                   
    return rtems_rfs_rtems_error ("stat: opening inode", rc);         
  }                                                                   
                                                                      
  mode = rtems_rfs_inode_get_mode (&inode);                           
 8010268:	b9 80 08 00 	mv r1,r12                                      
 801026c:	fb ff ff 64 	calli 800fffc <rtems_rfs_inode_get_mode.clone.4>
 8010270:	b8 20 78 00 	mv r15,r1                                      
                                                                      
  if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK (mode))           
 8010274:	20 21 f0 00 	andi r1,r1,0xf000                              
 8010278:	64 22 60 00 	cmpei r2,r1,24576                              
 801027c:	64 21 20 00 	cmpei r1,r1,8192                               
 8010280:	b8 41 08 00 	or r1,r2,r1                                    
 8010284:	44 2e 00 0a 	be r1,r14,80102ac <rtems_rfs_rtems_fstat+0xa0> <== ALWAYS TAKEN
  {                                                                   
    buf->st_rdev =                                                    
      rtems_filesystem_make_dev_t (rtems_rfs_inode_get_block (&inode, 0),
 8010288:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 801028c:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8010290:	fb ff ff c4 	calli 80101a0 <rtems_rfs_inode_get_block.clone.12><== NOT EXECUTED
 8010294:	b8 20 70 00 	mv r14,r1                                      <== NOT EXECUTED
 8010298:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 801029c:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 80102a0:	fb ff ff c0 	calli 80101a0 <rtems_rfs_inode_get_block.clone.12><== NOT EXECUTED
                                                                      
  mode = rtems_rfs_inode_get_mode (&inode);                           
                                                                      
  if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK (mode))           
  {                                                                   
    buf->st_rdev =                                                    
 80102a4:	59 61 00 1c 	sw (r11+28),r1                                 <== NOT EXECUTED
 80102a8:	59 6e 00 18 	sw (r11+24),r14                                <== NOT EXECUTED
      rtems_filesystem_make_dev_t (rtems_rfs_inode_get_block (&inode, 0),
                                   rtems_rfs_inode_get_block (&inode, 1));
  }                                                                   
                                                                      
  buf->st_dev     = rtems_rfs_fs_device (fs);                         
 80102ac:	29 ac 00 10 	lw r12,(r13+16)                                
 80102b0:	34 02 00 1f 	mvi r2,31                                      
 80102b4:	b9 80 08 00 	mv r1,r12                                      
 80102b8:	f8 00 8a d6 	calli 8032e10 <__ashrsi3>                      
 80102bc:	59 61 00 00 	sw (r11+0),r1                                  
  buf->st_ino     = rtems_rfs_inode_ino (&inode);                     
 80102c0:	2b 81 00 28 	lw r1,(sp+40)                                  
    buf->st_rdev =                                                    
      rtems_filesystem_make_dev_t (rtems_rfs_inode_get_block (&inode, 0),
                                   rtems_rfs_inode_get_block (&inode, 1));
  }                                                                   
                                                                      
  buf->st_dev     = rtems_rfs_fs_device (fs);                         
 80102c4:	59 6c 00 04 	sw (r11+4),r12                                 
  buf->st_ino     = rtems_rfs_inode_ino (&inode);                     
 80102c8:	59 61 00 08 	sw (r11+8),r1                                  
  buf->st_mode    = rtems_rfs_rtems_mode (mode);                      
 80102cc:	b9 e0 08 00 	mv r1,r15                                      
 80102d0:	f8 00 02 34 	calli 8010ba0 <rtems_rfs_rtems_mode>           
  /* FIXME: Return value? */                                          
  rtems_rfs_fs_close(fs);                                             
                                                                      
  rtems_rfs_mutex_destroy (&rtems->access);                           
  free (rtems);                                                       
}                                                                     
 80102d4:	2b 8c 00 2c 	lw r12,(sp+44)                                 
                                   rtems_rfs_inode_get_block (&inode, 1));
  }                                                                   
                                                                      
  buf->st_dev     = rtems_rfs_fs_device (fs);                         
  buf->st_ino     = rtems_rfs_inode_ino (&inode);                     
  buf->st_mode    = rtems_rfs_rtems_mode (mode);                      
 80102d8:	59 61 00 0c 	sw (r11+12),r1                                 
 */                                                                   
static inline uint16_t                                                
rtems_rfs_inode_get_links (rtems_rfs_inode_handle* handle)            
{                                                                     
  uint16_t links;                                                     
  links = rtems_rfs_read_u16 (&handle->node->links);                  
 80102dc:	34 02 00 08 	mvi r2,8                                       
 80102e0:	41 81 00 00 	lbu r1,(r12+0)                                 
 80102e4:	fb ff c4 7f 	calli 80014e0 <__ashlsi3>                      
 80102e8:	41 82 00 01 	lbu r2,(r12+1)                                 
 80102ec:	b8 22 10 00 	or r2,r1,r2                                    
 80102f0:	20 42 ff ff 	andi r2,r2,0xffff                              
  if (links == 0xffff)                                                
 80102f4:	38 01 ff ff 	mvu r1,0xffff                                  
    links = 0;                                                        
 80102f8:	fc 41 08 00 	cmpne r1,r2,r1                                 
 80102fc:	c8 01 08 00 	sub r1,r0,r1                                   
 8010300:	a0 41 10 00 	and r2,r2,r1                                   
  buf->st_nlink   = rtems_rfs_inode_get_links (&inode);               
 8010304:	0d 62 00 10 	sh (r11+16),r2                                 
  buf->st_uid     = rtems_rfs_inode_get_uid (&inode);                 
 8010308:	b9 80 08 00 	mv r1,r12                                      
 801030c:	fb ff ff 7d 	calli 8010100 <rtems_rfs_inode_get_uid.clone.5>
 8010310:	0d 61 00 12 	sh (r11+18),r1                                 
  buf->st_gid     = rtems_rfs_inode_get_gid (&inode);                 
 8010314:	b9 80 08 00 	mv r1,r12                                      
 8010318:	fb ff ff 88 	calli 8010138 <rtems_rfs_inode_get_gid.clone.6>
                                                                      
  /*                                                                  
   * Need to check is the ino is an open file. If so we take the values from
   * the open file rather than the inode.                             
   */                                                                 
  shared = rtems_rfs_file_get_shared (fs, rtems_rfs_inode_ino (&inode));
 801031c:	2b 82 00 28 	lw r2,(sp+40)                                  
  buf->st_dev     = rtems_rfs_fs_device (fs);                         
  buf->st_ino     = rtems_rfs_inode_ino (&inode);                     
  buf->st_mode    = rtems_rfs_rtems_mode (mode);                      
  buf->st_nlink   = rtems_rfs_inode_get_links (&inode);               
  buf->st_uid     = rtems_rfs_inode_get_uid (&inode);                 
  buf->st_gid     = rtems_rfs_inode_get_gid (&inode);                 
 8010320:	0d 61 00 14 	sh (r11+20),r1                                 
                                                                      
  /*                                                                  
   * Need to check is the ino is an open file. If so we take the values from
   * the open file rather than the inode.                             
   */                                                                 
  shared = rtems_rfs_file_get_shared (fs, rtems_rfs_inode_ino (&inode));
 8010324:	b9 a0 08 00 	mv r1,r13                                      
 8010328:	f8 00 30 7f 	calli 801c524 <rtems_rfs_file_get_shared>      
 801032c:	b8 20 10 00 	mv r2,r1                                       
 8010330:	29 6f 00 0c 	lw r15,(r11+12)                                
                                                                      
  if (shared)                                                         
 8010334:	44 20 00 12 	be r1,r0,801037c <rtems_rfs_rtems_fstat+0x170> 
  {                                                                   
    buf->st_atime   = rtems_rfs_file_shared_get_atime (shared);       
 8010338:	28 21 00 8c 	lw r1,(r1+140)                                 
    buf->st_mtime   = rtems_rfs_file_shared_get_mtime (shared);       
    buf->st_ctime   = rtems_rfs_file_shared_get_ctime (shared);       
    buf->st_blocks  = rtems_rfs_file_shared_get_block_count (shared); 
                                                                      
    if (S_ISLNK (buf->st_mode))                                       
 801033c:	21 ef f0 00 	andi r15,r15,0xf000                            
   */                                                                 
  shared = rtems_rfs_file_get_shared (fs, rtems_rfs_inode_ino (&inode));
                                                                      
  if (shared)                                                         
  {                                                                   
    buf->st_atime   = rtems_rfs_file_shared_get_atime (shared);       
 8010340:	59 61 00 24 	sw (r11+36),r1                                 
    buf->st_mtime   = rtems_rfs_file_shared_get_mtime (shared);       
 8010344:	28 41 00 90 	lw r1,(r2+144)                                 
 8010348:	59 61 00 2c 	sw (r11+44),r1                                 
    buf->st_ctime   = rtems_rfs_file_shared_get_ctime (shared);       
 801034c:	28 41 00 94 	lw r1,(r2+148)                                 
 8010350:	59 61 00 34 	sw (r11+52),r1                                 
    buf->st_blocks  = rtems_rfs_file_shared_get_block_count (shared); 
 8010354:	28 41 00 84 	lw r1,(r2+132)                                 
 8010358:	59 61 00 40 	sw (r11+64),r1                                 
                                                                      
    if (S_ISLNK (buf->st_mode))                                       
 801035c:	38 01 a0 00 	mvu r1,0xa000                                  
 8010360:	5d e1 00 03 	bne r15,r1,801036c <rtems_rfs_rtems_fstat+0x160><== ALWAYS TAKEN
      buf->st_size = rtems_rfs_file_shared_get_block_offset (shared); 
 8010364:	2c 41 00 8a 	lhu r1,(r2+138)                                <== NOT EXECUTED
 8010368:	e0 00 00 4c 	bi 8010498 <rtems_rfs_rtems_fstat+0x28c>       <== NOT EXECUTED
 */                                                                   
static inline rtems_rfs_pos                                           
rtems_rfs_file_shared_get_size (rtems_rfs_file_system* fs,            
                                rtems_rfs_file_shared* shared)        
{                                                                     
  return rtems_rfs_block_get_size (fs, &shared->size);                
 801036c:	b9 a0 08 00 	mv r1,r13                                      
 8010370:	34 42 00 84 	addi r2,r2,132                                 
 8010374:	f8 00 21 be 	calli 8018a6c <rtems_rfs_block_get_size>       
 8010378:	e0 00 00 4d 	bi 80104ac <rtems_rfs_rtems_fstat+0x2a0>       
  /* FIXME: Return value? */                                          
  rtems_rfs_fs_close(fs);                                             
                                                                      
  rtems_rfs_mutex_destroy (&rtems->access);                           
  free (rtems);                                                       
}                                                                     
 801037c:	2b 8c 00 2c 	lw r12,(sp+44)                                 
 * @return rtems_rfs_time The atime.                                  
 */                                                                   
static inline rtems_rfs_time                                          
rtems_rfs_inode_get_atime (rtems_rfs_inode_handle* handle)            
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->atime);                   
 8010380:	34 02 00 18 	mvi r2,24                                      
    buf->st_atime   = rtems_rfs_inode_get_atime (&inode);             
    buf->st_mtime   = rtems_rfs_inode_get_mtime (&inode);             
    buf->st_ctime   = rtems_rfs_inode_get_ctime (&inode);             
    buf->st_blocks  = rtems_rfs_inode_get_block_count (&inode);       
                                                                      
    if (S_ISLNK (buf->st_mode))                                       
 8010384:	21 ef f0 00 	andi r15,r15,0xf000                            
 8010388:	41 81 00 10 	lbu r1,(r12+16)                                
 801038c:	35 8e 00 10 	addi r14,r12,16                                
 8010390:	41 d0 00 03 	lbu r16,(r14+3)                                
 8010394:	fb ff c4 53 	calli 80014e0 <__ashlsi3>                      
 8010398:	34 02 00 10 	mvi r2,16                                      
 801039c:	ba 01 80 00 	or r16,r16,r1                                  
 80103a0:	41 c1 00 01 	lbu r1,(r14+1)                                 
 80103a4:	fb ff c4 4f 	calli 80014e0 <__ashlsi3>                      
 80103a8:	ba 01 80 00 	or r16,r16,r1                                  
 80103ac:	41 c1 00 02 	lbu r1,(r14+2)                                 
 80103b0:	34 02 00 08 	mvi r2,8                                       
 * @return rtems_rfs_time The mtime.                                  
 */                                                                   
static inline rtems_rfs_time                                          
rtems_rfs_inode_get_mtime (rtems_rfs_inode_handle* handle)            
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->mtime);                   
 80103b4:	35 8e 00 14 	addi r14,r12,20                                
 * @return rtems_rfs_time The atime.                                  
 */                                                                   
static inline rtems_rfs_time                                          
rtems_rfs_inode_get_atime (rtems_rfs_inode_handle* handle)            
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->atime);                   
 80103b8:	fb ff c4 4a 	calli 80014e0 <__ashlsi3>                      
 80103bc:	ba 01 08 00 	or r1,r16,r1                                   
    else                                                              
      buf->st_size = rtems_rfs_file_shared_get_size (fs, shared);     
  }                                                                   
  else                                                                
  {                                                                   
    buf->st_atime   = rtems_rfs_inode_get_atime (&inode);             
 80103c0:	59 61 00 24 	sw (r11+36),r1                                 
 * @return rtems_rfs_time The mtime.                                  
 */                                                                   
static inline rtems_rfs_time                                          
rtems_rfs_inode_get_mtime (rtems_rfs_inode_handle* handle)            
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->mtime);                   
 80103c4:	41 81 00 14 	lbu r1,(r12+20)                                
 80103c8:	41 d0 00 03 	lbu r16,(r14+3)                                
 80103cc:	34 02 00 18 	mvi r2,24                                      
 80103d0:	fb ff c4 44 	calli 80014e0 <__ashlsi3>                      
 80103d4:	ba 01 80 00 	or r16,r16,r1                                  
 80103d8:	41 c1 00 01 	lbu r1,(r14+1)                                 
 80103dc:	34 02 00 10 	mvi r2,16                                      
 80103e0:	fb ff c4 40 	calli 80014e0 <__ashlsi3>                      
 80103e4:	ba 01 80 00 	or r16,r16,r1                                  
 80103e8:	41 c1 00 02 	lbu r1,(r14+2)                                 
 80103ec:	34 02 00 08 	mvi r2,8                                       
 * @return rtems_rfs_time The ctime.                                  
 */                                                                   
static inline rtems_rfs_time                                          
rtems_rfs_inode_get_ctime (rtems_rfs_inode_handle* handle)            
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->ctime);                   
 80103f0:	35 8e 00 18 	addi r14,r12,24                                
 * @return rtems_rfs_time The mtime.                                  
 */                                                                   
static inline rtems_rfs_time                                          
rtems_rfs_inode_get_mtime (rtems_rfs_inode_handle* handle)            
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->mtime);                   
 80103f4:	fb ff c4 3b 	calli 80014e0 <__ashlsi3>                      
 80103f8:	ba 01 08 00 	or r1,r16,r1                                   
    buf->st_mtime   = rtems_rfs_inode_get_mtime (&inode);             
 80103fc:	59 61 00 2c 	sw (r11+44),r1                                 
 * @return rtems_rfs_time The ctime.                                  
 */                                                                   
static inline rtems_rfs_time                                          
rtems_rfs_inode_get_ctime (rtems_rfs_inode_handle* handle)            
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->ctime);                   
 8010400:	41 81 00 18 	lbu r1,(r12+24)                                
 8010404:	41 d0 00 03 	lbu r16,(r14+3)                                
 8010408:	34 02 00 18 	mvi r2,24                                      
 801040c:	fb ff c4 35 	calli 80014e0 <__ashlsi3>                      
 8010410:	ba 01 80 00 	or r16,r16,r1                                  
 8010414:	41 c1 00 01 	lbu r1,(r14+1)                                 
 8010418:	34 02 00 10 	mvi r2,16                                      
 801041c:	fb ff c4 31 	calli 80014e0 <__ashlsi3>                      
 8010420:	ba 01 80 00 	or r16,r16,r1                                  
 8010424:	41 c1 00 02 	lbu r1,(r14+2)                                 
 8010428:	34 02 00 08 	mvi r2,8                                       
 * @return uint32_t The block count.                                  
 */                                                                   
static inline uint32_t                                                
rtems_rfs_inode_get_block_count (rtems_rfs_inode_handle* handle)      
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->block_count);             
 801042c:	35 8e 00 0c 	addi r14,r12,12                                
 * @return rtems_rfs_time The ctime.                                  
 */                                                                   
static inline rtems_rfs_time                                          
rtems_rfs_inode_get_ctime (rtems_rfs_inode_handle* handle)            
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->ctime);                   
 8010430:	fb ff c4 2c 	calli 80014e0 <__ashlsi3>                      
 8010434:	ba 01 08 00 	or r1,r16,r1                                   
    buf->st_ctime   = rtems_rfs_inode_get_ctime (&inode);             
 8010438:	59 61 00 34 	sw (r11+52),r1                                 
 * @return uint32_t The block count.                                  
 */                                                                   
static inline uint32_t                                                
rtems_rfs_inode_get_block_count (rtems_rfs_inode_handle* handle)      
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->block_count);             
 801043c:	41 81 00 0c 	lbu r1,(r12+12)                                
 8010440:	41 d0 00 03 	lbu r16,(r14+3)                                
 8010444:	34 02 00 18 	mvi r2,24                                      
 8010448:	fb ff c4 26 	calli 80014e0 <__ashlsi3>                      
 801044c:	ba 01 80 00 	or r16,r16,r1                                  
 8010450:	41 c1 00 01 	lbu r1,(r14+1)                                 
 8010454:	34 02 00 10 	mvi r2,16                                      
 8010458:	fb ff c4 22 	calli 80014e0 <__ashlsi3>                      
 801045c:	ba 01 80 00 	or r16,r16,r1                                  
 8010460:	41 c1 00 02 	lbu r1,(r14+2)                                 
 8010464:	34 02 00 08 	mvi r2,8                                       
 8010468:	fb ff c4 1e 	calli 80014e0 <__ashlsi3>                      
 801046c:	ba 01 08 00 	or r1,r16,r1                                   
    buf->st_blocks  = rtems_rfs_inode_get_block_count (&inode);       
 8010470:	59 61 00 40 	sw (r11+64),r1                                 
                                                                      
    if (S_ISLNK (buf->st_mode))                                       
 8010474:	38 01 a0 00 	mvu r1,0xa000                                  
 8010478:	5d e1 00 0a 	bne r15,r1,80104a0 <rtems_rfs_rtems_fstat+0x294>
 * @return uint32_t The block offset.                                 
 */                                                                   
static inline uint16_t                                                
rtems_rfs_inode_get_block_offset (rtems_rfs_inode_handle* handle)     
{                                                                     
  return rtems_rfs_read_u16 (&handle->node->block_offset);            
 801047c:	41 81 00 0a 	lbu r1,(r12+10)                                
 8010480:	34 02 00 08 	mvi r2,8                                       
 8010484:	35 8e 00 0a 	addi r14,r12,10                                
 8010488:	fb ff c4 16 	calli 80014e0 <__ashlsi3>                      
 801048c:	41 c2 00 01 	lbu r2,(r14+1)                                 
 8010490:	b8 22 08 00 	or r1,r1,r2                                    
      buf->st_size = rtems_rfs_inode_get_block_offset (&inode);       
 8010494:	20 21 ff ff 	andi r1,r1,0xffff                              
 8010498:	59 61 00 20 	sw (r11+32),r1                                 
 801049c:	e0 00 00 05 	bi 80104b0 <rtems_rfs_rtems_fstat+0x2a4>       
    else                                                              
      buf->st_size = rtems_rfs_inode_get_size (fs, &inode);           
 80104a0:	b9 a0 08 00 	mv r1,r13                                      
 80104a4:	37 82 00 20 	addi r2,sp,32                                  
 80104a8:	fb ff fc 80 	calli 800f6a8 <rtems_rfs_inode_get_size>       
 80104ac:	59 62 00 20 	sw (r11+32),r2                                 
  }                                                                   
                                                                      
  buf->st_blksize = rtems_rfs_fs_block_size (fs);                     
 80104b0:	29 a1 00 08 	lw r1,(r13+8)                                  
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
 80104b4:	37 82 00 20 	addi r2,sp,32                                  
      buf->st_size = rtems_rfs_inode_get_block_offset (&inode);       
    else                                                              
      buf->st_size = rtems_rfs_inode_get_size (fs, &inode);           
  }                                                                   
                                                                      
  buf->st_blksize = rtems_rfs_fs_block_size (fs);                     
 80104b8:	59 61 00 3c 	sw (r11+60),r1                                 
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
 80104bc:	b9 a0 08 00 	mv r1,r13                                      
 80104c0:	fb ff fa 8c 	calli 800eef0 <rtems_rfs_inode_close>          
 80104c4:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
  {                                                                   
    return rtems_rfs_rtems_error ("stat: closing inode", rc);         
  }                                                                   
                                                                      
  return 0;                                                           
 80104c8:	34 01 00 00 	mvi r1,0                                       
  }                                                                   
                                                                      
  buf->st_blksize = rtems_rfs_fs_block_size (fs);                     
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
  if (rc > 0)                                                         
 80104cc:	4c 0b 00 04 	bge r0,r11,80104dc <rtems_rfs_rtems_fstat+0x2d0><== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("stat: closing inode", rc);         
 80104d0:	f8 00 3d 51 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 80104d4:	58 2b 00 00 	sw (r1+0),r11                                  <== NOT EXECUTED
 80104d8:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 80104dc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80104e0:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 80104e4:	2b 8c 00 18 	lw r12,(sp+24)                                 
 80104e8:	2b 8d 00 14 	lw r13,(sp+20)                                 
 80104ec:	2b 8e 00 10 	lw r14,(sp+16)                                 
 80104f0:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 80104f4:	2b 90 00 08 	lw r16,(sp+8)                                  
 80104f8:	37 9c 00 44 	addi sp,sp,68                                  
 80104fc:	c3 a0 00 00 	ret                                            
                                                                      

080108ac <rtems_rfs_rtems_initialise>: */ int rtems_rfs_rtems_initialise (rtems_filesystem_mount_table_entry_t* mt_entry, const void* data) {
 80108ac:	37 9c ff d8 	addi sp,sp,-40                                 
 80108b0:	5b 8b 00 24 	sw (sp+36),r11                                 
 80108b4:	5b 8c 00 20 	sw (sp+32),r12                                 
 80108b8:	5b 8d 00 1c 	sw (sp+28),r13                                 
 80108bc:	5b 8e 00 18 	sw (sp+24),r14                                 
 80108c0:	5b 8f 00 14 	sw (sp+20),r15                                 
 80108c4:	5b 90 00 10 	sw (sp+16),r16                                 
 80108c8:	5b 91 00 0c 	sw (sp+12),r17                                 
 80108cc:	5b 92 00 08 	sw (sp+8),r18                                  
 80108d0:	5b 9d 00 04 	sw (sp+4),ra                                   
  /*                                                                  
   * Parse the options the user specifiies.                           
   */                                                                 
  while (options)                                                     
  {                                                                   
    printf ("options=%s\n", options);                                 
 80108d4:	78 11 08 03 	mvhi r17,0x803                                 
    if (strncmp (options, "hold-bitmaps",                             
 80108d8:	78 10 08 03 	mvhi r16,0x803                                 
                 sizeof ("hold-bitmaps") - 1) == 0)                   
      flags |= RTEMS_RFS_FS_BITMAPS_HOLD;                             
    else if (strncmp (options, "no-local-cache",                      
 80108dc:	78 0f 08 03 	mvhi r15,0x803                                 
                      sizeof ("no-local-cache") - 1) == 0)            
      flags |= RTEMS_RFS_FS_NO_LOCAL_CACHE;                           
    else if (strncmp (options, "max-held-bufs",                       
 80108e0:	78 0c 08 03 	mvhi r12,0x803                                 
 */                                                                   
                                                                      
int                                                                   
rtems_rfs_rtems_initialise (rtems_filesystem_mount_table_entry_t* mt_entry,
                            const void*                           data)
{                                                                     
 80108e4:	b8 20 70 00 	mv r14,r1                                      
 80108e8:	b8 40 58 00 	mv r11,r2                                      
  rtems_rfs_rtems_private* rtems;                                     
  rtems_rfs_file_system*   fs;                                        
  uint32_t                 flags = 0;                                 
  uint32_t                 max_held_buffers = RTEMS_RFS_FS_MAX_HELD_BUFFERS;
 80108ec:	34 12 00 05 	mvi r18,5                                      
rtems_rfs_rtems_initialise (rtems_filesystem_mount_table_entry_t* mt_entry,
                            const void*                           data)
{                                                                     
  rtems_rfs_rtems_private* rtems;                                     
  rtems_rfs_file_system*   fs;                                        
  uint32_t                 flags = 0;                                 
 80108f0:	34 0d 00 00 	mvi r13,0                                      
  /*                                                                  
   * Parse the options the user specifiies.                           
   */                                                                 
  while (options)                                                     
  {                                                                   
    printf ("options=%s\n", options);                                 
 80108f4:	3a 31 56 f0 	ori r17,r17,0x56f0                             
    if (strncmp (options, "hold-bitmaps",                             
 80108f8:	3a 10 56 fc 	ori r16,r16,0x56fc                             
                 sizeof ("hold-bitmaps") - 1) == 0)                   
      flags |= RTEMS_RFS_FS_BITMAPS_HOLD;                             
    else if (strncmp (options, "no-local-cache",                      
 80108fc:	39 ef 57 0c 	ori r15,r15,0x570c                             
                      sizeof ("no-local-cache") - 1) == 0)            
      flags |= RTEMS_RFS_FS_NO_LOCAL_CACHE;                           
    else if (strncmp (options, "max-held-bufs",                       
 8010900:	39 8c 57 1c 	ori r12,r12,0x571c                             
  int                      rc;                                        
                                                                      
  /*                                                                  
   * Parse the options the user specifiies.                           
   */                                                                 
  while (options)                                                     
 8010904:	e0 00 00 2a 	bi 80109ac <rtems_rfs_rtems_initialise+0x100>  
  {                                                                   
    printf ("options=%s\n", options);                                 
 8010908:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 801090c:	ba 20 08 00 	mv r1,r17                                      <== NOT EXECUTED
 8010910:	f8 00 42 9c 	calli 8021380 <printf>                         <== NOT EXECUTED
    if (strncmp (options, "hold-bitmaps",                             
 8010914:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8010918:	ba 00 10 00 	mv r2,r16                                      <== NOT EXECUTED
 801091c:	34 03 00 0c 	mvi r3,12                                      <== NOT EXECUTED
 8010920:	f8 00 47 a3 	calli 80227ac <strncmp>                        <== NOT EXECUTED
 8010924:	5c 20 00 03 	bne r1,r0,8010930 <rtems_rfs_rtems_initialise+0x84><== NOT EXECUTED
                 sizeof ("hold-bitmaps") - 1) == 0)                   
      flags |= RTEMS_RFS_FS_BITMAPS_HOLD;                             
 8010928:	39 ad 00 01 	ori r13,r13,0x1                                <== NOT EXECUTED
 801092c:	e0 00 00 16 	bi 8010984 <rtems_rfs_rtems_initialise+0xd8>   <== NOT EXECUTED
    else if (strncmp (options, "no-local-cache",                      
 8010930:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8010934:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
 8010938:	34 03 00 0e 	mvi r3,14                                      <== NOT EXECUTED
 801093c:	f8 00 47 9c 	calli 80227ac <strncmp>                        <== NOT EXECUTED
 8010940:	5c 20 00 03 	bne r1,r0,801094c <rtems_rfs_rtems_initialise+0xa0><== NOT EXECUTED
                      sizeof ("no-local-cache") - 1) == 0)            
      flags |= RTEMS_RFS_FS_NO_LOCAL_CACHE;                           
 8010944:	39 ad 00 02 	ori r13,r13,0x2                                <== NOT EXECUTED
 8010948:	e0 00 00 0f 	bi 8010984 <rtems_rfs_rtems_initialise+0xd8>   <== NOT EXECUTED
    else if (strncmp (options, "max-held-bufs",                       
 801094c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8010950:	b9 80 10 00 	mv r2,r12                                      <== NOT EXECUTED
 8010954:	34 03 00 0d 	mvi r3,13                                      <== NOT EXECUTED
 8010958:	f8 00 47 95 	calli 80227ac <strncmp>                        <== NOT EXECUTED
 801095c:	5c 20 00 07 	bne r1,r0,8010978 <rtems_rfs_rtems_initialise+0xcc><== NOT EXECUTED
                      sizeof ("max-held-bufs") - 1) == 0)             
    {                                                                 
      max_held_buffers = strtoul (options + sizeof ("max-held-bufs"), 0, 0);
 8010960:	35 61 00 0e 	addi r1,r11,14                                 <== NOT EXECUTED
 8010964:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 8010968:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 801096c:	f8 00 48 76 	calli 8022b44 <strtoul>                        <== NOT EXECUTED
 8010970:	b8 20 90 00 	mv r18,r1                                      <== NOT EXECUTED
 8010974:	e0 00 00 04 	bi 8010984 <rtems_rfs_rtems_initialise+0xd8>   <== NOT EXECUTED
    }                                                                 
    else                                                              
      return rtems_rfs_rtems_error ("initialise: invalid option", EINVAL);
 8010978:	f8 00 3c 27 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 801097c:	34 02 00 16 	mvi r2,22                                      <== NOT EXECUTED
 8010980:	e0 00 00 12 	bi 80109c8 <rtems_rfs_rtems_initialise+0x11c>  <== NOT EXECUTED
                                                                      
    options = strchr (options, ',');                                  
 8010984:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8010988:	34 02 00 2c 	mvi r2,44                                      <== NOT EXECUTED
 801098c:	f8 00 45 4f 	calli 8021ec8 <strchr>                         <== NOT EXECUTED
 8010990:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
    if (options)                                                      
 8010994:	44 20 00 06 	be r1,r0,80109ac <rtems_rfs_rtems_initialise+0x100><== NOT EXECUTED
    {                                                                 
      ++options;                                                      
 8010998:	34 2b 00 01 	addi r11,r1,1                                  <== NOT EXECUTED
      if (*options == '\0')                                           
 801099c:	41 61 00 00 	lbu r1,(r11+0)                                 <== NOT EXECUTED
        options = NULL;                                               
 80109a0:	7c 21 00 00 	cmpnei r1,r1,0                                 <== NOT EXECUTED
 80109a4:	c8 01 08 00 	sub r1,r0,r1                                   <== NOT EXECUTED
 80109a8:	a1 61 58 00 	and r11,r11,r1                                 <== NOT EXECUTED
  int                      rc;                                        
                                                                      
  /*                                                                  
   * Parse the options the user specifiies.                           
   */                                                                 
  while (options)                                                     
 80109ac:	5d 60 ff d7 	bne r11,r0,8010908 <rtems_rfs_rtems_initialise+0x5c><== NEVER TAKEN
      if (*options == '\0')                                           
        options = NULL;                                               
    }                                                                 
  }                                                                   
                                                                      
  rtems = malloc (sizeof (rtems_rfs_rtems_private));                  
 80109b0:	34 01 00 04 	mvi r1,4                                       
 80109b4:	fb ff d8 a1 	calli 8006c38 <malloc>                         
 80109b8:	b8 20 60 00 	mv r12,r1                                      
  if (!rtems)                                                         
 80109bc:	5c 2b 00 06 	bne r1,r11,80109d4 <rtems_rfs_rtems_initialise+0x128><== ALWAYS TAKEN
    return rtems_rfs_rtems_error ("initialise: local data", ENOMEM);  
 80109c0:	f8 00 3c 15 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 80109c4:	34 02 00 0c 	mvi r2,12                                      <== NOT EXECUTED
 80109c8:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 80109cc:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 80109d0:	e0 00 00 27 	bi 8010a6c <rtems_rfs_rtems_initialise+0x1c0>  <== NOT EXECUTED
                                                                      
  memset (rtems, 0, sizeof (rtems_rfs_rtems_private));                
 80109d4:	58 20 00 00 	sw (r1+0),r0                                   
                                                                      
  rc = rtems_rfs_mutex_create (&rtems->access);                       
 80109d8:	f8 00 34 cc 	calli 801dd08 <rtems_rfs_mutex_create>         
 80109dc:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 80109e0:	4c 01 00 02 	bge r0,r1,80109e8 <rtems_rfs_rtems_initialise+0x13c><== ALWAYS TAKEN
 80109e4:	e0 00 00 10 	bi 8010a24 <rtems_rfs_rtems_initialise+0x178>  <== NOT EXECUTED
  {                                                                   
    free (rtems);                                                     
    return rtems_rfs_rtems_error ("initialise: cannot create mutex", rc);
  }                                                                   
                                                                      
  rc = rtems_rfs_mutex_lock (&rtems->access);                         
 80109e8:	29 81 00 00 	lw r1,(r12+0)                                  
 80109ec:	fb ff ff 8c 	calli 801081c <rtems_rfs_mutex_lock.clone.21>  
 80109f0:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 80109f4:	4c 01 00 04 	bge r0,r1,8010a04 <rtems_rfs_rtems_initialise+0x158><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_mutex_destroy (&rtems->access);                         
 80109f8:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 80109fc:	f8 00 34 e3 	calli 801dd88 <rtems_rfs_mutex_destroy>        <== NOT EXECUTED
 8010a00:	e0 00 00 09 	bi 8010a24 <rtems_rfs_rtems_initialise+0x178>  <== NOT EXECUTED
    free (rtems);                                                     
    return rtems_rfs_rtems_error ("initialise: cannot lock access  mutex", rc);
  }                                                                   
                                                                      
  rc = rtems_rfs_fs_open (mt_entry->dev, rtems, flags, max_held_buffers, &fs);
 8010a04:	29 c1 00 38 	lw r1,(r14+56)                                 
 8010a08:	b9 80 10 00 	mv r2,r12                                      
 8010a0c:	b9 a0 18 00 	mv r3,r13                                      
 8010a10:	ba 40 20 00 	mv r4,r18                                      
 8010a14:	37 85 00 28 	addi r5,sp,40                                  
 8010a18:	f8 00 2f ba 	calli 801c900 <rtems_rfs_fs_open>              
 8010a1c:	b8 20 58 00 	mv r11,r1                                      
  if (rc)                                                             
 8010a20:	44 20 00 06 	be r1,r0,8010a38 <rtems_rfs_rtems_initialise+0x18c><== ALWAYS TAKEN
  {                                                                   
    free (rtems);                                                     
 8010a24:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8010a28:	fb ff d6 99 	calli 800648c <free>                           <== NOT EXECUTED
    return rtems_rfs_rtems_error ("initialise: open", rc);            
 8010a2c:	f8 00 3b fa 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 8010a30:	58 2b 00 00 	sw (r1+0),r11                                  <== NOT EXECUTED
 8010a34:	e3 ff ff e6 	bi 80109cc <rtems_rfs_rtems_initialise+0x120>  <== NOT EXECUTED
  }                                                                   
                                                                      
  mt_entry->fs_info                          = fs;                    
 8010a38:	2b 81 00 28 	lw r1,(sp+40)                                  
  mt_entry->ops                              = &rtems_rfs_ops;        
  mt_entry->mt_fs_root->location.node_access = (void*) RTEMS_RFS_ROOT_INO;
 8010a3c:	29 c3 00 24 	lw r3,(r14+36)                                 
    free (rtems);                                                     
    return rtems_rfs_rtems_error ("initialise: open", rc);            
  }                                                                   
                                                                      
  mt_entry->fs_info                          = fs;                    
  mt_entry->ops                              = &rtems_rfs_ops;        
 8010a40:	78 02 08 03 	mvhi r2,0x803                                  
 8010a44:	38 42 57 58 	ori r2,r2,0x5758                               
  {                                                                   
    free (rtems);                                                     
    return rtems_rfs_rtems_error ("initialise: open", rc);            
  }                                                                   
                                                                      
  mt_entry->fs_info                          = fs;                    
 8010a48:	59 c1 00 08 	sw (r14+8),r1                                  
  mt_entry->ops                              = &rtems_rfs_ops;        
 8010a4c:	59 c2 00 0c 	sw (r14+12),r2                                 
  mt_entry->mt_fs_root->location.node_access = (void*) RTEMS_RFS_ROOT_INO;
 8010a50:	34 02 00 01 	mvi r2,1                                       
 8010a54:	58 62 00 08 	sw (r3+8),r2                                   
  mt_entry->mt_fs_root->location.handlers    = &rtems_rfs_rtems_dir_handlers;
 8010a58:	78 02 08 03 	mvhi r2,0x803                                  
 8010a5c:	38 42 78 10 	ori r2,r2,0x7810                               
 8010a60:	58 62 00 10 	sw (r3+16),r2                                  
                                                                      
  rtems_rfs_rtems_unlock (fs);                                        
 8010a64:	fb ff fd 39 	calli 800ff48 <rtems_rfs_rtems_unlock>         
                                                                      
  return 0;                                                           
 8010a68:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 8010a6c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8010a70:	2b 8b 00 24 	lw r11,(sp+36)                                 
 8010a74:	2b 8c 00 20 	lw r12,(sp+32)                                 
 8010a78:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 8010a7c:	2b 8e 00 18 	lw r14,(sp+24)                                 
 8010a80:	2b 8f 00 14 	lw r15,(sp+20)                                 
 8010a84:	2b 90 00 10 	lw r16,(sp+16)                                 
 8010a88:	2b 91 00 0c 	lw r17,(sp+12)                                 
 8010a8c:	2b 92 00 08 	lw r18,(sp+8)                                  
 8010a90:	37 9c 00 28 	addi sp,sp,40                                  
 8010a94:	c3 a0 00 00 	ret                                            
                                                                      

0800f8ac <rtems_rfs_rtems_link>: static int rtems_rfs_rtems_link (const rtems_filesystem_location_info_t *parentloc, const rtems_filesystem_location_info_t *targetloc, const char *name, size_t namelen) {
 800f8ac:	37 9c ff f8 	addi sp,sp,-8                                  
 800f8b0:	5b 8b 00 08 	sw (sp+8),r11                                  
 800f8b4:	5b 9d 00 04 	sw (sp+4),ra                                   
 800f8b8:	b8 40 28 00 	mv r5,r2                                       
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (targetloc);
 800f8bc:	28 42 00 14 	lw r2,(r2+20)                                  
                                                                      
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_LINK))             
    printf ("rtems-rfs-rtems: link: in: parent:%" PRId32 " target:%" PRId32 "\n",
            parent, target);                                          
                                                                      
  rc = rtems_rfs_link (fs, name, namelen, parent, target, false);     
 800f8c0:	28 26 00 08 	lw r6,(r1+8)                                   
 800f8c4:	28 a5 00 08 	lw r5,(r5+8)                                   
 800f8c8:	28 41 00 08 	lw r1,(r2+8)                                   
 800f8cc:	b8 60 10 00 	mv r2,r3                                       
 800f8d0:	b8 80 18 00 	mv r3,r4                                       
 800f8d4:	b8 c0 20 00 	mv r4,r6                                       
 800f8d8:	34 06 00 00 	mvi r6,0                                       
 800f8dc:	f8 00 36 75 	calli 801d2b0 <rtems_rfs_link>                 
 800f8e0:	b8 20 58 00 	mv r11,r1                                      
  {                                                                   
    return rtems_rfs_rtems_error ("link: linking", rc);               
	}                                                                    
                                                                      
                                                                      
	return 0;                                                            
 800f8e4:	34 01 00 00 	mvi r1,0                                       
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_LINK))             
    printf ("rtems-rfs-rtems: link: in: parent:%" PRId32 " target:%" PRId32 "\n",
            parent, target);                                          
                                                                      
  rc = rtems_rfs_link (fs, name, namelen, parent, target, false);     
  if (rc)                                                             
 800f8e8:	45 60 00 04 	be r11,r0,800f8f8 <rtems_rfs_rtems_link+0x4c>  <== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("link: linking", rc);               
 800f8ec:	f8 00 40 4a 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 800f8f0:	58 2b 00 00 	sw (r1+0),r11                                  <== NOT EXECUTED
 800f8f4:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
	}                                                                    
                                                                      
                                                                      
	return 0;                                                            
}                                                                     
 800f8f8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800f8fc:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800f900:	37 9c 00 08 	addi sp,sp,8                                   
 800f904:	c3 a0 00 00 	ret                                            
                                                                      

0801e3f8 <rtems_rfs_rtems_lock.clone.1>: /** * Lock the RFS file system. */ static inline void rtems_rfs_rtems_lock (rtems_rfs_file_system* fs)
 801e3f8:	37 9c ff f8 	addi sp,sp,-8                                  
 801e3fc:	5b 8b 00 08 	sw (sp+8),r11                                  
 801e400:	5b 9d 00 04 	sw (sp+4),ra                                   
 */                                                                   
static inline int                                                     
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)                         
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
 801e404:	28 21 00 00 	lw r1,(r1+0)                                   
 801e408:	34 02 00 00 	mvi r2,0                                       
 801e40c:	34 03 00 00 	mvi r3,0                                       
 801e410:	fb ff ab c7 	calli 800932c <rtems_semaphore_obtain>         
 801e414:	b8 20 58 00 	mv r11,r1                                      
  if (sc != RTEMS_SUCCESSFUL)                                         
 801e418:	44 20 00 0b 	be r1,r0,801e444 <rtems_rfs_rtems_lock.clone.1+0x4c><== ALWAYS TAKEN
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
 801e41c:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801e420:	34 02 00 04 	mvi r2,4                                       <== NOT EXECUTED
 801e424:	fb ff c9 e0 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801e428:	44 20 00 07 	be r1,r0,801e444 <rtems_rfs_rtems_lock.clone.1+0x4c><== NOT EXECUTED
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
 801e42c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801e430:	fb ff d9 05 	calli 8014844 <rtems_status_text>              <== NOT EXECUTED
 801e434:	b8 20 10 00 	mv r2,r1                                       <== NOT EXECUTED
 801e438:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801e43c:	38 21 56 c8 	ori r1,r1,0x56c8                               <== NOT EXECUTED
 801e440:	f8 00 0b d0 	calli 8021380 <printf>                         <== NOT EXECUTED
{                                                                     
  rtems_rfs_rtems_private* rtems = rtems_rfs_fs_user (fs);            
  rtems_rfs_mutex_lock (&rtems->access);                              
}                                                                     
 801e444:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801e448:	2b 8b 00 08 	lw r11,(sp+8)                                  
 801e44c:	37 9c 00 08 	addi sp,sp,8                                   
 801e450:	c3 a0 00 00 	ret                                            
                                                                      

0801e10c <rtems_rfs_rtems_lock.clone.2>: /** * Lock the RFS file system. */ static inline void rtems_rfs_rtems_lock (rtems_rfs_file_system* fs)
 801e10c:	37 9c ff f8 	addi sp,sp,-8                                  
 801e110:	5b 8b 00 08 	sw (sp+8),r11                                  
 801e114:	5b 9d 00 04 	sw (sp+4),ra                                   
 */                                                                   
static inline int                                                     
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)                         
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
 801e118:	28 21 00 00 	lw r1,(r1+0)                                   
 801e11c:	34 02 00 00 	mvi r2,0                                       
 801e120:	34 03 00 00 	mvi r3,0                                       
 801e124:	fb ff ac 82 	calli 800932c <rtems_semaphore_obtain>         
 801e128:	b8 20 58 00 	mv r11,r1                                      
  if (sc != RTEMS_SUCCESSFUL)                                         
 801e12c:	44 20 00 0b 	be r1,r0,801e158 <rtems_rfs_rtems_lock.clone.2+0x4c><== ALWAYS TAKEN
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
 801e130:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801e134:	34 02 00 04 	mvi r2,4                                       <== NOT EXECUTED
 801e138:	fb ff ca 9b 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801e13c:	44 20 00 07 	be r1,r0,801e158 <rtems_rfs_rtems_lock.clone.2+0x4c><== NOT EXECUTED
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
 801e140:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801e144:	fb ff d9 c0 	calli 8014844 <rtems_status_text>              <== NOT EXECUTED
 801e148:	b8 20 10 00 	mv r2,r1                                       <== NOT EXECUTED
 801e14c:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801e150:	38 21 56 c8 	ori r1,r1,0x56c8                               <== NOT EXECUTED
 801e154:	f8 00 0c 8b 	calli 8021380 <printf>                         <== NOT EXECUTED
{                                                                     
  rtems_rfs_rtems_private* rtems = rtems_rfs_fs_user (fs);            
  rtems_rfs_mutex_lock (&rtems->access);                              
}                                                                     
 801e158:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801e15c:	2b 8b 00 08 	lw r11,(sp+8)                                  
 801e160:	37 9c 00 08 	addi sp,sp,8                                   
 801e164:	c3 a0 00 00 	ret                                            
                                                                      

0800fd34 <rtems_rfs_rtems_mknod>: rtems_rfs_rtems_mknod (const rtems_filesystem_location_info_t *parentloc, const char *name, size_t namelen, mode_t mode, dev_t dev) {
 800fd34:	37 9c ff b0 	addi sp,sp,-80                                 
 800fd38:	5b 8b 00 24 	sw (sp+36),r11                                 
 800fd3c:	5b 8c 00 20 	sw (sp+32),r12                                 
 800fd40:	5b 8d 00 1c 	sw (sp+28),r13                                 
 800fd44:	5b 8e 00 18 	sw (sp+24),r14                                 
 800fd48:	5b 8f 00 14 	sw (sp+20),r15                                 
 800fd4c:	5b 90 00 10 	sw (sp+16),r16                                 
 800fd50:	5b 91 00 0c 	sw (sp+12),r17                                 
 800fd54:	5b 9d 00 08 	sw (sp+8),ra                                   
 800fd58:	b8 40 70 00 	mv r14,r2                                      
  rtems_rfs_file_system*  fs = rtems_rfs_rtems_pathloc_dev (parentloc);
 800fd5c:	28 22 00 14 	lw r2,(r1+20)                                  
  rtems_rfs_ino           parent = rtems_rfs_rtems_get_pathloc_ino (parentloc);
 800fd60:	28 31 00 08 	lw r17,(r1+8)                                  
  uid = 0;                                                            
  gid = 0;                                                            
#endif                                                                
                                                                      
  rc = rtems_rfs_inode_create (fs, parent, name, namelen,             
                               rtems_rfs_rtems_imode (mode),          
 800fd64:	b8 80 08 00 	mv r1,r4                                       
                       const char                             *name,  
                       size_t                                  namelen,
                       mode_t                                  mode,  
                       dev_t                                   dev)   
{                                                                     
  rtems_rfs_file_system*  fs = rtems_rfs_rtems_pathloc_dev (parentloc);
 800fd68:	28 4b 00 08 	lw r11,(r2+8)                                  
rtems_rfs_rtems_mknod (const rtems_filesystem_location_info_t *parentloc,
                       const char                             *name,  
                       size_t                                  namelen,
                       mode_t                                  mode,  
                       dev_t                                   dev)   
{                                                                     
 800fd6c:	b8 60 60 00 	mv r12,r3                                      
 800fd70:	b8 80 68 00 	mv r13,r4                                      
 800fd74:	b8 a0 80 00 	mv r16,r5                                      
 800fd78:	b8 c0 78 00 	mv r15,r6                                      
  uid = 0;                                                            
  gid = 0;                                                            
#endif                                                                
                                                                      
  rc = rtems_rfs_inode_create (fs, parent, name, namelen,             
                               rtems_rfs_rtems_imode (mode),          
 800fd7c:	f8 00 03 87 	calli 8010b98 <rtems_rfs_rtems_imode>          
 800fd80:	b8 20 28 00 	mv r5,r1                                       
#else                                                                 
  uid = 0;                                                            
  gid = 0;                                                            
#endif                                                                
                                                                      
  rc = rtems_rfs_inode_create (fs, parent, name, namelen,             
 800fd84:	37 81 00 50 	addi r1,sp,80                                  
 800fd88:	5b 81 00 04 	sw (sp+4),r1                                   
 800fd8c:	b9 80 20 00 	mv r4,r12                                      
 800fd90:	b9 60 08 00 	mv r1,r11                                      
 800fd94:	ba 20 10 00 	mv r2,r17                                      
 800fd98:	b9 c0 18 00 	mv r3,r14                                      
 800fd9c:	34 06 00 01 	mvi r6,1                                       
 800fda0:	34 07 00 00 	mvi r7,0                                       
 800fda4:	34 08 00 00 	mvi r8,0                                       
 800fda8:	fb ff fd 66 	calli 800f340 <rtems_rfs_inode_create>         
 800fdac:	b8 20 60 00 	mv r12,r1                                      
                               rtems_rfs_rtems_imode (mode),          
                               1, uid, gid, &ino);                    
  if (rc > 0)                                                         
 800fdb0:	4c 01 00 04 	bge r0,r1,800fdc0 <rtems_rfs_rtems_mknod+0x8c> 
  {                                                                   
    return rtems_rfs_rtems_error ("mknod: inode create", rc);         
 800fdb4:	f8 00 3f 18 	calli 801fa14 <__errno>                        
 800fdb8:	58 2c 00 00 	sw (r1+0),r12                                  
 800fdbc:	e0 00 00 2e 	bi 800fe74 <rtems_rfs_rtems_mknod+0x140>       
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
 800fdc0:	2b 82 00 50 	lw r2,(sp+80)                                  
 800fdc4:	37 8c 00 28 	addi r12,sp,40                                 
 800fdc8:	b9 60 08 00 	mv r1,r11                                      
 800fdcc:	b9 80 18 00 	mv r3,r12                                      
 800fdd0:	34 04 00 01 	mvi r4,1                                       
 800fdd4:	fb ff fb bb 	calli 800ecc0 <rtems_rfs_inode_open>           
 800fdd8:	b8 20 70 00 	mv r14,r1                                      
  if (rc > 0)                                                         
 800fddc:	4c 01 00 04 	bge r0,r1,800fdec <rtems_rfs_rtems_mknod+0xb8> <== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("mknod: inode open", rc);           
 800fde0:	f8 00 3f 0d 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 800fde4:	58 2e 00 00 	sw (r1+0),r14                                  <== NOT EXECUTED
 800fde8:	e0 00 00 23 	bi 800fe74 <rtems_rfs_rtems_mknod+0x140>       <== NOT EXECUTED
  }                                                                   
                                                                      
  if (S_ISDIR(mode) || S_ISREG(mode))                                 
 800fdec:	21 a4 f0 00 	andi r4,r13,0xf000                             
 800fdf0:	38 01 80 00 	mvu r1,0x8000                                  
 800fdf4:	e4 81 08 00 	cmpe r1,r4,r1                                  
 800fdf8:	64 82 40 00 	cmpei r2,r4,16384                              
 800fdfc:	b8 22 08 00 	or r1,r1,r2                                    
 800fe00:	5c 20 00 15 	bne r1,r0,800fe54 <rtems_rfs_rtems_mknod+0x120><== ALWAYS TAKEN
  {                                                                   
  }                                                                   
  else if (S_ISCHR (mode) || S_ISBLK (mode))                          
 800fe04:	64 82 60 00 	cmpei r2,r4,24576                              <== NOT EXECUTED
 800fe08:	64 84 20 00 	cmpei r4,r4,8192                               <== NOT EXECUTED
 800fe0c:	b8 44 20 00 	or r4,r2,r4                                    <== NOT EXECUTED
 800fe10:	44 81 00 0a 	be r4,r1,800fe38 <rtems_rfs_rtems_mknod+0x104> <== NOT EXECUTED
  {                                                                   
    int major;                                                        
    int minor;                                                        
    rtems_filesystem_split_dev_t (dev, major, minor);                 
    rtems_rfs_inode_set_block (&inode, 0, major);                     
 800fe14:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 800fe18:	ba 00 18 00 	mv r3,r16                                      <== NOT EXECUTED
 800fe1c:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 800fe20:	fb ff fe 4b 	calli 800f74c <rtems_rfs_inode_set_block>      <== NOT EXECUTED
    rtems_rfs_inode_set_block (&inode, 1, minor);                     
 800fe24:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 800fe28:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 800fe2c:	b9 e0 18 00 	mv r3,r15                                      <== NOT EXECUTED
 800fe30:	fb ff fe 47 	calli 800f74c <rtems_rfs_inode_set_block>      <== NOT EXECUTED
 800fe34:	e0 00 00 08 	bi 800fe54 <rtems_rfs_rtems_mknod+0x120>       <== NOT EXECUTED
  }                                                                   
  else                                                                
  {                                                                   
    rtems_rfs_inode_close (fs, &inode);                               
 800fe38:	b9 80 10 00 	mv r2,r12                                      <== NOT EXECUTED
 800fe3c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800fe40:	fb ff fc 2c 	calli 800eef0 <rtems_rfs_inode_close>          <== NOT EXECUTED
    return rtems_rfs_rtems_error ("mknod: bad mode", EINVAL);         
 800fe44:	f8 00 3e f4 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 800fe48:	34 02 00 16 	mvi r2,22                                      <== NOT EXECUTED
 800fe4c:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
 800fe50:	e0 00 00 09 	bi 800fe74 <rtems_rfs_rtems_mknod+0x140>       <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
 800fe54:	b9 60 08 00 	mv r1,r11                                      
 800fe58:	37 82 00 28 	addi r2,sp,40                                  
 800fe5c:	fb ff fc 25 	calli 800eef0 <rtems_rfs_inode_close>          
 800fe60:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
  {                                                                   
    return rtems_rfs_rtems_error ("mknod: closing inode", rc);        
  }                                                                   
                                                                      
  return 0;                                                           
 800fe64:	34 01 00 00 	mvi r1,0                                       
    rtems_rfs_inode_close (fs, &inode);                               
    return rtems_rfs_rtems_error ("mknod: bad mode", EINVAL);         
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
  if (rc > 0)                                                         
 800fe68:	4c 0b 00 04 	bge r0,r11,800fe78 <rtems_rfs_rtems_mknod+0x144><== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("mknod: closing inode", rc);        
 800fe6c:	f8 00 3e ea 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 800fe70:	58 2b 00 00 	sw (r1+0),r11                                  <== NOT EXECUTED
 800fe74:	34 01 ff ff 	mvi r1,-1                                      
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 800fe78:	2b 9d 00 08 	lw ra,(sp+8)                                   
 800fe7c:	2b 8b 00 24 	lw r11,(sp+36)                                 
 800fe80:	2b 8c 00 20 	lw r12,(sp+32)                                 
 800fe84:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 800fe88:	2b 8e 00 18 	lw r14,(sp+24)                                 
 800fe8c:	2b 8f 00 14 	lw r15,(sp+20)                                 
 800fe90:	2b 90 00 10 	lw r16,(sp+16)                                 
 800fe94:	2b 91 00 0c 	lw r17,(sp+12)                                 
 800fe98:	37 9c 00 50 	addi sp,sp,80                                  
 800fe9c:	c3 a0 00 00 	ret                                            
                                                                      

08010570 <rtems_rfs_rtems_node_type>: * @return rtems_filesystem_node_types_t */ static rtems_filesystem_node_types_t rtems_rfs_rtems_node_type (const rtems_filesystem_location_info_t* pathloc) {
 8010570:	37 9c ff c8 	addi sp,sp,-56                                 
 8010574:	5b 8b 00 10 	sw (sp+16),r11                                 
 8010578:	5b 8c 00 0c 	sw (sp+12),r12                                 
 801057c:	5b 8d 00 08 	sw (sp+8),r13                                  
 8010580:	5b 9d 00 04 	sw (sp+4),ra                                   
 8010584:	b8 20 20 00 	mv r4,r1                                       
  rtems_rfs_file_system*        fs = rtems_rfs_rtems_pathloc_dev (pathloc);
 8010588:	28 21 00 14 	lw r1,(r1+20)                                  
  rtems_rfs_ino                 ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
  rtems_filesystem_node_types_t type;                                 
  rtems_rfs_inode_handle        inode;                                
  int                           rc;                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
 801058c:	28 82 00 08 	lw r2,(r4+8)                                   
 8010590:	37 8c 00 14 	addi r12,sp,20                                 
 */                                                                   
                                                                      
static rtems_filesystem_node_types_t                                  
rtems_rfs_rtems_node_type (const rtems_filesystem_location_info_t* pathloc)
{                                                                     
  rtems_rfs_file_system*        fs = rtems_rfs_rtems_pathloc_dev (pathloc);
 8010594:	28 2d 00 08 	lw r13,(r1+8)                                  
  rtems_rfs_ino                 ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
  rtems_filesystem_node_types_t type;                                 
  rtems_rfs_inode_handle        inode;                                
  int                           rc;                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
 8010598:	b9 80 18 00 	mv r3,r12                                      
 801059c:	34 04 00 01 	mvi r4,1                                       
 80105a0:	b9 a0 08 00 	mv r1,r13                                      
 80105a4:	fb ff f9 c7 	calli 800ecc0 <rtems_rfs_inode_open>           
 80105a8:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 80105ac:	4c 01 00 04 	bge r0,r1,80105bc <rtems_rfs_rtems_node_type+0x4c><== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("node_type: opening inode", rc);    
 80105b0:	f8 00 3d 19 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 80105b4:	58 2b 00 00 	sw (r1+0),r11                                  <== NOT EXECUTED
 80105b8:	e0 00 00 0b 	bi 80105e4 <rtems_rfs_rtems_node_type+0x74>    <== NOT EXECUTED
  }                                                                   
                                                                      
  type = rtems_rfs_rtems_node_type_by_inode (&inode);                 
 80105bc:	2b 81 00 20 	lw r1,(sp+32)                                  
 80105c0:	fb ff ff d0 	calli 8010500 <rtems_rfs_rtems_node_type_by_inode.clone.18>
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
 80105c4:	b9 80 10 00 	mv r2,r12                                      
  if (rc > 0)                                                         
  {                                                                   
    return rtems_rfs_rtems_error ("node_type: opening inode", rc);    
  }                                                                   
                                                                      
  type = rtems_rfs_rtems_node_type_by_inode (&inode);                 
 80105c8:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
 80105cc:	b9 a0 08 00 	mv r1,r13                                      
 80105d0:	fb ff fa 48 	calli 800eef0 <rtems_rfs_inode_close>          
 80105d4:	b8 20 60 00 	mv r12,r1                                      
  if (rc > 0)                                                         
 80105d8:	4c 01 00 04 	bge r0,r1,80105e8 <rtems_rfs_rtems_node_type+0x78><== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("node_type: closing inode", rc);    
 80105dc:	f8 00 3d 0e 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 80105e0:	58 2c 00 00 	sw (r1+0),r12                                  <== NOT EXECUTED
 80105e4:	34 0b ff ff 	mvi r11,-1                                     <== NOT EXECUTED
  }                                                                   
                                                                      
  return type;                                                        
}                                                                     
 80105e8:	b9 60 08 00 	mv r1,r11                                      
 80105ec:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80105f0:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80105f4:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80105f8:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80105fc:	37 9c 00 38 	addi sp,sp,56                                  
 8010600:	c3 a0 00 00 	ret                                            
                                                                      

0800fa10 <rtems_rfs_rtems_readlink>: static ssize_t rtems_rfs_rtems_readlink (const rtems_filesystem_location_info_t* pathloc, char* buf, size_t bufsize) {
 800fa10:	37 9c ff f4 	addi sp,sp,-12                                 
 800fa14:	5b 8b 00 08 	sw (sp+8),r11                                  
 800fa18:	5b 9d 00 04 	sw (sp+4),ra                                   
 800fa1c:	b8 20 28 00 	mv r5,r1                                       
  rtems_rfs_file_system*  fs = rtems_rfs_rtems_pathloc_dev (pathloc); 
 800fa20:	28 21 00 14 	lw r1,(r1+20)                                  
                                                                      
static ssize_t                                                        
rtems_rfs_rtems_readlink (const rtems_filesystem_location_info_t* pathloc,
                          char*                                   buf,
                          size_t                                  bufsize)
{                                                                     
 800fa24:	b8 40 30 00 	mv r6,r2                                       
  int                     rc;                                         
                                                                      
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_READLINK))         
    printf ("rtems-rfs-rtems: readlink: in: ino:%" PRId32 "\n", ino); 
                                                                      
  rc = rtems_rfs_symlink_read (fs, ino, buf, bufsize, &length);       
 800fa28:	28 a2 00 08 	lw r2,(r5+8)                                   
 800fa2c:	28 21 00 08 	lw r1,(r1+8)                                   
                                                                      
static ssize_t                                                        
rtems_rfs_rtems_readlink (const rtems_filesystem_location_info_t* pathloc,
                          char*                                   buf,
                          size_t                                  bufsize)
{                                                                     
 800fa30:	b8 60 20 00 	mv r4,r3                                       
  int                     rc;                                         
                                                                      
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_READLINK))         
    printf ("rtems-rfs-rtems: readlink: in: ino:%" PRId32 "\n", ino); 
                                                                      
  rc = rtems_rfs_symlink_read (fs, ino, buf, bufsize, &length);       
 800fa34:	37 85 00 0c 	addi r5,sp,12                                  
 800fa38:	b8 c0 18 00 	mv r3,r6                                       
 800fa3c:	f8 00 38 28 	calli 801dadc <rtems_rfs_symlink_read>         
 800fa40:	b8 20 58 00 	mv r11,r1                                      
  if (rc)                                                             
 800fa44:	44 20 00 05 	be r1,r0,800fa58 <rtems_rfs_rtems_readlink+0x48><== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("readlink: reading link", rc);      
 800fa48:	f8 00 3f f3 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 800fa4c:	58 2b 00 00 	sw (r1+0),r11                                  <== NOT EXECUTED
 800fa50:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 800fa54:	e0 00 00 02 	bi 800fa5c <rtems_rfs_rtems_readlink+0x4c>     <== NOT EXECUTED
  }                                                                   
                                                                      
  return (ssize_t) length;                                            
 800fa58:	2b 81 00 0c 	lw r1,(sp+12)                                  
}                                                                     
 800fa5c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800fa60:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800fa64:	37 9c 00 0c 	addi sp,sp,12                                  
 800fa68:	c3 a0 00 00 	ret                                            
                                                                      

0800f908 <rtems_rfs_rtems_rename>: rtems_rfs_rtems_rename(const rtems_filesystem_location_info_t* old_parent_loc, const rtems_filesystem_location_info_t* old_loc, const rtems_filesystem_location_info_t* new_parent_loc, const char* new_name, size_t new_name_len) {
 800f908:	37 9c ff e8 	addi sp,sp,-24                                 <== NOT EXECUTED
 800f90c:	5b 8b 00 18 	sw (sp+24),r11                                 <== NOT EXECUTED
 800f910:	5b 8c 00 14 	sw (sp+20),r12                                 <== NOT EXECUTED
 800f914:	5b 8d 00 10 	sw (sp+16),r13                                 <== NOT EXECUTED
 800f918:	5b 8e 00 0c 	sw (sp+12),r14                                 <== NOT EXECUTED
 800f91c:	5b 8f 00 08 	sw (sp+8),r15                                  <== NOT EXECUTED
 800f920:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
  rtems_rfs_file_system*  fs = rtems_rfs_rtems_pathloc_dev (old_loc); 
 800f924:	28 46 00 14 	lw r6,(r2+20)                                  <== NOT EXECUTED
  int                     rc;                                         
                                                                      
  old_parent = rtems_rfs_rtems_get_pathloc_ino (old_parent_loc);      
  new_parent = rtems_rfs_rtems_get_pathloc_ino (new_parent_loc);      
                                                                      
  ino  = rtems_rfs_rtems_get_pathloc_ino (old_loc);                   
 800f928:	28 4b 00 08 	lw r11,(r2+8)                                  <== NOT EXECUTED
  rtems_rfs_ino           new_parent;                                 
  rtems_rfs_ino           ino;                                        
  uint32_t                doff;                                       
  int                     rc;                                         
                                                                      
  old_parent = rtems_rfs_rtems_get_pathloc_ino (old_parent_loc);      
 800f92c:	28 2f 00 08 	lw r15,(r1+8)                                  <== NOT EXECUTED
                       const rtems_filesystem_location_info_t* old_loc,
                       const rtems_filesystem_location_info_t* new_parent_loc,
                       const char*                             new_name,
                       size_t                                  new_name_len)
{                                                                     
  rtems_rfs_file_system*  fs = rtems_rfs_rtems_pathloc_dev (old_loc); 
 800f930:	28 cc 00 08 	lw r12,(r6+8)                                  <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Link to the inode before unlinking so the inode is not erased when
   * unlinked.                                                        
   */                                                                 
  rc = rtems_rfs_link (fs, new_name, new_name_len, new_parent, ino, true);
 800f934:	28 66 00 08 	lw r6,(r3+8)                                   <== NOT EXECUTED
                                                                      
  old_parent = rtems_rfs_rtems_get_pathloc_ino (old_parent_loc);      
  new_parent = rtems_rfs_rtems_get_pathloc_ino (new_parent_loc);      
                                                                      
  ino  = rtems_rfs_rtems_get_pathloc_ino (old_loc);                   
  doff = rtems_rfs_rtems_get_pathloc_doff (old_loc);                  
 800f938:	28 4e 00 0c 	lw r14,(r2+12)                                 <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Link to the inode before unlinking so the inode is not erased when
   * unlinked.                                                        
   */                                                                 
  rc = rtems_rfs_link (fs, new_name, new_name_len, new_parent, ino, true);
 800f93c:	b8 a0 18 00 	mv r3,r5                                       <== NOT EXECUTED
 800f940:	b8 80 10 00 	mv r2,r4                                       <== NOT EXECUTED
 800f944:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 800f948:	b8 c0 20 00 	mv r4,r6                                       <== NOT EXECUTED
 800f94c:	b9 60 28 00 	mv r5,r11                                      <== NOT EXECUTED
 800f950:	34 06 00 01 	mvi r6,1                                       <== NOT EXECUTED
 800f954:	f8 00 36 57 	calli 801d2b0 <rtems_rfs_link>                 <== NOT EXECUTED
 800f958:	b8 20 68 00 	mv r13,r1                                      <== NOT EXECUTED
  if (rc)                                                             
 800f95c:	44 20 00 04 	be r1,r0,800f96c <rtems_rfs_rtems_rename+0x64> <== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("rename: linking", rc);             
 800f960:	f8 00 40 2d 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 800f964:	58 2d 00 00 	sw (r1+0),r13                                  <== NOT EXECUTED
 800f968:	e0 00 00 0c 	bi 800f998 <rtems_rfs_rtems_rename+0x90>       <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Unlink all inodes even directories with the dir option as false because a
   * directory may not be empty.                                      
   */                                                                 
  rc = rtems_rfs_unlink (fs, old_parent, ino, doff,                   
 800f96c:	b9 60 18 00 	mv r3,r11                                      <== NOT EXECUTED
 800f970:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 800f974:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
 800f978:	b9 c0 20 00 	mv r4,r14                                      <== NOT EXECUTED
 800f97c:	34 05 00 02 	mvi r5,2                                       <== NOT EXECUTED
 800f980:	f8 00 36 c4 	calli 801d490 <rtems_rfs_unlink>               <== NOT EXECUTED
 800f984:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
  if (rc)                                                             
  {                                                                   
    return rtems_rfs_rtems_error ("rename: unlinking", rc);           
  }                                                                   
                                                                      
  return 0;                                                           
 800f988:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
   * Unlink all inodes even directories with the dir option as false because a
   * directory may not be empty.                                      
   */                                                                 
  rc = rtems_rfs_unlink (fs, old_parent, ino, doff,                   
                         rtems_rfs_unlink_dir_allowed);               
  if (rc)                                                             
 800f98c:	45 61 00 04 	be r11,r1,800f99c <rtems_rfs_rtems_rename+0x94><== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("rename: unlinking", rc);           
 800f990:	f8 00 40 21 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 800f994:	58 2b 00 00 	sw (r1+0),r11                                  <== NOT EXECUTED
 800f998:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 800f99c:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 800f9a0:	2b 8b 00 18 	lw r11,(sp+24)                                 <== NOT EXECUTED
 800f9a4:	2b 8c 00 14 	lw r12,(sp+20)                                 <== NOT EXECUTED
 800f9a8:	2b 8d 00 10 	lw r13,(sp+16)                                 <== NOT EXECUTED
 800f9ac:	2b 8e 00 0c 	lw r14,(sp+12)                                 <== NOT EXECUTED
 800f9b0:	2b 8f 00 08 	lw r15,(sp+8)                                  <== NOT EXECUTED
 800f9b4:	37 9c 00 18 	addi sp,sp,24                                  <== NOT EXECUTED
 800f9b8:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08010ad8 <rtems_rfs_rtems_set_handlers>: */ bool rtems_rfs_rtems_set_handlers (rtems_filesystem_location_info_t* loc, rtems_rfs_inode_handle* inode) {
 8010ad8:	37 9c ff f4 	addi sp,sp,-12                                 
 8010adc:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8010ae0:	5b 8c 00 08 	sw (sp+8),r12                                  
 8010ae4:	5b 9d 00 04 	sw (sp+4),ra                                   
 8010ae8:	b8 20 58 00 	mv r11,r1                                      
 * @return uint16_t The mode.                                         
 */                                                                   
static inline uint16_t                                                
rtems_rfs_inode_get_mode (rtems_rfs_inode_handle* handle)             
{                                                                     
  return rtems_rfs_read_u16 (&handle->node->mode);                    
 8010aec:	28 41 00 0c 	lw r1,(r2+12)                                  
 8010af0:	34 02 00 08 	mvi r2,8                                       
 8010af4:	34 2c 00 02 	addi r12,r1,2                                  
 8010af8:	40 21 00 02 	lbu r1,(r1+2)                                  
 8010afc:	fb ff c2 79 	calli 80014e0 <__ashlsi3>                      
 8010b00:	41 82 00 01 	lbu r2,(r12+1)                                 
  uint16_t mode = rtems_rfs_inode_get_mode (inode);                   
  loc->handlers = NULL;                                               
 8010b04:	59 60 00 10 	sw (r11+16),r0                                 
 8010b08:	b8 22 10 00 	or r2,r1,r2                                    
 8010b0c:	20 42 ff ff 	andi r2,r2,0xffff                              
  if (RTEMS_RFS_S_ISDIR (mode))                                       
 8010b10:	20 43 f0 00 	andi r3,r2,0xf000                              
 8010b14:	34 01 40 00 	mvi r1,16384                                   
 8010b18:	5c 61 00 04 	bne r3,r1,8010b28 <rtems_rfs_rtems_set_handlers+0x50>
    loc->handlers = rtems_rfs_rtems_handlers (dir);                   
 8010b1c:	78 01 08 03 	mvhi r1,0x803                                  
 8010b20:	38 21 78 10 	ori r1,r1,0x7810                               
 8010b24:	e0 00 00 07 	bi 8010b40 <rtems_rfs_rtems_set_handlers+0x68> 
  else if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK(mode))       
 8010b28:	64 64 60 00 	cmpei r4,r3,24576                              
 8010b2c:	64 61 20 00 	cmpei r1,r3,8192                               
 8010b30:	b8 81 08 00 	or r1,r4,r1                                    
 8010b34:	44 20 00 06 	be r1,r0,8010b4c <rtems_rfs_rtems_set_handlers+0x74><== ALWAYS TAKEN
    loc->handlers = rtems_rfs_rtems_handlers (device);                
 8010b38:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8010b3c:	38 21 77 e4 	ori r1,r1,0x77e4                               <== NOT EXECUTED
 8010b40:	59 61 00 10 	sw (r11+16),r1                                 
  else                                                                
  {                                                                   
    printf ("rtems-rfs: mode type unknown: %04x\n", mode);            
    return false;                                                     
  }                                                                   
  return true;                                                        
 8010b44:	34 01 00 01 	mvi r1,1                                       
 8010b48:	e0 00 00 0f 	bi 8010b84 <rtems_rfs_rtems_set_handlers+0xac> 
  loc->handlers = NULL;                                               
  if (RTEMS_RFS_S_ISDIR (mode))                                       
    loc->handlers = rtems_rfs_rtems_handlers (dir);                   
  else if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK(mode))       
    loc->handlers = rtems_rfs_rtems_handlers (device);                
  else if (RTEMS_RFS_S_ISLNK (mode))                                  
 8010b4c:	38 01 a0 00 	mvu r1,0xa000                                  
 8010b50:	5c 61 00 04 	bne r3,r1,8010b60 <rtems_rfs_rtems_set_handlers+0x88>
    loc->handlers = rtems_rfs_rtems_handlers (link);                  
 8010b54:	78 01 08 03 	mvhi r1,0x803                                  
 8010b58:	38 21 57 2c 	ori r1,r1,0x572c                               
 8010b5c:	e3 ff ff f9 	bi 8010b40 <rtems_rfs_rtems_set_handlers+0x68> 
  else if (RTEMS_RFS_S_ISREG (mode))                                  
 8010b60:	38 01 80 00 	mvu r1,0x8000                                  
 8010b64:	5c 61 00 04 	bne r3,r1,8010b74 <rtems_rfs_rtems_set_handlers+0x9c><== NEVER TAKEN
    loc->handlers = rtems_rfs_rtems_handlers (file);                  
 8010b68:	78 01 08 03 	mvhi r1,0x803                                  
 8010b6c:	38 21 78 3c 	ori r1,r1,0x783c                               
 8010b70:	e3 ff ff f4 	bi 8010b40 <rtems_rfs_rtems_set_handlers+0x68> 
  else                                                                
  {                                                                   
    printf ("rtems-rfs: mode type unknown: %04x\n", mode);            
 8010b74:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8010b78:	38 21 57 b4 	ori r1,r1,0x57b4                               <== NOT EXECUTED
 8010b7c:	f8 00 42 01 	calli 8021380 <printf>                         <== NOT EXECUTED
    return false;                                                     
 8010b80:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
  }                                                                   
  return true;                                                        
}                                                                     
 8010b84:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8010b88:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8010b8c:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8010b90:	37 9c 00 0c 	addi sp,sp,12                                  
 8010b94:	c3 a0 00 00 	ret                                            
                                                                      

0800f7f4 <rtems_rfs_rtems_statvfs>: * @return int */ static int rtems_rfs_rtems_statvfs (const rtems_filesystem_location_info_t* pathloc, struct statvfs* sb) {
 800f7f4:	37 9c ff ec 	addi sp,sp,-20                                 <== NOT EXECUTED
 800f7f8:	5b 8b 00 0c 	sw (sp+12),r11                                 <== NOT EXECUTED
 800f7fc:	5b 8c 00 08 	sw (sp+8),r12                                  <== NOT EXECUTED
 800f800:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);  
 800f804:	28 21 00 14 	lw r1,(r1+20)                                  <== NOT EXECUTED
 * @return int                                                        
 */                                                                   
static int                                                            
rtems_rfs_rtems_statvfs (const rtems_filesystem_location_info_t* pathloc,
                         struct statvfs*                         sb)  
{                                                                     
 800f808:	b8 40 58 00 	mv r11,r2                                      <== NOT EXECUTED
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);  
  size_t                 blocks;                                      
  size_t                 inodes;                                      
                                                                      
  rtems_rfs_group_usage (fs, &blocks, &inodes);                       
 800f80c:	37 83 00 10 	addi r3,sp,16                                  <== NOT EXECUTED
 */                                                                   
static int                                                            
rtems_rfs_rtems_statvfs (const rtems_filesystem_location_info_t* pathloc,
                         struct statvfs*                         sb)  
{                                                                     
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);  
 800f810:	28 2c 00 08 	lw r12,(r1+8)                                  <== NOT EXECUTED
  size_t                 blocks;                                      
  size_t                 inodes;                                      
                                                                      
  rtems_rfs_group_usage (fs, &blocks, &inodes);                       
 800f814:	37 82 00 14 	addi r2,sp,20                                  <== NOT EXECUTED
 800f818:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 800f81c:	fb ff fc c4 	calli 800eb2c <rtems_rfs_group_usage>          <== NOT EXECUTED
                                                                      
  sb->f_bsize   = rtems_rfs_fs_block_size (fs);                       
 800f820:	29 81 00 08 	lw r1,(r12+8)                                  <== NOT EXECUTED
 800f824:	59 61 00 00 	sw (r11+0),r1                                  <== NOT EXECUTED
  sb->f_frsize  = rtems_rfs_fs_media_block_size (fs);                 
 800f828:	29 81 00 10 	lw r1,(r12+16)                                 <== NOT EXECUTED
 800f82c:	28 22 00 20 	lw r2,(r1+32)                                  <== NOT EXECUTED
  sb->f_blocks  = rtems_rfs_fs_media_blocks (fs);                     
 800f830:	28 21 00 1c 	lw r1,(r1+28)                                  <== NOT EXECUTED
 800f834:	59 60 00 08 	sw (r11+8),r0                                  <== NOT EXECUTED
  size_t                 inodes;                                      
                                                                      
  rtems_rfs_group_usage (fs, &blocks, &inodes);                       
                                                                      
  sb->f_bsize   = rtems_rfs_fs_block_size (fs);                       
  sb->f_frsize  = rtems_rfs_fs_media_block_size (fs);                 
 800f838:	59 62 00 04 	sw (r11+4),r2                                  <== NOT EXECUTED
  sb->f_blocks  = rtems_rfs_fs_media_blocks (fs);                     
 800f83c:	59 61 00 0c 	sw (r11+12),r1                                 <== NOT EXECUTED
  sb->f_bfree   = rtems_rfs_fs_blocks (fs) - blocks;                  
 800f840:	29 82 00 04 	lw r2,(r12+4)                                  <== NOT EXECUTED
 800f844:	2b 81 00 14 	lw r1,(sp+20)                                  <== NOT EXECUTED
 800f848:	59 60 00 10 	sw (r11+16),r0                                 <== NOT EXECUTED
  sb->f_bavail  = sb->f_bfree;                                        
 800f84c:	59 60 00 18 	sw (r11+24),r0                                 <== NOT EXECUTED
  rtems_rfs_group_usage (fs, &blocks, &inodes);                       
                                                                      
  sb->f_bsize   = rtems_rfs_fs_block_size (fs);                       
  sb->f_frsize  = rtems_rfs_fs_media_block_size (fs);                 
  sb->f_blocks  = rtems_rfs_fs_media_blocks (fs);                     
  sb->f_bfree   = rtems_rfs_fs_blocks (fs) - blocks;                  
 800f850:	c8 41 08 00 	sub r1,r2,r1                                   <== NOT EXECUTED
 800f854:	59 61 00 14 	sw (r11+20),r1                                 <== NOT EXECUTED
  sb->f_bavail  = sb->f_bfree;                                        
  sb->f_files   = rtems_rfs_fs_inodes (fs);                           
  sb->f_ffree   = rtems_rfs_fs_inodes (fs) - inodes;                  
 800f858:	2b 82 00 10 	lw r2,(sp+16)                                  <== NOT EXECUTED
                                                                      
  sb->f_bsize   = rtems_rfs_fs_block_size (fs);                       
  sb->f_frsize  = rtems_rfs_fs_media_block_size (fs);                 
  sb->f_blocks  = rtems_rfs_fs_media_blocks (fs);                     
  sb->f_bfree   = rtems_rfs_fs_blocks (fs) - blocks;                  
  sb->f_bavail  = sb->f_bfree;                                        
 800f85c:	59 61 00 1c 	sw (r11+28),r1                                 <== NOT EXECUTED
  sb->f_files   = rtems_rfs_fs_inodes (fs);                           
 800f860:	29 81 00 14 	lw r1,(r12+20)                                 <== NOT EXECUTED
 800f864:	59 61 00 20 	sw (r11+32),r1                                 <== NOT EXECUTED
  sb->f_ffree   = rtems_rfs_fs_inodes (fs) - inodes;                  
 800f868:	c8 22 08 00 	sub r1,r1,r2                                   <== NOT EXECUTED
  sb->f_favail  = sb->f_ffree;                                        
  sb->f_fsid    = RTEMS_RFS_SB_MAGIC;                                 
 800f86c:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
 800f870:	38 42 56 9c 	ori r2,r2,0x569c                               <== NOT EXECUTED
  sb->f_frsize  = rtems_rfs_fs_media_block_size (fs);                 
  sb->f_blocks  = rtems_rfs_fs_media_blocks (fs);                     
  sb->f_bfree   = rtems_rfs_fs_blocks (fs) - blocks;                  
  sb->f_bavail  = sb->f_bfree;                                        
  sb->f_files   = rtems_rfs_fs_inodes (fs);                           
  sb->f_ffree   = rtems_rfs_fs_inodes (fs) - inodes;                  
 800f874:	59 61 00 24 	sw (r11+36),r1                                 <== NOT EXECUTED
  sb->f_favail  = sb->f_ffree;                                        
 800f878:	59 61 00 28 	sw (r11+40),r1                                 <== NOT EXECUTED
  sb->f_fsid    = RTEMS_RFS_SB_MAGIC;                                 
 800f87c:	28 41 00 00 	lw r1,(r2+0)                                   <== NOT EXECUTED
 800f880:	59 61 00 2c 	sw (r11+44),r1                                 <== NOT EXECUTED
  sb->f_flag    = rtems_rfs_fs_flags (fs);                            
 800f884:	29 81 00 00 	lw r1,(r12+0)                                  <== NOT EXECUTED
 800f888:	59 61 00 30 	sw (r11+48),r1                                 <== NOT EXECUTED
  sb->f_namemax = rtems_rfs_fs_max_name (fs);                         
 800f88c:	29 81 00 1c 	lw r1,(r12+28)                                 <== NOT EXECUTED
 800f890:	59 61 00 34 	sw (r11+52),r1                                 <== NOT EXECUTED
                                                                      
  return 0;                                                           
}                                                                     
 800f894:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 800f898:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 800f89c:	2b 8b 00 0c 	lw r11,(sp+12)                                 <== NOT EXECUTED
 800f8a0:	2b 8c 00 08 	lw r12,(sp+8)                                  <== NOT EXECUTED
 800f8a4:	37 9c 00 14 	addi sp,sp,20                                  <== NOT EXECUTED
 800f8a8:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0800fa6c <rtems_rfs_rtems_symlink>: static int rtems_rfs_rtems_symlink (const rtems_filesystem_location_info_t* parent_loc, const char* node_name, size_t node_name_len, const char* target) {
 800fa6c:	37 9c ff e0 	addi sp,sp,-32                                 
 800fa70:	5b 8b 00 14 	sw (sp+20),r11                                 
 800fa74:	5b 8c 00 10 	sw (sp+16),r12                                 
 800fa78:	5b 8d 00 0c 	sw (sp+12),r13                                 
 800fa7c:	5b 8e 00 08 	sw (sp+8),r14                                  
 800fa80:	5b 9d 00 04 	sw (sp+4),ra                                   
 800fa84:	b8 20 28 00 	mv r5,r1                                       
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (parent_loc);
 800fa88:	28 21 00 14 	lw r1,(r1+20)                                  
  rtems_rfs_ino          parent = rtems_rfs_rtems_get_pathloc_ino (parent_loc);
 800fa8c:	28 ab 00 08 	lw r11,(r5+8)                                  
rtems_rfs_rtems_symlink (const rtems_filesystem_location_info_t* parent_loc,
                         const char*                             node_name,
                         size_t                                  node_name_len,
                         const char*                             target)
{                                                                     
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (parent_loc);
 800fa90:	28 2e 00 08 	lw r14,(r1+8)                                  
  rtems_rfs_ino          parent = rtems_rfs_rtems_get_pathloc_ino (parent_loc);
  int                    rc;                                          
                                                                      
  rc = rtems_rfs_symlink (fs, node_name, node_name_len,               
                          target, strlen (target),                    
 800fa94:	b8 80 08 00 	mv r1,r4                                       
 800fa98:	5b 82 00 20 	sw (sp+32),r2                                  
 800fa9c:	5b 83 00 1c 	sw (sp+28),r3                                  
 800faa0:	5b 84 00 18 	sw (sp+24),r4                                  
 800faa4:	f8 00 4b 13 	calli 80226f0 <strlen>                         
 800faa8:	b8 20 68 00 	mv r13,r1                                      
                          geteuid(), getegid(), parent);              
 800faac:	f8 00 14 5a 	calli 8014c14 <geteuid>                        
 800fab0:	b8 20 60 00 	mv r12,r1                                      
 800fab4:	f8 00 14 53 	calli 8014c00 <getegid>                        
{                                                                     
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (parent_loc);
  rtems_rfs_ino          parent = rtems_rfs_rtems_get_pathloc_ino (parent_loc);
  int                    rc;                                          
                                                                      
  rc = rtems_rfs_symlink (fs, node_name, node_name_len,               
 800fab8:	2b 82 00 20 	lw r2,(sp+32)                                  
 800fabc:	2b 83 00 1c 	lw r3,(sp+28)                                  
 800fac0:	2b 84 00 18 	lw r4,(sp+24)                                  
                          target, strlen (target),                    
                          geteuid(), getegid(), parent);              
 800fac4:	b8 20 38 00 	mv r7,r1                                       
{                                                                     
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (parent_loc);
  rtems_rfs_ino          parent = rtems_rfs_rtems_get_pathloc_ino (parent_loc);
  int                    rc;                                          
                                                                      
  rc = rtems_rfs_symlink (fs, node_name, node_name_len,               
 800fac8:	b9 60 40 00 	mv r8,r11                                      
 800facc:	b9 c0 08 00 	mv r1,r14                                      
 800fad0:	b9 a0 28 00 	mv r5,r13                                      
 800fad4:	b9 80 30 00 	mv r6,r12                                      
 800fad8:	f8 00 37 53 	calli 801d824 <rtems_rfs_symlink>              
 800fadc:	b8 20 58 00 	mv r11,r1                                      
  if (rc)                                                             
  {                                                                   
    return rtems_rfs_rtems_error ("symlink: linking", rc);            
  }                                                                   
                                                                      
  return 0;                                                           
 800fae0:	34 01 00 00 	mvi r1,0                                       
  int                    rc;                                          
                                                                      
  rc = rtems_rfs_symlink (fs, node_name, node_name_len,               
                          target, strlen (target),                    
                          geteuid(), getegid(), parent);              
  if (rc)                                                             
 800fae4:	45 60 00 04 	be r11,r0,800faf4 <rtems_rfs_rtems_symlink+0x88><== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("symlink: linking", rc);            
 800fae8:	f8 00 3f cb 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 800faec:	58 2b 00 00 	sw (r1+0),r11                                  <== NOT EXECUTED
 800faf0:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 800faf4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800faf8:	2b 8b 00 14 	lw r11,(sp+20)                                 
 800fafc:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800fb00:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800fb04:	2b 8e 00 08 	lw r14,(sp+8)                                  
 800fb08:	37 9c 00 20 	addi sp,sp,32                                  
 800fb0c:	c3 a0 00 00 	ret                                            
                                                                      

0800ff48 <rtems_rfs_rtems_unlock>: /** * Unlock the RFS file system. */ static inline void rtems_rfs_rtems_unlock (rtems_rfs_file_system* fs) {
 800ff48:	37 9c ff f8 	addi sp,sp,-8                                  
 800ff4c:	5b 8b 00 08 	sw (sp+8),r11                                  
 800ff50:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_rfs_rtems_private* rtems = rtems_rfs_fs_user (fs);            
 800ff54:	28 2b 00 80 	lw r11,(r1+128)                                
  rtems_rfs_buffers_release (fs);                                     
 800ff58:	f8 00 28 c4 	calli 801a268 <rtems_rfs_buffers_release>      
 */                                                                   
static inline int                                                     
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)                       
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_release (*mutex);            
 800ff5c:	29 61 00 00 	lw r1,(r11+0)                                  
 800ff60:	fb ff e5 43 	calli 800946c <rtems_semaphore_release>        
 800ff64:	b8 20 58 00 	mv r11,r1                                      
  if (sc != RTEMS_SUCCESSFUL)                                         
 800ff68:	44 20 00 0b 	be r1,r0,800ff94 <rtems_rfs_rtems_unlock+0x4c> <== ALWAYS TAKEN
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
 800ff6c:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 800ff70:	34 02 00 04 	mvi r2,4                                       <== NOT EXECUTED
 800ff74:	f8 00 03 0c 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 800ff78:	44 20 00 07 	be r1,r0,800ff94 <rtems_rfs_rtems_unlock+0x4c> <== NOT EXECUTED
      printf ("rtems-rfs: mutex: release failed: %s\n",               
 800ff7c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800ff80:	f8 00 12 31 	calli 8014844 <rtems_status_text>              <== NOT EXECUTED
 800ff84:	b8 20 10 00 	mv r2,r1                                       <== NOT EXECUTED
 800ff88:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 800ff8c:	38 21 56 a0 	ori r1,r1,0x56a0                               <== NOT EXECUTED
 800ff90:	f8 00 44 fc 	calli 8021380 <printf>                         <== NOT EXECUTED
  rtems_rfs_mutex_unlock (&rtems->access);                            
}                                                                     
 800ff94:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800ff98:	2b 8b 00 08 	lw r11,(sp+8)                                  
 800ff9c:	37 9c 00 08 	addi sp,sp,8                                   
 800ffa0:	c3 a0 00 00 	ret                                            
                                                                      

0800fb10 <rtems_rfs_rtems_utime>: static int rtems_rfs_rtems_utime(const rtems_filesystem_location_info_t* pathloc, time_t atime, time_t mtime) {
 800fb10:	37 9c ff c0 	addi sp,sp,-64                                 <== NOT EXECUTED
 800fb14:	5b 8b 00 18 	sw (sp+24),r11                                 <== NOT EXECUTED
 800fb18:	5b 8c 00 14 	sw (sp+20),r12                                 <== NOT EXECUTED
 800fb1c:	5b 8d 00 10 	sw (sp+16),r13                                 <== NOT EXECUTED
 800fb20:	5b 8e 00 0c 	sw (sp+12),r14                                 <== NOT EXECUTED
 800fb24:	5b 8f 00 08 	sw (sp+8),r15                                  <== NOT EXECUTED
 800fb28:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
 800fb2c:	b8 20 20 00 	mv r4,r1                                       <== NOT EXECUTED
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);  
 800fb30:	28 21 00 14 	lw r1,(r1+20)                                  <== NOT EXECUTED
                                                                      
static int                                                            
rtems_rfs_rtems_utime(const rtems_filesystem_location_info_t* pathloc,
                      time_t                                  atime,  
                      time_t                                  mtime)  
{                                                                     
 800fb34:	b8 40 60 00 	mv r12,r2                                      <== NOT EXECUTED
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);  
  rtems_rfs_ino          ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
 800fb38:	28 82 00 08 	lw r2,(r4+8)                                   <== NOT EXECUTED
static int                                                            
rtems_rfs_rtems_utime(const rtems_filesystem_location_info_t* pathloc,
                      time_t                                  atime,  
                      time_t                                  mtime)  
{                                                                     
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);  
 800fb3c:	28 2e 00 08 	lw r14,(r1+8)                                  <== NOT EXECUTED
  rtems_rfs_ino          ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
 800fb40:	37 8d 00 1c 	addi r13,sp,28                                 <== NOT EXECUTED
                                                                      
static int                                                            
rtems_rfs_rtems_utime(const rtems_filesystem_location_info_t* pathloc,
                      time_t                                  atime,  
                      time_t                                  mtime)  
{                                                                     
 800fb44:	b8 60 58 00 	mv r11,r3                                      <== NOT EXECUTED
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);  
  rtems_rfs_ino          ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
 800fb48:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 800fb4c:	b9 a0 18 00 	mv r3,r13                                      <== NOT EXECUTED
 800fb50:	34 04 00 01 	mvi r4,1                                       <== NOT EXECUTED
 800fb54:	fb ff fc 5b 	calli 800ecc0 <rtems_rfs_inode_open>           <== NOT EXECUTED
 800fb58:	b8 20 78 00 	mv r15,r1                                      <== NOT EXECUTED
  if (rc)                                                             
 800fb5c:	44 20 00 04 	be r1,r0,800fb6c <rtems_rfs_rtems_utime+0x5c>  <== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("utime: read inode", rc);           
 800fb60:	f8 00 3f ad 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 800fb64:	58 2f 00 00 	sw (r1+0),r15                                  <== NOT EXECUTED
 800fb68:	e0 00 00 2d 	bi 800fc1c <rtems_rfs_rtems_utime+0x10c>       <== NOT EXECUTED
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_atime (rtems_rfs_inode_handle* handle,            
                           rtems_rfs_time          atime)             
{                                                                     
  rtems_rfs_write_u32 (&handle->node->atime, atime);                  
 800fb6c:	34 02 00 18 	mvi r2,24                                      <== NOT EXECUTED
 800fb70:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 800fb74:	fb ff c6 82 	calli 800157c <__lshrsi3>                      <== NOT EXECUTED
 800fb78:	2b 82 00 28 	lw r2,(sp+40)                                  <== NOT EXECUTED
 800fb7c:	30 41 00 10 	sb (r2+16),r1                                  <== NOT EXECUTED
 800fb80:	34 02 00 10 	mvi r2,16                                      <== NOT EXECUTED
 800fb84:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 800fb88:	fb ff c6 7d 	calli 800157c <__lshrsi3>                      <== NOT EXECUTED
 800fb8c:	2b 82 00 28 	lw r2,(sp+40)                                  <== NOT EXECUTED
 800fb90:	30 41 00 11 	sb (r2+17),r1                                  <== NOT EXECUTED
 800fb94:	34 02 00 08 	mvi r2,8                                       <== NOT EXECUTED
 800fb98:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 800fb9c:	fb ff c6 78 	calli 800157c <__lshrsi3>                      <== NOT EXECUTED
 800fba0:	2b 82 00 28 	lw r2,(sp+40)                                  <== NOT EXECUTED
 800fba4:	30 41 00 12 	sb (r2+18),r1                                  <== NOT EXECUTED
 800fba8:	2b 81 00 28 	lw r1,(sp+40)                                  <== NOT EXECUTED
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_mtime (rtems_rfs_inode_handle* handle,            
                           rtems_rfs_time          mtime)             
{                                                                     
  rtems_rfs_write_u32 (&handle->node->mtime, mtime);                  
 800fbac:	34 02 00 18 	mvi r2,24                                      <== NOT EXECUTED
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_atime (rtems_rfs_inode_handle* handle,            
                           rtems_rfs_time          atime)             
{                                                                     
  rtems_rfs_write_u32 (&handle->node->atime, atime);                  
 800fbb0:	30 2c 00 13 	sb (r1+19),r12                                 <== NOT EXECUTED
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_mtime (rtems_rfs_inode_handle* handle,            
                           rtems_rfs_time          mtime)             
{                                                                     
  rtems_rfs_write_u32 (&handle->node->mtime, mtime);                  
 800fbb4:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800fbb8:	fb ff c6 71 	calli 800157c <__lshrsi3>                      <== NOT EXECUTED
 800fbbc:	2b 82 00 28 	lw r2,(sp+40)                                  <== NOT EXECUTED
 800fbc0:	30 41 00 14 	sb (r2+20),r1                                  <== NOT EXECUTED
 800fbc4:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800fbc8:	34 02 00 10 	mvi r2,16                                      <== NOT EXECUTED
 800fbcc:	fb ff c6 6c 	calli 800157c <__lshrsi3>                      <== NOT EXECUTED
 800fbd0:	2b 82 00 28 	lw r2,(sp+40)                                  <== NOT EXECUTED
 800fbd4:	30 41 00 15 	sb (r2+21),r1                                  <== NOT EXECUTED
 800fbd8:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 800fbdc:	34 02 00 08 	mvi r2,8                                       <== NOT EXECUTED
 800fbe0:	fb ff c6 67 	calli 800157c <__lshrsi3>                      <== NOT EXECUTED
 800fbe4:	2b 82 00 28 	lw r2,(sp+40)                                  <== NOT EXECUTED
 800fbe8:	30 41 00 16 	sb (r2+22),r1                                  <== NOT EXECUTED
 800fbec:	2b 81 00 28 	lw r1,(sp+40)                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  rtems_rfs_inode_set_atime (&inode, atime);                          
  rtems_rfs_inode_set_mtime (&inode, mtime);                          
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
 800fbf0:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 800fbf4:	30 2b 00 17 	sb (r1+23),r11                                 <== NOT EXECUTED
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
 800fbf8:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
 800fbfc:	33 81 00 2c 	sb (sp+44),r1                                  <== NOT EXECUTED
 800fc00:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 800fc04:	fb ff fc bb 	calli 800eef0 <rtems_rfs_inode_close>          <== NOT EXECUTED
 800fc08:	b8 20 58 00 	mv r11,r1                                      <== NOT EXECUTED
  if (rc)                                                             
  {                                                                   
    return rtems_rfs_rtems_error ("utime: closing inode", rc);        
  }                                                                   
                                                                      
  return 0;                                                           
 800fc0c:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
                                                                      
  rtems_rfs_inode_set_atime (&inode, atime);                          
  rtems_rfs_inode_set_mtime (&inode, mtime);                          
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
  if (rc)                                                             
 800fc10:	45 61 00 04 	be r11,r1,800fc20 <rtems_rfs_rtems_utime+0x110><== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("utime: closing inode", rc);        
 800fc14:	f8 00 3f 80 	calli 801fa14 <__errno>                        <== NOT EXECUTED
 800fc18:	58 2b 00 00 	sw (r1+0),r11                                  <== NOT EXECUTED
 800fc1c:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 800fc20:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 800fc24:	2b 8b 00 18 	lw r11,(sp+24)                                 <== NOT EXECUTED
 800fc28:	2b 8c 00 14 	lw r12,(sp+20)                                 <== NOT EXECUTED
 800fc2c:	2b 8d 00 10 	lw r13,(sp+16)                                 <== NOT EXECUTED
 800fc30:	2b 8e 00 0c 	lw r14,(sp+12)                                 <== NOT EXECUTED
 800fc34:	2b 8f 00 08 	lw r15,(sp+8)                                  <== NOT EXECUTED
 800fc38:	37 9c 00 40 	addi sp,sp,64                                  <== NOT EXECUTED
 800fc3c:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08019b24 <rtems_rfs_scan_chain>: */ static rtems_rfs_buffer* rtems_rfs_scan_chain (rtems_chain_control* chain, uint32_t* count, rtems_rfs_buffer_block block) {
 8019b24:	37 9c ff e4 	addi sp,sp,-28                                 
 8019b28:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8019b2c:	5b 8c 00 18 	sw (sp+24),r12                                 
 8019b30:	5b 8d 00 14 	sw (sp+20),r13                                 
 8019b34:	5b 8e 00 10 	sw (sp+16),r14                                 
 8019b38:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8019b3c:	5b 90 00 08 	sw (sp+8),r16                                  
 8019b40:	5b 9d 00 04 	sw (sp+4),ra                                   
 8019b44:	b8 20 78 00 	mv r15,r1                                      
 8019b48:	b8 40 60 00 	mv r12,r2                                      
                                true);                                
  if ((rc > 0) && (rrc == 0))                                         
    rrc = rc;                                                         
                                                                      
  return rrc;                                                         
}                                                                     
 8019b4c:	28 2b 00 08 	lw r11,(r1+8)                                  
  rtems_rfs_buffer* buffer;                                           
  rtems_chain_node* node;                                             
                                                                      
  node = rtems_chain_last (chain);                                    
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
 8019b50:	34 02 00 80 	mvi r2,128                                     
 8019b54:	34 01 00 00 	mvi r1,0                                       
 */                                                                   
static rtems_rfs_buffer*                                              
rtems_rfs_scan_chain (rtems_chain_control*   chain,                   
                      uint32_t*              count,                   
                      rtems_rfs_buffer_block block)                   
{                                                                     
 8019b58:	b8 60 80 00 	mv r16,r3                                      
  rtems_rfs_buffer* buffer;                                           
  rtems_chain_node* node;                                             
                                                                      
  node = rtems_chain_last (chain);                                    
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
 8019b5c:	fb ff dc 12 	calli 8010ba4 <rtems_rfs_trace>                
 8019b60:	44 20 00 23 	be r1,r0,8019bec <rtems_rfs_scan_chain+0xc8>   <== ALWAYS TAKEN
    printf ("rtems-rfs: buffer-scan: count=%" PRIu32 ", block=%" PRIu32 ": ", *count, block);
 8019b64:	29 82 00 00 	lw r2,(r12+0)                                  <== NOT EXECUTED
 8019b68:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8019b6c:	ba 00 18 00 	mv r3,r16                                      <== NOT EXECUTED
 8019b70:	38 21 63 3c 	ori r1,r1,0x633c                               <== NOT EXECUTED
 8019b74:	f8 00 1e 03 	calli 8021380 <printf>                         <== NOT EXECUTED
 8019b78:	e0 00 00 1d 	bi 8019bec <rtems_rfs_scan_chain+0xc8>         <== NOT EXECUTED
                                                                      
  while (!rtems_chain_is_head (chain, node))                          
  {                                                                   
    buffer = (rtems_rfs_buffer*) node;                                
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))              
 8019b7c:	34 01 00 00 	mvi r1,0                                       
 8019b80:	34 02 00 80 	mvi r2,128                                     
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
    printf ("rtems-rfs: buffer-scan: count=%" PRIu32 ", block=%" PRIu32 ": ", *count, block);
                                                                      
  while (!rtems_chain_is_head (chain, node))                          
  {                                                                   
    buffer = (rtems_rfs_buffer*) node;                                
 8019b84:	b9 60 70 00 	mv r14,r11                                     
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))              
 8019b88:	fb ff dc 07 	calli 8010ba4 <rtems_rfs_trace>                
 8019b8c:	44 20 00 04 	be r1,r0,8019b9c <rtems_rfs_scan_chain+0x78>   <== ALWAYS TAKEN
      printf ("%" PRIuPTR " ", ((intptr_t) buffer->user));            
 8019b90:	29 62 00 34 	lw r2,(r11+52)                                 <== NOT EXECUTED
 8019b94:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 8019b98:	f8 00 1d fa 	calli 8021380 <printf>                         <== NOT EXECUTED
                                                                      
    if (((rtems_rfs_buffer_block) ((intptr_t)(buffer->user))) == block)
 8019b9c:	29 61 00 34 	lw r1,(r11+52)                                 
 8019ba0:	5c 30 00 11 	bne r1,r16,8019be4 <rtems_rfs_scan_chain+0xc0> 
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))            
 8019ba4:	34 01 00 00 	mvi r1,0                                       
 8019ba8:	34 02 00 80 	mvi r2,128                                     
 8019bac:	fb ff db fe 	calli 8010ba4 <rtems_rfs_trace>                
 8019bb0:	44 20 00 05 	be r1,r0,8019bc4 <rtems_rfs_scan_chain+0xa0>   <== ALWAYS TAKEN
        printf (": found block=%" PRIuPTR "\n",                       
 8019bb4:	29 62 00 34 	lw r2,(r11+52)                                 <== NOT EXECUTED
 8019bb8:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8019bbc:	38 21 63 70 	ori r1,r1,0x6370                               <== NOT EXECUTED
 8019bc0:	f8 00 1d f0 	calli 8021380 <printf>                         <== NOT EXECUTED
                ((intptr_t)(buffer->user)));                          
                                                                      
      (*count)--;                                                     
 8019bc4:	29 81 00 00 	lw r1,(r12+0)                                  
 8019bc8:	34 21 ff ff 	addi r1,r1,-1                                  
 8019bcc:	59 81 00 00 	sw (r12+0),r1                                  
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
 8019bd0:	b9 60 08 00 	mv r1,r11                                      
 8019bd4:	fb ff f1 97 	calli 8016230 <_Chain_Extract>                 
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(                       
  Chain_Node *node                                                    
)                                                                     
{                                                                     
  node->next = node->previous = NULL;                                 
 8019bd8:	59 60 00 04 	sw (r11+4),r0                                  
 8019bdc:	59 60 00 00 	sw (r11+0),r0                                  
      rtems_chain_extract (node);                                     
      rtems_chain_set_off_chain (node);                               
      return buffer;                                                  
 8019be0:	e0 00 00 0e 	bi 8019c18 <rtems_rfs_scan_chain+0xf4>         
                                true);                                
  if ((rc > 0) && (rrc == 0))                                         
    rrc = rc;                                                         
                                                                      
  return rrc;                                                         
}                                                                     
 8019be4:	29 6b 00 04 	lw r11,(r11+4)                                 
 8019be8:	e0 00 00 03 	bi 8019bf4 <rtems_rfs_scan_chain+0xd0>         
  while (!rtems_chain_is_head (chain, node))                          
  {                                                                   
    buffer = (rtems_rfs_buffer*) node;                                
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))              
      printf ("%" PRIuPTR " ", ((intptr_t) buffer->user));            
 8019bec:	78 0d 08 03 	mvhi r13,0x803                                 
 8019bf0:	39 ad 63 6c 	ori r13,r13,0x636c                             
  node = rtems_chain_last (chain);                                    
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
    printf ("rtems-rfs: buffer-scan: count=%" PRIu32 ", block=%" PRIu32 ": ", *count, block);
                                                                      
  while (!rtems_chain_is_head (chain, node))                          
 8019bf4:	5d 6f ff e2 	bne r11,r15,8019b7c <rtems_rfs_scan_chain+0x58>
      return buffer;                                                  
    }                                                                 
    node = rtems_chain_previous (node);                               
  }                                                                   
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
 8019bf8:	34 01 00 00 	mvi r1,0                                       
 8019bfc:	34 02 00 80 	mvi r2,128                                     
 8019c00:	fb ff db e9 	calli 8010ba4 <rtems_rfs_trace>                
    printf (": not found\n");                                         
                                                                      
  return NULL;                                                        
 8019c04:	34 0e 00 00 	mvi r14,0                                      
      return buffer;                                                  
    }                                                                 
    node = rtems_chain_previous (node);                               
  }                                                                   
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
 8019c08:	44 20 00 04 	be r1,r0,8019c18 <rtems_rfs_scan_chain+0xf4>   <== ALWAYS TAKEN
    printf (": not found\n");                                         
 8019c0c:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8019c10:	38 21 63 84 	ori r1,r1,0x6384                               <== NOT EXECUTED
 8019c14:	f8 00 1e a3 	calli 80216a0 <puts>                           <== NOT EXECUTED
                                                                      
  return NULL;                                                        
}                                                                     
 8019c18:	b9 c0 08 00 	mv r1,r14                                      
 8019c1c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8019c20:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8019c24:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8019c28:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8019c2c:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8019c30:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8019c34:	2b 90 00 08 	lw r16,(sp+8)                                  
 8019c38:	37 9c 00 1c 	addi sp,sp,28                                  
 8019c3c:	c3 a0 00 00 	ret                                            
                                                                      

08017b9c <rtems_rfs_search_map_for_clear_bit.clone.0>: return 0; } static int rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
 8017b9c:	37 9c ff ac 	addi sp,sp,-84                                 
 8017ba0:	5b 8b 00 44 	sw (sp+68),r11                                 
 8017ba4:	5b 8c 00 40 	sw (sp+64),r12                                 
 8017ba8:	5b 8d 00 3c 	sw (sp+60),r13                                 
 8017bac:	5b 8e 00 38 	sw (sp+56),r14                                 
 8017bb0:	5b 8f 00 34 	sw (sp+52),r15                                 
 8017bb4:	5b 90 00 30 	sw (sp+48),r16                                 
 8017bb8:	5b 91 00 2c 	sw (sp+44),r17                                 
 8017bbc:	5b 92 00 28 	sw (sp+40),r18                                 
 8017bc0:	5b 93 00 24 	sw (sp+36),r19                                 
 8017bc4:	5b 94 00 20 	sw (sp+32),r20                                 
 8017bc8:	5b 95 00 1c 	sw (sp+28),r21                                 
 8017bcc:	5b 96 00 18 	sw (sp+24),r22                                 
 8017bd0:	5b 97 00 14 	sw (sp+20),r23                                 
 8017bd4:	5b 98 00 10 	sw (sp+16),r24                                 
 8017bd8:	5b 99 00 0c 	sw (sp+12),r25                                 
 8017bdc:	5b 9b 00 08 	sw (sp+8),fp                                   
 8017be0:	5b 9d 00 04 	sw (sp+4),ra                                   
 8017be4:	b8 40 b8 00 	mv r23,r2                                      
  rtems_rfs_bitmap_element* map_bits;                                 
  int                       map_index;                                
  int                       map_offset;                               
  int                       rc;                                       
                                                                      
  *found = false;                                                     
 8017be8:	30 60 00 00 	sb (r3+0),r0                                   
                                                                      
  /*                                                                  
   * Load the bitmap.                                                 
   */                                                                 
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
 8017bec:	37 82 00 54 	addi r2,sp,84                                  
                                                                      
  return 0;                                                           
}                                                                     
                                                                      
static int                                                            
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
 8017bf0:	b8 20 88 00 	mv r17,r1                                      
 8017bf4:	b8 60 b0 00 	mv r22,r3                                      
 8017bf8:	b8 80 60 00 	mv r12,r4                                      
  *found = false;                                                     
                                                                      
  /*                                                                  
   * Load the bitmap.                                                 
   */                                                                 
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
 8017bfc:	fb ff ff d0 	calli 8017b3c <rtems_rfs_bitmap_load_map>      
  if (rc > 0)                                                         
 8017c00:	48 20 00 95 	bg r1,r0,8017e54 <rtems_rfs_search_map_for_clear_bit.clone.0+0x2b8><== NEVER TAKEN
    return rc;                                                        
                                                                      
  /*                                                                  
   * Calculate the bit we are testing plus the end point we search over.
   */                                                                 
  test_bit = *bit;                                                    
 8017c04:	2a eb 00 00 	lw r11,(r23+0)                                 
  end_bit  = test_bit + (window * direction);                         
 8017c08:	b9 80 08 00 	mv r1,r12                                      
 8017c0c:	34 02 00 0b 	mvi r2,11                                      
 8017c10:	fb ff a6 34 	calli 80014e0 <__ashlsi3>                      
 8017c14:	b4 2b 70 00 	add r14,r1,r11                                 
                                                                      
  if (end_bit < 0)                                                    
 8017c18:	48 0e 00 05 	bg r0,r14,8017c2c <rtems_rfs_search_map_for_clear_bit.clone.0+0x90>
    end_bit = 0;                                                      
  else if (end_bit >= control->size)                                  
 8017c1c:	2a 21 00 0c 	lw r1,(r17+12)                                 
 8017c20:	54 2e 00 04 	bgu r1,r14,8017c30 <rtems_rfs_search_map_for_clear_bit.clone.0+0x94>
    end_bit = control->size - 1;                                      
 8017c24:	34 2e ff ff 	addi r14,r1,-1                                 
 8017c28:	e0 00 00 02 	bi 8017c30 <rtems_rfs_search_map_for_clear_bit.clone.0+0x94>
   */                                                                 
  test_bit = *bit;                                                    
  end_bit  = test_bit + (window * direction);                         
                                                                      
  if (end_bit < 0)                                                    
    end_bit = 0;                                                      
 8017c2c:	34 0e 00 00 	mvi r14,0                                      
  else if (end_bit >= control->size)                                  
    end_bit = control->size - 1;                                      
                                                                      
  map_index     = rtems_rfs_bitmap_map_index (test_bit);              
 8017c30:	34 02 00 05 	mvi r2,5                                       
 8017c34:	b9 60 08 00 	mv r1,r11                                      
 8017c38:	f8 00 6c 76 	calli 8032e10 <__ashrsi3>                      
  map_offset    = rtems_rfs_bitmap_map_offset (test_bit);             
  search_index  = rtems_rfs_bitmap_map_index (map_index);             
 8017c3c:	34 02 00 05 	mvi r2,5                                       
  if (end_bit < 0)                                                    
    end_bit = 0;                                                      
  else if (end_bit >= control->size)                                  
    end_bit = control->size - 1;                                      
                                                                      
  map_index     = rtems_rfs_bitmap_map_index (test_bit);              
 8017c40:	b8 20 78 00 	mv r15,r1                                      
  map_offset    = rtems_rfs_bitmap_map_offset (test_bit);             
  search_index  = rtems_rfs_bitmap_map_index (map_index);             
  search_offset = rtems_rfs_bitmap_map_offset (map_index);            
 8017c44:	20 2d 00 1f 	andi r13,r1,0x1f                               
  else if (end_bit >= control->size)                                  
    end_bit = control->size - 1;                                      
                                                                      
  map_index     = rtems_rfs_bitmap_map_index (test_bit);              
  map_offset    = rtems_rfs_bitmap_map_offset (test_bit);             
  search_index  = rtems_rfs_bitmap_map_index (map_index);             
 8017c48:	f8 00 6c 72 	calli 8032e10 <__ashrsi3>                      
  search_offset = rtems_rfs_bitmap_map_offset (map_index);            
                                                                      
  search_bits = &control->search_bits[search_index];                  
 8017c4c:	34 02 00 02 	mvi r2,2                                       
 8017c50:	fb ff a6 24 	calli 80014e0 <__ashlsi3>                      
 8017c54:	2a 32 00 14 	lw r18,(r17+20)                                
  map_bits    = &map[map_index];                                      
 8017c58:	34 02 00 02 	mvi r2,2                                       
    end_bit = 0;                                                      
  else if (end_bit >= control->size)                                  
    end_bit = control->size - 1;                                      
                                                                      
  map_index     = rtems_rfs_bitmap_map_index (test_bit);              
  map_offset    = rtems_rfs_bitmap_map_offset (test_bit);             
 8017c5c:	21 70 00 1f 	andi r16,r11,0x1f                              
  search_index  = rtems_rfs_bitmap_map_index (map_index);             
  search_offset = rtems_rfs_bitmap_map_offset (map_index);            
                                                                      
  search_bits = &control->search_bits[search_index];                  
 8017c60:	b6 41 90 00 	add r18,r18,r1                                 
  map_bits    = &map[map_index];                                      
 8017c64:	b9 e0 08 00 	mv r1,r15                                      
 8017c68:	fb ff a6 1e 	calli 80014e0 <__ashlsi3>                      
 8017c6c:	2b 93 00 54 	lw r19,(sp+84)                                 
            map_offset += direction;                                  
            test_bit   += direction;                                  
          }                                                           
        }                                                             
                                                                      
        map_bits  += direction;                                       
 8017c70:	34 02 00 02 	mvi r2,2                                       
  map_offset    = rtems_rfs_bitmap_map_offset (test_bit);             
  search_index  = rtems_rfs_bitmap_map_index (map_index);             
  search_offset = rtems_rfs_bitmap_map_offset (map_index);            
                                                                      
  search_bits = &control->search_bits[search_index];                  
  map_bits    = &map[map_index];                                      
 8017c74:	b6 61 98 00 	add r19,r19,r1                                 
            map_offset += direction;                                  
            test_bit   += direction;                                  
          }                                                           
        }                                                             
                                                                      
        map_bits  += direction;                                       
 8017c78:	b9 80 08 00 	mv r1,r12                                      
 8017c7c:	fb ff a6 19 	calli 80014e0 <__ashlsi3>                      
 8017c80:	5b 81 00 48 	sw (sp+72),r1                                  
        map_index += direction;                                       
        map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
 8017c84:	ec 0c 08 00 	cmpge r1,r0,r12                                
        test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset;
                                                                      
        search_offset += direction;                                   
                                                                      
        if (((direction < 0) && (test_bit <= end_bit))                
            || ((direction > 0) && (test_bit >= end_bit)))            
 8017c88:	69 9b 00 00 	cmpgi fp,r12,0                                 
          }                                                           
        }                                                             
                                                                      
        map_bits  += direction;                                       
        map_index += direction;                                       
        map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
 8017c8c:	c8 01 08 00 	sub r1,r0,r1                                   
 8017c90:	20 21 00 1f 	andi r1,r1,0x1f                                
 8017c94:	5b 81 00 4c 	sw (sp+76),r1                                  
 8017c98:	e0 00 00 03 	bi 8017ca4 <rtems_rfs_search_map_for_clear_bit.clone.0+0x108>
      }                                                               
      map_bits += direction * bits_skipped;                           
      map_index += direction * bits_skipped;                          
    }                                                                 
                                                                      
    search_bits  += direction;                                        
 8017c9c:	2b 81 00 48 	lw r1,(sp+72)                                  
 8017ca0:	b6 41 90 00 	add r18,r18,r1                                 
    /*                                                                
     * If any bit is clear find that bit and then search the map element. If
     * all bits are set there are no map bits so move to the next search
     * element.                                                       
     */                                                               
    if (!rtems_rfs_bitmap_match (*search_bits, RTEMS_RFS_BITMAP_ELEMENT_SET))
 8017ca4:	2a 54 00 00 	lw r20,(r18+0)                                 
 8017ca8:	46 80 00 42 	be r20,r0,8017db0 <rtems_rfs_search_map_for_clear_bit.clone.0+0x214>
                                                                      
  return 0;                                                           
}                                                                     
                                                                      
static int                                                            
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
 8017cac:	34 02 00 05 	mvi r2,5                                       
 8017cb0:	b9 80 08 00 	mv r1,r12                                      
 8017cb4:	fb ff a6 0b 	calli 80014e0 <__ashlsi3>                      
 8017cb8:	5b 81 00 50 	sw (sp+80),r1                                  
 8017cbc:	34 02 00 05 	mvi r2,5                                       
 8017cc0:	b5 ec 08 00 	add r1,r15,r12                                 
 8017cc4:	fb ff a6 07 	calli 80014e0 <__ashlsi3>                      
 8017cc8:	b8 20 a8 00 	mv r21,r1                                      
 8017ccc:	e0 00 00 36 	bi 8017da4 <rtems_rfs_search_map_for_clear_bit.clone.0+0x208>
 */                                                                   
static bool                                                           
rtems_rfs_bitmap_test (rtems_rfs_bitmap_element target,               
                       rtems_rfs_bitmap_bit     bit)                  
{                                                                     
  return RTEMS_RFS_BITMAP_TEST_BIT (target, bit);                     
 8017cd0:	34 01 00 01 	mvi r1,1                                       
 8017cd4:	b9 a0 10 00 	mv r2,r13                                      
 8017cd8:	fb ff a6 02 	calli 80014e0 <__ashlsi3>                      
 8017cdc:	b8 20 c0 00 	mv r24,r1                                      
 8017ce0:	a0 34 08 00 	and r1,r1,r20                                  
    if (!rtems_rfs_bitmap_match (*search_bits, RTEMS_RFS_BITMAP_ELEMENT_SET))
    {                                                                 
      while ((search_offset >= 0)                                     
             && (search_offset < rtems_rfs_bitmap_element_bits ()))   
      {                                                               
        if (!rtems_rfs_bitmap_test (*search_bits, search_offset))     
 8017ce4:	44 20 00 1f 	be r1,r0,8017d60 <rtems_rfs_search_map_for_clear_bit.clone.0+0x1c4>
 8017ce8:	e0 00 00 1c 	bi 8017d58 <rtems_rfs_search_map_for_clear_bit.clone.0+0x1bc>
           * found. We may find none are spare if searching up from the seed.
           */                                                         
          while ((map_offset >= 0)                                    
                 && (map_offset < rtems_rfs_bitmap_element_bits ()))  
          {                                                           
            if (!rtems_rfs_bitmap_test (*map_bits, map_offset))       
 8017cec:	2a 79 00 00 	lw r25,(r19+0)                                 
 */                                                                   
static bool                                                           
rtems_rfs_bitmap_test (rtems_rfs_bitmap_element target,               
                       rtems_rfs_bitmap_bit     bit)                  
{                                                                     
  return RTEMS_RFS_BITMAP_TEST_BIT (target, bit);                     
 8017cf0:	34 01 00 01 	mvi r1,1                                       
 8017cf4:	ba 00 10 00 	mv r2,r16                                      
 8017cf8:	fb ff a5 fa 	calli 80014e0 <__ashlsi3>                      
 8017cfc:	b8 20 20 00 	mv r4,r1                                       
 8017d00:	a0 39 08 00 	and r1,r1,r25                                  
           * found. We may find none are spare if searching up from the seed.
           */                                                         
          while ((map_offset >= 0)                                    
                 && (map_offset < rtems_rfs_bitmap_element_bits ()))  
          {                                                           
            if (!rtems_rfs_bitmap_test (*map_bits, map_offset))       
 8017d04:	44 20 00 12 	be r1,r0,8017d4c <rtems_rfs_search_map_for_clear_bit.clone.0+0x1b0>
 */                                                                   
static rtems_rfs_bitmap_element                                       
rtems_rfs_bitmap_set (rtems_rfs_bitmap_element target,                
                      rtems_rfs_bitmap_element bits)                  
{                                                                     
  return RTEMS_RFS_BITMAP_SET_BITS (target, bits);                    
 8017d08:	a4 80 20 00 	not r4,r4                                      
 8017d0c:	a0 99 20 00 	and r4,r4,r25                                  
          while ((map_offset >= 0)                                    
                 && (map_offset < rtems_rfs_bitmap_element_bits ()))  
          {                                                           
            if (!rtems_rfs_bitmap_test (*map_bits, map_offset))       
            {                                                         
              *map_bits = rtems_rfs_bitmap_set (*map_bits, 1 << map_offset);
 8017d10:	5a 64 00 00 	sw (r19+0),r4                                  
              if (rtems_rfs_bitmap_match(*map_bits,                   
 8017d14:	5c 80 00 05 	bne r4,r0,8017d28 <rtems_rfs_search_map_for_clear_bit.clone.0+0x18c>
 */                                                                   
static rtems_rfs_bitmap_element                                       
rtems_rfs_bitmap_set (rtems_rfs_bitmap_element target,                
                      rtems_rfs_bitmap_element bits)                  
{                                                                     
  return RTEMS_RFS_BITMAP_SET_BITS (target, bits);                    
 8017d18:	2a 41 00 00 	lw r1,(r18+0)                                  
 8017d1c:	a7 00 c0 00 	not r24,r24                                    
 8017d20:	a0 38 c0 00 	and r24,r1,r24                                 
            if (!rtems_rfs_bitmap_test (*map_bits, map_offset))       
            {                                                         
              *map_bits = rtems_rfs_bitmap_set (*map_bits, 1 << map_offset);
              if (rtems_rfs_bitmap_match(*map_bits,                   
                                         RTEMS_RFS_BITMAP_ELEMENT_SET))
                *search_bits = rtems_rfs_bitmap_set (*search_bits,    
 8017d24:	5a 58 00 00 	sw (r18+0),r24                                 
                                                     1 << search_offset);
              control->free--;                                        
 8017d28:	2a 21 00 10 	lw r1,(r17+16)                                 
              *bit = test_bit;                                        
              *found = true;                                          
              rtems_rfs_buffer_mark_dirty (control->buffer);          
 8017d2c:	2a 22 00 00 	lw r2,(r17+0)                                  
              *map_bits = rtems_rfs_bitmap_set (*map_bits, 1 << map_offset);
              if (rtems_rfs_bitmap_match(*map_bits,                   
                                         RTEMS_RFS_BITMAP_ELEMENT_SET))
                *search_bits = rtems_rfs_bitmap_set (*search_bits,    
                                                     1 << search_offset);
              control->free--;                                        
 8017d30:	34 21 ff ff 	addi r1,r1,-1                                  
 8017d34:	5a 21 00 10 	sw (r17+16),r1                                 
              *bit = test_bit;                                        
 8017d38:	5a eb 00 00 	sw (r23+0),r11                                 
              *found = true;                                          
 8017d3c:	34 01 00 01 	mvi r1,1                                       
 8017d40:	32 c1 00 00 	sb (r22+0),r1                                  
              rtems_rfs_buffer_mark_dirty (control->buffer);          
 8017d44:	30 41 00 00 	sb (r2+0),r1                                   
 8017d48:	e0 00 00 42 	bi 8017e50 <rtems_rfs_search_map_for_clear_bit.clone.0+0x2b4>
              return 0;                                               
            }                                                         
                                                                      
            if (test_bit == end_bit)                                  
 8017d4c:	45 6e 00 05 	be r11,r14,8017d60 <rtems_rfs_search_map_for_clear_bit.clone.0+0x1c4>
                                                                      
  return 0;                                                           
}                                                                     
                                                                      
static int                                                            
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
 8017d50:	b6 0c 80 00 	add r16,r16,r12                                
 8017d54:	b5 6c 58 00 	add r11,r11,r12                                
        {                                                             
          /*                                                          
           * Find the clear bit in the map. Update the search map and map if
           * found. We may find none are spare if searching up from the seed.
           */                                                         
          while ((map_offset >= 0)                                    
 8017d58:	34 01 00 1f 	mvi r1,31                                      
 8017d5c:	50 30 ff e4 	bgeu r1,r16,8017cec <rtems_rfs_search_map_for_clear_bit.clone.0+0x150><== ALWAYS TAKEN
          }                                                           
        }                                                             
                                                                      
        map_bits  += direction;                                       
        map_index += direction;                                       
        map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
 8017d60:	2b 90 00 4c 	lw r16,(sp+76)                                 
            map_offset += direction;                                  
            test_bit   += direction;                                  
          }                                                           
        }                                                             
                                                                      
        map_bits  += direction;                                       
 8017d64:	2b 81 00 48 	lw r1,(sp+72)                                  
                                                                      
        test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset;
                                                                      
        search_offset += direction;                                   
                                                                      
        if (((direction < 0) && (test_bit <= end_bit))                
 8017d68:	34 02 00 1f 	mvi r2,31                                      
                                                                      
        map_bits  += direction;                                       
        map_index += direction;                                       
        map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
                                                                      
        test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset;
 8017d6c:	b6 15 58 00 	add r11,r16,r21                                
            map_offset += direction;                                  
            test_bit   += direction;                                  
          }                                                           
        }                                                             
                                                                      
        map_bits  += direction;                                       
 8017d70:	b6 61 98 00 	add r19,r19,r1                                 
                                                                      
        test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset;
                                                                      
        search_offset += direction;                                   
                                                                      
        if (((direction < 0) && (test_bit <= end_bit))                
 8017d74:	ed cb c0 00 	cmpge r24,r14,r11                              
 8017d78:	b9 80 08 00 	mv r1,r12                                      
 8017d7c:	fb ff a6 00 	calli 800157c <__lshrsi3>                      
 8017d80:	a3 01 20 00 	and r4,r24,r1                                  
                                                                      
  return 0;                                                           
}                                                                     
                                                                      
static int                                                            
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
 8017d84:	b5 ec 78 00 	add r15,r15,r12                                
                                                                      
        test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset;
                                                                      
        search_offset += direction;                                   
                                                                      
        if (((direction < 0) && (test_bit <= end_bit))                
 8017d88:	5c 80 00 28 	bne r4,r0,8017e28 <rtems_rfs_search_map_for_clear_bit.clone.0+0x28c>
 8017d8c:	2b 81 00 50 	lw r1,(sp+80)                                  
 8017d90:	b6 a1 a8 00 	add r21,r21,r1                                 
            || ((direction > 0) && (test_bit >= end_bit)))            
 8017d94:	ed 6e 08 00 	cmpge r1,r11,r14                               
 8017d98:	a0 3b 08 00 	and r1,r1,fp                                   
 8017d9c:	5c 24 00 21 	bne r1,r4,8017e20 <rtems_rfs_search_map_for_clear_bit.clone.0+0x284>
                                                                      
  return 0;                                                           
}                                                                     
                                                                      
static int                                                            
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
 8017da0:	b5 ac 68 00 	add r13,r13,r12                                
     * all bits are set there are no map bits so move to the next search
     * element.                                                       
     */                                                               
    if (!rtems_rfs_bitmap_match (*search_bits, RTEMS_RFS_BITMAP_ELEMENT_SET))
    {                                                                 
      while ((search_offset >= 0)                                     
 8017da4:	34 01 00 1f 	mvi r1,31                                      
 8017da8:	50 2d ff ca 	bgeu r1,r13,8017cd0 <rtems_rfs_search_map_for_clear_bit.clone.0+0x134>
 8017dac:	e0 00 00 1b 	bi 8017e18 <rtems_rfs_search_map_for_clear_bit.clone.0+0x27c>
       *                                                              
       * Align test_bit either up or down depending on the direction to next 32
       * bit boundary.                                                
       */                                                             
      rtems_rfs_bitmap_bit bits_skipped;                              
      test_bit &= ~((1 << RTEMS_RFS_ELEMENT_BITS_POWER_2) - 1);       
 8017db0:	34 01 ff e0 	mvi r1,-32                                     
 8017db4:	a1 61 58 00 	and r11,r11,r1                                 
      if (direction > 0)                                              
 8017db8:	4e 8c 00 09 	bge r20,r12,8017ddc <rtems_rfs_search_map_for_clear_bit.clone.0+0x240>
      {                                                               
        bits_skipped = rtems_rfs_bitmap_element_bits () - search_offset;
 8017dbc:	34 01 00 20 	mvi r1,32                                      
 8017dc0:	c8 2d a0 00 	sub r20,r1,r13                                 
        test_bit += bits_skipped * rtems_rfs_bitmap_element_bits ();  
 8017dc4:	ba 80 08 00 	mv r1,r20                                      
 8017dc8:	34 02 00 05 	mvi r2,5                                       
 8017dcc:	fb ff a5 c5 	calli 80014e0 <__ashlsi3>                      
 8017dd0:	b4 2b 58 00 	add r11,r1,r11                                 
        map_offset = 0;                                               
 8017dd4:	34 10 00 00 	mvi r16,0                                      
 8017dd8:	e0 00 00 08 	bi 8017df8 <rtems_rfs_search_map_for_clear_bit.clone.0+0x25c>
        bits_skipped = search_offset + 1;                             
        /*                                                            
         * Need to remove 1 for the rounding up. The above rounds down and
         * adds 1. Remember the logic is for subtraction.             
         */                                                           
        test_bit -= ((bits_skipped - 1) * rtems_rfs_bitmap_element_bits ()) + 1;
 8017ddc:	b9 a0 08 00 	mv r1,r13                                      
 8017de0:	34 02 00 05 	mvi r2,5                                       
 8017de4:	fb ff a5 bf 	calli 80014e0 <__ashlsi3>                      
 8017de8:	a4 20 08 00 	not r1,r1                                      
        test_bit += bits_skipped * rtems_rfs_bitmap_element_bits ();  
        map_offset = 0;                                               
      }                                                               
      else                                                            
      {                                                               
        bits_skipped = search_offset + 1;                             
 8017dec:	35 b4 00 01 	addi r20,r13,1                                 
        /*                                                            
         * Need to remove 1 for the rounding up. The above rounds down and
         * adds 1. Remember the logic is for subtraction.             
         */                                                           
        test_bit -= ((bits_skipped - 1) * rtems_rfs_bitmap_element_bits ()) + 1;
 8017df0:	b4 2b 58 00 	add r11,r1,r11                                 
        map_offset = rtems_rfs_bitmap_element_bits () - 1;            
 8017df4:	34 10 00 1f 	mvi r16,31                                     
      }                                                               
      map_bits += direction * bits_skipped;                           
 8017df8:	b9 80 10 00 	mv r2,r12                                      
 8017dfc:	ba 80 08 00 	mv r1,r20                                      
 8017e00:	fb ff a6 06 	calli 8001618 <__mulsi3>                       
 8017e04:	34 02 00 02 	mvi r2,2                                       
 8017e08:	b8 20 68 00 	mv r13,r1                                      
 8017e0c:	fb ff a5 b5 	calli 80014e0 <__ashlsi3>                      
 8017e10:	b6 61 98 00 	add r19,r19,r1                                 
      map_index += direction * bits_skipped;                          
 8017e14:	b5 ed 78 00 	add r15,r15,r13                                
    }                                                                 
                                                                      
    search_bits  += direction;                                        
    search_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
 8017e18:	34 0d 00 1f 	mvi r13,31                                     
 8017e1c:	4c 0c 00 04 	bge r0,r12,8017e2c <rtems_rfs_search_map_for_clear_bit.clone.0+0x290>
 8017e20:	34 0d 00 00 	mvi r13,0                                      
 8017e24:	e0 00 00 02 	bi 8017e2c <rtems_rfs_search_map_for_clear_bit.clone.0+0x290>
 8017e28:	34 0d 00 1f 	mvi r13,31                                     
  }                                                                   
  while (((direction < 0) && (test_bit >= end_bit))                   
 8017e2c:	ed 6e a0 00 	cmpge r20,r11,r14                              
 8017e30:	b9 80 08 00 	mv r1,r12                                      
 8017e34:	34 02 00 1f 	mvi r2,31                                      
 8017e38:	fb ff a5 d1 	calli 800157c <__lshrsi3>                      
         || ((direction > 0) && (test_bit <= end_bit)));              
 8017e3c:	a2 81 20 00 	and r4,r20,r1                                  
 8017e40:	5c 80 ff 97 	bne r4,r0,8017c9c <rtems_rfs_search_map_for_clear_bit.clone.0+0x100><== NEVER TAKEN
 8017e44:	ed cb 08 00 	cmpge r1,r14,r11                               
 8017e48:	a0 3b 08 00 	and r1,r1,fp                                   
 8017e4c:	5c 24 ff 94 	bne r1,r4,8017c9c <rtems_rfs_search_map_for_clear_bit.clone.0+0x100><== NEVER TAKEN
                                                                      
  return 0;                                                           
 8017e50:	34 01 00 00 	mvi r1,0                                       
}                                                                     
 8017e54:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8017e58:	2b 8b 00 44 	lw r11,(sp+68)                                 
 8017e5c:	2b 8c 00 40 	lw r12,(sp+64)                                 
 8017e60:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 8017e64:	2b 8e 00 38 	lw r14,(sp+56)                                 
 8017e68:	2b 8f 00 34 	lw r15,(sp+52)                                 
 8017e6c:	2b 90 00 30 	lw r16,(sp+48)                                 
 8017e70:	2b 91 00 2c 	lw r17,(sp+44)                                 
 8017e74:	2b 92 00 28 	lw r18,(sp+40)                                 
 8017e78:	2b 93 00 24 	lw r19,(sp+36)                                 
 8017e7c:	2b 94 00 20 	lw r20,(sp+32)                                 
 8017e80:	2b 95 00 1c 	lw r21,(sp+28)                                 
 8017e84:	2b 96 00 18 	lw r22,(sp+24)                                 
 8017e88:	2b 97 00 14 	lw r23,(sp+20)                                 
 8017e8c:	2b 98 00 10 	lw r24,(sp+16)                                 
 8017e90:	2b 99 00 0c 	lw r25,(sp+12)                                 
 8017e94:	2b 9b 00 08 	lw fp,(sp+8)                                   
 8017e98:	37 9c 00 54 	addi sp,sp,84                                  
 8017e9c:	c3 a0 00 00 	ret                                            
                                                                      

0801d824 <rtems_rfs_symlink>: const char* link, int link_length, uid_t uid, gid_t gid, rtems_rfs_ino parent) {
 801d824:	37 9c ff 48 	addi sp,sp,-184                                
 801d828:	5b 8b 00 2c 	sw (sp+44),r11                                 
 801d82c:	5b 8c 00 28 	sw (sp+40),r12                                 
 801d830:	5b 8d 00 24 	sw (sp+36),r13                                 
 801d834:	5b 8e 00 20 	sw (sp+32),r14                                 
 801d838:	5b 8f 00 1c 	sw (sp+28),r15                                 
 801d83c:	5b 90 00 18 	sw (sp+24),r16                                 
 801d840:	5b 91 00 14 	sw (sp+20),r17                                 
 801d844:	5b 92 00 10 	sw (sp+16),r18                                 
 801d848:	5b 93 00 0c 	sw (sp+12),r19                                 
 801d84c:	5b 9d 00 08 	sw (sp+8),ra                                   
 801d850:	b8 20 58 00 	mv r11,r1                                      
 801d854:	b8 40 70 00 	mv r14,r2                                      
  rtems_rfs_inode_handle inode;                                       
  rtems_rfs_ino          ino;                                         
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK))                      
 801d858:	34 01 00 02 	mvi r1,2                                       
 801d85c:	34 02 00 00 	mvi r2,0                                       
                   const char*            link,                       
                   int                    link_length,                
                   uid_t                  uid,                        
                   gid_t                  gid,                        
                   rtems_rfs_ino          parent)                     
{                                                                     
 801d860:	b8 60 98 00 	mv r19,r3                                      
 801d864:	b8 80 80 00 	mv r16,r4                                      
 801d868:	b8 a0 68 00 	mv r13,r5                                      
 801d86c:	b9 00 78 00 	mv r15,r8                                      
 801d870:	20 d2 ff ff 	andi r18,r6,0xffff                             
 801d874:	20 f1 ff ff 	andi r17,r7,0xffff                             
  rtems_rfs_inode_handle inode;                                       
  rtems_rfs_ino          ino;                                         
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK))                      
 801d878:	fb ff cc cb 	calli 8010ba4 <rtems_rfs_trace>                
 801d87c:	44 20 00 16 	be r1,r0,801d8d4 <rtems_rfs_symlink+0xb0>      <== ALWAYS TAKEN
  {                                                                   
    int c;                                                            
    printf ("rtems-rfs: symlink: parent:%" PRIu32 " name:", parent);  
 801d880:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801d884:	38 21 77 44 	ori r1,r1,0x7744                               <== NOT EXECUTED
 801d888:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
 801d88c:	f8 00 0e bd 	calli 8021380 <printf>                         <== NOT EXECUTED
    for (c = 0; c < length; c++)                                      
 801d890:	34 0c 00 00 	mvi r12,0                                      <== NOT EXECUTED
 801d894:	e0 00 00 05 	bi 801d8a8 <rtems_rfs_symlink+0x84>            <== NOT EXECUTED
                                                                      
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_symlink (rtems_rfs_file_system* fs,                         
 801d898:	b5 cc 08 00 	add r1,r14,r12                                 <== NOT EXECUTED
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK))                      
  {                                                                   
    int c;                                                            
    printf ("rtems-rfs: symlink: parent:%" PRIu32 " name:", parent);  
    for (c = 0; c < length; c++)                                      
      printf ("%c", name[c]);                                         
 801d89c:	40 21 00 00 	lbu r1,(r1+0)                                  <== NOT EXECUTED
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK))                      
  {                                                                   
    int c;                                                            
    printf ("rtems-rfs: symlink: parent:%" PRIu32 " name:", parent);  
    for (c = 0; c < length; c++)                                      
 801d8a0:	35 8c 00 01 	addi r12,r12,1                                 <== NOT EXECUTED
      printf ("%c", name[c]);                                         
 801d8a4:	f8 00 0f 3d 	calli 8021598 <putchar>                        <== NOT EXECUTED
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK))                      
  {                                                                   
    int c;                                                            
    printf ("rtems-rfs: symlink: parent:%" PRIu32 " name:", parent);  
    for (c = 0; c < length; c++)                                      
 801d8a8:	4a 6c ff fc 	bg r19,r12,801d898 <rtems_rfs_symlink+0x74>    <== NOT EXECUTED
      printf ("%c", name[c]);                                         
    printf (" link:");                                                
 801d8ac:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801d8b0:	38 21 77 6c 	ori r1,r1,0x776c                               <== NOT EXECUTED
 801d8b4:	f8 00 0e b3 	calli 8021380 <printf>                         <== NOT EXECUTED
    for (c = 0; c < link_length; c++)                                 
 801d8b8:	34 0c 00 00 	mvi r12,0                                      <== NOT EXECUTED
 801d8bc:	e0 00 00 05 	bi 801d8d0 <rtems_rfs_symlink+0xac>            <== NOT EXECUTED
                                                                      
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_symlink (rtems_rfs_file_system* fs,                         
 801d8c0:	b6 0c 08 00 	add r1,r16,r12                                 <== NOT EXECUTED
    printf ("rtems-rfs: symlink: parent:%" PRIu32 " name:", parent);  
    for (c = 0; c < length; c++)                                      
      printf ("%c", name[c]);                                         
    printf (" link:");                                                
    for (c = 0; c < link_length; c++)                                 
      printf ("%c", link[c]);                                         
 801d8c4:	40 21 00 00 	lbu r1,(r1+0)                                  <== NOT EXECUTED
    int c;                                                            
    printf ("rtems-rfs: symlink: parent:%" PRIu32 " name:", parent);  
    for (c = 0; c < length; c++)                                      
      printf ("%c", name[c]);                                         
    printf (" link:");                                                
    for (c = 0; c < link_length; c++)                                 
 801d8c8:	35 8c 00 01 	addi r12,r12,1                                 <== NOT EXECUTED
      printf ("%c", link[c]);                                         
 801d8cc:	f8 00 0f 33 	calli 8021598 <putchar>                        <== NOT EXECUTED
    int c;                                                            
    printf ("rtems-rfs: symlink: parent:%" PRIu32 " name:", parent);  
    for (c = 0; c < length; c++)                                      
      printf ("%c", name[c]);                                         
    printf (" link:");                                                
    for (c = 0; c < link_length; c++)                                 
 801d8d0:	49 ac ff fc 	bg r13,r12,801d8c0 <rtems_rfs_symlink+0x9c>    <== NOT EXECUTED
      printf ("%c", link[c]);                                         
  }                                                                   
                                                                      
  if (link_length >= rtems_rfs_fs_block_size (fs))                    
 801d8d4:	29 61 00 08 	lw r1,(r11+8)                                  
    return ENAMETOOLONG;                                              
 801d8d8:	34 0c 00 5b 	mvi r12,91                                     
    printf (" link:");                                                
    for (c = 0; c < link_length; c++)                                 
      printf ("%c", link[c]);                                         
  }                                                                   
                                                                      
  if (link_length >= rtems_rfs_fs_block_size (fs))                    
 801d8dc:	51 a1 00 73 	bgeu r13,r1,801daa8 <rtems_rfs_symlink+0x284>  <== NEVER TAKEN
    return ENAMETOOLONG;                                              
                                                                      
  rc = rtems_rfs_inode_create (fs, parent, name, strlen (name),       
 801d8e0:	b9 c0 08 00 	mv r1,r14                                      
 801d8e4:	f8 00 13 83 	calli 80226f0 <strlen>                         
 801d8e8:	b8 20 20 00 	mv r4,r1                                       
 801d8ec:	37 81 00 b8 	addi r1,sp,184                                 
 801d8f0:	5b 81 00 04 	sw (sp+4),r1                                   
 801d8f4:	b9 e0 10 00 	mv r2,r15                                      
 801d8f8:	b9 60 08 00 	mv r1,r11                                      
 801d8fc:	b9 c0 18 00 	mv r3,r14                                      
 801d900:	38 05 a1 ff 	mvu r5,0xa1ff                                  
 801d904:	34 06 00 01 	mvi r6,1                                       
 801d908:	ba 40 38 00 	mv r7,r18                                      
 801d90c:	ba 20 40 00 	mv r8,r17                                      
 801d910:	fb ff c6 8c 	calli 800f340 <rtems_rfs_inode_create>         
 801d914:	b8 20 60 00 	mv r12,r1                                      
                               RTEMS_RFS_S_SYMLINK,                   
                               1, uid, gid, &ino);                    
  if (rc > 0)                                                         
 801d918:	48 20 00 64 	bg r1,r0,801daa8 <rtems_rfs_symlink+0x284>     <== NEVER TAKEN
    return rc;                                                        
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
 801d91c:	2b 82 00 b8 	lw r2,(sp+184)                                 
 801d920:	37 8e 00 80 	addi r14,sp,128                                
 801d924:	b9 60 08 00 	mv r1,r11                                      
 801d928:	b9 c0 18 00 	mv r3,r14                                      
 801d92c:	34 04 00 01 	mvi r4,1                                       
 801d930:	fb ff c4 e4 	calli 800ecc0 <rtems_rfs_inode_open>           
 801d934:	b8 20 60 00 	mv r12,r1                                      
  if (rc > 0)                                                         
 801d938:	48 20 00 5c 	bg r1,r0,801daa8 <rtems_rfs_symlink+0x284>     <== NEVER TAKEN
  /*                                                                  
   * If the link length is less than the length of data union in the inode
   * place the link into the data area else allocate a block and write the link
   * to that.                                                         
   */                                                                 
  if (link_length < RTEMS_RFS_INODE_DATA_NAME_SIZE)                   
 801d93c:	34 01 00 13 	mvi r1,19                                      
 801d940:	55 a1 00 14 	bgu r13,r1,801d990 <rtems_rfs_symlink+0x16c>   <== NEVER TAKEN
  {                                                                   
    memset (inode.node->data.name, 0, RTEMS_RFS_INODE_DATA_NAME_SIZE);
 801d944:	2b 81 00 8c 	lw r1,(sp+140)                                 
 801d948:	34 02 00 00 	mvi r2,0                                       
 801d94c:	34 03 00 14 	mvi r3,20                                      
 801d950:	34 21 00 1c 	addi r1,r1,28                                  
 801d954:	f8 00 0d ef 	calli 8021110 <memset>                         
    memcpy (inode.node->data.name, link, link_length);                
 801d958:	2b 81 00 8c 	lw r1,(sp+140)                                 
 801d95c:	ba 00 10 00 	mv r2,r16                                      
 801d960:	b9 a0 18 00 	mv r3,r13                                      
 801d964:	34 21 00 1c 	addi r1,r1,28                                  
 801d968:	f8 00 0d 5c 	calli 8020ed8 <memcpy>                         
 * @param block_count The block count.                                
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_block_count (rtems_rfs_inode_handle* handle, uint32_t block_count)
{                                                                     
  rtems_rfs_write_u32 (&handle->node->block_count, block_count);      
 801d96c:	2b 81 00 8c 	lw r1,(sp+140)                                 
 801d970:	30 20 00 0c 	sb (r1+12),r0                                  
 801d974:	2b 81 00 8c 	lw r1,(sp+140)                                 
 801d978:	30 20 00 0d 	sb (r1+13),r0                                  
 801d97c:	2b 81 00 8c 	lw r1,(sp+140)                                 
 801d980:	30 20 00 0e 	sb (r1+14),r0                                  
 801d984:	2b 81 00 8c 	lw r1,(sp+140)                                 
 801d988:	30 20 00 0f 	sb (r1+15),r0                                  
 801d98c:	e0 00 00 39 	bi 801da70 <rtems_rfs_symlink+0x24c>           
    rtems_rfs_block_map     map;                                      
    rtems_rfs_block_no      block;                                    
    rtems_rfs_buffer_handle buffer;                                   
    uint8_t*                data;                                     
                                                                      
    rc = rtems_rfs_block_map_open (fs, &inode, &map);                 
 801d990:	37 8f 00 30 	addi r15,sp,48                                 <== NOT EXECUTED
 801d994:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801d998:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 801d99c:	b9 e0 18 00 	mv r3,r15                                      <== NOT EXECUTED
 801d9a0:	fb ff ec 4b 	calli 8018acc <rtems_rfs_block_map_open>       <== NOT EXECUTED
 801d9a4:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
    if (rc > 0)                                                       
 801d9a8:	4c 01 00 02 	bge r0,r1,801d9b0 <rtems_rfs_symlink+0x18c>    <== NOT EXECUTED
 801d9ac:	e0 00 00 17 	bi 801da08 <rtems_rfs_symlink+0x1e4>           <== NOT EXECUTED
    {                                                                 
      rtems_rfs_inode_close (fs, &inode);                             
      return rc;                                                      
    }                                                                 
                                                                      
    rc = rtems_rfs_block_map_grow (fs, &map, 1, &block);              
 801d9b0:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801d9b4:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
 801d9b8:	34 03 00 01 	mvi r3,1                                       <== NOT EXECUTED
 801d9bc:	37 84 00 b4 	addi r4,sp,180                                 <== NOT EXECUTED
 801d9c0:	fb ff ee 19 	calli 8019224 <rtems_rfs_block_map_grow>       <== NOT EXECUTED
 801d9c4:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
    if (rc > 0)                                                       
 801d9c8:	4c 01 00 02 	bge r0,r1,801d9d0 <rtems_rfs_symlink+0x1ac>    <== NOT EXECUTED
 801d9cc:	e0 00 00 0c 	bi 801d9fc <rtems_rfs_symlink+0x1d8>           <== NOT EXECUTED
      rtems_rfs_block_map_close (fs, &map);                           
      rtems_rfs_inode_close (fs, &inode);                             
      return rc;                                                      
    }                                                                 
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, false); 
 801d9d0:	2b 83 00 b4 	lw r3,(sp+180)                                 <== NOT EXECUTED
 801d9d4:	37 91 00 a8 	addi r17,sp,168                                <== NOT EXECUTED
 801d9d8:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801d9dc:	ba 20 10 00 	mv r2,r17                                      <== NOT EXECUTED
 801d9e0:	34 04 00 00 	mvi r4,0                                       <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
 801d9e4:	33 80 00 a8 	sb (sp+168),r0                                 <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 801d9e8:	5b 80 00 ac 	sw (sp+172),r0                                 <== NOT EXECUTED
  handle->buffer = NULL;                                              
 801d9ec:	5b 80 00 b0 	sw (sp+176),r0                                 <== NOT EXECUTED
 801d9f0:	fb ff f1 03 	calli 8019dfc <rtems_rfs_buffer_handle_request><== NOT EXECUTED
 801d9f4:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
    if (rc > 0)                                                       
 801d9f8:	4c 01 00 08 	bge r0,r1,801da18 <rtems_rfs_symlink+0x1f4>    <== NOT EXECUTED
    {                                                                 
      rtems_rfs_block_map_close (fs, &map);                           
 801d9fc:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801da00:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
 801da04:	fb ff ec b9 	calli 8018ce8 <rtems_rfs_block_map_close>      <== NOT EXECUTED
      rtems_rfs_inode_close (fs, &inode);                             
 801da08:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801da0c:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 801da10:	fb ff c5 38 	calli 800eef0 <rtems_rfs_inode_close>          <== NOT EXECUTED
      return rc;                                                      
 801da14:	e0 00 00 25 	bi 801daa8 <rtems_rfs_symlink+0x284>           <== NOT EXECUTED
    }                                                                 
                                                                      
    data = rtems_rfs_buffer_data (&buffer);                           
 801da18:	2b 81 00 b0 	lw r1,(sp+176)                                 <== NOT EXECUTED
                                                                      
    memset (data, 0xff, rtems_rfs_fs_block_size (fs));                
 801da1c:	29 63 00 08 	lw r3,(r11+8)                                  <== NOT EXECUTED
 801da20:	34 02 00 ff 	mvi r2,255                                     <== NOT EXECUTED
      rtems_rfs_block_map_close (fs, &map);                           
      rtems_rfs_inode_close (fs, &inode);                             
      return rc;                                                      
    }                                                                 
                                                                      
    data = rtems_rfs_buffer_data (&buffer);                           
 801da24:	28 2c 00 1c 	lw r12,(r1+28)                                 <== NOT EXECUTED
                                                                      
    memset (data, 0xff, rtems_rfs_fs_block_size (fs));                
 801da28:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801da2c:	f8 00 0d b9 	calli 8021110 <memset>                         <== NOT EXECUTED
    memcpy (data, link, link_length);                                 
 801da30:	b9 a0 18 00 	mv r3,r13                                      <== NOT EXECUTED
 801da34:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801da38:	ba 00 10 00 	mv r2,r16                                      <== NOT EXECUTED
 801da3c:	f8 00 0d 27 	calli 8020ed8 <memcpy>                         <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 801da40:	ba 20 10 00 	mv r2,r17                                      <== NOT EXECUTED
 801da44:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801da48:	fb ff f0 7e 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
      rtems_rfs_block_map_close (fs, &map);                           
      rtems_rfs_inode_close (fs, &inode);                             
      return rc;                                                      
    }                                                                 
                                                                      
    rc = rtems_rfs_block_map_close (fs, &map);                        
 801da4c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801da50:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
  handle->dirty = false;                                              
 801da54:	33 80 00 a8 	sb (sp+168),r0                                 <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 801da58:	5b 80 00 ac 	sw (sp+172),r0                                 <== NOT EXECUTED
  handle->buffer = NULL;                                              
 801da5c:	5b 80 00 b0 	sw (sp+176),r0                                 <== NOT EXECUTED
 801da60:	fb ff ec a2 	calli 8018ce8 <rtems_rfs_block_map_close>      <== NOT EXECUTED
 801da64:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
    if (rc > 0)                                                       
 801da68:	4c 01 00 02 	bge r0,r1,801da70 <rtems_rfs_symlink+0x24c>    <== NOT EXECUTED
 801da6c:	e3 ff ff e7 	bi 801da08 <rtems_rfs_symlink+0x1e4>           <== NOT EXECUTED
      rtems_rfs_inode_close (fs, &inode);                             
      return rc;                                                      
    }                                                                 
  }                                                                   
                                                                      
  rtems_rfs_inode_set_block_offset (&inode, link_length);             
 801da70:	21 ad ff ff 	andi r13,r13,0xffff                            
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_block_offset (rtems_rfs_inode_handle* handle,     
                                  uint16_t                block_offset)
{                                                                     
  rtems_rfs_write_u16 (&handle->node->block_offset, block_offset);    
 801da74:	34 02 00 08 	mvi r2,8                                       
 801da78:	b9 a0 08 00 	mv r1,r13                                      
 801da7c:	fb ff 8e c0 	calli 800157c <__lshrsi3>                      
 801da80:	2b 82 00 8c 	lw r2,(sp+140)                                 
 801da84:	30 41 00 0a 	sb (r2+10),r1                                  
 801da88:	2b 81 00 8c 	lw r1,(sp+140)                                 
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
 801da8c:	37 82 00 80 	addi r2,sp,128                                 
 801da90:	30 2d 00 0b 	sb (r1+11),r13                                 
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
 801da94:	34 01 00 01 	mvi r1,1                                       
 801da98:	33 81 00 90 	sb (sp+144),r1                                 
 801da9c:	b9 60 08 00 	mv r1,r11                                      
 801daa0:	fb ff c5 14 	calli 800eef0 <rtems_rfs_inode_close>          
 801daa4:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  return rc;                                                          
}                                                                     
 801daa8:	b9 80 08 00 	mv r1,r12                                      
 801daac:	2b 9d 00 08 	lw ra,(sp+8)                                   
 801dab0:	2b 8b 00 2c 	lw r11,(sp+44)                                 
 801dab4:	2b 8c 00 28 	lw r12,(sp+40)                                 
 801dab8:	2b 8d 00 24 	lw r13,(sp+36)                                 
 801dabc:	2b 8e 00 20 	lw r14,(sp+32)                                 
 801dac0:	2b 8f 00 1c 	lw r15,(sp+28)                                 
 801dac4:	2b 90 00 18 	lw r16,(sp+24)                                 
 801dac8:	2b 91 00 14 	lw r17,(sp+20)                                 
 801dacc:	2b 92 00 10 	lw r18,(sp+16)                                 
 801dad0:	2b 93 00 0c 	lw r19,(sp+12)                                 
 801dad4:	37 9c 00 b8 	addi sp,sp,184                                 
 801dad8:	c3 a0 00 00 	ret                                            
                                                                      

0801dadc <rtems_rfs_symlink_read>: rtems_rfs_symlink_read (rtems_rfs_file_system* fs, rtems_rfs_ino link, char* path, size_t size, size_t* length) {
 801dadc:	37 9c ff 58 	addi sp,sp,-168                                
 801dae0:	5b 8b 00 20 	sw (sp+32),r11                                 
 801dae4:	5b 8c 00 1c 	sw (sp+28),r12                                 
 801dae8:	5b 8d 00 18 	sw (sp+24),r13                                 
 801daec:	5b 8e 00 14 	sw (sp+20),r14                                 
 801daf0:	5b 8f 00 10 	sw (sp+16),r15                                 
 801daf4:	5b 90 00 0c 	sw (sp+12),r16                                 
 801daf8:	5b 91 00 08 	sw (sp+8),r17                                  
 801dafc:	5b 9d 00 04 	sw (sp+4),ra                                   
 801db00:	b8 20 58 00 	mv r11,r1                                      
 801db04:	b8 40 60 00 	mv r12,r2                                      
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK_READ))                 
 801db08:	34 01 00 04 	mvi r1,4                                       
 801db0c:	34 02 00 00 	mvi r2,0                                       
rtems_rfs_symlink_read (rtems_rfs_file_system* fs,                    
                        rtems_rfs_ino          link,                  
                        char*                  path,                  
                        size_t                 size,                  
                        size_t*                length)                
{                                                                     
 801db10:	b8 60 88 00 	mv r17,r3                                      
 801db14:	b8 80 68 00 	mv r13,r4                                      
 801db18:	b8 a0 78 00 	mv r15,r5                                      
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK_READ))                 
 801db1c:	fb ff cc 22 	calli 8010ba4 <rtems_rfs_trace>                
 801db20:	44 20 00 05 	be r1,r0,801db34 <rtems_rfs_symlink_read+0x58> <== ALWAYS TAKEN
    printf ("rtems-rfs: symlink-read: link:%" PRIu32 "\n", link);     
 801db24:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801db28:	38 21 77 74 	ori r1,r1,0x7774                               <== NOT EXECUTED
 801db2c:	b9 80 10 00 	mv r2,r12                                      <== NOT EXECUTED
 801db30:	f8 00 0e 14 	calli 8021380 <printf>                         <== NOT EXECUTED
                                                                      
  rc = rtems_rfs_inode_open (fs, link, &inode, true);                 
 801db34:	37 8e 00 74 	addi r14,sp,116                                
 801db38:	b9 80 10 00 	mv r2,r12                                      
 801db3c:	b9 60 08 00 	mv r1,r11                                      
 801db40:	b9 c0 18 00 	mv r3,r14                                      
 801db44:	34 04 00 01 	mvi r4,1                                       
 801db48:	fb ff c4 5e 	calli 800ecc0 <rtems_rfs_inode_open>           
 801db4c:	b8 20 60 00 	mv r12,r1                                      
  if (rc)                                                             
 801db50:	5c 20 00 63 	bne r1,r0,801dcdc <rtems_rfs_symlink_read+0x200><== NEVER TAKEN
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
                                                                      
  return rc;                                                          
}                                                                     
 801db54:	2b 8c 00 80 	lw r12,(sp+128)                                
                                                                      
  rc = rtems_rfs_inode_open (fs, link, &inode, true);                 
  if (rc)                                                             
    return rc;                                                        
                                                                      
  if (!RTEMS_RFS_S_ISLNK (rtems_rfs_inode_get_mode (&inode)))         
 801db58:	b9 80 08 00 	mv r1,r12                                      
 801db5c:	fb ff fd c7 	calli 801d278 <rtems_rfs_inode_get_mode.clone.2>
 801db60:	20 21 f0 00 	andi r1,r1,0xf000                              
 801db64:	38 02 a0 00 	mvu r2,0xa000                                  
 801db68:	44 22 00 06 	be r1,r2,801db80 <rtems_rfs_symlink_read+0xa4> <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_inode_close (fs, &inode);                               
 801db6c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801db70:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 801db74:	fb ff c4 df 	calli 800eef0 <rtems_rfs_inode_close>          <== NOT EXECUTED
    return EINVAL;                                                    
 801db78:	34 0c 00 16 	mvi r12,22                                     <== NOT EXECUTED
 801db7c:	e0 00 00 58 	bi 801dcdc <rtems_rfs_symlink_read+0x200>      <== NOT EXECUTED
 * @return uint32_t The block offset.                                 
 */                                                                   
static inline uint16_t                                                
rtems_rfs_inode_get_block_offset (rtems_rfs_inode_handle* handle)     
{                                                                     
  return rtems_rfs_read_u16 (&handle->node->block_offset);            
 801db80:	41 81 00 0a 	lbu r1,(r12+10)                                
 801db84:	34 02 00 08 	mvi r2,8                                       
 801db88:	35 8e 00 0a 	addi r14,r12,10                                
 801db8c:	fb ff 8e 55 	calli 80014e0 <__ashlsi3>                      
 801db90:	41 c2 00 01 	lbu r2,(r14+1)                                 
 801db94:	b8 22 08 00 	or r1,r1,r2                                    
  }                                                                   
                                                                      
  *length = rtems_rfs_inode_get_block_offset (&inode);                
 801db98:	20 21 ff ff 	andi r1,r1,0xffff                              
 801db9c:	59 e1 00 00 	sw (r15+0),r1                                  
                                                                      
  if (size < *length)                                                 
 801dba0:	51 a1 00 02 	bgeu r13,r1,801dba8 <rtems_rfs_symlink_read+0xcc>
  {                                                                   
    *length = size;                                                   
 801dba4:	59 ed 00 00 	sw (r15+0),r13                                 
 * @return uint32_t The block count.                                  
 */                                                                   
static inline uint32_t                                                
rtems_rfs_inode_get_block_count (rtems_rfs_inode_handle* handle)      
{                                                                     
  return rtems_rfs_read_u32 (&handle->node->block_count);             
 801dba8:	35 8d 00 0c 	addi r13,r12,12                                
 801dbac:	41 81 00 0c 	lbu r1,(r12+12)                                
 801dbb0:	41 ae 00 03 	lbu r14,(r13+3)                                
 801dbb4:	34 02 00 18 	mvi r2,24                                      
 801dbb8:	fb ff 8e 4a 	calli 80014e0 <__ashlsi3>                      
 801dbbc:	b9 c1 70 00 	or r14,r14,r1                                  
 801dbc0:	41 a1 00 01 	lbu r1,(r13+1)                                 
 801dbc4:	34 02 00 10 	mvi r2,16                                      
 801dbc8:	fb ff 8e 46 	calli 80014e0 <__ashlsi3>                      
 801dbcc:	b9 c1 70 00 	or r14,r14,r1                                  
 801dbd0:	41 a1 00 02 	lbu r1,(r13+2)                                 
 801dbd4:	34 02 00 08 	mvi r2,8                                       
 801dbd8:	fb ff 8e 42 	calli 80014e0 <__ashlsi3>                      
 801dbdc:	b9 c1 08 00 	or r1,r14,r1                                   
  }                                                                   
                                                                      
  if (rtems_rfs_inode_get_block_count (&inode) == 0)                  
 801dbe0:	5c 20 00 06 	bne r1,r0,801dbf8 <rtems_rfs_symlink_read+0x11c><== NEVER TAKEN
  {                                                                   
    memcpy (path, inode.node->data.name, *length);                    
 801dbe4:	29 e3 00 00 	lw r3,(r15+0)                                  
 801dbe8:	ba 20 08 00 	mv r1,r17                                      
 801dbec:	35 82 00 1c 	addi r2,r12,28                                 
 801dbf0:	f8 00 0c ba 	calli 8020ed8 <memcpy>                         
 801dbf4:	e0 00 00 36 	bi 801dccc <rtems_rfs_symlink_read+0x1f0>      
    rtems_rfs_block_map     map;                                      
    rtems_rfs_block_no      block;                                    
    rtems_rfs_buffer_handle buffer;                                   
    char*                   data;                                     
                                                                      
    rc = rtems_rfs_block_map_open (fs, &inode, &map);                 
 801dbf8:	37 8d 00 74 	addi r13,sp,116                                <== NOT EXECUTED
 801dbfc:	37 8e 00 24 	addi r14,sp,36                                 <== NOT EXECUTED
 801dc00:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801dc04:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 801dc08:	b9 c0 18 00 	mv r3,r14                                      <== NOT EXECUTED
 801dc0c:	fb ff eb b0 	calli 8018acc <rtems_rfs_block_map_open>       <== NOT EXECUTED
 801dc10:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
    if (rc > 0)                                                       
 801dc14:	4c 01 00 02 	bge r0,r1,801dc1c <rtems_rfs_symlink_read+0x140><== NOT EXECUTED
 801dc18:	e0 00 00 29 	bi 801dcbc <rtems_rfs_symlink_read+0x1e0>      <== NOT EXECUTED
    {                                                                 
      rtems_rfs_inode_close (fs, &inode);                             
      return rc;                                                      
    }                                                                 
                                                                      
    rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);              
 801dc1c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801dc20:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 801dc24:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 801dc28:	34 04 00 00 	mvi r4,0                                       <== NOT EXECUTED
 801dc2c:	37 85 00 a8 	addi r5,sp,168                                 <== NOT EXECUTED
 801dc30:	fb ff ed 3b 	calli 801911c <rtems_rfs_block_map_seek>       <== NOT EXECUTED
 801dc34:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
    if (rc > 0)                                                       
 801dc38:	4c 01 00 02 	bge r0,r1,801dc40 <rtems_rfs_symlink_read+0x164><== NOT EXECUTED
 801dc3c:	e0 00 00 0c 	bi 801dc6c <rtems_rfs_symlink_read+0x190>      <== NOT EXECUTED
      rtems_rfs_block_map_close (fs, &map);                           
      rtems_rfs_inode_close (fs, &inode);                             
      return rc;                                                      
    }                                                                 
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, false); 
 801dc40:	2b 83 00 a8 	lw r3,(sp+168)                                 <== NOT EXECUTED
 801dc44:	37 90 00 9c 	addi r16,sp,156                                <== NOT EXECUTED
 801dc48:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801dc4c:	ba 00 10 00 	mv r2,r16                                      <== NOT EXECUTED
 801dc50:	34 04 00 00 	mvi r4,0                                       <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
 801dc54:	33 80 00 9c 	sb (sp+156),r0                                 <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 801dc58:	5b 80 00 a0 	sw (sp+160),r0                                 <== NOT EXECUTED
  handle->buffer = NULL;                                              
 801dc5c:	5b 80 00 a4 	sw (sp+164),r0                                 <== NOT EXECUTED
 801dc60:	fb ff f0 67 	calli 8019dfc <rtems_rfs_buffer_handle_request><== NOT EXECUTED
 801dc64:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
    if (rc > 0)                                                       
 801dc68:	4c 01 00 05 	bge r0,r1,801dc7c <rtems_rfs_symlink_read+0x1a0><== NOT EXECUTED
    {                                                                 
      rtems_rfs_block_map_close (fs, &map);                           
 801dc6c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801dc70:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
 801dc74:	fb ff ec 1d 	calli 8018ce8 <rtems_rfs_block_map_close>      <== NOT EXECUTED
 801dc78:	e0 00 00 11 	bi 801dcbc <rtems_rfs_symlink_read+0x1e0>      <== NOT EXECUTED
      rtems_rfs_inode_close (fs, &inode);                             
      return rc;                                                      
    }                                                                 
                                                                      
    data = rtems_rfs_buffer_data (&buffer);                           
    memcpy (path, data, *length);                                     
 801dc7c:	2b 82 00 a4 	lw r2,(sp+164)                                 <== NOT EXECUTED
 801dc80:	29 e3 00 00 	lw r3,(r15+0)                                  <== NOT EXECUTED
 801dc84:	ba 20 08 00 	mv r1,r17                                      <== NOT EXECUTED
 801dc88:	28 42 00 1c 	lw r2,(r2+28)                                  <== NOT EXECUTED
 801dc8c:	f8 00 0c 93 	calli 8020ed8 <memcpy>                         <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
 801dc90:	ba 00 10 00 	mv r2,r16                                      <== NOT EXECUTED
 801dc94:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801dc98:	fb ff ef ea 	calli 8019c40 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
      rtems_rfs_block_map_close (fs, &map);                           
      rtems_rfs_inode_close (fs, &inode);                             
      return rc;                                                      
    }                                                                 
                                                                      
    rc = rtems_rfs_block_map_close (fs, &map);                        
 801dc9c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801dca0:	b9 c0 10 00 	mv r2,r14                                      <== NOT EXECUTED
  handle->dirty = false;                                              
 801dca4:	33 80 00 9c 	sb (sp+156),r0                                 <== NOT EXECUTED
  handle->bnum  = 0;                                                  
 801dca8:	5b 80 00 a0 	sw (sp+160),r0                                 <== NOT EXECUTED
  handle->buffer = NULL;                                              
 801dcac:	5b 80 00 a4 	sw (sp+164),r0                                 <== NOT EXECUTED
 801dcb0:	fb ff ec 0e 	calli 8018ce8 <rtems_rfs_block_map_close>      <== NOT EXECUTED
 801dcb4:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
    if (rc > 0)                                                       
 801dcb8:	4c 01 00 05 	bge r0,r1,801dccc <rtems_rfs_symlink_read+0x1f0><== NOT EXECUTED
    {                                                                 
      rtems_rfs_inode_close (fs, &inode);                             
 801dcbc:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801dcc0:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 801dcc4:	fb ff c4 8b 	calli 800eef0 <rtems_rfs_inode_close>          <== NOT EXECUTED
      return rc;                                                      
 801dcc8:	e0 00 00 05 	bi 801dcdc <rtems_rfs_symlink_read+0x200>      <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
 801dccc:	b9 60 08 00 	mv r1,r11                                      
 801dcd0:	37 82 00 74 	addi r2,sp,116                                 
 801dcd4:	fb ff c4 87 	calli 800eef0 <rtems_rfs_inode_close>          
 801dcd8:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  return rc;                                                          
}                                                                     
 801dcdc:	b9 80 08 00 	mv r1,r12                                      
 801dce0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801dce4:	2b 8b 00 20 	lw r11,(sp+32)                                 
 801dce8:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 801dcec:	2b 8d 00 18 	lw r13,(sp+24)                                 
 801dcf0:	2b 8e 00 14 	lw r14,(sp+20)                                 
 801dcf4:	2b 8f 00 10 	lw r15,(sp+16)                                 
 801dcf8:	2b 90 00 0c 	lw r16,(sp+12)                                 
 801dcfc:	2b 91 00 08 	lw r17,(sp+8)                                  
 801dd00:	37 9c 00 a8 	addi sp,sp,168                                 
 801dd04:	c3 a0 00 00 	ret                                            
                                                                      

08010bf4 <rtems_rfs_trace_clear_mask>: rtems_rfs_trace_mask rtems_rfs_trace_clear_mask (rtems_rfs_trace_mask mask) { rtems_rfs_trace_mask state = rtems_rfs_trace_flags;
 8010bf4:	78 03 08 04 	mvhi r3,0x804                                  <== NOT EXECUTED
 8010bf8:	38 63 97 80 	ori r3,r3,0x9780                               <== NOT EXECUTED
 8010bfc:	28 65 00 00 	lw r5,(r3+0)                                   <== NOT EXECUTED
 8010c00:	28 64 00 04 	lw r4,(r3+4)                                   <== NOT EXECUTED
  rtems_rfs_trace_flags &= ~mask;                                     
 8010c04:	a4 20 08 00 	not r1,r1                                      <== NOT EXECUTED
 8010c08:	a4 40 10 00 	not r2,r2                                      <== NOT EXECUTED
 8010c0c:	a0 25 08 00 	and r1,r1,r5                                   <== NOT EXECUTED
 8010c10:	a0 44 10 00 	and r2,r2,r4                                   <== NOT EXECUTED
 8010c14:	58 61 00 00 	sw (r3+0),r1                                   <== NOT EXECUTED
 8010c18:	58 62 00 04 	sw (r3+4),r2                                   <== NOT EXECUTED
  return state;                                                       
}                                                                     
 8010c1c:	b8 a0 08 00 	mv r1,r5                                       <== NOT EXECUTED
 8010c20:	b8 80 10 00 	mv r2,r4                                       <== NOT EXECUTED
 8010c24:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08010bc8 <rtems_rfs_trace_set_mask>: rtems_rfs_trace_mask rtems_rfs_trace_set_mask (rtems_rfs_trace_mask mask) { rtems_rfs_trace_mask state = rtems_rfs_trace_flags;
 8010bc8:	78 03 08 04 	mvhi r3,0x804                                  <== NOT EXECUTED
 8010bcc:	38 63 97 80 	ori r3,r3,0x9780                               <== NOT EXECUTED
 8010bd0:	28 65 00 00 	lw r5,(r3+0)                                   <== NOT EXECUTED
 8010bd4:	28 64 00 04 	lw r4,(r3+4)                                   <== NOT EXECUTED
  rtems_rfs_trace_flags |= mask;                                      
 8010bd8:	b8 25 08 00 	or r1,r1,r5                                    <== NOT EXECUTED
 8010bdc:	b8 44 10 00 	or r2,r2,r4                                    <== NOT EXECUTED
 8010be0:	58 61 00 00 	sw (r3+0),r1                                   <== NOT EXECUTED
 8010be4:	58 62 00 04 	sw (r3+4),r2                                   <== NOT EXECUTED
  return state;                                                       
}                                                                     
 8010be8:	b8 a0 08 00 	mv r1,r5                                       <== NOT EXECUTED
 8010bec:	b8 80 10 00 	mv r2,r4                                       <== NOT EXECUTED
 8010bf0:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08010c28 <rtems_rfs_trace_shell_command>: int rtems_rfs_trace_shell_command (int argc, char *argv[]) {
 8010c28:	37 9c ff 18 	addi sp,sp,-232                                <== NOT EXECUTED
 8010c2c:	5b 8b 00 44 	sw (sp+68),r11                                 <== NOT EXECUTED
 8010c30:	5b 8c 00 40 	sw (sp+64),r12                                 <== NOT EXECUTED
 8010c34:	5b 8d 00 3c 	sw (sp+60),r13                                 <== NOT EXECUTED
 8010c38:	5b 8e 00 38 	sw (sp+56),r14                                 <== NOT EXECUTED
 8010c3c:	5b 8f 00 34 	sw (sp+52),r15                                 <== NOT EXECUTED
 8010c40:	5b 90 00 30 	sw (sp+48),r16                                 <== NOT EXECUTED
 8010c44:	5b 91 00 2c 	sw (sp+44),r17                                 <== NOT EXECUTED
 8010c48:	5b 92 00 28 	sw (sp+40),r18                                 <== NOT EXECUTED
 8010c4c:	5b 93 00 24 	sw (sp+36),r19                                 <== NOT EXECUTED
 8010c50:	5b 94 00 20 	sw (sp+32),r20                                 <== NOT EXECUTED
 8010c54:	5b 95 00 1c 	sw (sp+28),r21                                 <== NOT EXECUTED
 8010c58:	5b 96 00 18 	sw (sp+24),r22                                 <== NOT EXECUTED
 8010c5c:	5b 97 00 14 	sw (sp+20),r23                                 <== NOT EXECUTED
 8010c60:	5b 98 00 10 	sw (sp+16),r24                                 <== NOT EXECUTED
 8010c64:	5b 99 00 0c 	sw (sp+12),r25                                 <== NOT EXECUTED
 8010c68:	5b 9b 00 08 	sw (sp+8),fp                                   <== NOT EXECUTED
 8010c6c:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
 8010c70:	b8 40 70 00 	mv r14,r2                                      <== NOT EXECUTED
  const char* table[] =                                               
 8010c74:	78 02 08 03 	mvhi r2,0x803                                  <== NOT EXECUTED
  return state;                                                       
}                                                                     
                                                                      
int                                                                   
rtems_rfs_trace_shell_command (int argc, char *argv[])                
{                                                                     
 8010c78:	5b 81 00 4c 	sw (sp+76),r1                                  <== NOT EXECUTED
  const char* table[] =                                               
 8010c7c:	38 42 5a 74 	ori r2,r2,0x5a74                               <== NOT EXECUTED
 8010c80:	37 81 00 50 	addi r1,sp,80                                  <== NOT EXECUTED
 8010c84:	34 03 00 9c 	mvi r3,156                                     <== NOT EXECUTED
          return 1;                                                   
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      if (strcmp (argv[arg], "set") == 0)                             
 8010c88:	78 11 08 03 	mvhi r17,0x803                                 <== NOT EXECUTED
        set = true;                                                   
      if (strcmp (argv[arg], "clear") == 0)                           
 8010c8c:	78 10 08 03 	mvhi r16,0x803                                 <== NOT EXECUTED
        set = false;                                                  
      else if (strcmp (argv[arg], "all") == 0)                        
 8010c90:	78 0f 08 03 	mvhi r15,0x803                                 <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      rtems_rfs_trace_flags |= set_value;                             
      rtems_rfs_trace_flags &= ~clear_value;                          
 8010c94:	78 0b 08 04 	mvhi r11,0x804                                 <== NOT EXECUTED
}                                                                     
                                                                      
int                                                                   
rtems_rfs_trace_shell_command (int argc, char *argv[])                
{                                                                     
  const char* table[] =                                               
 8010c98:	f8 00 40 90 	calli 8020ed8 <memcpy>                         <== NOT EXECUTED
 8010c9c:	b9 c0 b8 00 	mv r23,r14                                     <== NOT EXECUTED
  rtems_rfs_trace_mask clear_value = 0;                               
  bool                 set = true;                                    
  int                  arg;                                           
  int                  t;                                             
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
 8010ca0:	34 16 00 01 	mvi r22,1                                      <== NOT EXECUTED
    "file-set"                                                        
  };                                                                  
                                                                      
  rtems_rfs_trace_mask set_value = 0;                                 
  rtems_rfs_trace_mask clear_value = 0;                               
  bool                 set = true;                                    
 8010ca4:	34 0d 00 01 	mvi r13,1                                      <== NOT EXECUTED
    "file-io",                                                        
    "file-set"                                                        
  };                                                                  
                                                                      
  rtems_rfs_trace_mask set_value = 0;                                 
  rtems_rfs_trace_mask clear_value = 0;                               
 8010ca8:	34 15 00 00 	mvi r21,0                                      <== NOT EXECUTED
 8010cac:	34 14 00 00 	mvi r20,0                                      <== NOT EXECUTED
    "file-close",                                                     
    "file-io",                                                        
    "file-set"                                                        
  };                                                                  
                                                                      
  rtems_rfs_trace_mask set_value = 0;                                 
 8010cb0:	34 13 00 00 	mvi r19,0                                      <== NOT EXECUTED
 8010cb4:	34 12 00 00 	mvi r18,0                                      <== NOT EXECUTED
  int                  arg;                                           
  int                  t;                                             
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
  {                                                                   
    if (argv[arg][0] == '-')                                          
 8010cb8:	34 1b 00 2d 	mvi fp,45                                      <== NOT EXECUTED
          return 1;                                                   
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      if (strcmp (argv[arg], "set") == 0)                             
 8010cbc:	3a 31 3c d8 	ori r17,r17,0x3cd8                             <== NOT EXECUTED
        set = true;                                                   
      if (strcmp (argv[arg], "clear") == 0)                           
 8010cc0:	3a 10 58 48 	ori r16,r16,0x5848                             <== NOT EXECUTED
        set = false;                                                  
      else if (strcmp (argv[arg], "all") == 0)                        
 8010cc4:	39 ef 79 bc 	ori r15,r15,0x79bc                             <== NOT EXECUTED
        else                                                          
          clear_value = RTEMS_RFS_TRACE_ALL;                          
      }                                                               
      else                                                            
      {                                                               
        for (t = 0; t < (sizeof (table) / sizeof (const char*)); t++) 
 8010cc8:	34 19 00 27 	mvi r25,39                                     <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      rtems_rfs_trace_flags |= set_value;                             
      rtems_rfs_trace_flags &= ~clear_value;                          
 8010ccc:	39 6b 97 80 	ori r11,r11,0x9780                             <== NOT EXECUTED
  rtems_rfs_trace_mask clear_value = 0;                               
  bool                 set = true;                                    
  int                  arg;                                           
  int                  t;                                             
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
 8010cd0:	e0 00 00 5b 	bi 8010e3c <rtems_rfs_trace_shell_command+0x214><== NOT EXECUTED
  {                                                                   
    if (argv[arg][0] == '-')                                          
 8010cd4:	2a ec 00 04 	lw r12,(r23+4)                                 <== NOT EXECUTED
 8010cd8:	41 81 00 00 	lbu r1,(r12+0)                                 <== NOT EXECUTED
 8010cdc:	5c 3b 00 20 	bne r1,fp,8010d5c <rtems_rfs_trace_shell_command+0x134><== NOT EXECUTED
    {                                                                 
      switch (argv[arg][1])                                           
 8010ce0:	41 81 00 01 	lbu r1,(r12+1)                                 <== NOT EXECUTED
 8010ce4:	34 02 00 68 	mvi r2,104                                     <== NOT EXECUTED
 8010ce8:	44 22 00 04 	be r1,r2,8010cf8 <rtems_rfs_trace_shell_command+0xd0><== NOT EXECUTED
 8010cec:	34 02 00 6c 	mvi r2,108                                     <== NOT EXECUTED
 8010cf0:	5c 22 00 16 	bne r1,r2,8010d48 <rtems_rfs_trace_shell_command+0x120><== NOT EXECUTED
 8010cf4:	e0 00 00 06 	bi 8010d0c <rtems_rfs_trace_shell_command+0xe4><== NOT EXECUTED
      {                                                               
        case 'h':                                                     
          printf ("usage: %s [-hl] [set/clear] [flags]\n", argv[0]);  
 8010cf8:	29 c2 00 00 	lw r2,(r14+0)                                  <== NOT EXECUTED
 8010cfc:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8010d00:	38 21 57 d8 	ori r1,r1,0x57d8                               <== NOT EXECUTED
 8010d04:	f8 00 41 9f 	calli 8021380 <printf>                         <== NOT EXECUTED
 8010d08:	e0 00 00 4f 	bi 8010e44 <rtems_rfs_trace_shell_command+0x21c><== NOT EXECUTED
          return 0;                                                   
        case 'l':                                                     
          printf ("%s: valid flags to set or clear are:\n", argv[0]); 
 8010d0c:	29 c2 00 00 	lw r2,(r14+0)                                  <== NOT EXECUTED
 8010d10:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8010d14:	38 21 58 00 	ori r1,r1,0x5800                               <== NOT EXECUTED
          for (t = 0; t < (sizeof (table) / sizeof (const char*)); t++)
            printf ("  %s\n", table[t]);                              
 8010d18:	78 0c 08 03 	mvhi r12,0x803                                 <== NOT EXECUTED
      {                                                               
        case 'h':                                                     
          printf ("usage: %s [-hl] [set/clear] [flags]\n", argv[0]);  
          return 0;                                                   
        case 'l':                                                     
          printf ("%s: valid flags to set or clear are:\n", argv[0]); 
 8010d1c:	f8 00 41 99 	calli 8021380 <printf>                         <== NOT EXECUTED
 8010d20:	37 8b 00 50 	addi r11,sp,80                                 <== NOT EXECUTED
  rtems_rfs_trace_flags &= ~mask;                                     
  return state;                                                       
}                                                                     
                                                                      
int                                                                   
rtems_rfs_trace_shell_command (int argc, char *argv[])                
 8010d24:	37 8d 00 ec 	addi r13,sp,236                                <== NOT EXECUTED
          printf ("usage: %s [-hl] [set/clear] [flags]\n", argv[0]);  
          return 0;                                                   
        case 'l':                                                     
          printf ("%s: valid flags to set or clear are:\n", argv[0]); 
          for (t = 0; t < (sizeof (table) / sizeof (const char*)); t++)
            printf ("  %s\n", table[t]);                              
 8010d28:	39 8c 58 28 	ori r12,r12,0x5828                             <== NOT EXECUTED
        case 'h':                                                     
          printf ("usage: %s [-hl] [set/clear] [flags]\n", argv[0]);  
          return 0;                                                   
        case 'l':                                                     
          printf ("%s: valid flags to set or clear are:\n", argv[0]); 
          for (t = 0; t < (sizeof (table) / sizeof (const char*)); t++)
 8010d2c:	e0 00 00 05 	bi 8010d40 <rtems_rfs_trace_shell_command+0x118><== NOT EXECUTED
            printf ("  %s\n", table[t]);                              
 8010d30:	29 62 00 00 	lw r2,(r11+0)                                  <== NOT EXECUTED
 8010d34:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8010d38:	35 6b 00 04 	addi r11,r11,4                                 <== NOT EXECUTED
 8010d3c:	f8 00 41 91 	calli 8021380 <printf>                         <== NOT EXECUTED
        case 'h':                                                     
          printf ("usage: %s [-hl] [set/clear] [flags]\n", argv[0]);  
          return 0;                                                   
        case 'l':                                                     
          printf ("%s: valid flags to set or clear are:\n", argv[0]); 
          for (t = 0; t < (sizeof (table) / sizeof (const char*)); t++)
 8010d40:	5d 6d ff fc 	bne r11,r13,8010d30 <rtems_rfs_trace_shell_command+0x108><== NOT EXECUTED
 8010d44:	e0 00 00 40 	bi 8010e44 <rtems_rfs_trace_shell_command+0x21c><== NOT EXECUTED
            printf ("  %s\n", table[t]);                              
          return 0;                                                   
        default:                                                      
          printf ("error: unknown option\n");                         
 8010d48:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 8010d4c:	38 21 58 30 	ori r1,r1,0x5830                               <== NOT EXECUTED
 8010d50:	f8 00 42 54 	calli 80216a0 <puts>                           <== NOT EXECUTED
          return 1;                                                   
 8010d54:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
 8010d58:	e0 00 00 3c 	bi 8010e48 <rtems_rfs_trace_shell_command+0x220><== NOT EXECUTED
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      if (strcmp (argv[arg], "set") == 0)                             
 8010d5c:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8010d60:	ba 20 10 00 	mv r2,r17                                      <== NOT EXECUTED
 8010d64:	f8 00 44 d5 	calli 80220b8 <strcmp>                         <== NOT EXECUTED
 8010d68:	5c 20 00 02 	bne r1,r0,8010d70 <rtems_rfs_trace_shell_command+0x148><== NOT EXECUTED
        set = true;                                                   
 8010d6c:	34 0d 00 01 	mvi r13,1                                      <== NOT EXECUTED
      if (strcmp (argv[arg], "clear") == 0)                           
 8010d70:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8010d74:	ba 00 10 00 	mv r2,r16                                      <== NOT EXECUTED
 8010d78:	f8 00 44 d0 	calli 80220b8 <strcmp>                         <== NOT EXECUTED
 8010d7c:	44 20 00 20 	be r1,r0,8010dfc <rtems_rfs_trace_shell_command+0x1d4><== NOT EXECUTED
        set = false;                                                  
      else if (strcmp (argv[arg], "all") == 0)                        
 8010d80:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8010d84:	b9 e0 10 00 	mv r2,r15                                      <== NOT EXECUTED
 8010d88:	f8 00 44 cc 	calli 80220b8 <strcmp>                         <== NOT EXECUTED
 8010d8c:	37 98 00 50 	addi r24,sp,80                                 <== NOT EXECUTED
 8010d90:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 8010d94:	5c 20 00 05 	bne r1,r0,8010da8 <rtems_rfs_trace_shell_command+0x180><== NOT EXECUTED
      {                                                               
        if (set)                                                      
 8010d98:	45 a1 00 1b 	be r13,r1,8010e04 <rtems_rfs_trace_shell_command+0x1dc><== NOT EXECUTED
          set_value = RTEMS_RFS_TRACE_ALL;                            
 8010d9c:	34 13 ff ff 	mvi r19,-1                                     <== NOT EXECUTED
 8010da0:	34 12 ff ff 	mvi r18,-1                                     <== NOT EXECUTED
 8010da4:	e0 00 00 1a 	bi 8010e0c <rtems_rfs_trace_shell_command+0x1e4><== NOT EXECUTED
      }                                                               
      else                                                            
      {                                                               
        for (t = 0; t < (sizeof (table) / sizeof (const char*)); t++) 
        {                                                             
          if (strcmp (argv[arg], table[t]) == 0)                      
 8010da8:	2b 02 00 00 	lw r2,(r24+0)                                  <== NOT EXECUTED
 8010dac:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 8010db0:	5b 83 00 48 	sw (sp+72),r3                                  <== NOT EXECUTED
 8010db4:	f8 00 44 c1 	calli 80220b8 <strcmp>                         <== NOT EXECUTED
 8010db8:	37 18 00 04 	addi r24,r24,4                                 <== NOT EXECUTED
 8010dbc:	2b 83 00 48 	lw r3,(sp+72)                                  <== NOT EXECUTED
 8010dc0:	5c 20 00 0c 	bne r1,r0,8010df0 <rtems_rfs_trace_shell_command+0x1c8><== NOT EXECUTED
          {                                                           
            if (set)                                                  
 8010dc4:	45 a1 00 06 	be r13,r1,8010ddc <rtems_rfs_trace_shell_command+0x1b4><== NOT EXECUTED
              set_value = 1ULL << t;                                  
 8010dc8:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 8010dcc:	f8 00 73 33 	calli 802da98 <__ashldi3>                      <== NOT EXECUTED
 8010dd0:	b8 20 98 00 	mv r19,r1                                      <== NOT EXECUTED
 8010dd4:	b8 40 90 00 	mv r18,r2                                      <== NOT EXECUTED
 8010dd8:	e0 00 00 0d 	bi 8010e0c <rtems_rfs_trace_shell_command+0x1e4><== NOT EXECUTED
            else                                                      
              clear_value = 1ULL << t;                                
 8010ddc:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 8010de0:	f8 00 73 2e 	calli 802da98 <__ashldi3>                      <== NOT EXECUTED
 8010de4:	b8 20 a8 00 	mv r21,r1                                      <== NOT EXECUTED
 8010de8:	b8 40 a0 00 	mv r20,r2                                      <== NOT EXECUTED
 8010dec:	e0 00 00 08 	bi 8010e0c <rtems_rfs_trace_shell_command+0x1e4><== NOT EXECUTED
        else                                                          
          clear_value = RTEMS_RFS_TRACE_ALL;                          
      }                                                               
      else                                                            
      {                                                               
        for (t = 0; t < (sizeof (table) / sizeof (const char*)); t++) 
 8010df0:	34 63 00 01 	addi r3,r3,1                                   <== NOT EXECUTED
 8010df4:	5c 79 ff ed 	bne r3,r25,8010da8 <rtems_rfs_trace_shell_command+0x180><== NOT EXECUTED
 8010df8:	e0 00 00 05 	bi 8010e0c <rtems_rfs_trace_shell_command+0x1e4><== NOT EXECUTED
    else                                                              
    {                                                                 
      if (strcmp (argv[arg], "set") == 0)                             
        set = true;                                                   
      if (strcmp (argv[arg], "clear") == 0)                           
        set = false;                                                  
 8010dfc:	34 0d 00 00 	mvi r13,0                                      <== NOT EXECUTED
 8010e00:	e0 00 00 03 	bi 8010e0c <rtems_rfs_trace_shell_command+0x1e4><== NOT EXECUTED
      else if (strcmp (argv[arg], "all") == 0)                        
      {                                                               
        if (set)                                                      
          set_value = RTEMS_RFS_TRACE_ALL;                            
        else                                                          
          clear_value = RTEMS_RFS_TRACE_ALL;                          
 8010e04:	34 15 ff ff 	mvi r21,-1                                     <== NOT EXECUTED
 8010e08:	34 14 ff ff 	mvi r20,-1                                     <== NOT EXECUTED
            break;                                                    
          }                                                           
        }                                                             
      }                                                               
                                                                      
      rtems_rfs_trace_flags |= set_value;                             
 8010e0c:	29 63 00 00 	lw r3,(r11+0)                                  <== NOT EXECUTED
 8010e10:	29 61 00 04 	lw r1,(r11+4)                                  <== NOT EXECUTED
      rtems_rfs_trace_flags &= ~clear_value;                          
 8010e14:	a6 a0 20 00 	not r4,r21                                     <== NOT EXECUTED
 8010e18:	a6 80 10 00 	not r2,r20                                     <== NOT EXECUTED
            break;                                                    
          }                                                           
        }                                                             
      }                                                               
                                                                      
      rtems_rfs_trace_flags |= set_value;                             
 8010e1c:	b8 73 18 00 	or r3,r3,r19                                   <== NOT EXECUTED
 8010e20:	b8 32 08 00 	or r1,r1,r18                                   <== NOT EXECUTED
      rtems_rfs_trace_flags &= ~clear_value;                          
 8010e24:	a0 83 18 00 	and r3,r4,r3                                   <== NOT EXECUTED
 8010e28:	a0 41 08 00 	and r1,r2,r1                                   <== NOT EXECUTED
 8010e2c:	59 63 00 00 	sw (r11+0),r3                                  <== NOT EXECUTED
 8010e30:	59 61 00 04 	sw (r11+4),r1                                  <== NOT EXECUTED
  rtems_rfs_trace_mask clear_value = 0;                               
  bool                 set = true;                                    
  int                  arg;                                           
  int                  t;                                             
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
 8010e34:	36 d6 00 01 	addi r22,r22,1                                 <== NOT EXECUTED
 8010e38:	36 f7 00 04 	addi r23,r23,4                                 <== NOT EXECUTED
 8010e3c:	2b 81 00 4c 	lw r1,(sp+76)                                  <== NOT EXECUTED
 8010e40:	48 36 ff a5 	bg r1,r22,8010cd4 <rtems_rfs_trace_shell_command+0xac><== NOT EXECUTED
      rtems_rfs_trace_flags |= set_value;                             
      rtems_rfs_trace_flags &= ~clear_value;                          
    }                                                                 
  }                                                                   
                                                                      
  return 0;                                                           
 8010e44:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
}                                                                     
 8010e48:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 8010e4c:	2b 8b 00 44 	lw r11,(sp+68)                                 <== NOT EXECUTED
 8010e50:	2b 8c 00 40 	lw r12,(sp+64)                                 <== NOT EXECUTED
 8010e54:	2b 8d 00 3c 	lw r13,(sp+60)                                 <== NOT EXECUTED
 8010e58:	2b 8e 00 38 	lw r14,(sp+56)                                 <== NOT EXECUTED
 8010e5c:	2b 8f 00 34 	lw r15,(sp+52)                                 <== NOT EXECUTED
 8010e60:	2b 90 00 30 	lw r16,(sp+48)                                 <== NOT EXECUTED
 8010e64:	2b 91 00 2c 	lw r17,(sp+44)                                 <== NOT EXECUTED
 8010e68:	2b 92 00 28 	lw r18,(sp+40)                                 <== NOT EXECUTED
 8010e6c:	2b 93 00 24 	lw r19,(sp+36)                                 <== NOT EXECUTED
 8010e70:	2b 94 00 20 	lw r20,(sp+32)                                 <== NOT EXECUTED
 8010e74:	2b 95 00 1c 	lw r21,(sp+28)                                 <== NOT EXECUTED
 8010e78:	2b 96 00 18 	lw r22,(sp+24)                                 <== NOT EXECUTED
 8010e7c:	2b 97 00 14 	lw r23,(sp+20)                                 <== NOT EXECUTED
 8010e80:	2b 98 00 10 	lw r24,(sp+16)                                 <== NOT EXECUTED
 8010e84:	2b 99 00 0c 	lw r25,(sp+12)                                 <== NOT EXECUTED
 8010e88:	2b 9b 00 08 	lw fp,(sp+8)                                   <== NOT EXECUTED
 8010e8c:	37 9c 00 e8 	addi sp,sp,232                                 <== NOT EXECUTED
 8010e90:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

0801d490 <rtems_rfs_unlink>: rtems_rfs_unlink (rtems_rfs_file_system* fs, rtems_rfs_ino parent, rtems_rfs_ino target, uint32_t doff, rtems_rfs_unlink_dir dir_mode) {
 801d490:	37 9c ff 8c 	addi sp,sp,-116                                
 801d494:	5b 8b 00 24 	sw (sp+36),r11                                 
 801d498:	5b 8c 00 20 	sw (sp+32),r12                                 
 801d49c:	5b 8d 00 1c 	sw (sp+28),r13                                 
 801d4a0:	5b 8e 00 18 	sw (sp+24),r14                                 
 801d4a4:	5b 8f 00 14 	sw (sp+20),r15                                 
 801d4a8:	5b 90 00 10 	sw (sp+16),r16                                 
 801d4ac:	5b 91 00 0c 	sw (sp+12),r17                                 
 801d4b0:	5b 92 00 08 	sw (sp+8),r18                                  
 801d4b4:	5b 9d 00 04 	sw (sp+4),ra                                   
 801d4b8:	b8 20 60 00 	mv r12,r1                                      
 801d4bc:	b8 40 80 00 	mv r16,r2                                      
  rtems_rfs_inode_handle target_inode;                                
  uint16_t               links;                                       
  bool                   dir;                                         
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                       
 801d4c0:	34 01 00 00 	mvi r1,0                                       
 801d4c4:	78 02 02 00 	mvhi r2,0x200                                  
rtems_rfs_unlink (rtems_rfs_file_system* fs,                          
                  rtems_rfs_ino          parent,                      
                  rtems_rfs_ino          target,                      
                  uint32_t               doff,                        
                  rtems_rfs_unlink_dir   dir_mode)                    
{                                                                     
 801d4c8:	b8 60 68 00 	mv r13,r3                                      
 801d4cc:	b8 80 90 00 	mv r18,r4                                      
 801d4d0:	b8 a0 70 00 	mv r14,r5                                      
  rtems_rfs_inode_handle target_inode;                                
  uint16_t               links;                                       
  bool                   dir;                                         
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                       
 801d4d4:	fb ff cd b4 	calli 8010ba4 <rtems_rfs_trace>                
 801d4d8:	44 20 00 06 	be r1,r0,801d4f0 <rtems_rfs_unlink+0x60>       <== ALWAYS TAKEN
    printf ("rtems-rfs: unlink: parent(%" PRIu32 ") -X-> (%" PRIu32 ")\n", parent, target);
 801d4dc:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801d4e0:	38 21 75 8c 	ori r1,r1,0x758c                               <== NOT EXECUTED
 801d4e4:	ba 00 10 00 	mv r2,r16                                      <== NOT EXECUTED
 801d4e8:	b9 a0 18 00 	mv r3,r13                                      <== NOT EXECUTED
 801d4ec:	f8 00 0f a5 	calli 8021380 <printf>                         <== NOT EXECUTED
                                                                      
  rc = rtems_rfs_inode_open (fs, target, &target_inode, true);        
 801d4f0:	37 91 00 28 	addi r17,sp,40                                 
 801d4f4:	b9 80 08 00 	mv r1,r12                                      
 801d4f8:	b9 a0 10 00 	mv r2,r13                                      
 801d4fc:	ba 20 18 00 	mv r3,r17                                      
 801d500:	34 04 00 01 	mvi r4,1                                       
 801d504:	fb ff c5 ef 	calli 800ecc0 <rtems_rfs_inode_open>           
 801d508:	b8 20 58 00 	mv r11,r1                                      
  if (rc)                                                             
 801d50c:	5c 20 00 ba 	bne r1,r0,801d7f4 <rtems_rfs_unlink+0x364>     <== NEVER TAKEN
                                                                      
  /*                                                                  
   * If a directory process the unlink mode.                          
   */                                                                 
                                                                      
  dir = RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&target_inode)); 
 801d510:	2b 81 00 34 	lw r1,(sp+52)                                  
 801d514:	fb ff ff 59 	calli 801d278 <rtems_rfs_inode_get_mode.clone.2>
 801d518:	20 21 f0 00 	andi r1,r1,0xf000                              
 801d51c:	64 2f 40 00 	cmpei r15,r1,16384                             
  if (dir)                                                            
 801d520:	45 eb 00 20 	be r15,r11,801d5a0 <rtems_rfs_unlink+0x110>    
  {                                                                   
    switch (dir_mode)                                                 
 801d524:	45 c0 00 04 	be r14,r0,801d534 <rtems_rfs_unlink+0xa4>      <== NEVER TAKEN
 801d528:	34 01 00 01 	mvi r1,1                                       
 801d52c:	5d c1 00 1d 	bne r14,r1,801d5a0 <rtems_rfs_unlink+0x110>    <== NEVER TAKEN
 801d530:	e0 00 00 0d 	bi 801d564 <rtems_rfs_unlink+0xd4>             
    {                                                                 
      case rtems_rfs_unlink_dir_denied:                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                 
 801d534:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801d538:	78 02 02 00 	mvhi r2,0x200                                  <== NOT EXECUTED
 801d53c:	fb ff cd 9a 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801d540:	44 2e 00 04 	be r1,r14,801d550 <rtems_rfs_unlink+0xc0>      <== NOT EXECUTED
          printf ("rtems-rfs: link is a directory\n");                
 801d544:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801d548:	38 21 75 b8 	ori r1,r1,0x75b8                               <== NOT EXECUTED
 801d54c:	f8 00 10 55 	calli 80216a0 <puts>                           <== NOT EXECUTED
        rtems_rfs_inode_close (fs, &target_inode);                    
 801d550:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801d554:	37 82 00 28 	addi r2,sp,40                                  <== NOT EXECUTED
 801d558:	fb ff c6 66 	calli 800eef0 <rtems_rfs_inode_close>          <== NOT EXECUTED
        return EISDIR;                                                
 801d55c:	34 0b 00 15 	mvi r11,21                                     <== NOT EXECUTED
 801d560:	e0 00 00 a5 	bi 801d7f4 <rtems_rfs_unlink+0x364>            <== NOT EXECUTED
                                                                      
      case rtems_rfs_unlink_dir_if_empty:                             
        rc = rtems_rfs_dir_empty (fs, &target_inode);                 
 801d564:	b9 80 08 00 	mv r1,r12                                      
 801d568:	ba 20 10 00 	mv r2,r17                                      
 801d56c:	fb ff f8 62 	calli 801b6f4 <rtems_rfs_dir_empty>            
 801d570:	b8 20 58 00 	mv r11,r1                                      
        if (rc > 0)                                                   
 801d574:	4c 01 00 0b 	bge r0,r1,801d5a0 <rtems_rfs_unlink+0x110>     
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))               
 801d578:	34 01 00 00 	mvi r1,0                                       
 801d57c:	78 02 02 00 	mvhi r2,0x200                                  
 801d580:	fb ff cd 89 	calli 8010ba4 <rtems_rfs_trace>                
 801d584:	44 20 00 88 	be r1,r0,801d7a4 <rtems_rfs_unlink+0x314>      <== ALWAYS TAKEN
            printf ("rtems-rfs: dir-empty: %d: %s\n", rc, strerror (rc));
 801d588:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801d58c:	f8 00 14 38 	calli 802266c <strerror>                       <== NOT EXECUTED
 801d590:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 801d594:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801d598:	38 21 75 d8 	ori r1,r1,0x75d8                               <== NOT EXECUTED
 801d59c:	e0 00 00 80 	bi 801d79c <rtems_rfs_unlink+0x30c>            <== NOT EXECUTED
      default:                                                        
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);        
 801d5a0:	37 8e 00 50 	addi r14,sp,80                                 
 801d5a4:	b9 80 08 00 	mv r1,r12                                      
 801d5a8:	ba 00 10 00 	mv r2,r16                                      
 801d5ac:	b9 c0 18 00 	mv r3,r14                                      
 801d5b0:	34 04 00 01 	mvi r4,1                                       
 801d5b4:	fb ff c5 c3 	calli 800ecc0 <rtems_rfs_inode_open>           
 801d5b8:	b8 20 58 00 	mv r11,r1                                      
  if (rc)                                                             
 801d5bc:	44 20 00 0b 	be r1,r0,801d5e8 <rtems_rfs_unlink+0x158>      <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                     
 801d5c0:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801d5c4:	78 02 02 00 	mvhi r2,0x200                                  <== NOT EXECUTED
 801d5c8:	fb ff cd 77 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801d5cc:	44 20 00 76 	be r1,r0,801d7a4 <rtems_rfs_unlink+0x314>      <== NOT EXECUTED
      printf ("rtems-rfs: link: inode-open failed: %d: %s\n",         
 801d5d0:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801d5d4:	f8 00 14 26 	calli 802266c <strerror>                       <== NOT EXECUTED
 801d5d8:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 801d5dc:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801d5e0:	38 21 75 f8 	ori r1,r1,0x75f8                               <== NOT EXECUTED
 801d5e4:	e0 00 00 6e 	bi 801d79c <rtems_rfs_unlink+0x30c>            <== NOT EXECUTED
              rc, strerror (rc));                                     
    rtems_rfs_inode_close (fs, &target_inode);                        
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_dir_del_entry (fs, &parent_inode, target, doff);     
 801d5e8:	b9 80 08 00 	mv r1,r12                                      
 801d5ec:	b9 c0 10 00 	mv r2,r14                                      
 801d5f0:	b9 a0 18 00 	mv r3,r13                                      
 801d5f4:	ba 40 20 00 	mv r4,r18                                      
 801d5f8:	fb ff f6 2e 	calli 801aeb0 <rtems_rfs_dir_del_entry>        
 801d5fc:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 801d600:	4c 01 00 0b 	bge r0,r1,801d62c <rtems_rfs_unlink+0x19c>     <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                     
 801d604:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801d608:	78 02 02 00 	mvhi r2,0x200                                  <== NOT EXECUTED
 801d60c:	fb ff cd 66 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801d610:	44 20 00 51 	be r1,r0,801d754 <rtems_rfs_unlink+0x2c4>      <== NOT EXECUTED
      printf ("rtems-rfs: unlink: dir-del failed: %d: %s\n",          
 801d614:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801d618:	f8 00 14 15 	calli 802266c <strerror>                       <== NOT EXECUTED
 801d61c:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 801d620:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801d624:	38 21 76 24 	ori r1,r1,0x7624                               <== NOT EXECUTED
 801d628:	e0 00 00 49 	bi 801d74c <rtems_rfs_unlink+0x2bc>            <== NOT EXECUTED
    rtems_rfs_inode_close (fs, &parent_inode);                        
    rtems_rfs_inode_close (fs, &target_inode);                        
    return rc;                                                        
  }                                                                   
                                                                      
  links = rtems_rfs_inode_get_links (&target_inode);                  
 801d62c:	2b 81 00 34 	lw r1,(sp+52)                                  
 801d630:	fb ff ff 00 	calli 801d230 <rtems_rfs_inode_get_links.clone.1>
 801d634:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                       
 801d638:	78 02 02 00 	mvhi r2,0x200                                  
 801d63c:	34 01 00 00 	mvi r1,0                                       
 801d640:	fb ff cd 59 	calli 8010ba4 <rtems_rfs_trace>                
 801d644:	44 20 00 06 	be r1,r0,801d65c <rtems_rfs_unlink+0x1cc>      <== ALWAYS TAKEN
    printf ("rtems-rfs: unlink: target:%" PRIu32 " links:%u\n", target, links);
 801d648:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801d64c:	38 21 76 50 	ori r1,r1,0x7650                               <== NOT EXECUTED
 801d650:	b9 a0 10 00 	mv r2,r13                                      <== NOT EXECUTED
 801d654:	b9 60 18 00 	mv r3,r11                                      <== NOT EXECUTED
 801d658:	f8 00 0f 4a 	calli 8021380 <printf>                         <== NOT EXECUTED
                                                                      
  if (links > 1)                                                      
 801d65c:	34 0d 00 01 	mvi r13,1                                      
 801d660:	51 ab 00 0c 	bgeu r13,r11,801d690 <rtems_rfs_unlink+0x200>  
  {                                                                   
    links--;                                                          
 801d664:	35 6b ff ff 	addi r11,r11,-1                                
 801d668:	21 6b ff ff 	andi r11,r11,0xffff                            
 * @prarm links The links.                                            
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_links (rtems_rfs_inode_handle* handle, uint16_t links)
{                                                                     
  rtems_rfs_write_u16 (&handle->node->links, links);                  
 801d66c:	34 02 00 08 	mvi r2,8                                       
 801d670:	b9 60 08 00 	mv r1,r11                                      
 801d674:	fb ff 8f c2 	calli 800157c <__lshrsi3>                      
 801d678:	2b 82 00 34 	lw r2,(sp+52)                                  
 801d67c:	30 41 00 00 	sb (r2+0),r1                                   
 801d680:	2b 81 00 34 	lw r1,(sp+52)                                  
 801d684:	30 2b 00 01 	sb (r1+1),r11                                  
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
 801d688:	33 8d 00 38 	sb (sp+56),r13                                 
 801d68c:	e0 00 00 20 	bi 801d70c <rtems_rfs_unlink+0x27c>            
  else                                                                
  {                                                                   
    /*                                                                
     * Erasing the inode releases all blocks attached to it.          
     */                                                               
    rc = rtems_rfs_inode_delete (fs, &target_inode);                  
 801d690:	b9 80 08 00 	mv r1,r12                                      
 801d694:	37 82 00 28 	addi r2,sp,40                                  
 801d698:	fb ff c6 3c 	calli 800ef88 <rtems_rfs_inode_delete>         
 801d69c:	b8 20 58 00 	mv r11,r1                                      
    if (rc > 0)                                                       
 801d6a0:	4c 01 00 0b 	bge r0,r1,801d6cc <rtems_rfs_unlink+0x23c>     <== ALWAYS TAKEN
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                   
 801d6a4:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801d6a8:	78 02 02 00 	mvhi r2,0x200                                  <== NOT EXECUTED
 801d6ac:	fb ff cd 3e 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801d6b0:	44 20 00 29 	be r1,r0,801d754 <rtems_rfs_unlink+0x2c4>      <== NOT EXECUTED
        printf ("rtems-rfs: unlink: inode-del failed: %d: %s\n",      
 801d6b4:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801d6b8:	f8 00 13 ed 	calli 802266c <strerror>                       <== NOT EXECUTED
 801d6bc:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 801d6c0:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801d6c4:	38 21 76 78 	ori r1,r1,0x7678                               <== NOT EXECUTED
 801d6c8:	e0 00 00 21 	bi 801d74c <rtems_rfs_unlink+0x2bc>            <== NOT EXECUTED
      rtems_rfs_inode_close (fs, &parent_inode);                      
      rtems_rfs_inode_close (fs, &target_inode);                      
      return rc;                                                      
    }                                                                 
                                                                      
    if (dir)                                                          
 801d6cc:	45 e0 00 10 	be r15,r0,801d70c <rtems_rfs_unlink+0x27c>     
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
                                                                      
  return rc;                                                          
}                                                                     
 801d6d0:	2b 8e 00 5c 	lw r14,(sp+92)                                 
      return rc;                                                      
    }                                                                 
                                                                      
    if (dir)                                                          
    {                                                                 
      links = rtems_rfs_inode_get_links (&parent_inode);              
 801d6d4:	b9 c0 08 00 	mv r1,r14                                      
 801d6d8:	fb ff fe d6 	calli 801d230 <rtems_rfs_inode_get_links.clone.1>
 801d6dc:	b8 20 58 00 	mv r11,r1                                      
      if (links > 1)                                                  
 801d6e0:	51 a1 00 03 	bgeu r13,r1,801d6ec <rtems_rfs_unlink+0x25c>   
        links--;                                                      
 801d6e4:	34 2b ff ff 	addi r11,r1,-1                                 
 801d6e8:	21 6b ff ff 	andi r11,r11,0xffff                            
 * @prarm links The links.                                            
 */                                                                   
static inline void                                                    
rtems_rfs_inode_set_links (rtems_rfs_inode_handle* handle, uint16_t links)
{                                                                     
  rtems_rfs_write_u16 (&handle->node->links, links);                  
 801d6ec:	b9 60 08 00 	mv r1,r11                                      
 801d6f0:	34 02 00 08 	mvi r2,8                                       
 801d6f4:	fb ff 8f a2 	calli 800157c <__lshrsi3>                      
 801d6f8:	31 c1 00 00 	sb (r14+0),r1                                  
 801d6fc:	2b 81 00 5c 	lw r1,(sp+92)                                  
 801d700:	30 2b 00 01 	sb (r1+1),r11                                  
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
 801d704:	34 01 00 01 	mvi r1,1                                       
 801d708:	33 81 00 60 	sb (sp+96),r1                                  
      rtems_rfs_inode_set_links (&parent_inode, links);               
    }                                                                 
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_time_stamp_now (&parent_inode, true, true);    
 801d70c:	37 8d 00 50 	addi r13,sp,80                                 
 801d710:	b9 a0 08 00 	mv r1,r13                                      
 801d714:	34 02 00 01 	mvi r2,1                                       
 801d718:	34 03 00 01 	mvi r3,1                                       
 801d71c:	fb ff c6 54 	calli 800f06c <rtems_rfs_inode_time_stamp_now> 
 801d720:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 801d724:	4c 01 00 10 	bge r0,r1,801d764 <rtems_rfs_unlink+0x2d4>     <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                     
 801d728:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801d72c:	78 02 02 00 	mvhi r2,0x200                                  <== NOT EXECUTED
 801d730:	fb ff cd 1d 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801d734:	44 20 00 08 	be r1,r0,801d754 <rtems_rfs_unlink+0x2c4>      <== NOT EXECUTED
      printf ("rtems-rfs: link: inode-time-stamp failed: %d: %s\n",   
 801d738:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801d73c:	f8 00 13 cc 	calli 802266c <strerror>                       <== NOT EXECUTED
 801d740:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 801d744:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801d748:	38 21 76 a8 	ori r1,r1,0x76a8                               <== NOT EXECUTED
 801d74c:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 801d750:	f8 00 0f 0c 	calli 8021380 <printf>                         <== NOT EXECUTED
              rc, strerror (rc));                                     
    rtems_rfs_inode_close (fs, &parent_inode);                        
 801d754:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801d758:	37 82 00 50 	addi r2,sp,80                                  <== NOT EXECUTED
 801d75c:	fb ff c5 e5 	calli 800eef0 <rtems_rfs_inode_close>          <== NOT EXECUTED
 801d760:	e0 00 00 11 	bi 801d7a4 <rtems_rfs_unlink+0x314>            <== NOT EXECUTED
    rtems_rfs_inode_close (fs, &target_inode);                        
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &parent_inode);                     
 801d764:	b9 80 08 00 	mv r1,r12                                      
 801d768:	b9 a0 10 00 	mv r2,r13                                      
 801d76c:	fb ff c5 e1 	calli 800eef0 <rtems_rfs_inode_close>          
 801d770:	b8 20 58 00 	mv r11,r1                                      
  if (rc > 0)                                                         
 801d774:	4c 01 00 10 	bge r0,r1,801d7b4 <rtems_rfs_unlink+0x324>     <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                     
 801d778:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801d77c:	78 02 02 00 	mvhi r2,0x200                                  <== NOT EXECUTED
 801d780:	fb ff cd 09 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801d784:	44 20 00 08 	be r1,r0,801d7a4 <rtems_rfs_unlink+0x314>      <== NOT EXECUTED
      printf ("rtems-rfs: link: parent inode-close failed: %d: %s\n", 
 801d788:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801d78c:	f8 00 13 b8 	calli 802266c <strerror>                       <== NOT EXECUTED
 801d790:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 801d794:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801d798:	38 21 76 dc 	ori r1,r1,0x76dc                               <== NOT EXECUTED
 801d79c:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 801d7a0:	f8 00 0e f8 	calli 8021380 <printf>                         <== NOT EXECUTED
              rc, strerror (rc));                                     
    rtems_rfs_inode_close (fs, &target_inode);                        
 801d7a4:	b9 80 08 00 	mv r1,r12                                      
 801d7a8:	37 82 00 28 	addi r2,sp,40                                  
 801d7ac:	fb ff c5 d1 	calli 800eef0 <rtems_rfs_inode_close>          
    return rc;                                                        
 801d7b0:	e0 00 00 11 	bi 801d7f4 <rtems_rfs_unlink+0x364>            
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &target_inode);                     
 801d7b4:	b9 80 08 00 	mv r1,r12                                      
 801d7b8:	37 82 00 28 	addi r2,sp,40                                  
 801d7bc:	fb ff c5 cd 	calli 800eef0 <rtems_rfs_inode_close>          
 801d7c0:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))           
 801d7c4:	4c 01 00 0c 	bge r0,r1,801d7f4 <rtems_rfs_unlink+0x364>     <== ALWAYS TAKEN
 801d7c8:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 801d7cc:	78 02 02 00 	mvhi r2,0x200                                  <== NOT EXECUTED
 801d7d0:	fb ff cc f5 	calli 8010ba4 <rtems_rfs_trace>                <== NOT EXECUTED
 801d7d4:	44 20 00 08 	be r1,r0,801d7f4 <rtems_rfs_unlink+0x364>      <== NOT EXECUTED
    printf ("rtems-rfs: link: target inode-close failed: %d: %s\n",   
 801d7d8:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801d7dc:	f8 00 13 a4 	calli 802266c <strerror>                       <== NOT EXECUTED
 801d7e0:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 801d7e4:	78 01 08 03 	mvhi r1,0x803                                  <== NOT EXECUTED
 801d7e8:	38 21 77 10 	ori r1,r1,0x7710                               <== NOT EXECUTED
 801d7ec:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 801d7f0:	f8 00 0e e4 	calli 8021380 <printf>                         <== NOT EXECUTED
            rc, strerror (rc));                                       
                                                                      
  return rc;                                                          
}                                                                     
 801d7f4:	b9 60 08 00 	mv r1,r11                                      
 801d7f8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801d7fc:	2b 8b 00 24 	lw r11,(sp+36)                                 
 801d800:	2b 8c 00 20 	lw r12,(sp+32)                                 
 801d804:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 801d808:	2b 8e 00 18 	lw r14,(sp+24)                                 
 801d80c:	2b 8f 00 14 	lw r15,(sp+20)                                 
 801d810:	2b 90 00 10 	lw r16,(sp+16)                                 
 801d814:	2b 91 00 0c 	lw r17,(sp+12)                                 
 801d818:	2b 92 00 08 	lw r18,(sp+8)                                  
 801d81c:	37 9c 00 74 	addi sp,sp,116                                 
 801d820:	c3 a0 00 00 	ret                                            
                                                                      

0801e844 <rtems_shell_rfs_format>: int rtems_shell_rfs_format (int argc, char* argv[]) {
 801e844:	37 9c ff b4 	addi sp,sp,-76                                 <== NOT EXECUTED
 801e848:	5b 8b 00 34 	sw (sp+52),r11                                 <== NOT EXECUTED
 801e84c:	5b 8c 00 30 	sw (sp+48),r12                                 <== NOT EXECUTED
 801e850:	5b 8d 00 2c 	sw (sp+44),r13                                 <== NOT EXECUTED
 801e854:	5b 8e 00 28 	sw (sp+40),r14                                 <== NOT EXECUTED
 801e858:	5b 8f 00 24 	sw (sp+36),r15                                 <== NOT EXECUTED
 801e85c:	5b 90 00 20 	sw (sp+32),r16                                 <== NOT EXECUTED
 801e860:	5b 91 00 1c 	sw (sp+28),r17                                 <== NOT EXECUTED
 801e864:	5b 92 00 18 	sw (sp+24),r18                                 <== NOT EXECUTED
 801e868:	5b 93 00 14 	sw (sp+20),r19                                 <== NOT EXECUTED
 801e86c:	5b 94 00 10 	sw (sp+16),r20                                 <== NOT EXECUTED
 801e870:	5b 95 00 0c 	sw (sp+12),r21                                 <== NOT EXECUTED
 801e874:	5b 96 00 08 	sw (sp+8),r22                                  <== NOT EXECUTED
 801e878:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
  rtems_rfs_format_config config;                                     
  const char*             driver = NULL;                              
  int                     arg;                                        
                                                                      
  memset (&config, 0, sizeof (rtems_rfs_format_config));              
 801e87c:	34 03 00 18 	mvi r3,24                                      <== NOT EXECUTED
  return 1;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_shell_rfs_format (int argc, char* argv[])                       
{                                                                     
 801e880:	b8 20 70 00 	mv r14,r1                                      <== NOT EXECUTED
 801e884:	b8 40 68 00 	mv r13,r2                                      <== NOT EXECUTED
  rtems_rfs_format_config config;                                     
  const char*             driver = NULL;                              
  int                     arg;                                        
                                                                      
  memset (&config, 0, sizeof (rtems_rfs_format_config));              
 801e888:	37 81 00 38 	addi r1,sp,56                                  <== NOT EXECUTED
 801e88c:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 801e890:	f8 00 74 80 	calli 803ba90 <memset>                         <== NOT EXECUTED
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
 801e894:	34 0b 00 01 	mvi r11,1                                      <== NOT EXECUTED
                                                                      
int                                                                   
rtems_shell_rfs_format (int argc, char* argv[])                       
{                                                                     
  rtems_rfs_format_config config;                                     
  const char*             driver = NULL;                              
 801e898:	34 0c 00 00 	mvi r12,0                                      <== NOT EXECUTED
                                                                      
  memset (&config, 0, sizeof (rtems_rfs_format_config));              
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
  {                                                                   
    if (argv[arg][0] == '-')                                          
 801e89c:	34 16 00 2d 	mvi r22,45                                     <== NOT EXECUTED
    {                                                                 
      switch (argv[arg][1])                                           
 801e8a0:	34 10 00 69 	mvi r16,105                                    <== NOT EXECUTED
 801e8a4:	34 15 00 73 	mvi r21,115                                    <== NOT EXECUTED
 801e8a8:	34 14 00 76 	mvi r20,118                                    <== NOT EXECUTED
      {                                                               
        case 'v':                                                     
          config.verbose = true;                                      
 801e8ac:	34 0f 00 01 	mvi r15,1                                      <== NOT EXECUTED
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
  {                                                                   
    if (argv[arg][0] == '-')                                          
    {                                                                 
      switch (argv[arg][1])                                           
 801e8b0:	34 13 00 6f 	mvi r19,111                                    <== NOT EXECUTED
 801e8b4:	34 12 00 49 	mvi r18,73                                     <== NOT EXECUTED
 801e8b8:	34 11 00 62 	mvi r17,98                                     <== NOT EXECUTED
  const char*             driver = NULL;                              
  int                     arg;                                        
                                                                      
  memset (&config, 0, sizeof (rtems_rfs_format_config));              
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
 801e8bc:	e0 00 00 5c 	bi 801ea2c <rtems_shell_rfs_format+0x1e8>      <== NOT EXECUTED
  {                                                                   
    if (argv[arg][0] == '-')                                          
 801e8c0:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
 801e8c4:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801e8c8:	fb ff 86 4c 	calli 80001f8 <__ashlsi3>                      <== NOT EXECUTED
 801e8cc:	b5 a1 08 00 	add r1,r13,r1                                  <== NOT EXECUTED
 801e8d0:	28 22 00 00 	lw r2,(r1+0)                                   <== NOT EXECUTED
 801e8d4:	40 41 00 00 	lbu r1,(r2+0)                                  <== NOT EXECUTED
 801e8d8:	5c 36 00 4e 	bne r1,r22,801ea10 <rtems_shell_rfs_format+0x1cc><== NOT EXECUTED
    {                                                                 
      switch (argv[arg][1])                                           
 801e8dc:	40 43 00 01 	lbu r3,(r2+1)                                  <== NOT EXECUTED
 801e8e0:	44 70 00 29 	be r3,r16,801e984 <rtems_shell_rfs_format+0x140><== NOT EXECUTED
 801e8e4:	54 70 00 04 	bgu r3,r16,801e8f4 <rtems_shell_rfs_format+0xb0><== NOT EXECUTED
 801e8e8:	44 72 00 36 	be r3,r18,801e9c0 <rtems_shell_rfs_format+0x17c><== NOT EXECUTED
 801e8ec:	5c 71 00 46 	bne r3,r17,801ea04 <rtems_shell_rfs_format+0x1c0><== NOT EXECUTED
 801e8f0:	e0 00 00 16 	bi 801e948 <rtems_shell_rfs_format+0x104>      <== NOT EXECUTED
 801e8f4:	44 75 00 06 	be r3,r21,801e90c <rtems_shell_rfs_format+0xc8><== NOT EXECUTED
 801e8f8:	44 74 00 03 	be r3,r20,801e904 <rtems_shell_rfs_format+0xc0><== NOT EXECUTED
 801e8fc:	5c 73 00 42 	bne r3,r19,801ea04 <rtems_shell_rfs_format+0x1c0><== NOT EXECUTED
 801e900:	e0 00 00 32 	bi 801e9c8 <rtems_shell_rfs_format+0x184>      <== NOT EXECUTED
      {                                                               
        case 'v':                                                     
          config.verbose = true;                                      
 801e904:	33 8f 00 4d 	sb (sp+77),r15                                 <== NOT EXECUTED
          break;                                                      
 801e908:	e0 00 00 48 	bi 801ea28 <rtems_shell_rfs_format+0x1e4>      <== NOT EXECUTED
                                                                      
        case 's':                                                     
          arg++;                                                      
 801e90c:	35 6b 00 01 	addi r11,r11,1                                 <== NOT EXECUTED
          if (arg >= argc)                                            
 801e910:	49 cb 00 04 	bg r14,r11,801e920 <rtems_shell_rfs_format+0xdc><== NOT EXECUTED
          {                                                           
            printf ("error: block size needs an argument\n");         
 801e914:	78 01 08 05 	mvhi r1,0x805                                  <== NOT EXECUTED
 801e918:	38 21 c8 f8 	ori r1,r1,0xc8f8                               <== NOT EXECUTED
 801e91c:	e0 00 00 48 	bi 801ea3c <rtems_shell_rfs_format+0x1f8>      <== NOT EXECUTED
            return 1;                                                 
          }                                                           
          config.block_size = strtoul (argv[arg], 0, 0);              
 801e920:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
 801e924:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801e928:	fb ff 86 34 	calli 80001f8 <__ashlsi3>                      <== NOT EXECUTED
 801e92c:	b5 a1 08 00 	add r1,r13,r1                                  <== NOT EXECUTED
 801e930:	28 21 00 00 	lw r1,(r1+0)                                   <== NOT EXECUTED
 801e934:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 801e938:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 801e93c:	f8 00 89 7e 	calli 8040f34 <strtoul>                        <== NOT EXECUTED
 801e940:	5b 81 00 38 	sw (sp+56),r1                                  <== NOT EXECUTED
          break;                                                      
 801e944:	e0 00 00 39 	bi 801ea28 <rtems_shell_rfs_format+0x1e4>      <== NOT EXECUTED
                                                                      
        case 'b':                                                     
          arg++;                                                      
 801e948:	35 6b 00 01 	addi r11,r11,1                                 <== NOT EXECUTED
          if (arg >= argc)                                            
 801e94c:	49 cb 00 04 	bg r14,r11,801e95c <rtems_shell_rfs_format+0x118><== NOT EXECUTED
          {                                                           
            printf ("error: group block count needs an argument\n");  
 801e950:	78 01 08 05 	mvhi r1,0x805                                  <== NOT EXECUTED
 801e954:	38 21 c9 1c 	ori r1,r1,0xc91c                               <== NOT EXECUTED
 801e958:	e0 00 00 39 	bi 801ea3c <rtems_shell_rfs_format+0x1f8>      <== NOT EXECUTED
            return 1;                                                 
          }                                                           
          config.group_blocks = strtoul (argv[arg], 0, 0);            
 801e95c:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
 801e960:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801e964:	fb ff 86 25 	calli 80001f8 <__ashlsi3>                      <== NOT EXECUTED
 801e968:	b5 a1 08 00 	add r1,r13,r1                                  <== NOT EXECUTED
 801e96c:	28 21 00 00 	lw r1,(r1+0)                                   <== NOT EXECUTED
 801e970:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 801e974:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 801e978:	f8 00 89 6f 	calli 8040f34 <strtoul>                        <== NOT EXECUTED
 801e97c:	5b 81 00 3c 	sw (sp+60),r1                                  <== NOT EXECUTED
          break;                                                      
 801e980:	e0 00 00 2a 	bi 801ea28 <rtems_shell_rfs_format+0x1e4>      <== NOT EXECUTED
                                                                      
        case 'i':                                                     
          arg++;                                                      
 801e984:	35 6b 00 01 	addi r11,r11,1                                 <== NOT EXECUTED
          if (arg >= argc)                                            
 801e988:	49 cb 00 04 	bg r14,r11,801e998 <rtems_shell_rfs_format+0x154><== NOT EXECUTED
          {                                                           
            printf ("error: group inode count needs an argument\n");  
 801e98c:	78 01 08 05 	mvhi r1,0x805                                  <== NOT EXECUTED
 801e990:	38 21 c9 48 	ori r1,r1,0xc948                               <== NOT EXECUTED
 801e994:	e0 00 00 2a 	bi 801ea3c <rtems_shell_rfs_format+0x1f8>      <== NOT EXECUTED
            return 1;                                                 
          }                                                           
          config.group_inodes = strtoul (argv[arg], 0, 0);            
 801e998:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
 801e99c:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801e9a0:	fb ff 86 16 	calli 80001f8 <__ashlsi3>                      <== NOT EXECUTED
 801e9a4:	b5 a1 08 00 	add r1,r13,r1                                  <== NOT EXECUTED
 801e9a8:	28 21 00 00 	lw r1,(r1+0)                                   <== NOT EXECUTED
 801e9ac:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 801e9b0:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 801e9b4:	f8 00 89 60 	calli 8040f34 <strtoul>                        <== NOT EXECUTED
 801e9b8:	5b 81 00 40 	sw (sp+64),r1                                  <== NOT EXECUTED
          break;                                                      
 801e9bc:	e0 00 00 1b 	bi 801ea28 <rtems_shell_rfs_format+0x1e4>      <== NOT EXECUTED
                                                                      
        case 'I':                                                     
          config.initialise_inodes = true;                            
 801e9c0:	33 8f 00 4c 	sb (sp+76),r15                                 <== NOT EXECUTED
          break;                                                      
 801e9c4:	e0 00 00 19 	bi 801ea28 <rtems_shell_rfs_format+0x1e4>      <== NOT EXECUTED
                                                                      
        case 'o':                                                     
          arg++;                                                      
 801e9c8:	35 6b 00 01 	addi r11,r11,1                                 <== NOT EXECUTED
          if (arg >= argc)                                            
 801e9cc:	49 cb 00 04 	bg r14,r11,801e9dc <rtems_shell_rfs_format+0x198><== NOT EXECUTED
          {                                                           
            printf ("error: inode percentage overhead needs an argument\n");
 801e9d0:	78 01 08 05 	mvhi r1,0x805                                  <== NOT EXECUTED
 801e9d4:	38 21 c9 74 	ori r1,r1,0xc974                               <== NOT EXECUTED
 801e9d8:	e0 00 00 19 	bi 801ea3c <rtems_shell_rfs_format+0x1f8>      <== NOT EXECUTED
            return 1;                                                 
          }                                                           
          config.inode_overhead = strtoul (argv[arg], 0, 0);          
 801e9dc:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
 801e9e0:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 801e9e4:	fb ff 86 05 	calli 80001f8 <__ashlsi3>                      <== NOT EXECUTED
 801e9e8:	b5 a1 08 00 	add r1,r13,r1                                  <== NOT EXECUTED
 801e9ec:	28 21 00 00 	lw r1,(r1+0)                                   <== NOT EXECUTED
 801e9f0:	34 02 00 00 	mvi r2,0                                       <== NOT EXECUTED
 801e9f4:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
 801e9f8:	f8 00 89 4f 	calli 8040f34 <strtoul>                        <== NOT EXECUTED
 801e9fc:	5b 81 00 44 	sw (sp+68),r1                                  <== NOT EXECUTED
          break;                                                      
 801ea00:	e0 00 00 0a 	bi 801ea28 <rtems_shell_rfs_format+0x1e4>      <== NOT EXECUTED
                                                                      
        default:                                                      
          printf ("error: invalid option: %s\n", argv[arg]);          
 801ea04:	78 01 08 05 	mvhi r1,0x805                                  <== NOT EXECUTED
 801ea08:	38 21 ad 64 	ori r1,r1,0xad64                               <== NOT EXECUTED
 801ea0c:	e0 00 00 04 	bi 801ea1c <rtems_shell_rfs_format+0x1d8>      <== NOT EXECUTED
          return 1;                                                   
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      if (!driver)                                                    
 801ea10:	45 80 00 05 	be r12,r0,801ea24 <rtems_shell_rfs_format+0x1e0><== NOT EXECUTED
        driver = argv[arg];                                           
      else                                                            
      {                                                               
        printf ("error: only one driver name allowed: %s\n", argv[arg]);
 801ea14:	78 01 08 05 	mvhi r1,0x805                                  <== NOT EXECUTED
 801ea18:	38 21 c9 a8 	ori r1,r1,0xc9a8                               <== NOT EXECUTED
 801ea1c:	f8 00 78 b6 	calli 803ccf4 <printf>                         <== NOT EXECUTED
 801ea20:	e0 00 00 16 	bi 801ea78 <rtems_shell_rfs_format+0x234>      <== NOT EXECUTED
          return 1;                                                   
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      if (!driver)                                                    
 801ea24:	b8 40 60 00 	mv r12,r2                                      <== NOT EXECUTED
  const char*             driver = NULL;                              
  int                     arg;                                        
                                                                      
  memset (&config, 0, sizeof (rtems_rfs_format_config));              
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
 801ea28:	35 6b 00 01 	addi r11,r11,1                                 <== NOT EXECUTED
 801ea2c:	49 cb ff a5 	bg r14,r11,801e8c0 <rtems_shell_rfs_format+0x7c><== NOT EXECUTED
        return 1;                                                     
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if (!driver) {                                                      
 801ea30:	5d 80 00 05 	bne r12,r0,801ea44 <rtems_shell_rfs_format+0x200><== NOT EXECUTED
    printf ("error: no driver name provided\n");                      
 801ea34:	78 01 08 05 	mvhi r1,0x805                                  <== NOT EXECUTED
 801ea38:	38 21 c9 d4 	ori r1,r1,0xc9d4                               <== NOT EXECUTED
 801ea3c:	f8 00 79 76 	calli 803d014 <puts>                           <== NOT EXECUTED
 801ea40:	e0 00 00 0e 	bi 801ea78 <rtems_shell_rfs_format+0x234>      <== NOT EXECUTED
    return 1;                                                         
  }                                                                   
                                                                      
  if (rtems_rfs_format (driver, &config) < 0)                         
 801ea44:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 801ea48:	37 82 00 38 	addi r2,sp,56                                  <== NOT EXECUTED
 801ea4c:	f8 00 3b fd 	calli 802da40 <rtems_rfs_format>               <== NOT EXECUTED
    printf ("error: format of %s failed: %s\n",                       
            driver, strerror (errno));                                
    return 1;                                                         
  }                                                                   
                                                                      
  return 0;                                                           
 801ea50:	34 03 00 00 	mvi r3,0                                       <== NOT EXECUTED
  if (!driver) {                                                      
    printf ("error: no driver name provided\n");                      
    return 1;                                                         
  }                                                                   
                                                                      
  if (rtems_rfs_format (driver, &config) < 0)                         
 801ea54:	4c 20 00 0a 	bge r1,r0,801ea7c <rtems_shell_rfs_format+0x238><== NOT EXECUTED
  {                                                                   
    printf ("error: format of %s failed: %s\n",                       
            driver, strerror (errno));                                
 801ea58:	f8 00 64 5f 	calli 8037bd4 <__errno>                        <== NOT EXECUTED
    return 1;                                                         
  }                                                                   
                                                                      
  if (rtems_rfs_format (driver, &config) < 0)                         
  {                                                                   
    printf ("error: format of %s failed: %s\n",                       
 801ea5c:	28 21 00 00 	lw r1,(r1+0)                                   <== NOT EXECUTED
 801ea60:	f8 00 82 c8 	calli 803f580 <strerror>                       <== NOT EXECUTED
 801ea64:	b8 20 18 00 	mv r3,r1                                       <== NOT EXECUTED
 801ea68:	78 01 08 05 	mvhi r1,0x805                                  <== NOT EXECUTED
 801ea6c:	38 21 c9 f4 	ori r1,r1,0xc9f4                               <== NOT EXECUTED
 801ea70:	b9 80 10 00 	mv r2,r12                                      <== NOT EXECUTED
 801ea74:	f8 00 78 a0 	calli 803ccf4 <printf>                         <== NOT EXECUTED
            driver, strerror (errno));                                
    return 1;                                                         
 801ea78:	34 03 00 01 	mvi r3,1                                       <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
 801ea7c:	b8 60 08 00 	mv r1,r3                                       <== NOT EXECUTED
 801ea80:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 801ea84:	2b 8b 00 34 	lw r11,(sp+52)                                 <== NOT EXECUTED
 801ea88:	2b 8c 00 30 	lw r12,(sp+48)                                 <== NOT EXECUTED
 801ea8c:	2b 8d 00 2c 	lw r13,(sp+44)                                 <== NOT EXECUTED
 801ea90:	2b 8e 00 28 	lw r14,(sp+40)                                 <== NOT EXECUTED
 801ea94:	2b 8f 00 24 	lw r15,(sp+36)                                 <== NOT EXECUTED
 801ea98:	2b 90 00 20 	lw r16,(sp+32)                                 <== NOT EXECUTED
 801ea9c:	2b 91 00 1c 	lw r17,(sp+28)                                 <== NOT EXECUTED
 801eaa0:	2b 92 00 18 	lw r18,(sp+24)                                 <== NOT EXECUTED
 801eaa4:	2b 93 00 14 	lw r19,(sp+20)                                 <== NOT EXECUTED
 801eaa8:	2b 94 00 10 	lw r20,(sp+16)                                 <== NOT EXECUTED
 801eaac:	2b 95 00 0c 	lw r21,(sp+12)                                 <== NOT EXECUTED
 801eab0:	2b 96 00 08 	lw r22,(sp+8)                                  <== NOT EXECUTED
 801eab4:	37 9c 00 4c 	addi sp,sp,76                                  <== NOT EXECUTED
 801eab8:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

080141fc <rtems_signal_send>: rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) {
 80141fc:	37 9c ff f4 	addi sp,sp,-12                                 
 8014200:	5b 8b 00 08 	sw (sp+8),r11                                  
 8014204:	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;                                      
 8014208:	34 03 00 0a 	mvi r3,10                                      
                                                                      
rtems_status_code rtems_signal_send(                                  
  rtems_id          id,                                               
  rtems_signal_set  signal_set                                        
)                                                                     
{                                                                     
 801420c:	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 )                                                  
 8014210:	44 40 00 29 	be r2,r0,80142b4 <rtems_signal_send+0xb8>      
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 8014214:	37 82 00 0c 	addi r2,sp,12                                  
 8014218:	f8 00 16 14 	calli 8019a68 <_Thread_Get>                    
  switch ( location ) {                                               
 801421c:	2b 82 00 0c 	lw r2,(sp+12)                                  
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8014220:	34 03 00 04 	mvi r3,4                                       
                                                                      
  if ( !signal_set )                                                  
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  the_thread = _Thread_Get( id, &location );                          
  switch ( location ) {                                               
 8014224:	5c 40 00 24 	bne r2,r0,80142b4 <rtems_signal_send+0xb8>     
                                                                      
    case OBJECTS_LOCAL:                                               
      api = the_thread->API_Extensions[ THREAD_API_RTEMS ];           
 8014228:	28 23 01 14 	lw r3,(r1+276)                                 
      asr = &api->Signal;                                             
                                                                      
      if ( ! _ASR_Is_null_handler( asr->handler ) ) {                 
 801422c:	28 64 00 0c 	lw r4,(r3+12)                                  
 8014230:	44 82 00 1f 	be r4,r2,80142ac <rtems_signal_send+0xb0>      
        if ( asr->is_enabled ) {                                      
 8014234:	40 62 00 08 	lbu r2,(r3+8)                                  
 8014238:	44 40 00 12 	be r2,r0,8014280 <rtems_signal_send+0x84>      
  rtems_signal_set *signal_set                                        
)                                                                     
{                                                                     
  ISR_Level              _level;                                      
                                                                      
  _ISR_Disable( _level );                                             
 801423c:	90 00 10 00 	rcsr r2,IE                                     
 8014240:	34 04 ff fe 	mvi r4,-2                                      
 8014244:	a0 44 20 00 	and r4,r2,r4                                   
 8014248:	d0 04 00 00 	wcsr IE,r4                                     
    *signal_set |= signals;                                           
 801424c:	28 64 00 14 	lw r4,(r3+20)                                  
 8014250:	b8 8b 58 00 	or r11,r4,r11                                  
 8014254:	58 6b 00 14 	sw (r3+20),r11                                 
  _ISR_Enable( _level );                                              
 8014258:	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 ) )
 801425c:	78 02 08 03 	mvhi r2,0x803                                  
 8014260:	38 42 de 60 	ori r2,r2,0xde60                               
 8014264:	28 43 00 08 	lw r3,(r2+8)                                   
 8014268:	44 60 00 0e 	be r3,r0,80142a0 <rtems_signal_send+0xa4>      
 801426c:	28 43 00 10 	lw r3,(r2+16)                                  
 8014270:	5c 23 00 0c 	bne r1,r3,80142a0 <rtems_signal_send+0xa4>     <== NEVER TAKEN
            _Thread_Dispatch_necessary = true;                        
 8014274:	34 01 00 01 	mvi r1,1                                       
 8014278:	30 41 00 0c 	sb (r2+12),r1                                  
 801427c:	e0 00 00 09 	bi 80142a0 <rtems_signal_send+0xa4>            
  rtems_signal_set *signal_set                                        
)                                                                     
{                                                                     
  ISR_Level              _level;                                      
                                                                      
  _ISR_Disable( _level );                                             
 8014280:	90 00 08 00 	rcsr r1,IE                                     
 8014284:	34 02 ff fe 	mvi r2,-2                                      
 8014288:	a0 22 10 00 	and r2,r1,r2                                   
 801428c:	d0 02 00 00 	wcsr IE,r2                                     
    *signal_set |= signals;                                           
 8014290:	28 62 00 18 	lw r2,(r3+24)                                  
 8014294:	b8 4b 58 00 	or r11,r2,r11                                  
 8014298:	58 6b 00 18 	sw (r3+24),r11                                 
  _ISR_Enable( _level );                                              
 801429c:	d0 01 00 00 	wcsr IE,r1                                     
        } else {                                                      
          _ASR_Post_signals( signal_set, &asr->signals_pending );     
        }                                                             
        _Thread_Enable_dispatch();                                    
 80142a0:	f8 00 15 e6 	calli 8019a38 <_Thread_Enable_dispatch>        
        return RTEMS_SUCCESSFUL;                                      
 80142a4:	34 03 00 00 	mvi r3,0                                       
 80142a8:	e0 00 00 03 	bi 80142b4 <rtems_signal_send+0xb8>            
      }                                                               
      _Thread_Enable_dispatch();                                      
 80142ac:	f8 00 15 e3 	calli 8019a38 <_Thread_Enable_dispatch>        
      return RTEMS_NOT_DEFINED;                                       
 80142b0:	34 03 00 0b 	mvi r3,11                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
 80142b4:	b8 60 08 00 	mv r1,r3                                       
 80142b8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80142bc:	2b 8b 00 08 	lw r11,(sp+8)                                  
 80142c0:	37 9c 00 0c 	addi sp,sp,12                                  
 80142c4:	c3 a0 00 00 	ret                                            
                                                                      

0800b5dc <rtems_sparse_disk_create_and_register>: const char *device_file_name, uint32_t media_block_size, rtems_blkdev_bnum blocks_with_buffer, rtems_blkdev_bnum media_block_count, uint8_t fill_pattern ) {
 800b5dc:	37 9c ff e8 	addi sp,sp,-24                                 
 800b5e0:	5b 8b 00 18 	sw (sp+24),r11                                 
 800b5e4:	5b 8c 00 14 	sw (sp+20),r12                                 
 800b5e8:	5b 8d 00 10 	sw (sp+16),r13                                 
 800b5ec:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800b5f0:	5b 8f 00 08 	sw (sp+8),r15                                  
 800b5f4:	5b 9d 00 04 	sw (sp+4),ra                                   
 800b5f8:	b8 20 78 00 	mv r15,r1                                      
 800b5fc:	b8 40 60 00 	mv r12,r2                                      
  const rtems_blkdev_bnum blocks_with_buffer )                        
{                                                                     
  size_t const key_table_size = blocks_with_buffer                    
                                * sizeof( rtems_sparse_disk_key );    
  size_t const data_size      = blocks_with_buffer * media_block_size;
  size_t const alloc_size     = sizeof( rtems_sparse_disk )           
 800b600:	34 41 00 08 	addi r1,r2,8                                   
 800b604:	b8 60 10 00 	mv r2,r3                                       
  const char       *device_file_name,                                 
  uint32_t          media_block_size,                                 
  rtems_blkdev_bnum blocks_with_buffer,                               
  rtems_blkdev_bnum media_block_count,                                
  uint8_t           fill_pattern )                                    
{                                                                     
 800b608:	b8 60 58 00 	mv r11,r3                                      
 800b60c:	b8 80 70 00 	mv r14,r4                                      
 800b610:	20 ad 00 ff 	andi r13,r5,0xff                               
  const rtems_blkdev_bnum blocks_with_buffer )                        
{                                                                     
  size_t const key_table_size = blocks_with_buffer                    
                                * sizeof( rtems_sparse_disk_key );    
  size_t const data_size      = blocks_with_buffer * media_block_size;
  size_t const alloc_size     = sizeof( rtems_sparse_disk )           
 800b614:	fb ff d7 43 	calli 8001320 <__mulsi3>                       
                                + key_table_size + data_size;         
                                                                      
  rtems_sparse_disk *const sd = (rtems_sparse_disk *) malloc(         
 800b618:	34 21 00 1c 	addi r1,r1,28                                  
 800b61c:	fb ff e0 02 	calli 8003624 <malloc>                         
 800b620:	b8 20 40 00 	mv r8,r1                                       
      media_block_count,                                              
      fill_pattern,                                                   
      rtems_sparse_disk_free                                          
    );                                                                
  } else {                                                            
    sc = RTEMS_NO_MEMORY;                                             
 800b624:	34 07 00 1a 	mvi r7,26                                      
  rtems_sparse_disk *sparse_disk = sparse_disk_allocate(              
    media_block_size,                                                 
    blocks_with_buffer                                                
  );                                                                  
                                                                      
  if ( sparse_disk != NULL ) {                                        
 800b628:	44 20 00 0b 	be r1,r0,800b654 <rtems_sparse_disk_create_and_register+0x78><== NEVER TAKEN
    sc = rtems_sparse_disk_register(                                  
 800b62c:	78 07 08 00 	mvhi r7,0x800                                  
 800b630:	38 e7 b4 74 	ori r7,r7,0xb474                               
 800b634:	b9 e0 08 00 	mv r1,r15                                      
 800b638:	b9 00 10 00 	mv r2,r8                                       
 800b63c:	b9 80 18 00 	mv r3,r12                                      
 800b640:	b9 60 20 00 	mv r4,r11                                      
 800b644:	b9 c0 28 00 	mv r5,r14                                      
 800b648:	b9 a0 30 00 	mv r6,r13                                      
 800b64c:	fb ff ff 90 	calli 800b48c <rtems_sparse_disk_register>     
 800b650:	b8 20 38 00 	mv r7,r1                                       
  } else {                                                            
    sc = RTEMS_NO_MEMORY;                                             
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
 800b654:	b8 e0 08 00 	mv r1,r7                                       
 800b658:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800b65c:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800b660:	2b 8c 00 14 	lw r12,(sp+20)                                 
 800b664:	2b 8d 00 10 	lw r13,(sp+16)                                 
 800b668:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800b66c:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800b670:	37 9c 00 18 	addi sp,sp,24                                  
 800b674:	c3 a0 00 00 	ret                                            
                                                                      

0800b48c <rtems_sparse_disk_register>: uint32_t media_block_size, rtems_blkdev_bnum blocks_with_buffer, rtems_blkdev_bnum media_block_count, uint8_t fill_pattern, rtems_sparse_disk_delete_handler sparse_disk_delete ) {
 800b48c:	37 9c ff d8 	addi sp,sp,-40                                 
 800b490:	5b 8b 00 28 	sw (sp+40),r11                                 
 800b494:	5b 8c 00 24 	sw (sp+36),r12                                 
 800b498:	5b 8d 00 20 	sw (sp+32),r13                                 
 800b49c:	5b 8e 00 1c 	sw (sp+28),r14                                 
 800b4a0:	5b 8f 00 18 	sw (sp+24),r15                                 
 800b4a4:	5b 90 00 14 	sw (sp+20),r16                                 
 800b4a8:	5b 91 00 10 	sw (sp+16),r17                                 
 800b4ac:	5b 92 00 0c 	sw (sp+12),r18                                 
 800b4b0:	5b 93 00 08 	sw (sp+8),r19                                  
 800b4b4:	5b 9d 00 04 	sw (sp+4),ra                                   
        sparse_disk_ioctl,                                            
        sparse_disk                                                   
      );                                                              
    }                                                                 
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
 800b4b8:	34 08 00 0a 	mvi r8,10                                      
  uint32_t                         media_block_size,                  
  rtems_blkdev_bnum                blocks_with_buffer,                
  rtems_blkdev_bnum                media_block_count,                 
  uint8_t                          fill_pattern,                      
  rtems_sparse_disk_delete_handler sparse_disk_delete )               
{                                                                     
 800b4bc:	b8 20 90 00 	mv r18,r1                                      
 800b4c0:	b8 40 58 00 	mv r11,r2                                      
 800b4c4:	b8 60 68 00 	mv r13,r3                                      
 800b4c8:	b8 80 60 00 	mv r12,r4                                      
 800b4cc:	b8 a0 70 00 	mv r14,r5                                      
 800b4d0:	b8 e0 98 00 	mv r19,r7                                      
 800b4d4:	20 d0 00 ff 	andi r16,r6,0xff                               
  rtems_status_code sc;                                               
                                                                      
  if ( blocks_with_buffer <= media_block_count ) {                    
 800b4d8:	54 85 00 34 	bgu r4,r5,800b5a8 <rtems_sparse_disk_register+0x11c><== NEVER TAKEN
{                                                                     
  rtems_status_code sc;                                               
  rtems_blkdev_bnum i;                                                
                                                                      
  if ( NULL == sd )                                                   
    return RTEMS_INVALID_ADDRESS;                                     
 800b4dc:	34 08 00 09 	mvi r8,9                                       
  const uint8_t                                                     fill_pattern )
{                                                                     
  rtems_status_code sc;                                               
  rtems_blkdev_bnum i;                                                
                                                                      
  if ( NULL == sd )                                                   
 800b4e0:	44 40 00 32 	be r2,r0,800b5a8 <rtems_sparse_disk_register+0x11c><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  uint8_t     *data           = (uint8_t *) sd;                       
  size_t const key_table_size = blocks_with_buffer                    
 800b4e4:	b8 80 08 00 	mv r1,r4                                       
 800b4e8:	34 02 00 03 	mvi r2,3                                       
 800b4ec:	fb ff d7 3f 	calli 80011e8 <__ashlsi3>                      
                                * sizeof( rtems_sparse_disk_key );    
  size_t const data_size      = blocks_with_buffer * media_block_size;
                                                                      
  memset( data, 0, sizeof( rtems_sparse_disk ) + key_table_size );    
 800b4f0:	34 31 00 1c 	addi r17,r1,28                                 
 800b4f4:	ba 20 18 00 	mv r3,r17                                      
 800b4f8:	34 02 00 00 	mvi r2,0                                       
                                                                      
  if ( NULL == sd )                                                   
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  uint8_t     *data           = (uint8_t *) sd;                       
  size_t const key_table_size = blocks_with_buffer                    
 800b4fc:	b8 20 78 00 	mv r15,r1                                      
                                * sizeof( rtems_sparse_disk_key );    
  size_t const data_size      = blocks_with_buffer * media_block_size;
                                                                      
  memset( data, 0, sizeof( rtems_sparse_disk ) + key_table_size );    
 800b500:	b9 60 08 00 	mv r1,r11                                      
 800b504:	f8 00 3c d1 	calli 801a848 <memset>                         
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  uint8_t     *data           = (uint8_t *) sd;                       
  size_t const key_table_size = blocks_with_buffer                    
                                * sizeof( rtems_sparse_disk_key );    
  size_t const data_size      = blocks_with_buffer * media_block_size;
 800b508:	b9 a0 10 00 	mv r2,r13                                      
                                                                      
  memset( data, 0, sizeof( rtems_sparse_disk ) + key_table_size );    
                                                                      
  sd->fill_pattern = fill_pattern;                                    
 800b50c:	31 70 00 14 	sb (r11+20),r16                                
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  uint8_t     *data           = (uint8_t *) sd;                       
  size_t const key_table_size = blocks_with_buffer                    
                                * sizeof( rtems_sparse_disk_key );    
  size_t const data_size      = blocks_with_buffer * media_block_size;
 800b510:	b9 80 08 00 	mv r1,r12                                      
 800b514:	fb ff d7 83 	calli 8001320 <__mulsi3>                       
 800b518:	b8 20 18 00 	mv r3,r1                                       
                                                                      
  memset( data, 0, sizeof( rtems_sparse_disk ) + key_table_size );    
                                                                      
  sd->fill_pattern = fill_pattern;                                    
  memset( (uint8_t *) ( data + sizeof( rtems_sparse_disk ) + key_table_size ),
 800b51c:	ba 00 10 00 	mv r2,r16                                      
 800b520:	b5 71 08 00 	add r1,r11,r17                                 
 800b524:	f8 00 3c c9 	calli 801a848 <memset>                         
          sd->fill_pattern,                                           
          data_size );                                                
                                                                      
  sd->delete_handler = sparse_disk_delete;                            
                                                                      
  sc                 = rtems_semaphore_create(                        
 800b528:	78 02 08 02 	mvhi r2,0x802                                  
 800b52c:	38 42 d3 8c 	ori r2,r2,0xd38c                               
 800b530:	28 41 00 00 	lw r1,(r2+0)                                   
  sd->fill_pattern = fill_pattern;                                    
  memset( (uint8_t *) ( data + sizeof( rtems_sparse_disk ) + key_table_size ),
          sd->fill_pattern,                                           
          data_size );                                                
                                                                      
  sd->delete_handler = sparse_disk_delete;                            
 800b534:	59 73 00 10 	sw (r11+16),r19                                
                                                                      
  sc                 = rtems_semaphore_create(                        
 800b538:	34 02 00 01 	mvi r2,1                                       
 800b53c:	34 03 00 54 	mvi r3,84                                      
 800b540:	34 04 00 00 	mvi r4,0                                       
 800b544:	b9 60 28 00 	mv r5,r11                                      
 800b548:	fb ff e8 1f 	calli 80055c4 <rtems_semaphore_create>         
 800b54c:	b8 20 40 00 	mv r8,r1                                       
    RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY, 
    0,                                                                
    &sd->mutex                                                        
    );                                                                
                                                                      
  if ( sc != RTEMS_SUCCESSFUL ) {                                     
 800b550:	5c 20 00 16 	bne r1,r0,800b5a8 <rtems_sparse_disk_register+0x11c><== NEVER TAKEN
    return sc;                                                        
  }                                                                   
                                                                      
  data                  += sizeof( rtems_sparse_disk );               
 800b554:	35 66 00 1c 	addi r6,r11,28                                 
                                                                      
  sd->blocks_with_buffer = blocks_with_buffer;                        
  sd->key_table          = (rtems_sparse_disk_key *) data;            
 800b558:	59 66 00 18 	sw (r11+24),r6                                 
    return sc;                                                        
  }                                                                   
                                                                      
  data                  += sizeof( rtems_sparse_disk );               
                                                                      
  sd->blocks_with_buffer = blocks_with_buffer;                        
 800b55c:	59 6c 00 04 	sw (r11+4),r12                                 
  sd->key_table          = (rtems_sparse_disk_key *) data;            
                                                                      
  data                  += key_table_size;                            
 800b560:	b4 cf 30 00 	add r6,r6,r15                                  
 800b564:	b9 60 20 00 	mv r4,r11                                      
                                                                      
  for ( i = 0; i < blocks_with_buffer; ++i, data += media_block_size ) {
 800b568:	34 02 00 00 	mvi r2,0                                       
 800b56c:	e0 00 00 04 	bi 800b57c <rtems_sparse_disk_register+0xf0>   
    sd->key_table[i].data = data;                                     
 800b570:	58 86 00 18 	sw (r4+24),r6                                  
  sd->blocks_with_buffer = blocks_with_buffer;                        
  sd->key_table          = (rtems_sparse_disk_key *) data;            
                                                                      
  data                  += key_table_size;                            
                                                                      
  for ( i = 0; i < blocks_with_buffer; ++i, data += media_block_size ) {
 800b574:	34 42 00 01 	addi r2,r2,1                                   
 800b578:	b4 cd 30 00 	add r6,r6,r13                                  
 800b57c:	34 84 00 08 	addi r4,r4,8                                   
 800b580:	55 82 ff fc 	bgu r12,r2,800b570 <rtems_sparse_disk_register+0xe4>
      sparse_disk_delete,                                             
      fill_pattern                                                    
    );                                                                
                                                                      
    if ( RTEMS_SUCCESSFUL == sc ) {                                   
      sc = rtems_blkdev_create(                                       
 800b584:	78 04 08 00 	mvhi r4,0x800                                  
                                                                      
  for ( i = 0; i < blocks_with_buffer; ++i, data += media_block_size ) {
    sd->key_table[i].data = data;                                     
  }                                                                   
                                                                      
  sd->media_block_size = media_block_size;                            
 800b588:	59 6d 00 0c 	sw (r11+12),r13                                
      sparse_disk_delete,                                             
      fill_pattern                                                    
    );                                                                
                                                                      
    if ( RTEMS_SUCCESSFUL == sc ) {                                   
      sc = rtems_blkdev_create(                                       
 800b58c:	ba 40 08 00 	mv r1,r18                                      
 800b590:	b9 a0 10 00 	mv r2,r13                                      
 800b594:	b9 c0 18 00 	mv r3,r14                                      
 800b598:	38 84 b1 98 	ori r4,r4,0xb198                               
 800b59c:	b9 60 28 00 	mv r5,r11                                      
 800b5a0:	f8 00 0c 35 	calli 800e674 <rtems_blkdev_create>            
 800b5a4:	b8 20 40 00 	mv r8,r1                                       
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
 800b5a8:	b9 00 08 00 	mv r1,r8                                       
 800b5ac:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800b5b0:	2b 8b 00 28 	lw r11,(sp+40)                                 
 800b5b4:	2b 8c 00 24 	lw r12,(sp+36)                                 
 800b5b8:	2b 8d 00 20 	lw r13,(sp+32)                                 
 800b5bc:	2b 8e 00 1c 	lw r14,(sp+28)                                 
 800b5c0:	2b 8f 00 18 	lw r15,(sp+24)                                 
 800b5c4:	2b 90 00 14 	lw r16,(sp+20)                                 
 800b5c8:	2b 91 00 10 	lw r17,(sp+16)                                 
 800b5cc:	2b 92 00 0c 	lw r18,(sp+12)                                 
 800b5d0:	2b 93 00 08 	lw r19,(sp+8)                                  
 800b5d4:	37 9c 00 28 	addi sp,sp,40                                  
 800b5d8:	c3 a0 00 00 	ret                                            
                                                                      

08020688 <rtems_stack_checker_begin_extension>: Thread_Control *the_thread ) { Stack_check_Control *the_pattern; if ( the_thread->Object.id == 0 ) /* skip system tasks */
 8020688:	28 22 00 08 	lw r2,(r1+8)                                   
 802068c:	44 40 00 0c 	be r2,r0,80206bc <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;                                 
 8020690:	28 22 00 b4 	lw r2,(r1+180)                                 
 8020694:	78 01 08 06 	mvhi r1,0x806                                  
 8020698:	38 21 83 34 	ori r1,r1,0x8334                               
 802069c:	28 25 00 00 	lw r5,(r1+0)                                   
 80206a0:	28 24 00 04 	lw r4,(r1+4)                                   
 80206a4:	28 23 00 08 	lw r3,(r1+8)                                   
 80206a8:	28 21 00 0c 	lw r1,(r1+12)                                  
 80206ac:	58 45 00 08 	sw (r2+8),r5                                   
 80206b0:	58 44 00 0c 	sw (r2+12),r4                                  
 80206b4:	58 43 00 10 	sw (r2+16),r3                                  
 80206b8:	58 41 00 14 	sw (r2+20),r1                                  
 80206bc:	c3 a0 00 00 	ret                                            
                                                                      

080205b4 <rtems_stack_checker_create_extension>: */ bool rtems_stack_checker_create_extension( Thread_Control *running __attribute__((unused)), Thread_Control *the_thread ) {
 80205b4:	37 9c ff f8 	addi sp,sp,-8                                  
 80205b8:	5b 8b 00 08 	sw (sp+8),r11                                  
 80205bc:	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 )                                      
 80205c0:	78 01 08 06 	mvhi r1,0x806                                  
 80205c4:	38 21 79 d8 	ori r1,r1,0x79d8                               
 */                                                                   
bool rtems_stack_checker_create_extension(                            
  Thread_Control *running __attribute__((unused)),                    
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
 80205c8:	b8 40 58 00 	mv r11,r2                                      
  static    uint32_t pattern[ 4 ] = {                                 
    0xFEEDF00D, 0x0BAD0D06,  /* FEED FOOD to  BAD DOG */              
    0xDEADF00D, 0x600D0D06   /* DEAD FOOD but GOOD DOG */             
  };                                                                  
                                                                      
  if ( Stack_check_Initialized )                                      
 80205cc:	28 22 00 00 	lw r2,(r1+0)                                   
 80205d0:	5c 40 00 24 	bne r2,r0,8020660 <rtems_stack_checker_create_extension+0xac>
  /*                                                                  
   * Dope the pattern and fill areas                                  
   */                                                                 
  p = Stack_check_Pattern.pattern;                                    
  for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) {                        
      p[i] = pattern[ i%4 ];                                          
 80205d4:	78 04 08 05 	mvhi r4,0x805                                  
 80205d8:	38 84 d4 b4 	ori r4,r4,0xd4b4                               
 80205dc:	28 83 00 00 	lw r3,(r4+0)                                   
 80205e0:	78 01 08 06 	mvhi r1,0x806                                  
 80205e4:	78 04 08 05 	mvhi r4,0x805                                  
 80205e8:	38 21 83 34 	ori r1,r1,0x8334                               
 80205ec:	38 84 d4 b8 	ori r4,r4,0xd4b8                               
 80205f0:	58 23 00 00 	sw (r1+0),r3                                   
 80205f4:	28 83 00 00 	lw r3,(r4+0)                                   
 80205f8:	78 04 08 05 	mvhi r4,0x805                                  
 80205fc:	38 84 d4 bc 	ori r4,r4,0xd4bc                               
 8020600:	58 23 00 04 	sw (r1+4),r3                                   
 8020604:	28 83 00 00 	lw r3,(r4+0)                                   
 8020608:	78 04 08 05 	mvhi r4,0x805                                  
 802060c:	38 84 d4 c0 	ori r4,r4,0xd4c0                               
 8020610:	58 23 00 08 	sw (r1+8),r3                                   
 8020614:	28 83 00 00 	lw r3,(r4+0)                                   
 8020618:	58 23 00 0c 	sw (r1+12),r3                                  
  /*                                                                  
   * 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) {      
 802061c:	78 03 08 06 	mvhi r3,0x806                                  
 8020620:	38 63 81 40 	ori r3,r3,0x8140                               
 8020624:	28 61 00 00 	lw r1,(r3+0)                                   
 8020628:	44 22 00 0a 	be r1,r2,8020650 <rtems_stack_checker_create_extension+0x9c><== NEVER TAKEN
 802062c:	28 63 00 04 	lw r3,(r3+4)                                   
 8020630:	44 60 00 08 	be r3,r0,8020650 <rtems_stack_checker_create_extension+0x9c><== NEVER TAKEN
      Stack_check_Interrupt_stack.area = _CPU_Interrupt_stack_low;    
 8020634:	78 04 08 06 	mvhi r4,0x806                                  
 8020638:	38 84 83 44 	ori r4,r4,0x8344                               
      Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high -
 802063c:	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;    
 8020640:	58 81 00 04 	sw (r4+4),r1                                   
      Stack_check_Interrupt_stack.size = (char *) _CPU_Interrupt_stack_high -
 8020644:	58 83 00 00 	sw (r4+0),r3                                   
                                  (char *) _CPU_Interrupt_stack_low;  
      Stack_check_Dope_stack(&Stack_check_Interrupt_stack);           
 8020648:	34 02 00 a5 	mvi r2,165                                     
 802064c:	f8 00 6d 11 	calli 803ba90 <memset>                         
   }                                                                  
  #endif                                                              
                                                                      
  Stack_check_Initialized = 1;                                        
 8020650:	78 01 08 06 	mvhi r1,0x806                                  
 8020654:	38 21 79 d8 	ori r1,r1,0x79d8                               
 8020658:	34 02 00 01 	mvi r2,1                                       
 802065c:	58 22 00 00 	sw (r1+0),r2                                   
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  Stack_check_Initialize();                                           
                                                                      
  if (the_thread)                                                     
 8020660:	45 60 00 05 	be r11,r0,8020674 <rtems_stack_checker_create_extension+0xc0><== NEVER TAKEN
    Stack_check_Dope_stack(&the_thread->Start.Initial_stack);         
 8020664:	29 61 00 b4 	lw r1,(r11+180)                                
 8020668:	29 63 00 b0 	lw r3,(r11+176)                                
 802066c:	34 02 00 a5 	mvi r2,165                                     
 8020670:	f8 00 6d 08 	calli 803ba90 <memset>                         
                                                                      
  return true;                                                        
}                                                                     
 8020674:	34 01 00 01 	mvi r1,1                                       
 8020678:	2b 9d 00 04 	lw ra,(sp+4)                                   
 802067c:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8020680:	37 9c 00 08 	addi sp,sp,8                                   
 8020684:	c3 a0 00 00 	ret                                            
                                                                      

080207f4 <rtems_stack_checker_is_blown>: /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) {
 80207f4:	37 9c ff f4 	addi sp,sp,-12                                 
 80207f8:	5b 9b 00 08 	sw (sp+8),fp                                   
 80207fc:	34 1b 00 0c 	mvi fp,12                                      
 8020800:	b7 7c d8 00 	add fp,fp,sp                                   
 8020804:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8020808:	5b 9d 00 04 	sw (sp+4),ra                                   
  Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 
 802080c:	78 01 08 06 	mvhi r1,0x806                                  
 8020810:	38 21 81 40 	ori r1,r1,0x8140                               
 8020814:	28 22 00 10 	lw r2,(r1+16)                                  
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
      return false;                                                   
 8020818:	34 0b 00 00 	mvi r11,0                                      
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
 802081c:	28 41 00 b4 	lw r1,(r2+180)                                 
 8020820:	54 3b 00 04 	bgu r1,fp,8020830 <rtems_stack_checker_is_blown+0x3c><== NEVER TAKEN
      return false;                                                   
    }                                                                 
    if ( sp > (the_stack->area + the_stack->size) ) {                 
 8020824:	28 4b 00 b0 	lw r11,(r2+176)                                
}                                                                     
                                                                      
/*                                                                    
 *  Check if blown                                                    
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
 8020828:	b4 2b 58 00 	add r11,r1,r11                                 
 802082c:	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 ) {                                    
 8020830:	78 02 08 06 	mvhi r2,0x806                                  
 8020834:	38 42 79 d8 	ori r2,r2,0x79d8                               
 8020838:	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;                                   
 802083c:	34 02 00 01 	mvi r2,1                                       
                                                                      
  /*                                                                  
   * The stack checker must be initialized before the pattern is there
   * to check.                                                        
   */                                                                 
  if ( Stack_check_Initialized ) {                                    
 8020840:	44 60 00 07 	be r3,r0,802085c <rtems_stack_checker_is_blown+0x68><== NEVER TAKEN
    pattern_ok = (!memcmp(                                            
 8020844:	78 02 08 06 	mvhi r2,0x806                                  
 8020848:	38 42 83 34 	ori r2,r2,0x8334                               
 802084c:	34 21 00 08 	addi r1,r1,8                                   
 8020850:	34 03 00 10 	mvi r3,16                                      
 8020854:	f8 00 6b e0 	calli 803b7d4 <memcmp>                         
 8020858:	64 22 00 00 	cmpei r2,r1,0                                  
                                                                      
                                                                      
  /*                                                                  
   * Let's report as much as we can.                                  
   */                                                                 
  if ( !sp_ok || !pattern_ok ) {                                      
 802085c:	45 60 00 02 	be r11,r0,8020864 <rtems_stack_checker_is_blown+0x70><== NEVER TAKEN
 8020860:	5c 40 00 05 	bne r2,r0,8020874 <rtems_stack_checker_is_blown+0x80><== ALWAYS TAKEN
    Stack_check_report_blown_task( _Thread_Executing, pattern_ok );   
 8020864:	78 01 08 06 	mvhi r1,0x806                                  <== NOT EXECUTED
 8020868:	38 21 81 40 	ori r1,r1,0x8140                               <== NOT EXECUTED
 802086c:	28 21 00 10 	lw r1,(r1+16)                                  <== NOT EXECUTED
 8020870:	fb ff ff 94 	calli 80206c0 <Stack_check_report_blown_task>  <== NOT EXECUTED
                                                                      
  /*                                                                  
   * The Stack Pointer and the Pattern Area are OK so return false.   
   */                                                                 
  return false;                                                       
}                                                                     
 8020874:	34 01 00 00 	mvi r1,0                                       
 8020878:	2b 9d 00 04 	lw ra,(sp+4)                                   
 802087c:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8020880:	2b 9b 00 08 	lw fp,(sp+8)                                   
 8020884:	37 9c 00 0c 	addi sp,sp,12                                  
 8020888:	c3 a0 00 00 	ret                                            
                                                                      

0802088c <rtems_stack_checker_report_usage_with_plugin>: void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) {
 802088c:	37 9c ff ec 	addi sp,sp,-20                                 
 8020890:	5b 8b 00 14 	sw (sp+20),r11                                 
 8020894:	5b 8c 00 10 	sw (sp+16),r12                                 
 8020898:	5b 8d 00 0c 	sw (sp+12),r13                                 
 802089c:	5b 8e 00 08 	sw (sp+8),r14                                  
 80208a0:	5b 9d 00 04 	sw (sp+4),ra                                   
 80208a4:	b8 20 70 00 	mv r14,r1                                      
 80208a8:	b8 40 68 00 	mv r13,r2                                      
  if ( !print )                                                       
 80208ac:	44 40 00 15 	be r2,r0,8020900 <rtems_stack_checker_report_usage_with_plugin+0x74><== NEVER TAKEN
    return;                                                           
                                                                      
  print_context = context;                                            
  print_handler = print;                                              
 80208b0:	78 0b 08 06 	mvhi r11,0x806                                 
 80208b4:	39 6b 79 d4 	ori r11,r11,0x79d4                             
)                                                                     
{                                                                     
  if ( !print )                                                       
    return;                                                           
                                                                      
  print_context = context;                                            
 80208b8:	78 0c 08 06 	mvhi r12,0x806                                 
 80208bc:	39 8c 79 d0 	ori r12,r12,0x79d0                             
  print_handler = print;                                              
 80208c0:	59 62 00 00 	sw (r11+0),r2                                  
                                                                      
  (*print)( context, "Stack usage by thread\n");                      
 80208c4:	78 02 08 05 	mvhi r2,0x805                                  
 80208c8:	38 42 d4 4c 	ori r2,r2,0xd44c                               
)                                                                     
{                                                                     
  if ( !print )                                                       
    return;                                                           
                                                                      
  print_context = context;                                            
 80208cc:	59 81 00 00 	sw (r12+0),r1                                  
  print_handler = print;                                              
                                                                      
  (*print)( context, "Stack usage by thread\n");                      
 80208d0:	d9 a0 00 00 	call r13                                       
  (*print)( context,                                                  
 80208d4:	78 02 08 05 	mvhi r2,0x805                                  
 80208d8:	38 42 d4 64 	ori r2,r2,0xd464                               
 80208dc:	b9 c0 08 00 	mv r1,r14                                      
 80208e0:	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 );   
 80208e4:	78 01 08 02 	mvhi r1,0x802                                  
 80208e8:	38 21 03 ec 	ori r1,r1,0x3ec                                
 80208ec:	f8 00 14 e8 	calli 8025c8c <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);            
 80208f0:	34 01 ff ff 	mvi r1,-1                                      
 80208f4:	fb ff fe be 	calli 80203ec <Stack_check_Dump_threads_usage> 
  #endif                                                              
                                                                      
  print_context = NULL;                                               
 80208f8:	59 80 00 00 	sw (r12+0),r0                                  
  print_handler = NULL;                                               
 80208fc:	59 60 00 00 	sw (r11+0),r0                                  
}                                                                     
 8020900:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8020904:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8020908:	2b 8c 00 10 	lw r12,(sp+16)                                 
 802090c:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8020910:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8020914:	37 9c 00 14 	addi sp,sp,20                                  
 8020918:	c3 a0 00 00 	ret                                            
                                                                      

0802077c <rtems_stack_checker_switch_extension>: */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) {
 802077c:	37 9c ff f0 	addi sp,sp,-16                                 
 8020780:	5b 9b 00 08 	sw (sp+8),fp                                   
 8020784:	34 1b 00 10 	mvi fp,16                                      
 8020788:	b7 7c d8 00 	add fp,fp,sp                                   
 802078c:	5b 8b 00 10 	sw (sp+16),r11                                 
 8020790:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8020794:	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);                  
 8020798:	28 22 00 b4 	lw r2,(r1+180)                                 
 */                                                                   
void rtems_stack_checker_switch_extension(                            
  Thread_Control *running __attribute__((unused)),                    
  Thread_Control *heir __attribute__((unused))                        
)                                                                     
{                                                                     
 802079c:	b8 20 58 00 	mv r11,r1                                      
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
      return false;                                                   
 80207a0:	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);                  
 80207a4:	34 41 00 08 	addi r1,r2,8                                   
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
 80207a8:	54 5b 00 04 	bgu r2,fp,80207b8 <rtems_stack_checker_switch_extension+0x3c><== NEVER TAKEN
      return false;                                                   
    }                                                                 
    if ( sp > (the_stack->area + the_stack->size) ) {                 
 80207ac:	29 6c 00 b0 	lw r12,(r11+176)                               
}                                                                     
                                                                      
/*                                                                    
 *  rtems_stack_checker_switch_extension                              
 */                                                                   
void rtems_stack_checker_switch_extension(                            
 80207b0:	b4 4c 10 00 	add r2,r2,r12                                  
 80207b4:	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,                                     
 80207b8:	78 02 08 06 	mvhi r2,0x806                                  
 80207bc:	38 42 83 34 	ori r2,r2,0x8334                               
 80207c0:	34 03 00 10 	mvi r3,16                                      
 80207c4:	f8 00 6c 04 	calli 803b7d4 <memcmp>                         
 80207c8:	64 22 00 00 	cmpei r2,r1,0                                  
            (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
                                                                      
  if ( !sp_ok || !pattern_ok ) {                                      
 80207cc:	45 80 00 02 	be r12,r0,80207d4 <rtems_stack_checker_switch_extension+0x58><== NEVER TAKEN
 80207d0:	5c 40 00 03 	bne r2,r0,80207dc <rtems_stack_checker_switch_extension+0x60>
    Stack_check_report_blown_task( running, pattern_ok );             
 80207d4:	b9 60 08 00 	mv r1,r11                                      
 80207d8:	fb ff ff ba 	calli 80206c0 <Stack_check_report_blown_task>  
  }                                                                   
}                                                                     
 80207dc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80207e0:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80207e4:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80207e8:	2b 9b 00 08 	lw fp,(sp+8)                                   
 80207ec:	37 9c 00 10 	addi sp,sp,16                                  
 80207f0:	c3 a0 00 00 	ret                                            
                                                                      

08009c7c <rtems_string_to_double>: rtems_status_code rtems_string_to_double ( const char *s, double *n, char **endptr ) {
 8009c7c:	37 9c ff e0 	addi sp,sp,-32                                 
 8009c80:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8009c84:	5b 8c 00 18 	sw (sp+24),r12                                 
 8009c88:	5b 8d 00 14 	sw (sp+20),r13                                 
 8009c8c:	5b 8e 00 10 	sw (sp+16),r14                                 
 8009c90:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8009c94:	5b 90 00 08 	sw (sp+8),r16                                  
 8009c98:	5b 9d 00 04 	sw (sp+4),ra                                   
  double result;                                                      
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
 8009c9c:	34 0c 00 09 	mvi r12,9                                      
rtems_status_code rtems_string_to_double (                            
  const char *s,                                                      
  double *n,                                                          
  char **endptr                                                       
)                                                                     
{                                                                     
 8009ca0:	b8 20 78 00 	mv r15,r1                                      
 8009ca4:	b8 40 58 00 	mv r11,r2                                      
 8009ca8:	b8 60 80 00 	mv r16,r3                                      
  double result;                                                      
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 8009cac:	44 40 00 2e 	be r2,r0,8009d64 <rtems_string_to_double+0xe8> 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 8009cb0:	f8 00 0b a9 	calli 800cb54 <__errno>                        
 8009cb4:	58 20 00 00 	sw (r1+0),r0                                   
  *n = 0;                                                             
 8009cb8:	59 60 00 00 	sw (r11+0),r0                                  
 8009cbc:	59 60 00 04 	sw (r11+4),r0                                  
                                                                      
  result = strtod( s, &end );                                         
 8009cc0:	b9 e0 08 00 	mv r1,r15                                      
 8009cc4:	37 82 00 20 	addi r2,sp,32                                  
 8009cc8:	f8 00 16 b9 	calli 800f7ac <strtod>                         
 8009ccc:	b8 20 70 00 	mv r14,r1                                      
 8009cd0:	b8 40 68 00 	mv r13,r2                                      
                                                                      
  if ( endptr )                                                       
 8009cd4:	46 00 00 03 	be r16,r0,8009ce0 <rtems_string_to_double+0x64>
    *endptr = end;                                                    
 8009cd8:	2b 81 00 20 	lw r1,(sp+32)                                  
 8009cdc:	5a 01 00 00 	sw (r16+0),r1                                  
                                                                      
  if ( end == s )                                                     
 8009ce0:	2b 81 00 20 	lw r1,(sp+32)                                  
    return RTEMS_NOT_DEFINED;                                         
 8009ce4:	34 0c 00 0b 	mvi r12,11                                     
  result = strtod( s, &end );                                         
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
 8009ce8:	44 2f 00 1f 	be r1,r15,8009d64 <rtems_string_to_double+0xe8>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 8009cec:	f8 00 0b 9a 	calli 800cb54 <__errno>                        
 8009cf0:	28 22 00 00 	lw r2,(r1+0)                                   
 8009cf4:	34 01 00 22 	mvi r1,34                                      
 8009cf8:	5c 41 00 18 	bne r2,r1,8009d58 <rtems_string_to_double+0xdc>
 8009cfc:	b9 c0 08 00 	mv r1,r14                                      
 8009d00:	b9 a0 10 00 	mv r2,r13                                      
 8009d04:	34 03 00 00 	mvi r3,0                                       
 8009d08:	34 04 00 00 	mvi r4,0                                       
 8009d0c:	fb ff e5 01 	calli 8003110 <__eqdf2>                        
    (( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
      return RTEMS_INVALID_NUMBER;                                    
 8009d10:	34 0c 00 0a 	mvi r12,10                                     
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 8009d14:	44 20 00 14 	be r1,r0,8009d64 <rtems_string_to_double+0xe8> <== NEVER TAKEN
    (( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
 8009d18:	78 04 08 02 	mvhi r4,0x802                                  
 8009d1c:	38 84 04 9c 	ori r4,r4,0x49c                                
 8009d20:	28 83 00 00 	lw r3,(r4+0)                                   
 8009d24:	b9 c0 08 00 	mv r1,r14                                      
 8009d28:	b9 a0 10 00 	mv r2,r13                                      
 8009d2c:	34 04 ff ff 	mvi r4,-1                                      
 8009d30:	f8 00 46 72 	calli 801b6f8 <__gedf2>                        
 8009d34:	48 20 00 0c 	bg r1,r0,8009d64 <rtems_string_to_double+0xe8> 
 8009d38:	78 04 08 02 	mvhi r4,0x802                                  
 8009d3c:	38 84 04 a0 	ori r4,r4,0x4a0                                
 8009d40:	28 83 00 00 	lw r3,(r4+0)                                   
 8009d44:	b9 c0 08 00 	mv r1,r14                                      
 8009d48:	b9 a0 10 00 	mv r2,r13                                      
 8009d4c:	34 04 ff ff 	mvi r4,-1                                      
 8009d50:	f8 00 46 d3 	calli 801b89c <__ledf2>                        
 8009d54:	48 01 00 04 	bg r0,r1,8009d64 <rtems_string_to_double+0xe8> <== ALWAYS TAKEN
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 8009d58:	59 6e 00 00 	sw (r11+0),r14                                 
 8009d5c:	59 6d 00 04 	sw (r11+4),r13                                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 8009d60:	34 0c 00 00 	mvi r12,0                                      
}                                                                     
 8009d64:	b9 80 08 00 	mv r1,r12                                      
 8009d68:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009d6c:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8009d70:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8009d74:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8009d78:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8009d7c:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8009d80:	2b 90 00 08 	lw r16,(sp+8)                                  
 8009d84:	37 9c 00 20 	addi sp,sp,32                                  
 8009d88:	c3 a0 00 00 	ret                                            
                                                                      

08009d8c <rtems_string_to_float>: rtems_status_code rtems_string_to_float ( const char *s, float *n, char **endptr ) {
 8009d8c:	37 9c ff e4 	addi sp,sp,-28                                 
 8009d90:	5b 8b 00 18 	sw (sp+24),r11                                 
 8009d94:	5b 8c 00 14 	sw (sp+20),r12                                 
 8009d98:	5b 8d 00 10 	sw (sp+16),r13                                 
 8009d9c:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8009da0:	5b 8f 00 08 	sw (sp+8),r15                                  
 8009da4:	5b 9d 00 04 	sw (sp+4),ra                                   
  float result;                                                       
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
 8009da8:	34 0b 00 09 	mvi r11,9                                      
rtems_status_code rtems_string_to_float (                             
  const char *s,                                                      
  float *n,                                                           
  char **endptr                                                       
)                                                                     
{                                                                     
 8009dac:	b8 20 70 00 	mv r14,r1                                      
 8009db0:	b8 40 68 00 	mv r13,r2                                      
 8009db4:	b8 60 78 00 	mv r15,r3                                      
  float result;                                                       
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 8009db8:	44 40 00 25 	be r2,r0,8009e4c <rtems_string_to_float+0xc0>  
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 8009dbc:	f8 00 0b 66 	calli 800cb54 <__errno>                        
 8009dc0:	58 20 00 00 	sw (r1+0),r0                                   
  *n = 0;                                                             
 8009dc4:	59 a0 00 00 	sw (r13+0),r0                                  
                                                                      
  result = strtof( s, &end );                                         
 8009dc8:	b9 c0 08 00 	mv r1,r14                                      
 8009dcc:	37 82 00 1c 	addi r2,sp,28                                  
 8009dd0:	f8 00 16 83 	calli 800f7dc <strtof>                         
 8009dd4:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  if ( endptr )                                                       
 8009dd8:	45 e0 00 03 	be r15,r0,8009de4 <rtems_string_to_float+0x58> 
    *endptr = end;                                                    
 8009ddc:	2b 81 00 1c 	lw r1,(sp+28)                                  
 8009de0:	59 e1 00 00 	sw (r15+0),r1                                  
                                                                      
  if ( end == s )                                                     
 8009de4:	2b 81 00 1c 	lw r1,(sp+28)                                  
    return RTEMS_NOT_DEFINED;                                         
 8009de8:	34 0b 00 0b 	mvi r11,11                                     
  result = strtof( s, &end );                                         
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
 8009dec:	44 2e 00 18 	be r1,r14,8009e4c <rtems_string_to_float+0xc0> 
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 8009df0:	f8 00 0b 59 	calli 800cb54 <__errno>                        
 8009df4:	28 22 00 00 	lw r2,(r1+0)                                   
 8009df8:	34 01 00 22 	mvi r1,34                                      
 8009dfc:	5c 41 00 12 	bne r2,r1,8009e44 <rtems_string_to_float+0xb8> 
 8009e00:	b9 80 08 00 	mv r1,r12                                      
 8009e04:	34 02 00 00 	mvi r2,0                                       
 8009e08:	fb ff e4 8a 	calli 8003030 <__eqsf2>                        
    (( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
      return RTEMS_INVALID_NUMBER;                                    
 8009e0c:	34 0b 00 0a 	mvi r11,10                                     
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 8009e10:	44 20 00 0f 	be r1,r0,8009e4c <rtems_string_to_float+0xc0>  <== NEVER TAKEN
    (( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
 8009e14:	78 03 08 02 	mvhi r3,0x802                                  
 8009e18:	38 63 04 a4 	ori r3,r3,0x4a4                                
 8009e1c:	28 62 00 00 	lw r2,(r3+0)                                   
 8009e20:	b9 80 08 00 	mv r1,r12                                      
 8009e24:	f8 00 3f ea 	calli 8019dcc <__gesf2>                        
 8009e28:	48 20 00 09 	bg r1,r0,8009e4c <rtems_string_to_float+0xc0>  
 8009e2c:	78 03 08 02 	mvhi r3,0x802                                  
 8009e30:	38 63 04 a8 	ori r3,r3,0x4a8                                
 8009e34:	28 62 00 00 	lw r2,(r3+0)                                   
 8009e38:	b9 80 08 00 	mv r1,r12                                      
 8009e3c:	f8 00 40 36 	calli 8019f14 <__lesf2>                        
 8009e40:	48 01 00 03 	bg r0,r1,8009e4c <rtems_string_to_float+0xc0>  <== ALWAYS TAKEN
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 8009e44:	59 ac 00 00 	sw (r13+0),r12                                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 8009e48:	34 0b 00 00 	mvi r11,0                                      
}                                                                     
 8009e4c:	b9 60 08 00 	mv r1,r11                                      
 8009e50:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8009e54:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8009e58:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8009e5c:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8009e60:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8009e64:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8009e68:	37 9c 00 1c 	addi sp,sp,28                                  
 8009e6c:	c3 a0 00 00 	ret                                            
                                                                      

0801ab5c <rtems_string_to_int>: const char *s, int *n, char **endptr, int base ) {
 801ab5c:	37 9c ff e8 	addi sp,sp,-24                                 
 801ab60:	5b 8b 00 14 	sw (sp+20),r11                                 
 801ab64:	5b 8c 00 10 	sw (sp+16),r12                                 
 801ab68:	5b 8d 00 0c 	sw (sp+12),r13                                 
 801ab6c:	5b 8e 00 08 	sw (sp+8),r14                                  
 801ab70:	5b 9d 00 04 	sw (sp+4),ra                                   
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
 801ab74:	34 05 00 09 	mvi r5,9                                       
  const char *s,                                                      
  int *n,                                                             
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
 801ab78:	b8 20 68 00 	mv r13,r1                                      
 801ab7c:	b8 40 60 00 	mv r12,r2                                      
 801ab80:	b8 60 70 00 	mv r14,r3                                      
 801ab84:	b8 80 58 00 	mv r11,r4                                      
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 801ab88:	44 40 00 1f 	be r2,r0,801ac04 <rtems_string_to_int+0xa8>    
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 801ab8c:	f8 00 74 12 	calli 8037bd4 <__errno>                        
 801ab90:	58 20 00 00 	sw (r1+0),r0                                   
  *n = 0;                                                             
                                                                      
  result = strtol( s, &end, base );                                   
 801ab94:	b9 60 18 00 	mv r3,r11                                      
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
 801ab98:	59 80 00 00 	sw (r12+0),r0                                  
                                                                      
  result = strtol( s, &end, base );                                   
 801ab9c:	b9 a0 08 00 	mv r1,r13                                      
 801aba0:	37 82 00 18 	addi r2,sp,24                                  
 801aba4:	f8 00 97 6b 	calli 8040950 <strtol>                         
 801aba8:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  if ( endptr )                                                       
 801abac:	45 c0 00 03 	be r14,r0,801abb8 <rtems_string_to_int+0x5c>   
    *endptr = end;                                                    
 801abb0:	2b 81 00 18 	lw r1,(sp+24)                                  
 801abb4:	59 c1 00 00 	sw (r14+0),r1                                  
                                                                      
  if ( end == s )                                                     
 801abb8:	2b 81 00 18 	lw r1,(sp+24)                                  
    return RTEMS_NOT_DEFINED;                                         
 801abbc:	34 05 00 0b 	mvi r5,11                                      
  result = strtol( s, &end, base );                                   
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
 801abc0:	44 2d 00 11 	be r1,r13,801ac04 <rtems_string_to_int+0xa8>   
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 801abc4:	f8 00 74 04 	calli 8037bd4 <__errno>                        
 801abc8:	28 22 00 00 	lw r2,(r1+0)                                   
 801abcc:	34 01 00 22 	mvi r1,34                                      
 801abd0:	5c 41 00 0b 	bne r2,r1,801abfc <rtems_string_to_int+0xa0>   
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
 801abd4:	78 02 08 05 	mvhi r2,0x805                                  
 801abd8:	38 42 bd c0 	ori r2,r2,0xbdc0                               
 801abdc:	28 41 00 00 	lw r1,(r2+0)                                   
 801abe0:	65 62 00 00 	cmpei r2,r11,0                                 
      return RTEMS_INVALID_NUMBER;                                    
 801abe4:	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 )))
 801abe8:	e5 61 08 00 	cmpe r1,r11,r1                                 
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 801abec:	b8 22 08 00 	or r1,r1,r2                                    
 801abf0:	5c 20 00 05 	bne r1,r0,801ac04 <rtems_string_to_int+0xa8>   
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
 801abf4:	78 01 80 00 	mvhi r1,0x8000                                 
 801abf8:	45 61 00 03 	be r11,r1,801ac04 <rtems_string_to_int+0xa8>   <== ALWAYS TAKEN
    errno = ERANGE;                                                   
    return RTEMS_INVALID_NUMBER;                                      
  }                                                                   
#endif                                                                
                                                                      
  *n = result;                                                        
 801abfc:	59 8b 00 00 	sw (r12+0),r11                                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 801ac00:	34 05 00 00 	mvi r5,0                                       
}                                                                     
 801ac04:	b8 a0 08 00 	mv r1,r5                                       
 801ac08:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801ac0c:	2b 8b 00 14 	lw r11,(sp+20)                                 
 801ac10:	2b 8c 00 10 	lw r12,(sp+16)                                 
 801ac14:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 801ac18:	2b 8e 00 08 	lw r14,(sp+8)                                  
 801ac1c:	37 9c 00 18 	addi sp,sp,24                                  
 801ac20:	c3 a0 00 00 	ret                                            
                                                                      

0800a028 <rtems_string_to_long>: const char *s, long *n, char **endptr, int base ) {
 800a028:	37 9c ff e8 	addi sp,sp,-24                                 
 800a02c:	5b 8b 00 14 	sw (sp+20),r11                                 
 800a030:	5b 8c 00 10 	sw (sp+16),r12                                 
 800a034:	5b 8d 00 0c 	sw (sp+12),r13                                 
 800a038:	5b 8e 00 08 	sw (sp+8),r14                                  
 800a03c:	5b 9d 00 04 	sw (sp+4),ra                                   
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
 800a040:	34 05 00 09 	mvi r5,9                                       
  const char *s,                                                      
  long *n,                                                            
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
 800a044:	b8 20 68 00 	mv r13,r1                                      
 800a048:	b8 40 60 00 	mv r12,r2                                      
 800a04c:	b8 60 70 00 	mv r14,r3                                      
 800a050:	b8 80 58 00 	mv r11,r4                                      
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 800a054:	44 40 00 1f 	be r2,r0,800a0d0 <rtems_string_to_long+0xa8>   
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 800a058:	f8 00 0a bf 	calli 800cb54 <__errno>                        
 800a05c:	58 20 00 00 	sw (r1+0),r0                                   
  *n = 0;                                                             
                                                                      
  result = strtol( s, &end, base );                                   
 800a060:	b9 60 18 00 	mv r3,r11                                      
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
 800a064:	59 80 00 00 	sw (r12+0),r0                                  
                                                                      
  result = strtol( s, &end, base );                                   
 800a068:	b9 a0 08 00 	mv r1,r13                                      
 800a06c:	37 82 00 18 	addi r2,sp,24                                  
 800a070:	f8 00 16 8e 	calli 800faa8 <strtol>                         
 800a074:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  if ( endptr )                                                       
 800a078:	45 c0 00 03 	be r14,r0,800a084 <rtems_string_to_long+0x5c>  
    *endptr = end;                                                    
 800a07c:	2b 81 00 18 	lw r1,(sp+24)                                  
 800a080:	59 c1 00 00 	sw (r14+0),r1                                  
                                                                      
  if ( end == s )                                                     
 800a084:	2b 81 00 18 	lw r1,(sp+24)                                  
    return RTEMS_NOT_DEFINED;                                         
 800a088:	34 05 00 0b 	mvi r5,11                                      
  result = strtol( s, &end, base );                                   
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
 800a08c:	44 2d 00 11 	be r1,r13,800a0d0 <rtems_string_to_long+0xa8>  
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 800a090:	f8 00 0a b1 	calli 800cb54 <__errno>                        
 800a094:	28 22 00 00 	lw r2,(r1+0)                                   
 800a098:	34 01 00 22 	mvi r1,34                                      
 800a09c:	5c 41 00 0b 	bne r2,r1,800a0c8 <rtems_string_to_long+0xa0>  
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
 800a0a0:	78 02 08 01 	mvhi r2,0x801                                  
 800a0a4:	38 42 fb d8 	ori r2,r2,0xfbd8                               
 800a0a8:	28 41 00 00 	lw r1,(r2+0)                                   
 800a0ac:	65 62 00 00 	cmpei r2,r11,0                                 
      return RTEMS_INVALID_NUMBER;                                    
 800a0b0:	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 )))
 800a0b4:	e5 61 08 00 	cmpe r1,r11,r1                                 
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 800a0b8:	b8 22 08 00 	or r1,r1,r2                                    
 800a0bc:	5c 20 00 05 	bne r1,r0,800a0d0 <rtems_string_to_long+0xa8>  
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
 800a0c0:	78 01 80 00 	mvhi r1,0x8000                                 
 800a0c4:	45 61 00 03 	be r11,r1,800a0d0 <rtems_string_to_long+0xa8>  <== ALWAYS TAKEN
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 800a0c8:	59 8b 00 00 	sw (r12+0),r11                                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800a0cc:	34 05 00 00 	mvi r5,0                                       
}                                                                     
 800a0d0:	b8 a0 08 00 	mv r1,r5                                       
 800a0d4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a0d8:	2b 8b 00 14 	lw r11,(sp+20)                                 
 800a0dc:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800a0e0:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800a0e4:	2b 8e 00 08 	lw r14,(sp+8)                                  
 800a0e8:	37 9c 00 18 	addi sp,sp,24                                  
 800a0ec:	c3 a0 00 00 	ret                                            
                                                                      

08009f38 <rtems_string_to_long_long>: const char *s, long long *n, char **endptr, int base ) {
 8009f38:	37 9c ff e4 	addi sp,sp,-28                                 
 8009f3c:	5b 8b 00 18 	sw (sp+24),r11                                 
 8009f40:	5b 8c 00 14 	sw (sp+20),r12                                 
 8009f44:	5b 8d 00 10 	sw (sp+16),r13                                 
 8009f48:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8009f4c:	5b 8f 00 08 	sw (sp+8),r15                                  
 8009f50:	5b 9d 00 04 	sw (sp+4),ra                                   
  long long result;                                                   
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
 8009f54:	34 05 00 09 	mvi r5,9                                       
  const char *s,                                                      
  long long *n,                                                       
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
 8009f58:	b8 20 70 00 	mv r14,r1                                      
 8009f5c:	b8 40 58 00 	mv r11,r2                                      
 8009f60:	b8 60 78 00 	mv r15,r3                                      
 8009f64:	b8 80 60 00 	mv r12,r4                                      
  long long result;                                                   
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 8009f68:	44 40 00 27 	be r2,r0,800a004 <rtems_string_to_long_long+0xcc><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 8009f6c:	f8 00 0a fa 	calli 800cb54 <__errno>                        
 8009f70:	58 20 00 00 	sw (r1+0),r0                                   
  *n = 0;                                                             
                                                                      
  result = strtoll( s, &end, base );                                  
 8009f74:	b9 80 18 00 	mv r3,r12                                      
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
 8009f78:	59 60 00 00 	sw (r11+0),r0                                  
 8009f7c:	59 60 00 04 	sw (r11+4),r0                                  
                                                                      
  result = strtoll( s, &end, base );                                  
 8009f80:	b9 c0 08 00 	mv r1,r14                                      
 8009f84:	37 82 00 1c 	addi r2,sp,28                                  
 8009f88:	f8 00 16 d6 	calli 800fae0 <strtoll>                        
 8009f8c:	b8 20 68 00 	mv r13,r1                                      
 8009f90:	b8 40 60 00 	mv r12,r2                                      
                                                                      
  if ( endptr )                                                       
 8009f94:	45 e0 00 03 	be r15,r0,8009fa0 <rtems_string_to_long_long+0x68>
    *endptr = end;                                                    
 8009f98:	2b 81 00 1c 	lw r1,(sp+28)                                  
 8009f9c:	59 e1 00 00 	sw (r15+0),r1                                  
                                                                      
  if ( end == s )                                                     
 8009fa0:	2b 81 00 1c 	lw r1,(sp+28)                                  
    return RTEMS_NOT_DEFINED;                                         
 8009fa4:	34 05 00 0b 	mvi r5,11                                      
  result = strtoll( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
 8009fa8:	44 2e 00 17 	be r1,r14,800a004 <rtems_string_to_long_long+0xcc><== NEVER TAKEN
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 8009fac:	f8 00 0a ea 	calli 800cb54 <__errno>                        
 8009fb0:	28 22 00 00 	lw r2,(r1+0)                                   
 8009fb4:	34 01 00 22 	mvi r1,34                                      
 8009fb8:	5c 41 00 10 	bne r2,r1,8009ff8 <rtems_string_to_long_long+0xc0>
    (( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
 8009fbc:	78 02 08 01 	mvhi r2,0x801                                  
 8009fc0:	38 42 fb d8 	ori r2,r2,0xfbd8                               
 8009fc4:	28 41 00 00 	lw r1,(r2+0)                                   
 8009fc8:	a5 80 10 00 	not r2,r12                                     
      return RTEMS_INVALID_NUMBER;                                    
 8009fcc:	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 )))
 8009fd0:	99 a1 08 00 	xor r1,r13,r1                                  
 8009fd4:	b8 22 08 00 	or r1,r1,r2                                    
 8009fd8:	b9 ac 10 00 	or r2,r13,r12                                  
 8009fdc:	64 21 00 00 	cmpei r1,r1,0                                  
 8009fe0:	64 42 00 00 	cmpei r2,r2,0                                  
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 8009fe4:	b8 22 08 00 	or r1,r1,r2                                    
 8009fe8:	5c 20 00 07 	bne r1,r0,800a004 <rtems_string_to_long_long+0xcc><== NEVER TAKEN
    (( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
 8009fec:	78 01 80 00 	mvhi r1,0x8000                                 
 8009ff0:	5d a1 00 02 	bne r13,r1,8009ff8 <rtems_string_to_long_long+0xc0><== NEVER TAKEN
 8009ff4:	45 80 00 04 	be r12,r0,800a004 <rtems_string_to_long_long+0xcc>
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 8009ff8:	59 6d 00 00 	sw (r11+0),r13                                 
 8009ffc:	59 6c 00 04 	sw (r11+4),r12                                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800a000:	34 05 00 00 	mvi r5,0                                       
}                                                                     
 800a004:	b8 a0 08 00 	mv r1,r5                                       
 800a008:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a00c:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800a010:	2b 8c 00 14 	lw r12,(sp+20)                                 
 800a014:	2b 8d 00 10 	lw r13,(sp+16)                                 
 800a018:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800a01c:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800a020:	37 9c 00 1c 	addi sp,sp,28                                  
 800a024:	c3 a0 00 00 	ret                                            
                                                                      

0801ac40 <rtems_string_to_unsigned_char>: const char *s, unsigned char *n, char **endptr, int base ) {
 801ac40:	37 9c ff e8 	addi sp,sp,-24                                 
 801ac44:	5b 8b 00 14 	sw (sp+20),r11                                 
 801ac48:	5b 8c 00 10 	sw (sp+16),r12                                 
 801ac4c:	5b 8d 00 0c 	sw (sp+12),r13                                 
 801ac50:	5b 8e 00 08 	sw (sp+8),r14                                  
 801ac54:	5b 9d 00 04 	sw (sp+4),ra                                   
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
 801ac58:	34 05 00 09 	mvi r5,9                                       
  const char *s,                                                      
  unsigned char *n,                                                   
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
 801ac5c:	b8 20 68 00 	mv r13,r1                                      
 801ac60:	b8 40 58 00 	mv r11,r2                                      
 801ac64:	b8 60 70 00 	mv r14,r3                                      
 801ac68:	b8 80 60 00 	mv r12,r4                                      
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 801ac6c:	44 40 00 20 	be r2,r0,801acec <rtems_string_to_unsigned_char+0xac>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 801ac70:	f8 00 73 d9 	calli 8037bd4 <__errno>                        
 801ac74:	58 20 00 00 	sw (r1+0),r0                                   
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
 801ac78:	b9 80 18 00 	mv r3,r12                                      
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
 801ac7c:	31 60 00 00 	sb (r11+0),r0                                  
                                                                      
  result = strtoul( s, &end, base );                                  
 801ac80:	b9 a0 08 00 	mv r1,r13                                      
 801ac84:	37 82 00 18 	addi r2,sp,24                                  
 801ac88:	f8 00 98 ab 	calli 8040f34 <strtoul>                        
 801ac8c:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  if ( endptr )                                                       
 801ac90:	45 c0 00 03 	be r14,r0,801ac9c <rtems_string_to_unsigned_char+0x5c>
    *endptr = end;                                                    
 801ac94:	2b 81 00 18 	lw r1,(sp+24)                                  
 801ac98:	59 c1 00 00 	sw (r14+0),r1                                  
                                                                      
  if ( end == s )                                                     
 801ac9c:	2b 81 00 18 	lw r1,(sp+24)                                  
    return RTEMS_NOT_DEFINED;                                         
 801aca0:	34 05 00 0b 	mvi r5,11                                      
  result = strtoul( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
 801aca4:	44 2d 00 12 	be r1,r13,801acec <rtems_string_to_unsigned_char+0xac>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 801aca8:	f8 00 73 cb 	calli 8037bd4 <__errno>                        
 801acac:	28 22 00 00 	lw r2,(r1+0)                                   
 801acb0:	34 01 00 22 	mvi r1,34                                      
 801acb4:	5c 41 00 05 	bne r2,r1,801acc8 <rtems_string_to_unsigned_char+0x88>
    (( result == 0 ) || ( result == ULONG_MAX )))                     
 801acb8:	35 82 ff ff 	addi r2,r12,-1                                 
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 801acbc:	34 01 ff fd 	mvi r1,-3                                      
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
 801acc0:	34 05 00 0a 	mvi r5,10                                      
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 801acc4:	54 41 00 0a 	bgu r2,r1,801acec <rtems_string_to_unsigned_char+0xac><== ALWAYS TAKEN
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
#if (UCHAR_MAX < ULONG_MAX)                                           
  if ( result > UCHAR_MAX ) {                                         
 801acc8:	34 01 00 ff 	mvi r1,255                                     
 801accc:	50 2c 00 06 	bgeu r1,r12,801ace4 <rtems_string_to_unsigned_char+0xa4>
    errno = ERANGE;                                                   
 801acd0:	f8 00 73 c1 	calli 8037bd4 <__errno>                        
 801acd4:	34 02 00 22 	mvi r2,34                                      
 801acd8:	58 22 00 00 	sw (r1+0),r2                                   
    return RTEMS_INVALID_NUMBER;                                      
 801acdc:	34 05 00 0a 	mvi r5,10                                      
 801ace0:	e0 00 00 03 	bi 801acec <rtems_string_to_unsigned_char+0xac>
  }                                                                   
#endif                                                                
                                                                      
  *n = result;                                                        
 801ace4:	31 6c 00 00 	sb (r11+0),r12                                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 801ace8:	34 05 00 00 	mvi r5,0                                       
}                                                                     
 801acec:	b8 a0 08 00 	mv r1,r5                                       
 801acf0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801acf4:	2b 8b 00 14 	lw r11,(sp+20)                                 
 801acf8:	2b 8c 00 10 	lw r12,(sp+16)                                 
 801acfc:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 801ad00:	2b 8e 00 08 	lw r14,(sp+8)                                  
 801ad04:	37 9c 00 18 	addi sp,sp,24                                  
 801ad08:	c3 a0 00 00 	ret                                            
                                                                      

0800a1d8 <rtems_string_to_unsigned_int>: const char *s, unsigned int *n, char **endptr, int base ) {
 800a1d8:	37 9c ff e8 	addi sp,sp,-24                                 
 800a1dc:	5b 8b 00 14 	sw (sp+20),r11                                 
 800a1e0:	5b 8c 00 10 	sw (sp+16),r12                                 
 800a1e4:	5b 8d 00 0c 	sw (sp+12),r13                                 
 800a1e8:	5b 8e 00 08 	sw (sp+8),r14                                  
 800a1ec:	5b 9d 00 04 	sw (sp+4),ra                                   
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
 800a1f0:	34 05 00 09 	mvi r5,9                                       
  const char *s,                                                      
  unsigned int *n,                                                    
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
 800a1f4:	b8 20 68 00 	mv r13,r1                                      
 800a1f8:	b8 40 58 00 	mv r11,r2                                      
 800a1fc:	b8 60 70 00 	mv r14,r3                                      
 800a200:	b8 80 60 00 	mv r12,r4                                      
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 800a204:	44 40 00 19 	be r2,r0,800a268 <rtems_string_to_unsigned_int+0x90>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 800a208:	f8 00 0a 53 	calli 800cb54 <__errno>                        
 800a20c:	58 20 00 00 	sw (r1+0),r0                                   
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
 800a210:	b9 80 18 00 	mv r3,r12                                      
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
 800a214:	59 60 00 00 	sw (r11+0),r0                                  
                                                                      
  result = strtoul( s, &end, base );                                  
 800a218:	b9 a0 08 00 	mv r1,r13                                      
 800a21c:	37 82 00 18 	addi r2,sp,24                                  
 800a220:	f8 00 17 9b 	calli 801008c <strtoul>                        
 800a224:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  if ( endptr )                                                       
 800a228:	45 c0 00 03 	be r14,r0,800a234 <rtems_string_to_unsigned_int+0x5c>
    *endptr = end;                                                    
 800a22c:	2b 81 00 18 	lw r1,(sp+24)                                  
 800a230:	59 c1 00 00 	sw (r14+0),r1                                  
                                                                      
  if ( end == s )                                                     
 800a234:	2b 81 00 18 	lw r1,(sp+24)                                  
    return RTEMS_NOT_DEFINED;                                         
 800a238:	34 05 00 0b 	mvi r5,11                                      
  result = strtoul( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
 800a23c:	44 2d 00 0b 	be r1,r13,800a268 <rtems_string_to_unsigned_int+0x90>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 800a240:	f8 00 0a 45 	calli 800cb54 <__errno>                        
 800a244:	28 22 00 00 	lw r2,(r1+0)                                   
 800a248:	34 01 00 22 	mvi r1,34                                      
 800a24c:	5c 41 00 05 	bne r2,r1,800a260 <rtems_string_to_unsigned_int+0x88>
    (( result == 0 ) || ( result == ULONG_MAX )))                     
 800a250:	35 82 ff ff 	addi r2,r12,-1                                 
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 800a254:	34 01 ff fd 	mvi r1,-3                                      
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
 800a258:	34 05 00 0a 	mvi r5,10                                      
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 800a25c:	54 41 00 03 	bgu r2,r1,800a268 <rtems_string_to_unsigned_int+0x90><== ALWAYS TAKEN
    errno = ERANGE;                                                   
    return RTEMS_INVALID_NUMBER;                                      
  }                                                                   
#endif                                                                
                                                                      
  *n = result;                                                        
 800a260:	59 6c 00 00 	sw (r11+0),r12                                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800a264:	34 05 00 00 	mvi r5,0                                       
}                                                                     
 800a268:	b8 a0 08 00 	mv r1,r5                                       
 800a26c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a270:	2b 8b 00 14 	lw r11,(sp+20)                                 
 800a274:	2b 8c 00 10 	lw r12,(sp+16)                                 
 800a278:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 800a27c:	2b 8e 00 08 	lw r14,(sp+8)                                  
 800a280:	37 9c 00 18 	addi sp,sp,24                                  
 800a284:	c3 a0 00 00 	ret                                            
                                                                      

08007d04 <rtems_string_to_unsigned_long>: const char *s, unsigned long *n, char **endptr, int base ) {
 8007d04:	37 9c ff e8 	addi sp,sp,-24                                 
 8007d08:	5b 8b 00 14 	sw (sp+20),r11                                 
 8007d0c:	5b 8c 00 10 	sw (sp+16),r12                                 
 8007d10:	5b 8d 00 0c 	sw (sp+12),r13                                 
 8007d14:	5b 8e 00 08 	sw (sp+8),r14                                  
 8007d18:	5b 9d 00 04 	sw (sp+4),ra                                   
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
 8007d1c:	34 05 00 09 	mvi r5,9                                       
  const char *s,                                                      
  unsigned long *n,                                                   
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
 8007d20:	b8 20 68 00 	mv r13,r1                                      
 8007d24:	b8 40 58 00 	mv r11,r2                                      
 8007d28:	b8 60 70 00 	mv r14,r3                                      
 8007d2c:	b8 80 60 00 	mv r12,r4                                      
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 8007d30:	44 40 00 19 	be r2,r0,8007d94 <rtems_string_to_unsigned_long+0x90>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 8007d34:	f8 00 bf a8 	calli 8037bd4 <__errno>                        
 8007d38:	58 20 00 00 	sw (r1+0),r0                                   
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
 8007d3c:	b9 80 18 00 	mv r3,r12                                      
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
 8007d40:	59 60 00 00 	sw (r11+0),r0                                  
                                                                      
  result = strtoul( s, &end, base );                                  
 8007d44:	b9 a0 08 00 	mv r1,r13                                      
 8007d48:	37 82 00 18 	addi r2,sp,24                                  
 8007d4c:	f8 00 e4 7a 	calli 8040f34 <strtoul>                        
 8007d50:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  if ( endptr )                                                       
 8007d54:	45 c0 00 03 	be r14,r0,8007d60 <rtems_string_to_unsigned_long+0x5c>
    *endptr = end;                                                    
 8007d58:	2b 81 00 18 	lw r1,(sp+24)                                  
 8007d5c:	59 c1 00 00 	sw (r14+0),r1                                  
                                                                      
  if ( end == s )                                                     
 8007d60:	2b 81 00 18 	lw r1,(sp+24)                                  
    return RTEMS_NOT_DEFINED;                                         
 8007d64:	34 05 00 0b 	mvi r5,11                                      
  result = strtoul( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
 8007d68:	44 2d 00 0b 	be r1,r13,8007d94 <rtems_string_to_unsigned_long+0x90>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 8007d6c:	f8 00 bf 9a 	calli 8037bd4 <__errno>                        
 8007d70:	28 22 00 00 	lw r2,(r1+0)                                   
 8007d74:	34 01 00 22 	mvi r1,34                                      
 8007d78:	5c 41 00 05 	bne r2,r1,8007d8c <rtems_string_to_unsigned_long+0x88>
    (( result == 0 ) || ( result == ULONG_MAX )))                     
 8007d7c:	35 82 ff ff 	addi r2,r12,-1                                 
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 8007d80:	34 01 ff fd 	mvi r1,-3                                      
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
 8007d84:	34 05 00 0a 	mvi r5,10                                      
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 8007d88:	54 41 00 03 	bgu r2,r1,8007d94 <rtems_string_to_unsigned_long+0x90><== ALWAYS TAKEN
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 8007d8c:	59 6c 00 00 	sw (r11+0),r12                                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 8007d90:	34 05 00 00 	mvi r5,0                                       
}                                                                     
 8007d94:	b8 a0 08 00 	mv r1,r5                                       
 8007d98:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8007d9c:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8007da0:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8007da4:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8007da8:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8007dac:	37 9c 00 18 	addi sp,sp,24                                  
 8007db0:	c3 a0 00 00 	ret                                            
                                                                      

0800a288 <rtems_string_to_unsigned_long_long>: const char *s, unsigned long long *n, char **endptr, int base ) {
 800a288:	37 9c ff e4 	addi sp,sp,-28                                 
 800a28c:	5b 8b 00 18 	sw (sp+24),r11                                 
 800a290:	5b 8c 00 14 	sw (sp+20),r12                                 
 800a294:	5b 8d 00 10 	sw (sp+16),r13                                 
 800a298:	5b 8e 00 0c 	sw (sp+12),r14                                 
 800a29c:	5b 8f 00 08 	sw (sp+8),r15                                  
 800a2a0:	5b 9d 00 04 	sw (sp+4),ra                                   
  unsigned long long result;                                          
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
 800a2a4:	34 05 00 09 	mvi r5,9                                       
  const char *s,                                                      
  unsigned long long *n,                                              
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
 800a2a8:	b8 20 70 00 	mv r14,r1                                      
 800a2ac:	b8 40 58 00 	mv r11,r2                                      
 800a2b0:	b8 60 78 00 	mv r15,r3                                      
 800a2b4:	b8 80 60 00 	mv r12,r4                                      
  unsigned long long result;                                          
  char *end;                                                          
                                                                      
  if ( !n )                                                           
 800a2b8:	44 40 00 1f 	be r2,r0,800a334 <rtems_string_to_unsigned_long_long+0xac>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
 800a2bc:	f8 00 0a 26 	calli 800cb54 <__errno>                        
 800a2c0:	58 20 00 00 	sw (r1+0),r0                                   
  *n = 0;                                                             
                                                                      
  result = strtoull( s, &end, base );                                 
 800a2c4:	b9 80 18 00 	mv r3,r12                                      
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
 800a2c8:	59 60 00 00 	sw (r11+0),r0                                  
 800a2cc:	59 60 00 04 	sw (r11+4),r0                                  
                                                                      
  result = strtoull( s, &end, base );                                 
 800a2d0:	b9 c0 08 00 	mv r1,r14                                      
 800a2d4:	37 82 00 1c 	addi r2,sp,28                                  
 800a2d8:	f8 00 17 7b 	calli 80100c4 <strtoull>                       
 800a2dc:	b8 20 68 00 	mv r13,r1                                      
 800a2e0:	b8 40 60 00 	mv r12,r2                                      
                                                                      
  if ( endptr )                                                       
 800a2e4:	45 e0 00 03 	be r15,r0,800a2f0 <rtems_string_to_unsigned_long_long+0x68>
    *endptr = end;                                                    
 800a2e8:	2b 81 00 1c 	lw r1,(sp+28)                                  
 800a2ec:	59 e1 00 00 	sw (r15+0),r1                                  
                                                                      
  if ( end == s )                                                     
 800a2f0:	2b 81 00 1c 	lw r1,(sp+28)                                  
    return RTEMS_NOT_DEFINED;                                         
 800a2f4:	34 05 00 0b 	mvi r5,11                                      
  result = strtoull( s, &end, base );                                 
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
 800a2f8:	44 2e 00 0f 	be r1,r14,800a334 <rtems_string_to_unsigned_long_long+0xac>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 800a2fc:	f8 00 0a 16 	calli 800cb54 <__errno>                        
 800a300:	28 22 00 00 	lw r2,(r1+0)                                   
 800a304:	34 01 00 22 	mvi r1,34                                      
 800a308:	5c 41 00 08 	bne r2,r1,800a328 <rtems_string_to_unsigned_long_long+0xa0>
    (( result == 0 ) || ( result == ULONG_LONG_MAX )))                
 800a30c:	35 81 ff ff 	addi r1,r12,-1                                 
 800a310:	f5 81 18 00 	cmpgu r3,r12,r1                                
 800a314:	c8 0d 10 00 	sub r2,r0,r13                                  
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 800a318:	5c 62 00 04 	bne r3,r2,800a328 <rtems_string_to_unsigned_long_long+0xa0><== NEVER TAKEN
 800a31c:	34 02 ff fd 	mvi r2,-3                                      
    (( result == 0 ) || ( result == ULONG_LONG_MAX )))                
      return RTEMS_INVALID_NUMBER;                                    
 800a320:	34 05 00 0a 	mvi r5,10                                      
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
 800a324:	54 22 00 04 	bgu r1,r2,800a334 <rtems_string_to_unsigned_long_long+0xac><== ALWAYS TAKEN
    (( result == 0 ) || ( result == ULONG_LONG_MAX )))                
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
 800a328:	59 6d 00 00 	sw (r11+0),r13                                 
 800a32c:	59 6c 00 04 	sw (r11+4),r12                                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800a330:	34 05 00 00 	mvi r5,0                                       
}                                                                     
 800a334:	b8 a0 08 00 	mv r1,r5                                       
 800a338:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800a33c:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800a340:	2b 8c 00 14 	lw r12,(sp+20)                                 
 800a344:	2b 8d 00 10 	lw r13,(sp+16)                                 
 800a348:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 800a34c:	2b 8f 00 08 	lw r15,(sp+8)                                  
 800a350:	37 9c 00 1c 	addi sp,sp,28                                  
 800a354:	c3 a0 00 00 	ret                                            
                                                                      

08000e90 <rtems_tarfs_load>: int rtems_tarfs_load( const char *mountpoint, uint8_t *tar_image, size_t tar_size ) {
 8000e90:	37 9c fd fc 	addi sp,sp,-516                                
 8000e94:	5b 8b 00 44 	sw (sp+68),r11                                 
 8000e98:	5b 8c 00 40 	sw (sp+64),r12                                 
 8000e9c:	5b 8d 00 3c 	sw (sp+60),r13                                 
 8000ea0:	5b 8e 00 38 	sw (sp+56),r14                                 
 8000ea4:	5b 8f 00 34 	sw (sp+52),r15                                 
 8000ea8:	5b 90 00 30 	sw (sp+48),r16                                 
 8000eac:	5b 91 00 2c 	sw (sp+44),r17                                 
 8000eb0:	5b 92 00 28 	sw (sp+40),r18                                 
 8000eb4:	5b 93 00 24 	sw (sp+36),r19                                 
 8000eb8:	5b 94 00 20 	sw (sp+32),r20                                 
 8000ebc:	5b 95 00 1c 	sw (sp+28),r21                                 
 8000ec0:	5b 96 00 18 	sw (sp+24),r22                                 
 8000ec4:	5b 97 00 14 	sw (sp+20),r23                                 
 8000ec8:	5b 98 00 10 	sw (sp+16),r24                                 
 8000ecc:	5b 99 00 0c 	sw (sp+12),r25                                 
 8000ed0:	5b 9b 00 08 	sw (sp+8),fp                                   
 8000ed4:	5b 9d 00 04 	sw (sp+4),ra                                   
 8000ed8:	b8 20 98 00 	mv r19,r1                                      
 8000edc:	5b 83 00 50 	sw (sp+80),r3                                  
 8000ee0:	b8 40 a0 00 	mv r20,r2                                      
   IMFS_jnode_t                    *node;                             
   int rv = 0;                                                        
   int eval_flags = RTEMS_FS_FOLLOW_LINK;                             
   rtems_filesystem_eval_path_context_t ctx;                          
   rtems_filesystem_location_info_t rootloc;                          
   rtems_filesystem_location_info_t *currentloc =                     
 8000ee4:	34 03 00 18 	mvi r3,24                                      
 8000ee8:	ba 60 10 00 	mv r2,r19                                      
 8000eec:	37 81 01 b8 	addi r1,sp,440                                 
 8000ef0:	f8 00 08 e4 	calli 8003280 <rtems_filesystem_eval_path_start>
 8000ef4:	b8 20 60 00 	mv r12,r1                                      
static inline void rtems_filesystem_eval_path_extract_currentloc(     
  rtems_filesystem_eval_path_context_t *ctx,                          
  rtems_filesystem_location_info_t *get                               
)                                                                     
{                                                                     
  rtems_filesystem_location_copy_and_detach(                          
 8000ef8:	37 82 01 d0 	addi r2,sp,464                                 
 8000efc:	37 81 01 f0 	addi r1,sp,496                                 
 8000f00:	f8 00 0a 10 	calli 8003740 <rtems_filesystem_location_copy_and_detach>
static inline void rtems_filesystem_eval_path_set_flags(              
  rtems_filesystem_eval_path_context_t *ctx,                          
  int flags                                                           
)                                                                     
{                                                                     
  ctx->flags = flags;                                                 
 8000f04:	34 01 00 60 	mvi r1,96                                      
 8000f08:	5b 81 01 c8 	sw (sp+456),r1                                 
     &ctx,                                                            
     RTEMS_FS_MAKE | RTEMS_FS_EXCLUSIVE                               
   );                                                                 
                                                                      
   if (                                                               
     rootloc.mt_entry->ops != &IMFS_ops                               
 8000f0c:	2b 81 02 04 	lw r1,(sp+516)                                 
   rtems_filesystem_eval_path_set_flags(                              
     &ctx,                                                            
     RTEMS_FS_MAKE | RTEMS_FS_EXCLUSIVE                               
   );                                                                 
                                                                      
   if (                                                               
 8000f10:	78 04 08 01 	mvhi r4,0x801                                  
 8000f14:	38 84 ff ac 	ori r4,r4,0xffac                               
     rootloc.mt_entry->ops != &IMFS_ops                               
 8000f18:	28 21 00 0c 	lw r1,(r1+12)                                  
   rtems_filesystem_eval_path_set_flags(                              
     &ctx,                                                            
     RTEMS_FS_MAKE | RTEMS_FS_EXCLUSIVE                               
   );                                                                 
                                                                      
   if (                                                               
 8000f1c:	44 24 00 05 	be r1,r4,8000f30 <rtems_tarfs_load+0xa0>       
     rootloc.mt_entry->ops != &IMFS_ops                               
       && rootloc.mt_entry->ops != &fifoIMFS_ops                      
 8000f20:	78 04 08 02 	mvhi r4,0x802                                  
 8000f24:	38 84 08 a4 	ori r4,r4,0x8a4                                
   ) {                                                                
     rv = -1;                                                         
 8000f28:	34 0b ff ff 	mvi r11,-1                                     
     RTEMS_FS_MAKE | RTEMS_FS_EXCLUSIVE                               
   );                                                                 
                                                                      
   if (                                                               
     rootloc.mt_entry->ops != &IMFS_ops                               
       && rootloc.mt_entry->ops != &fifoIMFS_ops                      
 8000f2c:	5c 24 00 6a 	bne r1,r4,80010d4 <rtems_tarfs_load+0x244>     <== ALWAYS TAKEN
    /*                                                                
     * Read a header.                                                 
     */                                                               
    hdr_ptr = (char *) &tar_image[offset];                            
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
 8000f30:	78 12 08 02 	mvhi r18,0x802                                 
        filename,                                                     
        strlen( filename )                                            
      );                                                              
      rtems_filesystem_eval_path_continue( &ctx );                    
                                                                      
      if ( !rtems_filesystem_location_is_null( currentloc ) ) {       
 8000f34:	78 11 08 02 	mvhi r17,0x802                                 
     * - 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, "/");                                   
 8000f38:	78 10 08 01 	mvhi r16,0x801                                 
   rtems_filesystem_eval_path_set_flags(                              
     &ctx,                                                            
     RTEMS_FS_MAKE | RTEMS_FS_EXCLUSIVE                               
   );                                                                 
                                                                      
   if (                                                               
 8000f3c:	34 0b 00 00 	mvi r11,0                                      
    /*                                                                
     * Read a header.                                                 
     */                                                               
    hdr_ptr = (char *) &tar_image[offset];                            
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
 8000f40:	3a 52 00 30 	ori r18,r18,0x30                               
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
 8000f44:	37 8f 01 54 	addi r15,sp,340                                
      rtems_filesystem_eval_path_set_path(                            
        &ctx,                                                         
        filename,                                                     
        strlen( filename )                                            
      );                                                              
      rtems_filesystem_eval_path_continue( &ctx );                    
 8000f48:	37 9b 01 b8 	addi fp,sp,440                                 
                                                                      
      if ( !rtems_filesystem_location_is_null( currentloc ) ) {       
 8000f4c:	3a 31 06 18 	ori r17,r17,0x618                              
        );                                                            
        node->info.linearfile.size   = file_size;                     
        node->info.linearfile.direct = &tar_image[offset];            
      }                                                               
                                                                      
      nblocks = (((file_size) + 511) & ~511) / 512;                   
 8000f50:	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);                              
 8000f54:	37 8d 00 54 	addi r13,sp,84                                 
      if (full_filename[strlen(full_filename)-1] != '/')              
 8000f58:	37 98 00 53 	addi r24,sp,83                                 
 8000f5c:	34 17 00 2f 	mvi r23,47                                     
        strcat(full_filename, "/");                                   
 8000f60:	3a 10 d3 fc 	ori r16,r16,0xd3fc                             
   /*                                                                 
    * Create an IMFS node structure pointing to tar image memory.     
    */                                                                
   offset = 0;                                                        
   while ( rv == 0 ) {                                                
    if (offset + 512 > tar_size)                                      
 8000f64:	2b 81 00 50 	lw r1,(sp+80)                                  
 8000f68:	35 6e 02 00 	addi r14,r11,512                               
 8000f6c:	55 c1 00 59 	bgu r14,r1,80010d0 <rtems_tarfs_load+0x240>    <== NEVER TAKEN
      break;                                                          
                                                                      
    /*                                                                
     * Read a header.                                                 
     */                                                               
    hdr_ptr = (char *) &tar_image[offset];                            
 8000f70:	b6 8b 58 00 	add r11,r20,r11                                
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
 8000f74:	35 61 01 01 	addi r1,r11,257                                
 8000f78:	ba 40 10 00 	mv r2,r18                                      
 8000f7c:	34 03 00 05 	mvi r3,5                                       
 8000f80:	f8 00 3c b1 	calli 8010244 <strncmp>                        
 8000f84:	5c 20 00 53 	bne r1,r0,80010d0 <rtems_tarfs_load+0x240>     <== NEVER TAKEN
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
 8000f88:	34 03 00 63 	mvi r3,99                                      
 8000f8c:	b9 60 10 00 	mv r2,r11                                      
 8000f90:	b9 e0 08 00 	mv r1,r15                                      
 8000f94:	f8 00 3c f9 	calli 8010378 <strncpy>                        
    filename[MAX_NAME_FIELD_SIZE] = '\0';                             
                                                                      
    linkflag   = hdr_ptr[156];                                        
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
 8000f98:	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';                             
 8000f9c:	33 80 01 b7 	sb (sp+439),r0                                 
                                                                      
    linkflag   = hdr_ptr[156];                                        
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
 8000fa0:	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];                                        
 8000fa4:	41 76 00 9c 	lbu r22,(r11+156)                              
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
 8000fa8:	f8 00 1b 2f 	calli 8007c64 <_rtems_octal2ulong>             
 8000fac:	5b 81 00 4c 	sw (sp+76),r1                                  
    file_size  = _rtems_octal2ulong(&hdr_ptr[124], 12);               
 8000fb0:	34 02 00 0c 	mvi r2,12                                      
 8000fb4:	35 61 00 7c 	addi r1,r11,124                                
 8000fb8:	f8 00 1b 2b 	calli 8007c64 <_rtems_octal2ulong>             
    hdr_chksum = _rtems_octal2ulong(&hdr_ptr[148], 8);                
 8000fbc:	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);               
 8000fc0:	b8 20 a8 00 	mv r21,r1                                      
    hdr_chksum = _rtems_octal2ulong(&hdr_ptr[148], 8);                
 8000fc4:	35 61 00 94 	addi r1,r11,148                                
 8000fc8:	f8 00 1b 27 	calli 8007c64 <_rtems_octal2ulong>             
 8000fcc:	b8 20 10 00 	mv r2,r1                                       
                                                                      
    if (_rtems_tar_header_checksum(hdr_ptr) != hdr_chksum)            
 8000fd0:	b9 60 08 00 	mv r1,r11                                      
 8000fd4:	5b 82 00 48 	sw (sp+72),r2                                  
 8000fd8:	f8 00 1b 42 	calli 8007ce0 <_rtems_tar_header_checksum>     
 8000fdc:	2b 82 00 48 	lw r2,(sp+72)                                  
 8000fe0:	5c 22 00 3c 	bne r1,r2,80010d0 <rtems_tarfs_load+0x240>     <== 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) {                                        
 8000fe4:	34 01 00 35 	mvi r1,53                                      
 8000fe8:	5e c1 00 13 	bne r22,r1,8001034 <rtems_tarfs_load+0x1a4>    <== NEVER TAKEN
      strcpy(full_filename, mountpoint);                              
 8000fec:	ba 60 10 00 	mv r2,r19                                      
 8000ff0:	b9 a0 08 00 	mv r1,r13                                      
 8000ff4:	f8 00 3b 1c 	calli 800fc64 <strcpy>                         
      if (full_filename[strlen(full_filename)-1] != '/')              
 8000ff8:	b9 a0 08 00 	mv r1,r13                                      
 8000ffc:	f8 00 3c 63 	calli 8010188 <strlen>                         
 8001000:	b7 01 20 00 	add r4,r24,r1                                  
 8001004:	40 81 00 00 	lbu r1,(r4+0)                                  
 8001008:	44 37 00 04 	be r1,r23,8001018 <rtems_tarfs_load+0x188>     <== ALWAYS TAKEN
        strcat(full_filename, "/");                                   
 800100c:	b9 a0 08 00 	mv r1,r13                                      <== NOT EXECUTED
 8001010:	ba 00 10 00 	mv r2,r16                                      <== NOT EXECUTED
 8001014:	f8 00 3a bd 	calli 800fb08 <strcat>                         <== NOT EXECUTED
      strcat(full_filename, filename);                                
 8001018:	b9 e0 10 00 	mv r2,r15                                      
 800101c:	b9 a0 08 00 	mv r1,r13                                      
 8001020:	f8 00 3a ba 	calli 800fb08 <strcat>                         
      mkdir(full_filename, S_IRWXU | S_IRWXG | S_IRWXO);              
 8001024:	b9 a0 08 00 	mv r1,r13                                      
 8001028:	34 02 01 ff 	mvi r2,511                                     
 800102c:	f8 00 04 86 	calli 8002244 <mkdir>                          
 8001030:	e0 00 00 26 	bi 80010c8 <rtems_tarfs_load+0x238>            
    }                                                                 
    /*                                                                
     * Create a LINEAR_FILE node                                      
     */                                                               
    else if (linkflag == REGTYPE) {                                   
 8001034:	34 01 00 30 	mvi r1,48                                      
 8001038:	5e c1 00 24 	bne r22,r1,80010c8 <rtems_tarfs_load+0x238>    
      rtems_filesystem_location_free( currentloc );                   
 800103c:	b9 80 08 00 	mv r1,r12                                      
 8001040:	f8 00 02 9a 	calli 8001aa8 <rtems_filesystem_location_free> 
      rtems_filesystem_location_clone( currentloc, &rootloc );        
 8001044:	37 82 01 f0 	addi r2,sp,496                                 
 8001048:	b9 80 08 00 	mv r1,r12                                      
 800104c:	f8 00 01 a7 	calli 80016e8 <rtems_filesystem_location_clone>
      rtems_filesystem_eval_path_set_path(                            
 8001050:	b9 e0 08 00 	mv r1,r15                                      
 8001054:	f8 00 3c 4d 	calli 8010188 <strlen>                         
  const char *path,                                                   
  size_t pathlen                                                      
)                                                                     
{                                                                     
  ctx->path = path;                                                   
  ctx->pathlen = pathlen;                                             
 8001058:	5b 81 01 bc 	sw (sp+444),r1                                 
        &ctx,                                                         
        filename,                                                     
        strlen( filename )                                            
      );                                                              
      rtems_filesystem_eval_path_continue( &ctx );                    
 800105c:	bb 60 08 00 	mv r1,fp                                       
  rtems_filesystem_eval_path_context_t *ctx,                          
  const char *path,                                                   
  size_t pathlen                                                      
)                                                                     
{                                                                     
  ctx->path = path;                                                   
 8001060:	5b 8f 01 b8 	sw (sp+440),r15                                
 8001064:	f8 00 08 01 	calli 8003068 <rtems_filesystem_eval_path_continue>
                                                                      
      if ( !rtems_filesystem_location_is_null( currentloc ) ) {       
 8001068:	29 81 00 10 	lw r1,(r12+16)                                 
 800106c:	44 31 00 10 	be r1,r17,80010ac <rtems_tarfs_load+0x21c>     <== NEVER TAKEN
  mode_t mode,                                                        
  const IMFS_types_union *info                                        
)                                                                     
{                                                                     
  const IMFS_fs_info_t *fs_info =                                     
    (const IMFS_fs_info_t *) parentloc->mt_entry->fs_info;            
 8001070:	29 81 00 14 	lw r1,(r12+20)                                 
                                                                      
  return IMFS_create_node_with_control(                               
 8001074:	2b 84 01 c4 	lw r4,(sp+452)                                 
 8001078:	2b 83 01 c0 	lw r3,(sp+448)                                 
 800107c:	28 22 00 08 	lw r2,(r1+8)                                   
        node = IMFS_create_node(                                      
          currentloc,                                                 
          IMFS_LINEAR_FILE,                                           
          rtems_filesystem_eval_path_get_token( &ctx ),               
          rtems_filesystem_eval_path_get_tokenlen( &ctx ),            
          (file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,      
 8001080:	2b 81 00 4c 	lw r1,(sp+76)                                  
 8001084:	34 06 00 00 	mvi r6,0                                       
 8001088:	28 42 00 1c 	lw r2,(r2+28)                                  
 800108c:	20 25 01 ff 	andi r5,r1,0x1ff                               
 8001090:	38 a5 80 00 	ori r5,r5,0x8000                               
 8001094:	b9 80 08 00 	mv r1,r12                                      
 8001098:	f8 00 1d 09 	calli 80084bc <IMFS_create_node_with_control>  
 800109c:	b8 20 20 00 	mv r4,r1                                       
          NULL                                                        
        );                                                            
        node->info.linearfile.size   = file_size;                     
 80010a0:	58 35 00 50 	sw (r1+80),r21                                 
        node->info.linearfile.direct = &tar_image[offset];            
 80010a4:	b6 8e 08 00 	add r1,r20,r14                                 
 80010a8:	58 81 00 54 	sw (r4+84),r1                                  
      }                                                               
                                                                      
      nblocks = (((file_size) + 511) & ~511) / 512;                   
 80010ac:	36 b5 01 ff 	addi r21,r21,511                               
 80010b0:	34 02 00 09 	mvi r2,9                                       
 80010b4:	a2 b9 08 00 	and r1,r21,r25                                 
 80010b8:	f8 00 6e 30 	calli 801c978 <__lshrsi3>                      
      offset += 512 * nblocks;                                        
 80010bc:	34 02 00 09 	mvi r2,9                                       
 80010c0:	f8 00 6d e0 	calli 801c840 <__ashlsi3>                      
 80010c4:	b4 2e 70 00 	add r14,r1,r14                                 
   rtems_filesystem_eval_path_set_flags(                              
     &ctx,                                                            
     RTEMS_FS_MAKE | RTEMS_FS_EXCLUSIVE                               
   );                                                                 
                                                                      
   if (                                                               
 80010c8:	b9 c0 58 00 	mv r11,r14                                     
 80010cc:	e3 ff ff a6 	bi 8000f64 <rtems_tarfs_load+0xd4>             
    linkflag   = hdr_ptr[156];                                        
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
    file_size  = _rtems_octal2ulong(&hdr_ptr[124], 12);               
    hdr_chksum = _rtems_octal2ulong(&hdr_ptr[148], 8);                
                                                                      
    if (_rtems_tar_header_checksum(hdr_ptr) != hdr_chksum)            
 80010d0:	34 0b 00 00 	mvi r11,0                                      
      nblocks = (((file_size) + 511) & ~511) / 512;                   
      offset += 512 * nblocks;                                        
    }                                                                 
  }                                                                   
                                                                      
  rtems_filesystem_location_free( &rootloc );                         
 80010d4:	37 81 01 f0 	addi r1,sp,496                                 
 80010d8:	f8 00 02 74 	calli 8001aa8 <rtems_filesystem_location_free> 
  rtems_filesystem_eval_path_cleanup( &ctx );                         
 80010dc:	37 81 01 b8 	addi r1,sp,440                                 
 80010e0:	f8 00 08 b5 	calli 80033b4 <rtems_filesystem_eval_path_cleanup>
                                                                      
  return rv;                                                          
}                                                                     
 80010e4:	b9 60 08 00 	mv r1,r11                                      
 80010e8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80010ec:	2b 8b 00 44 	lw r11,(sp+68)                                 
 80010f0:	2b 8c 00 40 	lw r12,(sp+64)                                 
 80010f4:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 80010f8:	2b 8e 00 38 	lw r14,(sp+56)                                 
 80010fc:	2b 8f 00 34 	lw r15,(sp+52)                                 
 8001100:	2b 90 00 30 	lw r16,(sp+48)                                 
 8001104:	2b 91 00 2c 	lw r17,(sp+44)                                 
 8001108:	2b 92 00 28 	lw r18,(sp+40)                                 
 800110c:	2b 93 00 24 	lw r19,(sp+36)                                 
 8001110:	2b 94 00 20 	lw r20,(sp+32)                                 
 8001114:	2b 95 00 1c 	lw r21,(sp+28)                                 
 8001118:	2b 96 00 18 	lw r22,(sp+24)                                 
 800111c:	2b 97 00 14 	lw r23,(sp+20)                                 
 8001120:	2b 98 00 10 	lw r24,(sp+16)                                 
 8001124:	2b 99 00 0c 	lw r25,(sp+12)                                 
 8001128:	2b 9b 00 08 	lw fp,(sp+8)                                   
 800112c:	37 9c 02 04 	addi sp,sp,516                                 
 8001130:	c3 a0 00 00 	ret                                            
                                                                      

0800e028 <rtems_task_mode>: rtems_status_code rtems_task_mode( rtems_mode mode_set, rtems_mode mask, rtems_mode *previous_mode_set ) {
 800e028:	37 9c ff e0 	addi sp,sp,-32                                 
 800e02c:	5b 8b 00 20 	sw (sp+32),r11                                 
 800e030:	5b 8c 00 1c 	sw (sp+28),r12                                 
 800e034:	5b 8d 00 18 	sw (sp+24),r13                                 
 800e038:	5b 8e 00 14 	sw (sp+20),r14                                 
 800e03c:	5b 8f 00 10 	sw (sp+16),r15                                 
 800e040:	5b 90 00 0c 	sw (sp+12),r16                                 
 800e044:	5b 91 00 08 	sw (sp+8),r17                                  
 800e048:	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;                                     
 800e04c:	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                                       
)                                                                     
{                                                                     
 800e050:	b8 20 68 00 	mv r13,r1                                      
 800e054:	b8 40 70 00 	mv r14,r2                                      
 800e058:	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 )                                           
 800e05c:	44 60 00 51 	be r3,r0,800e1a0 <rtems_task_mode+0x178>       
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
 800e060:	78 01 08 01 	mvhi r1,0x801                                  
 800e064:	38 21 9a 80 	ori r1,r1,0x9a80                               
 800e068:	28 2c 00 10 	lw r12,(r1+16)                                 
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
 800e06c:	41 8f 00 70 	lbu r15,(r12+112)                              
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
 800e070:	29 81 00 78 	lw r1,(r12+120)                                
                                                                      
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
 800e074:	29 8b 01 14 	lw r11,(r12+276)                               
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
 800e078:	65 ef 00 00 	cmpei r15,r15,0                                
 800e07c:	c8 0f 78 00 	sub r15,r0,r15                                 
 800e080:	21 ef 01 00 	andi r15,r15,0x100                             
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
 800e084:	44 20 00 02 	be r1,r0,800e08c <rtems_task_mode+0x64>        
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
 800e088:	39 ef 02 00 	ori r15,r15,0x200                              
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
 800e08c:	41 71 00 08 	lbu r17,(r11+8)                                
  old_mode |= _ISR_Get_level();                                       
 800e090:	fb ff eb 43 	calli 8008d9c <_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;           
 800e094:	66 31 00 00 	cmpei r17,r17,0                                
 800e098:	c8 11 88 00 	sub r17,r0,r17                                 
 800e09c:	22 31 04 00 	andi r17,r17,0x400                             
 800e0a0:	ba 21 08 00 	or r1,r17,r1                                   
  old_mode |= _ISR_Get_level();                                       
 800e0a4:	b8 2f 78 00 	or r15,r1,r15                                  
                                                                      
  *previous_mode_set = old_mode;                                      
 800e0a8:	5a 0f 00 00 	sw (r16+0),r15                                 
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
  if ( mask & RTEMS_PREEMPT_MASK )                                    
 800e0ac:	21 c1 01 00 	andi r1,r14,0x100                              
 800e0b0:	44 20 00 04 	be r1,r0,800e0c0 <rtems_task_mode+0x98>        
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Modes_Is_preempt (                         
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
   return (mode_set & RTEMS_PREEMPT_MASK) == RTEMS_PREEMPT;           
 800e0b4:	21 a1 01 00 	andi r1,r13,0x100                              
    executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
 800e0b8:	64 21 00 00 	cmpei r1,r1,0                                  
 800e0bc:	31 81 00 70 	sb (r12+112),r1                                
                                                                      
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
 800e0c0:	21 c1 02 00 	andi r1,r14,0x200                              
 800e0c4:	44 20 00 0b 	be r1,r0,800e0f0 <rtems_task_mode+0xc8>        
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Modes_Is_timeslice (                       
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
  return (mode_set & RTEMS_TIMESLICE_MASK) == RTEMS_TIMESLICE;        
 800e0c8:	21 a1 02 00 	andi r1,r13,0x200                              
    if ( _Modes_Is_timeslice(mode_set) ) {                            
 800e0cc:	44 20 00 08 	be r1,r0,800e0ec <rtems_task_mode+0xc4>        
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
 800e0d0:	34 01 00 01 	mvi r1,1                                       
 800e0d4:	59 81 00 78 	sw (r12+120),r1                                
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
 800e0d8:	78 01 08 01 	mvhi r1,0x801                                  
 800e0dc:	38 21 98 98 	ori r1,r1,0x9898                               
 800e0e0:	28 21 00 00 	lw r1,(r1+0)                                   
 800e0e4:	59 81 00 74 	sw (r12+116),r1                                
 800e0e8:	e0 00 00 02 	bi 800e0f0 <rtems_task_mode+0xc8>              
    } else                                                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; 
 800e0ec:	59 80 00 78 	sw (r12+120),r0                                
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
 800e0f0:	21 c1 00 01 	andi r1,r14,0x1                                
 800e0f4:	44 20 00 04 	be r1,r0,800e104 <rtems_task_mode+0xdc>        
 */                                                                   
RTEMS_INLINE_ROUTINE ISR_Level _Modes_Get_interrupt_level (           
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
  return ( mode_set & RTEMS_INTERRUPT_MASK );                         
 800e0f8:	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 ) );           
 800e0fc:	64 21 00 00 	cmpei r1,r1,0                                  
 800e100:	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 ) {                                      
 800e104:	21 ce 04 00 	andi r14,r14,0x400                             
                                                                      
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
 800e108:	34 03 00 00 	mvi r3,0                                       
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
 800e10c:	45 c0 00 11 	be r14,r0,800e150 <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;                
 800e110:	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 ) {                        
 800e114:	41 61 00 08 	lbu r1,(r11+8)                                 
#include <rtems/score/tod.h>                                          
#include <rtems/score/wkspace.h>                                      
#include <rtems/score/apiext.h>                                       
#include <rtems/score/sysstate.h>                                     
                                                                      
rtems_status_code rtems_task_mode(                                    
 800e118:	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 ) {                        
 800e11c:	44 2d 00 0d 	be r1,r13,800e150 <rtems_task_mode+0x128>      
      asr->is_enabled = is_asr_enabled;                               
 800e120:	31 6d 00 08 	sb (r11+8),r13                                 
)                                                                     
{                                                                     
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
 800e124:	90 00 08 00 	rcsr r1,IE                                     
 800e128:	34 02 ff fe 	mvi r2,-2                                      
 800e12c:	a0 22 10 00 	and r2,r1,r2                                   
 800e130:	d0 02 00 00 	wcsr IE,r2                                     
    _signals                     = information->signals_pending;      
 800e134:	29 62 00 18 	lw r2,(r11+24)                                 
    information->signals_pending = information->signals_posted;       
 800e138:	29 63 00 14 	lw r3,(r11+20)                                 
    information->signals_posted  = _signals;                          
 800e13c:	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;       
 800e140:	59 63 00 18 	sw (r11+24),r3                                 
    information->signals_posted  = _signals;                          
  _ISR_Enable( _level );                                              
 800e144:	d0 01 00 00 	wcsr IE,r1                                     
      _ASR_Swap_signals( asr );                                       
      if ( _ASR_Are_signals_pending( asr ) ) {                        
 800e148:	29 63 00 14 	lw r3,(r11+20)                                 
                                                                      
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
 800e14c:	7c 63 00 00 	cmpnei r3,r3,0                                 
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
 800e150:	78 01 08 01 	mvhi r1,0x801                                  
 800e154:	38 21 9a 74 	ori r1,r1,0x9a74                               
 800e158:	28 22 00 00 	lw r2,(r1+0)                                   
 800e15c:	34 01 00 03 	mvi r1,3                                       
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800e160:	34 04 00 00 	mvi r4,0                                       
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
 800e164:	5c 41 00 0f 	bne r2,r1,800e1a0 <rtems_task_mode+0x178>      
  bool are_signals_pending                                            
)                                                                     
{                                                                     
  Thread_Control     *executing;                                      
                                                                      
  executing = _Thread_Executing;                                      
 800e168:	78 01 08 01 	mvhi r1,0x801                                  
 800e16c:	38 21 9a 80 	ori r1,r1,0x9a80                               
 800e170:	28 22 00 10 	lw r2,(r1+16)                                  
                                                                      
  if ( are_signals_pending ||                                         
 800e174:	5c 60 00 05 	bne r3,r0,800e188 <rtems_task_mode+0x160>      
 800e178:	28 21 00 14 	lw r1,(r1+20)                                  
 800e17c:	44 41 00 09 	be r2,r1,800e1a0 <rtems_task_mode+0x178>       
       (!_Thread_Is_heir( executing ) && executing->is_preemptible) ) {
 800e180:	40 41 00 70 	lbu r1,(r2+112)                                
 800e184:	44 20 00 07 	be r1,r0,800e1a0 <rtems_task_mode+0x178>       <== NEVER TAKEN
    _Thread_Dispatch_necessary = true;                                
 800e188:	78 01 08 01 	mvhi r1,0x801                                  
 800e18c:	38 21 9a 80 	ori r1,r1,0x9a80                               
 800e190:	34 02 00 01 	mvi r2,1                                       
 800e194:	30 22 00 0c 	sb (r1+12),r2                                  
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
 800e198:	f8 00 03 70 	calli 800ef58 <_Thread_Dispatch>               
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
 800e19c:	34 04 00 00 	mvi r4,0                                       
}                                                                     
 800e1a0:	b8 80 08 00 	mv r1,r4                                       
 800e1a4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800e1a8:	2b 8b 00 20 	lw r11,(sp+32)                                 
 800e1ac:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 800e1b0:	2b 8d 00 18 	lw r13,(sp+24)                                 
 800e1b4:	2b 8e 00 14 	lw r14,(sp+20)                                 
 800e1b8:	2b 8f 00 10 	lw r15,(sp+16)                                 
 800e1bc:	2b 90 00 0c 	lw r16,(sp+12)                                 
 800e1c0:	2b 91 00 08 	lw r17,(sp+8)                                  
 800e1c4:	37 9c 00 20 	addi sp,sp,32                                  
 800e1c8:	c3 a0 00 00 	ret                                            
                                                                      

08008e30 <rtems_task_set_priority>: rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) {
 8008e30:	37 9c ff f0 	addi sp,sp,-16                                 
 8008e34:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8008e38:	5b 8c 00 08 	sw (sp+8),r12                                  
 8008e3c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8008e40:	b8 40 58 00 	mv r11,r2                                      
 8008e44:	b8 60 60 00 	mv r12,r3                                      
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
 8008e48:	44 40 00 06 	be r2,r0,8008e60 <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 ) );             
 8008e4c:	78 02 08 01 	mvhi r2,0x801                                  
 8008e50:	38 42 90 d8 	ori r2,r2,0x90d8                               
 8008e54:	40 43 00 00 	lbu r3,(r2+0)                                  
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
 8008e58:	34 02 00 13 	mvi r2,19                                      
)                                                                     
{                                                                     
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
 8008e5c:	55 63 00 16 	bgu r11,r3,8008eb4 <rtems_task_set_priority+0x84>
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
                                                                      
  if ( !old_priority )                                                
    return RTEMS_INVALID_ADDRESS;                                     
 8008e60:	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 )                                                
 8008e64:	45 80 00 14 	be r12,r0,8008eb4 <rtems_task_set_priority+0x84>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
 8008e68:	37 82 00 10 	addi r2,sp,16                                  
 8008e6c:	f8 00 0b 2b 	calli 800bb18 <_Thread_Get>                    
  switch ( location ) {                                               
 8008e70:	2b 82 00 10 	lw r2,(sp+16)                                  
 8008e74:	5c 40 00 0f 	bne r2,r0,8008eb0 <rtems_task_set_priority+0x80>
                                                                      
    case OBJECTS_LOCAL:                                               
      /* XXX need helper to "convert" from core priority */           
      *old_priority = the_thread->current_priority;                   
 8008e78:	28 23 00 14 	lw r3,(r1+20)                                  
 8008e7c:	59 83 00 00 	sw (r12+0),r3                                  
      if ( new_priority != RTEMS_CURRENT_PRIORITY ) {                 
 8008e80:	45 62 00 09 	be r11,r2,8008ea4 <rtems_task_set_priority+0x74>
        the_thread->real_priority = new_priority;                     
        if ( the_thread->resource_count == 0 ||                       
 8008e84:	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;                     
 8008e88:	58 2b 00 18 	sw (r1+24),r11                                 
        if ( the_thread->resource_count == 0 ||                       
 8008e8c:	44 40 00 03 	be r2,r0,8008e98 <rtems_task_set_priority+0x68>
 8008e90:	28 22 00 14 	lw r2,(r1+20)                                  
 8008e94:	51 62 00 04 	bgeu r11,r2,8008ea4 <rtems_task_set_priority+0x74><== ALWAYS TAKEN
             the_thread->current_priority > new_priority )            
          _Thread_Change_priority( the_thread, new_priority, false ); 
 8008e98:	b9 60 10 00 	mv r2,r11                                      
 8008e9c:	34 03 00 00 	mvi r3,0                                       
 8008ea0:	f8 00 09 c1 	calli 800b5a4 <_Thread_Change_priority>        
      }                                                               
      _Thread_Enable_dispatch();                                      
 8008ea4:	f8 00 0b 11 	calli 800bae8 <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 8008ea8:	34 02 00 00 	mvi r2,0                                       
 8008eac:	e0 00 00 02 	bi 8008eb4 <rtems_task_set_priority+0x84>      
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8008eb0:	34 02 00 04 	mvi r2,4                                       
}                                                                     
 8008eb4:	b8 40 08 00 	mv r1,r2                                       
 8008eb8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8008ebc:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8008ec0:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8008ec4:	37 9c 00 10 	addi sp,sp,16                                  
 8008ec8:	c3 a0 00 00 	ret                                            
                                                                      

0800479c <rtems_termios_baud_to_index>: #include <rtems/termiostypes.h> int rtems_termios_baud_to_index( rtems_termios_baud_t termios_baud ) {
 800479c:	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;                          
 80047a0:	34 01 00 09 	mvi r1,9                                       
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 80047a4:	44 41 00 36 	be r2,r1,800487c <rtems_termios_baud_to_index+0xe0>
 80047a8:	54 41 00 17 	bgu r2,r1,8004804 <rtems_termios_baud_to_index+0x68>
    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;                          
 80047ac:	34 01 00 04 	mvi r1,4                                       
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 80047b0:	44 41 00 33 	be r2,r1,800487c <rtems_termios_baud_to_index+0xe0>
 80047b4:	54 41 00 0a 	bgu r2,r1,80047dc <rtems_termios_baud_to_index+0x40>
    case B0:        baud_index =  0;  break;                          
    case B50:       baud_index =  1;  break;                          
 80047b8:	34 01 00 01 	mvi r1,1                                       
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 80047bc:	44 41 00 30 	be r2,r1,800487c <rtems_termios_baud_to_index+0xe0>
    case B0:        baud_index =  0;  break;                          
 80047c0:	34 01 00 00 	mvi r1,0                                       
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 80047c4:	44 40 00 2e 	be r2,r0,800487c <rtems_termios_baud_to_index+0xe0>
    case B0:        baud_index =  0;  break;                          
    case B50:       baud_index =  1;  break;                          
    case B75:       baud_index =  2;  break;                          
 80047c8:	34 01 00 02 	mvi r1,2                                       
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 80047cc:	44 41 00 2c 	be r2,r1,800487c <rtems_termios_baud_to_index+0xe0>
    case B0:        baud_index =  0;  break;                          
    case B50:       baud_index =  1;  break;                          
    case B75:       baud_index =  2;  break;                          
    case B110:      baud_index =  3;  break;                          
 80047d0:	34 01 00 03 	mvi r1,3                                       
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 80047d4:	5c 41 00 29 	bne r2,r1,8004878 <rtems_termios_baud_to_index+0xdc><== NEVER TAKEN
 80047d8:	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;                          
 80047dc:	34 01 00 06 	mvi r1,6                                       
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 80047e0:	44 41 00 27 	be r2,r1,800487c <rtems_termios_baud_to_index+0xe0>
 80047e4:	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;                          
 80047e8:	34 01 00 05 	mvi r1,5                                       
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 80047ec:	54 62 00 24 	bgu r3,r2,800487c <rtems_termios_baud_to_index+0xe0>
    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;                          
 80047f0:	34 01 00 07 	mvi r1,7                                       
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 80047f4:	44 41 00 22 	be r2,r1,800487c <rtems_termios_baud_to_index+0xe0>
    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;                          
 80047f8:	34 01 00 08 	mvi r1,8                                       
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 80047fc:	5c 41 00 1f 	bne r2,r1,8004878 <rtems_termios_baud_to_index+0xdc><== NEVER TAKEN
 8004800:	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;                          
 8004804:	34 01 00 0e 	mvi r1,14                                      
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 8004808:	44 41 00 1d 	be r2,r1,800487c <rtems_termios_baud_to_index+0xe0>
 800480c:	54 41 00 0b 	bgu r2,r1,8004838 <rtems_termios_baud_to_index+0x9c>
    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;                          
 8004810:	34 01 00 0b 	mvi r1,11                                      
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 8004814:	44 41 00 1a 	be r2,r1,800487c <rtems_termios_baud_to_index+0xe0>
 8004818:	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;                          
 800481c:	34 01 00 0a 	mvi r1,10                                      
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 8004820:	54 62 00 17 	bgu r3,r2,800487c <rtems_termios_baud_to_index+0xe0>
    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;                          
 8004824:	34 01 00 0c 	mvi r1,12                                      
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 8004828:	44 41 00 15 	be r2,r1,800487c <rtems_termios_baud_to_index+0xe0>
    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;                          
 800482c:	34 01 00 0d 	mvi r1,13                                      
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 8004830:	5c 41 00 12 	bne r2,r1,8004878 <rtems_termios_baud_to_index+0xdc><== NEVER TAKEN
 8004834:	c3 a0 00 00 	ret                                            
 8004838:	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;                          
 800483c:	34 01 00 11 	mvi r1,17                                      
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 8004840:	44 43 00 0f 	be r2,r3,800487c <rtems_termios_baud_to_index+0xe0>
 8004844:	54 43 00 07 	bgu r2,r3,8004860 <rtems_termios_baud_to_index+0xc4>
    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;                          
 8004848:	34 01 00 0f 	mvi r1,15                                      
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 800484c:	44 41 00 0c 	be r2,r1,800487c <rtems_termios_baud_to_index+0xe0>
 8004850:	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;                          
 8004854:	34 01 00 10 	mvi r1,16                                      
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 8004858:	5c 43 00 08 	bne r2,r3,8004878 <rtems_termios_baud_to_index+0xdc><== NEVER TAKEN
 800485c:	c3 a0 00 00 	ret                                            
 8004860:	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;                          
 8004864:	34 01 00 12 	mvi r1,18                                      
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 8004868:	44 43 00 05 	be r2,r3,800487c <rtems_termios_baud_to_index+0xe0>
 800486c:	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;                          
 8004870:	34 01 00 13 	mvi r1,19                                      
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
 8004874:	44 43 00 02 	be r2,r3,800487c <rtems_termios_baud_to_index+0xe0>
    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;                          
 8004878:	34 01 ff ff 	mvi r1,-1                                      
  }                                                                   
                                                                      
  return baud_index;                                                  
}                                                                     
 800487c:	c3 a0 00 00 	ret                                            
                                                                      

080043fc <rtems_termios_close>: rtems_interrupt_enable (level); } rtems_status_code rtems_termios_close (void *arg) {
 80043fc:	37 9c ff ec 	addi sp,sp,-20                                 
 8004400:	5b 8b 00 14 	sw (sp+20),r11                                 
 8004404:	5b 8c 00 10 	sw (sp+16),r12                                 
 8004408:	5b 8d 00 0c 	sw (sp+12),r13                                 
 800440c:	5b 8e 00 08 	sw (sp+8),r14                                  
 8004410:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004414:	b8 20 70 00 	mv r14,r1                                      
  rtems_libio_open_close_args_t *args = arg;                          
  struct rtems_termios_tty *tty = args->iop->data1;                   
 8004418:	28 21 00 00 	lw r1,(r1+0)                                   
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain(                                        
 800441c:	78 02 08 02 	mvhi r2,0x802                                  
 8004420:	38 42 6d 90 	ori r2,r2,0x6d90                               
                                                                      
rtems_status_code                                                     
rtems_termios_close (void *arg)                                       
{                                                                     
  rtems_libio_open_close_args_t *args = arg;                          
  struct rtems_termios_tty *tty = args->iop->data1;                   
 8004424:	28 2b 00 28 	lw r11,(r1+40)                                 
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain(                                        
 8004428:	28 41 00 00 	lw r1,(r2+0)                                   
 800442c:	34 03 00 00 	mvi r3,0                                       
 8004430:	34 02 00 00 	mvi r2,0                                       
 8004434:	f8 00 08 42 	calli 800653c <rtems_semaphore_obtain>         
    rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);            
  if (sc != RTEMS_SUCCESSFUL)                                         
 8004438:	5c 20 00 25 	bne r1,r0,80044cc <rtems_termios_close+0xd0>   <== NEVER TAKEN
    rtems_fatal_error_occurred (sc);                                  
  if (--tty->refcount == 0) {                                         
 800443c:	29 6d 00 08 	lw r13,(r11+8)                                 
 8004440:	35 ad ff ff 	addi r13,r13,-1                                
 8004444:	59 6d 00 08 	sw (r11+8),r13                                 
 8004448:	5d a1 00 51 	bne r13,r1,800458c <rtems_termios_close+0x190> <== NEVER TAKEN
    if (rtems_termios_linesw[tty->t_line].l_close != NULL) {          
 800444c:	29 61 00 cc 	lw r1,(r11+204)                                
 8004450:	78 0c 08 02 	mvhi r12,0x802                                 
 8004454:	34 02 00 05 	mvi r2,5                                       
 8004458:	39 8c 67 94 	ori r12,r12,0x6794                             
 800445c:	fb ff f1 72 	calli 8000a24 <__ashlsi3>                      
 8004460:	b5 81 08 00 	add r1,r12,r1                                  
 8004464:	28 2c 00 04 	lw r12,(r1+4)                                  
 8004468:	45 8d 00 04 	be r12,r13,8004478 <rtems_termios_close+0x7c>  
      /*                                                              
       * call discipline-specific close                               
       */                                                             
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
 800446c:	b9 60 08 00 	mv r1,r11                                      
 8004470:	d9 80 00 00 	call r12                                       
 8004474:	e0 00 00 0a 	bi 800449c <rtems_termios_close+0xa0>          
    } else {                                                          
      /*                                                              
       * default: just flush output buffer                            
       */                                                             
      sc = rtems_semaphore_obtain(tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 8004478:	29 61 00 18 	lw r1,(r11+24)                                 
 800447c:	34 02 00 00 	mvi r2,0                                       
 8004480:	34 03 00 00 	mvi r3,0                                       
 8004484:	f8 00 08 2e 	calli 800653c <rtems_semaphore_obtain>         
      if (sc != RTEMS_SUCCESSFUL) {                                   
 8004488:	5d 81 00 11 	bne r12,r1,80044cc <rtems_termios_close+0xd0>  <== NEVER TAKEN
        rtems_fatal_error_occurred (sc);                              
      }                                                               
      drainOutput (tty);                                              
 800448c:	b9 60 08 00 	mv r1,r11                                      
 8004490:	fb ff fe 6c 	calli 8003e40 <drainOutput>                    
      rtems_semaphore_release (tty->osem);                            
 8004494:	29 61 00 18 	lw r1,(r11+24)                                 
 8004498:	f8 00 08 79 	calli 800667c <rtems_semaphore_release>        
    }                                                                 
                                                                      
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
 800449c:	29 62 00 b4 	lw r2,(r11+180)                                
 80044a0:	34 01 00 02 	mvi r1,2                                       
 80044a4:	5c 41 00 0b 	bne r2,r1,80044d0 <rtems_termios_close+0xd4>   
      /*                                                              
       * send "terminate" to I/O tasks                                
       */                                                             
      sc = rtems_event_send( tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT );
 80044a8:	29 61 00 c4 	lw r1,(r11+196)                                
 80044ac:	34 02 00 01 	mvi r2,1                                       
 80044b0:	f8 00 06 e0 	calli 8006030 <rtems_event_send>               
 80044b4:	b8 20 60 00 	mv r12,r1                                      
      if (sc != RTEMS_SUCCESSFUL)                                     
 80044b8:	5c 20 00 05 	bne r1,r0,80044cc <rtems_termios_close+0xd0>   <== NEVER TAKEN
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_event_send( tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT );
 80044bc:	29 61 00 c8 	lw r1,(r11+200)                                
 80044c0:	34 02 00 01 	mvi r2,1                                       
 80044c4:	f8 00 06 db 	calli 8006030 <rtems_event_send>               
      if (sc != RTEMS_SUCCESSFUL)                                     
 80044c8:	44 2c 00 02 	be r1,r12,80044d0 <rtems_termios_close+0xd4>   <== ALWAYS TAKEN
        rtems_fatal_error_occurred (sc);                              
 80044cc:	f8 00 0a 8f 	calli 8006f08 <rtems_fatal_error_occurred>     <== NOT EXECUTED
    }                                                                 
    if (tty->device.lastClose)                                        
 80044d0:	29 64 00 9c 	lw r4,(r11+156)                                
 80044d4:	44 80 00 05 	be r4,r0,80044e8 <rtems_termios_close+0xec>    <== ALWAYS TAKEN
       (*tty->device.lastClose)(tty->major, tty->minor, arg);         
 80044d8:	29 61 00 0c 	lw r1,(r11+12)                                 <== NOT EXECUTED
 80044dc:	29 62 00 10 	lw r2,(r11+16)                                 <== NOT EXECUTED
 80044e0:	b9 c0 18 00 	mv r3,r14                                      <== NOT EXECUTED
 80044e4:	d8 80 00 00 	call r4                                        <== NOT EXECUTED
    if (tty->forw == NULL) {                                          
 80044e8:	29 62 00 00 	lw r2,(r11+0)                                  
 80044ec:	29 61 00 04 	lw r1,(r11+4)                                  
 80044f0:	5c 40 00 07 	bne r2,r0,800450c <rtems_termios_close+0x110>  <== NEVER TAKEN
      rtems_termios_ttyTail = tty->back;                              
 80044f4:	78 03 08 02 	mvhi r3,0x802                                  
 80044f8:	38 63 6d 94 	ori r3,r3,0x6d94                               
 80044fc:	58 61 00 00 	sw (r3+0),r1                                   
      if ( rtems_termios_ttyTail != NULL ) {                          
 8004500:	44 22 00 04 	be r1,r2,8004510 <rtems_termios_close+0x114>   <== ALWAYS TAKEN
        rtems_termios_ttyTail->forw = NULL;                           
 8004504:	58 20 00 00 	sw (r1+0),r0                                   <== NOT EXECUTED
 8004508:	e0 00 00 02 	bi 8004510 <rtems_termios_close+0x114>         <== NOT EXECUTED
      }                                                               
    } else {                                                          
      tty->forw->back = tty->back;                                    
 800450c:	58 41 00 04 	sw (r2+4),r1                                   <== NOT EXECUTED
    }                                                                 
                                                                      
    if (tty->back == NULL) {                                          
 8004510:	29 62 00 04 	lw r2,(r11+4)                                  
 8004514:	29 61 00 00 	lw r1,(r11+0)                                  
 8004518:	5c 40 00 07 	bne r2,r0,8004534 <rtems_termios_close+0x138>  <== NEVER TAKEN
      rtems_termios_ttyHead = tty->forw;                              
 800451c:	78 03 08 02 	mvhi r3,0x802                                  
 8004520:	38 63 6d 98 	ori r3,r3,0x6d98                               
 8004524:	58 61 00 00 	sw (r3+0),r1                                   
      if ( rtems_termios_ttyHead != NULL ) {                          
 8004528:	44 22 00 04 	be r1,r2,8004538 <rtems_termios_close+0x13c>   <== ALWAYS TAKEN
        rtems_termios_ttyHead->back = NULL;                           
 800452c:	58 20 00 04 	sw (r1+4),r0                                   <== NOT EXECUTED
 8004530:	e0 00 00 02 	bi 8004538 <rtems_termios_close+0x13c>         <== NOT EXECUTED
      }                                                               
    } else {                                                          
      tty->back->forw = tty->forw;                                    
 8004534:	58 41 00 00 	sw (r2+0),r1                                   <== NOT EXECUTED
    }                                                                 
                                                                      
    rtems_semaphore_delete (tty->isem);                               
 8004538:	29 61 00 14 	lw r1,(r11+20)                                 
 800453c:	f8 00 07 d1 	calli 8006480 <rtems_semaphore_delete>         
    rtems_semaphore_delete (tty->osem);                               
 8004540:	29 61 00 18 	lw r1,(r11+24)                                 
 8004544:	f8 00 07 cf 	calli 8006480 <rtems_semaphore_delete>         
    rtems_semaphore_delete (tty->rawOutBuf.Semaphore);                
 8004548:	29 61 00 8c 	lw r1,(r11+140)                                
 800454c:	f8 00 07 cd 	calli 8006480 <rtems_semaphore_delete>         
    if ((tty->device.pollRead == NULL) ||                             
 8004550:	29 61 00 a0 	lw r1,(r11+160)                                
 8004554:	44 20 00 04 	be r1,r0,8004564 <rtems_termios_close+0x168>   
 8004558:	29 62 00 b4 	lw r2,(r11+180)                                
 800455c:	34 01 00 02 	mvi r1,2                                       
 8004560:	5c 41 00 03 	bne r2,r1,800456c <rtems_termios_close+0x170>  
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))    
      rtems_semaphore_delete (tty->rawInBuf.Semaphore);               
 8004564:	29 61 00 68 	lw r1,(r11+104)                                
 8004568:	f8 00 07 c6 	calli 8006480 <rtems_semaphore_delete>         
    free (tty->rawInBuf.theBuf);                                      
 800456c:	29 61 00 58 	lw r1,(r11+88)                                 
 8004570:	fb ff f6 34 	calli 8001e40 <free>                           
    free (tty->rawOutBuf.theBuf);                                     
 8004574:	29 61 00 7c 	lw r1,(r11+124)                                
 8004578:	fb ff f6 32 	calli 8001e40 <free>                           
    free (tty->cbuf);                                                 
 800457c:	29 61 00 1c 	lw r1,(r11+28)                                 
 8004580:	fb ff f6 30 	calli 8001e40 <free>                           
    free (tty);                                                       
 8004584:	b9 60 08 00 	mv r1,r11                                      
 8004588:	fb ff f6 2e 	calli 8001e40 <free>                           
  }                                                                   
  rtems_semaphore_release (rtems_termios_ttyMutex);                   
 800458c:	78 01 08 02 	mvhi r1,0x802                                  
 8004590:	38 21 6d 90 	ori r1,r1,0x6d90                               
 8004594:	28 21 00 00 	lw r1,(r1+0)                                   
 8004598:	f8 00 08 39 	calli 800667c <rtems_semaphore_release>        
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 800459c:	34 01 00 00 	mvi r1,0                                       
 80045a0:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80045a4:	2b 8b 00 14 	lw r11,(sp+20)                                 
 80045a8:	2b 8c 00 10 	lw r12,(sp+16)                                 
 80045ac:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 80045b0:	2b 8e 00 08 	lw r14,(sp+8)                                  
 80045b4:	37 9c 00 14 	addi sp,sp,20                                  
 80045b8:	c3 a0 00 00 	ret                                            
                                                                      

080059c8 <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) {
 80059c8:	37 9c ff f8 	addi sp,sp,-8                                  
 80059cc:	5b 8b 00 08 	sw (sp+8),r11                                  
 80059d0:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_status_code sc;                                               
                                                                      
  /*                                                                  
   * sum up character count already sent                              
   */                                                                 
  tty->t_dqlen += len;                                                
 80059d4:	28 24 00 90 	lw r4,(r1+144)                                 
 80059d8:	b4 82 10 00 	add r2,r4,r2                                   
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
 80059dc:	28 24 00 b4 	lw r4,(r1+180)                                 
  rtems_status_code sc;                                               
                                                                      
  /*                                                                  
   * sum up character count already sent                              
   */                                                                 
  tty->t_dqlen += len;                                                
 80059e0:	58 22 00 90 	sw (r1+144),r2                                 
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
 80059e4:	34 02 00 02 	mvi r2,2                                       
 80059e8:	5c 82 00 06 	bne r4,r2,8005a00 <rtems_termios_dequeue_characters+0x38>
    /*                                                                
     * send wake up to transmitter task                               
     */                                                               
    sc = rtems_event_send(tty->txTaskId, TERMIOS_TX_START_EVENT);     
 80059ec:	28 21 00 c8 	lw r1,(r1+200)                                 
    if (sc != RTEMS_SUCCESSFUL)                                       
      rtems_fatal_error_occurred (sc);                                
    return 0; /* nothing to output in IRQ... */                       
 80059f0:	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);     
 80059f4:	f8 00 01 8f 	calli 8006030 <rtems_event_send>               
    if (sc != RTEMS_SUCCESSFUL)                                       
 80059f8:	44 20 00 0e 	be r1,r0,8005a30 <rtems_termios_dequeue_characters+0x68><== ALWAYS TAKEN
      rtems_fatal_error_occurred (sc);                                
 80059fc:	f8 00 05 43 	calli 8006f08 <rtems_fatal_error_occurred>     <== NOT EXECUTED
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  if (tty->t_line == PPPDISC ) {                                      
 8005a00:	28 23 00 cc 	lw r3,(r1+204)                                 
 8005a04:	34 02 00 05 	mvi r2,5                                       
 8005a08:	5c 62 00 08 	bne r3,r2,8005a28 <rtems_termios_dequeue_characters+0x60>
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
 8005a0c:	78 02 08 02 	mvhi r2,0x802                                  
 8005a10:	38 42 67 94 	ori r2,r2,0x6794                               
 8005a14:	28 42 00 b4 	lw r2,(r2+180)                                 
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
    }                                                                 
    return 0; /* nothing to output in IRQ... */                       
 8005a18:	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) {          
 8005a1c:	44 40 00 05 	be r2,r0,8005a30 <rtems_termios_dequeue_characters+0x68><== NEVER TAKEN
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
 8005a20:	d8 40 00 00 	call r2                                        
 8005a24:	e0 00 00 03 	bi 8005a30 <rtems_termios_dequeue_characters+0x68>
    }                                                                 
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  return rtems_termios_refill_transmitter(tty);                       
 8005a28:	fb ff f8 87 	calli 8003c44 <rtems_termios_refill_transmitter>
 8005a2c:	b8 20 58 00 	mv r11,r1                                      
}                                                                     
 8005a30:	b9 60 08 00 	mv r1,r11                                      
 8005a34:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005a38:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8005a3c:	37 9c 00 08 	addi sp,sp,8                                   
 8005a40:	c3 a0 00 00 	ret                                            
                                                                      

08005628 <rtems_termios_enqueue_raw_characters>: * device receive interrupt handler. * Returns the number of characters dropped because of overflow. */ int rtems_termios_enqueue_raw_characters (void *ttyp, const char *buf, int len) {
 8005628:	37 9c ff bc 	addi sp,sp,-68                                 
 800562c:	5b 8b 00 44 	sw (sp+68),r11                                 
 8005630:	5b 8c 00 40 	sw (sp+64),r12                                 
 8005634:	5b 8d 00 3c 	sw (sp+60),r13                                 
 8005638:	5b 8e 00 38 	sw (sp+56),r14                                 
 800563c:	5b 8f 00 34 	sw (sp+52),r15                                 
 8005640:	5b 90 00 30 	sw (sp+48),r16                                 
 8005644:	5b 91 00 2c 	sw (sp+44),r17                                 
 8005648:	5b 92 00 28 	sw (sp+40),r18                                 
 800564c:	5b 93 00 24 	sw (sp+36),r19                                 
 8005650:	5b 94 00 20 	sw (sp+32),r20                                 
 8005654:	5b 95 00 1c 	sw (sp+28),r21                                 
 8005658:	5b 96 00 18 	sw (sp+24),r22                                 
 800565c:	5b 97 00 14 	sw (sp+20),r23                                 
 8005660:	5b 98 00 10 	sw (sp+16),r24                                 
 8005664:	5b 99 00 0c 	sw (sp+12),r25                                 
 8005668:	5b 9b 00 08 	sw (sp+8),fp                                   
 800566c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8005670:	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) {             
 8005674:	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, const char *buf, int len)
{                                                                     
 8005678:	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) {             
 800567c:	78 0c 08 02 	mvhi r12,0x802                                 
 8005680:	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, const char *buf, int len)
{                                                                     
 8005684:	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) {             
 8005688:	39 8c 67 94 	ori r12,r12,0x6794                             
 800568c:	fb ff ec e6 	calli 8000a24 <__ashlsi3>                      
 8005690:	b5 81 08 00 	add r1,r12,r1                                  
 8005694:	28 21 00 10 	lw r1,(r1+16)                                  
 8005698:	b9 e0 70 00 	mv r14,r15                                     
 800569c:	5c 20 00 17 	bne r1,r0,80056f8 <rtems_termios_enqueue_raw_characters+0xd0>
 80056a0:	34 12 00 00 	mvi r18,0                                      
 80056a4:	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) {   
 80056a8:	34 1b 00 20 	mvi fp,32                                      
        /* disable interrupts    */                                   
        rtems_interrupt_disable(level);                               
 80056ac:	34 11 ff fe 	mvi r17,-2                                     
        tty->flow_ctrl &= ~FL_OSTOP;                                  
 80056b0:	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); 
 80056b4:	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))                
 80056b8:	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) ) {
 80056bc:	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,                          
 80056c0:	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;                                
 80056c4:	34 14 ff ef 	mvi r20,-17                                    
 80056c8:	e0 00 00 87 	bi 80058e4 <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);                
 80056cc:	29 61 00 cc 	lw r1,(r11+204)                                
 80056d0:	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++;                                                     
 80056d4:	41 af 00 00 	lbu r15,(r13+0)                                
      rtems_termios_linesw[tty->t_line].l_rint(c,tty);                
 80056d8:	fb ff ec d3 	calli 8000a24 <__ashlsi3>                      
 80056dc:	b5 81 10 00 	add r2,r12,r1                                  
 80056e0:	28 43 00 10 	lw r3,(r2+16)                                  
 80056e4:	b9 e0 08 00 	mv r1,r15                                      
 80056e8:	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++;                                                     
 80056ec:	35 ad 00 01 	addi r13,r13,1                                 
      rtems_termios_linesw[tty->t_line].l_rint(c,tty);                
 80056f0:	d8 60 00 00 	call r3                                        
 80056f4:	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--) {                                                   
 80056f8:	5d c0 ff f5 	bne r14,r0,80056cc <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 )) { 
 80056fc:	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;                                                         
 8005700:	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 )) { 
 8005704:	5c 2c 00 7e 	bne r1,r12,80058fc <rtems_termios_enqueue_raw_characters+0x2d4><== NEVER TAKEN
 8005708:	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;                                                         
 800570c:	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 )) { 
 8005710:	44 60 00 7b 	be r3,r0,80058fc <rtems_termios_enqueue_raw_characters+0x2d4>
      (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);     
 8005714:	29 62 00 e0 	lw r2,(r11+224)                                
 8005718:	35 61 00 30 	addi r1,r11,48                                 
 800571c:	d8 60 00 00 	call r3                                        
      tty->tty_rcvwakeup = 1;                                         
 8005720:	34 01 00 01 	mvi r1,1                                       
 8005724:	59 61 00 e4 	sw (r11+228),r1                                
 8005728:	e0 00 00 75 	bi 80058fc <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) {                                  
 800572c:	29 61 00 b8 	lw r1,(r11+184)                                
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
    c = *buf++;                                                       
 8005730:	41 b0 00 00 	lbu r16,(r13+0)                                
 8005734:	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) {                                  
 8005738:	20 21 02 00 	andi r1,r1,0x200                               
 800573c:	44 20 00 11 	be r1,r0,8005780 <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]) {                            
 8005740:	41 64 00 4a 	lbu r4,(r11+74)                                
 8005744:	41 63 00 49 	lbu r3,(r11+73)                                
 8005748:	5c 90 00 0a 	bne r4,r16,8005770 <rtems_termios_enqueue_raw_characters+0x148>
        if (c == tty->termios.c_cc[VSTART]) {                         
 800574c:	5c 64 00 04 	bne r3,r4,800575c <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;               
 8005750:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
 8005754:	18 21 00 10 	xori r1,r1,0x10                                <== NOT EXECUTED
 8005758:	e0 00 00 03 	bi 8005764 <rtems_termios_enqueue_raw_characters+0x13c><== NOT EXECUTED
        }                                                             
        else {                                                        
          /* VSTOP received (other code than VSTART) */               
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
 800575c:	29 61 00 b8 	lw r1,(r11+184)                                
 8005760:	38 21 00 10 	ori r1,r1,0x10                                 
 8005764:	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, const char *buf, int len)
{                                                                     
 8005768:	34 12 00 01 	mvi r18,1                                      
 800576c:	e0 00 00 06 	bi 8005784 <rtems_termios_enqueue_raw_characters+0x15c>
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
        }                                                             
        flow_rcv = true;                                              
      }                                                               
      else if (c == tty->termios.c_cc[VSTART]) {                      
 8005770:	5c 70 00 04 	bne r3,r16,8005780 <rtems_termios_enqueue_raw_characters+0x158><== ALWAYS TAKEN
        /* VSTART received */                                         
        /* restart output  */                                         
        tty->flow_ctrl &= ~FL_ORCVXOF;                                
 8005774:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
 8005778:	a0 34 08 00 	and r1,r1,r20                                  <== NOT EXECUTED
 800577c:	e3 ff ff fa 	bi 8005764 <rtems_termios_enqueue_raw_characters+0x13c><== NOT EXECUTED
        flow_rcv = true;                                              
      }                                                               
    }                                                                 
    if (flow_rcv) {                                                   
 8005780:	46 40 00 15 	be r18,r0,80057d4 <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) {   
 8005784:	29 61 00 b8 	lw r1,(r11+184)                                
 8005788:	20 21 00 30 	andi r1,r1,0x30                                
 800578c:	5c 3b 00 55 	bne r1,fp,80058e0 <rtems_termios_enqueue_raw_characters+0x2b8><== ALWAYS TAKEN
        /* disable interrupts    */                                   
        rtems_interrupt_disable(level);                               
 8005790:	90 00 70 00 	rcsr r14,IE                                    <== NOT EXECUTED
 8005794:	a1 d1 08 00 	and r1,r14,r17                                 <== NOT EXECUTED
 8005798:	d0 01 00 00 	wcsr IE,r1                                     <== NOT EXECUTED
        tty->flow_ctrl &= ~FL_OSTOP;                                  
 800579c:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
 80057a0:	a0 39 08 00 	and r1,r1,r25                                  <== NOT EXECUTED
 80057a4:	59 61 00 b8 	sw (r11+184),r1                                <== NOT EXECUTED
        /* check for chars in output buffer (or rob_state?) */        
        if (tty->rawOutBufState != rob_idle) {                        
 80057a8:	29 61 00 94 	lw r1,(r11+148)                                <== NOT EXECUTED
 80057ac:	44 20 00 08 	be r1,r0,80057cc <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);
 80057b0:	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)(                                       
 80057b4:	29 62 00 7c 	lw r2,(r11+124)                                <== NOT EXECUTED
 80057b8:	29 64 00 a4 	lw r4,(r11+164)                                <== NOT EXECUTED
 80057bc:	29 61 00 10 	lw r1,(r11+16)                                 <== NOT EXECUTED
 80057c0:	b4 43 10 00 	add r2,r2,r3                                   <== NOT EXECUTED
 80057c4:	34 03 00 01 	mvi r3,1                                       <== NOT EXECUTED
 80057c8:	d8 80 00 00 	call r4                                        <== NOT EXECUTED
            tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);
        }                                                             
        /* reenable interrupts */                                     
        rtems_interrupt_enable(level);                                
 80057cc:	d0 0e 00 00 	wcsr IE,r14                                    <== NOT EXECUTED
 80057d0:	e0 00 00 44 	bi 80058e0 <rtems_termios_enqueue_raw_characters+0x2b8><== NOT EXECUTED
      }                                                               
    } else {                                                          
      newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;        
 80057d4:	29 63 00 60 	lw r3,(r11+96)                                 
 80057d8:	29 62 00 64 	lw r2,(r11+100)                                
 80057dc:	34 61 00 01 	addi r1,r3,1                                   
 80057e0:	f8 00 73 16 	calli 8022438 <__umodsi3>                      
 80057e4:	b8 20 70 00 	mv r14,r1                                      
      /* if chars_in_buffer > highwater                */             
      rtems_interrupt_disable(level);                                 
 80057e8:	90 00 98 00 	rcsr r19,IE                                    
 80057ec:	a2 71 08 00 	and r1,r19,r17                                 
 80057f0:	d0 01 00 00 	wcsr IE,r1                                     
      if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)       
 80057f4:	29 61 00 5c 	lw r1,(r11+92)                                 
 80057f8:	29 63 00 64 	lw r3,(r11+100)                                
            % tty->rawInBuf.Size) > tty->highwater) &&                
 80057fc:	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)       
 8005800:	c8 61 18 00 	sub r3,r3,r1                                   
            % tty->rawInBuf.Size) > tty->highwater) &&                
 8005804:	b4 6e 08 00 	add r1,r3,r14                                  
 8005808:	f8 00 73 0c 	calli 8022438 <__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)       
 800580c:	29 62 00 c0 	lw r2,(r11+192)                                
 8005810:	50 41 00 22 	bgeu r2,r1,8005898 <rtems_termios_enqueue_raw_characters+0x270><== ALWAYS TAKEN
            % tty->rawInBuf.Size) > tty->highwater) &&                
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
 8005814:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
 8005818:	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) &&                
 800581c:	5c 20 00 1f 	bne r1,r0,8005898 <rtems_termios_enqueue_raw_characters+0x270><== NOT EXECUTED
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
        /* incoming data stream should be stopped */                  
        tty->flow_ctrl |= FL_IREQXOF;                                 
 8005820:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
 8005824:	38 21 00 01 	ori r1,r1,0x1                                  <== NOT EXECUTED
 8005828:	59 61 00 b8 	sw (r11+184),r1                                <== NOT EXECUTED
        if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))                
 800582c:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
 8005830:	20 21 04 02 	andi r1,r1,0x402                               <== NOT EXECUTED
 8005834:	5c 37 00 0f 	bne r1,r23,8005870 <rtems_termios_enqueue_raw_characters+0x248><== NOT EXECUTED
            ==                (FL_MDXOF             ) ) {             
          if ((tty->flow_ctrl & FL_OSTOP) ||                          
 8005838:	29 63 00 b8 	lw r3,(r11+184)                                <== NOT EXECUTED
 800583c:	20 63 00 20 	andi r3,r3,0x20                                <== NOT EXECUTED
 8005840:	5c 60 00 03 	bne r3,r0,800584c <rtems_termios_enqueue_raw_characters+0x224><== NOT EXECUTED
 8005844:	29 61 00 94 	lw r1,(r11+148)                                <== NOT EXECUTED
 8005848:	5c 23 00 14 	bne r1,r3,8005898 <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;                             
 800584c:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
            (*tty->device.write)(tty->minor,                          
 8005850:	29 64 00 a4 	lw r4,(r11+164)                                <== NOT EXECUTED
 8005854:	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;                             
 8005858:	38 21 00 02 	ori r1,r1,0x2                                  <== NOT EXECUTED
 800585c:	59 61 00 b8 	sw (r11+184),r1                                <== NOT EXECUTED
            (*tty->device.write)(tty->minor,                          
 8005860:	29 61 00 10 	lw r1,(r11+16)                                 <== NOT EXECUTED
 8005864:	34 03 00 01 	mvi r3,1                                       <== NOT EXECUTED
 8005868:	d8 80 00 00 	call r4                                        <== NOT EXECUTED
 800586c:	e0 00 00 0b 	bi 8005898 <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) ) {
 8005870:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
 8005874:	20 21 01 04 	andi r1,r1,0x104                               <== NOT EXECUTED
 8005878:	5c 36 00 08 	bne r1,r22,8005898 <rtems_termios_enqueue_raw_characters+0x270><== NOT EXECUTED
          tty->flow_ctrl |= FL_IRTSOFF;                               
 800587c:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
          /* deactivate RTS line */                                   
          if (tty->device.stopRemoteTx != NULL) {                     
 8005880:	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;                               
 8005884:	38 21 00 04 	ori r1,r1,0x4                                  <== NOT EXECUTED
 8005888:	59 61 00 b8 	sw (r11+184),r1                                <== NOT EXECUTED
          /* deactivate RTS line */                                   
          if (tty->device.stopRemoteTx != NULL) {                     
 800588c:	44 60 00 03 	be r3,r0,8005898 <rtems_termios_enqueue_raw_characters+0x270><== NOT EXECUTED
            tty->device.stopRemoteTx(tty->minor);                     
 8005890:	29 61 00 10 	lw r1,(r11+16)                                 <== NOT EXECUTED
 8005894:	d8 60 00 00 	call r3                                        <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      /* reenable interrupts */                                       
      rtems_interrupt_enable(level);                                  
 8005898:	d0 13 00 00 	wcsr IE,r19                                    
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
 800589c:	29 61 00 5c 	lw r1,(r11+92)                                 
 80058a0:	5d c1 00 03 	bne r14,r1,80058ac <rtems_termios_enqueue_raw_characters+0x284><== ALWAYS TAKEN
        dropped++;                                                    
 80058a4:	35 8c 00 01 	addi r12,r12,1                                 <== NOT EXECUTED
 80058a8:	e0 00 00 0e 	bi 80058e0 <rtems_termios_enqueue_raw_characters+0x2b8><== NOT EXECUTED
      } else {                                                        
        tty->rawInBuf.theBuf[newTail] = c;                            
 80058ac:	29 61 00 58 	lw r1,(r11+88)                                 
 80058b0:	b4 2e 08 00 	add r1,r1,r14                                  
 80058b4:	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 )) {
 80058b8:	29 64 00 e4 	lw r4,(r11+228)                                
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
        dropped++;                                                    
      } else {                                                        
        tty->rawInBuf.theBuf[newTail] = c;                            
        tty->rawInBuf.Tail = newTail;                                 
 80058bc:	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 )) {
 80058c0:	5c 80 00 08 	bne r4,r0,80058e0 <rtems_termios_enqueue_raw_characters+0x2b8><== NEVER TAKEN
 80058c4:	29 63 00 dc 	lw r3,(r11+220)                                
 80058c8:	44 64 00 06 	be r3,r4,80058e0 <rtems_termios_enqueue_raw_characters+0x2b8><== ALWAYS TAKEN
          (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 
 80058cc:	29 62 00 e0 	lw r2,(r11+224)                                <== NOT EXECUTED
 80058d0:	bb 00 08 00 	mv r1,r24                                      <== NOT EXECUTED
 80058d4:	d8 60 00 00 	call r3                                        <== NOT EXECUTED
          tty->tty_rcvwakeup = 1;                                     
 80058d8:	34 01 00 01 	mvi r1,1                                       <== NOT EXECUTED
 80058dc:	59 61 00 e4 	sw (r11+228),r1                                <== NOT EXECUTED
 80058e0:	35 ef ff ff 	addi r15,r15,-1                                
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
 80058e4:	5d e0 ff 92 	bne r15,r0,800572c <rtems_termios_enqueue_raw_characters+0x104>
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  tty->rawInBufDropped += dropped;                                    
 80058e8:	29 61 00 78 	lw r1,(r11+120)                                
 80058ec:	b4 2c 08 00 	add r1,r1,r12                                  
 80058f0:	59 61 00 78 	sw (r11+120),r1                                
  rtems_semaphore_release (tty->rawInBuf.Semaphore);                  
 80058f4:	29 61 00 68 	lw r1,(r11+104)                                
 80058f8:	f8 00 03 61 	calli 800667c <rtems_semaphore_release>        
  return dropped;                                                     
}                                                                     
 80058fc:	b9 80 08 00 	mv r1,r12                                      
 8005900:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005904:	2b 8b 00 44 	lw r11,(sp+68)                                 
 8005908:	2b 8c 00 40 	lw r12,(sp+64)                                 
 800590c:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 8005910:	2b 8e 00 38 	lw r14,(sp+56)                                 
 8005914:	2b 8f 00 34 	lw r15,(sp+52)                                 
 8005918:	2b 90 00 30 	lw r16,(sp+48)                                 
 800591c:	2b 91 00 2c 	lw r17,(sp+44)                                 
 8005920:	2b 92 00 28 	lw r18,(sp+40)                                 
 8005924:	2b 93 00 24 	lw r19,(sp+36)                                 
 8005928:	2b 94 00 20 	lw r20,(sp+32)                                 
 800592c:	2b 95 00 1c 	lw r21,(sp+28)                                 
 8005930:	2b 96 00 18 	lw r22,(sp+24)                                 
 8005934:	2b 97 00 14 	lw r23,(sp+20)                                 
 8005938:	2b 98 00 10 	lw r24,(sp+16)                                 
 800593c:	2b 99 00 0c 	lw r25,(sp+12)                                 
 8005940:	2b 9b 00 08 	lw fp,(sp+8)                                   
 8005944:	37 9c 00 44 	addi sp,sp,68                                  
 8005948:	c3 a0 00 00 	ret                                            
                                                                      

08003bf4 <rtems_termios_initialize>: struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) {
 8003bf4:	37 9c ff f8 	addi sp,sp,-8                                  
 8003bf8:	5b 8b 00 08 	sw (sp+8),r11                                  
 8003bfc:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_status_code sc;                                               
                                                                      
  /*                                                                  
   * Create the mutex semaphore for the tty list                      
   */                                                                 
  if (!rtems_termios_ttyMutex) {                                      
 8003c00:	78 05 08 02 	mvhi r5,0x802                                  
 8003c04:	38 a5 6d 90 	ori r5,r5,0x6d90                               
 8003c08:	28 ab 00 00 	lw r11,(r5+0)                                  
 8003c0c:	5d 60 00 0a 	bne r11,r0,8003c34 <rtems_termios_initialize+0x40><== NEVER TAKEN
    sc = rtems_semaphore_create (                                     
 8003c10:	78 02 08 02 	mvhi r2,0x802                                  
 8003c14:	38 42 3b 50 	ori r2,r2,0x3b50                               
 8003c18:	28 41 00 00 	lw r1,(r2+0)                                   
 8003c1c:	34 03 00 54 	mvi r3,84                                      
 8003c20:	34 02 00 01 	mvi r2,1                                       
 8003c24:	34 04 00 00 	mvi r4,0                                       
 8003c28:	f8 00 09 99 	calli 800628c <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)                                       
 8003c2c:	44 2b 00 02 	be r1,r11,8003c34 <rtems_termios_initialize+0x40><== ALWAYS TAKEN
      rtems_fatal_error_occurred (sc);                                
 8003c30:	f8 00 0c b6 	calli 8006f08 <rtems_fatal_error_occurred>     <== NOT EXECUTED
  }                                                                   
}                                                                     
 8003c34:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003c38:	2b 8b 00 08 	lw r11,(sp+8)                                  
 8003c3c:	37 9c 00 08 	addi sp,sp,8                                   
 8003c40:	c3 a0 00 00 	ret                                            
                                                                      

080045e8 <rtems_termios_ioctl>: } } rtems_status_code rtems_termios_ioctl (void *arg) {
 80045e8:	37 9c ff ec 	addi sp,sp,-20                                 
 80045ec:	5b 8b 00 14 	sw (sp+20),r11                                 
 80045f0:	5b 8c 00 10 	sw (sp+16),r12                                 
 80045f4:	5b 8d 00 0c 	sw (sp+12),r13                                 
 80045f8:	5b 8e 00 08 	sw (sp+8),r14                                  
 80045fc:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004600:	b8 20 60 00 	mv r12,r1                                      
  rtems_libio_ioctl_args_t *args = arg;                               
  struct rtems_termios_tty *tty = args->iop->data1;                   
 8004604:	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);
 8004608:	34 02 00 00 	mvi r2,0                                       
 800460c:	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;                   
 8004610:	28 2b 00 28 	lw r11,(r1+40)                                 
  struct ttywakeup         *wakeup = (struct ttywakeup *)args->buffer;
  rtems_status_code sc;                                               
                                                                      
  args->ioctl_return = 0;                                             
 8004614:	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;
 8004618:	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);
 800461c:	29 61 00 18 	lw r1,(r11+24)                                 
 8004620:	f8 00 07 c7 	calli 800653c <rtems_semaphore_obtain>         
 8004624:	b8 20 68 00 	mv r13,r1                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
 8004628:	5c 20 01 00 	bne r1,r0,8004a28 <rtems_termios_ioctl+0x440>  <== NEVER TAKEN
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
 800462c:	29 82 00 04 	lw r2,(r12+4)                                  
 8004630:	34 01 00 05 	mvi r1,5                                       
 8004634:	44 41 00 c5 	be r2,r1,8004948 <rtems_termios_ioctl+0x360>   <== NEVER TAKEN
 8004638:	54 41 00 0c 	bgu r2,r1,8004668 <rtems_termios_ioctl+0x80>   
 800463c:	34 01 00 02 	mvi r1,2                                       
 8004640:	44 41 00 2c 	be r2,r1,80046f0 <rtems_termios_ioctl+0x108>   
 8004644:	54 41 00 04 	bgu r2,r1,8004654 <rtems_termios_ioctl+0x6c>   
 8004648:	34 01 00 01 	mvi r1,1                                       
 800464c:	5c 41 00 17 	bne r2,r1,80046a8 <rtems_termios_ioctl+0xc0>   <== NEVER TAKEN
 8004650:	e0 00 00 23 	bi 80046dc <rtems_termios_ioctl+0xf4>          
 8004654:	34 01 00 03 	mvi r1,3                                       
 8004658:	44 41 00 9a 	be r2,r1,80048c0 <rtems_termios_ioctl+0x2d8>   
 800465c:	34 01 00 04 	mvi r1,4                                       
 8004660:	5c 41 00 12 	bne r2,r1,80046a8 <rtems_termios_ioctl+0xc0>   <== NEVER TAKEN
 8004664:	e0 00 00 be 	bi 800495c <rtems_termios_ioctl+0x374>         
 8004668:	78 03 08 02 	mvhi r3,0x802                                  
 800466c:	38 63 3b 6c 	ori r3,r3,0x3b6c                               
 8004670:	28 61 00 00 	lw r1,(r3+0)                                   
 8004674:	44 41 00 dd 	be r2,r1,80049e8 <rtems_termios_ioctl+0x400>   <== NEVER TAKEN
 8004678:	54 41 00 04 	bgu r2,r1,8004688 <rtems_termios_ioctl+0xa0>   
 800467c:	34 01 00 06 	mvi r1,6                                       
 8004680:	5c 41 00 0a 	bne r2,r1,80046a8 <rtems_termios_ioctl+0xc0>   <== ALWAYS TAKEN
 8004684:	e0 00 00 92 	bi 80048cc <rtems_termios_ioctl+0x2e4>         <== NOT EXECUTED
 8004688:	78 03 08 02 	mvhi r3,0x802                                  
 800468c:	38 63 3b 70 	ori r3,r3,0x3b70                               
 8004690:	28 61 00 00 	lw r1,(r3+0)                                   
 8004694:	44 41 00 d1 	be r2,r1,80049d8 <rtems_termios_ioctl+0x3f0>   <== NEVER TAKEN
 8004698:	78 03 08 02 	mvhi r3,0x802                                  
 800469c:	38 63 3b 74 	ori r3,r3,0x3b74                               
 80046a0:	28 61 00 00 	lw r1,(r3+0)                                   
 80046a4:	44 41 00 b3 	be r2,r1,8004970 <rtems_termios_ioctl+0x388>   <== ALWAYS TAKEN
  default:                                                            
    if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {          
 80046a8:	29 61 00 cc 	lw r1,(r11+204)                                
 80046ac:	78 0d 08 02 	mvhi r13,0x802                                 
 80046b0:	34 02 00 05 	mvi r2,5                                       
 80046b4:	39 ad 67 94 	ori r13,r13,0x6794                             
 80046b8:	fb ff f0 db 	calli 8000a24 <__ashlsi3>                      
 80046bc:	b5 a1 08 00 	add r1,r13,r1                                  
 80046c0:	28 23 00 18 	lw r3,(r1+24)                                  
      sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);       
    }                                                                 
    else {                                                            
      sc = RTEMS_INVALID_NUMBER;                                      
 80046c4:	34 0d 00 0a 	mvi r13,10                                     
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
  default:                                                            
    if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {          
 80046c8:	44 60 00 d6 	be r3,r0,8004a20 <rtems_termios_ioctl+0x438>   <== NEVER TAKEN
      sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);       
 80046cc:	b9 60 08 00 	mv r1,r11                                      
 80046d0:	b9 80 10 00 	mv r2,r12                                      
 80046d4:	d8 60 00 00 	call r3                                        
 80046d8:	e0 00 00 be 	bi 80049d0 <rtems_termios_ioctl+0x3e8>         
      sc = RTEMS_INVALID_NUMBER;                                      
    }                                                                 
    break;                                                            
                                                                      
  case RTEMS_IO_GET_ATTRIBUTES:                                       
    *(struct termios *)args->buffer = tty->termios;                   
 80046dc:	29 81 00 08 	lw r1,(r12+8)                                  
 80046e0:	35 62 00 30 	addi r2,r11,48                                 
 80046e4:	34 03 00 24 	mvi r3,36                                      
 80046e8:	f8 00 30 1a 	calli 8010750 <memcpy>                         
    break;                                                            
 80046ec:	e0 00 00 cd 	bi 8004a20 <rtems_termios_ioctl+0x438>         
                                                                      
  case RTEMS_IO_SET_ATTRIBUTES:                                       
    tty->termios = *(struct termios *)args->buffer;                   
 80046f0:	29 82 00 08 	lw r2,(r12+8)                                  
 80046f4:	35 61 00 30 	addi r1,r11,48                                 
 80046f8:	34 03 00 24 	mvi r3,36                                      
 80046fc:	f8 00 30 15 	calli 8010750 <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) &&                                 
 8004700:	29 61 00 b8 	lw r1,(r11+184)                                
 8004704:	20 21 02 00 	andi r1,r1,0x200                               
 8004708:	44 20 00 1d 	be r1,r0,800477c <rtems_termios_ioctl+0x194>   
      !(tty->termios.c_iflag & IXON)) {                               
 800470c:	29 61 00 30 	lw r1,(r11+48)                                 
 8004710:	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) &&                                 
 8004714:	5c 20 00 1a 	bne r1,r0,800477c <rtems_termios_ioctl+0x194>  
      !(tty->termios.c_iflag & IXON)) {                               
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF);                       
 8004718:	29 62 00 b8 	lw r2,(r11+184)                                
 800471c:	34 01 fd ef 	mvi r1,-529                                    
 8004720:	a0 41 08 00 	and r1,r2,r1                                   
 8004724:	59 61 00 b8 	sw (r11+184),r1                                
                                                                      
    /* has output been stopped due to received XOFF? */               
    if (tty->flow_ctrl & FL_OSTOP) {                                  
 8004728:	29 61 00 b8 	lw r1,(r11+184)                                
 800472c:	20 21 00 20 	andi r1,r1,0x20                                
 8004730:	44 20 00 13 	be r1,r0,800477c <rtems_termios_ioctl+0x194>   <== ALWAYS TAKEN
      /* disable interrupts    */                                     
      rtems_interrupt_disable(level);                                 
 8004734:	90 00 60 00 	rcsr r12,IE                                    <== NOT EXECUTED
 8004738:	34 01 ff fe 	mvi r1,-2                                      <== NOT EXECUTED
 800473c:	a1 81 08 00 	and r1,r12,r1                                  <== NOT EXECUTED
 8004740:	d0 01 00 00 	wcsr IE,r1                                     <== NOT EXECUTED
      tty->flow_ctrl &= ~FL_OSTOP;                                    
 8004744:	29 62 00 b8 	lw r2,(r11+184)                                <== NOT EXECUTED
 8004748:	34 01 ff df 	mvi r1,-33                                     <== NOT EXECUTED
 800474c:	a0 41 08 00 	and r1,r2,r1                                   <== NOT EXECUTED
 8004750:	59 61 00 b8 	sw (r11+184),r1                                <== NOT EXECUTED
      /* check for chars in output buffer (or rob_state?) */          
      if (tty->rawOutBufState != rob_idle) {                          
 8004754:	29 61 00 94 	lw r1,(r11+148)                                <== NOT EXECUTED
 8004758:	44 20 00 08 	be r1,r0,8004778 <rtems_termios_ioctl+0x190>   <== NOT EXECUTED
        /* if chars available, call write function... */              
        (*tty->device.write)(                                         
 800475c:	29 63 00 7c 	lw r3,(r11+124)                                <== NOT EXECUTED
          tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 
 8004760:	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)(                                         
 8004764:	29 64 00 a4 	lw r4,(r11+164)                                <== NOT EXECUTED
 8004768:	29 61 00 10 	lw r1,(r11+16)                                 <== NOT EXECUTED
 800476c:	b4 62 10 00 	add r2,r3,r2                                   <== NOT EXECUTED
 8004770:	34 03 00 01 	mvi r3,1                                       <== NOT EXECUTED
 8004774:	d8 80 00 00 	call r4                                        <== NOT EXECUTED
          tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 
      }                                                               
      /* reenable interrupts */                                       
      rtems_interrupt_enable(level);                                  
 8004778:	d0 0c 00 00 	wcsr IE,r12                                    <== NOT EXECUTED
    }                                                                 
  }                                                                   
  /* check for incoming XON/XOFF flow control switched off */         
  if (( tty->flow_ctrl & FL_MDXOF) && !(tty->termios.c_iflag & IXOFF)) {
 800477c:	29 61 00 b8 	lw r1,(r11+184)                                
 8004780:	20 21 04 00 	andi r1,r1,0x400                               
 8004784:	44 20 00 0c 	be r1,r0,80047b4 <rtems_termios_ioctl+0x1cc>   
 8004788:	29 61 00 30 	lw r1,(r11+48)                                 
 800478c:	20 21 10 00 	andi r1,r1,0x1000                              
 8004790:	5c 20 00 09 	bne r1,r0,80047b4 <rtems_termios_ioctl+0x1cc>  <== NEVER TAKEN
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDXOF);                                    
 8004794:	29 62 00 b8 	lw r2,(r11+184)                                
 8004798:	34 01 fb ff 	mvi r1,-1025                                   
 800479c:	a0 41 08 00 	and r1,r2,r1                                   
 80047a0:	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);                                  
 80047a4:	29 62 00 b8 	lw r2,(r11+184)                                
 80047a8:	34 01 ff fd 	mvi r1,-3                                      
 80047ac:	a0 41 08 00 	and r1,r2,r1                                   
 80047b0:	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)) {
 80047b4:	29 61 00 b8 	lw r1,(r11+184)                                
 80047b8:	20 21 01 00 	andi r1,r1,0x100                               
 80047bc:	44 20 00 12 	be r1,r0,8004804 <rtems_termios_ioctl+0x21c>   
 80047c0:	29 61 00 38 	lw r1,(r11+56)                                 
 80047c4:	48 01 00 10 	bg r0,r1,8004804 <rtems_termios_ioctl+0x21c>   <== ALWAYS TAKEN
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDRTS);                                    
 80047c8:	29 62 00 b8 	lw r2,(r11+184)                                <== NOT EXECUTED
 80047cc:	34 01 fe ff 	mvi r1,-257                                    <== NOT EXECUTED
 80047d0:	a0 41 08 00 	and r1,r2,r1                                   <== NOT EXECUTED
 80047d4:	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)) {
 80047d8:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
 80047dc:	20 21 00 04 	andi r1,r1,0x4                                 <== NOT EXECUTED
 80047e0:	44 20 00 05 	be r1,r0,80047f4 <rtems_termios_ioctl+0x20c>   <== NOT EXECUTED
 80047e4:	29 62 00 b0 	lw r2,(r11+176)                                <== NOT EXECUTED
 80047e8:	44 40 00 03 	be r2,r0,80047f4 <rtems_termios_ioctl+0x20c>   <== NOT EXECUTED
      tty->device.startRemoteTx(tty->minor);                          
 80047ec:	29 61 00 10 	lw r1,(r11+16)                                 <== NOT EXECUTED
 80047f0:	d8 40 00 00 	call r2                                        <== NOT EXECUTED
    }                                                                 
    tty->flow_ctrl &= ~(FL_IRTSOFF);                                  
 80047f4:	29 62 00 b8 	lw r2,(r11+184)                                <== NOT EXECUTED
 80047f8:	34 01 ff fb 	mvi r1,-5                                      <== NOT EXECUTED
 80047fc:	a0 41 08 00 	and r1,r2,r1                                   <== NOT EXECUTED
 8004800:	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) {                               
 8004804:	29 61 00 38 	lw r1,(r11+56)                                 
 8004808:	4c 20 00 04 	bge r1,r0,8004818 <rtems_termios_ioctl+0x230>  
    tty->flow_ctrl |= FL_MDRTS;                                       
 800480c:	29 61 00 b8 	lw r1,(r11+184)                                
 8004810:	38 21 01 00 	ori r1,r1,0x100                                
 8004814:	59 61 00 b8 	sw (r11+184),r1                                
  }                                                                   
  /* check for incoming XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXOFF) {                                 
 8004818:	29 61 00 30 	lw r1,(r11+48)                                 
 800481c:	20 22 10 00 	andi r2,r1,0x1000                              
 8004820:	44 40 00 04 	be r2,r0,8004830 <rtems_termios_ioctl+0x248>   
    tty->flow_ctrl |= FL_MDXOF;                                       
 8004824:	29 62 00 b8 	lw r2,(r11+184)                                
 8004828:	38 42 04 00 	ori r2,r2,0x400                                
 800482c:	59 62 00 b8 	sw (r11+184),r2                                
  }                                                                   
  /* check for outgoing XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXON) {                                  
 8004830:	20 21 04 00 	andi r1,r1,0x400                               
 8004834:	44 20 00 04 	be r1,r0,8004844 <rtems_termios_ioctl+0x25c>   
    tty->flow_ctrl |= FL_MDXON;                                       
 8004838:	29 61 00 b8 	lw r1,(r11+184)                                
 800483c:	38 21 02 00 	ori r1,r1,0x200                                
 8004840:	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) {                              
 8004844:	29 6c 00 3c 	lw r12,(r11+60)                                
 8004848:	21 8c 00 02 	andi r12,r12,0x2                               
 800484c:	5d 80 00 11 	bne r12,r0,8004890 <rtems_termios_ioctl+0x2a8> 
      tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                     
      tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;               
      tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;          
    } else {                                                          
      tty->vtimeTicks = tty->termios.c_cc[VTIME] *                    
 8004850:	41 6e 00 46 	lbu r14,(r11+70)                               
                    rtems_clock_get_ticks_per_second() / 10;          
 8004854:	f8 00 05 69 	calli 8005df8 <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] *                    
 8004858:	b9 c0 10 00 	mv r2,r14                                      
 800485c:	f8 00 76 82 	calli 8022264 <__mulsi3>                       
                    rtems_clock_get_ticks_per_second() / 10;          
 8004860:	34 02 00 0a 	mvi r2,10                                      
 8004864:	f8 00 76 e5 	calli 80223f8 <__udivsi3>                      
      if (tty->termios.c_cc[VTIME]) {                                 
 8004868:	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] *                    
 800486c:	59 61 00 54 	sw (r11+84),r1                                 
 8004870:	41 63 00 47 	lbu r3,(r11+71)                                
                    rtems_clock_get_ticks_per_second() / 10;          
      if (tty->termios.c_cc[VTIME]) {                                 
 8004874:	44 4c 00 06 	be r2,r12,800488c <rtems_termios_ioctl+0x2a4>  
        tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                   
 8004878:	59 60 00 6c 	sw (r11+108),r0                                
        tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;              
 800487c:	59 61 00 70 	sw (r11+112),r1                                
        if (tty->termios.c_cc[VMIN])                                  
 8004880:	5c 60 00 06 	bne r3,r0,8004898 <rtems_termios_ioctl+0x2b0>  
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
        else                                                          
          tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;       
 8004884:	59 61 00 74 	sw (r11+116),r1                                
 8004888:	e0 00 00 08 	bi 80048a8 <rtems_termios_ioctl+0x2c0>         
      } else {                                                        
        if (tty->termios.c_cc[VMIN]) {                                
 800488c:	44 62 00 05 	be r3,r2,80048a0 <rtems_termios_ioctl+0x2b8>   <== ALWAYS TAKEN
          tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                 
 8004890:	59 60 00 6c 	sw (r11+108),r0                                
          tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;           
 8004894:	59 60 00 70 	sw (r11+112),r0                                
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
 8004898:	59 60 00 74 	sw (r11+116),r0                                
 800489c:	e0 00 00 03 	bi 80048a8 <rtems_termios_ioctl+0x2c0>         
        } else {                                                      
          tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;              
 80048a0:	34 01 00 01 	mvi r1,1                                       
 80048a4:	59 61 00 6c 	sw (r11+108),r1                                
        }                                                             
      }                                                               
    }                                                                 
    if (tty->device.setAttributes)                                    
 80048a8:	29 63 00 a8 	lw r3,(r11+168)                                
 80048ac:	44 60 00 5d 	be r3,r0,8004a20 <rtems_termios_ioctl+0x438>   <== NEVER TAKEN
      (*tty->device.setAttributes)(tty->minor, &tty->termios);        
 80048b0:	29 61 00 10 	lw r1,(r11+16)                                 
 80048b4:	35 62 00 30 	addi r2,r11,48                                 
 80048b8:	d8 60 00 00 	call r3                                        
 80048bc:	e0 00 00 59 	bi 8004a20 <rtems_termios_ioctl+0x438>         
    break;                                                            
                                                                      
  case RTEMS_IO_TCDRAIN:                                              
    drainOutput (tty);                                                
 80048c0:	b9 60 08 00 	mv r1,r11                                      
 80048c4:	fb ff fd 5f 	calli 8003e40 <drainOutput>                    
    break;                                                            
 80048c8:	e0 00 00 56 	bi 8004a20 <rtems_termios_ioctl+0x438>         
                                                                      
  case RTEMS_IO_TCFLUSH:                                              
    switch ((intptr_t) args->buffer) {                                
 80048cc:	29 81 00 08 	lw r1,(r12+8)                                  <== NOT EXECUTED
 80048d0:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 80048d4:	44 22 00 05 	be r1,r2,80048e8 <rtems_termios_ioctl+0x300>   <== NOT EXECUTED
 80048d8:	34 02 00 02 	mvi r2,2                                       <== NOT EXECUTED
 80048dc:	44 22 00 0b 	be r1,r2,8004908 <rtems_termios_ioctl+0x320>   <== NOT EXECUTED
 80048e0:	5c 20 00 4f 	bne r1,r0,8004a1c <rtems_termios_ioctl+0x434>  <== NOT EXECUTED
 80048e4:	e0 00 00 11 	bi 8004928 <rtems_termios_ioctl+0x340>         <== NOT EXECUTED
static void                                                           
flushOutput (struct rtems_termios_tty *tty)                           
{                                                                     
  rtems_interrupt_level level;                                        
                                                                      
  rtems_interrupt_disable (level);                                    
 80048e8:	90 00 08 00 	rcsr r1,IE                                     <== NOT EXECUTED
 80048ec:	34 02 ff fe 	mvi r2,-2                                      <== NOT EXECUTED
 80048f0:	a0 22 10 00 	and r2,r1,r2                                   <== NOT EXECUTED
 80048f4:	d0 02 00 00 	wcsr IE,r2                                     <== NOT EXECUTED
  tty->rawOutBuf.Tail = 0;                                            
 80048f8:	59 60 00 84 	sw (r11+132),r0                                <== NOT EXECUTED
  tty->rawOutBuf.Head = 0;                                            
 80048fc:	59 60 00 80 	sw (r11+128),r0                                <== NOT EXECUTED
  tty->rawOutBufState = rob_idle;                                     
 8004900:	59 60 00 94 	sw (r11+148),r0                                <== NOT EXECUTED
 8004904:	e0 00 00 0f 	bi 8004940 <rtems_termios_ioctl+0x358>         <== NOT EXECUTED
static void                                                           
flushOutput (struct rtems_termios_tty *tty)                           
{                                                                     
  rtems_interrupt_level level;                                        
                                                                      
  rtems_interrupt_disable (level);                                    
 8004908:	90 00 08 00 	rcsr r1,IE                                     <== NOT EXECUTED
 800490c:	34 02 ff fe 	mvi r2,-2                                      <== NOT EXECUTED
 8004910:	a0 22 10 00 	and r2,r1,r2                                   <== NOT EXECUTED
 8004914:	d0 02 00 00 	wcsr IE,r2                                     <== NOT EXECUTED
  tty->rawOutBuf.Tail = 0;                                            
 8004918:	59 60 00 84 	sw (r11+132),r0                                <== NOT EXECUTED
  tty->rawOutBuf.Head = 0;                                            
 800491c:	59 60 00 80 	sw (r11+128),r0                                <== NOT EXECUTED
  tty->rawOutBufState = rob_idle;                                     
 8004920:	59 60 00 94 	sw (r11+148),r0                                <== NOT EXECUTED
  rtems_interrupt_enable (level);                                     
 8004924:	d0 01 00 00 	wcsr IE,r1                                     <== NOT EXECUTED
static void                                                           
flushInput (struct rtems_termios_tty *tty)                            
{                                                                     
  rtems_interrupt_level level;                                        
                                                                      
  rtems_interrupt_disable (level);                                    
 8004928:	90 00 08 00 	rcsr r1,IE                                     <== NOT EXECUTED
 800492c:	34 02 ff fe 	mvi r2,-2                                      <== NOT EXECUTED
 8004930:	a0 22 10 00 	and r2,r1,r2                                   <== NOT EXECUTED
 8004934:	d0 02 00 00 	wcsr IE,r2                                     <== NOT EXECUTED
  tty->rawInBuf.Tail = 0;                                             
 8004938:	59 60 00 60 	sw (r11+96),r0                                 <== NOT EXECUTED
  tty->rawInBuf.Head = 0;                                             
 800493c:	59 60 00 5c 	sw (r11+92),r0                                 <== NOT EXECUTED
  rtems_interrupt_enable (level);                                     
 8004940:	d0 01 00 00 	wcsr IE,r1                                     <== NOT EXECUTED
        flushOutput (tty);                                            
        break;                                                        
      case TCIOFLUSH:                                                 
        flushOutput (tty);                                            
        flushInput (tty);                                             
        break;                                                        
 8004944:	e0 00 00 37 	bi 8004a20 <rtems_termios_ioctl+0x438>         <== NOT EXECUTED
        break;                                                        
    }                                                                 
    break;                                                            
                                                                      
  case RTEMS_IO_SNDWAKEUP:                                            
    tty->tty_snd = *wakeup;                                           
 8004948:	29 c1 00 00 	lw r1,(r14+0)                                  
 800494c:	59 61 00 d4 	sw (r11+212),r1                                
 8004950:	29 c1 00 04 	lw r1,(r14+4)                                  
 8004954:	59 61 00 d8 	sw (r11+216),r1                                
    break;                                                            
 8004958:	e0 00 00 32 	bi 8004a20 <rtems_termios_ioctl+0x438>         
                                                                      
  case RTEMS_IO_RCVWAKEUP:                                            
    tty->tty_rcv = *wakeup;                                           
 800495c:	29 c1 00 00 	lw r1,(r14+0)                                  
 8004960:	59 61 00 dc 	sw (r11+220),r1                                
 8004964:	29 c1 00 04 	lw r1,(r14+4)                                  
 8004968:	59 61 00 e0 	sw (r11+224),r1                                
    break;                                                            
 800496c:	e0 00 00 2d 	bi 8004a20 <rtems_termios_ioctl+0x438>         
#if 1 /* FIXME */                                                     
  case TIOCSETD:                                                      
    /*                                                                
     * close old line discipline                                      
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_close != NULL) {          
 8004970:	29 61 00 cc 	lw r1,(r11+204)                                
 8004974:	34 02 00 05 	mvi r2,5                                       
 8004978:	78 0e 08 02 	mvhi r14,0x802                                 
 800497c:	fb ff f0 2a 	calli 8000a24 <__ashlsi3>                      
 8004980:	39 ce 67 94 	ori r14,r14,0x6794                             
 8004984:	b5 c1 08 00 	add r1,r14,r1                                  
 8004988:	28 22 00 04 	lw r2,(r1+4)                                   
 800498c:	44 40 00 04 	be r2,r0,800499c <rtems_termios_ioctl+0x3b4>   
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
 8004990:	b9 60 08 00 	mv r1,r11                                      
 8004994:	d8 40 00 00 	call r2                                        
 8004998:	b8 20 68 00 	mv r13,r1                                      
    }                                                                 
    tty->t_line=*(int*)(args->buffer);                                
 800499c:	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) {           
 80049a0:	34 02 00 05 	mvi r2,5                                       
 80049a4:	78 0c 08 02 	mvhi r12,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);                                
 80049a8:	28 21 00 00 	lw r1,(r1+0)                                   
    tty->t_sc = NULL; /* ensure that no more valid data */            
 80049ac:	59 60 00 d0 	sw (r11+208),r0                                
    /*                                                                
     * open new line discipline                                       
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_open != NULL) {           
 80049b0:	39 8c 67 94 	ori r12,r12,0x6794                             
     * 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);                                
 80049b4:	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) {           
 80049b8:	fb ff f0 1b 	calli 8000a24 <__ashlsi3>                      
 80049bc:	b5 81 08 00 	add r1,r12,r1                                  
 80049c0:	28 22 00 00 	lw r2,(r1+0)                                   
 80049c4:	44 40 00 17 	be r2,r0,8004a20 <rtems_termios_ioctl+0x438>   
      sc = rtems_termios_linesw[tty->t_line].l_open(tty);             
 80049c8:	b9 60 08 00 	mv r1,r11                                      
 80049cc:	d8 40 00 00 	call r2                                        
 80049d0:	b8 20 68 00 	mv r13,r1                                      
 80049d4:	e0 00 00 13 	bi 8004a20 <rtems_termios_ioctl+0x438>         
    }                                                                 
    break;                                                            
  case TIOCGETD:                                                      
    *(int*)(args->buffer)=tty->t_line;                                
 80049d8:	29 81 00 08 	lw r1,(r12+8)                                  
 80049dc:	29 62 00 cc 	lw r2,(r11+204)                                
 80049e0:	58 22 00 00 	sw (r1+0),r2                                   
    break;                                                            
 80049e4:	e0 00 00 0f 	bi 8004a20 <rtems_termios_ioctl+0x438>         
#endif                                                                
   case FIONREAD: {                                                   
      int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;            
 80049e8:	29 62 00 60 	lw r2,(r11+96)                                 <== NOT EXECUTED
 80049ec:	29 61 00 5c 	lw r1,(r11+92)                                 <== NOT EXECUTED
 80049f0:	c8 41 08 00 	sub r1,r2,r1                                   <== NOT EXECUTED
      if ( rawnc < 0 )                                                
 80049f4:	4c 20 00 03 	bge r1,r0,8004a00 <rtems_termios_ioctl+0x418>  <== NOT EXECUTED
        rawnc += tty->rawInBuf.Size;                                  
 80049f8:	29 62 00 64 	lw r2,(r11+100)                                <== NOT EXECUTED
 80049fc:	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;       
 8004a00:	29 64 00 20 	lw r4,(r11+32)                                 <== NOT EXECUTED
 8004a04:	29 63 00 24 	lw r3,(r11+36)                                 <== NOT EXECUTED
 8004a08:	29 82 00 08 	lw r2,(r12+8)                                  <== NOT EXECUTED
 8004a0c:	c8 83 18 00 	sub r3,r4,r3                                   <== NOT EXECUTED
 8004a10:	b4 61 08 00 	add r1,r3,r1                                   <== NOT EXECUTED
 8004a14:	58 41 00 00 	sw (r2+0),r1                                   <== NOT EXECUTED
    }                                                                 
    break;                                                            
 8004a18:	e0 00 00 02 	bi 8004a20 <rtems_termios_ioctl+0x438>         <== NOT EXECUTED
      case TCIOFLUSH:                                                 
        flushOutput (tty);                                            
        flushInput (tty);                                             
        break;                                                        
      default:                                                        
        sc = RTEMS_INVALID_NAME;                                      
 8004a1c:	34 0d 00 03 	mvi r13,3                                      <== NOT EXECUTED
      *(int *)args->buffer = tty->ccount - tty->cindex + rawnc;       
    }                                                                 
    break;                                                            
  }                                                                   
                                                                      
  rtems_semaphore_release (tty->osem);                                
 8004a20:	29 61 00 18 	lw r1,(r11+24)                                 
 8004a24:	f8 00 07 16 	calli 800667c <rtems_semaphore_release>        
  return sc;                                                          
}                                                                     
 8004a28:	b9 a0 08 00 	mv r1,r13                                      
 8004a2c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004a30:	2b 8b 00 14 	lw r11,(sp+20)                                 
 8004a34:	2b 8c 00 10 	lw r12,(sp+16)                                 
 8004a38:	2b 8d 00 0c 	lw r13,(sp+12)                                 
 8004a3c:	2b 8e 00 08 	lw r14,(sp+8)                                  
 8004a40:	37 9c 00 14 	addi sp,sp,20                                  
 8004a44:	c3 a0 00 00 	ret                                            
                                                                      

08003f44 <rtems_termios_open>: rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) {
 8003f44:	37 9c ff d4 	addi sp,sp,-44                                 
 8003f48:	5b 8b 00 2c 	sw (sp+44),r11                                 
 8003f4c:	5b 8c 00 28 	sw (sp+40),r12                                 
 8003f50:	5b 8d 00 24 	sw (sp+36),r13                                 
 8003f54:	5b 8e 00 20 	sw (sp+32),r14                                 
 8003f58:	5b 8f 00 1c 	sw (sp+28),r15                                 
 8003f5c:	5b 90 00 18 	sw (sp+24),r16                                 
 8003f60:	5b 91 00 14 	sw (sp+20),r17                                 
 8003f64:	5b 92 00 10 	sw (sp+16),r18                                 
 8003f68:	5b 93 00 0c 	sw (sp+12),r19                                 
 8003f6c:	5b 94 00 08 	sw (sp+8),r20                                  
 8003f70:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003f74:	b8 20 88 00 	mv r17,r1                                      
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
 8003f78:	78 01 08 02 	mvhi r1,0x802                                  
 8003f7c:	38 21 6d 90 	ori r1,r1,0x6d90                               
 8003f80:	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                            
)                                                                     
{                                                                     
 8003f84:	b8 40 90 00 	mv r18,r2                                      
 8003f88:	b8 60 a0 00 	mv r20,r3                                      
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
 8003f8c:	34 02 00 00 	mvi r2,0                                       
 8003f90:	34 03 00 00 	mvi r3,0                                       
  rtems_device_major_number      major,                               
  rtems_device_minor_number      minor,                               
  void                          *arg,                                 
  const rtems_termios_callbacks *callbacks                            
)                                                                     
{                                                                     
 8003f94:	b8 80 68 00 	mv r13,r4                                      
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
 8003f98:	f8 00 09 69 	calli 800653c <rtems_semaphore_obtain>         
 8003f9c:	b8 20 78 00 	mv r15,r1                                      
    rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);            
  if (sc != RTEMS_SUCCESSFUL)                                         
 8003fa0:	5c 20 01 02 	bne r1,r0,80043a8 <rtems_termios_open+0x464>   <== NEVER TAKEN
    return sc;                                                        
                                                                      
  for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 
 8003fa4:	78 01 08 02 	mvhi r1,0x802                                  
 8003fa8:	38 21 6d 98 	ori r1,r1,0x6d98                               
 8003fac:	28 2e 00 00 	lw r14,(r1+0)                                  
 8003fb0:	b9 c0 60 00 	mv r12,r14                                     
 8003fb4:	e0 00 00 06 	bi 8003fcc <rtems_termios_open+0x88>           
    if ((tty->major == major) && (tty->minor == minor))               
 8003fb8:	29 81 00 0c 	lw r1,(r12+12)                                 <== NOT EXECUTED
 8003fbc:	5c 31 00 03 	bne r1,r17,8003fc8 <rtems_termios_open+0x84>   <== NOT EXECUTED
 8003fc0:	29 81 00 10 	lw r1,(r12+16)                                 <== NOT EXECUTED
 8003fc4:	44 32 00 d8 	be r1,r18,8004324 <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) { 
 8003fc8:	29 8c 00 00 	lw r12,(r12+0)                                 <== NOT EXECUTED
 8003fcc:	5d 80 ff fb 	bne r12,r0,8003fb8 <rtems_termios_open+0x74>   <== NEVER TAKEN
 8003fd0:	e0 00 01 04 	bi 80043e0 <rtems_termios_open+0x49c>          
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate raw input buffer                                      
     */                                                               
    tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;                       
 8003fd4:	78 01 08 02 	mvhi r1,0x802                                  
 8003fd8:	38 21 61 44 	ori r1,r1,0x6144                               
 8003fdc:	28 21 00 00 	lw r1,(r1+0)                                   
 8003fe0:	59 81 00 64 	sw (r12+100),r1                                
    tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);               
 8003fe4:	29 81 00 64 	lw r1,(r12+100)                                
 8003fe8:	fb ff f8 fb 	calli 80023d4 <malloc>                         
 8003fec:	59 81 00 58 	sw (r12+88),r1                                 
 8003ff0:	b8 20 80 00 	mv r16,r1                                      
    if (tty->rawInBuf.theBuf == NULL) {                               
 8003ff4:	5c 20 00 09 	bne r1,r0,8004018 <rtems_termios_open+0xd4>    
            free(tty);                                                
 8003ff8:	b9 80 08 00 	mv r1,r12                                      
 8003ffc:	fb ff f7 91 	calli 8001e40 <free>                           
      rtems_semaphore_release (rtems_termios_ttyMutex);               
 8004000:	78 01 08 02 	mvhi r1,0x802                                  
 8004004:	38 21 6d 90 	ori r1,r1,0x6d90                               
 8004008:	28 21 00 00 	lw r1,(r1+0)                                   
      return RTEMS_NO_MEMORY;                                         
 800400c:	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);               
 8004010:	f8 00 09 9b 	calli 800667c <rtems_semaphore_release>        
      return RTEMS_NO_MEMORY;                                         
 8004014:	e0 00 00 e5 	bi 80043a8 <rtems_termios_open+0x464>          
    }                                                                 
    /*                                                                
     * allocate raw output buffer                                     
     */                                                               
    tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;                     
 8004018:	78 01 08 02 	mvhi r1,0x802                                  
 800401c:	38 21 61 48 	ori r1,r1,0x6148                               
 8004020:	28 21 00 00 	lw r1,(r1+0)                                   
 8004024:	59 81 00 88 	sw (r12+136),r1                                
    tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);             
 8004028:	29 81 00 88 	lw r1,(r12+136)                                
 800402c:	fb ff f8 ea 	calli 80023d4 <malloc>                         
 8004030:	59 81 00 7c 	sw (r12+124),r1                                
 8004034:	b8 20 98 00 	mv r19,r1                                      
    if (tty->rawOutBuf.theBuf == NULL) {                              
 8004038:	44 20 00 09 	be r1,r0,800405c <rtems_termios_open+0x118>    
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate cooked buffer                                         
     */                                                               
    tty->cbuf  = malloc (CBUFSIZE);                                   
 800403c:	78 01 08 02 	mvhi r1,0x802                                  
 8004040:	38 21 61 40 	ori r1,r1,0x6140                               
 8004044:	28 21 00 00 	lw r1,(r1+0)                                   
 8004048:	fb ff f8 e3 	calli 80023d4 <malloc>                         
 800404c:	59 81 00 1c 	sw (r12+28),r1                                 
    if (tty->cbuf == NULL) {                                          
 8004050:	5c 20 00 06 	bne r1,r0,8004068 <rtems_termios_open+0x124>   
            free((void *)(tty->rawOutBuf.theBuf));                    
 8004054:	ba 60 08 00 	mv r1,r19                                      
 8004058:	fb ff f7 7a 	calli 8001e40 <free>                           
            free((void *)(tty->rawInBuf.theBuf));                     
 800405c:	ba 00 08 00 	mv r1,r16                                      
 8004060:	fb ff f7 78 	calli 8001e40 <free>                           
 8004064:	e3 ff ff e5 	bi 8003ff8 <rtems_termios_open+0xb4>           
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * Initialize wakeup callbacks                                    
     */                                                               
    tty->tty_snd.sw_pfn = NULL;                                       
 8004068:	59 80 00 d4 	sw (r12+212),r0                                
    tty->tty_snd.sw_arg = NULL;                                       
 800406c:	59 80 00 d8 	sw (r12+216),r0                                
    tty->tty_rcv.sw_pfn = NULL;                                       
 8004070:	59 80 00 dc 	sw (r12+220),r0                                
    tty->tty_rcv.sw_arg = NULL;                                       
 8004074:	59 80 00 e0 	sw (r12+224),r0                                
    tty->tty_rcvwakeup  = 0;                                          
 8004078:	59 80 00 e4 	sw (r12+228),r0                                
                                                                      
    /*                                                                
     * link tty                                                       
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
 800407c:	59 8e 00 00 	sw (r12+0),r14                                 
    tty->back = NULL;                                                 
 8004080:	59 80 00 04 	sw (r12+4),r0                                  
    if (rtems_termios_ttyHead != NULL)                                
 8004084:	45 c0 00 02 	be r14,r0,800408c <rtems_termios_open+0x148>   <== ALWAYS TAKEN
      rtems_termios_ttyHead->back = tty;                              
 8004088:	59 cc 00 04 	sw (r14+4),r12                                 <== NOT EXECUTED
    rtems_termios_ttyHead = tty;                                      
 800408c:	78 01 08 02 	mvhi r1,0x802                                  
    if (rtems_termios_ttyTail == NULL)                                
 8004090:	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;                                      
 8004094:	38 21 6d 98 	ori r1,r1,0x6d98                               
    if (rtems_termios_ttyTail == NULL)                                
 8004098:	38 84 6d 94 	ori r4,r4,0x6d94                               
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
    tty->back = NULL;                                                 
    if (rtems_termios_ttyHead != NULL)                                
      rtems_termios_ttyHead->back = tty;                              
    rtems_termios_ttyHead = tty;                                      
 800409c:	58 2b 00 00 	sw (r1+0),r11                                  
    if (rtems_termios_ttyTail == NULL)                                
 80040a0:	28 81 00 00 	lw r1,(r4+0)                                   
 80040a4:	5c 20 00 02 	bne r1,r0,80040ac <rtems_termios_open+0x168>   <== NEVER TAKEN
      rtems_termios_ttyTail = tty;                                    
 80040a8:	58 8b 00 00 	sw (r4+0),r11                                  
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'i', c),                            
 80040ac:	78 0e 08 02 	mvhi r14,0x802                                 
    tty->major = major;                                               
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
 80040b0:	78 03 08 02 	mvhi r3,0x802                                  
 80040b4:	38 63 3b 54 	ori r3,r3,0x3b54                               
      rtems_build_name ('T', 'R', 'i', c),                            
 80040b8:	39 ce 61 4c 	ori r14,r14,0x614c                             
 80040bc:	41 c2 00 00 	lbu r2,(r14+0)                                 
    tty->major = major;                                               
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
 80040c0:	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;                                               
 80040c4:	59 72 00 10 	sw (r11+16),r18                                
    tty->major = major;                                               
 80040c8:	59 71 00 0c 	sw (r11+12),r17                                
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
 80040cc:	b8 41 08 00 	or r1,r2,r1                                    
 80040d0:	34 03 00 54 	mvi r3,84                                      
 80040d4:	34 02 00 01 	mvi r2,1                                       
 80040d8:	34 04 00 00 	mvi r4,0                                       
 80040dc:	35 65 00 14 	addi r5,r11,20                                 
 80040e0:	f8 00 08 6b 	calli 800628c <rtems_semaphore_create>         
 80040e4:	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)                                       
 80040e8:	5c 20 00 ab 	bne r1,r0,8004394 <rtems_termios_open+0x450>   <== NEVER TAKEN
      rtems_fatal_error_occurred (sc);                                
    sc = rtems_semaphore_create (                                     
 80040ec:	78 03 08 02 	mvhi r3,0x802                                  
 80040f0:	38 63 3b 58 	ori r3,r3,0x3b58                               
      rtems_build_name ('T', 'R', 'o', c),                            
 80040f4:	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 (                                     
 80040f8:	28 61 00 00 	lw r1,(r3+0)                                   
 80040fc:	34 04 00 00 	mvi r4,0                                       
 8004100:	34 03 00 54 	mvi r3,84                                      
 8004104:	b8 41 08 00 	or r1,r2,r1                                    
 8004108:	35 65 00 18 	addi r5,r11,24                                 
 800410c:	34 02 00 01 	mvi r2,1                                       
 8004110:	f8 00 08 5f 	calli 800628c <rtems_semaphore_create>         
 8004114:	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)                                       
 8004118:	5c 30 00 9f 	bne r1,r16,8004394 <rtems_termios_open+0x450>  <== NEVER TAKEN
      rtems_fatal_error_occurred (sc);                                
    sc = rtems_semaphore_create (                                     
 800411c:	78 03 08 02 	mvhi r3,0x802                                  
 8004120:	38 63 3b 5c 	ori r3,r3,0x3b5c                               
      rtems_build_name ('T', 'R', 'x', c),                            
 8004124:	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 (                                     
 8004128:	28 61 00 00 	lw r1,(r3+0)                                   
 800412c:	34 04 00 00 	mvi r4,0                                       
 8004130:	34 03 00 20 	mvi r3,32                                      
 8004134:	b8 41 08 00 	or r1,r2,r1                                    
 8004138:	35 65 00 8c 	addi r5,r11,140                                
 800413c:	34 02 00 00 	mvi r2,0                                       
 8004140:	f8 00 08 53 	calli 800628c <rtems_semaphore_create>         
 8004144:	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)                                       
 8004148:	5c 33 00 93 	bne r1,r19,8004394 <rtems_termios_open+0x450>  <== NEVER TAKEN
    tty->rawOutBufState = rob_idle;                                   
                                                                      
    /*                                                                
     * Set callbacks                                                  
     */                                                               
    tty->device = *callbacks;                                         
 800414c:	29 a2 00 18 	lw r2,(r13+24)                                 
 8004150:	29 a8 00 00 	lw r8,(r13+0)                                  
 8004154:	29 a7 00 04 	lw r7,(r13+4)                                  
 8004158:	29 a6 00 08 	lw r6,(r13+8)                                  
 800415c:	29 a5 00 0c 	lw r5,(r13+12)                                 
 8004160:	29 a4 00 10 	lw r4,(r13+16)                                 
 8004164:	29 a3 00 14 	lw r3,(r13+20)                                 
 8004168:	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;                                   
 800416c:	59 60 00 94 	sw (r11+148),r0                                
                                                                      
    /*                                                                
     * Set callbacks                                                  
     */                                                               
    tty->device = *callbacks;                                         
 8004170:	59 62 00 b0 	sw (r11+176),r2                                
 8004174:	59 68 00 98 	sw (r11+152),r8                                
 8004178:	59 67 00 9c 	sw (r11+156),r7                                
 800417c:	59 66 00 a0 	sw (r11+160),r6                                
 8004180:	59 65 00 a4 	sw (r11+164),r5                                
 8004184:	59 64 00 a8 	sw (r11+168),r4                                
 8004188:	59 63 00 ac 	sw (r11+172),r3                                
 800418c:	59 61 00 b4 	sw (r11+180),r1                                
                                                                      
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
 8004190:	34 02 00 02 	mvi r2,2                                       
 8004194:	5c 22 00 1a 	bne r1,r2,80041fc <rtems_termios_open+0x2b8>   
      sc = rtems_task_create (                                        
 8004198:	78 03 08 02 	mvhi r3,0x802                                  
 800419c:	38 63 3b 60 	ori r3,r3,0x3b60                               
                                   rtems_build_name ('T', 'x', 'T', c),
 80041a0:	41 c2 00 00 	lbu r2,(r14+0)                                 
                                                                      
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
      sc = rtems_task_create (                                        
 80041a4:	28 61 00 00 	lw r1,(r3+0)                                   
 80041a8:	34 04 05 00 	mvi r4,1280                                    
 80041ac:	34 03 04 00 	mvi r3,1024                                    
 80041b0:	b8 41 08 00 	or r1,r2,r1                                    
 80041b4:	34 05 00 00 	mvi r5,0                                       
 80041b8:	34 02 00 0a 	mvi r2,10                                      
 80041bc:	35 66 00 c8 	addi r6,r11,200                                
 80041c0:	f8 00 09 84 	calli 80067d0 <rtems_task_create>              
 80041c4:	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)                                     
 80041c8:	5c 30 00 73 	bne r1,r16,8004394 <rtems_termios_open+0x450>  <== NEVER TAKEN
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_task_create (                                        
 80041cc:	78 03 08 02 	mvhi r3,0x802                                  
 80041d0:	38 63 3b 64 	ori r3,r3,0x3b64                               
                                   rtems_build_name ('R', 'x', 'T', c),
 80041d4:	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 (                                        
 80041d8:	28 61 00 00 	lw r1,(r3+0)                                   
 80041dc:	34 04 05 00 	mvi r4,1280                                    
 80041e0:	34 03 04 00 	mvi r3,1024                                    
 80041e4:	b8 41 08 00 	or r1,r2,r1                                    
 80041e8:	34 05 00 00 	mvi r5,0                                       
 80041ec:	34 02 00 09 	mvi r2,9                                       
 80041f0:	35 66 00 c4 	addi r6,r11,196                                
 80041f4:	f8 00 09 77 	calli 80067d0 <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)                                     
 80041f8:	5c 2d 00 67 	bne r1,r13,8004394 <rtems_termios_open+0x450>  <== NEVER TAKEN
        rtems_fatal_error_occurred (sc);                              
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
 80041fc:	29 61 00 a0 	lw r1,(r11+160)                                
 8004200:	44 20 00 04 	be r1,r0,8004210 <rtems_termios_open+0x2cc>    
 8004204:	29 62 00 b4 	lw r2,(r11+180)                                
 8004208:	34 01 00 02 	mvi r1,2                                       
 800420c:	5c 41 00 0e 	bne r2,r1,8004244 <rtems_termios_open+0x300>   
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){   
      sc = rtems_semaphore_create (                                   
        rtems_build_name ('T', 'R', 'r', c),                          
 8004210:	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 (                                   
 8004214:	78 03 08 02 	mvhi r3,0x802                                  
        rtems_build_name ('T', 'R', 'r', c),                          
 8004218:	38 21 61 4c 	ori r1,r1,0x614c                               
        rtems_fatal_error_occurred (sc);                              
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){   
      sc = rtems_semaphore_create (                                   
 800421c:	38 63 3b 68 	ori r3,r3,0x3b68                               
        rtems_build_name ('T', 'R', 'r', c),                          
 8004220:	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 (                                   
 8004224:	28 61 00 00 	lw r1,(r3+0)                                   
 8004228:	34 04 00 00 	mvi r4,0                                       
 800422c:	34 03 00 24 	mvi r3,36                                      
 8004230:	b8 41 08 00 	or r1,r2,r1                                    
 8004234:	35 65 00 68 	addi r5,r11,104                                
 8004238:	34 02 00 00 	mvi r2,0                                       
 800423c:	f8 00 08 14 	calli 800628c <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)                                     
 8004240:	5c 20 00 55 	bne r1,r0,8004394 <rtems_termios_open+0x450>   <== NEVER TAKEN
    }                                                                 
                                                                      
    /*                                                                
     * Set default parameters                                         
     */                                                               
    tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;           
 8004244:	34 01 25 02 	mvi r1,9474                                    
 8004248:	59 61 00 30 	sw (r11+48),r1                                 
    tty->termios.c_oflag = OPOST | ONLCR | XTABS;                     
 800424c:	34 01 18 05 	mvi r1,6149                                    
 8004250:	59 61 00 34 	sw (r11+52),r1                                 
    tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;              
 8004254:	34 01 08 bd 	mvi r1,2237                                    
 8004258:	59 61 00 38 	sw (r11+56),r1                                 
    tty->termios.c_lflag =                                            
 800425c:	34 21 79 7e 	addi r1,r1,31102                               
 8004260:	59 61 00 3c 	sw (r11+60),r1                                 
       ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;       
                                                                      
    tty->termios.c_cc[VINTR] = '\003';                                
 8004264:	34 01 00 03 	mvi r1,3                                       
 8004268:	31 61 00 41 	sb (r11+65),r1                                 
    tty->termios.c_cc[VQUIT] = '\034';                                
 800426c:	34 01 00 1c 	mvi r1,28                                      
 8004270:	31 61 00 42 	sb (r11+66),r1                                 
    tty->termios.c_cc[VERASE] = '\177';                               
 8004274:	34 01 00 7f 	mvi r1,127                                     
 8004278:	31 61 00 43 	sb (r11+67),r1                                 
    tty->termios.c_cc[VKILL] = '\025';                                
 800427c:	34 01 00 15 	mvi r1,21                                      
 8004280:	31 61 00 44 	sb (r11+68),r1                                 
    tty->termios.c_cc[VEOF] = '\004';                                 
 8004284:	34 01 00 04 	mvi r1,4                                       
 8004288:	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';                               
 800428c:	34 01 00 11 	mvi r1,17                                      
 8004290:	31 61 00 49 	sb (r11+73),r1                                 
    tty->termios.c_cc[VSTOP] = '\023';                                
 8004294:	34 01 00 13 	mvi r1,19                                      
 8004298:	31 61 00 4a 	sb (r11+74),r1                                 
    tty->termios.c_cc[VSUSP] = '\032';                                
 800429c:	34 01 00 1a 	mvi r1,26                                      
 80042a0:	31 61 00 4b 	sb (r11+75),r1                                 
    tty->termios.c_cc[VREPRINT] = '\022';                             
 80042a4:	34 01 00 12 	mvi r1,18                                      
 80042a8:	31 61 00 4d 	sb (r11+77),r1                                 
    tty->termios.c_cc[VDISCARD] = '\017';                             
 80042ac:	34 01 00 0f 	mvi r1,15                                      
 80042b0:	31 61 00 4e 	sb (r11+78),r1                                 
    tty->termios.c_cc[VWERASE] = '\027';                              
 80042b4:	34 01 00 17 	mvi r1,23                                      
 80042b8:	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;                                               
 80042bc:	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';                               
 80042c0:	34 01 00 16 	mvi r1,22                                      
 80042c4:	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;                        
 80042c8:	29 61 00 64 	lw r1,(r11+100)                                
 80042cc:	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';                                 
 80042d0:	31 60 00 4c 	sb (r11+76),r0                                 
    tty->termios.c_cc[VEOL2] = '\000';                                
 80042d4:	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;                        
 80042d8:	f8 00 77 bc 	calli 80221c8 <__lshrsi3>                      
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
 80042dc:	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;                        
 80042e0:	59 61 00 bc 	sw (r11+188),r1                                
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
 80042e4:	34 02 00 01 	mvi r2,1                                       
 80042e8:	b9 a0 08 00 	mv r1,r13                                      
 80042ec:	fb ff f1 ce 	calli 8000a24 <__ashlsi3>                      
 80042f0:	34 02 00 02 	mvi r2,2                                       
 80042f4:	b4 2d 08 00 	add r1,r1,r13                                  
 80042f8:	f8 00 77 b4 	calli 80221c8 <__lshrsi3>                      
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
 80042fc:	78 04 08 02 	mvhi r4,0x802                                  
 8004300:	38 84 61 4c 	ori r4,r4,0x614c                               
    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;                        
 8004304:	59 61 00 c0 	sw (r11+192),r1                                
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
 8004308:	40 81 00 00 	lbu r1,(r4+0)                                  
 800430c:	34 22 00 01 	addi r2,r1,1                                   
 8004310:	30 82 00 00 	sb (r4+0),r2                                   
 8004314:	34 02 00 7a 	mvi r2,122                                     
 8004318:	5c 22 00 03 	bne r1,r2,8004324 <rtems_termios_open+0x3e0>   
      c = 'a';                                                        
 800431c:	34 01 00 61 	mvi r1,97                                      
 8004320:	30 81 00 00 	sb (r4+0),r1                                   
                                                                      
  }                                                                   
  args->iop->data1 = tty;                                             
 8004324:	2a 81 00 00 	lw r1,(r20+0)                                  
  if (!tty->refcount++) {                                             
 8004328:	29 82 00 08 	lw r2,(r12+8)                                  
     */                                                               
    if (c++ == 'z')                                                   
      c = 'a';                                                        
                                                                      
  }                                                                   
  args->iop->data1 = tty;                                             
 800432c:	58 2c 00 28 	sw (r1+40),r12                                 
  if (!tty->refcount++) {                                             
 8004330:	34 41 00 01 	addi r1,r2,1                                   
 8004334:	59 81 00 08 	sw (r12+8),r1                                  
 8004338:	5c 40 00 18 	bne r2,r0,8004398 <rtems_termios_open+0x454>   <== NEVER TAKEN
    if (tty->device.firstOpen)                                        
 800433c:	29 84 00 98 	lw r4,(r12+152)                                
 8004340:	44 82 00 05 	be r4,r2,8004354 <rtems_termios_open+0x410>    <== ALWAYS TAKEN
      (*tty->device.firstOpen)(major, minor, arg);                    
 8004344:	ba 20 08 00 	mv r1,r17                                      <== NOT EXECUTED
 8004348:	ba 40 10 00 	mv r2,r18                                      <== NOT EXECUTED
 800434c:	ba 80 18 00 	mv r3,r20                                      <== NOT EXECUTED
 8004350:	d8 80 00 00 	call r4                                        <== NOT EXECUTED
                                                                      
    /*                                                                
     * start I/O tasks, if needed                                     
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
 8004354:	29 82 00 b4 	lw r2,(r12+180)                                
 8004358:	34 01 00 02 	mvi r1,2                                       
 800435c:	5c 41 00 0f 	bne r2,r1,8004398 <rtems_termios_open+0x454>   
      sc = rtems_task_start(                                          
 8004360:	29 81 00 c4 	lw r1,(r12+196)                                
 8004364:	78 02 08 00 	mvhi r2,0x800                                  
 8004368:	38 42 59 4c 	ori r2,r2,0x594c                               
 800436c:	b9 80 18 00 	mv r3,r12                                      
 8004370:	f8 00 09 c0 	calli 8006a70 <rtems_task_start>               
 8004374:	b8 20 58 00 	mv r11,r1                                      
        tty->rxTaskId, rtems_termios_rxdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
 8004378:	5c 20 00 07 	bne r1,r0,8004394 <rtems_termios_open+0x450>   <== NEVER TAKEN
        rtems_fatal_error_occurred (sc);                              
                                                                      
      sc = rtems_task_start(                                          
 800437c:	29 81 00 c8 	lw r1,(r12+200)                                
 8004380:	78 02 08 00 	mvhi r2,0x800                                  
 8004384:	38 42 3e d0 	ori r2,r2,0x3ed0                               
 8004388:	b9 80 18 00 	mv r3,r12                                      
 800438c:	f8 00 09 b9 	calli 8006a70 <rtems_task_start>               
        tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
 8004390:	44 2b 00 02 	be r1,r11,8004398 <rtems_termios_open+0x454>   <== ALWAYS TAKEN
        rtems_fatal_error_occurred (sc);                              
 8004394:	f8 00 0a dd 	calli 8006f08 <rtems_fatal_error_occurred>     <== NOT EXECUTED
    }                                                                 
  }                                                                   
  rtems_semaphore_release (rtems_termios_ttyMutex);                   
 8004398:	78 01 08 02 	mvhi r1,0x802                                  
 800439c:	38 21 6d 90 	ori r1,r1,0x6d90                               
 80043a0:	28 21 00 00 	lw r1,(r1+0)                                   
 80043a4:	f8 00 08 b6 	calli 800667c <rtems_semaphore_release>        
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
 80043a8:	b9 e0 08 00 	mv r1,r15                                      
 80043ac:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80043b0:	2b 8b 00 2c 	lw r11,(sp+44)                                 
 80043b4:	2b 8c 00 28 	lw r12,(sp+40)                                 
 80043b8:	2b 8d 00 24 	lw r13,(sp+36)                                 
 80043bc:	2b 8e 00 20 	lw r14,(sp+32)                                 
 80043c0:	2b 8f 00 1c 	lw r15,(sp+28)                                 
 80043c4:	2b 90 00 18 	lw r16,(sp+24)                                 
 80043c8:	2b 91 00 14 	lw r17,(sp+20)                                 
 80043cc:	2b 92 00 10 	lw r18,(sp+16)                                 
 80043d0:	2b 93 00 0c 	lw r19,(sp+12)                                 
 80043d4:	2b 94 00 08 	lw r20,(sp+8)                                  
 80043d8:	37 9c 00 2c 	addi sp,sp,44                                  
 80043dc:	c3 a0 00 00 	ret                                            
    static char c = 'a';                                              
                                                                      
    /*                                                                
     * Create a new device                                            
     */                                                               
    tty = calloc (1, sizeof (struct rtems_termios_tty));              
 80043e0:	34 01 00 01 	mvi r1,1                                       
 80043e4:	34 02 00 e8 	mvi r2,232                                     
 80043e8:	fb ff f5 9b 	calli 8001a54 <calloc>                         
 80043ec:	b8 20 60 00 	mv r12,r1                                      
 80043f0:	b8 20 58 00 	mv r11,r1                                      
    if (tty == NULL) {                                                
 80043f4:	5c 20 fe f8 	bne r1,r0,8003fd4 <rtems_termios_open+0x90>    
 80043f8:	e3 ff ff 02 	bi 8004000 <rtems_termios_open+0xbc>           
                                                                      

08004a48 <rtems_termios_puts>: * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, size_t len, struct rtems_termios_tty *tty) {
 8004a48:	37 9c ff dc 	addi sp,sp,-36                                 
 8004a4c:	5b 8b 00 24 	sw (sp+36),r11                                 
 8004a50:	5b 8c 00 20 	sw (sp+32),r12                                 
 8004a54:	5b 8d 00 1c 	sw (sp+28),r13                                 
 8004a58:	5b 8e 00 18 	sw (sp+24),r14                                 
 8004a5c:	5b 8f 00 14 	sw (sp+20),r15                                 
 8004a60:	5b 90 00 10 	sw (sp+16),r16                                 
 8004a64:	5b 91 00 0c 	sw (sp+12),r17                                 
 8004a68:	5b 92 00 08 	sw (sp+8),r18                                  
 8004a6c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004a70:	b8 20 20 00 	mv r4,r1                                       
  const unsigned char *buf = _buf;                                    
 8004a74:	b8 20 68 00 	mv r13,r1                                      
  unsigned int newHead;                                               
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
 8004a78:	28 61 00 b4 	lw r1,(r3+180)                                 
 * Send characters to device-specific code                            
 */                                                                   
void                                                                  
rtems_termios_puts (                                                  
  const void *_buf, size_t len, struct rtems_termios_tty *tty)        
{                                                                     
 8004a7c:	b8 40 70 00 	mv r14,r2                                      
 8004a80:	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) {           
 8004a84:	5c 20 00 07 	bne r1,r0,8004aa0 <rtems_termios_puts+0x58>    
    (*tty->device.write)(tty->minor, buf, len);                       
 8004a88:	28 65 00 a4 	lw r5,(r3+164)                                 
 8004a8c:	28 61 00 10 	lw r1,(r3+16)                                  
 8004a90:	b8 80 10 00 	mv r2,r4                                       
 8004a94:	b9 c0 18 00 	mv r3,r14                                      
 8004a98:	d8 a0 00 00 	call r5                                        
    return;                                                           
 8004a9c:	e0 00 00 33 	bi 8004b68 <rtems_termios_puts+0x120>          
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
 8004aa0:	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);                                  
 8004aa4:	34 10 ff fe 	mvi r16,-2                                     
    while (newHead == tty->rawOutBuf.Tail) {                          
      tty->rawOutBufState = rob_wait;                                 
 8004aa8:	34 12 00 02 	mvi r18,2                                      
          tty->minor, &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;                                 
 8004aac:	34 11 00 01 	mvi r17,1                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    (*tty->device.write)(tty->minor, buf, len);                       
    return;                                                           
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
  while (len) {                                                       
 8004ab0:	e0 00 00 2d 	bi 8004b64 <rtems_termios_puts+0x11c>          
     *  len -= ncopy                                                  
     *                                                                
     * To minimize latency, the memcpy should be done                 
     * with interrupts enabled.                                       
     */                                                               
    newHead = (newHead + 1) % tty->rawOutBuf.Size;                    
 8004ab4:	29 62 00 88 	lw r2,(r11+136)                                
 8004ab8:	35 81 00 01 	addi r1,r12,1                                  
 8004abc:	f8 00 76 5f 	calli 8022438 <__umodsi3>                      
 8004ac0:	b8 20 60 00 	mv r12,r1                                      
 8004ac4:	e0 00 00 09 	bi 8004ae8 <rtems_termios_puts+0xa0>           
    rtems_interrupt_disable (level);                                  
    while (newHead == tty->rawOutBuf.Tail) {                          
      tty->rawOutBufState = rob_wait;                                 
 8004ac8:	59 72 00 94 	sw (r11+148),r18                               
      rtems_interrupt_enable (level);                                 
 8004acc:	d0 0f 00 00 	wcsr IE,r15                                    
      sc = rtems_semaphore_obtain(                                    
 8004ad0:	29 61 00 8c 	lw r1,(r11+140)                                
 8004ad4:	34 02 00 00 	mvi r2,0                                       
 8004ad8:	34 03 00 00 	mvi r3,0                                       
 8004adc:	f8 00 06 98 	calli 800653c <rtems_semaphore_obtain>         
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
 8004ae0:	44 20 00 02 	be r1,r0,8004ae8 <rtems_termios_puts+0xa0>     <== ALWAYS TAKEN
        rtems_fatal_error_occurred (sc);                              
 8004ae4:	f8 00 09 09 	calli 8006f08 <rtems_fatal_error_occurred>     <== NOT EXECUTED
      rtems_interrupt_disable (level);                                
 8004ae8:	90 00 78 00 	rcsr r15,IE                                    
 8004aec:	a1 f0 08 00 	and r1,r15,r16                                 
 8004af0:	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) {                          
 8004af4:	29 61 00 84 	lw r1,(r11+132)                                
 8004af8:	45 81 ff f4 	be r12,r1,8004ac8 <rtems_termios_puts+0x80>    
        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++;              
 8004afc:	29 61 00 80 	lw r1,(r11+128)                                
 8004b00:	29 62 00 7c 	lw r2,(r11+124)                                
 8004b04:	b4 41 08 00 	add r1,r2,r1                                   
 8004b08:	41 a2 00 00 	lbu r2,(r13+0)                                 
 8004b0c:	35 ad 00 01 	addi r13,r13,1                                 
 8004b10:	30 22 00 00 	sb (r1+0),r2                                   
    tty->rawOutBuf.Head = newHead;                                    
    if (tty->rawOutBufState == rob_idle) {                            
 8004b14:	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;                                    
 8004b18:	59 6c 00 80 	sw (r11+128),r12                               
    if (tty->rawOutBufState == rob_idle) {                            
 8004b1c:	5c 20 00 10 	bne r1,r0,8004b5c <rtems_termios_puts+0x114>   
      /* check, whether XOFF has been received */                     
      if (!(tty->flow_ctrl & FL_ORCVXOF)) {                           
 8004b20:	29 62 00 b8 	lw r2,(r11+184)                                
 8004b24:	20 42 00 10 	andi r2,r2,0x10                                
 8004b28:	5c 41 00 09 	bne r2,r1,8004b4c <rtems_termios_puts+0x104>   <== NEVER TAKEN
        (*tty->device.write)(                                         
 8004b2c:	29 63 00 7c 	lw r3,(r11+124)                                
          tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 
 8004b30:	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)(                                         
 8004b34:	29 64 00 a4 	lw r4,(r11+164)                                
 8004b38:	29 61 00 10 	lw r1,(r11+16)                                 
 8004b3c:	b4 62 10 00 	add r2,r3,r2                                   
 8004b40:	34 03 00 01 	mvi r3,1                                       
 8004b44:	d8 80 00 00 	call r4                                        
 8004b48:	e0 00 00 04 	bi 8004b58 <rtems_termios_puts+0x110>          
          tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 
      } else {                                                        
        /* remember that output has been stopped due to flow ctrl*/   
        tty->flow_ctrl |= FL_OSTOP;                                   
 8004b4c:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
 8004b50:	38 21 00 20 	ori r1,r1,0x20                                 <== NOT EXECUTED
 8004b54:	59 61 00 b8 	sw (r11+184),r1                                <== NOT EXECUTED
      }                                                               
      tty->rawOutBufState = rob_busy;                                 
 8004b58:	59 71 00 94 	sw (r11+148),r17                               
    }                                                                 
    rtems_interrupt_enable (level);                                   
 8004b5c:	d0 0f 00 00 	wcsr IE,r15                                    
    len--;                                                            
 8004b60:	35 ce ff ff 	addi r14,r14,-1                                
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    (*tty->device.write)(tty->minor, buf, len);                       
    return;                                                           
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
  while (len) {                                                       
 8004b64:	5d c0 ff d4 	bne r14,r0,8004ab4 <rtems_termios_puts+0x6c>   
      tty->rawOutBufState = rob_busy;                                 
    }                                                                 
    rtems_interrupt_enable (level);                                   
    len--;                                                            
  }                                                                   
}                                                                     
 8004b68:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8004b6c:	2b 8b 00 24 	lw r11,(sp+36)                                 
 8004b70:	2b 8c 00 20 	lw r12,(sp+32)                                 
 8004b74:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 8004b78:	2b 8e 00 18 	lw r14,(sp+24)                                 
 8004b7c:	2b 8f 00 14 	lw r15,(sp+20)                                 
 8004b80:	2b 90 00 10 	lw r16,(sp+16)                                 
 8004b84:	2b 91 00 0c 	lw r17,(sp+12)                                 
 8004b88:	2b 92 00 08 	lw r18,(sp+8)                                  
 8004b8c:	37 9c 00 24 	addi sp,sp,36                                  
 8004b90:	c3 a0 00 00 	ret                                            
                                                                      

080052b4 <rtems_termios_read>: return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) {
 80052b4:	37 9c ff cc 	addi sp,sp,-52                                 
 80052b8:	5b 8b 00 34 	sw (sp+52),r11                                 
 80052bc:	5b 8c 00 30 	sw (sp+48),r12                                 
 80052c0:	5b 8d 00 2c 	sw (sp+44),r13                                 
 80052c4:	5b 8e 00 28 	sw (sp+40),r14                                 
 80052c8:	5b 8f 00 24 	sw (sp+36),r15                                 
 80052cc:	5b 90 00 20 	sw (sp+32),r16                                 
 80052d0:	5b 91 00 1c 	sw (sp+28),r17                                 
 80052d4:	5b 92 00 18 	sw (sp+24),r18                                 
 80052d8:	5b 93 00 14 	sw (sp+20),r19                                 
 80052dc:	5b 94 00 10 	sw (sp+16),r20                                 
 80052e0:	5b 95 00 0c 	sw (sp+12),r21                                 
 80052e4:	5b 96 00 08 	sw (sp+8),r22                                  
 80052e8:	5b 9d 00 04 	sw (sp+4),ra                                   
 80052ec:	b8 20 60 00 	mv r12,r1                                      
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
 80052f0:	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);
 80052f4:	34 02 00 00 	mvi r2,0                                       
 80052f8:	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;                   
 80052fc:	28 2b 00 28 	lw r11,(r1+40)                                 
  uint32_t   count = args->count;                                     
 8005300:	29 8f 00 0c 	lw r15,(r12+12)                                
  char      *buffer = args->buffer;                                   
 8005304:	29 91 00 08 	lw r17,(r12+8)                                 
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 8005308:	29 61 00 14 	lw r1,(r11+20)                                 
 800530c:	f8 00 04 8c 	calli 800653c <rtems_semaphore_obtain>         
 8005310:	b8 20 70 00 	mv r14,r1                                      
  if (sc != RTEMS_SUCCESSFUL)                                         
 8005314:	5c 20 00 ad 	bne r1,r0,80055c8 <rtems_termios_read+0x314>   <== NEVER TAKEN
    return sc;                                                        
                                                                      
  if (rtems_termios_linesw[tty->t_line].l_read != NULL) {             
 8005318:	29 61 00 cc 	lw r1,(r11+204)                                
 800531c:	78 0d 08 02 	mvhi r13,0x802                                 
 8005320:	34 02 00 05 	mvi r2,5                                       
 8005324:	fb ff ed c0 	calli 8000a24 <__ashlsi3>                      
 8005328:	39 ad 67 94 	ori r13,r13,0x6794                             
 800532c:	b5 a1 08 00 	add r1,r13,r1                                  
 8005330:	28 23 00 08 	lw r3,(r1+8)                                   
 8005334:	44 6e 00 06 	be r3,r14,800534c <rtems_termios_read+0x98>    
    sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);          
 8005338:	b9 60 08 00 	mv r1,r11                                      
 800533c:	b9 80 10 00 	mv r2,r12                                      
 8005340:	d8 60 00 00 	call r3                                        
 8005344:	b8 20 70 00 	mv r14,r1                                      
 8005348:	e0 00 00 9d 	bi 80055bc <rtems_termios_read+0x308>          
    tty->tty_rcvwakeup = 0;                                           
    rtems_semaphore_release (tty->isem);                              
    return sc;                                                        
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
 800534c:	29 62 00 24 	lw r2,(r11+36)                                 
 8005350:	29 61 00 20 	lw r1,(r11+32)                                 
 8005354:	5c 41 00 93 	bne r2,r1,80055a0 <rtems_termios_read+0x2ec>   <== NEVER TAKEN
    tty->cindex = tty->ccount = 0;                                    
    tty->read_start_column = tty->column;                             
 8005358:	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;                                    
 800535c:	59 60 00 20 	sw (r11+32),r0                                 
 8005360:	59 60 00 24 	sw (r11+36),r0                                 
    tty->read_start_column = tty->column;                             
 8005364:	59 61 00 2c 	sw (r11+44),r1                                 
    if (tty->device.pollRead != NULL &&                               
 8005368:	29 61 00 a0 	lw r1,(r11+160)                                
 800536c:	44 20 00 31 	be r1,r0,8005430 <rtems_termios_read+0x17c>    
 8005370:	29 61 00 b4 	lw r1,(r11+180)                                
 8005374:	5c 20 00 2f 	bne r1,r0,8005430 <rtems_termios_read+0x17c>   
static rtems_status_code                                              
fillBufferPoll (struct rtems_termios_tty *tty)                        
{                                                                     
  int n;                                                              
                                                                      
  if (tty->termios.c_lflag & ICANON) {                                
 8005378:	29 61 00 3c 	lw r1,(r11+60)                                 
 800537c:	20 21 00 02 	andi r1,r1,0x2                                 
 8005380:	44 20 00 0d 	be r1,r0,80053b4 <rtems_termios_read+0x100>    
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
 8005384:	29 62 00 a0 	lw r2,(r11+160)                                
 8005388:	29 61 00 10 	lw r1,(r11+16)                                 
 800538c:	d8 40 00 00 	call r2                                        
      if (n < 0) {                                                    
 8005390:	4c 20 00 04 	bge r1,r0,80053a0 <rtems_termios_read+0xec>    
        rtems_task_wake_after (1);                                    
 8005394:	34 01 00 01 	mvi r1,1                                       
 8005398:	f8 00 05 d6 	calli 8006af0 <rtems_task_wake_after>          
 800539c:	e3 ff ff fa 	bi 8005384 <rtems_termios_read+0xd0>           
      } else {                                                        
        if  (siproc (n, tty))                                         
 80053a0:	20 21 00 ff 	andi r1,r1,0xff                                
 80053a4:	b9 60 10 00 	mv r2,r11                                      
 80053a8:	fb ff ff 6b 	calli 8005154 <siproc>                         
 80053ac:	44 20 ff f6 	be r1,r0,8005384 <rtems_termios_read+0xd0>     
 80053b0:	e0 00 00 7c 	bi 80055a0 <rtems_termios_read+0x2ec>          
      }                                                               
    }                                                                 
  } else {                                                            
    rtems_interval then, now;                                         
                                                                      
    then = rtems_clock_get_ticks_since_boot();                        
 80053b4:	f8 00 02 9d 	calli 8005e28 <rtems_clock_get_ticks_since_boot>
 80053b8:	b8 20 68 00 	mv r13,r1                                      
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
 80053bc:	29 62 00 a0 	lw r2,(r11+160)                                
 80053c0:	29 61 00 10 	lw r1,(r11+16)                                 
 80053c4:	d8 40 00 00 	call r2                                        
      if (n < 0) {                                                    
 80053c8:	4c 20 00 10 	bge r1,r0,8005408 <rtems_termios_read+0x154>   
        if (tty->termios.c_cc[VMIN]) {                                
 80053cc:	41 61 00 47 	lbu r1,(r11+71)                                
 80053d0:	41 62 00 46 	lbu r2,(r11+70)                                
 80053d4:	44 20 00 05 	be r1,r0,80053e8 <rtems_termios_read+0x134>    <== NEVER TAKEN
          if (tty->termios.c_cc[VTIME] && tty->ccount) {              
 80053d8:	44 40 00 09 	be r2,r0,80053fc <rtems_termios_read+0x148>    <== NEVER TAKEN
 80053dc:	29 61 00 20 	lw r1,(r11+32)                                 
 80053e0:	44 20 00 07 	be r1,r0,80053fc <rtems_termios_read+0x148>    
 80053e4:	e0 00 00 02 	bi 80053ec <rtems_termios_read+0x138>          
            if ((now - then) > tty->vtimeTicks) {                     
              break;                                                  
            }                                                         
          }                                                           
        } else {                                                      
          if (!tty->termios.c_cc[VTIME])                              
 80053e8:	44 41 00 6e 	be r2,r1,80055a0 <rtems_termios_read+0x2ec>    <== NOT EXECUTED
            break;                                                    
          now = rtems_clock_get_ticks_since_boot();                   
 80053ec:	f8 00 02 8f 	calli 8005e28 <rtems_clock_get_ticks_since_boot>
          if ((now - then) > tty->vtimeTicks) {                       
 80053f0:	29 62 00 54 	lw r2,(r11+84)                                 
 80053f4:	c8 2d 08 00 	sub r1,r1,r13                                  
 80053f8:	54 22 00 6a 	bgu r1,r2,80055a0 <rtems_termios_read+0x2ec>   
            break;                                                    
          }                                                           
        }                                                             
        rtems_task_wake_after (1);                                    
 80053fc:	34 01 00 01 	mvi r1,1                                       
 8005400:	f8 00 05 bc 	calli 8006af0 <rtems_task_wake_after>          
 8005404:	e3 ff ff ee 	bi 80053bc <rtems_termios_read+0x108>          
      } else {                                                        
        siproc (n, tty);                                              
 8005408:	b9 60 10 00 	mv r2,r11                                      
 800540c:	20 21 00 ff 	andi r1,r1,0xff                                
 8005410:	fb ff ff 51 	calli 8005154 <siproc>                         
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
 8005414:	41 61 00 47 	lbu r1,(r11+71)                                
 8005418:	29 62 00 20 	lw r2,(r11+32)                                 
 800541c:	4c 41 00 61 	bge r2,r1,80055a0 <rtems_termios_read+0x2ec>   
          break;                                                      
        if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME])      
 8005420:	44 20 ff e7 	be r1,r0,80053bc <rtems_termios_read+0x108>    <== NEVER TAKEN
 8005424:	41 61 00 46 	lbu r1,(r11+70)                                
 8005428:	44 20 ff e5 	be r1,r0,80053bc <rtems_termios_read+0x108>    <== NEVER TAKEN
 800542c:	e3 ff ff e2 	bi 80053b4 <rtems_termios_read+0x100>          
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
                       (tty->ccount < (CBUFSIZE-1))) {                
 8005430:	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;        
 8005434:	29 72 00 74 	lw r18,(r11+116)                               
  rtems_status_code sc;                                               
  int               wait = 1;                                         
 8005438:	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))) {                
 800543c:	3a 10 61 40 	ori r16,r16,0x6140                             
      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;                                
 8005440:	34 16 ff fe 	mvi r22,-2                                     
        /* if tx stopped and XON should be sent... */                 
        if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))               
 8005444:	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;                              
 8005448:	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)(                                       
 800544c:	35 73 00 49 	addi r19,r11,73                                
 8005450:	e0 00 00 3e 	bi 8005548 <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;        
 8005454:	29 61 00 5c 	lw r1,(r11+92)                                 
 8005458:	29 62 00 64 	lw r2,(r11+100)                                
 800545c:	34 21 00 01 	addi r1,r1,1                                   
 8005460:	f8 00 73 f6 	calli 8022438 <__umodsi3>                      
 8005464:	b8 20 18 00 	mv r3,r1                                       
      c = tty->rawInBuf.theBuf[newHead];                              
 8005468:	29 61 00 58 	lw r1,(r11+88)                                 
 800546c:	b4 23 08 00 	add r1,r1,r3                                   
 8005470:	40 32 00 00 	lbu r18,(r1+0)                                 
      tty->rawInBuf.Head = newHead;                                   
 8005474:	59 63 00 5c 	sw (r11+92),r3                                 
      if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)             
 8005478:	29 61 00 60 	lw r1,(r11+96)                                 
 800547c:	29 64 00 64 	lw r4,(r11+100)                                
          % tty->rawInBuf.Size)                                       
 8005480:	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)             
 8005484:	b4 81 08 00 	add r1,r4,r1                                   
          % tty->rawInBuf.Size)                                       
 8005488:	c8 23 08 00 	sub r1,r1,r3                                   
 800548c:	f8 00 73 eb 	calli 8022438 <__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)             
 8005490:	29 62 00 bc 	lw r2,(r11+188)                                
 8005494:	50 22 00 1c 	bgeu r1,r2,8005504 <rtems_termios_read+0x250>  <== NEVER TAKEN
          % tty->rawInBuf.Size)                                       
         < tty->lowwater) {                                           
        tty->flow_ctrl &= ~FL_IREQXOF;                                
 8005498:	29 61 00 b8 	lw r1,(r11+184)                                
 800549c:	a0 36 08 00 	and r1,r1,r22                                  
 80054a0:	59 61 00 b8 	sw (r11+184),r1                                
        /* if tx stopped and XON should be sent... */                 
        if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))               
 80054a4:	29 61 00 b8 	lw r1,(r11+184)                                
 80054a8:	20 21 02 02 	andi r1,r1,0x202                               
 80054ac:	5c 35 00 0c 	bne r1,r21,80054dc <rtems_termios_read+0x228>  <== ALWAYS TAKEN
             ==                (FL_MDXON | FL_ISNTXOF))               
            && ((tty->rawOutBufState == rob_idle)                     
 80054b0:	29 61 00 94 	lw r1,(r11+148)                                <== NOT EXECUTED
 80054b4:	44 20 00 04 	be r1,r0,80054c4 <rtems_termios_read+0x210>    <== NOT EXECUTED
          || (tty->flow_ctrl & FL_OSTOP))) {                          
 80054b8:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
 80054bc:	20 21 00 20 	andi r1,r1,0x20                                <== NOT EXECUTED
 80054c0:	44 20 00 07 	be r1,r0,80054dc <rtems_termios_read+0x228>    <== NOT EXECUTED
          /* XON should be sent now... */                             
          (*tty->device.write)(                                       
 80054c4:	29 64 00 a4 	lw r4,(r11+164)                                <== NOT EXECUTED
 80054c8:	29 61 00 10 	lw r1,(r11+16)                                 <== NOT EXECUTED
 80054cc:	ba 60 10 00 	mv r2,r19                                      <== NOT EXECUTED
 80054d0:	34 03 00 01 	mvi r3,1                                       <== NOT EXECUTED
 80054d4:	d8 80 00 00 	call r4                                        <== NOT EXECUTED
 80054d8:	e0 00 00 0b 	bi 8005504 <rtems_termios_read+0x250>          <== NOT EXECUTED
            tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);     
        } else if (tty->flow_ctrl & FL_MDRTS) {                       
 80054dc:	29 61 00 b8 	lw r1,(r11+184)                                
 80054e0:	20 21 01 00 	andi r1,r1,0x100                               
 80054e4:	44 20 00 08 	be r1,r0,8005504 <rtems_termios_read+0x250>    <== ALWAYS TAKEN
          tty->flow_ctrl &= ~FL_IRTSOFF;                              
 80054e8:	29 61 00 b8 	lw r1,(r11+184)                                <== NOT EXECUTED
          /* activate RTS line */                                     
          if (tty->device.startRemoteTx != NULL) {                    
 80054ec:	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;                              
 80054f0:	a0 34 08 00 	and r1,r1,r20                                  <== NOT EXECUTED
 80054f4:	59 61 00 b8 	sw (r11+184),r1                                <== NOT EXECUTED
          /* activate RTS line */                                     
          if (tty->device.startRemoteTx != NULL) {                    
 80054f8:	44 60 00 03 	be r3,r0,8005504 <rtems_termios_read+0x250>    <== NOT EXECUTED
            tty->device.startRemoteTx(tty->minor);                    
 80054fc:	29 61 00 10 	lw r1,(r11+16)                                 <== NOT EXECUTED
 8005500:	d8 60 00 00 	call r3                                        <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      /* continue processing new character */                         
      if (tty->termios.c_lflag & ICANON) {                            
 8005504:	29 61 00 3c 	lw r1,(r11+60)                                 
 8005508:	20 21 00 02 	andi r1,r1,0x2                                 
 800550c:	44 20 00 06 	be r1,r0,8005524 <rtems_termios_read+0x270>    <== NEVER TAKEN
        if (siproc (c, tty))                                          
 8005510:	ba 40 08 00 	mv r1,r18                                      
 8005514:	b9 60 10 00 	mv r2,r11                                      
 8005518:	fb ff ff 0f 	calli 8005154 <siproc>                         
          wait = 0;                                                   
 800551c:	64 21 00 00 	cmpei r1,r1,0                                  
 8005520:	e0 00 00 07 	bi 800553c <rtems_termios_read+0x288>          
      } else {                                                        
        siproc (c, tty);                                              
 8005524:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 8005528:	ba 40 08 00 	mv r1,r18                                      <== NOT EXECUTED
 800552c:	fb ff ff 0a 	calli 8005154 <siproc>                         <== NOT EXECUTED
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
 8005530:	41 61 00 47 	lbu r1,(r11+71)                                <== NOT EXECUTED
 8005534:	29 62 00 20 	lw r2,(r11+32)                                 <== NOT EXECUTED
          wait = 0;                                                   
 8005538:	e8 22 08 00 	cmpg r1,r1,r2                                  <== NOT EXECUTED
      }                                                               
      timeout = tty->rawInBufSemaphoreTimeout;                        
 800553c:	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;                                                   
 8005540:	c8 01 08 00 	sub r1,r0,r1                                   
 8005544:	a1 a1 68 00 	and r13,r13,r1                                 
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
 8005548:	29 62 00 5c 	lw r2,(r11+92)                                 
 800554c:	29 61 00 60 	lw r1,(r11+96)                                 
 8005550:	44 41 00 05 	be r2,r1,8005564 <rtems_termios_read+0x2b0>    
                       (tty->ccount < (CBUFSIZE-1))) {                
 8005554:	2a 01 00 00 	lw r1,(r16+0)                                  
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
 8005558:	29 62 00 20 	lw r2,(r11+32)                                 
                       (tty->ccount < (CBUFSIZE-1))) {                
 800555c:	34 21 ff ff 	addi r1,r1,-1                                  
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
 8005560:	54 22 ff bd 	bgu r1,r2,8005454 <rtems_termios_read+0x1a0>   <== ALWAYS TAKEN
    }                                                                 
                                                                      
    /*                                                                
     * Wait for characters                                            
     */                                                               
    if ( wait ) {                                                     
 8005564:	45 a0 00 0f 	be r13,r0,80055a0 <rtems_termios_read+0x2ec>   
      sc = rtems_semaphore_obtain(                                    
 8005568:	29 61 00 68 	lw r1,(r11+104)                                
 800556c:	29 62 00 6c 	lw r2,(r11+108)                                
 8005570:	ba 40 18 00 	mv r3,r18                                      
 8005574:	f8 00 03 f2 	calli 800653c <rtems_semaphore_obtain>         
        tty->rawInBuf.Semaphore, tty->rawInBufSemaphoreOptions, timeout);
      if (sc != RTEMS_SUCCESSFUL)                                     
 8005578:	44 20 ff f4 	be r1,r0,8005548 <rtems_termios_read+0x294>    <== ALWAYS TAKEN
 800557c:	e0 00 00 09 	bi 80055a0 <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++];                             
 8005580:	29 62 00 1c 	lw r2,(r11+28)                                 
    count--;                                                          
 8005584:	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++];                             
 8005588:	b4 41 10 00 	add r2,r2,r1                                   
 800558c:	40 42 00 00 	lbu r2,(r2+0)                                  
 8005590:	34 21 00 01 	addi r1,r1,1                                   
 8005594:	32 22 00 00 	sb (r17+0),r2                                  
 8005598:	59 61 00 24 	sw (r11+36),r1                                 
 800559c:	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)) {                      
 80055a0:	45 e0 00 04 	be r15,r0,80055b0 <rtems_termios_read+0x2fc>   
 80055a4:	29 61 00 24 	lw r1,(r11+36)                                 
 80055a8:	29 62 00 20 	lw r2,(r11+32)                                 
 80055ac:	48 41 ff f5 	bg r2,r1,8005580 <rtems_termios_read+0x2cc>    
    *buffer++ = tty->cbuf[tty->cindex++];                             
    count--;                                                          
  }                                                                   
  args->bytes_moved = args->count - count;                            
 80055b0:	29 81 00 0c 	lw r1,(r12+12)                                 
 80055b4:	c8 2f 78 00 	sub r15,r1,r15                                 
 80055b8:	59 8f 00 14 	sw (r12+20),r15                                
  tty->tty_rcvwakeup = 0;                                             
  rtems_semaphore_release (tty->isem);                                
 80055bc:	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;                                             
 80055c0:	59 60 00 e4 	sw (r11+228),r0                                
  rtems_semaphore_release (tty->isem);                                
 80055c4:	f8 00 04 2e 	calli 800667c <rtems_semaphore_release>        
  return sc;                                                          
}                                                                     
 80055c8:	b9 c0 08 00 	mv r1,r14                                      
 80055cc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80055d0:	2b 8b 00 34 	lw r11,(sp+52)                                 
 80055d4:	2b 8c 00 30 	lw r12,(sp+48)                                 
 80055d8:	2b 8d 00 2c 	lw r13,(sp+44)                                 
 80055dc:	2b 8e 00 28 	lw r14,(sp+40)                                 
 80055e0:	2b 8f 00 24 	lw r15,(sp+36)                                 
 80055e4:	2b 90 00 20 	lw r16,(sp+32)                                 
 80055e8:	2b 91 00 1c 	lw r17,(sp+28)                                 
 80055ec:	2b 92 00 18 	lw r18,(sp+24)                                 
 80055f0:	2b 93 00 14 	lw r19,(sp+20)                                 
 80055f4:	2b 94 00 10 	lw r20,(sp+16)                                 
 80055f8:	2b 95 00 0c 	lw r21,(sp+12)                                 
 80055fc:	2b 96 00 08 	lw r22,(sp+8)                                  
 8005600:	37 9c 00 34 	addi sp,sp,52                                  
 8005604:	c3 a0 00 00 	ret                                            
                                                                      

08003c44 <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 */ static int rtems_termios_refill_transmitter (struct rtems_termios_tty *tty) {
 8003c44:	37 9c ff f0 	addi sp,sp,-16                                 
 8003c48:	5b 8b 00 10 	sw (sp+16),r11                                 
 8003c4c:	5b 8c 00 0c 	sw (sp+12),r12                                 
 8003c50:	5b 8d 00 08 	sw (sp+8),r13                                  
 8003c54:	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))         
 8003c58:	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 
 */                                                                   
static int                                                            
rtems_termios_refill_transmitter (struct rtems_termios_tty *tty)      
{                                                                     
 8003c5c:	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))         
 8003c60:	34 01 04 01 	mvi r1,1025                                    
 8003c64:	20 42 04 03 	andi r2,r2,0x403                               
 8003c68:	5c 41 00 10 	bne r2,r1,8003ca8 <rtems_termios_refill_transmitter+0x64><== ALWAYS TAKEN
      == (FL_MDXOF | FL_IREQXOF)) {                                   
    /* XOFF should be sent now... */                                  
    (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1);
 8003c6c:	29 64 00 a4 	lw r4,(r11+164)                                <== NOT EXECUTED
 8003c70:	29 61 00 10 	lw r1,(r11+16)                                 <== NOT EXECUTED
 8003c74:	35 62 00 4a 	addi r2,r11,74                                 <== NOT EXECUTED
 8003c78:	34 03 00 01 	mvi r3,1                                       <== NOT EXECUTED
 8003c7c:	d8 80 00 00 	call r4                                        <== NOT EXECUTED
                                                                      
    rtems_interrupt_disable(level);                                   
 8003c80:	90 00 08 00 	rcsr r1,IE                                     <== NOT EXECUTED
 8003c84:	34 02 ff fe 	mvi r2,-2                                      <== NOT EXECUTED
 8003c88:	a0 22 10 00 	and r2,r1,r2                                   <== NOT EXECUTED
 8003c8c:	d0 02 00 00 	wcsr IE,r2                                     <== NOT EXECUTED
    tty->t_dqlen--;                                                   
 8003c90:	29 62 00 90 	lw r2,(r11+144)                                <== NOT EXECUTED
 8003c94:	34 42 ff ff 	addi r2,r2,-1                                  <== NOT EXECUTED
 8003c98:	59 62 00 90 	sw (r11+144),r2                                <== NOT EXECUTED
    tty->flow_ctrl |= FL_ISNTXOF;                                     
 8003c9c:	29 62 00 b8 	lw r2,(r11+184)                                <== NOT EXECUTED
 8003ca0:	38 42 00 02 	ori r2,r2,0x2                                  <== NOT EXECUTED
 8003ca4:	e0 00 00 14 	bi 8003cf4 <rtems_termios_refill_transmitter+0xb0><== NOT EXECUTED
    rtems_interrupt_enable(level);                                    
                                                                      
    nToSend = 1;                                                      
                                                                      
  } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) == FL_ISNTXOF) {
 8003ca8:	29 62 00 b8 	lw r2,(r11+184)                                
 8003cac:	34 01 00 02 	mvi r1,2                                       
 8003cb0:	20 42 00 03 	andi r2,r2,0x3                                 
 8003cb4:	5c 41 00 14 	bne r2,r1,8003d04 <rtems_termios_refill_transmitter+0xc0><== 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);
 8003cb8:	29 64 00 a4 	lw r4,(r11+164)                                <== NOT EXECUTED
 8003cbc:	29 61 00 10 	lw r1,(r11+16)                                 <== NOT EXECUTED
 8003cc0:	35 62 00 49 	addi r2,r11,73                                 <== NOT EXECUTED
 8003cc4:	34 03 00 01 	mvi r3,1                                       <== NOT EXECUTED
 8003cc8:	d8 80 00 00 	call r4                                        <== NOT EXECUTED
                                                                      
    rtems_interrupt_disable(level);                                   
 8003ccc:	90 00 08 00 	rcsr r1,IE                                     <== NOT EXECUTED
 8003cd0:	34 02 ff fe 	mvi r2,-2                                      <== NOT EXECUTED
 8003cd4:	a0 22 10 00 	and r2,r1,r2                                   <== NOT EXECUTED
 8003cd8:	d0 02 00 00 	wcsr IE,r2                                     <== NOT EXECUTED
    tty->t_dqlen--;                                                   
 8003cdc:	29 62 00 90 	lw r2,(r11+144)                                <== NOT EXECUTED
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
 8003ce0:	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--;                                                   
 8003ce4:	34 42 ff ff 	addi r2,r2,-1                                  <== NOT EXECUTED
 8003ce8:	59 62 00 90 	sw (r11+144),r2                                <== NOT EXECUTED
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
 8003cec:	34 02 ff fd 	mvi r2,-3                                      <== NOT EXECUTED
 8003cf0:	a0 62 10 00 	and r2,r3,r2                                   <== NOT EXECUTED
 8003cf4:	59 62 00 b8 	sw (r11+184),r2                                <== NOT EXECUTED
    rtems_interrupt_enable(level);                                    
 8003cf8:	d0 01 00 00 	wcsr IE,r1                                     <== NOT EXECUTED
                                                                      
    nToSend = 1;                                                      
 8003cfc:	34 0c 00 01 	mvi r12,1                                      <== NOT EXECUTED
 8003d00:	e0 00 00 49 	bi 8003e24 <rtems_termios_refill_transmitter+0x1e0><== NOT EXECUTED
  } else {                                                            
    if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {               
 8003d04:	29 63 00 80 	lw r3,(r11+128)                                
 8003d08:	29 62 00 84 	lw r2,(r11+132)                                
 8003d0c:	5c 62 00 07 	bne r3,r2,8003d28 <rtems_termios_refill_transmitter+0xe4>
      /*                                                              
       * buffer was empty                                             
       */                                                             
      if (tty->rawOutBufState == rob_wait) {                          
 8003d10:	29 62 00 94 	lw r2,(r11+148)                                
        /*                                                            
         * this should never happen...                                
         */                                                           
        rtems_semaphore_release (tty->rawOutBuf.Semaphore);           
      }                                                               
      return 0;                                                       
 8003d14:	34 0c 00 00 	mvi r12,0                                      
  } else {                                                            
    if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {               
      /*                                                              
       * buffer was empty                                             
       */                                                             
      if (tty->rawOutBufState == rob_wait) {                          
 8003d18:	5c 41 00 43 	bne r2,r1,8003e24 <rtems_termios_refill_transmitter+0x1e0><== ALWAYS TAKEN
        /*                                                            
         * this should never happen...                                
         */                                                           
        rtems_semaphore_release (tty->rawOutBuf.Semaphore);           
 8003d1c:	29 61 00 8c 	lw r1,(r11+140)                                <== NOT EXECUTED
 8003d20:	f8 00 0a 57 	calli 800667c <rtems_semaphore_release>        <== NOT EXECUTED
 8003d24:	e0 00 00 40 	bi 8003e24 <rtems_termios_refill_transmitter+0x1e0><== NOT EXECUTED
      }                                                               
      return 0;                                                       
    }                                                                 
                                                                      
    rtems_interrupt_disable(level);                                   
 8003d28:	90 00 10 00 	rcsr r2,IE                                     
 8003d2c:	34 01 ff fe 	mvi r1,-2                                      
 8003d30:	a0 41 08 00 	and r1,r2,r1                                   
 8003d34:	d0 01 00 00 	wcsr IE,r1                                     
    len = tty->t_dqlen;                                               
 8003d38:	29 63 00 90 	lw r3,(r11+144)                                
    tty->t_dqlen = 0;                                                 
 8003d3c:	59 60 00 90 	sw (r11+144),r0                                
    rtems_interrupt_enable(level);                                    
 8003d40:	d0 02 00 00 	wcsr IE,r2                                     
                                                                      
    newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;      
 8003d44:	29 61 00 84 	lw r1,(r11+132)                                
 8003d48:	29 62 00 88 	lw r2,(r11+136)                                
 8003d4c:	b4 61 08 00 	add r1,r3,r1                                   
 8003d50:	f8 00 79 ba 	calli 8022438 <__umodsi3>                      
    tty->rawOutBuf.Tail = newTail;                                    
    if (tty->rawOutBufState == rob_wait) {                            
 8003d54:	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;      
 8003d58:	b8 20 68 00 	mv r13,r1                                      
    tty->rawOutBuf.Tail = newTail;                                    
 8003d5c:	59 61 00 84 	sw (r11+132),r1                                
    if (tty->rawOutBufState == rob_wait) {                            
 8003d60:	34 01 00 02 	mvi r1,2                                       
 8003d64:	5c 41 00 03 	bne r2,r1,8003d70 <rtems_termios_refill_transmitter+0x12c>
      /*                                                              
       * wake up any pending writer task                              
       */                                                             
      rtems_semaphore_release (tty->rawOutBuf.Semaphore);             
 8003d68:	29 61 00 8c 	lw r1,(r11+140)                                
 8003d6c:	f8 00 0a 44 	calli 800667c <rtems_semaphore_release>        
    }                                                                 
                                                                      
    if (newTail == tty->rawOutBuf.Head) {                             
 8003d70:	29 61 00 80 	lw r1,(r11+128)                                
 8003d74:	5d a1 00 09 	bne r13,r1,8003d98 <rtems_termios_refill_transmitter+0x154>
      nToSend = 0;                                                    
                                                                      
      /*                                                              
       * check to see if snd wakeup callback was set                  
       */                                                             
      if ( tty->tty_snd.sw_pfn != NULL) {                             
 8003d78:	29 63 00 d4 	lw r3,(r11+212)                                
                                                                      
    if (newTail == tty->rawOutBuf.Head) {                             
      /*                                                              
       * Buffer has become empty                                      
       */                                                             
      tty->rawOutBufState = rob_idle;                                 
 8003d7c:	59 60 00 94 	sw (r11+148),r0                                
      nToSend = 0;                                                    
 8003d80:	34 0c 00 00 	mvi r12,0                                      
                                                                      
      /*                                                              
       * check to see if snd wakeup callback was set                  
       */                                                             
      if ( tty->tty_snd.sw_pfn != NULL) {                             
 8003d84:	44 60 00 27 	be r3,r0,8003e20 <rtems_termios_refill_transmitter+0x1dc><== ALWAYS TAKEN
        (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);   
 8003d88:	29 62 00 d8 	lw r2,(r11+216)                                <== NOT EXECUTED
 8003d8c:	35 61 00 30 	addi r1,r11,48                                 <== NOT EXECUTED
 8003d90:	d8 60 00 00 	call r3                                        <== NOT EXECUTED
 8003d94:	e0 00 00 23 	bi 8003e20 <rtems_termios_refill_transmitter+0x1dc><== NOT EXECUTED
      }                                                               
    }                                                                 
    /* check, whether output should stop due to received XOFF */      
    else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))               
 8003d98:	29 62 00 b8 	lw r2,(r11+184)                                
 8003d9c:	34 01 02 10 	mvi r1,528                                     
 8003da0:	20 42 02 10 	andi r2,r2,0x210                               
 8003da4:	5c 41 00 0d 	bne r2,r1,8003dd8 <rtems_termios_refill_transmitter+0x194><== 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);                                 
 8003da8:	90 00 08 00 	rcsr r1,IE                                     <== NOT EXECUTED
 8003dac:	34 02 ff fe 	mvi r2,-2                                      <== NOT EXECUTED
 8003db0:	a0 22 10 00 	and r2,r1,r2                                   <== NOT EXECUTED
 8003db4:	d0 02 00 00 	wcsr IE,r2                                     <== NOT EXECUTED
      tty->flow_ctrl |= FL_OSTOP;                                     
 8003db8:	29 62 00 b8 	lw r2,(r11+184)                                <== NOT EXECUTED
 8003dbc:	38 42 00 20 	ori r2,r2,0x20                                 <== NOT EXECUTED
 8003dc0:	59 62 00 b8 	sw (r11+184),r2                                <== NOT EXECUTED
      tty->rawOutBufState = rob_busy; /*apm*/                         
 8003dc4:	34 02 00 01 	mvi r2,1                                       <== NOT EXECUTED
 8003dc8:	59 62 00 94 	sw (r11+148),r2                                <== NOT EXECUTED
      rtems_interrupt_enable(level);                                  
 8003dcc:	d0 01 00 00 	wcsr IE,r1                                     <== NOT EXECUTED
      nToSend = 0;                                                    
 8003dd0:	34 0c 00 00 	mvi r12,0                                      <== NOT EXECUTED
 8003dd4:	e0 00 00 13 	bi 8003e20 <rtems_termios_refill_transmitter+0x1dc><== NOT EXECUTED
    } else {                                                          
      /*                                                              
       * Buffer not empty, start tranmitter                           
       */                                                             
      if (newTail > tty->rawOutBuf.Head)                              
 8003dd8:	29 61 00 80 	lw r1,(r11+128)                                
 8003ddc:	50 2d 00 03 	bgeu r1,r13,8003de8 <rtems_termios_refill_transmitter+0x1a4>
        nToSend = tty->rawOutBuf.Size - newTail;                      
 8003de0:	29 6c 00 88 	lw r12,(r11+136)                               
 8003de4:	e0 00 00 02 	bi 8003dec <rtems_termios_refill_transmitter+0x1a8>
      else                                                            
        nToSend = tty->rawOutBuf.Head - newTail;                      
 8003de8:	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)) {                   
 8003dec:	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;                      
 8003df0:	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)) {                   
 8003df4:	20 21 06 00 	andi r1,r1,0x600                               
 8003df8:	44 20 00 02 	be r1,r0,8003e00 <rtems_termios_refill_transmitter+0x1bc>
        nToSend = 1;                                                  
 8003dfc:	34 0c 00 01 	mvi r12,1                                      
      }                                                               
      tty->rawOutBufState = rob_busy; /*apm*/                         
 8003e00:	34 01 00 01 	mvi r1,1                                       
      (*tty->device.write)(                                           
 8003e04:	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*/                         
 8003e08:	59 61 00 94 	sw (r11+148),r1                                
      (*tty->device.write)(                                           
 8003e0c:	29 64 00 a4 	lw r4,(r11+164)                                
 8003e10:	29 61 00 10 	lw r1,(r11+16)                                 
 8003e14:	b4 4d 10 00 	add r2,r2,r13                                  
 8003e18:	b9 80 18 00 	mv r3,r12                                      
 8003e1c:	d8 80 00 00 	call r4                                        
        tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend);        
    }                                                                 
    tty->rawOutBuf.Tail = newTail; /*apm*/                            
 8003e20:	59 6d 00 84 	sw (r11+132),r13                               
  }                                                                   
  return nToSend;                                                     
}                                                                     
 8003e24:	b9 80 08 00 	mv r1,r12                                      
 8003e28:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003e2c:	2b 8b 00 10 	lw r11,(sp+16)                                 
 8003e30:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 8003e34:	2b 8d 00 08 	lw r13,(sp+8)                                  
 8003e38:	37 9c 00 10 	addi sp,sp,16                                  
 8003e3c:	c3 a0 00 00 	ret                                            
                                                                      

0800594c <rtems_termios_rxdaemon>: /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) {
 800594c:	37 9c ff e4 	addi sp,sp,-28                                 
 8005950:	5b 8b 00 14 	sw (sp+20),r11                                 
 8005954:	5b 8c 00 10 	sw (sp+16),r12                                 
 8005958:	5b 8d 00 0c 	sw (sp+12),r13                                 
 800595c:	5b 8e 00 08 	sw (sp+8),r14                                  
 8005960:	5b 9d 00 04 	sw (sp+4),ra                                   
                                                                      
    /*                                                                
     * do something                                                   
     */                                                               
    c = tty->device.pollRead(tty->minor);                             
    if (c != EOF) {                                                   
 8005964:	34 0d ff ff 	mvi r13,-1                                     
                                                                      
/*                                                                    
 * this task actually processes any receive events                    
 */                                                                   
static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument)
{                                                                     
 8005968:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
 800596c:	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);           
 8005970:	37 8c 00 1f 	addi r12,sp,31                                 
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
 8005974:	34 01 00 03 	mvi r1,3                                       
 8005978:	34 02 00 02 	mvi r2,2                                       
 800597c:	34 03 00 00 	mvi r3,0                                       
 8005980:	b9 c0 20 00 	mv r4,r14                                      
 8005984:	f8 00 01 45 	calli 8005e98 <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) {              
 8005988:	2b 81 00 18 	lw r1,(sp+24)                                  
 800598c:	20 21 00 01 	andi r1,r1,0x1                                 
 8005990:	44 20 00 04 	be r1,r0,80059a0 <rtems_termios_rxdaemon+0x54> <== ALWAYS TAKEN
      tty->rxTaskId = 0;                                              
 8005994:	59 60 00 c4 	sw (r11+196),r0                                <== NOT EXECUTED
      rtems_task_delete(RTEMS_SELF);                                  
 8005998:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 800599c:	f8 00 03 e4 	calli 800692c <rtems_task_delete>              <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * do something                                                   
     */                                                               
    c = tty->device.pollRead(tty->minor);                             
 80059a0:	29 62 00 a0 	lw r2,(r11+160)                                
 80059a4:	29 61 00 10 	lw r1,(r11+16)                                 
 80059a8:	d8 40 00 00 	call r2                                        
    if (c != EOF) {                                                   
 80059ac:	44 2d ff f2 	be r1,r13,8005974 <rtems_termios_rxdaemon+0x28>
      /*                                                              
       * pollRead did call enqueue on its own                         
       */                                                             
      c_buf = c;                                                      
 80059b0:	33 81 00 1f 	sb (sp+31),r1                                  
      rtems_termios_enqueue_raw_characters ( tty,&c_buf,1);           
 80059b4:	b9 80 10 00 	mv r2,r12                                      
 80059b8:	b9 60 08 00 	mv r1,r11                                      
 80059bc:	34 03 00 01 	mvi r3,1                                       
 80059c0:	fb ff ff 1a 	calli 8005628 <rtems_termios_enqueue_raw_characters>
 80059c4:	e3 ff ff ec 	bi 8005974 <rtems_termios_rxdaemon+0x28>       
                                                                      

08003ed0 <rtems_termios_txdaemon>: /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) {
 8003ed0:	37 9c ff f0 	addi sp,sp,-16                                 
 8003ed4:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8003ed8:	5b 8c 00 08 	sw (sp+8),r12                                  
 8003edc:	5b 9d 00 04 	sw (sp+4),ra                                   
    }                                                                 
                                                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
 8003ee0:	78 0c 08 02 	mvhi r12,0x802                                 
                                                                      
/*                                                                    
 * this task actually processes any transmit events                   
 */                                                                   
static rtems_task rtems_termios_txdaemon(rtems_task_argument argument)
{                                                                     
 8003ee4:	b8 20 58 00 	mv r11,r1                                      
    }                                                                 
                                                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
 8003ee8:	39 8c 67 94 	ori r12,r12,0x6794                             
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
 8003eec:	34 01 00 03 	mvi r1,3                                       
 8003ef0:	34 02 00 02 	mvi r2,2                                       
 8003ef4:	34 03 00 00 	mvi r3,0                                       
 8003ef8:	37 84 00 10 	addi r4,sp,16                                  
 8003efc:	f8 00 07 e7 	calli 8005e98 <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) {              
 8003f00:	2b 81 00 10 	lw r1,(sp+16)                                  
 8003f04:	20 21 00 01 	andi r1,r1,0x1                                 
 8003f08:	44 20 00 04 	be r1,r0,8003f18 <rtems_termios_txdaemon+0x48> <== ALWAYS TAKEN
      tty->txTaskId = 0;                                              
 8003f0c:	59 60 00 c8 	sw (r11+200),r0                                <== NOT EXECUTED
      rtems_task_delete(RTEMS_SELF);                                  
 8003f10:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 8003f14:	f8 00 0a 86 	calli 800692c <rtems_task_delete>              <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
 8003f18:	29 61 00 cc 	lw r1,(r11+204)                                
 8003f1c:	34 02 00 05 	mvi r2,5                                       
 8003f20:	fb ff f2 c1 	calli 8000a24 <__ashlsi3>                      
 8003f24:	b5 81 08 00 	add r1,r12,r1                                  
 8003f28:	28 22 00 14 	lw r2,(r1+20)                                  
 8003f2c:	44 40 00 03 	be r2,r0,8003f38 <rtems_termios_txdaemon+0x68> <== ALWAYS TAKEN
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
 8003f30:	b9 60 08 00 	mv r1,r11                                      <== NOT EXECUTED
 8003f34:	d8 40 00 00 	call r2                                        <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * try to push further characters to device                       
     */                                                               
    rtems_termios_refill_transmitter(tty);                            
 8003f38:	b9 60 08 00 	mv r1,r11                                      
 8003f3c:	fb ff ff 42 	calli 8003c44 <rtems_termios_refill_transmitter>
  }                                                                   
 8003f40:	e3 ff ff eb 	bi 8003eec <rtems_termios_txdaemon+0x1c>       
                                                                      

080051c8 <rtems_termios_write>: rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) {
 80051c8:	37 9c ff e8 	addi sp,sp,-24                                 
 80051cc:	5b 8b 00 18 	sw (sp+24),r11                                 
 80051d0:	5b 8c 00 14 	sw (sp+20),r12                                 
 80051d4:	5b 8d 00 10 	sw (sp+16),r13                                 
 80051d8:	5b 8e 00 0c 	sw (sp+12),r14                                 
 80051dc:	5b 8f 00 08 	sw (sp+8),r15                                  
 80051e0:	5b 9d 00 04 	sw (sp+4),ra                                   
 80051e4:	b8 20 58 00 	mv r11,r1                                      
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
 80051e8:	28 21 00 00 	lw r1,(r1+0)                                   
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 80051ec:	34 02 00 00 	mvi r2,0                                       
 80051f0:	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;                   
 80051f4:	28 2c 00 28 	lw r12,(r1+40)                                 
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
 80051f8:	29 81 00 18 	lw r1,(r12+24)                                 
 80051fc:	f8 00 04 d0 	calli 800653c <rtems_semaphore_obtain>         
 8005200:	b8 20 68 00 	mv r13,r1                                      
  if (sc != RTEMS_SUCCESSFUL)                                         
 8005204:	5c 20 00 23 	bne r1,r0,8005290 <rtems_termios_write+0xc8>   <== NEVER TAKEN
    return sc;                                                        
  if (rtems_termios_linesw[tty->t_line].l_write != NULL) {            
 8005208:	29 81 00 cc 	lw r1,(r12+204)                                
 800520c:	78 0e 08 02 	mvhi r14,0x802                                 
 8005210:	34 02 00 05 	mvi r2,5                                       
 8005214:	fb ff ee 04 	calli 8000a24 <__ashlsi3>                      
 8005218:	39 ce 67 94 	ori r14,r14,0x6794                             
 800521c:	b5 c1 08 00 	add r1,r14,r1                                  
 8005220:	28 23 00 0c 	lw r3,(r1+12)                                  
 8005224:	44 6d 00 06 	be r3,r13,800523c <rtems_termios_write+0x74>   
    sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);         
 8005228:	b9 80 08 00 	mv r1,r12                                      
 800522c:	b9 60 10 00 	mv r2,r11                                      
 8005230:	d8 60 00 00 	call r3                                        
 8005234:	b8 20 68 00 	mv r13,r1                                      
 8005238:	e0 00 00 14 	bi 8005288 <rtems_termios_write+0xc0>          
    rtems_semaphore_release (tty->osem);                              
    return sc;                                                        
  }                                                                   
  if (tty->termios.c_oflag & OPOST) {                                 
 800523c:	29 83 00 34 	lw r3,(r12+52)                                 
 8005240:	29 62 00 0c 	lw r2,(r11+12)                                 
 8005244:	29 61 00 08 	lw r1,(r11+8)                                  
 8005248:	20 63 00 01 	andi r3,r3,0x1                                 
    uint32_t   count = args->count;                                   
 800524c:	b8 40 78 00 	mv r15,r2                                      
    char      *buffer = args->buffer;                                 
 8005250:	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) {                                 
 8005254:	5c 60 00 07 	bne r3,r0,8005270 <rtems_termios_write+0xa8>   <== ALWAYS TAKEN
 8005258:	e0 00 00 08 	bi 8005278 <rtems_termios_write+0xb0>          <== NOT EXECUTED
    uint32_t   count = args->count;                                   
    char      *buffer = args->buffer;                                 
    while (count--)                                                   
      oproc (*buffer++, tty);                                         
 800525c:	41 c1 00 00 	lbu r1,(r14+0)                                 
 8005260:	b9 80 10 00 	mv r2,r12                                      
 8005264:	35 ce 00 01 	addi r14,r14,1                                 
 8005268:	fb ff fe 4b 	calli 8004b94 <oproc>                          
 800526c:	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--)                                                   
 8005270:	5d e0 ff fb 	bne r15,r0,800525c <rtems_termios_write+0x94>  
 8005274:	e0 00 00 03 	bi 8005280 <rtems_termios_write+0xb8>          
      oproc (*buffer++, tty);                                         
    args->bytes_moved = args->count;                                  
  } else {                                                            
    rtems_termios_puts (args->buffer, args->count, tty);              
 8005278:	b9 80 18 00 	mv r3,r12                                      <== NOT EXECUTED
 800527c:	fb ff fd f3 	calli 8004a48 <rtems_termios_puts>             <== NOT EXECUTED
    args->bytes_moved = args->count;                                  
 8005280:	29 61 00 0c 	lw r1,(r11+12)                                 
 8005284:	59 61 00 14 	sw (r11+20),r1                                 
  }                                                                   
  rtems_semaphore_release (tty->osem);                                
 8005288:	29 81 00 18 	lw r1,(r12+24)                                 
 800528c:	f8 00 04 fc 	calli 800667c <rtems_semaphore_release>        
  return sc;                                                          
}                                                                     
 8005290:	b9 a0 08 00 	mv r1,r13                                      
 8005294:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8005298:	2b 8b 00 18 	lw r11,(sp+24)                                 
 800529c:	2b 8c 00 14 	lw r12,(sp+20)                                 
 80052a0:	2b 8d 00 10 	lw r13,(sp+16)                                 
 80052a4:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 80052a8:	2b 8f 00 08 	lw r15,(sp+8)                                  
 80052ac:	37 9c 00 18 	addi sp,sp,24                                  
 80052b0:	c3 a0 00 00 	ret                                            
                                                                      

08014db4 <rtems_timer_cancel>: */ rtems_status_code rtems_timer_cancel( rtems_id id ) {
 8014db4:	37 9c ff f8 	addi sp,sp,-8                                  
 8014db8:	5b 9d 00 04 	sw (sp+4),ra                                   
 8014dbc:	b8 20 10 00 	mv r2,r1                                       
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Timer_Control *)                                            
    _Objects_Get( &_Timer_Information, id, location );                
 8014dc0:	78 01 08 03 	mvhi r1,0x803                                  
 8014dc4:	38 21 df 30 	ori r1,r1,0xdf30                               
 8014dc8:	37 83 00 08 	addi r3,sp,8                                   
 8014dcc:	f8 00 0e b8 	calli 80188ac <_Objects_Get>                   
  Timer_Control   *the_timer;                                         
  Objects_Locations       location;                                   
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
 8014dd0:	2b 82 00 08 	lw r2,(sp+8)                                   
 8014dd4:	5c 40 00 09 	bne r2,r0,8014df8 <rtems_timer_cancel+0x44>    
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( !_Timer_Is_dormant_class( the_timer->the_class ) )         
 8014dd8:	28 23 00 38 	lw r3,(r1+56)                                  
 8014ddc:	34 02 00 04 	mvi r2,4                                       
 8014de0:	44 62 00 03 	be r3,r2,8014dec <rtems_timer_cancel+0x38>     <== NEVER TAKEN
        (void) _Watchdog_Remove( &the_timer->Ticker );                
 8014de4:	34 21 00 10 	addi r1,r1,16                                  
 8014de8:	f8 00 17 b1 	calli 801acac <_Watchdog_Remove>               
      _Thread_Enable_dispatch();                                      
 8014dec:	f8 00 13 13 	calli 8019a38 <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 8014df0:	34 01 00 00 	mvi r1,0                                       
 8014df4:	e0 00 00 02 	bi 8014dfc <rtems_timer_cancel+0x48>           
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8014df8:	34 01 00 04 	mvi r1,4                                       
}                                                                     
 8014dfc:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8014e00:	37 9c 00 08 	addi sp,sp,8                                   
 8014e04:	c3 a0 00 00 	ret                                            
                                                                      

08003ce4 <rtems_timer_fire_after>: rtems_id id, rtems_interval ticks, rtems_timer_service_routine_entry routine, void *user_data ) {
 8003ce4:	37 9c ff e0 	addi sp,sp,-32                                 
 8003ce8:	5b 8b 00 1c 	sw (sp+28),r11                                 
 8003cec:	5b 8c 00 18 	sw (sp+24),r12                                 
 8003cf0:	5b 8d 00 14 	sw (sp+20),r13                                 
 8003cf4:	5b 8e 00 10 	sw (sp+16),r14                                 
 8003cf8:	5b 8f 00 0c 	sw (sp+12),r15                                 
 8003cfc:	5b 90 00 08 	sw (sp+8),r16                                  
 8003d00:	5b 9d 00 04 	sw (sp+4),ra                                   
 8003d04:	b8 20 70 00 	mv r14,r1                                      
 8003d08:	b8 40 68 00 	mv r13,r2                                      
 8003d0c:	b8 60 78 00 	mv r15,r3                                      
 8003d10:	b8 80 80 00 	mv r16,r4                                      
  Timer_Control      *the_timer;                                      
  Objects_Locations   location;                                       
  ISR_Level           level;                                          
                                                                      
  if ( ticks == 0 )                                                   
    return RTEMS_INVALID_NUMBER;                                      
 8003d14:	34 01 00 0a 	mvi r1,10                                      
{                                                                     
  Timer_Control      *the_timer;                                      
  Objects_Locations   location;                                       
  ISR_Level           level;                                          
                                                                      
  if ( ticks == 0 )                                                   
 8003d18:	44 40 00 25 	be r2,r0,8003dac <rtems_timer_fire_after+0xc8> <== NEVER TAKEN
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
 8003d1c:	34 01 00 09 	mvi r1,9                                       
  ISR_Level           level;                                          
                                                                      
  if ( ticks == 0 )                                                   
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  if ( !routine )                                                     
 8003d20:	44 60 00 23 	be r3,r0,8003dac <rtems_timer_fire_after+0xc8> <== NEVER TAKEN
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Timer_Control *)                                            
    _Objects_Get( &_Timer_Information, id, location );                
 8003d24:	78 01 08 01 	mvhi r1,0x801                                  
 8003d28:	38 21 da b0 	ori r1,r1,0xdab0                               
 8003d2c:	b9 c0 10 00 	mv r2,r14                                      
 8003d30:	37 83 00 20 	addi r3,sp,32                                  
 8003d34:	f8 00 05 c3 	calli 8005440 <_Objects_Get>                   
 8003d38:	b8 20 58 00 	mv r11,r1                                      
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
 8003d3c:	2b 81 00 20 	lw r1,(sp+32)                                  
 8003d40:	5c 20 00 1a 	bne r1,r0,8003da8 <rtems_timer_fire_after+0xc4><== NEVER TAKEN
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
 8003d44:	35 6c 00 10 	addi r12,r11,16                                
 8003d48:	b9 80 08 00 	mv r1,r12                                      
 8003d4c:	f8 00 0d 96 	calli 80073a4 <_Watchdog_Remove>               
                                                                      
      _ISR_Disable( level );                                          
 8003d50:	90 00 28 00 	rcsr r5,IE                                     
 8003d54:	34 01 ff fe 	mvi r1,-2                                      
 8003d58:	a0 a1 08 00 	and r1,r5,r1                                   
 8003d5c:	d0 01 00 00 	wcsr IE,r1                                     
        /*                                                            
         *  Check to see if the watchdog has just been inserted by a  
         *  higher priority interrupt.  If so, abandon this insert.   
         */                                                           
                                                                      
        if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) {         
 8003d60:	29 61 00 18 	lw r1,(r11+24)                                 
 8003d64:	44 20 00 03 	be r1,r0,8003d70 <rtems_timer_fire_after+0x8c> 
          _ISR_Enable( level );                                       
 8003d68:	d0 05 00 00 	wcsr IE,r5                                     
 8003d6c:	e0 00 00 0c 	bi 8003d9c <rtems_timer_fire_after+0xb8>       
        /*                                                            
         *  OK.  Now we now the timer was not rescheduled by an interrupt
         *  so we can atomically initialize it as in use.             
         */                                                           
                                                                      
        the_timer->the_class = TIMER_INTERVAL;                        
 8003d70:	59 60 00 38 	sw (r11+56),r0                                 
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 8003d74:	59 61 00 18 	sw (r11+24),r1                                 
  the_watchdog->routine   = routine;                                  
 8003d78:	59 6f 00 2c 	sw (r11+44),r15                                
  the_watchdog->id        = id;                                       
 8003d7c:	59 6e 00 30 	sw (r11+48),r14                                
  the_watchdog->user_data = user_data;                                
 8003d80:	59 70 00 34 	sw (r11+52),r16                                
        _Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
      _ISR_Enable( level );                                           
 8003d84:	d0 05 00 00 	wcsr IE,r5                                     
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 8003d88:	78 01 08 01 	mvhi r1,0x801                                  
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
 8003d8c:	59 6d 00 1c 	sw (r11+28),r13                                
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
 8003d90:	38 21 d9 38 	ori r1,r1,0xd938                               
 8003d94:	b9 80 10 00 	mv r2,r12                                      
 8003d98:	f8 00 0d 26 	calli 8007230 <_Watchdog_Insert>               
                                                                      
                                                                      
      _Watchdog_Insert_ticks( &the_timer->Ticker, ticks );            
      _Thread_Enable_dispatch();                                      
 8003d9c:	f8 00 09 82 	calli 80063a4 <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 8003da0:	34 01 00 00 	mvi r1,0                                       
 8003da4:	e0 00 00 02 	bi 8003dac <rtems_timer_fire_after+0xc8>       
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8003da8:	34 01 00 04 	mvi r1,4                                       
}                                                                     
 8003dac:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003db0:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8003db4:	2b 8c 00 18 	lw r12,(sp+24)                                 
 8003db8:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8003dbc:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8003dc0:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8003dc4:	2b 90 00 08 	lw r16,(sp+8)                                  
 8003dc8:	37 9c 00 20 	addi sp,sp,32                                  
 8003dcc:	c3 a0 00 00 	ret                                            
                                                                      

080153f8 <rtems_timer_server_fire_when>: rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) {
 80153f8:	37 9c ff dc 	addi sp,sp,-36                                 
 80153fc:	5b 8b 00 20 	sw (sp+32),r11                                 
 8015400:	5b 8c 00 1c 	sw (sp+28),r12                                 
 8015404:	5b 8d 00 18 	sw (sp+24),r13                                 
 8015408:	5b 8e 00 14 	sw (sp+20),r14                                 
 801540c:	5b 8f 00 10 	sw (sp+16),r15                                 
 8015410:	5b 90 00 0c 	sw (sp+12),r16                                 
 8015414:	5b 91 00 08 	sw (sp+8),r17                                  
 8015418:	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;                 
 801541c:	78 05 08 03 	mvhi r5,0x803                                  
 8015420:	38 a5 df 70 	ori r5,r5,0xdf70                               
 8015424:	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                        
)                                                                     
{                                                                     
 8015428:	b8 20 78 00 	mv r15,r1                                      
 801542c:	b8 40 70 00 	mv r14,r2                                      
 8015430:	b8 60 80 00 	mv r16,r3                                      
 8015434:	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;                                     
 8015438:	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 )                                                
 801543c:	45 a0 00 38 	be r13,r0,801551c <rtems_timer_server_fire_when+0x124>
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD.is_set )                                                 
 8015440:	78 0c 08 03 	mvhi r12,0x803                                 
 8015444:	39 8c dc 50 	ori r12,r12,0xdc50                             
 8015448:	41 81 00 14 	lbu r1,(r12+20)                                
    return RTEMS_NOT_DEFINED;                                         
 801544c:	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 )                                                 
 8015450:	44 20 00 33 	be r1,r0,801551c <rtems_timer_server_fire_when+0x124><== NEVER TAKEN
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
 8015454:	34 0b 00 09 	mvi r11,9                                      
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD.is_set )                                                 
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
 8015458:	44 60 00 31 	be r3,r0,801551c <rtems_timer_server_fire_when+0x124>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
 801545c:	b8 40 08 00 	mv r1,r2                                       
 8015460:	fb ff f0 f6 	calli 8011838 <_TOD_Validate>                  
    return RTEMS_INVALID_CLOCK;                                       
 8015464:	34 0b 00 14 	mvi r11,20                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
 8015468:	44 20 00 2d 	be r1,r0,801551c <rtems_timer_server_fire_when+0x124>
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
 801546c:	b9 c0 08 00 	mv r1,r14                                      
 8015470:	fb ff f0 aa 	calli 8011718 <_TOD_To_seconds>                
 8015474:	78 05 08 03 	mvhi r5,0x803                                  
 8015478:	38 a5 6f 2c 	ori r5,r5,0x6f2c                               
 801547c:	b8 20 70 00 	mv r14,r1                                      
 8015480:	29 82 00 04 	lw r2,(r12+4)                                  
 8015484:	29 81 00 00 	lw r1,(r12+0)                                  
 8015488:	28 a4 00 00 	lw r4,(r5+0)                                   
 801548c:	34 03 00 00 	mvi r3,0                                       
 8015490:	f8 00 51 b1 	calli 8029b54 <__divdi3>                       
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
 8015494:	50 4e 00 22 	bgeu r2,r14,801551c <rtems_timer_server_fire_when+0x124>
 8015498:	78 01 08 03 	mvhi r1,0x803                                  
 801549c:	38 21 df 30 	ori r1,r1,0xdf30                               
 80154a0:	b9 e0 10 00 	mv r2,r15                                      
 80154a4:	37 83 00 24 	addi r3,sp,36                                  
 80154a8:	f8 00 0d 01 	calli 80188ac <_Objects_Get>                   
 80154ac:	b8 20 58 00 	mv r11,r1                                      
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
 80154b0:	2b 81 00 24 	lw r1,(sp+36)                                  
 80154b4:	5c 20 00 19 	bne r1,r0,8015518 <rtems_timer_server_fire_when+0x120>
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
 80154b8:	35 61 00 10 	addi r1,r11,16                                 
 80154bc:	f8 00 15 fc 	calli 801acac <_Watchdog_Remove>               
      the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;               
 80154c0:	34 01 00 03 	mvi r1,3                                       
 80154c4:	78 05 08 03 	mvhi r5,0x803                                  
 80154c8:	59 61 00 38 	sw (r11+56),r1                                 
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
 80154cc:	59 60 00 18 	sw (r11+24),r0                                 
  the_watchdog->routine   = routine;                                  
 80154d0:	59 70 00 2c 	sw (r11+44),r16                                
  the_watchdog->id        = id;                                       
 80154d4:	59 6f 00 30 	sw (r11+48),r15                                
  the_watchdog->user_data = user_data;                                
 80154d8:	59 71 00 34 	sw (r11+52),r17                                
 80154dc:	38 a5 6f 2c 	ori r5,r5,0x6f2c                               
 80154e0:	29 81 00 00 	lw r1,(r12+0)                                  
 80154e4:	29 82 00 04 	lw r2,(r12+4)                                  
 80154e8:	28 a4 00 00 	lw r4,(r5+0)                                   
 80154ec:	34 03 00 00 	mvi r3,0                                       
 80154f0:	f8 00 51 99 	calli 8029b54 <__divdi3>                       
      _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 ); 
 80154f4:	29 a3 00 04 	lw r3,(r13+4)                                  
                                                                      
    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();
 80154f8:	c9 c2 10 00 	sub r2,r14,r2                                  
 80154fc:	59 62 00 1c 	sw (r11+28),r2                                 
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
 8015500:	b9 a0 08 00 	mv r1,r13                                      
 8015504:	b9 60 10 00 	mv r2,r11                                      
 8015508:	d8 60 00 00 	call r3                                        
                                                                      
      _Thread_Enable_dispatch();                                      
      return RTEMS_SUCCESSFUL;                                        
 801550c:	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();                                      
 8015510:	f8 00 11 4a 	calli 8019a38 <_Thread_Enable_dispatch>        
      return RTEMS_SUCCESSFUL;                                        
 8015514:	e0 00 00 02 	bi 801551c <rtems_timer_server_fire_when+0x124>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
 8015518:	34 0b 00 04 	mvi r11,4                                      
}                                                                     
 801551c:	b9 60 08 00 	mv r1,r11                                      
 8015520:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8015524:	2b 8b 00 20 	lw r11,(sp+32)                                 
 8015528:	2b 8c 00 1c 	lw r12,(sp+28)                                 
 801552c:	2b 8d 00 18 	lw r13,(sp+24)                                 
 8015530:	2b 8e 00 14 	lw r14,(sp+20)                                 
 8015534:	2b 8f 00 10 	lw r15,(sp+16)                                 
 8015538:	2b 90 00 0c 	lw r16,(sp+12)                                 
 801553c:	2b 91 00 08 	lw r17,(sp+8)                                  
 8015540:	37 9c 00 24 	addi sp,sp,36                                  
 8015544:	c3 a0 00 00 	ret                                            
                                                                      

080012b4 <rtems_verror>: static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) {
 80012b4:	37 9c ff e4 	addi sp,sp,-28                                 
 80012b8:	5b 8b 00 1c 	sw (sp+28),r11                                 
 80012bc:	5b 8c 00 18 	sw (sp+24),r12                                 
 80012c0:	5b 8d 00 14 	sw (sp+20),r13                                 
 80012c4:	5b 8e 00 10 	sw (sp+16),r14                                 
 80012c8:	5b 8f 00 0c 	sw (sp+12),r15                                 
 80012cc:	5b 90 00 08 	sw (sp+8),r16                                  
 80012d0:	5b 9d 00 04 	sw (sp+4),ra                                   
 80012d4:	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) {                               
 80012d8:	78 01 20 00 	mvhi r1,0x2000                                 
 80012dc:	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                                         
)                                                                     
{                                                                     
 80012e0:	b8 40 80 00 	mv r16,r2                                      
 80012e4:	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) {                               
 80012e8:	44 20 00 12 	be r1,r0,8001330 <rtems_verror+0x7c>           
    if (rtems_panic_in_progress++)                                    
 80012ec:	78 04 08 01 	mvhi r4,0x801                                  
 80012f0:	38 84 d7 9c 	ori r4,r4,0xd79c                               
 80012f4:	28 81 00 00 	lw r1,(r4+0)                                   
 80012f8:	34 22 00 01 	addi r2,r1,1                                   
 80012fc:	58 82 00 00 	sw (r4+0),r2                                   
 8001300:	44 20 00 06 	be r1,r0,8001318 <rtems_verror+0x64>           <== ALWAYS TAKEN
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    uint32_t level = _Thread_Dispatch_disable_level;                  
 8001304:	78 04 08 01 	mvhi r4,0x801                                  <== NOT EXECUTED
 8001308:	38 84 d8 e0 	ori r4,r4,0xd8e0                               <== NOT EXECUTED
 800130c:	28 81 00 00 	lw r1,(r4+0)                                   <== NOT EXECUTED
                                                                      
    ++level;                                                          
 8001310:	34 21 00 01 	addi r1,r1,1                                   <== NOT EXECUTED
    _Thread_Dispatch_disable_level = level;                           
 8001314:	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)                                  
 8001318:	78 01 08 01 	mvhi r1,0x801                                  
 800131c:	38 21 d7 9c 	ori r1,r1,0xd79c                               
 8001320:	28 22 00 00 	lw r2,(r1+0)                                   
 8001324:	34 01 00 02 	mvi r1,2                                       
      return 0;                                                       
 8001328:	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)                                  
 800132c:	48 41 00 48 	bg r2,r1,800144c <rtems_verror+0x198>          <== NEVER TAKEN
      return 0;                                                       
  }                                                                   
                                                                      
  (void) fflush(stdout);            /* in case stdout/stderr same */  
 8001330:	78 01 08 01 	mvhi r1,0x801                                  
 8001334:	38 21 d2 28 	ori r1,r1,0xd228                               
 8001338:	28 21 00 00 	lw r1,(r1+0)                                   
 800133c:	28 21 00 08 	lw r1,(r1+8)                                   
 8001340:	f8 00 2a 43 	calli 800bc4c <fflush>                         
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
 8001344:	78 01 08 01 	mvhi r1,0x801                                  
 8001348:	38 21 b7 90 	ori r1,r1,0xb790                               
 800134c:	28 2e 00 00 	lw r14,(r1+0)                                  
  if (error_flag & RTEMS_ERROR_ERRNO)     /* include errno? */        
 8001350:	78 01 40 00 	mvhi r1,0x4000                                 
 8001354:	a1 81 08 00 	and r1,r12,r1                                  
      return 0;                                                       
  }                                                                   
                                                                      
  (void) fflush(stdout);            /* in case stdout/stderr same */  
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
 8001358:	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;                                  
 800135c:	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? */        
 8001360:	44 20 00 03 	be r1,r0,800136c <rtems_verror+0xb8>           
    local_errno = errno;                                              
 8001364:	f8 00 29 2a 	calli 800b80c <__errno>                        
 8001368:	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);          
 800136c:	78 0d 08 01 	mvhi r13,0x801                                 
 8001370:	39 ad d2 28 	ori r13,r13,0xd228                             
 8001374:	29 a1 00 00 	lw r1,(r13+0)                                  
 8001378:	ba 00 10 00 	mv r2,r16                                      
 800137c:	b9 e0 18 00 	mv r3,r15                                      
 8001380:	28 21 00 0c 	lw r1,(r1+12)                                  
 8001384:	f8 00 3e 28 	calli 8010c24 <vfprintf>                       
 8001388:	b8 20 58 00 	mv r11,r1                                      
                                                                      
  if (status)                                                         
 800138c:	45 c0 00 0b 	be r14,r0,80013b8 <rtems_verror+0x104>         
    chars_written +=                                                  
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
 8001390:	29 a1 00 00 	lw r1,(r13+0)                                  
 8001394:	28 2d 00 0c 	lw r13,(r1+12)                                 
 8001398:	b9 c0 08 00 	mv r1,r14                                      
 800139c:	fb ff ff bd 	calli 8001290 <rtems_status_text>              
 80013a0:	78 02 08 01 	mvhi r2,0x801                                  
 80013a4:	b8 20 18 00 	mv r3,r1                                       
 80013a8:	38 42 b4 4c 	ori r2,r2,0xb44c                               
 80013ac:	b9 a0 08 00 	mv r1,r13                                      
 80013b0:	f8 00 2b 8e 	calli 800c1e8 <fprintf>                        
  #endif                                                              
                                                                      
  chars_written += vfprintf(stderr, printf_format, arglist);          
                                                                      
  if (status)                                                         
    chars_written +=                                                  
 80013b4:	b5 61 58 00 	add r11,r11,r1                                 
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
                                                                      
  if (local_errno) {                                                  
 80013b8:	45 80 00 1a 	be r12,r0,8001420 <rtems_verror+0x16c>         
    if ((local_errno > 0) && *strerror(local_errno))                  
 80013bc:	4c 0c 00 10 	bge r0,r12,80013fc <rtems_verror+0x148>        
 80013c0:	b9 80 08 00 	mv r1,r12                                      
 80013c4:	f8 00 2f 4b 	calli 800d0f0 <strerror>                       
 80013c8:	40 21 00 00 	lbu r1,(r1+0)                                  
 80013cc:	44 20 00 0c 	be r1,r0,80013fc <rtems_verror+0x148>          <== NEVER TAKEN
      chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
 80013d0:	78 01 08 01 	mvhi r1,0x801                                  
 80013d4:	38 21 d2 28 	ori r1,r1,0xd228                               
 80013d8:	28 21 00 00 	lw r1,(r1+0)                                   
 80013dc:	28 2d 00 0c 	lw r13,(r1+12)                                 
 80013e0:	b9 80 08 00 	mv r1,r12                                      
 80013e4:	f8 00 2f 43 	calli 800d0f0 <strerror>                       
 80013e8:	78 02 08 01 	mvhi r2,0x801                                  
 80013ec:	b8 20 18 00 	mv r3,r1                                       
 80013f0:	38 42 b4 5c 	ori r2,r2,0xb45c                               
 80013f4:	b9 a0 08 00 	mv r1,r13                                      
 80013f8:	e0 00 00 08 	bi 8001418 <rtems_verror+0x164>                
    else                                                              
      chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
 80013fc:	78 01 08 01 	mvhi r1,0x801                                  
 8001400:	38 21 d2 28 	ori r1,r1,0xd228                               
 8001404:	28 21 00 00 	lw r1,(r1+0)                                   
 8001408:	78 02 08 01 	mvhi r2,0x801                                  
 800140c:	38 42 b4 6c 	ori r2,r2,0xb46c                               
 8001410:	28 21 00 0c 	lw r1,(r1+12)                                  
 8001414:	b9 80 18 00 	mv r3,r12                                      
 8001418:	f8 00 2b 74 	calli 800c1e8 <fprintf>                        
 800141c:	b5 61 58 00 	add r11,r11,r1                                 
  }                                                                   
                                                                      
  chars_written += fprintf(stderr, "\n");                             
 8001420:	78 0c 08 01 	mvhi r12,0x801                                 
 8001424:	39 8c d2 28 	ori r12,r12,0xd228                             
 8001428:	29 81 00 00 	lw r1,(r12+0)                                  
 800142c:	78 02 08 01 	mvhi r2,0x801                                  
 8001430:	38 42 b1 bc 	ori r2,r2,0xb1bc                               
 8001434:	28 21 00 0c 	lw r1,(r1+12)                                  
 8001438:	f8 00 2b 6c 	calli 800c1e8 <fprintf>                        
 800143c:	b4 2b 58 00 	add r11,r1,r11                                 
                                                                      
  (void) fflush(stderr);                                              
 8001440:	29 81 00 00 	lw r1,(r12+0)                                  
 8001444:	28 21 00 0c 	lw r1,(r1+12)                                  
 8001448:	f8 00 2a 01 	calli 800bc4c <fflush>                         
                                                                      
  return chars_written;                                               
}                                                                     
 800144c:	b9 60 08 00 	mv r1,r11                                      
 8001450:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8001454:	2b 8b 00 1c 	lw r11,(sp+28)                                 
 8001458:	2b 8c 00 18 	lw r12,(sp+24)                                 
 800145c:	2b 8d 00 14 	lw r13,(sp+20)                                 
 8001460:	2b 8e 00 10 	lw r14,(sp+16)                                 
 8001464:	2b 8f 00 0c 	lw r15,(sp+12)                                 
 8001468:	2b 90 00 08 	lw r16,(sp+8)                                  
 800146c:	37 9c 00 1c 	addi sp,sp,28                                  
 8001470:	c3 a0 00 00 	ret                                            
                                                                      

0802276c <scanInt>: /** * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) {
 802276c:	37 9c ff d4 	addi sp,sp,-44                                 
 8022770:	5b 8b 00 2c 	sw (sp+44),r11                                 
 8022774:	5b 8c 00 28 	sw (sp+40),r12                                 
 8022778:	5b 8d 00 24 	sw (sp+36),r13                                 
 802277c:	5b 8e 00 20 	sw (sp+32),r14                                 
 8022780:	5b 8f 00 1c 	sw (sp+28),r15                                 
 8022784:	5b 90 00 18 	sw (sp+24),r16                                 
 8022788:	5b 91 00 14 	sw (sp+20),r17                                 
 802278c:	5b 92 00 10 	sw (sp+16),r18                                 
 8022790:	5b 93 00 0c 	sw (sp+12),r19                                 
 8022794:	5b 94 00 08 	sw (sp+8),r20                                  
 8022798:	5b 9d 00 04 	sw (sp+4),ra                                   
 802279c:	b8 20 58 00 	mv r11,r1                                      
  int c;                                                              
  unsigned int i = 0;                                                 
  unsigned int limit = INT_MAX;                                       
 80227a0:	78 01 08 05 	mvhi r1,0x805                                  
 80227a4:	38 21 bd c0 	ori r1,r1,0xbdc0                               
 80227a8:	28 2e 00 00 	lw r14,(r1+0)                                  
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
 80227ac:	78 11 08 06 	mvhi r17,0x806                                 
        limit++;                                                      
        continue;                                                     
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
 80227b0:	78 10 08 06 	mvhi r16,0x806                                 
/**                                                                   
 *  Extract an integer value from the database                        
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
 80227b4:	b8 40 90 00 	mv r18,r2                                      
  int c;                                                              
  unsigned int i = 0;                                                 
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
 80227b8:	34 0d 00 00 	mvi r13,0                                      
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
  int c;                                                              
  unsigned int i = 0;                                                 
 80227bc:	34 0c 00 00 	mvi r12,0                                      
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
 80227c0:	3a 31 4a 08 	ori r17,r17,0x4a08                             
    if (c == ':')                                                     
 80227c4:	34 14 00 3a 	mvi r20,58                                     
        limit++;                                                      
        continue;                                                     
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
 80227c8:	3a 10 49 fc 	ori r16,r16,0x49fc                             
  for (;;) {                                                          
    c = getc(fp);                                                     
    if (c == ':')                                                     
      break;                                                          
    if (sign == 0) {                                                  
      if (c == '-') {                                                 
 80227cc:	34 13 00 2d 	mvi r19,45                                     
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
 80227d0:	29 61 00 04 	lw r1,(r11+4)                                  
 80227d4:	34 21 ff ff 	addi r1,r1,-1                                  
 80227d8:	59 61 00 04 	sw (r11+4),r1                                  
 80227dc:	4c 20 00 06 	bge r1,r0,80227f4 <scanInt+0x88>               <== ALWAYS TAKEN
 80227e0:	2a 21 00 00 	lw r1,(r17+0)                                  <== NOT EXECUTED
 80227e4:	b9 60 10 00 	mv r2,r11                                      <== NOT EXECUTED
 80227e8:	f8 00 6d c5 	calli 803defc <__srget_r>                      <== NOT EXECUTED
 80227ec:	b8 20 78 00 	mv r15,r1                                      <== NOT EXECUTED
 80227f0:	e0 00 00 05 	bi 8022804 <scanInt+0x98>                      <== NOT EXECUTED
 80227f4:	29 61 00 00 	lw r1,(r11+0)                                  
 80227f8:	40 2f 00 00 	lbu r15,(r1+0)                                 
 80227fc:	34 21 00 01 	addi r1,r1,1                                   
 8022800:	59 61 00 00 	sw (r11+0),r1                                  
    if (c == ':')                                                     
 8022804:	45 f4 00 1f 	be r15,r20,8022880 <scanInt+0x114>             
      break;                                                          
    if (sign == 0) {                                                  
 8022808:	5d a0 00 06 	bne r13,r0,8022820 <scanInt+0xb4>              
      if (c == '-') {                                                 
        sign = -1;                                                    
        limit++;                                                      
        continue;                                                     
      }                                                               
      sign = 1;                                                       
 802280c:	34 0d 00 01 	mvi r13,1                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
    if (c == ':')                                                     
      break;                                                          
    if (sign == 0) {                                                  
      if (c == '-') {                                                 
 8022810:	5d f3 00 04 	bne r15,r19,8022820 <scanInt+0xb4>             
        sign = -1;                                                    
        limit++;                                                      
 8022814:	35 ce 00 01 	addi r14,r14,1                                 
    c = getc(fp);                                                     
    if (c == ':')                                                     
      break;                                                          
    if (sign == 0) {                                                  
      if (c == '-') {                                                 
        sign = -1;                                                    
 8022818:	34 0d ff ff 	mvi r13,-1                                     
        limit++;                                                      
        continue;                                                     
 802281c:	e3 ff ff ed 	bi 80227d0 <scanInt+0x64>                      
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
 8022820:	2a 01 00 00 	lw r1,(r16+0)                                  
 8022824:	b4 2f 08 00 	add r1,r1,r15                                  
 8022828:	40 21 00 01 	lbu r1,(r1+1)                                  
 802282c:	20 21 00 04 	andi r1,r1,0x4                                 
 8022830:	44 20 00 1c 	be r1,r0,80228a0 <scanInt+0x134>               
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
 8022834:	b9 c0 08 00 	mv r1,r14                                      
 8022838:	34 02 00 0a 	mvi r2,10                                      
 802283c:	f8 00 d3 92 	calli 8057684 <__udivsi3>                      
 8022840:	55 81 00 18 	bgu r12,r1,80228a0 <scanInt+0x134>             
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
      return 0;                                                       
    d = c - '0';                                                      
 8022844:	35 ef ff d0 	addi r15,r15,-48                               
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
 8022848:	5d 81 00 05 	bne r12,r1,802285c <scanInt+0xf0>              
 802284c:	b9 c0 08 00 	mv r1,r14                                      
 8022850:	34 02 00 0a 	mvi r2,10                                      
 8022854:	f8 00 d3 9c 	calli 80576c4 <__umodsi3>                      
 8022858:	55 e1 00 12 	bgu r15,r1,80228a0 <scanInt+0x134>             <== ALWAYS TAKEN
      return 0;                                                       
    i = i * 10 + d;                                                   
 802285c:	b9 80 08 00 	mv r1,r12                                      
 8022860:	34 02 00 01 	mvi r2,1                                       
 8022864:	fb ff 76 65 	calli 80001f8 <__ashlsi3>                      
 8022868:	34 02 00 02 	mvi r2,2                                       
 802286c:	b8 20 60 00 	mv r12,r1                                      
 8022870:	fb ff 76 62 	calli 80001f8 <__ashlsi3>                      
 8022874:	b5 81 08 00 	add r1,r12,r1                                  
 8022878:	b5 e1 60 00 	add r12,r15,r1                                 
 802287c:	e3 ff ff d5 	bi 80227d0 <scanInt+0x64>                      
  }                                                                   
  if (sign == 0)                                                      
    return 0;                                                         
 8022880:	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)                                                      
 8022884:	45 a0 00 08 	be r13,r0,80228a4 <scanInt+0x138>              <== NEVER TAKEN
    return 0;                                                         
  *val = i * sign;                                                    
 8022888:	b9 a0 08 00 	mv r1,r13                                      
 802288c:	b9 80 10 00 	mv r2,r12                                      
 8022890:	f8 00 d3 18 	calli 80574f0 <__mulsi3>                       
 8022894:	5a 41 00 00 	sw (r18+0),r1                                  
  return 1;                                                           
 8022898:	34 03 00 01 	mvi r3,1                                       
 802289c:	e0 00 00 02 	bi 80228a4 <scanInt+0x138>                     
    if (!isdigit(c))                                                  
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
      return 0;                                                       
 80228a0:	34 03 00 00 	mvi r3,0                                       
  }                                                                   
  if (sign == 0)                                                      
    return 0;                                                         
  *val = i * sign;                                                    
  return 1;                                                           
}                                                                     
 80228a4:	b8 60 08 00 	mv r1,r3                                       
 80228a8:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80228ac:	2b 8b 00 2c 	lw r11,(sp+44)                                 
 80228b0:	2b 8c 00 28 	lw r12,(sp+40)                                 
 80228b4:	2b 8d 00 24 	lw r13,(sp+36)                                 
 80228b8:	2b 8e 00 20 	lw r14,(sp+32)                                 
 80228bc:	2b 8f 00 1c 	lw r15,(sp+28)                                 
 80228c0:	2b 90 00 18 	lw r16,(sp+24)                                 
 80228c4:	2b 91 00 14 	lw r17,(sp+20)                                 
 80228c8:	2b 92 00 10 	lw r18,(sp+16)                                 
 80228cc:	2b 93 00 0c 	lw r19,(sp+12)                                 
 80228d0:	2b 94 00 08 	lw r20,(sp+8)                                  
 80228d4:	37 9c 00 2c 	addi sp,sp,44                                  
 80228d8:	c3 a0 00 00 	ret                                            
                                                                      

08022a14 <scangr>: FILE *fp, struct group *grp, char *buffer, size_t bufsize ) {
 8022a14:	37 9c ff d8 	addi sp,sp,-40                                 
 8022a18:	5b 8b 00 18 	sw (sp+24),r11                                 
 8022a1c:	5b 8c 00 14 	sw (sp+20),r12                                 
 8022a20:	5b 8d 00 10 	sw (sp+16),r13                                 
 8022a24:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8022a28:	5b 8f 00 08 	sw (sp+8),r15                                  
 8022a2c:	5b 9d 00 04 	sw (sp+4),ra                                   
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
 8022a30:	37 8e 00 20 	addi r14,sp,32                                 
 8022a34:	37 8d 00 1c 	addi r13,sp,28                                 
  FILE *fp,                                                           
  struct group *grp,                                                  
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
 8022a38:	5b 83 00 20 	sw (sp+32),r3                                  
 8022a3c:	5b 84 00 1c 	sw (sp+28),r4                                  
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
 8022a40:	b9 c0 18 00 	mv r3,r14                                      
 8022a44:	b9 a0 20 00 	mv r4,r13                                      
 8022a48:	34 05 00 00 	mvi r5,0                                       
  FILE *fp,                                                           
  struct group *grp,                                                  
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
 8022a4c:	b8 20 78 00 	mv r15,r1                                      
 8022a50:	b8 40 58 00 	mv r11,r2                                      
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
 8022a54:	fb ff ff a2 	calli 80228dc <scanString>                     
   || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)          
   || !scanInt(fp, &grgid)                                            
   || !scanString(fp, &grmem, &buffer, &bufsize, 1))                  
    return 0;                                                         
 8022a58:	34 0c 00 00 	mvi r12,0                                      
{                                                                     
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
 8022a5c:	44 20 00 43 	be r1,r0,8022b68 <scangr+0x154>                
   || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)          
 8022a60:	b9 e0 08 00 	mv r1,r15                                      
 8022a64:	35 62 00 04 	addi r2,r11,4                                  
 8022a68:	b9 c0 18 00 	mv r3,r14                                      
 8022a6c:	b9 a0 20 00 	mv r4,r13                                      
 8022a70:	34 05 00 00 	mvi r5,0                                       
 8022a74:	fb ff ff 9a 	calli 80228dc <scanString>                     
 8022a78:	44 20 00 3c 	be r1,r0,8022b68 <scangr+0x154>                <== NEVER TAKEN
   || !scanInt(fp, &grgid)                                            
 8022a7c:	b9 e0 08 00 	mv r1,r15                                      
 8022a80:	37 82 00 28 	addi r2,sp,40                                  
 8022a84:	fb ff ff 3a 	calli 802276c <scanInt>                        
 8022a88:	44 20 00 38 	be r1,r0,8022b68 <scangr+0x154>                <== NEVER TAKEN
   || !scanString(fp, &grmem, &buffer, &bufsize, 1))                  
 8022a8c:	b9 e0 08 00 	mv r1,r15                                      
 8022a90:	37 82 00 24 	addi r2,sp,36                                  
 8022a94:	b9 c0 18 00 	mv r3,r14                                      
 8022a98:	b9 a0 20 00 	mv r4,r13                                      
 8022a9c:	34 05 00 01 	mvi r5,1                                       
 8022aa0:	fb ff ff 8f 	calli 80228dc <scanString>                     
 8022aa4:	44 20 00 31 	be r1,r0,8022b68 <scangr+0x154>                <== NEVER TAKEN
    return 0;                                                         
  grp->gr_gid = grgid;                                                
 8022aa8:	2b 81 00 28 	lw r1,(sp+40)                                  
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
 8022aac:	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;                                                
 8022ab0:	0d 61 00 08 	sh (r11+8),r1                                  
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
 8022ab4:	b9 a0 10 00 	mv r2,r13                                      
 8022ab8:	34 01 00 01 	mvi r1,1                                       
 8022abc:	e0 00 00 04 	bi 8022acc <scangr+0xb8>                       
    if(*cp == ',')                                                    
      memcount++;                                                     
 8022ac0:	64 63 00 2c 	cmpei r3,r3,44                                 
  grp->gr_gid = grgid;                                                
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
 8022ac4:	34 42 00 01 	addi r2,r2,1                                   
    if(*cp == ',')                                                    
      memcount++;                                                     
 8022ac8:	b4 23 08 00 	add r1,r1,r3                                   
  grp->gr_gid = grgid;                                                
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
 8022acc:	40 43 00 00 	lbu r3,(r2+0)                                  
 8022ad0:	5c 60 ff fc 	bne r3,r0,8022ac0 <scangr+0xac>                
  }                                                                   
                                                                      
  /*                                                                  
   * Hack to produce (hopefully) a suitably-aligned array of pointers 
   */                                                                 
  if (bufsize < (((memcount+1)*sizeof(char *)) + 15))                 
 8022ad4:	34 02 00 02 	mvi r2,2                                       
 8022ad8:	34 21 00 01 	addi r1,r1,1                                   
 8022adc:	fb ff 75 c7 	calli 80001f8 <__ashlsi3>                      
 8022ae0:	2b 82 00 1c 	lw r2,(sp+28)                                  
 8022ae4:	34 21 00 0f 	addi r1,r1,15                                  
    return 0;                                                         
 8022ae8:	34 0c 00 00 	mvi r12,0                                      
  }                                                                   
                                                                      
  /*                                                                  
   * Hack to produce (hopefully) a suitably-aligned array of pointers 
   */                                                                 
  if (bufsize < (((memcount+1)*sizeof(char *)) + 15))                 
 8022aec:	54 22 00 1f 	bgu r1,r2,8022b68 <scangr+0x154>               <== NEVER TAKEN
    return 0;                                                         
  grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15);            
 8022af0:	2b 81 00 20 	lw r1,(sp+32)                                  
 8022af4:	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 == ',') {                                                  
 8022af8:	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);            
 8022afc:	34 21 00 0f 	addi r1,r1,15                                  
 8022b00:	a0 22 08 00 	and r1,r1,r2                                   
 8022b04:	59 61 00 0c 	sw (r11+12),r1                                 
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
 8022b08:	58 2d 00 00 	sw (r1+0),r13                                  
}                                                                     
                                                                      
/**                                                                   
 *  Extract a single group record from the database                   
 */                                                                   
static int scangr(                                                    
 8022b0c:	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++) {                  
 8022b10:	34 0d 00 01 	mvi r13,1                                      
}                                                                     
                                                                      
/**                                                                   
 *  Extract a single group record from the database                   
 */                                                                   
static int scangr(                                                    
 8022b14:	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++) {                  
 8022b18:	e0 00 00 0b 	bi 8022b44 <scangr+0x130>                      
    if(*cp == ',') {                                                  
 8022b1c:	5c 2e 00 09 	bne r1,r14,8022b40 <scangr+0x12c>              
      *cp = '\0';                                                     
 8022b20:	31 80 ff ff 	sb (r12+-1),r0                                 
      grp->gr_mem[memcount++] = cp + 1;                               
 8022b24:	29 6f 00 0c 	lw r15,(r11+12)                                
 8022b28:	b9 a0 08 00 	mv r1,r13                                      
 8022b2c:	34 02 00 02 	mvi r2,2                                       
 8022b30:	fb ff 75 b2 	calli 80001f8 <__ashlsi3>                      
 8022b34:	b5 e1 08 00 	add r1,r15,r1                                  
 8022b38:	58 2c 00 00 	sw (r1+0),r12                                  
 8022b3c:	35 ad 00 01 	addi r13,r13,1                                 
 8022b40:	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++) {                  
 8022b44:	41 81 ff ff 	lbu r1,(r12+-1)                                
 8022b48:	5c 20 ff f5 	bne r1,r0,8022b1c <scangr+0x108>               
    if(*cp == ',') {                                                  
      *cp = '\0';                                                     
      grp->gr_mem[memcount++] = cp + 1;                               
    }                                                                 
  }                                                                   
  grp->gr_mem[memcount] = NULL;                                       
 8022b4c:	29 6b 00 0c 	lw r11,(r11+12)                                
 8022b50:	b9 a0 08 00 	mv r1,r13                                      
 8022b54:	34 02 00 02 	mvi r2,2                                       
 8022b58:	fb ff 75 a8 	calli 80001f8 <__ashlsi3>                      
 8022b5c:	b5 61 08 00 	add r1,r11,r1                                  
 8022b60:	58 20 00 00 	sw (r1+0),r0                                   
  return 1;                                                           
 8022b64:	34 0c 00 01 	mvi r12,1                                      
}                                                                     
 8022b68:	b9 80 08 00 	mv r1,r12                                      
 8022b6c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8022b70:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8022b74:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8022b78:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8022b7c:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8022b80:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8022b84:	37 9c 00 28 	addi sp,sp,40                                  
 8022b88:	c3 a0 00 00 	ret                                            
                                                                      

08022b8c <scanpw>: FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) {
 8022b8c:	37 9c ff d8 	addi sp,sp,-40                                 
 8022b90:	5b 8b 00 18 	sw (sp+24),r11                                 
 8022b94:	5b 8c 00 14 	sw (sp+20),r12                                 
 8022b98:	5b 8d 00 10 	sw (sp+16),r13                                 
 8022b9c:	5b 8e 00 0c 	sw (sp+12),r14                                 
 8022ba0:	5b 8f 00 08 	sw (sp+8),r15                                  
 8022ba4:	5b 9d 00 04 	sw (sp+4),ra                                   
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
 8022ba8:	37 8e 00 20 	addi r14,sp,32                                 
 8022bac:	37 8d 00 1c 	addi r13,sp,28                                 
  FILE *fp,                                                           
  struct passwd *pwd,                                                 
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
 8022bb0:	5b 83 00 20 	sw (sp+32),r3                                  
 8022bb4:	5b 84 00 1c 	sw (sp+28),r4                                  
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
 8022bb8:	b9 c0 18 00 	mv r3,r14                                      
 8022bbc:	b9 a0 20 00 	mv r4,r13                                      
 8022bc0:	34 05 00 00 	mvi r5,0                                       
  FILE *fp,                                                           
  struct passwd *pwd,                                                 
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
 8022bc4:	b8 20 60 00 	mv r12,r1                                      
 8022bc8:	b8 40 58 00 	mv r11,r2                                      
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
 8022bcc:	fb ff ff 44 	calli 80228dc <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;                                                         
 8022bd0:	34 0f 00 00 	mvi r15,0                                      
  size_t bufsize                                                      
)                                                                     
{                                                                     
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
 8022bd4:	44 20 00 31 	be r1,r0,8022c98 <scanpw+0x10c>                
   || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)          
 8022bd8:	b9 80 08 00 	mv r1,r12                                      
 8022bdc:	35 62 00 04 	addi r2,r11,4                                  
 8022be0:	b9 c0 18 00 	mv r3,r14                                      
 8022be4:	b9 a0 20 00 	mv r4,r13                                      
 8022be8:	34 05 00 00 	mvi r5,0                                       
 8022bec:	fb ff ff 3c 	calli 80228dc <scanString>                     
 8022bf0:	44 20 00 2a 	be r1,r0,8022c98 <scanpw+0x10c>                <== NEVER TAKEN
   || !scanInt(fp, &pwuid)                                            
 8022bf4:	b9 80 08 00 	mv r1,r12                                      
 8022bf8:	37 82 00 28 	addi r2,sp,40                                  
 8022bfc:	fb ff fe dc 	calli 802276c <scanInt>                        
 8022c00:	44 20 00 26 	be r1,r0,8022c98 <scanpw+0x10c>                
   || !scanInt(fp, &pwgid)                                            
 8022c04:	b9 80 08 00 	mv r1,r12                                      
 8022c08:	37 82 00 24 	addi r2,sp,36                                  
 8022c0c:	fb ff fe d8 	calli 802276c <scanInt>                        
 8022c10:	44 20 00 22 	be r1,r0,8022c98 <scanpw+0x10c>                
   || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)         
 8022c14:	b9 80 08 00 	mv r1,r12                                      
 8022c18:	35 62 00 0c 	addi r2,r11,12                                 
 8022c1c:	b9 c0 18 00 	mv r3,r14                                      
 8022c20:	b9 a0 20 00 	mv r4,r13                                      
 8022c24:	34 05 00 00 	mvi r5,0                                       
 8022c28:	fb ff ff 2d 	calli 80228dc <scanString>                     
 8022c2c:	44 20 00 1b 	be r1,r0,8022c98 <scanpw+0x10c>                <== NEVER TAKEN
   || !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0)           
 8022c30:	b9 80 08 00 	mv r1,r12                                      
 8022c34:	35 62 00 10 	addi r2,r11,16                                 
 8022c38:	b9 c0 18 00 	mv r3,r14                                      
 8022c3c:	b9 a0 20 00 	mv r4,r13                                      
 8022c40:	34 05 00 00 	mvi r5,0                                       
 8022c44:	fb ff ff 26 	calli 80228dc <scanString>                     
 8022c48:	44 20 00 14 	be r1,r0,8022c98 <scanpw+0x10c>                <== NEVER TAKEN
   || !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0)             
 8022c4c:	b9 80 08 00 	mv r1,r12                                      
 8022c50:	35 62 00 14 	addi r2,r11,20                                 
 8022c54:	b9 c0 18 00 	mv r3,r14                                      
 8022c58:	b9 a0 20 00 	mv r4,r13                                      
 8022c5c:	34 05 00 00 	mvi r5,0                                       
 8022c60:	fb ff ff 1f 	calli 80228dc <scanString>                     
 8022c64:	44 20 00 0d 	be r1,r0,8022c98 <scanpw+0x10c>                <== NEVER TAKEN
   || !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1))          
 8022c68:	b9 80 08 00 	mv r1,r12                                      
 8022c6c:	35 62 00 18 	addi r2,r11,24                                 
 8022c70:	b9 c0 18 00 	mv r3,r14                                      
 8022c74:	b9 a0 20 00 	mv r4,r13                                      
 8022c78:	34 05 00 01 	mvi r5,1                                       
 8022c7c:	fb ff ff 18 	calli 80228dc <scanString>                     
 8022c80:	44 20 00 06 	be r1,r0,8022c98 <scanpw+0x10c>                
    return 0;                                                         
  pwd->pw_uid = pwuid;                                                
 8022c84:	2b 81 00 28 	lw r1,(sp+40)                                  
  pwd->pw_gid = pwgid;                                                
  return 1;                                                           
 8022c88:	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;                                                
 8022c8c:	0d 61 00 08 	sh (r11+8),r1                                  
  pwd->pw_gid = pwgid;                                                
 8022c90:	2b 81 00 24 	lw r1,(sp+36)                                  
 8022c94:	0d 61 00 0a 	sh (r11+10),r1                                 
  return 1;                                                           
}                                                                     
 8022c98:	b9 e0 08 00 	mv r1,r15                                      
 8022c9c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8022ca0:	2b 8b 00 18 	lw r11,(sp+24)                                 
 8022ca4:	2b 8c 00 14 	lw r12,(sp+20)                                 
 8022ca8:	2b 8d 00 10 	lw r13,(sp+16)                                 
 8022cac:	2b 8e 00 0c 	lw r14,(sp+12)                                 
 8022cb0:	2b 8f 00 08 	lw r15,(sp+8)                                  
 8022cb4:	37 9c 00 28 	addi sp,sp,40                                  
 8022cb8:	c3 a0 00 00 	ret                                            
                                                                      

08005154 <siproc>: /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) {
 8005154:	37 9c ff f4 	addi sp,sp,-12                                 
 8005158:	5b 8b 00 0c 	sw (sp+12),r11                                 
 800515c:	5b 8c 00 08 	sw (sp+8),r12                                  
 8005160:	5b 9d 00 04 	sw (sp+4),ra                                   
 8005164:	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)) {
 8005168:	28 41 00 3c 	lw r1,(r2+60)                                  
/*                                                                    
 * Process input character, with semaphore.                           
 */                                                                   
static int                                                            
siproc (unsigned char c, struct rtems_termios_tty *tty)               
{                                                                     
 800516c:	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)) {
 8005170:	20 21 0e 78 	andi r1,r1,0xe78                               
 8005174:	44 20 00 0c 	be r1,r0,80051a4 <siproc+0x50>                 <== NEVER TAKEN
    rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 
 8005178:	28 41 00 18 	lw r1,(r2+24)                                  
 800517c:	34 03 00 00 	mvi r3,0                                       
 8005180:	34 02 00 00 	mvi r2,0                                       
 8005184:	f8 00 04 ee 	calli 800653c <rtems_semaphore_obtain>         
    i = iproc (c, tty);                                               
 8005188:	b9 80 08 00 	mv r1,r12                                      
 800518c:	b9 60 10 00 	mv r2,r11                                      
 8005190:	fb ff ff 84 	calli 8004fa0 <iproc>                          
 8005194:	b8 20 60 00 	mv r12,r1                                      
    rtems_semaphore_release (tty->osem);                              
 8005198:	29 61 00 18 	lw r1,(r11+24)                                 
 800519c:	f8 00 05 38 	calli 800667c <rtems_semaphore_release>        
 80051a0:	e0 00 00 04 	bi 80051b0 <siproc+0x5c>                       
  }                                                                   
  else {                                                              
    i = iproc (c, tty);                                               
 80051a4:	b9 80 08 00 	mv r1,r12                                      <== NOT EXECUTED
 80051a8:	fb ff ff 7e 	calli 8004fa0 <iproc>                          <== NOT EXECUTED
 80051ac:	b8 20 60 00 	mv r12,r1                                      <== NOT EXECUTED
  }                                                                   
  return i;                                                           
}                                                                     
 80051b0:	b9 80 08 00 	mv r1,r12                                      
 80051b4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80051b8:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 80051bc:	2b 8c 00 08 	lw r12,(sp+8)                                  
 80051c0:	37 9c 00 0c 	addi sp,sp,12                                  
 80051c4:	c3 a0 00 00 	ret                                            
                                                                      

0800b198 <sparse_disk_ioctl>: /* * ioctl handler to be passed to the block device handler */ static int sparse_disk_ioctl( rtems_disk_device *dd, uint32_t req, void *argp ) {
 800b198:	37 9c ff b4 	addi sp,sp,-76                                 
 800b19c:	5b 8b 00 44 	sw (sp+68),r11                                 
 800b1a0:	5b 8c 00 40 	sw (sp+64),r12                                 
 800b1a4:	5b 8d 00 3c 	sw (sp+60),r13                                 
 800b1a8:	5b 8e 00 38 	sw (sp+56),r14                                 
 800b1ac:	5b 8f 00 34 	sw (sp+52),r15                                 
 800b1b0:	5b 90 00 30 	sw (sp+48),r16                                 
 800b1b4:	5b 91 00 2c 	sw (sp+44),r17                                 
 800b1b8:	5b 92 00 28 	sw (sp+40),r18                                 
 800b1bc:	5b 93 00 24 	sw (sp+36),r19                                 
 800b1c0:	5b 94 00 20 	sw (sp+32),r20                                 
 800b1c4:	5b 95 00 1c 	sw (sp+28),r21                                 
 800b1c8:	5b 96 00 18 	sw (sp+24),r22                                 
 800b1cc:	5b 97 00 14 	sw (sp+20),r23                                 
 800b1d0:	5b 98 00 10 	sw (sp+16),r24                                 
 800b1d4:	5b 99 00 0c 	sw (sp+12),r25                                 
 800b1d8:	5b 9b 00 08 	sw (sp+8),fp                                   
 800b1dc:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_status_code  sc;                                              
  rtems_sparse_disk *sd = rtems_disk_get_driver_data( dd );           
                                                                      
  if ( RTEMS_BLKIO_REQUEST == req ) {                                 
 800b1e0:	78 06 08 02 	mvhi r6,0x802                                  
 800b1e4:	38 c6 d3 88 	ori r6,r6,0xd388                               
 800b1e8:	28 c5 00 00 	lw r5,(r6+0)                                   
                                                                      
/*                                                                    
 * ioctl handler to be passed to the block device handler             
 */                                                                   
static int sparse_disk_ioctl( rtems_disk_device *dd, uint32_t req, void *argp )
{                                                                     
 800b1ec:	b8 60 70 00 	mv r14,r3                                      
  rtems_status_code  sc;                                              
  rtems_sparse_disk *sd = rtems_disk_get_driver_data( dd );           
 800b1f0:	28 2b 00 3c 	lw r11,(r1+60)                                 
                                                                      
  if ( RTEMS_BLKIO_REQUEST == req ) {                                 
 800b1f4:	5c 45 00 73 	bne r2,r5,800b3c0 <sparse_disk_ioctl+0x228>    
    rtems_blkdev_request *r = argp;                                   
                                                                      
    switch ( r->req ) {                                               
 800b1f8:	28 78 00 00 	lw r24,(r3+0)                                  
 800b1fc:	34 01 00 01 	mvi r1,1                                       
 800b200:	57 01 00 85 	bgu r24,r1,800b414 <sparse_disk_ioctl+0x27c>   <== NEVER TAKEN
  rtems_blkdev_bnum       block;                                      
  uint8_t                *buff;                                       
  size_t                  buff_size;                                  
  unsigned int            bytes_handled;                              
                                                                      
  rtems_semaphore_obtain( sparse_disk->mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
 800b204:	29 61 00 00 	lw r1,(r11+0)                                  
 800b208:	34 02 00 00 	mvi r2,0                                       
 800b20c:	34 03 00 00 	mvi r3,0                                       
                                                                      
  /* we only need to write the block if it is different from the fill pattern.
   * If the read method does not find a block it will deliver the fill pattern anyway.
   */                                                                 
                                                                      
  key = bsearch(                                                      
 800b210:	78 0f 08 00 	mvhi r15,0x800                                 
  rtems_blkdev_bnum       block;                                      
  uint8_t                *buff;                                       
  size_t                  buff_size;                                  
  unsigned int            bytes_handled;                              
                                                                      
  rtems_semaphore_obtain( sparse_disk->mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
 800b214:	fb ff e9 98 	calli 8005874 <rtems_semaphore_obtain>         
 800b218:	b9 c0 80 00 	mv r16,r14                                     
static int sparse_disk_read_write(                                    
  rtems_sparse_disk    *sparse_disk,                                  
  rtems_blkdev_request *req,                                          
  const bool            read )                                        
{                                                                     
  int                     rv = 0;                                     
 800b21c:	34 0c 00 00 	mvi r12,0                                      
  size_t                  buff_size;                                  
  unsigned int            bytes_handled;                              
                                                                      
  rtems_semaphore_obtain( sparse_disk->mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
                                                                      
  for ( req_buffer = 0;                                               
 800b220:	34 14 00 00 	mvi r20,0                                      
                                                                      
  /* we only need to write the block if it is different from the fill pattern.
   * If the read method does not find a block it will deliver the fill pattern anyway.
   */                                                                 
                                                                      
  key = bsearch(                                                      
 800b224:	37 97 00 48 	addi r23,sp,72                                 
 800b228:	39 ef b1 80 	ori r15,r15,0xb180                             
 800b22c:	e0 00 00 58 	bi 800b38c <sparse_disk_ioctl+0x1f4>           
        ( 0 <= rv ) && ( req_buffer < req->bufnum );                  
        ++req_buffer ) {                                              
    scatter_gather = &req->bufs[req_buffer];                          
                                                                      
    bytes_handled  = 0;                                               
    buff           = (uint8_t *) scatter_gather->buffer;              
 800b230:	2a 19 00 20 	lw r25,(r16+32)                                
    block          = scatter_gather->block;                           
 800b234:	2a 11 00 18 	lw r17,(r16+24)                                
    buff_size      = scatter_gather->length;                          
 800b238:	2a 0d 00 1c 	lw r13,(r16+28)                                
  for ( req_buffer = 0;                                               
        ( 0 <= rv ) && ( req_buffer < req->bufnum );                  
        ++req_buffer ) {                                              
    scatter_gather = &req->bufs[req_buffer];                          
                                                                      
    bytes_handled  = 0;                                               
 800b23c:	34 15 00 00 	mvi r21,0                                      
 800b240:	e0 00 00 4a 	bi 800b368 <sparse_disk_ioctl+0x1d0>           
 800b244:	b7 35 98 00 	add r19,r25,r21                                
    buff           = (uint8_t *) scatter_gather->buffer;              
    block          = scatter_gather->block;                           
    buff_size      = scatter_gather->length;                          
                                                                      
    while ( ( 0 <= rv ) && ( 0 < buff_size ) ) {                      
      if ( read )                                                     
 800b248:	5f 00 00 19 	bne r24,r0,800b2ac <sparse_disk_ioctl+0x114>   
  const rtems_blkdev_bnum  block,                                     
  uint8_t                 *buffer,                                    
  const size_t             buffer_size )                              
{                                                                     
  rtems_sparse_disk_key *key;                                         
  rtems_sparse_disk_key  block_key = {                                
 800b24c:	5b 91 00 48 	sw (sp+72),r17                                 
    .block = block,                                                   
    .data  = NULL                                                     
  };                                                                  
  size_t                 bytes_to_copy = sparse_disk->media_block_size;
 800b250:	29 61 00 0c 	lw r1,(r11+12)                                 
  const rtems_blkdev_bnum  block,                                     
  uint8_t                 *buffer,                                    
  const size_t             buffer_size )                              
{                                                                     
  rtems_sparse_disk_key *key;                                         
  rtems_sparse_disk_key  block_key = {                                
 800b254:	5b 80 00 4c 	sw (sp+76),r0                                  
    .block = block,                                                   
    .data  = NULL                                                     
  };                                                                  
  size_t                 bytes_to_copy = sparse_disk->media_block_size;
 800b258:	b9 a0 60 00 	mv r12,r13                                     
 800b25c:	50 2d 00 02 	bgeu r1,r13,800b264 <sparse_disk_ioctl+0xcc>   
 800b260:	b8 20 60 00 	mv r12,r1                                      
                                                                      
  if ( buffer_size < bytes_to_copy )                                  
    bytes_to_copy = buffer_size;                                      
                                                                      
  key = bsearch(                                                      
 800b264:	29 62 00 18 	lw r2,(r11+24)                                 
 800b268:	29 63 00 08 	lw r3,(r11+8)                                  
 800b26c:	ba e0 08 00 	mv r1,r23                                      
 800b270:	34 04 00 08 	mvi r4,8                                       
 800b274:	b9 e0 28 00 	mv r5,r15                                      
 800b278:	f8 00 39 b2 	calli 8019940 <bsearch>                        
 800b27c:	b8 20 10 00 	mv r2,r1                                       
    sparse_disk->used_count,                                          
    sizeof( rtems_sparse_disk_key ),                                  
    sparse_disk_compare                                               
    );                                                                
                                                                      
  if ( NULL != key )                                                  
 800b280:	44 20 00 06 	be r1,r0,800b298 <sparse_disk_ioctl+0x100>     
    memcpy( buffer, key->data, bytes_to_copy );                       
 800b284:	28 42 00 04 	lw r2,(r2+4)                                   
 800b288:	ba 60 08 00 	mv r1,r19                                      
 800b28c:	b9 80 18 00 	mv r3,r12                                      
 800b290:	f8 00 3d 2d 	calli 801a744 <memcpy>                         
 800b294:	e0 00 00 32 	bi 800b35c <sparse_disk_ioctl+0x1c4>           
  else                                                                
    memset( buffer, sparse_disk->fill_pattern, buffer_size );         
 800b298:	41 62 00 14 	lbu r2,(r11+20)                                
 800b29c:	ba 60 08 00 	mv r1,r19                                      
 800b2a0:	b9 a0 18 00 	mv r3,r13                                      
 800b2a4:	f8 00 3d 69 	calli 801a848 <memset>                         
 800b2a8:	e0 00 00 2d 	bi 800b35c <sparse_disk_ioctl+0x1c4>           
  const size_t            buffer_size )                               
{                                                                     
  unsigned int           i;                                           
  bool                   block_needs_writing = false;                 
  rtems_sparse_disk_key *key;                                         
  rtems_sparse_disk_key  block_key           = {                      
 800b2ac:	5b 91 00 48 	sw (sp+72),r17                                 
    .block = block,                                                   
    .data  = NULL                                                     
  };                                                                  
  size_t                 bytes_to_copy = sparse_disk->media_block_size;
 800b2b0:	29 61 00 0c 	lw r1,(r11+12)                                 
  const size_t            buffer_size )                               
{                                                                     
  unsigned int           i;                                           
  bool                   block_needs_writing = false;                 
  rtems_sparse_disk_key *key;                                         
  rtems_sparse_disk_key  block_key           = {                      
 800b2b4:	5b 80 00 4c 	sw (sp+76),r0                                  
    .block = block,                                                   
    .data  = NULL                                                     
  };                                                                  
  size_t                 bytes_to_copy = sparse_disk->media_block_size;
 800b2b8:	b9 a0 90 00 	mv r18,r13                                     
 800b2bc:	50 2d 00 02 	bgeu r1,r13,800b2c4 <sparse_disk_ioctl+0x12c>  
 800b2c0:	b8 20 90 00 	mv r18,r1                                      
                                                                      
  /* we only need to write the block if it is different from the fill pattern.
   * If the read method does not find a block it will deliver the fill pattern anyway.
   */                                                                 
                                                                      
  key = bsearch(                                                      
 800b2c4:	29 62 00 18 	lw r2,(r11+24)                                 
 800b2c8:	29 63 00 08 	lw r3,(r11+8)                                  
 800b2cc:	ba e0 08 00 	mv r1,r23                                      
 800b2d0:	34 04 00 08 	mvi r4,8                                       
 800b2d4:	b9 e0 28 00 	mv r5,r15                                      
 800b2d8:	f8 00 39 9a 	calli 8019940 <bsearch>                        
 800b2dc:	b8 20 60 00 	mv r12,r1                                      
    sparse_disk->used_count,                                          
    sizeof( rtems_sparse_disk_key ),                                  
    sparse_disk_compare                                               
    );                                                                
                                                                      
  if ( NULL == key ) {                                                
 800b2e0:	34 02 00 00 	mvi r2,0                                       
 800b2e4:	5c 20 00 19 	bne r1,r0,800b348 <sparse_disk_ioctl+0x1b0>    
 800b2e8:	e0 00 00 06 	bi 800b300 <sparse_disk_ioctl+0x168>           
}                                                                     
                                                                      
/*                                                                    
 * ioctl handler to be passed to the block device handler             
 */                                                                   
static int sparse_disk_ioctl( rtems_disk_device *dd, uint32_t req, void *argp )
 800b2ec:	b6 62 08 00 	add r1,r19,r2                                  
    sizeof( rtems_sparse_disk_key ),                                  
    sparse_disk_compare                                               
    );                                                                
                                                                      
  if ( NULL == key ) {                                                
    for ( i = 0; ( !block_needs_writing ) && ( i < bytes_to_copy ); ++i ) {
 800b2f0:	40 23 00 00 	lbu r3,(r1+0)                                  
 800b2f4:	41 61 00 14 	lbu r1,(r11+20)                                
 800b2f8:	5c 61 00 04 	bne r3,r1,800b308 <sparse_disk_ioctl+0x170>    
 800b2fc:	34 42 00 01 	addi r2,r2,1                                   
 800b300:	56 42 ff fb 	bgu r18,r2,800b2ec <sparse_disk_ioctl+0x154>   
 800b304:	e0 00 00 15 	bi 800b358 <sparse_disk_ioctl+0x1c0>           
  rtems_sparse_disk      *sparse_disk,                                
  const rtems_blkdev_bnum block )                                     
{                                                                     
  rtems_sparse_disk_key *key;                                         
                                                                      
  if ( sparse_disk->used_count < sparse_disk->blocks_with_buffer ) {  
 800b308:	29 76 00 08 	lw r22,(r11+8)                                 
 800b30c:	29 61 00 04 	lw r1,(r11+4)                                  
  }                                                                   
                                                                      
  if ( NULL != key )                                                  
    memcpy( key->data, buffer, bytes_to_copy );                       
  else if ( block_needs_writing )                                     
    return -1;                                                        
 800b310:	34 0c ff ff 	mvi r12,-1                                     
  rtems_sparse_disk      *sparse_disk,                                
  const rtems_blkdev_bnum block )                                     
{                                                                     
  rtems_sparse_disk_key *key;                                         
                                                                      
  if ( sparse_disk->used_count < sparse_disk->blocks_with_buffer ) {  
 800b314:	52 c1 00 12 	bgeu r22,r1,800b35c <sparse_disk_ioctl+0x1c4>  <== NEVER TAKEN
    key        = &sparse_disk->key_table[sparse_disk->used_count];    
 800b318:	29 7b 00 18 	lw fp,(r11+24)                                 
 800b31c:	34 02 00 03 	mvi r2,3                                       
 800b320:	ba c0 08 00 	mv r1,r22                                      
 800b324:	fb ff d7 b1 	calli 80011e8 <__ashlsi3>                      
 800b328:	b7 61 60 00 	add r12,fp,r1                                  
    key->block = block;                                               
 800b32c:	59 91 00 00 	sw (r12+0),r17                                 
    ++sparse_disk->used_count;                                        
 800b330:	36 c2 00 01 	addi r2,r22,1                                  
 800b334:	59 62 00 08 	sw (r11+8),r2                                  
    qsort( sparse_disk->key_table, sparse_disk->used_count,           
 800b338:	bb 60 08 00 	mv r1,fp                                       
 800b33c:	34 03 00 08 	mvi r3,8                                       
 800b340:	b9 e0 20 00 	mv r4,r15                                      
 800b344:	f8 00 3d a4 	calli 801a9d4 <qsort>                          
      key = sparse_disk_get_new_block( sparse_disk, block );          
    }                                                                 
  }                                                                   
                                                                      
  if ( NULL != key )                                                  
    memcpy( key->data, buffer, bytes_to_copy );                       
 800b348:	29 81 00 04 	lw r1,(r12+4)                                  
 800b34c:	ba 60 10 00 	mv r2,r19                                      
 800b350:	ba 40 18 00 	mv r3,r18                                      
 800b354:	f8 00 3c fc 	calli 801a744 <memcpy>                         
  else if ( block_needs_writing )                                     
    return -1;                                                        
                                                                      
  return bytes_to_copy;                                               
 800b358:	ba 40 60 00 	mv r12,r18                                     
        rv = sparse_disk_write_block( sparse_disk,                    
                                      block,                          
                                      &buff[bytes_handled],           
                                      buff_size );                    
                                                                      
      ++block;                                                        
 800b35c:	36 31 00 01 	addi r17,r17,1                                 
      bytes_handled += rv;                                            
 800b360:	b6 ac a8 00 	add r21,r21,r12                                
      buff_size     -= rv;                                            
 800b364:	c9 ac 68 00 	sub r13,r13,r12                                
    bytes_handled  = 0;                                               
    buff           = (uint8_t *) scatter_gather->buffer;              
    block          = scatter_gather->block;                           
    buff_size      = scatter_gather->length;                          
                                                                      
    while ( ( 0 <= rv ) && ( 0 < buff_size ) ) {                      
 800b368:	34 02 00 1f 	mvi r2,31                                      
 800b36c:	7d b2 00 00 	cmpnei r18,r13,0                               
 800b370:	a5 80 08 00 	not r1,r12                                     
 800b374:	f8 00 83 a7 	calli 802c210 <__lshrsi3>                      
 800b378:	a2 41 10 00 	and r2,r18,r1                                  
 800b37c:	5c 40 ff b2 	bne r2,r0,800b244 <sparse_disk_ioctl+0xac>     
 800b380:	36 10 00 10 	addi r16,r16,16                                
  size_t                  buff_size;                                  
  unsigned int            bytes_handled;                              
                                                                      
  rtems_semaphore_obtain( sparse_disk->mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
                                                                      
  for ( req_buffer = 0;                                               
 800b384:	48 4c 00 04 	bg r2,r12,800b394 <sparse_disk_ioctl+0x1fc>    <== NEVER TAKEN
        ( 0 <= rv ) && ( req_buffer < req->bufnum );                  
        ++req_buffer ) {                                              
 800b388:	36 94 00 01 	addi r20,r20,1                                 
  unsigned int            bytes_handled;                              
                                                                      
  rtems_semaphore_obtain( sparse_disk->mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
                                                                      
  for ( req_buffer = 0;                                               
        ( 0 <= rv ) && ( req_buffer < req->bufnum );                  
 800b38c:	29 c1 00 10 	lw r1,(r14+16)                                 
 800b390:	54 34 ff a8 	bgu r1,r20,800b230 <sparse_disk_ioctl+0x98>    
      bytes_handled += rv;                                            
      buff_size     -= rv;                                            
    }                                                                 
  }                                                                   
                                                                      
  rtems_semaphore_release( sparse_disk->mutex );                      
 800b394:	29 61 00 00 	lw r1,(r11+0)                                  
 800b398:	fb ff e9 87 	calli 80059b4 <rtems_semaphore_release>        
 800b39c:	29 c3 00 04 	lw r3,(r14+4)                                  
static inline void rtems_blkdev_request_done(                         
  rtems_blkdev_request *req,                                          
  rtems_status_code status                                            
)                                                                     
{                                                                     
  (*req->done)(req, status);                                          
 800b3a0:	b9 c0 08 00 	mv r1,r14                                      
 800b3a4:	34 02 00 00 	mvi r2,0                                       
                                                                      
  if ( 0 > rv )                                                       
 800b3a8:	4d 80 00 03 	bge r12,r0,800b3b4 <sparse_disk_ioctl+0x21c>   <== ALWAYS TAKEN
 800b3ac:	b9 c0 08 00 	mv r1,r14                                      <== NOT EXECUTED
 800b3b0:	34 02 00 1b 	mvi r2,27                                      <== NOT EXECUTED
 800b3b4:	d8 60 00 00 	call r3                                        
    rtems_blkdev_request *r = argp;                                   
                                                                      
    switch ( r->req ) {                                               
      case RTEMS_BLKDEV_REQ_READ:                                     
      case RTEMS_BLKDEV_REQ_WRITE:                                    
        return sparse_disk_read_write( sd, r, r->req == RTEMS_BLKDEV_REQ_READ );
 800b3b8:	34 0c 00 00 	mvi r12,0                                      
 800b3bc:	e0 00 00 1a 	bi 800b424 <sparse_disk_ioctl+0x28c>           
      default:                                                        
        break;                                                        
    }                                                                 
  } else if ( RTEMS_BLKIO_DELETED == req ) {                          
 800b3c0:	78 06 08 02 	mvhi r6,0x802                                  
 800b3c4:	38 c6 cd e8 	ori r6,r6,0xcde8                               
 800b3c8:	28 c5 00 00 	lw r5,(r6+0)                                   
 800b3cc:	5c 45 00 0f 	bne r2,r5,800b408 <sparse_disk_ioctl+0x270>    
    sc = rtems_semaphore_delete( sd->mutex );                         
 800b3d0:	29 61 00 00 	lw r1,(r11+0)                                  
 800b3d4:	fb ff e8 f9 	calli 80057b8 <rtems_semaphore_delete>         
                                                                      
    if ( RTEMS_SUCCESSFUL != sc )                                     
 800b3d8:	44 20 00 05 	be r1,r0,800b3ec <sparse_disk_ioctl+0x254>     <== ALWAYS TAKEN
      rtems_fatal_error_occurred( 0xdeadbeef );                       
 800b3dc:	78 02 08 02 	mvhi r2,0x802                                  <== NOT EXECUTED
 800b3e0:	38 42 cd ec 	ori r2,r2,0xcdec                               <== NOT EXECUTED
 800b3e4:	28 41 00 00 	lw r1,(r2+0)                                   <== NOT EXECUTED
 800b3e8:	fb ff ea 94 	calli 8005e38 <rtems_fatal_error_occurred>     <== NOT EXECUTED
                                                                      
    sd->mutex = RTEMS_ID_NONE;                                        
                                                                      
    if ( NULL != sd->delete_handler )                                 
 800b3ec:	29 62 00 10 	lw r2,(r11+16)                                 
    sc = rtems_semaphore_delete( sd->mutex );                         
                                                                      
    if ( RTEMS_SUCCESSFUL != sc )                                     
      rtems_fatal_error_occurred( 0xdeadbeef );                       
                                                                      
    sd->mutex = RTEMS_ID_NONE;                                        
 800b3f0:	59 60 00 00 	sw (r11+0),r0                                  
                                                                      
    if ( NULL != sd->delete_handler )                                 
      ( *sd->delete_handler )( sd );                                  
                                                                      
    return 0;                                                         
 800b3f4:	34 0c 00 00 	mvi r12,0                                      
    if ( RTEMS_SUCCESSFUL != sc )                                     
      rtems_fatal_error_occurred( 0xdeadbeef );                       
                                                                      
    sd->mutex = RTEMS_ID_NONE;                                        
                                                                      
    if ( NULL != sd->delete_handler )                                 
 800b3f8:	44 4c 00 0b 	be r2,r12,800b424 <sparse_disk_ioctl+0x28c>    <== NEVER TAKEN
      ( *sd->delete_handler )( sd );                                  
 800b3fc:	b9 60 08 00 	mv r1,r11                                      
 800b400:	d8 40 00 00 	call r2                                        
 800b404:	e0 00 00 08 	bi 800b424 <sparse_disk_ioctl+0x28c>           
                                                                      
    return 0;                                                         
  } else {                                                            
    return rtems_blkdev_ioctl( dd, req, argp );                       
 800b408:	f8 00 0d 11 	calli 800e84c <rtems_blkdev_ioctl>             
 800b40c:	b8 20 60 00 	mv r12,r1                                      
 800b410:	e0 00 00 05 	bi 800b424 <sparse_disk_ioctl+0x28c>           
  }                                                                   
                                                                      
  errno = EINVAL;                                                     
 800b414:	f8 00 39 7e 	calli 8019a0c <__errno>                        <== NOT EXECUTED
 800b418:	34 02 00 16 	mvi r2,22                                      <== NOT EXECUTED
 800b41c:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
  return -1;                                                          
 800b420:	34 0c ff ff 	mvi r12,-1                                     <== NOT EXECUTED
}                                                                     
 800b424:	b9 80 08 00 	mv r1,r12                                      
 800b428:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800b42c:	2b 8b 00 44 	lw r11,(sp+68)                                 
 800b430:	2b 8c 00 40 	lw r12,(sp+64)                                 
 800b434:	2b 8d 00 3c 	lw r13,(sp+60)                                 
 800b438:	2b 8e 00 38 	lw r14,(sp+56)                                 
 800b43c:	2b 8f 00 34 	lw r15,(sp+52)                                 
 800b440:	2b 90 00 30 	lw r16,(sp+48)                                 
 800b444:	2b 91 00 2c 	lw r17,(sp+44)                                 
 800b448:	2b 92 00 28 	lw r18,(sp+40)                                 
 800b44c:	2b 93 00 24 	lw r19,(sp+36)                                 
 800b450:	2b 94 00 20 	lw r20,(sp+32)                                 
 800b454:	2b 95 00 1c 	lw r21,(sp+28)                                 
 800b458:	2b 96 00 18 	lw r22,(sp+24)                                 
 800b45c:	2b 97 00 14 	lw r23,(sp+20)                                 
 800b460:	2b 98 00 10 	lw r24,(sp+16)                                 
 800b464:	2b 99 00 0c 	lw r25,(sp+12)                                 
 800b468:	2b 9b 00 08 	lw fp,(sp+8)                                   
 800b46c:	37 9c 00 4c 	addi sp,sp,76                                  
 800b470:	c3 a0 00 00 	ret                                            
                                                                      

08003e80 <sync_per_thread>: fdatasync(fn); } /* iterate over all FILE *'s for this thread */ static void sync_per_thread(Thread_Control *t) {
 8003e80:	37 9c ff f4 	addi sp,sp,-12                                 
 8003e84:	5b 8b 00 0c 	sw (sp+12),r11                                 
 8003e88:	5b 8c 00 08 	sw (sp+8),r12                                  
 8003e8c:	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;                                        
 8003e90:	28 22 01 10 	lw r2,(r1+272)                                 
   if ( this_reent ) {                                                
 8003e94:	44 40 00 0c 	be r2,r0,8003ec4 <sync_per_thread+0x44>        <== NEVER TAKEN
     current_reent = _Thread_Executing->libc_reent;                   
 8003e98:	78 0b 08 01 	mvhi r11,0x801                                 
 8003e9c:	39 6b 5a 00 	ori r11,r11,0x5a00                             
 8003ea0:	29 63 00 10 	lw r3,(r11+16)                                 
 8003ea4:	28 6c 01 10 	lw r12,(r3+272)                                
     _Thread_Executing->libc_reent = this_reent;                      
 8003ea8:	58 62 01 10 	sw (r3+272),r2                                 
     _fwalk (t->libc_reent, sync_wrapper);                            
 8003eac:	28 21 01 10 	lw r1,(r1+272)                                 
 8003eb0:	78 02 08 00 	mvhi r2,0x800                                  
 8003eb4:	38 42 3e d8 	ori r2,r2,0x3ed8                               
 8003eb8:	f8 00 24 e2 	calli 800d240 <_fwalk>                         
     _Thread_Executing->libc_reent = current_reent;                   
 8003ebc:	29 61 00 10 	lw r1,(r11+16)                                 
 8003ec0:	58 2c 01 10 	sw (r1+272),r12                                
   }                                                                  
}                                                                     
 8003ec4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8003ec8:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8003ecc:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8003ed0:	37 9c 00 0c 	addi sp,sp,12                                  
 8003ed4:	c3 a0 00 00 	ret                                            
                                                                      

08002c48 <tcflow>: int tcflow ( int fd __attribute__((unused)), int action ) {
 8002c48:	37 9c ff fc 	addi sp,sp,-4                                  <== NOT EXECUTED
 8002c4c:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
  switch (action) {                                                   
 8002c50:	34 01 00 03 	mvi r1,3                                       <== NOT EXECUTED
 8002c54:	54 41 00 02 	bgu r2,r1,8002c5c <tcflow+0x14>                <== NOT EXECUTED
 8002c58:	e0 00 00 04 	bi 8002c68 <tcflow+0x20>                       <== NOT EXECUTED
    case TCOON:                                                       
    case TCIOFF:                                                      
    case TCION:                                                       
      break;                                                          
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 8002c5c:	f8 00 1a cd 	calli 8009790 <__errno>                        <== NOT EXECUTED
 8002c60:	34 02 00 16 	mvi r2,22                                      <== NOT EXECUTED
 8002c64:	e0 00 00 03 	bi 8002c70 <tcflow+0x28>                       <== NOT EXECUTED
  }                                                                   
                                                                      
  /* fd is not validated */                                           
                                                                      
  /* When this is supported, implement it here */                     
  rtems_set_errno_and_return_minus_one( ENOTSUP );                    
 8002c68:	f8 00 1a ca 	calli 8009790 <__errno>                        <== NOT EXECUTED
 8002c6c:	34 02 00 86 	mvi r2,134                                     <== NOT EXECUTED
 8002c70:	58 22 00 00 	sw (r1+0),r2                                   <== NOT EXECUTED
}                                                                     
 8002c74:	34 01 ff ff 	mvi r1,-1                                      <== NOT EXECUTED
 8002c78:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 8002c7c:	37 9c 00 04 	addi sp,sp,4                                   <== NOT EXECUTED
 8002c80:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08002c84 <tcflush>: #include <termios.h> #include <stdint.h> #include <sys/ioccom.h> int tcflush( int fd, int queue ) {
 8002c84:	37 9c ff fc 	addi sp,sp,-4                                  <== NOT EXECUTED
 8002c88:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
 8002c8c:	b8 40 18 00 	mv r3,r2                                       <== NOT EXECUTED
  return ioctl( fd, RTEMS_IO_TCFLUSH, (intptr_t) queue );             
 8002c90:	34 02 00 06 	mvi r2,6                                       <== NOT EXECUTED
 8002c94:	f8 00 12 e0 	calli 8007814 <ioctl>                          <== NOT EXECUTED
}                                                                     
 8002c98:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 8002c9c:	37 9c 00 04 	addi sp,sp,4                                   <== NOT EXECUTED
 8002ca0:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08002ca4 <tcgetpgrp>: /** * POSIX 1003.1b 7.2.3 - Get Foreground Process Group ID */ pid_t tcgetpgrp(int fd __attribute__((unused))) {
 8002ca4:	37 9c ff fc 	addi sp,sp,-4                                  <== NOT EXECUTED
 8002ca8:	5b 9d 00 04 	sw (sp+4),ra                                   <== NOT EXECUTED
  return getpid();                                                    
 8002cac:	fb ff f9 29 	calli 8001150 <getpid>                         <== NOT EXECUTED
}                                                                     
 8002cb0:	2b 9d 00 04 	lw ra,(sp+4)                                   <== NOT EXECUTED
 8002cb4:	37 9c 00 04 	addi sp,sp,4                                   <== NOT EXECUTED
 8002cb8:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

08002cbc <tcsendbreak>: int tcsendbreak ( int fd __attribute__((unused)), int duration __attribute__((unused)) ) { return 0; }
 8002cbc:	34 01 00 00 	mvi r1,0                                       <== NOT EXECUTED
 8002cc0:	c3 a0 00 00 	ret                                            <== NOT EXECUTED
                                                                      

080110c8 <tcsetattr>: int tcsetattr( int fd, int opt, struct termios *tp ) {
 80110c8:	37 9c ff f4 	addi sp,sp,-12                                 
 80110cc:	5b 8b 00 0c 	sw (sp+12),r11                                 
 80110d0:	5b 8c 00 08 	sw (sp+8),r12                                  
 80110d4:	5b 9d 00 04 	sw (sp+4),ra                                   
 80110d8:	b8 20 60 00 	mv r12,r1                                      
 80110dc:	b8 60 58 00 	mv r11,r3                                      
  switch (opt) {                                                      
 80110e0:	44 40 00 0d 	be r2,r0,8011114 <tcsetattr+0x4c>              
 80110e4:	34 03 00 01 	mvi r3,1                                       
 80110e8:	44 43 00 06 	be r2,r3,8011100 <tcsetattr+0x38>              
  default:                                                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
 80110ec:	f8 00 0f f1 	calli 80150b0 <__errno>                        
 80110f0:	34 02 00 86 	mvi r2,134                                     
 80110f4:	58 22 00 00 	sw (r1+0),r2                                   
 80110f8:	34 02 ff ff 	mvi r2,-1                                      
 80110fc:	e0 00 00 0b 	bi 8011128 <tcsetattr+0x60>                    
                                                                      
  case TCSADRAIN:                                                     
    if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0)                      
 8011100:	34 02 00 03 	mvi r2,3                                       
 8011104:	34 03 00 00 	mvi r3,0                                       
 8011108:	f8 00 0d 6c 	calli 80146b8 <ioctl>                          
    	return -1;                                                       
 801110c:	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)                      
 8011110:	48 01 00 06 	bg r0,r1,8011128 <tcsetattr+0x60>              <== NEVER TAKEN
    	return -1;                                                       
    /*                                                                
     * Fall through to....                                            
     */                                                               
  case TCSANOW:                                                       
    return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );                  
 8011114:	34 02 00 02 	mvi r2,2                                       
 8011118:	b9 80 08 00 	mv r1,r12                                      
 801111c:	b9 60 18 00 	mv r3,r11                                      
 8011120:	f8 00 0d 66 	calli 80146b8 <ioctl>                          
 8011124:	b8 20 10 00 	mv r2,r1                                       
  }                                                                   
}                                                                     
 8011128:	b8 40 08 00 	mv r1,r2                                       
 801112c:	2b 9d 00 04 	lw ra,(sp+4)                                   
 8011130:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 8011134:	2b 8c 00 08 	lw r12,(sp+8)                                  
 8011138:	37 9c 00 0c 	addi sp,sp,12                                  
 801113c:	c3 a0 00 00 	ret                                            
                                                                      

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

080031ec <unmount>: * in some form is supported on most UNIX and POSIX systems. This * routine is necessary to mount instantiations of a file system * into the file system name space. */ int unmount( const char *path ) {
 80031ec:	37 9c ff b4 	addi sp,sp,-76                                 
 80031f0:	5b 8b 00 10 	sw (sp+16),r11                                 
 80031f4:	5b 8c 00 0c 	sw (sp+12),r12                                 
 80031f8:	5b 8d 00 08 	sw (sp+8),r13                                  
 80031fc:	5b 9d 00 04 	sw (sp+4),ra                                   
  int rv = 0;                                                         
  rtems_filesystem_eval_path_context_t ctx;                           
  int eval_flags = RTEMS_FS_FOLLOW_LINK;                              
  const rtems_filesystem_location_info_t *currentloc =                
 8003200:	34 03 00 18 	mvi r3,24                                      
 *  in some form is supported on most UNIX and POSIX systems.  This   
 *  routine is necessary to mount instantiations of a file system     
 *  into the file system name space.                                  
 */                                                                   
int unmount( const char *path )                                       
{                                                                     
 8003204:	b8 20 10 00 	mv r2,r1                                       
  int rv = 0;                                                         
  rtems_filesystem_eval_path_context_t ctx;                           
  int eval_flags = RTEMS_FS_FOLLOW_LINK;                              
  const rtems_filesystem_location_info_t *currentloc =                
 8003208:	37 81 00 14 	addi r1,sp,20                                  
 800320c:	fb ff fe 09 	calli 8002a30 <rtems_filesystem_eval_path_start>
    rtems_filesystem_eval_path_start( &ctx, path, eval_flags );       
  rtems_filesystem_mount_table_entry_t *mt_entry = currentloc->mt_entry;
 8003210:	28 2b 00 14 	lw r11,(r1+20)                                 
  const rtems_filesystem_location_info_t *loc                         
)                                                                     
{                                                                     
  const rtems_filesystem_mount_table_entry_t *mt_entry = loc->mt_entry;
                                                                      
  return (*mt_entry->ops->are_nodes_equal_h)(                         
 8003214:	29 62 00 0c 	lw r2,(r11+12)                                 
 8003218:	28 43 00 10 	lw r3,(r2+16)                                  
 800321c:	29 62 00 24 	lw r2,(r11+36)                                 
 8003220:	d8 60 00 00 	call r3                                        
                                                                      
  if ( rtems_filesystem_location_is_instance_root( currentloc ) ) {   
 8003224:	44 20 00 20 	be r1,r0,80032a4 <unmount+0xb8>                
static bool contains_root_or_current_directory(                       
  const rtems_filesystem_mount_table_entry_t *mt_entry                
)                                                                     
{                                                                     
  const rtems_filesystem_location_info_t *root =                      
    &rtems_filesystem_root->location;                                 
 8003228:	78 01 08 01 	mvhi r1,0x801                                  
 800322c:	38 21 41 90 	ori r1,r1,0x4190                               
 8003230:	28 21 00 00 	lw r1,(r1+0)                                   
  const rtems_filesystem_location_info_t *current =                   
    &rtems_filesystem_current->location;                              
                                                                      
  return mt_entry == root->mt_entry || mt_entry == current->mt_entry; 
 8003234:	34 0d 00 01 	mvi r13,1                                      
)                                                                     
{                                                                     
  const rtems_filesystem_location_info_t *root =                      
    &rtems_filesystem_root->location;                                 
  const rtems_filesystem_location_info_t *current =                   
    &rtems_filesystem_current->location;                              
 8003238:	28 22 00 00 	lw r2,(r1+0)                                   
                                                                      
  return mt_entry == root->mt_entry || mt_entry == current->mt_entry; 
 800323c:	28 21 00 04 	lw r1,(r1+4)                                   
 8003240:	28 21 00 14 	lw r1,(r1+20)                                  
 8003244:	45 61 00 03 	be r11,r1,8003250 <unmount+0x64>               
 8003248:	28 4d 00 14 	lw r13,(r2+20)                                 
 800324c:	e5 6d 68 00 	cmpe r13,r11,r13                               
  const rtems_filesystem_location_info_t *currentloc =                
    rtems_filesystem_eval_path_start( &ctx, path, eval_flags );       
  rtems_filesystem_mount_table_entry_t *mt_entry = currentloc->mt_entry;
                                                                      
  if ( rtems_filesystem_location_is_instance_root( currentloc ) ) {   
    if ( !contains_root_or_current_directory( mt_entry ) ) {          
 8003250:	5d a0 00 12 	bne r13,r0,8003298 <unmount+0xac>              
      const rtems_filesystem_operations_table *mt_point_ops =         
        mt_entry->mt_point_node->location.mt_entry->ops;              
 8003254:	29 61 00 20 	lw r1,(r11+32)                                 
 8003258:	28 21 00 14 	lw r1,(r1+20)                                  
                                                                      
      rv = (*mt_point_ops->unmount_h)( mt_entry );                    
 800325c:	28 21 00 0c 	lw r1,(r1+12)                                  
 8003260:	28 22 00 38 	lw r2,(r1+56)                                  
 8003264:	b9 60 08 00 	mv r1,r11                                      
 8003268:	d8 40 00 00 	call r2                                        
 800326c:	b8 20 60 00 	mv r12,r1                                      
      if ( rv == 0 ) {                                                
 8003270:	5c 2d 00 11 	bne r1,r13,80032b4 <unmount+0xc8>              
        rtems_id self_task_id = rtems_task_self();                    
 8003274:	f8 00 02 a9 	calli 8003d18 <rtems_task_self>                
        rtems_filesystem_mt_entry_declare_lock_context( lock_context );
                                                                      
        rtems_filesystem_mt_entry_lock( lock_context );               
 8003278:	90 00 10 00 	rcsr r2,IE                                     
 800327c:	34 03 ff fe 	mvi r3,-2                                      
 8003280:	a0 43 18 00 	and r3,r2,r3                                   
 8003284:	d0 03 00 00 	wcsr IE,r3                                     
        mt_entry->unmount_task = self_task_id;                        
 8003288:	59 61 00 3c 	sw (r11+60),r1                                 
        mt_entry->mounted = false;                                    
 800328c:	31 60 00 28 	sb (r11+40),r0                                 
        rtems_filesystem_mt_entry_unlock( lock_context );             
 8003290:	d0 02 00 00 	wcsr IE,r2                                     
 8003294:	e0 00 00 08 	bi 80032b4 <unmount+0xc8>                      
      }                                                               
    } else {                                                          
      errno = EBUSY;                                                  
 8003298:	f8 00 21 95 	calli 800b8ec <__errno>                        
 800329c:	34 02 00 10 	mvi r2,16                                      
 80032a0:	e0 00 00 03 	bi 80032ac <unmount+0xc0>                      
      rv = -1;                                                        
    }                                                                 
  } else {                                                            
    errno = EACCES;                                                   
 80032a4:	f8 00 21 92 	calli 800b8ec <__errno>                        
 80032a8:	34 02 00 0d 	mvi r2,13                                      
 80032ac:	58 22 00 00 	sw (r1+0),r2                                   
    rv = -1;                                                          
 80032b0:	34 0c ff ff 	mvi r12,-1                                     
  }                                                                   
                                                                      
  rtems_filesystem_eval_path_cleanup( &ctx );                         
 80032b4:	37 81 00 14 	addi r1,sp,20                                  
 80032b8:	fb ff fe 2b 	calli 8002b64 <rtems_filesystem_eval_path_cleanup>
                                                                      
  if ( rv == 0 ) {                                                    
 80032bc:	5d 80 00 0b 	bne r12,r0,80032e8 <unmount+0xfc>              
  rtems_interval ticks                                                
)                                                                     
{                                                                     
  rtems_event_set event_out;                                          
                                                                      
  return rtems_event_system_receive(                                  
 80032c0:	78 01 80 00 	mvhi r1,0x8000                                 
 80032c4:	34 02 00 00 	mvi r2,0                                       
 80032c8:	34 03 00 00 	mvi r3,0                                       
 80032cc:	37 84 00 4c 	addi r4,sp,76                                  
 80032d0:	f8 00 02 2e 	calli 8003b88 <rtems_event_system_receive>     
    rtems_status_code sc = rtems_event_transient_receive(             
      RTEMS_WAIT,                                                     
      RTEMS_NO_TIMEOUT                                                
    );                                                                
                                                                      
    if ( sc != RTEMS_SUCCESSFUL ) {                                   
 80032d4:	44 2c 00 05 	be r1,r12,80032e8 <unmount+0xfc>               <== ALWAYS TAKEN
      rtems_fatal_error_occurred( 0xdeadbeef );                       
 80032d8:	78 02 08 01 	mvhi r2,0x801                                  <== NOT EXECUTED
 80032dc:	38 42 2b 10 	ori r2,r2,0x2b10                               <== NOT EXECUTED
 80032e0:	28 41 00 00 	lw r1,(r2+0)                                   <== NOT EXECUTED
 80032e4:	f8 00 03 0c 	calli 8003f14 <rtems_fatal_error_occurred>     <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
 80032e8:	b9 80 08 00 	mv r1,r12                                      
 80032ec:	2b 9d 00 04 	lw ra,(sp+4)                                   
 80032f0:	2b 8b 00 10 	lw r11,(sp+16)                                 
 80032f4:	2b 8c 00 0c 	lw r12,(sp+12)                                 
 80032f8:	2b 8d 00 08 	lw r13,(sp+8)                                  
 80032fc:	37 9c 00 4c 	addi sp,sp,76                                  
 8003300:	c3 a0 00 00 	ret                                            
                                                                      

0801ac28 <write>: ssize_t write( int fd, const void *buffer, size_t count ) {
 801ac28:	37 9c ff f0 	addi sp,sp,-16                                 
 801ac2c:	5b 8b 00 0c 	sw (sp+12),r11                                 
 801ac30:	5b 8c 00 08 	sw (sp+8),r12                                  
 801ac34:	5b 9d 00 04 	sw (sp+4),ra                                   
  rtems_libio_t     *iop;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
 801ac38:	78 04 08 01 	mvhi r4,0x801                                  
 801ac3c:	38 84 d0 10 	ori r4,r4,0xd010                               
ssize_t write(                                                        
  int         fd,                                                     
  const void *buffer,                                                 
  size_t      count                                                   
)                                                                     
{                                                                     
 801ac40:	b8 40 60 00 	mv r12,r2                                      
  rtems_libio_t     *iop;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
 801ac44:	28 82 00 00 	lw r2,(r4+0)                                   
 801ac48:	54 41 00 02 	bgu r2,r1,801ac50 <write+0x28>                 
 801ac4c:	e0 00 00 14 	bi 801ac9c <write+0x74>                        
  iop = rtems_libio_iop( fd );                                        
 801ac50:	34 02 00 2c 	mvi r2,44                                      
 801ac54:	78 0b 08 01 	mvhi r11,0x801                                 
 801ac58:	5b 83 00 10 	sw (sp+16),r3                                  
 801ac5c:	39 6b d7 a0 	ori r11,r11,0xd7a0                             
 801ac60:	fb ff fd eb 	calli 801a40c <__mulsi3>                       
 801ac64:	29 64 00 00 	lw r4,(r11+0)                                  
  rtems_libio_check_is_open( iop );                                   
 801ac68:	2b 83 00 10 	lw r3,(sp+16)                                  
)                                                                     
{                                                                     
  rtems_libio_t     *iop;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
 801ac6c:	b4 81 20 00 	add r4,r4,r1                                   
  rtems_libio_check_is_open( iop );                                   
 801ac70:	28 82 00 08 	lw r2,(r4+8)                                   
 801ac74:	20 41 01 00 	andi r1,r2,0x100                               
 801ac78:	44 20 00 09 	be r1,r0,801ac9c <write+0x74>                  
  rtems_libio_check_buffer( buffer );                                 
 801ac7c:	5d 80 00 04 	bne r12,r0,801ac8c <write+0x64>                <== ALWAYS TAKEN
 801ac80:	fb ff c2 e3 	calli 800b80c <__errno>                        <== NOT EXECUTED
 801ac84:	34 02 00 16 	mvi r2,22                                      <== NOT EXECUTED
 801ac88:	e0 00 00 07 	bi 801aca4 <write+0x7c>                        <== NOT EXECUTED
  rtems_libio_check_count( count );                                   
 801ac8c:	34 01 00 00 	mvi r1,0                                       
 801ac90:	44 60 00 0d 	be r3,r0,801acc4 <write+0x9c>                  
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
 801ac94:	20 42 00 04 	andi r2,r2,0x4                                 
 801ac98:	5c 40 00 06 	bne r2,r0,801acb0 <write+0x88>                 
 801ac9c:	fb ff c2 dc 	calli 800b80c <__errno>                        
 801aca0:	34 02 00 09 	mvi r2,9                                       
 801aca4:	58 22 00 00 	sw (r1+0),r2                                   
 801aca8:	34 01 ff ff 	mvi r1,-1                                      
 801acac:	e0 00 00 06 	bi 801acc4 <write+0x9c>                        
                                                                      
  /*                                                                  
   *  Now process the write() request.                                
   */                                                                 
  return (*iop->pathinfo.handlers->write_h)( iop, buffer, count );    
 801acb0:	28 81 00 1c 	lw r1,(r4+28)                                  
 801acb4:	b9 80 10 00 	mv r2,r12                                      
 801acb8:	28 25 00 0c 	lw r5,(r1+12)                                  
 801acbc:	b8 80 08 00 	mv r1,r4                                       
 801acc0:	d8 a0 00 00 	call r5                                        
}                                                                     
 801acc4:	2b 9d 00 04 	lw ra,(sp+4)                                   
 801acc8:	2b 8b 00 0c 	lw r11,(sp+12)                                 
 801accc:	2b 8c 00 08 	lw r12,(sp+8)                                  
 801acd0:	37 9c 00 10 	addi sp,sp,16                                  
 801acd4:	c3 a0 00 00 	ret                                            
                                                                      

08004208 <writev>: ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) {
 8004208:	37 9c ff dc 	addi sp,sp,-36                                 
 800420c:	5b 8b 00 24 	sw (sp+36),r11                                 
 8004210:	5b 8c 00 20 	sw (sp+32),r12                                 
 8004214:	5b 8d 00 1c 	sw (sp+28),r13                                 
 8004218:	5b 8e 00 18 	sw (sp+24),r14                                 
 800421c:	5b 8f 00 14 	sw (sp+20),r15                                 
 8004220:	5b 90 00 10 	sw (sp+16),r16                                 
 8004224:	5b 91 00 0c 	sw (sp+12),r17                                 
 8004228:	5b 92 00 08 	sw (sp+8),r18                                  
 800422c:	5b 9d 00 04 	sw (sp+4),ra                                   
 8004230:	b8 60 70 00 	mv r14,r3                                      
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  ssize_t        old;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
 8004234:	78 03 08 01 	mvhi r3,0x801                                  
 8004238:	38 63 50 10 	ori r3,r3,0x5010                               
ssize_t writev(                                                       
  int                 fd,                                             
  const struct iovec *iov,                                            
  int                 iovcnt                                          
)                                                                     
{                                                                     
 800423c:	b8 40 60 00 	mv r12,r2                                      
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  ssize_t        old;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
 8004240:	28 62 00 00 	lw r2,(r3+0)                                   
 8004244:	54 41 00 02 	bgu r2,r1,800424c <writev+0x44>                
 8004248:	e0 00 00 0c 	bi 8004278 <writev+0x70>                       
  iop = rtems_libio_iop( fd );                                        
 800424c:	78 0b 08 01 	mvhi r11,0x801                                 
 8004250:	34 02 00 2c 	mvi r2,44                                      
 8004254:	39 6b 57 7c 	ori r11,r11,0x577c                             
 8004258:	f8 00 38 06 	calli 8012270 <__mulsi3>                       
 800425c:	29 6d 00 00 	lw r13,(r11+0)                                 
 8004260:	b5 a1 68 00 	add r13,r13,r1                                 
  rtems_libio_check_is_open( iop );                                   
 8004264:	29 a1 00 08 	lw r1,(r13+8)                                  
 8004268:	20 22 01 00 	andi r2,r1,0x100                               
 800426c:	44 40 00 03 	be r2,r0,8004278 <writev+0x70>                 
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
 8004270:	20 21 00 04 	andi r1,r1,0x4                                 
 8004274:	5c 20 00 04 	bne r1,r0,8004284 <writev+0x7c>                <== ALWAYS TAKEN
 8004278:	f8 00 1f 67 	calli 800c014 <__errno>                        
 800427c:	34 02 00 09 	mvi r2,9                                       
 8004280:	e0 00 00 1d 	bi 80042f4 <writev+0xec>                       
                                                                      
  /*                                                                  
   *  Argument validation on IO vector                                
   */                                                                 
  if ( !iov )                                                         
 8004284:	45 80 00 1a 	be r12,r0,80042ec <writev+0xe4>                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt <= 0 )                                                  
 8004288:	49 c0 00 02 	bg r14,r0,8004290 <writev+0x88>                
 800428c:	e0 00 00 18 	bi 80042ec <writev+0xe4>                       
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt > IOV_MAX )                                             
 8004290:	34 01 04 00 	mvi r1,1024                                    
 8004294:	4c 2e 00 02 	bge r1,r14,800429c <writev+0x94>               <== ALWAYS TAKEN
 8004298:	e0 00 00 15 	bi 80042ec <writev+0xe4>                       <== NOT EXECUTED
 800429c:	b9 80 58 00 	mv r11,r12                                     
 80042a0:	34 0f 00 01 	mvi r15,1                                      
 80042a4:	34 11 00 00 	mvi r17,0                                      
 80042a8:	34 10 00 00 	mvi r16,0                                      
 80042ac:	e0 00 00 02 	bi 80042b4 <writev+0xac>                       
    if ( iov[v].iov_len )                                             
      all_zeros = false;                                              
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
 80042b0:	ba 40 80 00 	mv r16,r18                                     
                                                                      
    /*                                                                
     *  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 )                                       
 80042b4:	29 61 00 00 	lw r1,(r11+0)                                  
 80042b8:	44 20 00 0d 	be r1,r0,80042ec <writev+0xe4>                 
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
 80042bc:	29 72 00 04 	lw r18,(r11+4)                                 
      all_zeros = false;                                              
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    if ( total < old || total > SSIZE_MAX )                           
 80042c0:	34 02 00 1f 	mvi r2,31                                      
     */                                                               
    if ( iov[v].iov_base == 0 )                                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
      all_zeros = false;                                              
 80042c4:	66 41 00 00 	cmpei r1,r18,0                                 
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
 80042c8:	b6 12 90 00 	add r18,r16,r18                                
     */                                                               
    if ( iov[v].iov_base == 0 )                                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
      all_zeros = false;                                              
 80042cc:	c8 01 08 00 	sub r1,r0,r1                                   
 80042d0:	a1 e1 78 00 	and r15,r15,r1                                 
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    if ( total < old || total > SSIZE_MAX )                           
 80042d4:	ea 12 80 00 	cmpg r16,r16,r18                               
 80042d8:	ba 40 08 00 	mv r1,r18                                      
 80042dc:	f8 00 37 be 	calli 80121d4 <__lshrsi3>                      
 80042e0:	b8 30 08 00 	or r1,r1,r16                                   
 80042e4:	20 21 00 ff 	andi r1,r1,0xff                                
 80042e8:	44 20 00 05 	be r1,r0,80042fc <writev+0xf4>                 
      rtems_set_errno_and_return_minus_one( EINVAL );                 
 80042ec:	f8 00 1f 4a 	calli 800c014 <__errno>                        
 80042f0:	34 02 00 16 	mvi r2,22                                      
 80042f4:	58 22 00 00 	sw (r1+0),r2                                   
 80042f8:	e0 00 00 16 	bi 8004350 <writev+0x148>                      
   *  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++ ) {                    
 80042fc:	36 31 00 01 	addi r17,r17,1                                 
 8004300:	35 6b 00 08 	addi r11,r11,8                                 
 8004304:	49 d1 ff eb 	bg r14,r17,80042b0 <writev+0xa8>               
                                                                      
  /*                                                                  
   * A writev with all zeros is supposed to have no effect per OpenGroup.
   */                                                                 
  if ( all_zeros == true ) {                                          
    return 0;                                                         
 8004308:	34 0b 00 00 	mvi r11,0                                      
  }                                                                   
                                                                      
  /*                                                                  
   * A writev with all zeros is supposed to have no effect per OpenGroup.
   */                                                                 
  if ( all_zeros == true ) {                                          
 800430c:	5d e0 00 12 	bne r15,r0,8004354 <writev+0x14c>              
  /*                                                                  
   *  Now process the writev().                                       
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
    /* all zero lengths has no effect */                              
    if ( iov[v].iov_len == 0 )                                        
 8004310:	29 83 00 04 	lw r3,(r12+4)                                  
 8004314:	44 60 00 0b 	be r3,r0,8004340 <writev+0x138>                <== NEVER TAKEN
      continue;                                                       
                                                                      
    bytes = (*iop->pathinfo.handlers->write_h)(                       
 8004318:	29 a1 00 1c 	lw r1,(r13+28)                                 
 800431c:	29 82 00 00 	lw r2,(r12+0)                                  
 8004320:	28 24 00 0c 	lw r4,(r1+12)                                  
 8004324:	b9 a0 08 00 	mv r1,r13                                      
 8004328:	d8 80 00 00 	call r4                                        
      iop,                                                            
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
 800432c:	48 01 00 09 	bg r0,r1,8004350 <writev+0x148>                <== NEVER TAKEN
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
 8004330:	44 20 00 02 	be r1,r0,8004338 <writev+0x130>                <== NEVER TAKEN
      total       += bytes;                                           
 8004334:	b5 61 58 00 	add r11,r11,r1                                 
    }                                                                 
                                                                      
    if (bytes != iov[ v ].iov_len)                                    
 8004338:	29 82 00 04 	lw r2,(r12+4)                                  
 800433c:	5c 22 00 06 	bne r1,r2,8004354 <writev+0x14c>               <== NEVER TAKEN
  }                                                                   
                                                                      
  /*                                                                  
   *  Now process the writev().                                       
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
 8004340:	35 ef 00 01 	addi r15,r15,1                                 
 8004344:	35 8c 00 08 	addi r12,r12,8                                 
 8004348:	49 cf ff f2 	bg r14,r15,8004310 <writev+0x108>              
 800434c:	e0 00 00 02 	bi 8004354 <writev+0x14c>                      
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
      return -1;                                                      
 8004350:	34 0b ff ff 	mvi r11,-1                                     
    if (bytes != iov[ v ].iov_len)                                    
      break;                                                          
  }                                                                   
                                                                      
  return total;                                                       
}                                                                     
 8004354:	b9 60 08 00 	mv r1,r11                                      
 8004358:	2b 9d 00 04 	lw ra,(sp+4)                                   
 800435c:	2b 8b 00 24 	lw r11,(sp+36)                                 
 8004360:	2b 8c 00 20 	lw r12,(sp+32)                                 
 8004364:	2b 8d 00 1c 	lw r13,(sp+28)                                 
 8004368:	2b 8e 00 18 	lw r14,(sp+24)                                 
 800436c:	2b 8f 00 14 	lw r15,(sp+20)                                 
 8004370:	2b 90 00 10 	lw r16,(sp+16)                                 
 8004374:	2b 91 00 0c 	lw r17,(sp+12)                                 
 8004378:	2b 92 00 08 	lw r18,(sp+8)                                  
 800437c:	37 9c 00 24 	addi sp,sp,36                                  
 8004380:	c3 a0 00 00 	ret